chore: generate
This commit is contained in:
@@ -75,7 +75,8 @@ export const layer = Layer.effectDiscard(
|
|||||||
agent: context.agent,
|
agent: context.agent,
|
||||||
source,
|
source,
|
||||||
})
|
})
|
||||||
if (type === "directory") return yield* reader.list(absolute, { offset: input.offset, limit: input.limit })
|
if (type === "directory")
|
||||||
|
return yield* reader.list(absolute, { offset: input.offset, limit: input.limit })
|
||||||
const content = yield* reader.read(absolute, resource, {
|
const content = yield* reader.read(absolute, resource, {
|
||||||
offset: input.offset,
|
offset: input.offset,
|
||||||
limit: input.limit,
|
limit: input.limit,
|
||||||
|
|||||||
@@ -223,9 +223,7 @@ describe("ReadTool", () => {
|
|||||||
},
|
},
|
||||||
{ sessionID, action: "read", resources: [external.replaceAll("\\", "/")], save: ["*"] },
|
{ sessionID, action: "read", resources: [external.replaceAll("\\", "/")], save: ["*"] },
|
||||||
])
|
])
|
||||||
expect(readCalls).toEqual([
|
expect(readCalls).toEqual([{ input: AbsolutePath.make(external), page: { offset: undefined, limit: undefined } }])
|
||||||
{ input: AbsolutePath.make(external), page: { offset: undefined, limit: undefined } },
|
|
||||||
])
|
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user