diff options
| author | Olcan <[email protected]> | 2025-04-24 18:30:19 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-04-24 18:30:19 -0700 |
| commit | 08463e6114f0b54f07acb86c519a0168d9736dbb (patch) | |
| tree | 046686a17fc8d82d0c5139269e4a29dece82d5e3 /packages/server/src | |
| parent | b1b9735889ef1633e407ff6865fef9d4cb6aa60d (diff) | |
enable json imports (#165)
* enable json imports
* Merge remote-tracking branch 'origin/main' into enable_json_imports
Diffstat (limited to 'packages/server/src')
| -rw-r--r-- | packages/server/src/tools/shell.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/server/src/tools/shell.ts b/packages/server/src/tools/shell.ts index 658293b0..7af6e703 100644 --- a/packages/server/src/tools/shell.ts +++ b/packages/server/src/tools/shell.ts @@ -8,6 +8,7 @@ import path from 'path'; import fs from 'fs'; import { Config } from '../config/config.js'; import { BaseTool, ToolResult } from './tools.js'; +import toolParameterSchema from './shell.json' with { type: 'json' }; export interface ShellToolParams { command: string; @@ -23,8 +24,6 @@ export class ShellTool extends BaseTool<ShellToolParams, ToolResult> { const toolDisplayName = 'Shell'; const descriptionUrl = new URL('shell.md', import.meta.url); const toolDescription = fs.readFileSync(descriptionUrl, 'utf-8'); - const schemaUrl = new URL('shell.json', import.meta.url); - const toolParameterSchema = JSON.parse(fs.readFileSync(schemaUrl, 'utf-8')); super( ShellTool.Name, toolDisplayName, |
