mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-10 00:28:29 +00:00
chore: generate
This commit is contained in:
parent
11d2f3e5f8
commit
0e2dd4ad15
2 changed files with 3 additions and 4 deletions
|
|
@ -75,7 +75,8 @@ export const layer = Layer.effectDiscard(
|
|||
agent: context.agent,
|
||||
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, {
|
||||
offset: input.offset,
|
||||
limit: input.limit,
|
||||
|
|
|
|||
|
|
@ -223,9 +223,7 @@ describe("ReadTool", () => {
|
|||
},
|
||||
{ sessionID, action: "read", resources: [external.replaceAll("\\", "/")], save: ["*"] },
|
||||
])
|
||||
expect(readCalls).toEqual([
|
||||
{ input: AbsolutePath.make(external), page: { offset: undefined, limit: undefined } },
|
||||
])
|
||||
expect(readCalls).toEqual([{ input: AbsolutePath.make(external), page: { offset: undefined, limit: undefined } }])
|
||||
}),
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue