diff --git a/.opencode/tools/ask262-evaluate-in-engine262.ts b/.opencode/tools/ask262-evaluate-in-engine262.ts index 543f8b3..15721f3 100644 --- a/.opencode/tools/ask262-evaluate-in-engine262.ts +++ b/.opencode/tools/ask262-evaluate-in-engine262.ts @@ -7,7 +7,7 @@ import { tool } from "@opencode-ai/plugin"; import { createEvaluateInEngine262Tool, toolMetadata, -} from "../../src/agent-tools/evaluateInEngine262"; +} from "../../src/agent-tools/evaluateInEngine262.js"; export default tool({ description: toolMetadata.description, @@ -19,8 +19,8 @@ export default tool({ // Create and execute tool (no external dependencies needed) const evaluateTool = createEvaluateInEngine262Tool(); - const result = await evaluateTool.func({ code }); + const result = await evaluateTool({ code }); - return result; + return JSON.stringify(result, null, 2); }, }); diff --git a/.opencode/tools/ask262-get-section-content.ts b/.opencode/tools/ask262-get-section-content.ts index 7d5d8e6..926645f 100644 --- a/.opencode/tools/ask262-get-section-content.ts +++ b/.opencode/tools/ask262-get-section-content.ts @@ -8,7 +8,7 @@ import { tool } from "@opencode-ai/plugin"; import { createGetSectionContentTool, toolMetadata, -} from "../../src/agent-tools/getSectionContent"; +} from "../../src/agent-tools/getSectionContent.js"; export default tool({ description: toolMetadata.description, @@ -30,8 +30,8 @@ export default tool({ // Create and execute tool const contentTool = createGetSectionContentTool(table); - const result = await contentTool.func({ sectionId, recursive }); + const result = await contentTool({ sectionId, recursive }); - return result; + return JSON.stringify(result, null, 2); }, }); diff --git a/.opencode/tools/ask262-search-spec-sections.ts b/.opencode/tools/ask262-search-spec-sections.ts index 1d5e0ea..e78fac3 100644 --- a/.opencode/tools/ask262-search-spec-sections.ts +++ b/.opencode/tools/ask262-search-spec-sections.ts @@ -9,7 +9,7 @@ import { tool } from "@opencode-ai/plugin"; import { createSearchSpecSectionsTool, toolMetadata, -} from "../../src/agent-tools/searchSpecSections"; +} from "../../src/agent-tools/searchSpecSections.js"; export default tool({ description: toolMetadata.description, @@ -32,8 +32,8 @@ export default tool({ // Create and execute tool const searchTool = createSearchSpecSectionsTool(table, embeddings); - const result = await searchTool.func({ query }); + const result = await searchTool({ query }); - return result; + return JSON.stringify(result, null, 2); }, });