diff --git a/src/tools/commands/impl.ts b/src/tools/commands/impl.ts index 9baf8a2..7db8c4d 100644 --- a/src/tools/commands/impl.ts +++ b/src/tools/commands/impl.ts @@ -416,15 +416,16 @@ async function pullToolsFromEnvironment(options: PullToolsOptions, toolsConfigPa const configFilePath = path.resolve(configPath); await fs.ensureDir(path.dirname(configFilePath)); await writeToolConfig(configFilePath, toolConfig as Tool); - + const newTool: ToolDefinition = { type: toolType as 'webhook' | 'client', config: configPath, id: tool.id, }; - + toolsConfig.tools.push(newTool); console.log(` ✓ Added '${tool.name}' (config: ${configPath}, type: ${toolType})`); + } itemsProcessed++; diff --git a/src/tools/ui/PullToolsView.tsx b/src/tools/ui/PullToolsView.tsx index a0a8497..9243c6d 100644 --- a/src/tools/ui/PullToolsView.tsx +++ b/src/tools/ui/PullToolsView.tsx @@ -311,7 +311,7 @@ export const PullToolsView: React.FC = ({ }; pullNextTool(); - }, [currentToolIndex, state.phase, tools, dryRun, outputDir, exit, onComplete]); + }, [currentToolIndex, state.phase, dryRun, outputDir, exit, onComplete]); const getStatusSummary = () => { const completed = tools.filter(t => t.status === 'completed').length;