mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-13 23:52:06 +00:00
The patch apply path now returns Effect<...> values backed by AppFileSystem.Service. The parser, chunk replacer, and shell-argv parser remain pure helpers. deriveNewContentsFromChunks now takes the original text instead of doing its own readFileSync so callers (apply_patch tool, applyHunksToFiles) can supply the content they already have. tool/read.ts swaps its fs.createReadStream + readline helper for a Stream pipeline over AppFileSystem.Service.stream — TextDecoder + map keeps the trailing unterminated line that Stream.decodeText and Stream.runForEachWhile both drop today. Limit / offset / byte-cap behaviour is preserved.