(private readonly config: Config)
| 332 | private allowlist: Set<string> = new Set(); |
| 333 | |
| 334 | constructor(private readonly config: Config) { |
| 335 | super( |
| 336 | ShellTool.Name, |
| 337 | 'Shell', |
| 338 | getShellToolDescription(), |
| 339 | Kind.Execute, |
| 340 | { |
| 341 | type: 'object', |
| 342 | properties: { |
| 343 | command: { |
| 344 | type: 'string', |
| 345 | description: getCommandDescription(), |
| 346 | }, |
| 347 | description: { |
| 348 | type: 'string', |
| 349 | description: |
| 350 | 'Brief description of the command for the user. Be specific and concise. Ideally a single sentence. Can be up to 3 sentences for clarity. No line breaks.', |
| 351 | }, |
| 352 | directory: { |
| 353 | type: 'string', |
| 354 | description: |
| 355 | '(OPTIONAL) Directory to run the command in, if not the project root directory. Must be the workspace directory name only (e.g., "subdir" not "./subdir" or "." or absolute paths). Leave empty to run from project root. Common mistake: Do NOT use "." or "./" - just omit the directory parameter entirely for project root.', |
| 356 | }, |
| 357 | }, |
| 358 | required: ['command'], |
| 359 | }, |
| 360 | false, // output is not markdown |
| 361 | true, // output can be updated |
| 362 | ); |
| 363 | } |
| 364 | |
| 365 | protected override validateToolParams( |
| 366 | params: ShellToolParams, |
nothing calls this directly
no test coverage detected