summaryrefslogtreecommitdiffhomepage
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/schema.json20
-rw-r--r--js/test/tool/__snapshots__/tool.test.ts.snap52
-rw-r--r--js/test/tool/tool.test.ts4
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",