chore: generate
This commit is contained in:
@@ -116,9 +116,7 @@ export const ReadTool = Tool.define(
|
||||
// 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.
|
||||
const decoder = new TextDecoder("utf-8")
|
||||
yield* fs
|
||||
.stream(filepath)
|
||||
.pipe(
|
||||
yield* fs.stream(filepath).pipe(
|
||||
Stream.map((bytes) => decoder.decode(bytes, { stream: true })),
|
||||
Stream.splitLines,
|
||||
Stream.runForEach((text) =>
|
||||
|
||||
Reference in New Issue
Block a user