chore: generate

This commit is contained in:
opencode-agent[bot]
2026-05-16 13:21:57 +00:00
parent 77db212a0a
commit dd432e3cde
+1 -3
View File
@@ -116,9 +116,7 @@ export const ReadTool = Tool.define(
// line of the upstream splitLines pipeline) and use a tagged error to stop the // line of the upstream splitLines pipeline) and use a tagged error to stop the
// upstream file stream as soon as the byte cap is reached. // upstream file stream as soon as the byte cap is reached.
const decoder = new TextDecoder("utf-8") const decoder = new TextDecoder("utf-8")
yield* fs yield* fs.stream(filepath).pipe(
.stream(filepath)
.pipe(
Stream.map((bytes) => decoder.decode(bytes, { stream: true })), Stream.map((bytes) => decoder.decode(bytes, { stream: true })),
Stream.splitLines, Stream.splitLines,
Stream.runForEach((text) => Stream.runForEach((text) =>