getmy-ruflo 3.5.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/ruflo.js +29 -0
- package/package.json +50 -0
- package/v3/@claude-flow/cli/bin/cli.js +156 -0
- package/v3/@claude-flow/cli/bin/mcp-server.js +199 -0
- package/v3/@claude-flow/cli/bin/mcp-sse-server.js +596 -0
- package/v3/@claude-flow/cli/bin/preinstall.cjs +2 -0
- package/v3/@claude-flow/cli/dist/src/appliance/gguf-engine.d.ts +91 -0
- package/v3/@claude-flow/cli/dist/src/appliance/gguf-engine.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/appliance/gguf-engine.js +425 -0
- package/v3/@claude-flow/cli/dist/src/appliance/gguf-engine.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/appliance/ruvllm-bridge.d.ts +102 -0
- package/v3/@claude-flow/cli/dist/src/appliance/ruvllm-bridge.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/appliance/ruvllm-bridge.js +292 -0
- package/v3/@claude-flow/cli/dist/src/appliance/ruvllm-bridge.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/appliance/rvfa-builder.d.ts +44 -0
- package/v3/@claude-flow/cli/dist/src/appliance/rvfa-builder.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/appliance/rvfa-builder.js +329 -0
- package/v3/@claude-flow/cli/dist/src/appliance/rvfa-builder.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/appliance/rvfa-distribution.d.ts +97 -0
- package/v3/@claude-flow/cli/dist/src/appliance/rvfa-distribution.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/appliance/rvfa-distribution.js +370 -0
- package/v3/@claude-flow/cli/dist/src/appliance/rvfa-distribution.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/appliance/rvfa-format.d.ts +111 -0
- package/v3/@claude-flow/cli/dist/src/appliance/rvfa-format.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/appliance/rvfa-format.js +393 -0
- package/v3/@claude-flow/cli/dist/src/appliance/rvfa-format.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/appliance/rvfa-runner.d.ts +69 -0
- package/v3/@claude-flow/cli/dist/src/appliance/rvfa-runner.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/appliance/rvfa-runner.js +237 -0
- package/v3/@claude-flow/cli/dist/src/appliance/rvfa-runner.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/appliance/rvfa-signing.d.ts +123 -0
- package/v3/@claude-flow/cli/dist/src/appliance/rvfa-signing.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/appliance/rvfa-signing.js +347 -0
- package/v3/@claude-flow/cli/dist/src/appliance/rvfa-signing.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/benchmarks/pretrain/index.d.ts +58 -0
- package/v3/@claude-flow/cli/dist/src/benchmarks/pretrain/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/benchmarks/pretrain/index.js +404 -0
- package/v3/@claude-flow/cli/dist/src/benchmarks/pretrain/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/agent.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/agent.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/agent.js +919 -0
- package/v3/@claude-flow/cli/dist/src/commands/agent.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/analyze.d.ts +19 -0
- package/v3/@claude-flow/cli/dist/src/commands/analyze.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/analyze.js +1823 -0
- package/v3/@claude-flow/cli/dist/src/commands/analyze.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/appliance-advanced.d.ts +9 -0
- package/v3/@claude-flow/cli/dist/src/commands/appliance-advanced.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/appliance-advanced.js +215 -0
- package/v3/@claude-flow/cli/dist/src/commands/appliance-advanced.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/appliance.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/appliance.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/appliance.js +406 -0
- package/v3/@claude-flow/cli/dist/src/commands/appliance.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/benchmark.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/benchmark.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/benchmark.js +459 -0
- package/v3/@claude-flow/cli/dist/src/commands/benchmark.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/claims.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/claims.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/claims.js +373 -0
- package/v3/@claude-flow/cli/dist/src/commands/claims.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/cleanup.d.ts +13 -0
- package/v3/@claude-flow/cli/dist/src/commands/cleanup.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/cleanup.js +218 -0
- package/v3/@claude-flow/cli/dist/src/commands/cleanup.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/completions.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/completions.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/completions.js +539 -0
- package/v3/@claude-flow/cli/dist/src/commands/completions.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/config.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/config.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/config.js +406 -0
- package/v3/@claude-flow/cli/dist/src/commands/config.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/daemon.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/daemon.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/daemon.js +656 -0
- package/v3/@claude-flow/cli/dist/src/commands/daemon.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/deployment.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/deployment.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/deployment.js +289 -0
- package/v3/@claude-flow/cli/dist/src/commands/deployment.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/doctor.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/doctor.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/doctor.js +619 -0
- package/v3/@claude-flow/cli/dist/src/commands/doctor.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/embeddings.d.ts +18 -0
- package/v3/@claude-flow/cli/dist/src/commands/embeddings.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/embeddings.js +1576 -0
- package/v3/@claude-flow/cli/dist/src/commands/embeddings.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/guidance.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/guidance.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/guidance.js +560 -0
- package/v3/@claude-flow/cli/dist/src/commands/guidance.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/hive-mind.d.ts +11 -0
- package/v3/@claude-flow/cli/dist/src/commands/hive-mind.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/hive-mind.js +1230 -0
- package/v3/@claude-flow/cli/dist/src/commands/hive-mind.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/hooks.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/hooks.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/hooks.js +4441 -0
- package/v3/@claude-flow/cli/dist/src/commands/hooks.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/index.d.ts +115 -0
- package/v3/@claude-flow/cli/dist/src/commands/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/index.js +377 -0
- package/v3/@claude-flow/cli/dist/src/commands/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/init.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/init.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/init.js +969 -0
- package/v3/@claude-flow/cli/dist/src/commands/init.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/issues.d.ts +21 -0
- package/v3/@claude-flow/cli/dist/src/commands/issues.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/issues.js +567 -0
- package/v3/@claude-flow/cli/dist/src/commands/issues.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/mcp.d.ts +11 -0
- package/v3/@claude-flow/cli/dist/src/commands/mcp.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/mcp.js +779 -0
- package/v3/@claude-flow/cli/dist/src/commands/mcp.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/memory.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/memory.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/memory.js +1292 -0
- package/v3/@claude-flow/cli/dist/src/commands/memory.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/migrate.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/migrate.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/migrate.js +410 -0
- package/v3/@claude-flow/cli/dist/src/commands/migrate.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/neural.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/neural.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/neural.js +1454 -0
- package/v3/@claude-flow/cli/dist/src/commands/neural.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/performance.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/performance.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/performance.js +579 -0
- package/v3/@claude-flow/cli/dist/src/commands/performance.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/plugins.d.ts +11 -0
- package/v3/@claude-flow/cli/dist/src/commands/plugins.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/plugins.js +820 -0
- package/v3/@claude-flow/cli/dist/src/commands/plugins.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/process.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/process.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/process.js +641 -0
- package/v3/@claude-flow/cli/dist/src/commands/process.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/progress.d.ts +11 -0
- package/v3/@claude-flow/cli/dist/src/commands/progress.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/progress.js +259 -0
- package/v3/@claude-flow/cli/dist/src/commands/progress.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/providers.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/providers.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/providers.js +232 -0
- package/v3/@claude-flow/cli/dist/src/commands/providers.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/route.d.ts +16 -0
- package/v3/@claude-flow/cli/dist/src/commands/route.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/route.js +813 -0
- package/v3/@claude-flow/cli/dist/src/commands/route.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/backup.d.ts +11 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/backup.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/backup.js +746 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/backup.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/benchmark.d.ts +11 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/benchmark.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/benchmark.js +480 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/benchmark.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/import.d.ts +18 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/import.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/import.js +349 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/import.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/index.d.ts +29 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/index.js +129 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/init.d.ts +11 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/init.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/init.js +431 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/init.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/migrate.d.ts +11 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/migrate.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/migrate.js +481 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/migrate.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/optimize.d.ts +11 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/optimize.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/optimize.js +503 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/optimize.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/setup.d.ts +18 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/setup.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/setup.js +765 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/setup.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/status.d.ts +11 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/status.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/status.js +456 -0
- package/v3/@claude-flow/cli/dist/src/commands/ruvector/status.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/security.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/commands/security.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/security.js +606 -0
- package/v3/@claude-flow/cli/dist/src/commands/security.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/session.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/session.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/session.js +750 -0
- package/v3/@claude-flow/cli/dist/src/commands/session.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/start.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/start.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/start.js +418 -0
- package/v3/@claude-flow/cli/dist/src/commands/start.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/status.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/status.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/status.js +591 -0
- package/v3/@claude-flow/cli/dist/src/commands/status.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/swarm.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/swarm.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/swarm.js +748 -0
- package/v3/@claude-flow/cli/dist/src/commands/swarm.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/task.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/task.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/task.js +671 -0
- package/v3/@claude-flow/cli/dist/src/commands/task.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/transfer-store.d.ts +13 -0
- package/v3/@claude-flow/cli/dist/src/commands/transfer-store.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/transfer-store.js +428 -0
- package/v3/@claude-flow/cli/dist/src/commands/transfer-store.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/update.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/update.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/update.js +276 -0
- package/v3/@claude-flow/cli/dist/src/commands/update.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/workflow.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/commands/workflow.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/commands/workflow.js +617 -0
- package/v3/@claude-flow/cli/dist/src/commands/workflow.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/config-adapter.d.ts +15 -0
- package/v3/@claude-flow/cli/dist/src/config-adapter.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/config-adapter.js +186 -0
- package/v3/@claude-flow/cli/dist/src/config-adapter.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/index.d.ts +76 -0
- package/v3/@claude-flow/cli/dist/src/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/index.js +472 -0
- package/v3/@claude-flow/cli/dist/src/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/infrastructure/in-memory-repositories.d.ts +68 -0
- package/v3/@claude-flow/cli/dist/src/infrastructure/in-memory-repositories.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/infrastructure/in-memory-repositories.js +264 -0
- package/v3/@claude-flow/cli/dist/src/infrastructure/in-memory-repositories.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/claudemd-generator.d.ts +25 -0
- package/v3/@claude-flow/cli/dist/src/init/claudemd-generator.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/claudemd-generator.js +486 -0
- package/v3/@claude-flow/cli/dist/src/init/claudemd-generator.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/executor.d.ts +41 -0
- package/v3/@claude-flow/cli/dist/src/init/executor.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/executor.js +1738 -0
- package/v3/@claude-flow/cli/dist/src/init/executor.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/helpers-generator.d.ts +60 -0
- package/v3/@claude-flow/cli/dist/src/init/helpers-generator.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/helpers-generator.js +1181 -0
- package/v3/@claude-flow/cli/dist/src/init/helpers-generator.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/index.d.ts +13 -0
- package/v3/@claude-flow/cli/dist/src/init/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/index.js +15 -0
- package/v3/@claude-flow/cli/dist/src/init/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/mcp-generator.d.ts +26 -0
- package/v3/@claude-flow/cli/dist/src/init/mcp-generator.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/mcp-generator.js +116 -0
- package/v3/@claude-flow/cli/dist/src/init/mcp-generator.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/settings-generator.d.ts +14 -0
- package/v3/@claude-flow/cli/dist/src/init/settings-generator.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/settings-generator.js +403 -0
- package/v3/@claude-flow/cli/dist/src/init/settings-generator.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/statusline-generator.d.ts +28 -0
- package/v3/@claude-flow/cli/dist/src/init/statusline-generator.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/statusline-generator.js +833 -0
- package/v3/@claude-flow/cli/dist/src/init/statusline-generator.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/types.d.ts +295 -0
- package/v3/@claude-flow/cli/dist/src/init/types.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/init/types.js +263 -0
- package/v3/@claude-flow/cli/dist/src/init/types.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-client.d.ts +98 -0
- package/v3/@claude-flow/cli/dist/src/mcp-client.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-client.js +278 -0
- package/v3/@claude-flow/cli/dist/src/mcp-client.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-server.d.ts +161 -0
- package/v3/@claude-flow/cli/dist/src/mcp-server.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-server.js +627 -0
- package/v3/@claude-flow/cli/dist/src/mcp-server.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/agent-tools.d.ts +49 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/agent-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/agent-tools.js +622 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/agent-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/agentdb-tools.d.ts +30 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/agentdb-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/agentdb-tools.js +557 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/agentdb-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/analyze-tools.d.ts +38 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/analyze-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/analyze-tools.js +317 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/analyze-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/auto-install.d.ts +83 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/auto-install.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/auto-install.js +131 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/auto-install.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/browser-tools.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/browser-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/browser-tools.js +639 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/browser-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/claims-tools.d.ts +12 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/claims-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/claims-tools.js +732 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/claims-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/config-tools.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/config-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/config-tools.js +352 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/config-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/coordination-tools.d.ts +13 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/coordination-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/coordination-tools.js +827 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/coordination-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/daa-tools.d.ts +13 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/daa-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/daa-tools.js +426 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/daa-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/dev-tools.d.ts +11 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/dev-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/dev-tools.js +713 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/dev-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/embeddings-tools.d.ts +9 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/embeddings-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/embeddings-tools.js +782 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/embeddings-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/github-tools.d.ts +13 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/github-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/github-tools.js +373 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/github-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/hive-mind-tools.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/hive-mind-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/hive-mind-tools.js +811 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/hive-mind-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.d.ts +44 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.js +3112 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/index.d.ts +29 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/index.js +28 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/infrastructure-tools.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/infrastructure-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/infrastructure-tools.js +547 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/infrastructure-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/memory-tools.d.ts +14 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/memory-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/memory-tools.js +512 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/memory-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/neural-tools.d.ts +16 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/neural-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/neural-tools.js +461 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/neural-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/performance-tools.d.ts +16 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/performance-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/performance-tools.js +534 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/performance-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/plugin-tools.d.ts +19 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/plugin-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/plugin-tools.js +135 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/plugin-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/process-manager-tools.d.ts +9 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/process-manager-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/process-manager-tools.js +516 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/process-manager-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/progress-tools.d.ts +14 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/progress-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/progress-tools.js +348 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/progress-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/refactor-tools.d.ts +10 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/refactor-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/refactor-tools.js +471 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/refactor-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/ruvllm-tools.d.ts +9 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/ruvllm-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/ruvllm-tools.js +283 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/ruvllm-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/security-tools.d.ts +18 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/security-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/security-tools.js +434 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/security-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/session-tools.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/session-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/session-tools.js +315 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/session-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/skill-dispatch-tools.d.ts +17 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/skill-dispatch-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/skill-dispatch-tools.js +384 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/skill-dispatch-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/skills-tools.d.ts +14 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/skills-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/skills-tools.js +295 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/skills-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/swarm-tools.d.ts +9 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/swarm-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/swarm-tools.js +321 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/swarm-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/system-tools.d.ts +13 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/system-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/system-tools.js +417 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/system-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/task-tools.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/task-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/task-tools.js +404 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/task-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/terminal-tools.d.ts +15 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/terminal-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/terminal-tools.js +339 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/terminal-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/transfer-tools.d.ts +14 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/transfer-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/transfer-tools.js +396 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/transfer-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/types.d.ts +31 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/types.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/types.js +7 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/types.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/wasm-agent-tools.d.ts +9 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/wasm-agent-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/wasm-agent-tools.js +230 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/wasm-agent-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/workflow-tools.d.ts +8 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/workflow-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/workflow-tools.js +572 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/workflow-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/memory/ewc-consolidation.d.ts +295 -0
- package/v3/@claude-flow/cli/dist/src/memory/ewc-consolidation.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/memory/ewc-consolidation.js +601 -0
- package/v3/@claude-flow/cli/dist/src/memory/ewc-consolidation.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/memory/intelligence.d.ts +338 -0
- package/v3/@claude-flow/cli/dist/src/memory/intelligence.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/memory/intelligence.js +1023 -0
- package/v3/@claude-flow/cli/dist/src/memory/intelligence.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/memory/memory-bridge.d.ts +407 -0
- package/v3/@claude-flow/cli/dist/src/memory/memory-bridge.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/memory/memory-bridge.js +1494 -0
- package/v3/@claude-flow/cli/dist/src/memory/memory-bridge.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/memory/memory-initializer.d.ts +434 -0
- package/v3/@claude-flow/cli/dist/src/memory/memory-initializer.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/memory/memory-initializer.js +2243 -0
- package/v3/@claude-flow/cli/dist/src/memory/memory-initializer.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/memory/sona-optimizer.d.ts +227 -0
- package/v3/@claude-flow/cli/dist/src/memory/sona-optimizer.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/memory/sona-optimizer.js +633 -0
- package/v3/@claude-flow/cli/dist/src/memory/sona-optimizer.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/output.d.ts +133 -0
- package/v3/@claude-flow/cli/dist/src/output.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/output.js +514 -0
- package/v3/@claude-flow/cli/dist/src/output.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/parser.d.ts +51 -0
- package/v3/@claude-flow/cli/dist/src/parser.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/parser.js +423 -0
- package/v3/@claude-flow/cli/dist/src/parser.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/manager.d.ts +133 -0
- package/v3/@claude-flow/cli/dist/src/plugins/manager.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/manager.js +400 -0
- package/v3/@claude-flow/cli/dist/src/plugins/manager.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/discovery.d.ts +88 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/discovery.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/discovery.js +1147 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/discovery.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/index.d.ts +76 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/index.js +141 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/search.d.ts +46 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/search.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/search.js +230 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/search.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/types.d.ts +274 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/types.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/types.js +7 -0
- package/v3/@claude-flow/cli/dist/src/plugins/store/types.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/demo-plugin-store.d.ts +7 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/demo-plugin-store.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/demo-plugin-store.js +126 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/demo-plugin-store.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/standalone-test.d.ts +12 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/standalone-test.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/standalone-test.js +188 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/standalone-test.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/test-plugin-store.d.ts +7 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/test-plugin-store.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/test-plugin-store.js +206 -0
- package/v3/@claude-flow/cli/dist/src/plugins/tests/test-plugin-store.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/process-supervisor.d.ts +41 -0
- package/v3/@claude-flow/cli/dist/src/process-supervisor.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/process-supervisor.js +214 -0
- package/v3/@claude-flow/cli/dist/src/process-supervisor.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/production/circuit-breaker.d.ts +101 -0
- package/v3/@claude-flow/cli/dist/src/production/circuit-breaker.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/production/circuit-breaker.js +241 -0
- package/v3/@claude-flow/cli/dist/src/production/circuit-breaker.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/production/error-handler.d.ts +92 -0
- package/v3/@claude-flow/cli/dist/src/production/error-handler.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/production/error-handler.js +299 -0
- package/v3/@claude-flow/cli/dist/src/production/error-handler.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/production/index.d.ts +23 -0
- package/v3/@claude-flow/cli/dist/src/production/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/production/index.js +18 -0
- package/v3/@claude-flow/cli/dist/src/production/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/production/monitoring.d.ts +161 -0
- package/v3/@claude-flow/cli/dist/src/production/monitoring.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/production/monitoring.js +356 -0
- package/v3/@claude-flow/cli/dist/src/production/monitoring.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/production/rate-limiter.d.ts +80 -0
- package/v3/@claude-flow/cli/dist/src/production/rate-limiter.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/production/rate-limiter.js +201 -0
- package/v3/@claude-flow/cli/dist/src/production/rate-limiter.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/production/retry.d.ts +48 -0
- package/v3/@claude-flow/cli/dist/src/production/retry.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/production/retry.js +179 -0
- package/v3/@claude-flow/cli/dist/src/production/retry.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/prompt.d.ts +44 -0
- package/v3/@claude-flow/cli/dist/src/prompt.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/prompt.js +501 -0
- package/v3/@claude-flow/cli/dist/src/prompt.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/runtime/headless.d.ts +60 -0
- package/v3/@claude-flow/cli/dist/src/runtime/headless.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/runtime/headless.js +284 -0
- package/v3/@claude-flow/cli/dist/src/runtime/headless.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/agent-wasm.d.ts +182 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/agent-wasm.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/agent-wasm.js +316 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/agent-wasm.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/ast-analyzer.d.ts +67 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/ast-analyzer.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/ast-analyzer.js +277 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/ast-analyzer.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/coverage-router.d.ts +160 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/coverage-router.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/coverage-router.js +529 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/coverage-router.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/coverage-tools.d.ts +33 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/coverage-tools.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/coverage-tools.js +157 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/coverage-tools.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/diff-classifier.d.ts +175 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/diff-classifier.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/diff-classifier.js +698 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/diff-classifier.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/enhanced-model-router.d.ts +146 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/enhanced-model-router.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/enhanced-model-router.js +529 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/enhanced-model-router.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/flash-attention.d.ts +195 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/flash-attention.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/flash-attention.js +643 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/flash-attention.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/graph-analyzer.d.ts +187 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/graph-analyzer.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/graph-analyzer.js +929 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/graph-analyzer.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/index.d.ts +40 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/index.js +76 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/lora-adapter.d.ts +218 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/lora-adapter.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/lora-adapter.js +455 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/lora-adapter.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/model-router.d.ts +220 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/model-router.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/model-router.js +488 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/model-router.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/moe-router.d.ts +206 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/moe-router.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/moe-router.js +626 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/moe-router.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/q-learning-router.d.ts +211 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/q-learning-router.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/q-learning-router.js +681 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/q-learning-router.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/ruvllm-wasm.d.ts +179 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/ruvllm-wasm.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/ruvllm-wasm.js +363 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/ruvllm-wasm.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/semantic-router.d.ts +77 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/semantic-router.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/semantic-router.js +178 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/semantic-router.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/vector-db.d.ts +69 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/vector-db.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/vector-db.js +243 -0
- package/v3/@claude-flow/cli/dist/src/ruvector/vector-db.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/agentic-flow-bridge.d.ts +54 -0
- package/v3/@claude-flow/cli/dist/src/services/agentic-flow-bridge.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/agentic-flow-bridge.js +100 -0
- package/v3/@claude-flow/cli/dist/src/services/agentic-flow-bridge.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/claim-service.d.ts +204 -0
- package/v3/@claude-flow/cli/dist/src/services/claim-service.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/claim-service.js +818 -0
- package/v3/@claude-flow/cli/dist/src/services/claim-service.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/container-worker-pool.d.ts +197 -0
- package/v3/@claude-flow/cli/dist/src/services/container-worker-pool.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/container-worker-pool.js +583 -0
- package/v3/@claude-flow/cli/dist/src/services/container-worker-pool.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/headless-worker-executor.d.ts +304 -0
- package/v3/@claude-flow/cli/dist/src/services/headless-worker-executor.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/headless-worker-executor.js +1011 -0
- package/v3/@claude-flow/cli/dist/src/services/headless-worker-executor.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/index.d.ts +13 -0
- package/v3/@claude-flow/cli/dist/src/services/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/index.js +11 -0
- package/v3/@claude-flow/cli/dist/src/services/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/registry-api.d.ts +58 -0
- package/v3/@claude-flow/cli/dist/src/services/registry-api.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/registry-api.js +146 -0
- package/v3/@claude-flow/cli/dist/src/services/registry-api.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/ruvector-training.d.ts +222 -0
- package/v3/@claude-flow/cli/dist/src/services/ruvector-training.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/ruvector-training.js +688 -0
- package/v3/@claude-flow/cli/dist/src/services/ruvector-training.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/worker-daemon.d.ts +237 -0
- package/v3/@claude-flow/cli/dist/src/services/worker-daemon.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/worker-daemon.js +959 -0
- package/v3/@claude-flow/cli/dist/src/services/worker-daemon.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/worker-queue.d.ts +194 -0
- package/v3/@claude-flow/cli/dist/src/services/worker-queue.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/services/worker-queue.js +513 -0
- package/v3/@claude-flow/cli/dist/src/services/worker-queue.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/suggest.d.ts +53 -0
- package/v3/@claude-flow/cli/dist/src/suggest.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/suggest.js +200 -0
- package/v3/@claude-flow/cli/dist/src/suggest.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/anonymization/index.d.ts +25 -0
- package/v3/@claude-flow/cli/dist/src/transfer/anonymization/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/anonymization/index.js +175 -0
- package/v3/@claude-flow/cli/dist/src/transfer/anonymization/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/deploy-seraphine.d.ts +13 -0
- package/v3/@claude-flow/cli/dist/src/transfer/deploy-seraphine.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/deploy-seraphine.js +205 -0
- package/v3/@claude-flow/cli/dist/src/transfer/deploy-seraphine.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/export.d.ts +25 -0
- package/v3/@claude-flow/cli/dist/src/transfer/export.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/export.js +113 -0
- package/v3/@claude-flow/cli/dist/src/transfer/export.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/index.d.ts +12 -0
- package/v3/@claude-flow/cli/dist/src/transfer/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/index.js +31 -0
- package/v3/@claude-flow/cli/dist/src/transfer/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/ipfs/client.d.ts +109 -0
- package/v3/@claude-flow/cli/dist/src/transfer/ipfs/client.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/ipfs/client.js +307 -0
- package/v3/@claude-flow/cli/dist/src/transfer/ipfs/client.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/ipfs/upload.d.ts +95 -0
- package/v3/@claude-flow/cli/dist/src/transfer/ipfs/upload.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/ipfs/upload.js +411 -0
- package/v3/@claude-flow/cli/dist/src/transfer/ipfs/upload.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/models/seraphine.d.ts +72 -0
- package/v3/@claude-flow/cli/dist/src/transfer/models/seraphine.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/models/seraphine.js +373 -0
- package/v3/@claude-flow/cli/dist/src/transfer/models/seraphine.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/serialization/cfp.d.ts +49 -0
- package/v3/@claude-flow/cli/dist/src/transfer/serialization/cfp.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/serialization/cfp.js +183 -0
- package/v3/@claude-flow/cli/dist/src/transfer/serialization/cfp.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/storage/gcs.d.ts +82 -0
- package/v3/@claude-flow/cli/dist/src/transfer/storage/gcs.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/storage/gcs.js +272 -0
- package/v3/@claude-flow/cli/dist/src/transfer/storage/gcs.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/storage/index.d.ts +6 -0
- package/v3/@claude-flow/cli/dist/src/transfer/storage/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/storage/index.js +6 -0
- package/v3/@claude-flow/cli/dist/src/transfer/storage/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/discovery.d.ts +84 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/discovery.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/discovery.js +382 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/discovery.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/download.d.ts +70 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/download.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/download.js +334 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/download.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/index.d.ts +84 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/index.js +153 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/publish.d.ts +76 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/publish.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/publish.js +294 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/publish.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/registry.d.ts +58 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/registry.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/registry.js +285 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/registry.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/search.d.ts +54 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/search.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/search.js +232 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/search.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/tests/standalone-test.d.ts +12 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/tests/standalone-test.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/tests/standalone-test.js +190 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/tests/standalone-test.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/types.d.ts +193 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/types.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/types.js +6 -0
- package/v3/@claude-flow/cli/dist/src/transfer/store/types.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/test-seraphine.d.ts +6 -0
- package/v3/@claude-flow/cli/dist/src/transfer/test-seraphine.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/test-seraphine.js +105 -0
- package/v3/@claude-flow/cli/dist/src/transfer/test-seraphine.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/tests/test-store.d.ts +7 -0
- package/v3/@claude-flow/cli/dist/src/transfer/tests/test-store.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/tests/test-store.js +214 -0
- package/v3/@claude-flow/cli/dist/src/transfer/tests/test-store.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/types.d.ts +245 -0
- package/v3/@claude-flow/cli/dist/src/transfer/types.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/transfer/types.js +6 -0
- package/v3/@claude-flow/cli/dist/src/transfer/types.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/types.d.ts +198 -0
- package/v3/@claude-flow/cli/dist/src/types.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/types.js +38 -0
- package/v3/@claude-flow/cli/dist/src/types.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/update/checker.d.ts +34 -0
- package/v3/@claude-flow/cli/dist/src/update/checker.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/update/checker.js +190 -0
- package/v3/@claude-flow/cli/dist/src/update/checker.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/update/executor.d.ts +32 -0
- package/v3/@claude-flow/cli/dist/src/update/executor.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/update/executor.js +181 -0
- package/v3/@claude-flow/cli/dist/src/update/executor.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/update/index.d.ts +33 -0
- package/v3/@claude-flow/cli/dist/src/update/index.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/update/index.js +64 -0
- package/v3/@claude-flow/cli/dist/src/update/index.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/update/rate-limiter.d.ts +20 -0
- package/v3/@claude-flow/cli/dist/src/update/rate-limiter.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/update/rate-limiter.js +96 -0
- package/v3/@claude-flow/cli/dist/src/update/rate-limiter.js.map +1 -0
- package/v3/@claude-flow/cli/dist/src/update/validator.d.ts +17 -0
- package/v3/@claude-flow/cli/dist/src/update/validator.d.ts.map +1 -0
- package/v3/@claude-flow/cli/dist/src/update/validator.js +123 -0
- package/v3/@claude-flow/cli/dist/src/update/validator.js.map +1 -0
- package/v3/@claude-flow/cli/dist/tsconfig.tsbuildinfo +1 -0
- package/v3/@claude-flow/cli/package.json +109 -0
|
@@ -0,0 +1,713 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Developer Power Tools — real execution tools for remote development
|
|
3
|
+
*
|
|
4
|
+
* These tools give a remote Claude instance full development capabilities
|
|
5
|
+
* on the host machine: build, test, git, code search, and file operations.
|
|
6
|
+
*
|
|
7
|
+
* All tools use real system calls — no mocks, no stubs.
|
|
8
|
+
*/
|
|
9
|
+
import { execFile, exec } from 'child_process';
|
|
10
|
+
import { promisify } from 'util';
|
|
11
|
+
import { readFile, readdir, writeFile } from 'fs/promises';
|
|
12
|
+
import { existsSync, statSync } from 'fs';
|
|
13
|
+
import { join, resolve, relative, extname } from 'path';
|
|
14
|
+
const execFileAsync = promisify(execFile);
|
|
15
|
+
const execAsync = promisify(exec);
|
|
16
|
+
// Security: block dangerous paths
|
|
17
|
+
function validatePath(p) {
|
|
18
|
+
const resolved = resolve(p);
|
|
19
|
+
if (resolved.includes('..') && !existsSync(resolved)) {
|
|
20
|
+
throw new Error('Path traversal detected');
|
|
21
|
+
}
|
|
22
|
+
return resolved;
|
|
23
|
+
}
|
|
24
|
+
// Truncate output to prevent overwhelming responses
|
|
25
|
+
function truncate(s, max = 50000) {
|
|
26
|
+
if (s.length <= max)
|
|
27
|
+
return s;
|
|
28
|
+
return s.slice(0, max) + `\n... [truncated ${s.length - max} chars]`;
|
|
29
|
+
}
|
|
30
|
+
export const devTools = [
|
|
31
|
+
// =========================================================================
|
|
32
|
+
// BUILD & TEST
|
|
33
|
+
// =========================================================================
|
|
34
|
+
{
|
|
35
|
+
name: 'dev_build',
|
|
36
|
+
description: 'Run a build command (npm/yarn/pnpm) in a project directory. Returns stdout, stderr, exit code.',
|
|
37
|
+
category: 'dev',
|
|
38
|
+
inputSchema: {
|
|
39
|
+
type: 'object',
|
|
40
|
+
properties: {
|
|
41
|
+
cwd: { type: 'string', description: 'Working directory (default: server cwd)' },
|
|
42
|
+
script: { type: 'string', description: 'Build script name (default: "build")' },
|
|
43
|
+
packageManager: { type: 'string', enum: ['npm', 'yarn', 'pnpm'], description: 'Package manager (default: auto-detect)' },
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
handler: async (input) => {
|
|
47
|
+
const cwd = validatePath(input.cwd || process.cwd());
|
|
48
|
+
const script = input.script || 'build';
|
|
49
|
+
let pm = input.packageManager;
|
|
50
|
+
if (!pm) {
|
|
51
|
+
if (existsSync(join(cwd, 'pnpm-lock.yaml')))
|
|
52
|
+
pm = 'pnpm';
|
|
53
|
+
else if (existsSync(join(cwd, 'yarn.lock')))
|
|
54
|
+
pm = 'yarn';
|
|
55
|
+
else
|
|
56
|
+
pm = 'npm';
|
|
57
|
+
}
|
|
58
|
+
try {
|
|
59
|
+
const { stdout, stderr } = await execAsync(`${pm} run ${script}`, {
|
|
60
|
+
cwd,
|
|
61
|
+
timeout: 300000,
|
|
62
|
+
maxBuffer: 10 * 1024 * 1024,
|
|
63
|
+
env: { ...process.env, FORCE_COLOR: '0' },
|
|
64
|
+
});
|
|
65
|
+
return { success: true, stdout: truncate(stdout), stderr: truncate(stderr), cwd, script, packageManager: pm };
|
|
66
|
+
}
|
|
67
|
+
catch (err) {
|
|
68
|
+
return {
|
|
69
|
+
success: false,
|
|
70
|
+
exitCode: err.code || 1,
|
|
71
|
+
stdout: truncate(err.stdout || ''),
|
|
72
|
+
stderr: truncate(err.stderr || ''),
|
|
73
|
+
cwd,
|
|
74
|
+
script,
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: 'dev_test',
|
|
81
|
+
description: 'Run tests with structured output. Captures pass/fail counts, coverage if available.',
|
|
82
|
+
category: 'dev',
|
|
83
|
+
inputSchema: {
|
|
84
|
+
type: 'object',
|
|
85
|
+
properties: {
|
|
86
|
+
cwd: { type: 'string', description: 'Working directory' },
|
|
87
|
+
script: { type: 'string', description: 'Test script (default: "test")' },
|
|
88
|
+
pattern: { type: 'string', description: 'Test file pattern or name filter' },
|
|
89
|
+
coverage: { type: 'boolean', description: 'Run with coverage (default: false)' },
|
|
90
|
+
timeout: { type: 'number', description: 'Timeout in ms (default: 300000)' },
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
handler: async (input) => {
|
|
94
|
+
const cwd = validatePath(input.cwd || process.cwd());
|
|
95
|
+
const script = input.script || 'test';
|
|
96
|
+
const pattern = input.pattern;
|
|
97
|
+
const coverage = input.coverage;
|
|
98
|
+
const timeout = Math.min(input.timeout || 300000, 600000);
|
|
99
|
+
let pm = 'npm';
|
|
100
|
+
if (existsSync(join(cwd, 'pnpm-lock.yaml')))
|
|
101
|
+
pm = 'pnpm';
|
|
102
|
+
else if (existsSync(join(cwd, 'yarn.lock')))
|
|
103
|
+
pm = 'yarn';
|
|
104
|
+
let cmd = `${pm} run ${script}`;
|
|
105
|
+
if (pattern)
|
|
106
|
+
cmd += ` -- ${pattern}`;
|
|
107
|
+
if (coverage)
|
|
108
|
+
cmd += ' -- --coverage';
|
|
109
|
+
try {
|
|
110
|
+
const { stdout, stderr } = await execAsync(cmd, {
|
|
111
|
+
cwd,
|
|
112
|
+
timeout,
|
|
113
|
+
maxBuffer: 10 * 1024 * 1024,
|
|
114
|
+
env: { ...process.env, FORCE_COLOR: '0', CI: '1' },
|
|
115
|
+
});
|
|
116
|
+
// Parse vitest/jest output for summary
|
|
117
|
+
const passMatch = stdout.match(/(\d+)\s+passed/);
|
|
118
|
+
const failMatch = stdout.match(/(\d+)\s+failed/);
|
|
119
|
+
const skipMatch = stdout.match(/(\d+)\s+skipped/);
|
|
120
|
+
return {
|
|
121
|
+
success: true,
|
|
122
|
+
passed: passMatch ? parseInt(passMatch[1]) : null,
|
|
123
|
+
failed: failMatch ? parseInt(failMatch[1]) : 0,
|
|
124
|
+
skipped: skipMatch ? parseInt(skipMatch[1]) : 0,
|
|
125
|
+
stdout: truncate(stdout),
|
|
126
|
+
stderr: truncate(stderr),
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
catch (err) {
|
|
130
|
+
const stdout = err.stdout || '';
|
|
131
|
+
const passMatch = stdout.match(/(\d+)\s+passed/);
|
|
132
|
+
const failMatch = stdout.match(/(\d+)\s+failed/);
|
|
133
|
+
return {
|
|
134
|
+
success: false,
|
|
135
|
+
passed: passMatch ? parseInt(passMatch[1]) : null,
|
|
136
|
+
failed: failMatch ? parseInt(failMatch[1]) : null,
|
|
137
|
+
stdout: truncate(stdout),
|
|
138
|
+
stderr: truncate(err.stderr || ''),
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: 'dev_install',
|
|
145
|
+
description: 'Install project dependencies.',
|
|
146
|
+
category: 'dev',
|
|
147
|
+
inputSchema: {
|
|
148
|
+
type: 'object',
|
|
149
|
+
properties: {
|
|
150
|
+
cwd: { type: 'string', description: 'Working directory' },
|
|
151
|
+
packages: { type: 'string', description: 'Specific packages to install (space-separated)' },
|
|
152
|
+
dev: { type: 'boolean', description: 'Install as dev dependency' },
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
handler: async (input) => {
|
|
156
|
+
const cwd = validatePath(input.cwd || process.cwd());
|
|
157
|
+
const packages = input.packages;
|
|
158
|
+
const dev = input.dev;
|
|
159
|
+
let pm = 'npm';
|
|
160
|
+
if (existsSync(join(cwd, 'pnpm-lock.yaml')))
|
|
161
|
+
pm = 'pnpm';
|
|
162
|
+
else if (existsSync(join(cwd, 'yarn.lock')))
|
|
163
|
+
pm = 'yarn';
|
|
164
|
+
let cmd = `${pm} install`;
|
|
165
|
+
if (packages)
|
|
166
|
+
cmd += ` ${packages}`;
|
|
167
|
+
if (dev)
|
|
168
|
+
cmd += pm === 'npm' ? ' --save-dev' : ' -D';
|
|
169
|
+
cmd += ' --legacy-peer-deps';
|
|
170
|
+
try {
|
|
171
|
+
const { stdout, stderr } = await execAsync(cmd, { cwd, timeout: 300000, maxBuffer: 5 * 1024 * 1024 });
|
|
172
|
+
return { success: true, stdout: truncate(stdout), stderr: truncate(stderr) };
|
|
173
|
+
}
|
|
174
|
+
catch (err) {
|
|
175
|
+
return { success: false, stdout: truncate(err.stdout || ''), stderr: truncate(err.stderr || '') };
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
// =========================================================================
|
|
180
|
+
// GIT OPERATIONS
|
|
181
|
+
// =========================================================================
|
|
182
|
+
{
|
|
183
|
+
name: 'dev_git',
|
|
184
|
+
description: 'Execute git commands safely. Supports: status, log, diff, blame, branch, stash, show, checkout (files only), add, commit, push, pull, fetch.',
|
|
185
|
+
category: 'dev',
|
|
186
|
+
inputSchema: {
|
|
187
|
+
type: 'object',
|
|
188
|
+
properties: {
|
|
189
|
+
command: { type: 'string', description: 'Git subcommand (e.g., "status", "log --oneline -20", "diff HEAD~1", "blame src/foo.ts")' },
|
|
190
|
+
cwd: { type: 'string', description: 'Repository directory' },
|
|
191
|
+
},
|
|
192
|
+
required: ['command'],
|
|
193
|
+
},
|
|
194
|
+
handler: async (input) => {
|
|
195
|
+
const cwd = validatePath(input.cwd || process.cwd());
|
|
196
|
+
const command = input.command.trim();
|
|
197
|
+
// Block destructive git operations
|
|
198
|
+
const blocked = ['push --force', 'reset --hard', 'clean -f', 'branch -D', 'rebase -i'];
|
|
199
|
+
for (const b of blocked) {
|
|
200
|
+
if (command.includes(b)) {
|
|
201
|
+
return { success: false, error: `Blocked: "git ${b}" is destructive. Use explicit terminal_execute if you really need this.` };
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
try {
|
|
205
|
+
const { stdout, stderr } = await execAsync(`git ${command}`, {
|
|
206
|
+
cwd,
|
|
207
|
+
timeout: 60000,
|
|
208
|
+
maxBuffer: 10 * 1024 * 1024,
|
|
209
|
+
env: { ...process.env, GIT_PAGER: 'cat' },
|
|
210
|
+
});
|
|
211
|
+
return { success: true, output: truncate(stdout), stderr: truncate(stderr) };
|
|
212
|
+
}
|
|
213
|
+
catch (err) {
|
|
214
|
+
return { success: false, output: truncate(err.stdout || ''), stderr: truncate(err.stderr || ''), exitCode: err.code };
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
name: 'dev_git_log_analyze',
|
|
220
|
+
description: 'Analyze git history for a file or directory. Returns structured commit data.',
|
|
221
|
+
category: 'dev',
|
|
222
|
+
inputSchema: {
|
|
223
|
+
type: 'object',
|
|
224
|
+
properties: {
|
|
225
|
+
path: { type: 'string', description: 'File or directory to analyze' },
|
|
226
|
+
cwd: { type: 'string', description: 'Repository directory' },
|
|
227
|
+
limit: { type: 'number', description: 'Max commits (default: 20)' },
|
|
228
|
+
since: { type: 'string', description: 'Since date (e.g., "2 weeks ago")' },
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
handler: async (input) => {
|
|
232
|
+
const cwd = validatePath(input.cwd || process.cwd());
|
|
233
|
+
const path = input.path || '.';
|
|
234
|
+
const limit = Math.min(input.limit || 20, 100);
|
|
235
|
+
const since = input.since;
|
|
236
|
+
let cmd = `git log --format="%H|%an|%ae|%aI|%s" -n ${limit}`;
|
|
237
|
+
if (since)
|
|
238
|
+
cmd += ` --since="${since}"`;
|
|
239
|
+
cmd += ` -- "${path}"`;
|
|
240
|
+
try {
|
|
241
|
+
const { stdout } = await execAsync(cmd, { cwd, timeout: 30000 });
|
|
242
|
+
const commits = stdout.trim().split('\n').filter(Boolean).map(line => {
|
|
243
|
+
const [hash, author, email, date, ...msgParts] = line.split('|');
|
|
244
|
+
return { hash: hash?.slice(0, 12), author, email, date, message: msgParts.join('|') };
|
|
245
|
+
});
|
|
246
|
+
// Also get file change stats
|
|
247
|
+
const { stdout: statOut } = await execAsync(`git log --format="" --numstat -n ${limit} -- "${path}"`, { cwd, timeout: 30000 });
|
|
248
|
+
const totalChanges = statOut.trim().split('\n').filter(Boolean).length;
|
|
249
|
+
return { success: true, commits, totalChanges, path, limit };
|
|
250
|
+
}
|
|
251
|
+
catch (err) {
|
|
252
|
+
return { success: false, error: err.message };
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
},
|
|
256
|
+
// =========================================================================
|
|
257
|
+
// CODE SEARCH & ANALYSIS
|
|
258
|
+
// =========================================================================
|
|
259
|
+
{
|
|
260
|
+
name: 'dev_search_code',
|
|
261
|
+
description: 'Search code across files using ripgrep (rg) or grep. Returns matching lines with file paths and line numbers.',
|
|
262
|
+
category: 'dev',
|
|
263
|
+
inputSchema: {
|
|
264
|
+
type: 'object',
|
|
265
|
+
properties: {
|
|
266
|
+
pattern: { type: 'string', description: 'Search pattern (regex supported)' },
|
|
267
|
+
cwd: { type: 'string', description: 'Directory to search' },
|
|
268
|
+
glob: { type: 'string', description: 'File glob filter (e.g., "*.ts", "src/**/*.py")' },
|
|
269
|
+
caseSensitive: { type: 'boolean', description: 'Case sensitive (default: false)' },
|
|
270
|
+
maxResults: { type: 'number', description: 'Max results (default: 50)' },
|
|
271
|
+
context: { type: 'number', description: 'Lines of context around match (default: 0)' },
|
|
272
|
+
},
|
|
273
|
+
required: ['pattern'],
|
|
274
|
+
},
|
|
275
|
+
handler: async (input) => {
|
|
276
|
+
const cwd = validatePath(input.cwd || process.cwd());
|
|
277
|
+
const pattern = input.pattern;
|
|
278
|
+
const glob = input.glob;
|
|
279
|
+
const caseSensitive = input.caseSensitive;
|
|
280
|
+
const maxResults = Math.min(input.maxResults || 50, 200);
|
|
281
|
+
const context = Math.min(input.context || 0, 10);
|
|
282
|
+
// Try rg first, fall back to grep
|
|
283
|
+
const useRg = await execAsync('rg --version', { timeout: 5000 }).then(() => true).catch(() => false);
|
|
284
|
+
let cmd;
|
|
285
|
+
if (useRg) {
|
|
286
|
+
cmd = `rg --json -m ${maxResults}`;
|
|
287
|
+
if (!caseSensitive)
|
|
288
|
+
cmd += ' -i';
|
|
289
|
+
if (glob)
|
|
290
|
+
cmd += ` -g "${glob}"`;
|
|
291
|
+
if (context > 0)
|
|
292
|
+
cmd += ` -C ${context}`;
|
|
293
|
+
cmd += ` "${pattern.replace(/"/g, '\\"')}"`;
|
|
294
|
+
}
|
|
295
|
+
else {
|
|
296
|
+
cmd = `grep -rn`;
|
|
297
|
+
if (!caseSensitive)
|
|
298
|
+
cmd += ' -i';
|
|
299
|
+
if (glob)
|
|
300
|
+
cmd += ` --include="${glob}"`;
|
|
301
|
+
cmd += ` "${pattern.replace(/"/g, '\\"')}" .`;
|
|
302
|
+
cmd += ` | head -${maxResults}`;
|
|
303
|
+
}
|
|
304
|
+
try {
|
|
305
|
+
const { stdout } = await execAsync(cmd, { cwd, timeout: 30000, maxBuffer: 5 * 1024 * 1024 });
|
|
306
|
+
if (useRg) {
|
|
307
|
+
// Parse rg JSON output
|
|
308
|
+
const matches = [];
|
|
309
|
+
for (const line of stdout.trim().split('\n').filter(Boolean)) {
|
|
310
|
+
try {
|
|
311
|
+
const obj = JSON.parse(line);
|
|
312
|
+
if (obj.type === 'match') {
|
|
313
|
+
matches.push({
|
|
314
|
+
file: obj.data?.path?.text,
|
|
315
|
+
line: obj.data?.line_number,
|
|
316
|
+
text: obj.data?.lines?.text?.trim(),
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
catch { /* skip non-JSON lines */ }
|
|
321
|
+
}
|
|
322
|
+
return { success: true, matches, count: matches.length, tool: 'ripgrep' };
|
|
323
|
+
}
|
|
324
|
+
else {
|
|
325
|
+
// Parse grep output
|
|
326
|
+
const matches = stdout.trim().split('\n').filter(Boolean).map(line => {
|
|
327
|
+
const m = line.match(/^(.+?):(\d+):(.*)$/);
|
|
328
|
+
return m ? { file: m[1], line: parseInt(m[2]), text: m[3].trim() } : { file: '', line: 0, text: line };
|
|
329
|
+
});
|
|
330
|
+
return { success: true, matches, count: matches.length, tool: 'grep' };
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
catch (err) {
|
|
334
|
+
if (err.code === 1)
|
|
335
|
+
return { success: true, matches: [], count: 0, note: 'No matches found' };
|
|
336
|
+
return { success: false, error: err.message };
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
name: 'dev_find_files',
|
|
342
|
+
description: 'Find files by name, extension, or glob pattern. Returns paths with sizes and modification times.',
|
|
343
|
+
category: 'dev',
|
|
344
|
+
inputSchema: {
|
|
345
|
+
type: 'object',
|
|
346
|
+
properties: {
|
|
347
|
+
pattern: { type: 'string', description: 'File name pattern (e.g., "*.test.ts", "package.json", "README*")' },
|
|
348
|
+
cwd: { type: 'string', description: 'Directory to search' },
|
|
349
|
+
maxDepth: { type: 'number', description: 'Max directory depth (default: 10)' },
|
|
350
|
+
maxResults: { type: 'number', description: 'Max results (default: 100)' },
|
|
351
|
+
type: { type: 'string', enum: ['file', 'directory', 'any'], description: 'Filter by type (default: file)' },
|
|
352
|
+
},
|
|
353
|
+
required: ['pattern'],
|
|
354
|
+
},
|
|
355
|
+
handler: async (input) => {
|
|
356
|
+
const cwd = validatePath(input.cwd || process.cwd());
|
|
357
|
+
const pattern = input.pattern;
|
|
358
|
+
const maxDepth = Math.min(input.maxDepth || 10, 20);
|
|
359
|
+
const maxResults = Math.min(input.maxResults || 100, 500);
|
|
360
|
+
const fileType = input.type || 'file';
|
|
361
|
+
// Use fd if available, fall back to find
|
|
362
|
+
const useFd = await execAsync('fd --version', { timeout: 5000 }).then(() => true).catch(() => false);
|
|
363
|
+
let cmd;
|
|
364
|
+
if (useFd) {
|
|
365
|
+
cmd = `fd "${pattern}" --max-depth ${maxDepth} --max-results ${maxResults}`;
|
|
366
|
+
if (fileType === 'file')
|
|
367
|
+
cmd += ' --type f';
|
|
368
|
+
else if (fileType === 'directory')
|
|
369
|
+
cmd += ' --type d';
|
|
370
|
+
}
|
|
371
|
+
else {
|
|
372
|
+
const typeFlag = fileType === 'file' ? '-type f' : fileType === 'directory' ? '-type d' : '';
|
|
373
|
+
cmd = `find . -maxdepth ${maxDepth} -name "${pattern}" ${typeFlag} | head -${maxResults}`;
|
|
374
|
+
}
|
|
375
|
+
try {
|
|
376
|
+
const { stdout } = await execAsync(cmd, { cwd, timeout: 30000 });
|
|
377
|
+
const paths = stdout.trim().split('\n').filter(Boolean);
|
|
378
|
+
// Get stat info for each file (up to 50)
|
|
379
|
+
const files = [];
|
|
380
|
+
for (const p of paths.slice(0, 50)) {
|
|
381
|
+
try {
|
|
382
|
+
const fullPath = join(cwd, p);
|
|
383
|
+
const s = statSync(fullPath);
|
|
384
|
+
files.push({
|
|
385
|
+
path: p.replace(/\\/g, '/'),
|
|
386
|
+
size: s.size,
|
|
387
|
+
modified: s.mtime.toISOString(),
|
|
388
|
+
isDirectory: s.isDirectory(),
|
|
389
|
+
});
|
|
390
|
+
}
|
|
391
|
+
catch {
|
|
392
|
+
files.push({ path: p.replace(/\\/g, '/'), size: 0, modified: '', isDirectory: false });
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
return { success: true, files, count: paths.length, totalFound: paths.length };
|
|
396
|
+
}
|
|
397
|
+
catch (err) {
|
|
398
|
+
return { success: false, error: err.message };
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
},
|
|
402
|
+
// =========================================================================
|
|
403
|
+
// FILE OPERATIONS
|
|
404
|
+
// =========================================================================
|
|
405
|
+
{
|
|
406
|
+
name: 'dev_read_file',
|
|
407
|
+
description: 'Read a file\'s contents. Supports line range selection.',
|
|
408
|
+
category: 'dev',
|
|
409
|
+
inputSchema: {
|
|
410
|
+
type: 'object',
|
|
411
|
+
properties: {
|
|
412
|
+
path: { type: 'string', description: 'File path (absolute or relative to cwd)' },
|
|
413
|
+
cwd: { type: 'string', description: 'Working directory for relative paths' },
|
|
414
|
+
startLine: { type: 'number', description: 'Start line (1-indexed, default: 1)' },
|
|
415
|
+
endLine: { type: 'number', description: 'End line (default: all)' },
|
|
416
|
+
},
|
|
417
|
+
required: ['path'],
|
|
418
|
+
},
|
|
419
|
+
handler: async (input) => {
|
|
420
|
+
const cwd = input.cwd || process.cwd();
|
|
421
|
+
const filePath = validatePath(resolve(cwd, input.path));
|
|
422
|
+
const startLine = Math.max(input.startLine || 1, 1);
|
|
423
|
+
const endLine = input.endLine;
|
|
424
|
+
try {
|
|
425
|
+
const content = await readFile(filePath, 'utf-8');
|
|
426
|
+
const lines = content.split('\n');
|
|
427
|
+
const end = endLine ? Math.min(endLine, lines.length) : lines.length;
|
|
428
|
+
const selected = lines.slice(startLine - 1, end);
|
|
429
|
+
return {
|
|
430
|
+
success: true,
|
|
431
|
+
path: filePath,
|
|
432
|
+
content: truncate(selected.join('\n')),
|
|
433
|
+
totalLines: lines.length,
|
|
434
|
+
startLine,
|
|
435
|
+
endLine: end,
|
|
436
|
+
size: content.length,
|
|
437
|
+
};
|
|
438
|
+
}
|
|
439
|
+
catch (err) {
|
|
440
|
+
return { success: false, error: err.message, path: filePath };
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
name: 'dev_read_batch',
|
|
446
|
+
description: 'Read multiple files at once. Efficient for understanding a codebase.',
|
|
447
|
+
category: 'dev',
|
|
448
|
+
inputSchema: {
|
|
449
|
+
type: 'object',
|
|
450
|
+
properties: {
|
|
451
|
+
paths: { type: 'array', items: { type: 'string' }, description: 'Array of file paths to read' },
|
|
452
|
+
cwd: { type: 'string', description: 'Working directory for relative paths' },
|
|
453
|
+
maxPerFile: { type: 'number', description: 'Max lines per file (default: 200)' },
|
|
454
|
+
},
|
|
455
|
+
required: ['paths'],
|
|
456
|
+
},
|
|
457
|
+
handler: async (input) => {
|
|
458
|
+
const cwd = input.cwd || process.cwd();
|
|
459
|
+
const paths = input.paths;
|
|
460
|
+
const maxPerFile = Math.min(input.maxPerFile || 200, 500);
|
|
461
|
+
const results = [];
|
|
462
|
+
for (const p of paths.slice(0, 20)) {
|
|
463
|
+
try {
|
|
464
|
+
const filePath = validatePath(resolve(cwd, p));
|
|
465
|
+
const content = await readFile(filePath, 'utf-8');
|
|
466
|
+
const lines = content.split('\n');
|
|
467
|
+
results.push({
|
|
468
|
+
path: p,
|
|
469
|
+
content: lines.slice(0, maxPerFile).join('\n'),
|
|
470
|
+
totalLines: lines.length,
|
|
471
|
+
truncated: lines.length > maxPerFile,
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
catch (err) {
|
|
475
|
+
results.push({ path: p, error: err.message });
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
return { success: true, files: results, count: results.length };
|
|
479
|
+
},
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
name: 'dev_write_file',
|
|
483
|
+
description: 'Write content to a file. Creates parent directories if needed.',
|
|
484
|
+
category: 'dev',
|
|
485
|
+
inputSchema: {
|
|
486
|
+
type: 'object',
|
|
487
|
+
properties: {
|
|
488
|
+
path: { type: 'string', description: 'File path' },
|
|
489
|
+
content: { type: 'string', description: 'File content to write' },
|
|
490
|
+
cwd: { type: 'string', description: 'Working directory for relative paths' },
|
|
491
|
+
},
|
|
492
|
+
required: ['path', 'content'],
|
|
493
|
+
},
|
|
494
|
+
handler: async (input) => {
|
|
495
|
+
const cwd = input.cwd || process.cwd();
|
|
496
|
+
const filePath = validatePath(resolve(cwd, input.path));
|
|
497
|
+
const content = input.content;
|
|
498
|
+
// Security: block writing to sensitive paths
|
|
499
|
+
const blocked = ['.env', 'credentials', '.ssh', 'id_rsa', 'id_ed25519'];
|
|
500
|
+
for (const b of blocked) {
|
|
501
|
+
if (filePath.toLowerCase().includes(b)) {
|
|
502
|
+
return { success: false, error: `Blocked: writing to paths containing "${b}" is not allowed` };
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
try {
|
|
506
|
+
const { mkdir } = await import('fs/promises');
|
|
507
|
+
const dir = join(filePath, '..');
|
|
508
|
+
if (!existsSync(dir))
|
|
509
|
+
await mkdir(dir, { recursive: true });
|
|
510
|
+
await writeFile(filePath, content, 'utf-8');
|
|
511
|
+
return { success: true, path: filePath, size: content.length };
|
|
512
|
+
}
|
|
513
|
+
catch (err) {
|
|
514
|
+
return { success: false, error: err.message };
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
name: 'dev_edit_file',
|
|
520
|
+
description: 'Apply a search-and-replace edit to a file. Finds old_string and replaces with new_string.',
|
|
521
|
+
category: 'dev',
|
|
522
|
+
inputSchema: {
|
|
523
|
+
type: 'object',
|
|
524
|
+
properties: {
|
|
525
|
+
path: { type: 'string', description: 'File path' },
|
|
526
|
+
old_string: { type: 'string', description: 'Exact string to find and replace' },
|
|
527
|
+
new_string: { type: 'string', description: 'Replacement string' },
|
|
528
|
+
cwd: { type: 'string', description: 'Working directory' },
|
|
529
|
+
replaceAll: { type: 'boolean', description: 'Replace all occurrences (default: false — first only)' },
|
|
530
|
+
},
|
|
531
|
+
required: ['path', 'old_string', 'new_string'],
|
|
532
|
+
},
|
|
533
|
+
handler: async (input) => {
|
|
534
|
+
const cwd = input.cwd || process.cwd();
|
|
535
|
+
const filePath = validatePath(resolve(cwd, input.path));
|
|
536
|
+
const oldStr = input.old_string;
|
|
537
|
+
const newStr = input.new_string;
|
|
538
|
+
const replaceAll = input.replaceAll;
|
|
539
|
+
try {
|
|
540
|
+
const content = await readFile(filePath, 'utf-8');
|
|
541
|
+
const count = content.split(oldStr).length - 1;
|
|
542
|
+
if (count === 0) {
|
|
543
|
+
return { success: false, error: 'old_string not found in file', path: filePath };
|
|
544
|
+
}
|
|
545
|
+
if (count > 1 && !replaceAll) {
|
|
546
|
+
return { success: false, error: `old_string found ${count} times — set replaceAll: true or provide more context`, path: filePath };
|
|
547
|
+
}
|
|
548
|
+
const updated = replaceAll ? content.split(oldStr).join(newStr) : content.replace(oldStr, newStr);
|
|
549
|
+
await writeFile(filePath, updated, 'utf-8');
|
|
550
|
+
return { success: true, path: filePath, replacements: replaceAll ? count : 1 };
|
|
551
|
+
}
|
|
552
|
+
catch (err) {
|
|
553
|
+
return { success: false, error: err.message };
|
|
554
|
+
}
|
|
555
|
+
},
|
|
556
|
+
},
|
|
557
|
+
// =========================================================================
|
|
558
|
+
// DIRECTORY LISTING
|
|
559
|
+
// =========================================================================
|
|
560
|
+
{
|
|
561
|
+
name: 'dev_ls',
|
|
562
|
+
description: 'List directory contents with file sizes and types.',
|
|
563
|
+
category: 'dev',
|
|
564
|
+
inputSchema: {
|
|
565
|
+
type: 'object',
|
|
566
|
+
properties: {
|
|
567
|
+
path: { type: 'string', description: 'Directory path (default: cwd)' },
|
|
568
|
+
cwd: { type: 'string', description: 'Working directory' },
|
|
569
|
+
recursive: { type: 'boolean', description: 'List recursively (default: false)' },
|
|
570
|
+
maxDepth: { type: 'number', description: 'Max depth for recursive listing (default: 2)' },
|
|
571
|
+
},
|
|
572
|
+
},
|
|
573
|
+
handler: async (input) => {
|
|
574
|
+
const cwd = input.cwd || process.cwd();
|
|
575
|
+
const dirPath = validatePath(resolve(cwd, input.path || '.'));
|
|
576
|
+
const recursive = input.recursive;
|
|
577
|
+
const maxDepth = Math.min(input.maxDepth || 2, 5);
|
|
578
|
+
async function listDir(dir, depth) {
|
|
579
|
+
const entries = await readdir(dir, { withFileTypes: true });
|
|
580
|
+
const results = [];
|
|
581
|
+
for (const entry of entries) {
|
|
582
|
+
if (entry.name.startsWith('.') && entry.name !== '.github')
|
|
583
|
+
continue;
|
|
584
|
+
if (entry.name === 'node_modules' || entry.name === 'dist' || entry.name === '.git')
|
|
585
|
+
continue;
|
|
586
|
+
const fullPath = join(dir, entry.name);
|
|
587
|
+
const relPath = relative(dirPath, fullPath).replace(/\\/g, '/');
|
|
588
|
+
if (entry.isDirectory()) {
|
|
589
|
+
results.push({ name: relPath + '/', type: 'directory' });
|
|
590
|
+
if (recursive && depth < maxDepth) {
|
|
591
|
+
results.push(...await listDir(fullPath, depth + 1));
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
else {
|
|
595
|
+
try {
|
|
596
|
+
const s = statSync(fullPath);
|
|
597
|
+
results.push({ name: relPath, type: 'file', size: s.size, ext: extname(entry.name) });
|
|
598
|
+
}
|
|
599
|
+
catch {
|
|
600
|
+
results.push({ name: relPath, type: 'file', size: 0 });
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
return results;
|
|
605
|
+
}
|
|
606
|
+
try {
|
|
607
|
+
const entries = await listDir(dirPath, 0);
|
|
608
|
+
return { success: true, path: dirPath, entries, count: entries.length };
|
|
609
|
+
}
|
|
610
|
+
catch (err) {
|
|
611
|
+
return { success: false, error: err.message };
|
|
612
|
+
}
|
|
613
|
+
},
|
|
614
|
+
},
|
|
615
|
+
// =========================================================================
|
|
616
|
+
// LINT & FORMAT
|
|
617
|
+
// =========================================================================
|
|
618
|
+
{
|
|
619
|
+
name: 'dev_lint',
|
|
620
|
+
description: 'Run linter (ESLint, Ruff, etc.) and return structured results.',
|
|
621
|
+
category: 'dev',
|
|
622
|
+
inputSchema: {
|
|
623
|
+
type: 'object',
|
|
624
|
+
properties: {
|
|
625
|
+
cwd: { type: 'string', description: 'Working directory' },
|
|
626
|
+
path: { type: 'string', description: 'File or directory to lint (default: ".")' },
|
|
627
|
+
fix: { type: 'boolean', description: 'Auto-fix (default: false)' },
|
|
628
|
+
},
|
|
629
|
+
},
|
|
630
|
+
handler: async (input) => {
|
|
631
|
+
const cwd = validatePath(input.cwd || process.cwd());
|
|
632
|
+
const path = input.path || '.';
|
|
633
|
+
const fix = input.fix;
|
|
634
|
+
// Detect linter
|
|
635
|
+
const hasEslint = existsSync(join(cwd, '.eslintrc.js')) || existsSync(join(cwd, '.eslintrc.json')) ||
|
|
636
|
+
existsSync(join(cwd, 'eslint.config.js')) || existsSync(join(cwd, 'eslint.config.mjs'));
|
|
637
|
+
const hasRuff = existsSync(join(cwd, 'ruff.toml')) || existsSync(join(cwd, 'pyproject.toml'));
|
|
638
|
+
let cmd;
|
|
639
|
+
if (hasEslint) {
|
|
640
|
+
cmd = `npx eslint ${path} --format json`;
|
|
641
|
+
if (fix)
|
|
642
|
+
cmd += ' --fix';
|
|
643
|
+
}
|
|
644
|
+
else if (hasRuff) {
|
|
645
|
+
cmd = `ruff check ${path} --output-format json`;
|
|
646
|
+
if (fix)
|
|
647
|
+
cmd += ' --fix';
|
|
648
|
+
}
|
|
649
|
+
else {
|
|
650
|
+
return { success: false, error: 'No supported linter config found (eslint or ruff)' };
|
|
651
|
+
}
|
|
652
|
+
try {
|
|
653
|
+
const { stdout, stderr } = await execAsync(cmd, { cwd, timeout: 60000, maxBuffer: 5 * 1024 * 1024 });
|
|
654
|
+
return { success: true, output: truncate(stdout), stderr: truncate(stderr), linter: hasEslint ? 'eslint' : 'ruff' };
|
|
655
|
+
}
|
|
656
|
+
catch (err) {
|
|
657
|
+
return {
|
|
658
|
+
success: false,
|
|
659
|
+
output: truncate(err.stdout || ''),
|
|
660
|
+
stderr: truncate(err.stderr || ''),
|
|
661
|
+
linter: hasEslint ? 'eslint' : 'ruff',
|
|
662
|
+
};
|
|
663
|
+
}
|
|
664
|
+
},
|
|
665
|
+
},
|
|
666
|
+
// =========================================================================
|
|
667
|
+
// PROJECT INFO
|
|
668
|
+
// =========================================================================
|
|
669
|
+
{
|
|
670
|
+
name: 'dev_project_info',
|
|
671
|
+
description: 'Get project structure overview: package.json info, directory tree, language breakdown.',
|
|
672
|
+
category: 'dev',
|
|
673
|
+
inputSchema: {
|
|
674
|
+
type: 'object',
|
|
675
|
+
properties: {
|
|
676
|
+
cwd: { type: 'string', description: 'Project directory' },
|
|
677
|
+
},
|
|
678
|
+
},
|
|
679
|
+
handler: async (input) => {
|
|
680
|
+
const cwd = validatePath(input.cwd || process.cwd());
|
|
681
|
+
const info = { cwd };
|
|
682
|
+
// Read package.json
|
|
683
|
+
try {
|
|
684
|
+
const pkg = JSON.parse(await readFile(join(cwd, 'package.json'), 'utf-8'));
|
|
685
|
+
info.name = pkg.name;
|
|
686
|
+
info.version = pkg.version;
|
|
687
|
+
info.scripts = Object.keys(pkg.scripts || {});
|
|
688
|
+
info.dependencies = Object.keys(pkg.dependencies || {}).length;
|
|
689
|
+
info.devDependencies = Object.keys(pkg.devDependencies || {}).length;
|
|
690
|
+
}
|
|
691
|
+
catch { /* no package.json */ }
|
|
692
|
+
// Git info
|
|
693
|
+
try {
|
|
694
|
+
const { stdout: branch } = await execAsync('git rev-parse --abbrev-ref HEAD', { cwd });
|
|
695
|
+
const { stdout: remote } = await execAsync('git remote get-url origin', { cwd });
|
|
696
|
+
const { stdout: commitCount } = await execAsync('git rev-list --count HEAD', { cwd });
|
|
697
|
+
info.git = { branch: branch.trim(), remote: remote.trim(), commits: parseInt(commitCount.trim()) };
|
|
698
|
+
}
|
|
699
|
+
catch { /* not a git repo */ }
|
|
700
|
+
// File type breakdown (quick count)
|
|
701
|
+
try {
|
|
702
|
+
const { stdout } = await execAsync('find . -not -path "*/node_modules/*" -not -path "*/.git/*" -not -path "*/dist/*" -type f | sed "s/.*\\.//" | sort | uniq -c | sort -rn | head -15', { cwd, timeout: 10000 });
|
|
703
|
+
info.fileTypes = stdout.trim().split('\n').filter(Boolean).map(line => {
|
|
704
|
+
const m = line.trim().match(/^(\d+)\s+(.+)$/);
|
|
705
|
+
return m ? { count: parseInt(m[1]), ext: m[2] } : null;
|
|
706
|
+
}).filter(Boolean);
|
|
707
|
+
}
|
|
708
|
+
catch { /* skip on Windows if find not available */ }
|
|
709
|
+
return { success: true, ...info };
|
|
710
|
+
},
|
|
711
|
+
},
|
|
712
|
+
];
|
|
713
|
+
//# sourceMappingURL=dev-tools.js.map
|