kynjal-cli 4.0.0 → 4.0.2
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/dist/src/appliance/gguf-engine.d.ts +91 -0
- package/dist/src/appliance/gguf-engine.d.ts.map +1 -0
- package/dist/src/appliance/gguf-engine.js +286 -525
- package/dist/src/appliance/gguf-engine.js.map +1 -1
- package/dist/src/appliance/ruvllm-bridge.d.ts +102 -0
- package/dist/src/appliance/ruvllm-bridge.d.ts.map +1 -0
- package/dist/src/appliance/ruvllm-bridge.js +203 -403
- package/dist/src/appliance/ruvllm-bridge.js.map +1 -1
- package/dist/src/appliance/rvfa-builder.d.ts +44 -0
- package/dist/src/appliance/rvfa-builder.d.ts.map +1 -0
- package/dist/src/appliance/rvfa-builder.js +154 -208
- package/dist/src/appliance/rvfa-builder.js.map +1 -1
- package/dist/src/appliance/rvfa-distribution.d.ts +97 -0
- package/dist/src/appliance/rvfa-distribution.d.ts.map +1 -0
- package/dist/src/appliance/rvfa-distribution.js +260 -423
- package/dist/src/appliance/rvfa-distribution.js.map +1 -1
- package/dist/src/appliance/rvfa-format.d.ts +111 -0
- package/dist/src/appliance/rvfa-format.d.ts.map +1 -0
- package/dist/src/appliance/rvfa-format.js +128 -200
- package/dist/src/appliance/rvfa-format.js.map +1 -1
- package/dist/src/appliance/rvfa-runner.d.ts +69 -0
- package/dist/src/appliance/rvfa-runner.d.ts.map +1 -0
- package/dist/src/appliance/rvfa-runner.js +168 -304
- package/dist/src/appliance/rvfa-runner.js.map +1 -1
- package/dist/src/appliance/rvfa-signing.d.ts +123 -0
- package/dist/src/appliance/rvfa-signing.d.ts.map +1 -0
- package/dist/src/appliance/rvfa-signing.js +173 -295
- package/dist/src/appliance/rvfa-signing.js.map +1 -1
- package/dist/src/benchmarks/pretrain/index.d.ts +58 -0
- package/dist/src/benchmarks/pretrain/index.d.ts.map +1 -0
- package/dist/src/benchmarks/pretrain/index.js +331 -542
- package/dist/src/benchmarks/pretrain/index.js.map +1 -1
- package/dist/src/commands/agent.js +574 -697
- package/dist/src/commands/agent.js.map +1 -1
- package/dist/src/commands/analyze.js +1218 -1548
- package/dist/src/commands/analyze.js.map +1 -1
- package/dist/src/commands/appliance-advanced.js +158 -267
- package/dist/src/commands/appliance-advanced.js.map +1 -1
- package/dist/src/commands/appliance.js +318 -493
- package/dist/src/commands/appliance.js.map +1 -1
- package/dist/src/commands/benchmark.js +372 -523
- package/dist/src/commands/benchmark.js.map +1 -1
- package/dist/src/commands/claims.js +274 -364
- package/dist/src/commands/claims.js.map +1 -1
- package/dist/src/commands/cleanup.js +113 -157
- package/dist/src/commands/cleanup.js.map +1 -1
- package/dist/src/commands/completions.js +477 -118
- package/dist/src/commands/completions.js.map +1 -1
- package/dist/src/commands/config.js +237 -303
- package/dist/src/commands/config.js.map +1 -1
- package/dist/src/commands/daemon.js +487 -596
- package/dist/src/commands/daemon.js.map +1 -1
- package/dist/src/commands/deployment.js +194 -275
- package/dist/src/commands/deployment.js.map +1 -1
- package/dist/src/commands/doctor.js +504 -686
- package/dist/src/commands/doctor.js.map +1 -1
- package/dist/src/commands/embeddings.js +1293 -1543
- package/dist/src/commands/embeddings.js.map +1 -1
- package/dist/src/commands/guidance.js +449 -596
- package/dist/src/commands/guidance.js.map +1 -1
- package/dist/src/commands/hive-mind.js +854 -938
- package/dist/src/commands/hive-mind.js.map +1 -1
- package/dist/src/commands/hooks.js +3112 -3519
- package/dist/src/commands/hooks.js.map +1 -1
- package/dist/src/commands/index.d.ts +115 -0
- package/dist/src/commands/index.d.ts.map +1 -0
- package/dist/src/commands/index.js +126 -308
- package/dist/src/commands/index.js.map +1 -1
- package/dist/src/commands/init.js +788 -940
- package/dist/src/commands/init.js.map +1 -1
- package/dist/src/commands/issues.js +383 -558
- package/dist/src/commands/issues.js.map +1 -1
- package/dist/src/commands/mcp.js +493 -605
- package/dist/src/commands/mcp.js.map +1 -1
- package/dist/src/commands/memory.js +833 -1026
- package/dist/src/commands/memory.js.map +1 -1
- package/dist/src/commands/migrate.js +282 -347
- package/dist/src/commands/migrate.js.map +1 -1
- package/dist/src/commands/neural.js +1289 -1563
- package/dist/src/commands/neural.js.map +1 -1
- package/dist/src/commands/performance.js +497 -643
- package/dist/src/commands/performance.js.map +1 -1
- package/dist/src/commands/plugins.js +668 -841
- package/dist/src/commands/plugins.js.map +1 -1
- package/dist/src/commands/process.js +392 -447
- package/dist/src/commands/process.js.map +1 -1
- package/dist/src/commands/progress.js +162 -256
- package/dist/src/commands/progress.js.map +1 -1
- package/dist/src/commands/providers.js +150 -220
- package/dist/src/commands/providers.js.map +1 -1
- package/dist/src/commands/route.js +520 -665
- package/dist/src/commands/route.js.map +1 -1
- package/dist/src/commands/ruvector/backup.js +505 -651
- package/dist/src/commands/ruvector/backup.js.map +1 -1
- package/dist/src/commands/ruvector/benchmark.js +349 -401
- package/dist/src/commands/ruvector/benchmark.js.map +1 -1
- package/dist/src/commands/ruvector/import.js +224 -266
- package/dist/src/commands/ruvector/import.js.map +1 -1
- package/dist/src/commands/ruvector/index.js +37 -75
- package/dist/src/commands/ruvector/index.js.map +1 -1
- package/dist/src/commands/ruvector/init.js +336 -359
- package/dist/src/commands/ruvector/init.js.map +1 -1
- package/dist/src/commands/ruvector/migrate.js +335 -322
- package/dist/src/commands/ruvector/migrate.js.map +1 -1
- package/dist/src/commands/ruvector/optimize.js +375 -431
- package/dist/src/commands/ruvector/optimize.js.map +1 -1
- package/dist/src/commands/ruvector/setup.js +703 -117
- package/dist/src/commands/ruvector/setup.js.map +1 -1
- package/dist/src/commands/ruvector/status.js +364 -419
- package/dist/src/commands/ruvector/status.js.map +1 -1
- package/dist/src/commands/security.js +485 -608
- package/dist/src/commands/security.js.map +1 -1
- package/dist/src/commands/session.js +504 -626
- package/dist/src/commands/session.js.map +1 -1
- package/dist/src/commands/start.js +267 -364
- package/dist/src/commands/start.js.map +1 -1
- package/dist/src/commands/status.js +380 -486
- package/dist/src/commands/status.js.map +1 -1
- package/dist/src/commands/swarm.js +408 -488
- package/dist/src/commands/swarm.js.map +1 -1
- package/dist/src/commands/task.js +423 -538
- package/dist/src/commands/task.js.map +1 -1
- package/dist/src/commands/transfer-store.js +322 -412
- package/dist/src/commands/transfer-store.js.map +1 -1
- package/dist/src/commands/update.js +196 -291
- package/dist/src/commands/update.js.map +1 -1
- package/dist/src/commands/workflow.js +386 -486
- package/dist/src/commands/workflow.js.map +1 -1
- package/dist/src/config-adapter.d.ts +15 -0
- package/dist/src/config-adapter.d.ts.map +1 -0
- package/dist/src/config-adapter.js +38 -39
- package/dist/src/config-adapter.js.map +1 -1
- package/dist/src/index.d.ts +77 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +309 -411
- package/dist/src/index.js.map +1 -1
- package/dist/src/infrastructure/in-memory-repositories.d.ts +68 -0
- package/dist/src/infrastructure/in-memory-repositories.d.ts.map +1 -0
- package/dist/src/infrastructure/in-memory-repositories.js +246 -507
- package/dist/src/infrastructure/in-memory-repositories.js.map +1 -1
- package/dist/src/init/claudemd-generator.d.ts +25 -0
- package/dist/src/init/claudemd-generator.d.ts.map +1 -0
- package/dist/src/init/claudemd-generator.js +368 -78
- package/dist/src/init/claudemd-generator.js.map +1 -1
- package/dist/src/init/executor.d.ts +41 -0
- package/dist/src/init/executor.d.ts.map +1 -0
- package/dist/src/init/executor.js +1307 -996
- package/dist/src/init/executor.js.map +1 -1
- package/dist/src/init/helpers-generator.d.ts +60 -0
- package/dist/src/init/helpers-generator.d.ts.map +1 -0
- package/dist/src/init/helpers-generator.js +657 -12
- package/dist/src/init/helpers-generator.js.map +1 -1
- package/dist/src/init/index.d.ts +1 -1
- package/dist/src/init/index.d.ts.map +1 -1
- package/dist/src/init/index.js +1 -1
- package/dist/src/init/index.js.map +1 -1
- package/dist/src/init/mcp-generator.js +33 -37
- package/dist/src/init/mcp-generator.js.map +1 -1
- package/dist/src/init/settings-generator.js +76 -77
- package/dist/src/init/settings-generator.js.map +1 -1
- package/dist/src/init/statusline-generator.js +801 -3
- package/dist/src/init/statusline-generator.js.map +1 -1
- package/dist/src/init/types.d.ts +1 -1
- package/dist/src/init/types.d.ts.map +1 -1
- package/dist/src/init/types.js +76 -59
- package/dist/src/init/types.js.map +1 -1
- package/dist/src/mcp-client.d.ts +92 -0
- package/dist/src/mcp-client.d.ts.map +1 -0
- package/dist/src/mcp-client.js +81 -125
- package/dist/src/mcp-client.js.map +1 -1
- package/dist/src/mcp-server.d.ts +161 -0
- package/dist/src/mcp-server.d.ts.map +1 -0
- package/dist/src/mcp-server.js +470 -757
- package/dist/src/mcp-server.js.map +1 -1
- package/dist/src/mcp-tools/agent-tools.js +391 -492
- package/dist/src/mcp-tools/agent-tools.js.map +1 -1
- package/dist/src/mcp-tools/agentdb-tools.js +332 -533
- package/dist/src/mcp-tools/agentdb-tools.js.map +1 -1
- package/dist/src/mcp-tools/analyze-tools.js +172 -236
- package/dist/src/mcp-tools/analyze-tools.js.map +1 -1
- package/dist/src/mcp-tools/auto-install.d.ts +83 -0
- package/dist/src/mcp-tools/auto-install.d.ts.map +1 -0
- package/dist/src/mcp-tools/auto-install.js +80 -142
- package/dist/src/mcp-tools/auto-install.js.map +1 -1
- package/dist/src/mcp-tools/browser-tools.js +252 -375
- package/dist/src/mcp-tools/browser-tools.js.map +1 -1
- package/dist/src/mcp-tools/claims-tools.js +473 -565
- package/dist/src/mcp-tools/claims-tools.js.map +1 -1
- package/dist/src/mcp-tools/config-tools.js +197 -272
- package/dist/src/mcp-tools/config-tools.js.map +1 -1
- package/dist/src/mcp-tools/coordination-tools.js +500 -572
- package/dist/src/mcp-tools/coordination-tools.js.map +1 -1
- package/dist/src/mcp-tools/daa-tools.js +286 -364
- package/dist/src/mcp-tools/daa-tools.js.map +1 -1
- package/dist/src/mcp-tools/embeddings-tools.js +582 -693
- package/dist/src/mcp-tools/embeddings-tools.js.map +1 -1
- package/dist/src/mcp-tools/github-tools.js +260 -311
- package/dist/src/mcp-tools/github-tools.js.map +1 -1
- package/dist/src/mcp-tools/hive-mind-tools.js +573 -640
- package/dist/src/mcp-tools/hive-mind-tools.js.map +1 -1
- package/dist/src/mcp-tools/hooks-tools.js +2215 -2648
- package/dist/src/mcp-tools/hooks-tools.js.map +1 -1
- package/dist/src/mcp-tools/memory-tools.js +350 -505
- package/dist/src/mcp-tools/memory-tools.js.map +1 -1
- package/dist/src/mcp-tools/neural-tools.js +315 -412
- package/dist/src/mcp-tools/neural-tools.js.map +1 -1
- package/dist/src/mcp-tools/performance-tools.js +420 -480
- package/dist/src/mcp-tools/performance-tools.js.map +1 -1
- package/dist/src/mcp-tools/progress-tools.js +204 -278
- package/dist/src/mcp-tools/progress-tools.js.map +1 -1
- package/dist/src/mcp-tools/ruvllm-tools.js +163 -279
- package/dist/src/mcp-tools/ruvllm-tools.js.map +1 -1
- package/dist/src/mcp-tools/security-tools.js +297 -429
- package/dist/src/mcp-tools/security-tools.js.map +1 -1
- package/dist/src/mcp-tools/session-tools.js +185 -234
- package/dist/src/mcp-tools/session-tools.js.map +1 -1
- package/dist/src/mcp-tools/swarm-tools.js +207 -260
- package/dist/src/mcp-tools/swarm-tools.js.map +1 -1
- package/dist/src/mcp-tools/system-tools.js +276 -325
- package/dist/src/mcp-tools/system-tools.js.map +1 -1
- package/dist/src/mcp-tools/task-tools.js +270 -336
- package/dist/src/mcp-tools/task-tools.js.map +1 -1
- package/dist/src/mcp-tools/terminal-tools.js +148 -196
- package/dist/src/mcp-tools/terminal-tools.js.map +1 -1
- package/dist/src/mcp-tools/transfer-tools.js +186 -333
- package/dist/src/mcp-tools/transfer-tools.js.map +1 -1
- package/dist/src/mcp-tools/types.d.ts +31 -0
- package/dist/src/mcp-tools/types.d.ts.map +1 -0
- package/dist/src/mcp-tools/wasm-agent-tools.js +133 -280
- package/dist/src/mcp-tools/wasm-agent-tools.js.map +1 -1
- package/dist/src/mcp-tools/workflow-tools.js +405 -450
- package/dist/src/mcp-tools/workflow-tools.js.map +1 -1
- package/dist/src/memory/ewc-consolidation.d.ts +295 -0
- package/dist/src/memory/ewc-consolidation.d.ts.map +1 -0
- package/dist/src/memory/ewc-consolidation.js +190 -303
- package/dist/src/memory/ewc-consolidation.js.map +1 -1
- package/dist/src/memory/intelligence.d.ts +338 -0
- package/dist/src/memory/intelligence.d.ts.map +1 -0
- package/dist/src/memory/intelligence.js +569 -794
- package/dist/src/memory/intelligence.js.map +1 -1
- package/dist/src/memory/memory-bridge.d.ts +407 -0
- package/dist/src/memory/memory-bridge.d.ts.map +1 -0
- package/dist/src/memory/memory-bridge.js +1170 -1640
- package/dist/src/memory/memory-bridge.js.map +1 -1
- package/dist/src/memory/memory-initializer.d.ts +412 -0
- package/dist/src/memory/memory-initializer.d.ts.map +1 -0
- package/dist/src/memory/memory-initializer.js +1836 -1851
- package/dist/src/memory/memory-initializer.js.map +1 -1
- package/dist/src/memory/sona-optimizer.d.ts +227 -0
- package/dist/src/memory/sona-optimizer.d.ts.map +1 -0
- package/dist/src/memory/sona-optimizer.js +199 -329
- package/dist/src/memory/sona-optimizer.js.map +1 -1
- package/dist/src/output.d.ts +2 -2
- package/dist/src/output.d.ts.map +1 -1
- package/dist/src/output.js +242 -272
- package/dist/src/output.js.map +1 -1
- package/dist/src/parser.d.ts +51 -0
- package/dist/src/parser.d.ts.map +1 -0
- package/dist/src/parser.js +140 -187
- package/dist/src/parser.js.map +1 -1
- package/dist/src/plugins/manager.d.ts +133 -0
- package/dist/src/plugins/manager.d.ts.map +1 -0
- package/dist/src/plugins/manager.js +285 -521
- package/dist/src/plugins/manager.js.map +1 -1
- package/dist/src/plugins/store/discovery.d.ts +88 -0
- package/dist/src/plugins/store/discovery.d.ts.map +1 -0
- package/dist/src/plugins/store/discovery.js +271 -358
- package/dist/src/plugins/store/discovery.js.map +1 -1
- package/dist/src/plugins/store/index.d.ts +76 -0
- package/dist/src/plugins/store/index.d.ts.map +1 -0
- package/dist/src/plugins/store/index.js +48 -105
- package/dist/src/plugins/store/index.js.map +1 -1
- package/dist/src/plugins/store/search.d.ts +46 -0
- package/dist/src/plugins/store/search.d.ts.map +1 -0
- package/dist/src/plugins/store/search.js +69 -107
- package/dist/src/plugins/store/search.js.map +1 -1
- package/dist/src/plugins/store/types.d.ts +274 -0
- package/dist/src/plugins/store/types.d.ts.map +1 -0
- package/dist/src/plugins/tests/demo-plugin-store.js +113 -160
- package/dist/src/plugins/tests/demo-plugin-store.js.map +1 -1
- package/dist/src/plugins/tests/standalone-test.js +172 -223
- package/dist/src/plugins/tests/standalone-test.js.map +1 -1
- package/dist/src/plugins/tests/test-plugin-store.js +190 -228
- package/dist/src/plugins/tests/test-plugin-store.js.map +1 -1
- package/dist/src/production/circuit-breaker.d.ts +101 -0
- package/dist/src/production/circuit-breaker.d.ts.map +1 -0
- package/dist/src/production/circuit-breaker.js +62 -126
- package/dist/src/production/circuit-breaker.js.map +1 -1
- package/dist/src/production/error-handler.d.ts +92 -0
- package/dist/src/production/error-handler.d.ts.map +1 -0
- package/dist/src/production/error-handler.js +86 -156
- package/dist/src/production/error-handler.js.map +1 -1
- package/dist/src/production/monitoring.d.ts +161 -0
- package/dist/src/production/monitoring.d.ts.map +1 -0
- package/dist/src/production/monitoring.js +139 -220
- package/dist/src/production/monitoring.js.map +1 -1
- package/dist/src/production/rate-limiter.d.ts +80 -0
- package/dist/src/production/rate-limiter.d.ts.map +1 -0
- package/dist/src/production/rate-limiter.js +74 -93
- package/dist/src/production/rate-limiter.js.map +1 -1
- package/dist/src/production/retry.d.ts +48 -0
- package/dist/src/production/retry.d.ts.map +1 -0
- package/dist/src/production/retry.js +75 -167
- package/dist/src/production/retry.js.map +1 -1
- package/dist/src/prompt.d.ts +44 -0
- package/dist/src/prompt.d.ts.map +1 -0
- package/dist/src/prompt.js +436 -560
- package/dist/src/prompt.js.map +1 -1
- package/dist/src/runtime/headless.d.ts +60 -0
- package/dist/src/runtime/headless.d.ts.map +1 -0
- package/dist/src/runtime/headless.js +197 -286
- package/dist/src/runtime/headless.js.map +1 -1
- package/dist/src/ruvector/agent-wasm.d.ts +182 -0
- package/dist/src/ruvector/agent-wasm.d.ts.map +1 -0
- package/dist/src/ruvector/agent-wasm.js +156 -351
- package/dist/src/ruvector/agent-wasm.js.map +1 -1
- package/dist/src/ruvector/ast-analyzer.d.ts +67 -0
- package/dist/src/ruvector/ast-analyzer.d.ts.map +1 -0
- package/dist/src/ruvector/ast-analyzer.js +145 -232
- package/dist/src/ruvector/ast-analyzer.js.map +1 -1
- package/dist/src/ruvector/coverage-router.d.ts +160 -0
- package/dist/src/ruvector/coverage-router.d.ts.map +1 -0
- package/dist/src/ruvector/coverage-router.js +287 -419
- package/dist/src/ruvector/coverage-router.js.map +1 -1
- package/dist/src/ruvector/coverage-tools.js +56 -101
- package/dist/src/ruvector/coverage-tools.js.map +1 -1
- package/dist/src/ruvector/diff-classifier.d.ts +175 -0
- package/dist/src/ruvector/diff-classifier.d.ts.map +1 -0
- package/dist/src/ruvector/diff-classifier.js +324 -451
- package/dist/src/ruvector/diff-classifier.js.map +1 -1
- package/dist/src/ruvector/enhanced-model-router.d.ts +146 -0
- package/dist/src/ruvector/enhanced-model-router.d.ts.map +1 -0
- package/dist/src/ruvector/enhanced-model-router.js +260 -336
- package/dist/src/ruvector/enhanced-model-router.js.map +1 -1
- package/dist/src/ruvector/flash-attention.d.ts +195 -0
- package/dist/src/ruvector/flash-attention.d.ts.map +1 -0
- package/dist/src/ruvector/flash-attention.js +223 -254
- package/dist/src/ruvector/flash-attention.js.map +1 -1
- package/dist/src/ruvector/graph-analyzer.d.ts +187 -0
- package/dist/src/ruvector/graph-analyzer.d.ts.map +1 -0
- package/dist/src/ruvector/graph-analyzer.js +486 -680
- package/dist/src/ruvector/graph-analyzer.js.map +1 -1
- package/dist/src/ruvector/index.d.ts +40 -0
- package/dist/src/ruvector/index.d.ts.map +1 -0
- package/dist/src/ruvector/index.js +36 -106
- package/dist/src/ruvector/index.js.map +1 -1
- package/dist/src/ruvector/lora-adapter.d.ts +218 -0
- package/dist/src/ruvector/lora-adapter.d.ts.map +1 -0
- package/dist/src/ruvector/lora-adapter.js +155 -248
- package/dist/src/ruvector/lora-adapter.js.map +1 -1
- package/dist/src/ruvector/model-router.d.ts +220 -0
- package/dist/src/ruvector/model-router.d.ts.map +1 -0
- package/dist/src/ruvector/model-router.js +175 -248
- package/dist/src/ruvector/model-router.js.map +1 -1
- package/dist/src/ruvector/moe-router.d.ts +206 -0
- package/dist/src/ruvector/moe-router.d.ts.map +1 -0
- package/dist/src/ruvector/moe-router.js +228 -286
- package/dist/src/ruvector/moe-router.js.map +1 -1
- package/dist/src/ruvector/q-learning-router.d.ts +211 -0
- package/dist/src/ruvector/q-learning-router.d.ts.map +1 -0
- package/dist/src/ruvector/q-learning-router.js +257 -338
- package/dist/src/ruvector/q-learning-router.js.map +1 -1
- package/dist/src/ruvector/ruvllm-wasm.d.ts +179 -0
- package/dist/src/ruvector/ruvllm-wasm.d.ts.map +1 -0
- package/dist/src/ruvector/ruvllm-wasm.js +270 -434
- package/dist/src/ruvector/ruvllm-wasm.js.map +1 -1
- package/dist/src/ruvector/semantic-router.d.ts +77 -0
- package/dist/src/ruvector/semantic-router.d.ts.map +1 -0
- package/dist/src/ruvector/semantic-router.js +60 -67
- package/dist/src/ruvector/semantic-router.js.map +1 -1
- package/dist/src/ruvector/vector-db.d.ts +69 -0
- package/dist/src/ruvector/vector-db.d.ts.map +1 -0
- package/dist/src/ruvector/vector-db.js +119 -205
- package/dist/src/ruvector/vector-db.js.map +1 -1
- package/dist/src/services/agentic-flow-bridge.d.ts +50 -0
- package/dist/src/services/agentic-flow-bridge.d.ts.map +1 -0
- package/dist/src/services/agentic-flow-bridge.js +32 -105
- package/dist/src/services/agentic-flow-bridge.js.map +1 -1
- package/dist/src/services/claim-service.d.ts +204 -0
- package/dist/src/services/claim-service.d.ts.map +1 -0
- package/dist/src/services/claim-service.js +615 -940
- package/dist/src/services/claim-service.js.map +1 -1
- package/dist/src/services/container-worker-pool.d.ts +197 -0
- package/dist/src/services/container-worker-pool.d.ts.map +1 -0
- package/dist/src/services/container-worker-pool.js +398 -666
- package/dist/src/services/container-worker-pool.js.map +1 -1
- package/dist/src/services/headless-worker-executor.d.ts +304 -0
- package/dist/src/services/headless-worker-executor.d.ts.map +1 -0
- package/dist/src/services/headless-worker-executor.js +441 -467
- package/dist/src/services/headless-worker-executor.js.map +1 -1
- package/dist/src/services/index.d.ts +4 -4
- package/dist/src/services/index.d.ts.map +1 -1
- package/dist/src/services/index.js +4 -4
- package/dist/src/services/index.js.map +1 -1
- package/dist/src/services/registry-api.d.ts +58 -0
- package/dist/src/services/registry-api.d.ts.map +1 -0
- package/dist/src/services/registry-api.js +92 -200
- package/dist/src/services/registry-api.js.map +1 -1
- package/dist/src/services/ruvector-training.d.ts +222 -0
- package/dist/src/services/ruvector-training.d.ts.map +1 -0
- package/dist/src/services/ruvector-training.js +257 -337
- package/dist/src/services/ruvector-training.js.map +1 -1
- package/dist/src/services/worker-daemon.d.ts +228 -0
- package/dist/src/services/worker-daemon.d.ts.map +1 -0
- package/dist/src/services/worker-daemon.js +591 -849
- package/dist/src/services/worker-daemon.js.map +1 -1
- package/dist/src/services/worker-queue.d.ts +194 -0
- package/dist/src/services/worker-queue.d.ts.map +1 -0
- package/dist/src/services/worker-queue.js +331 -548
- package/dist/src/services/worker-queue.js.map +1 -1
- package/dist/src/suggest.d.ts +53 -0
- package/dist/src/suggest.d.ts.map +1 -0
- package/dist/src/suggest.js +45 -55
- package/dist/src/suggest.js.map +1 -1
- package/dist/src/transfer/anonymization/index.js +29 -37
- package/dist/src/transfer/anonymization/index.js.map +1 -1
- package/dist/src/transfer/deploy-seraphine.js +128 -155
- package/dist/src/transfer/deploy-seraphine.js.map +1 -1
- package/dist/src/transfer/export.d.ts +25 -0
- package/dist/src/transfer/export.d.ts.map +1 -0
- package/dist/src/transfer/export.js +84 -142
- package/dist/src/transfer/export.js.map +1 -1
- package/dist/src/transfer/index.d.ts +1 -1
- package/dist/src/transfer/index.d.ts.map +1 -1
- package/dist/src/transfer/index.js +0 -2
- package/dist/src/transfer/index.js.map +1 -1
- package/dist/src/transfer/ipfs/client.d.ts +109 -0
- package/dist/src/transfer/ipfs/client.d.ts.map +1 -0
- package/dist/src/transfer/ipfs/client.js +187 -337
- package/dist/src/transfer/ipfs/client.js.map +1 -1
- package/dist/src/transfer/ipfs/upload.d.ts +95 -0
- package/dist/src/transfer/ipfs/upload.d.ts.map +1 -0
- package/dist/src/transfer/ipfs/upload.js +288 -434
- package/dist/src/transfer/ipfs/upload.js.map +1 -1
- package/dist/src/transfer/models/seraphine.d.ts +72 -0
- package/dist/src/transfer/models/seraphine.d.ts.map +1 -0
- package/dist/src/transfer/models/seraphine.js +55 -55
- package/dist/src/transfer/models/seraphine.js.map +1 -1
- package/dist/src/transfer/serialization/cfp.d.ts +49 -0
- package/dist/src/transfer/serialization/cfp.d.ts.map +1 -0
- package/dist/src/transfer/serialization/cfp.js +30 -31
- package/dist/src/transfer/serialization/cfp.js.map +1 -1
- package/dist/src/transfer/storage/gcs.d.ts +82 -0
- package/dist/src/transfer/storage/gcs.d.ts.map +1 -0
- package/dist/src/transfer/storage/gcs.js +165 -232
- package/dist/src/transfer/storage/gcs.js.map +1 -1
- package/dist/src/transfer/store/discovery.d.ts +84 -0
- package/dist/src/transfer/store/discovery.d.ts.map +1 -0
- package/dist/src/transfer/store/discovery.js +239 -349
- package/dist/src/transfer/store/discovery.js.map +1 -1
- package/dist/src/transfer/store/download.d.ts +70 -0
- package/dist/src/transfer/store/download.d.ts.map +1 -0
- package/dist/src/transfer/store/download.js +243 -365
- package/dist/src/transfer/store/download.js.map +1 -1
- package/dist/src/transfer/store/index.d.ts +84 -0
- package/dist/src/transfer/store/index.d.ts.map +1 -0
- package/dist/src/transfer/store/index.js +63 -130
- package/dist/src/transfer/store/index.js.map +1 -1
- package/dist/src/transfer/store/publish.d.ts +76 -0
- package/dist/src/transfer/store/publish.d.ts.map +1 -0
- package/dist/src/transfer/store/publish.js +184 -258
- package/dist/src/transfer/store/publish.js.map +1 -1
- package/dist/src/transfer/store/registry.js +50 -72
- package/dist/src/transfer/store/registry.js.map +1 -1
- package/dist/src/transfer/store/search.d.ts +54 -0
- package/dist/src/transfer/store/search.d.ts.map +1 -0
- package/dist/src/transfer/store/search.js +64 -96
- package/dist/src/transfer/store/search.js.map +1 -1
- package/dist/src/transfer/store/tests/standalone-test.js +174 -231
- package/dist/src/transfer/store/tests/standalone-test.js.map +1 -1
- package/dist/src/transfer/test-seraphine.js +95 -130
- package/dist/src/transfer/test-seraphine.js.map +1 -1
- package/dist/src/transfer/tests/test-store.js +194 -239
- package/dist/src/transfer/tests/test-store.js.map +1 -1
- package/dist/src/transfer/types.d.ts +245 -0
- package/dist/src/transfer/types.d.ts.map +1 -0
- package/dist/src/types.d.ts +198 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +26 -55
- package/dist/src/types.js.map +1 -1
- package/dist/src/update/checker.d.ts +34 -0
- package/dist/src/update/checker.d.ts.map +1 -0
- package/dist/src/update/checker.js +106 -183
- package/dist/src/update/checker.js.map +1 -1
- package/dist/src/update/executor.d.ts +32 -0
- package/dist/src/update/executor.d.ts.map +1 -0
- package/dist/src/update/executor.js +135 -198
- package/dist/src/update/executor.js.map +1 -1
- package/dist/src/update/index.d.ts +33 -0
- package/dist/src/update/index.d.ts.map +1 -0
- package/dist/src/update/index.js +38 -85
- package/dist/src/update/index.js.map +1 -1
- package/dist/src/update/rate-limiter.d.ts +20 -0
- package/dist/src/update/rate-limiter.d.ts.map +1 -0
- package/dist/src/update/rate-limiter.js +19 -31
- package/dist/src/update/rate-limiter.js.map +1 -1
- package/dist/src/update/validator.d.ts +17 -0
- package/dist/src/update/validator.d.ts.map +1 -0
- package/dist/src/update/validator.js +38 -64
- package/dist/src/update/validator.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -2,46 +2,10 @@
|
|
|
2
2
|
* V3 CLI Config Command
|
|
3
3
|
* Configuration management
|
|
4
4
|
*/
|
|
5
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
6
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
7
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
8
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
9
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
10
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
11
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
12
|
-
});
|
|
13
|
-
};
|
|
14
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
15
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
16
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
17
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
18
|
-
function step(op) {
|
|
19
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
20
|
-
while (_) try {
|
|
21
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
22
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
23
|
-
switch (op[0]) {
|
|
24
|
-
case 0: case 1: t = op; break;
|
|
25
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
26
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
27
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
28
|
-
default:
|
|
29
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
30
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
31
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
32
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
33
|
-
if (t[2]) _.ops.pop();
|
|
34
|
-
_.trys.pop(); continue;
|
|
35
|
-
}
|
|
36
|
-
op = body.call(thisArg, _);
|
|
37
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
38
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
5
|
import { output } from '../output.js';
|
|
42
6
|
import { confirm } from '../prompt.js';
|
|
43
7
|
// Init configuration
|
|
44
|
-
|
|
8
|
+
const initCommand = {
|
|
45
9
|
name: 'init',
|
|
46
10
|
description: 'Initialize configuration',
|
|
47
11
|
options: [
|
|
@@ -50,98 +14,96 @@ var initCommand = {
|
|
|
50
14
|
short: 'f',
|
|
51
15
|
description: 'Overwrite existing configuration',
|
|
52
16
|
type: 'boolean',
|
|
53
|
-
|
|
17
|
+
default: false
|
|
54
18
|
},
|
|
55
19
|
{
|
|
56
20
|
name: 'sparc',
|
|
57
21
|
description: 'Initialize with SPARC methodology',
|
|
58
22
|
type: 'boolean',
|
|
59
|
-
|
|
23
|
+
default: false
|
|
60
24
|
},
|
|
61
25
|
{
|
|
62
26
|
name: 'v3',
|
|
63
27
|
description: 'Initialize V3 configuration',
|
|
64
28
|
type: 'boolean',
|
|
65
|
-
|
|
29
|
+
default: true
|
|
66
30
|
}
|
|
67
31
|
],
|
|
68
|
-
action:
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
]
|
|
135
|
-
});
|
|
136
|
-
output.writeln();
|
|
137
|
-
output.printSuccess('Configuration initialized');
|
|
138
|
-
output.writeln(output.dim(' Config file: ./claude-flow.config.json'));
|
|
139
|
-
return [2 /*return*/, { success: true, data: config }];
|
|
32
|
+
action: async (ctx) => {
|
|
33
|
+
const sparc = ctx.flags.sparc;
|
|
34
|
+
const v3 = ctx.flags.v3;
|
|
35
|
+
output.writeln();
|
|
36
|
+
output.printInfo('Initializing RuFlo configuration...');
|
|
37
|
+
output.writeln();
|
|
38
|
+
// Create default configuration
|
|
39
|
+
const config = {
|
|
40
|
+
version: '3.0.0',
|
|
41
|
+
v3Mode: v3,
|
|
42
|
+
sparc: sparc,
|
|
43
|
+
agents: {
|
|
44
|
+
defaultType: 'coder',
|
|
45
|
+
maxConcurrent: 15,
|
|
46
|
+
autoSpawn: true,
|
|
47
|
+
timeout: 300
|
|
48
|
+
},
|
|
49
|
+
swarm: {
|
|
50
|
+
topology: 'hybrid',
|
|
51
|
+
maxAgents: 15,
|
|
52
|
+
autoScale: true,
|
|
53
|
+
coordinationStrategy: 'consensus'
|
|
54
|
+
},
|
|
55
|
+
memory: {
|
|
56
|
+
backend: 'hybrid',
|
|
57
|
+
path: './data/memory',
|
|
58
|
+
cacheSize: 256,
|
|
59
|
+
enableHNSW: true
|
|
60
|
+
},
|
|
61
|
+
mcp: {
|
|
62
|
+
transport: 'stdio',
|
|
63
|
+
autoStart: true,
|
|
64
|
+
tools: 'all'
|
|
65
|
+
},
|
|
66
|
+
providers: [
|
|
67
|
+
{ name: 'anthropic', priority: 1, enabled: true },
|
|
68
|
+
{ name: 'openrouter', priority: 2, enabled: false },
|
|
69
|
+
{ name: 'ollama', priority: 3, enabled: false }
|
|
70
|
+
]
|
|
71
|
+
};
|
|
72
|
+
output.writeln(output.dim(' Creating claude-flow.config.json...'));
|
|
73
|
+
output.writeln(output.dim(' Creating .claude-flow/ directory...'));
|
|
74
|
+
if (sparc) {
|
|
75
|
+
output.writeln(output.dim(' Initializing SPARC methodology...'));
|
|
76
|
+
output.writeln(output.dim(' Creating SPARC workflow files...'));
|
|
77
|
+
}
|
|
78
|
+
if (v3) {
|
|
79
|
+
output.writeln(output.dim(' Enabling V3 15-agent coordination...'));
|
|
80
|
+
output.writeln(output.dim(' Configuring AgentDB integration...'));
|
|
81
|
+
output.writeln(output.dim(' Setting up Flash Attention optimization...'));
|
|
82
|
+
}
|
|
83
|
+
output.writeln();
|
|
84
|
+
output.printTable({
|
|
85
|
+
columns: [
|
|
86
|
+
{ key: 'setting', header: 'Setting', width: 25 },
|
|
87
|
+
{ key: 'value', header: 'Value', width: 30 }
|
|
88
|
+
],
|
|
89
|
+
data: [
|
|
90
|
+
{ setting: 'Version', value: config.version },
|
|
91
|
+
{ setting: 'V3 Mode', value: config.v3Mode ? 'Enabled' : 'Disabled' },
|
|
92
|
+
{ setting: 'SPARC Mode', value: config.sparc ? 'Enabled' : 'Disabled' },
|
|
93
|
+
{ setting: 'Swarm Topology', value: config.swarm.topology },
|
|
94
|
+
{ setting: 'Max Agents', value: config.swarm.maxAgents },
|
|
95
|
+
{ setting: 'Memory Backend', value: config.memory.backend },
|
|
96
|
+
{ setting: 'MCP Transport', value: config.mcp.transport }
|
|
97
|
+
]
|
|
140
98
|
});
|
|
141
|
-
|
|
99
|
+
output.writeln();
|
|
100
|
+
output.printSuccess('Configuration initialized');
|
|
101
|
+
output.writeln(output.dim(' Config file: ./claude-flow.config.json'));
|
|
102
|
+
return { success: true, data: config };
|
|
103
|
+
}
|
|
142
104
|
};
|
|
143
105
|
// Get configuration
|
|
144
|
-
|
|
106
|
+
const getCommand = {
|
|
145
107
|
name: 'get',
|
|
146
108
|
description: 'Get configuration value',
|
|
147
109
|
options: [
|
|
@@ -156,60 +118,55 @@ var getCommand = {
|
|
|
156
118
|
{ command: 'claude-flow config get swarm.topology', description: 'Get swarm topology' },
|
|
157
119
|
{ command: 'claude-flow config get -k memory.backend', description: 'Get memory backend' }
|
|
158
120
|
],
|
|
159
|
-
action:
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
// Show all config
|
|
177
|
-
if (ctx.flags.format === 'json') {
|
|
178
|
-
output.printJson(configValues);
|
|
179
|
-
return [2 /*return*/, { success: true, data: configValues }];
|
|
180
|
-
}
|
|
181
|
-
output.writeln();
|
|
182
|
-
output.writeln(output.bold('Current Configuration'));
|
|
183
|
-
output.writeln();
|
|
184
|
-
output.printTable({
|
|
185
|
-
columns: [
|
|
186
|
-
{ key: 'key', header: 'Key', width: 25 },
|
|
187
|
-
{ key: 'value', header: 'Value', width: 30 }
|
|
188
|
-
],
|
|
189
|
-
data: Object.entries(configValues).map(function (_a) {
|
|
190
|
-
var k = _a[0], v = _a[1];
|
|
191
|
-
return ({ key: k, value: String(v) });
|
|
192
|
-
})
|
|
193
|
-
});
|
|
194
|
-
return [2 /*return*/, { success: true, data: configValues }];
|
|
195
|
-
}
|
|
196
|
-
value = configValues[key];
|
|
197
|
-
if (value === undefined) {
|
|
198
|
-
output.printError("Configuration key not found: " + key);
|
|
199
|
-
return [2 /*return*/, { success: false, exitCode: 1 }];
|
|
200
|
-
}
|
|
121
|
+
action: async (ctx) => {
|
|
122
|
+
const key = ctx.flags.key || ctx.args[0];
|
|
123
|
+
// Default config values (loaded from actual config when available)
|
|
124
|
+
const configValues = {
|
|
125
|
+
'version': '3.0.0',
|
|
126
|
+
'v3Mode': true,
|
|
127
|
+
'swarm.topology': 'hybrid',
|
|
128
|
+
'swarm.maxAgents': 15,
|
|
129
|
+
'swarm.autoScale': true,
|
|
130
|
+
'memory.backend': 'hybrid',
|
|
131
|
+
'memory.cacheSize': 256,
|
|
132
|
+
'mcp.transport': 'stdio',
|
|
133
|
+
'agents.defaultType': 'coder',
|
|
134
|
+
'agents.maxConcurrent': 15
|
|
135
|
+
};
|
|
136
|
+
if (!key) {
|
|
137
|
+
// Show all config
|
|
201
138
|
if (ctx.flags.format === 'json') {
|
|
202
|
-
output.printJson(
|
|
203
|
-
|
|
204
|
-
else {
|
|
205
|
-
output.writeln(key + " = " + value);
|
|
139
|
+
output.printJson(configValues);
|
|
140
|
+
return { success: true, data: configValues };
|
|
206
141
|
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
142
|
+
output.writeln();
|
|
143
|
+
output.writeln(output.bold('Current Configuration'));
|
|
144
|
+
output.writeln();
|
|
145
|
+
output.printTable({
|
|
146
|
+
columns: [
|
|
147
|
+
{ key: 'key', header: 'Key', width: 25 },
|
|
148
|
+
{ key: 'value', header: 'Value', width: 30 }
|
|
149
|
+
],
|
|
150
|
+
data: Object.entries(configValues).map(([k, v]) => ({ key: k, value: String(v) }))
|
|
151
|
+
});
|
|
152
|
+
return { success: true, data: configValues };
|
|
153
|
+
}
|
|
154
|
+
const value = configValues[key];
|
|
155
|
+
if (value === undefined) {
|
|
156
|
+
output.printError(`Configuration key not found: ${key}`);
|
|
157
|
+
return { success: false, exitCode: 1 };
|
|
158
|
+
}
|
|
159
|
+
if (ctx.flags.format === 'json') {
|
|
160
|
+
output.printJson({ key, value });
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
output.writeln(`${key} = ${value}`);
|
|
164
|
+
}
|
|
165
|
+
return { success: true, data: { key, value } };
|
|
166
|
+
}
|
|
210
167
|
};
|
|
211
168
|
// Set configuration
|
|
212
|
-
|
|
169
|
+
const setCommand = {
|
|
213
170
|
name: 'set',
|
|
214
171
|
description: 'Set configuration value',
|
|
215
172
|
options: [
|
|
@@ -232,23 +189,20 @@ var setCommand = {
|
|
|
232
189
|
{ command: 'claude-flow config set swarm.maxAgents 20', description: 'Set max agents' },
|
|
233
190
|
{ command: 'claude-flow config set -k memory.backend -v agentdb', description: 'Set memory backend' }
|
|
234
191
|
],
|
|
235
|
-
action:
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
return [2 /*return*/, { success: true, data: { key: key, value: value } }];
|
|
247
|
-
});
|
|
248
|
-
}); }
|
|
192
|
+
action: async (ctx) => {
|
|
193
|
+
const key = ctx.flags.key || ctx.args[0];
|
|
194
|
+
const value = ctx.flags.value || ctx.args[1];
|
|
195
|
+
if (!key || value === undefined) {
|
|
196
|
+
output.printError('Both key and value are required');
|
|
197
|
+
return { success: false, exitCode: 1 };
|
|
198
|
+
}
|
|
199
|
+
output.printInfo(`Setting ${key} = ${value}`);
|
|
200
|
+
output.printSuccess('Configuration updated');
|
|
201
|
+
return { success: true, data: { key, value } };
|
|
202
|
+
}
|
|
249
203
|
};
|
|
250
204
|
// List providers
|
|
251
|
-
|
|
205
|
+
const providersCommand = {
|
|
252
206
|
name: 'providers',
|
|
253
207
|
description: 'Manage AI providers',
|
|
254
208
|
options: [
|
|
@@ -275,43 +229,40 @@ var providersCommand = {
|
|
|
275
229
|
type: 'string'
|
|
276
230
|
}
|
|
277
231
|
],
|
|
278
|
-
action:
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
],
|
|
305
|
-
data: providers
|
|
306
|
-
});
|
|
307
|
-
output.writeln();
|
|
308
|
-
output.writeln(output.dim('Use --add, --remove, --enable, --disable to manage providers'));
|
|
309
|
-
return [2 /*return*/, { success: true, data: providers }];
|
|
232
|
+
action: async (ctx) => {
|
|
233
|
+
const providers = [
|
|
234
|
+
{ name: 'anthropic', model: 'claude-3-5-sonnet-20241022', priority: 1, enabled: true, status: 'Active' },
|
|
235
|
+
{ name: 'openrouter', model: 'claude-3.5-sonnet', priority: 2, enabled: false, status: 'Disabled' },
|
|
236
|
+
{ name: 'ollama', model: 'llama3.2', priority: 3, enabled: false, status: 'Disabled' },
|
|
237
|
+
{ name: 'gemini', model: 'gemini-2.0-flash', priority: 4, enabled: false, status: 'Disabled' }
|
|
238
|
+
];
|
|
239
|
+
if (ctx.flags.format === 'json') {
|
|
240
|
+
output.printJson(providers);
|
|
241
|
+
return { success: true, data: providers };
|
|
242
|
+
}
|
|
243
|
+
output.writeln();
|
|
244
|
+
output.writeln(output.bold('AI Providers'));
|
|
245
|
+
output.writeln();
|
|
246
|
+
output.printTable({
|
|
247
|
+
columns: [
|
|
248
|
+
{ key: 'name', header: 'Provider', width: 12 },
|
|
249
|
+
{ key: 'model', header: 'Model', width: 25 },
|
|
250
|
+
{ key: 'priority', header: 'Priority', width: 10, align: 'right' },
|
|
251
|
+
{ key: 'status', header: 'Status', width: 10, format: (v) => {
|
|
252
|
+
if (v === 'Active')
|
|
253
|
+
return output.success(String(v));
|
|
254
|
+
return output.dim(String(v));
|
|
255
|
+
} }
|
|
256
|
+
],
|
|
257
|
+
data: providers
|
|
310
258
|
});
|
|
311
|
-
|
|
259
|
+
output.writeln();
|
|
260
|
+
output.writeln(output.dim('Use --add, --remove, --enable, --disable to manage providers'));
|
|
261
|
+
return { success: true, data: providers };
|
|
262
|
+
}
|
|
312
263
|
};
|
|
313
264
|
// Reset configuration
|
|
314
|
-
|
|
265
|
+
const resetCommand = {
|
|
315
266
|
name: 'reset',
|
|
316
267
|
description: 'Reset configuration to defaults',
|
|
317
268
|
options: [
|
|
@@ -320,7 +271,7 @@ var resetCommand = {
|
|
|
320
271
|
short: 'f',
|
|
321
272
|
description: 'Skip confirmation',
|
|
322
273
|
type: 'boolean',
|
|
323
|
-
|
|
274
|
+
default: false
|
|
324
275
|
},
|
|
325
276
|
{
|
|
326
277
|
name: 'section',
|
|
@@ -329,35 +280,26 @@ var resetCommand = {
|
|
|
329
280
|
choices: ['agents', 'swarm', 'memory', 'mcp', 'providers', 'all']
|
|
330
281
|
}
|
|
331
282
|
],
|
|
332
|
-
action:
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
})];
|
|
344
|
-
case 1:
|
|
345
|
-
confirmed = _a.sent();
|
|
346
|
-
if (!confirmed) {
|
|
347
|
-
output.printInfo('Operation cancelled');
|
|
348
|
-
return [2 /*return*/, { success: true }];
|
|
349
|
-
}
|
|
350
|
-
_a.label = 2;
|
|
351
|
-
case 2:
|
|
352
|
-
output.printInfo("Resetting " + section + " configuration...");
|
|
353
|
-
output.printSuccess('Configuration reset to defaults');
|
|
354
|
-
return [2 /*return*/, { success: true, data: { section: section, reset: true } }];
|
|
283
|
+
action: async (ctx) => {
|
|
284
|
+
const force = ctx.flags.force;
|
|
285
|
+
const section = ctx.flags.section || 'all';
|
|
286
|
+
if (!force && ctx.interactive) {
|
|
287
|
+
const confirmed = await confirm({
|
|
288
|
+
message: `Reset ${section} configuration to defaults?`,
|
|
289
|
+
default: false
|
|
290
|
+
});
|
|
291
|
+
if (!confirmed) {
|
|
292
|
+
output.printInfo('Operation cancelled');
|
|
293
|
+
return { success: true };
|
|
355
294
|
}
|
|
356
|
-
}
|
|
357
|
-
|
|
295
|
+
}
|
|
296
|
+
output.printInfo(`Resetting ${section} configuration...`);
|
|
297
|
+
output.printSuccess('Configuration reset to defaults');
|
|
298
|
+
return { success: true, data: { section, reset: true } };
|
|
299
|
+
}
|
|
358
300
|
};
|
|
359
301
|
// Export configuration
|
|
360
|
-
|
|
302
|
+
const exportCommand = {
|
|
361
303
|
name: 'export',
|
|
362
304
|
description: 'Export configuration',
|
|
363
305
|
options: [
|
|
@@ -372,32 +314,29 @@ var exportCommand = {
|
|
|
372
314
|
short: 'f',
|
|
373
315
|
description: 'Export format (json, yaml)',
|
|
374
316
|
type: 'string',
|
|
375
|
-
|
|
317
|
+
default: 'json',
|
|
376
318
|
choices: ['json', 'yaml']
|
|
377
319
|
}
|
|
378
320
|
],
|
|
379
|
-
action:
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
return [2 /*return*/, { success: true, data: { path: outputPath, config: config } }];
|
|
396
|
-
});
|
|
397
|
-
}); }
|
|
321
|
+
action: async (ctx) => {
|
|
322
|
+
const outputPath = ctx.flags.output || './claude-flow.config.export.json';
|
|
323
|
+
const config = {
|
|
324
|
+
version: '3.0.0',
|
|
325
|
+
exportedAt: new Date().toISOString(),
|
|
326
|
+
agents: { defaultType: 'coder', maxConcurrent: 15 },
|
|
327
|
+
swarm: { topology: 'hybrid', maxAgents: 15 },
|
|
328
|
+
memory: { backend: 'hybrid', cacheSize: 256 },
|
|
329
|
+
mcp: { transport: 'stdio', tools: 'all' }
|
|
330
|
+
};
|
|
331
|
+
output.printInfo(`Exporting configuration to ${outputPath}...`);
|
|
332
|
+
output.printJson(config);
|
|
333
|
+
output.writeln();
|
|
334
|
+
output.printSuccess('Configuration exported');
|
|
335
|
+
return { success: true, data: { path: outputPath, config } };
|
|
336
|
+
}
|
|
398
337
|
};
|
|
399
338
|
// Import configuration
|
|
400
|
-
|
|
339
|
+
const importCommand = {
|
|
401
340
|
name: 'import',
|
|
402
341
|
description: 'Import configuration',
|
|
403
342
|
options: [
|
|
@@ -412,32 +351,29 @@ var importCommand = {
|
|
|
412
351
|
name: 'merge',
|
|
413
352
|
description: 'Merge with existing configuration',
|
|
414
353
|
type: 'boolean',
|
|
415
|
-
|
|
354
|
+
default: false
|
|
416
355
|
}
|
|
417
356
|
],
|
|
418
|
-
action:
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
output.
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
return [2 /*return*/, { success: true, data: { file: file, merge: merge, imported: true } }];
|
|
436
|
-
});
|
|
437
|
-
}); }
|
|
357
|
+
action: async (ctx) => {
|
|
358
|
+
const file = ctx.flags.file || ctx.args[0];
|
|
359
|
+
const merge = ctx.flags.merge;
|
|
360
|
+
if (!file) {
|
|
361
|
+
output.printError('File path is required');
|
|
362
|
+
return { success: false, exitCode: 1 };
|
|
363
|
+
}
|
|
364
|
+
output.printInfo(`Importing configuration from ${file}...`);
|
|
365
|
+
if (merge) {
|
|
366
|
+
output.writeln(output.dim(' Merging with existing configuration...'));
|
|
367
|
+
}
|
|
368
|
+
else {
|
|
369
|
+
output.writeln(output.dim(' Replacing existing configuration...'));
|
|
370
|
+
}
|
|
371
|
+
output.printSuccess('Configuration imported');
|
|
372
|
+
return { success: true, data: { file, merge, imported: true } };
|
|
373
|
+
}
|
|
438
374
|
};
|
|
439
375
|
// Main config command
|
|
440
|
-
export
|
|
376
|
+
export const configCommand = {
|
|
441
377
|
name: 'config',
|
|
442
378
|
description: 'Configuration management',
|
|
443
379
|
subcommands: [initCommand, getCommand, setCommand, providersCommand, resetCommand, exportCommand, importCommand],
|
|
@@ -447,26 +383,24 @@ export var configCommand = {
|
|
|
447
383
|
{ command: 'claude-flow config get swarm.topology', description: 'Get config value' },
|
|
448
384
|
{ command: 'claude-flow config set swarm.maxAgents 20', description: 'Set config value' }
|
|
449
385
|
],
|
|
450
|
-
action:
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
output.
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
});
|
|
469
|
-
}); }
|
|
386
|
+
action: async (ctx) => {
|
|
387
|
+
output.writeln();
|
|
388
|
+
output.writeln(output.bold('Configuration Management'));
|
|
389
|
+
output.writeln();
|
|
390
|
+
output.writeln('Usage: claude-flow config <subcommand> [options]');
|
|
391
|
+
output.writeln();
|
|
392
|
+
output.writeln('Subcommands:');
|
|
393
|
+
output.printList([
|
|
394
|
+
`${output.highlight('init')} - Initialize configuration`,
|
|
395
|
+
`${output.highlight('get')} - Get configuration value`,
|
|
396
|
+
`${output.highlight('set')} - Set configuration value`,
|
|
397
|
+
`${output.highlight('providers')} - Manage AI providers`,
|
|
398
|
+
`${output.highlight('reset')} - Reset to defaults`,
|
|
399
|
+
`${output.highlight('export')} - Export configuration`,
|
|
400
|
+
`${output.highlight('import')} - Import configuration`
|
|
401
|
+
]);
|
|
402
|
+
return { success: true };
|
|
403
|
+
}
|
|
470
404
|
};
|
|
471
405
|
export default configCommand;
|
|
472
406
|
//# sourceMappingURL=config.js.map
|