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
|
// 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) =>
|
||||||
|
|||||||
Reference in New Issue
Block a user