diff options
| author | Dax Raad <[email protected]> | 2025-05-26 14:18:07 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-05-26 14:18:07 -0400 |
| commit | 4880b08b8accf80f5f5b2dc8bc88ffdcaa893754 (patch) | |
| tree | 36c06bbfa2ff78bf9a1feb9667d35eba7e28317b /js | |
| parent | 80555f13e052443dc9dc67811bf782a3146de512 (diff) | |
| download | opencode-4880b08b8accf80f5f5b2dc8bc88ffdcaa893754.tar.gz opencode-4880b08b8accf80f5f5b2dc8bc88ffdcaa893754.zip | |
sync
Diffstat (limited to 'js')
| -rw-r--r-- | js/schema.json | 20 | ||||
| -rw-r--r-- | js/test/tool/__snapshots__/tool.test.ts.snap | 52 | ||||
| -rw-r--r-- | js/test/tool/tool.test.ts | 4 |
3 files changed, 3 insertions, 73 deletions
diff --git a/js/schema.json b/js/schema.json deleted file mode 100644 index bc08652e0..000000000 --- a/js/schema.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "type": "object", - "properties": { - "type": { - "const": "storage.write" - }, - "properties": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "body": {} - }, - "required": ["key", "body"] - } - }, - "required": ["type", "properties"], - "$schema": "https://json-schema.org/draft-2020-12/schema" -} diff --git a/js/test/tool/__snapshots__/tool.test.ts.snap b/js/test/tool/__snapshots__/tool.test.ts.snap index 6b6d8d61f..3cf8398fa 100644 --- a/js/test/tool/__snapshots__/tool.test.ts.snap +++ b/js/test/tool/__snapshots__/tool.test.ts.snap @@ -1,7 +1,7 @@ // Bun Snapshot v1, https://goo.gl/fbAQLP exports[`tool.ls basic 1`] = ` -"- /home/thdxr/dev/projects/sst/opencode/js/ +"- /home/thdxr/dev/projects/sst/opencode/js/example/ - home/ - thdxr/ - dev/ @@ -9,58 +9,8 @@ exports[`tool.ls basic 1`] = ` - sst/ - opencode/ - js/ - - package.json - - schema.json - - tsconfig.json - - test/ - - tool/ - - tool.test.ts - example/ - ink.tsx - cli.ts - - scrap.ts - - README.md - - bun.lock - - src/ - - lsp/ - - client.ts - - index.ts - - language.ts - - server/ - - server.ts - - storage/ - - storage.ts - - app/ - - index.ts - - path.ts - - config.ts - - share/ - - share.ts - - tool/ - - bash.ts - - glob.ts - - tool.ts - - ls.ts - - util/ - - file-times.ts - - view.ts - - index.ts - - edit.ts - - llm/ - - llm.ts - - util/ - - context.ts - - scrap.ts - - event.ts - - log.ts - - index.ts - - id/ - - id.ts - - bus/ - - index.ts - - session/ - - session.ts - - prompt/ - - anthropic.txt " `; diff --git a/js/test/tool/tool.test.ts b/js/test/tool/tool.test.ts index 8f69f7b59..a8a621dc6 100644 --- a/js/test/tool/tool.test.ts +++ b/js/test/tool/tool.test.ts @@ -31,7 +31,7 @@ describe("tool.glob", () => { ); expect(result.metadata).toMatchObject({ truncated: false, - count: 3, + count: 2, }); }); }); @@ -42,7 +42,7 @@ describe("tool.ls", () => { const result = await App.provide({ directory: process.cwd() }, async () => { return await ls.execute( { - path: ".", + path: "./example", }, { toolCallId: "test", |
