kynjal-cli 3.1.4 → 4.0.0
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/.claude/agents/core/coder.md +1 -1
- package/.claude/agents/core/planner.md +2 -2
- package/.claude/agents/core/researcher.md +1 -1
- package/.claude/agents/core/reviewer.md +1 -1
- package/.claude/agents/core/tester.md +1 -1
- package/.claude/agents/data/data-ml-model.md +4 -4
- package/.claude/agents/development/dev-backend-api.md +4 -4
- package/.claude/agents/documentation/docs-api-openapi.md +4 -4
- package/.claude/agents/github/code-review-swarm.md +2 -2
- package/.claude/agents/github/issue-tracker.md +2 -2
- package/.claude/agents/github/pr-manager.md +2 -2
- package/.claude/agents/github/release-manager.md +2 -2
- package/.claude/agents/github/workflow-automation.md +2 -2
- package/.claude/agents/sparc/architecture.md +3 -3
- package/.claude/agents/sparc/pseudocode.md +2 -2
- package/.claude/agents/sparc/refinement.md +3 -3
- package/.claude/agents/sparc/specification.md +2 -2
- package/.claude/agents/swarm/adaptive-coordinator.md +1 -1
- package/.claude/agents/swarm/hierarchical-coordinator.md +1 -1
- package/.claude/agents/swarm/mesh-coordinator.md +1 -1
- package/.claude/agents/templates/base-template-generator.md +25 -4
- package/.claude/agents/templates/sparc-coordinator.md +3 -3
- package/.claude/helpers/auto-commit.sh +1 -1
- package/.claude/helpers/auto-memory-hook.mjs +27 -9
- package/.claude/helpers/hook-handler.cjs +58 -18
- package/.claude/helpers/statusline.cjs +420 -613
- package/.claude/helpers/statusline.js +3 -3
- package/.claude/settings.json +9 -9
- package/.claude/skills/reasoningbank-intelligence/SKILL.md +2 -2
- package/.claude/skills/swarm-orchestration/SKILL.md +1 -1
- package/README.md +383 -170
- package/bin/cli.js +6 -6
- package/bin/mcp-server.js +1 -1
- package/bin/preinstall.cjs +2 -0
- package/dist/src/appliance/gguf-engine.js +664 -0
- package/dist/src/appliance/gguf-engine.js.map +1 -0
- package/dist/src/appliance/ruvllm-bridge.js +492 -0
- package/dist/src/appliance/ruvllm-bridge.js.map +1 -0
- package/dist/src/appliance/rvfa-builder.js +383 -0
- package/dist/src/appliance/rvfa-builder.js.map +1 -0
- package/dist/src/appliance/rvfa-distribution.js +533 -0
- package/dist/src/appliance/rvfa-distribution.js.map +1 -0
- package/dist/src/appliance/rvfa-format.js +465 -0
- package/dist/src/appliance/rvfa-format.js.map +1 -0
- package/dist/src/appliance/rvfa-runner.js +373 -0
- package/dist/src/appliance/rvfa-runner.js.map +1 -0
- package/dist/src/appliance/rvfa-signing.js +469 -0
- package/dist/src/appliance/rvfa-signing.js.map +1 -0
- package/dist/src/benchmarks/pretrain/index.js +542 -331
- package/dist/src/benchmarks/pretrain/index.js.map +1 -1
- package/dist/src/commands/agent.d.ts.map +1 -1
- package/dist/src/commands/agent.js +725 -502
- package/dist/src/commands/agent.js.map +1 -1
- package/dist/src/commands/analyze.js +1548 -1218
- package/dist/src/commands/analyze.js.map +1 -1
- package/dist/src/commands/appliance-advanced.d.ts +9 -0
- package/dist/src/commands/appliance-advanced.d.ts.map +1 -0
- package/dist/src/commands/appliance-advanced.js +324 -0
- package/dist/src/commands/appliance-advanced.js.map +1 -0
- package/dist/src/commands/appliance.d.ts +8 -0
- package/dist/src/commands/appliance.d.ts.map +1 -0
- package/dist/src/commands/appliance.js +581 -0
- package/dist/src/commands/appliance.js.map +1 -0
- package/dist/src/commands/benchmark.js +523 -372
- package/dist/src/commands/benchmark.js.map +1 -1
- package/dist/src/commands/claims.js +364 -274
- package/dist/src/commands/claims.js.map +1 -1
- package/dist/src/commands/cleanup.d.ts +13 -0
- package/dist/src/commands/cleanup.d.ts.map +1 -0
- package/dist/src/commands/cleanup.js +262 -0
- package/dist/src/commands/cleanup.js.map +1 -0
- package/dist/src/commands/completions.js +118 -477
- package/dist/src/commands/completions.js.map +1 -1
- package/dist/src/commands/config.js +303 -237
- package/dist/src/commands/config.js.map +1 -1
- package/dist/src/commands/daemon.d.ts.map +1 -1
- package/dist/src/commands/daemon.js +597 -425
- package/dist/src/commands/daemon.js.map +1 -1
- package/dist/src/commands/deployment.js +275 -194
- package/dist/src/commands/deployment.js.map +1 -1
- package/dist/src/commands/doctor.d.ts.map +1 -1
- package/dist/src/commands/doctor.js +690 -460
- package/dist/src/commands/doctor.js.map +1 -1
- package/dist/src/commands/embeddings.js +1543 -1293
- package/dist/src/commands/embeddings.js.map +1 -1
- package/dist/src/commands/guidance.js +596 -449
- package/dist/src/commands/guidance.js.map +1 -1
- package/dist/src/commands/hive-mind.js +938 -854
- package/dist/src/commands/hive-mind.js.map +1 -1
- package/dist/src/commands/hooks.d.ts.map +1 -1
- package/dist/src/commands/hooks.js +3677 -2570
- package/dist/src/commands/hooks.js.map +1 -1
- package/dist/src/commands/index.js +322 -122
- package/dist/src/commands/index.js.map +1 -1
- package/dist/src/commands/init.d.ts +1 -1
- package/dist/src/commands/init.d.ts.map +1 -1
- package/dist/src/commands/init.js +943 -787
- package/dist/src/commands/init.js.map +1 -1
- package/dist/src/commands/issues.js +558 -383
- package/dist/src/commands/issues.js.map +1 -1
- package/dist/src/commands/mcp.d.ts.map +1 -1
- package/dist/src/commands/mcp.js +605 -475
- package/dist/src/commands/mcp.js.map +1 -1
- package/dist/src/commands/memory.d.ts.map +1 -1
- package/dist/src/commands/memory.js +1031 -814
- package/dist/src/commands/memory.js.map +1 -1
- package/dist/src/commands/migrate.js +347 -282
- package/dist/src/commands/migrate.js.map +1 -1
- package/dist/src/commands/neural.d.ts.map +1 -1
- package/dist/src/commands/neural.js +1563 -1283
- package/dist/src/commands/neural.js.map +1 -1
- package/dist/src/commands/performance.js +643 -497
- package/dist/src/commands/performance.js.map +1 -1
- package/dist/src/commands/plugins.js +841 -668
- package/dist/src/commands/plugins.js.map +1 -1
- package/dist/src/commands/process.js +447 -392
- package/dist/src/commands/process.js.map +1 -1
- package/dist/src/commands/progress.js +256 -162
- package/dist/src/commands/progress.js.map +1 -1
- package/dist/src/commands/providers.js +220 -150
- package/dist/src/commands/providers.js.map +1 -1
- package/dist/src/commands/route.js +665 -520
- package/dist/src/commands/route.js.map +1 -1
- package/dist/src/commands/ruvector/backup.js +651 -505
- package/dist/src/commands/ruvector/backup.js.map +1 -1
- package/dist/src/commands/ruvector/benchmark.js +401 -349
- package/dist/src/commands/ruvector/benchmark.js.map +1 -1
- package/dist/src/commands/ruvector/import.js +267 -225
- package/dist/src/commands/ruvector/import.js.map +1 -1
- package/dist/src/commands/ruvector/index.js +75 -37
- package/dist/src/commands/ruvector/index.js.map +1 -1
- package/dist/src/commands/ruvector/init.js +359 -336
- package/dist/src/commands/ruvector/init.js.map +1 -1
- package/dist/src/commands/ruvector/migrate.js +322 -335
- package/dist/src/commands/ruvector/migrate.js.map +1 -1
- package/dist/src/commands/ruvector/optimize.js +431 -375
- package/dist/src/commands/ruvector/optimize.js.map +1 -1
- package/dist/src/commands/ruvector/setup.js +117 -703
- package/dist/src/commands/ruvector/setup.js.map +1 -1
- package/dist/src/commands/ruvector/status.js +419 -364
- package/dist/src/commands/ruvector/status.js.map +1 -1
- package/dist/src/commands/security.d.ts.map +1 -1
- package/dist/src/commands/security.js +610 -456
- package/dist/src/commands/security.js.map +1 -1
- package/dist/src/commands/session.d.ts +1 -1
- package/dist/src/commands/session.js +627 -505
- package/dist/src/commands/session.js.map +1 -1
- package/dist/src/commands/start.d.ts +1 -1
- package/dist/src/commands/start.js +368 -271
- package/dist/src/commands/start.js.map +1 -1
- package/dist/src/commands/status.d.ts +1 -1
- package/dist/src/commands/status.d.ts.map +1 -1
- package/dist/src/commands/status.js +492 -379
- package/dist/src/commands/status.js.map +1 -1
- package/dist/src/commands/swarm.js +488 -408
- package/dist/src/commands/swarm.js.map +1 -1
- package/dist/src/commands/task.d.ts +1 -1
- package/dist/src/commands/task.js +539 -424
- package/dist/src/commands/task.js.map +1 -1
- package/dist/src/commands/transfer-store.js +412 -322
- package/dist/src/commands/transfer-store.js.map +1 -1
- package/dist/src/commands/update.js +291 -196
- package/dist/src/commands/update.js.map +1 -1
- package/dist/src/commands/workflow.js +486 -386
- package/dist/src/commands/workflow.js.map +1 -1
- package/dist/src/config-adapter.js +40 -39
- package/dist/src/config-adapter.js.map +1 -1
- package/dist/src/index.js +416 -312
- package/dist/src/index.js.map +1 -1
- package/dist/src/infrastructure/in-memory-repositories.js +507 -246
- package/dist/src/infrastructure/in-memory-repositories.js.map +1 -1
- package/dist/src/init/claudemd-generator.js +78 -368
- package/dist/src/init/claudemd-generator.js.map +1 -1
- package/dist/src/init/executor.js +1019 -1345
- package/dist/src/init/executor.js.map +1 -1
- package/dist/src/init/helpers-generator.js +60 -635
- 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.d.ts +0 -1
- package/dist/src/init/mcp-generator.d.ts.map +1 -1
- package/dist/src/init/mcp-generator.js +62 -42
- package/dist/src/init/mcp-generator.js.map +1 -1
- package/dist/src/init/settings-generator.d.ts.map +1 -1
- package/dist/src/init/settings-generator.js +167 -100
- package/dist/src/init/settings-generator.js.map +1 -1
- package/dist/src/init/statusline-generator.d.ts +16 -8
- package/dist/src/init/statusline-generator.d.ts.map +1 -1
- package/dist/src/init/statusline-generator.js +20 -1300
- package/dist/src/init/statusline-generator.js.map +1 -1
- package/dist/src/init/types.d.ts +15 -5
- package/dist/src/init/types.d.ts.map +1 -1
- package/dist/src/init/types.js +66 -76
- package/dist/src/init/types.js.map +1 -1
- package/dist/src/mcp-client.js +130 -76
- package/dist/src/mcp-client.js.map +1 -1
- package/dist/src/mcp-server.js +758 -445
- package/dist/src/mcp-server.js.map +1 -1
- package/dist/src/mcp-tools/agent-tools.js +492 -391
- package/dist/src/mcp-tools/agent-tools.js.map +1 -1
- package/dist/src/mcp-tools/agentdb-tools.d.ts +30 -0
- package/dist/src/mcp-tools/agentdb-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/agentdb-tools.js +758 -0
- package/dist/src/mcp-tools/agentdb-tools.js.map +1 -0
- package/dist/src/mcp-tools/analyze-tools.js +236 -172
- package/dist/src/mcp-tools/analyze-tools.js.map +1 -1
- package/dist/src/mcp-tools/auto-install.js +142 -80
- package/dist/src/mcp-tools/auto-install.js.map +1 -1
- package/dist/src/mcp-tools/browser-tools.js +375 -252
- package/dist/src/mcp-tools/browser-tools.js.map +1 -1
- package/dist/src/mcp-tools/claims-tools.js +565 -473
- package/dist/src/mcp-tools/claims-tools.js.map +1 -1
- package/dist/src/mcp-tools/config-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/config-tools.js +284 -190
- package/dist/src/mcp-tools/config-tools.js.map +1 -1
- package/dist/src/mcp-tools/coordination-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/coordination-tools.js +600 -349
- package/dist/src/mcp-tools/coordination-tools.js.map +1 -1
- package/dist/src/mcp-tools/daa-tools.js +367 -289
- package/dist/src/mcp-tools/daa-tools.js.map +1 -1
- package/dist/src/mcp-tools/embeddings-tools.js +693 -582
- package/dist/src/mcp-tools/embeddings-tools.js.map +1 -1
- package/dist/src/mcp-tools/github-tools.js +312 -261
- package/dist/src/mcp-tools/github-tools.js.map +1 -1
- package/dist/src/mcp-tools/hive-mind-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/hive-mind-tools.js +718 -423
- package/dist/src/mcp-tools/hive-mind-tools.js.map +1 -1
- package/dist/src/mcp-tools/hooks-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/hooks-tools.js +2726 -1978
- package/dist/src/mcp-tools/hooks-tools.js.map +1 -1
- package/dist/src/mcp-tools/index.d.ts +2 -0
- package/dist/src/mcp-tools/index.d.ts.map +1 -1
- package/dist/src/mcp-tools/index.js +2 -0
- package/dist/src/mcp-tools/index.js.map +1 -1
- package/dist/src/mcp-tools/memory-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/memory-tools.js +514 -329
- package/dist/src/mcp-tools/memory-tools.js.map +1 -1
- package/dist/src/mcp-tools/neural-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/neural-tools.js +428 -326
- package/dist/src/mcp-tools/neural-tools.js.map +1 -1
- package/dist/src/mcp-tools/performance-tools.js +480 -420
- package/dist/src/mcp-tools/performance-tools.js.map +1 -1
- package/dist/src/mcp-tools/progress-tools.js +278 -204
- package/dist/src/mcp-tools/progress-tools.js.map +1 -1
- package/dist/src/mcp-tools/ruvllm-tools.d.ts +9 -0
- package/dist/src/mcp-tools/ruvllm-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/ruvllm-tools.js +399 -0
- package/dist/src/mcp-tools/ruvllm-tools.js.map +1 -0
- package/dist/src/mcp-tools/security-tools.js +429 -297
- package/dist/src/mcp-tools/security-tools.js.map +1 -1
- package/dist/src/mcp-tools/session-tools.js +234 -185
- package/dist/src/mcp-tools/session-tools.js.map +1 -1
- package/dist/src/mcp-tools/swarm-tools.d.ts +2 -1
- package/dist/src/mcp-tools/swarm-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/swarm-tools.js +303 -64
- package/dist/src/mcp-tools/swarm-tools.js.map +1 -1
- package/dist/src/mcp-tools/system-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/system-tools.js +352 -200
- package/dist/src/mcp-tools/system-tools.js.map +1 -1
- package/dist/src/mcp-tools/task-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/task-tools.js +357 -189
- package/dist/src/mcp-tools/task-tools.js.map +1 -1
- package/dist/src/mcp-tools/terminal-tools.js +196 -148
- package/dist/src/mcp-tools/terminal-tools.js.map +1 -1
- package/dist/src/mcp-tools/transfer-tools.js +333 -186
- package/dist/src/mcp-tools/transfer-tools.js.map +1 -1
- package/dist/src/mcp-tools/wasm-agent-tools.d.ts +9 -0
- package/dist/src/mcp-tools/wasm-agent-tools.d.ts.map +1 -0
- package/dist/src/mcp-tools/wasm-agent-tools.js +377 -0
- package/dist/src/mcp-tools/wasm-agent-tools.js.map +1 -0
- package/dist/src/mcp-tools/workflow-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/workflow-tools.js +471 -335
- package/dist/src/mcp-tools/workflow-tools.js.map +1 -1
- package/dist/src/memory/ewc-consolidation.js +345 -173
- package/dist/src/memory/ewc-consolidation.js.map +1 -1
- package/dist/src/memory/intelligence.js +841 -359
- package/dist/src/memory/intelligence.js.map +1 -1
- package/dist/src/memory/memory-bridge.js +1964 -0
- package/dist/src/memory/memory-bridge.js.map +1 -0
- package/dist/src/memory/memory-initializer.js +1895 -1602
- package/dist/src/memory/memory-initializer.js.map +1 -1
- package/dist/src/memory/sona-optimizer.js +329 -199
- 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 +273 -242
- package/dist/src/output.js.map +1 -1
- package/dist/src/parser.js +217 -124
- package/dist/src/parser.js.map +1 -1
- package/dist/src/plugins/manager.js +531 -278
- package/dist/src/plugins/manager.js.map +1 -1
- package/dist/src/plugins/store/discovery.js +362 -275
- package/dist/src/plugins/store/discovery.js.map +1 -1
- package/dist/src/plugins/store/index.js +105 -48
- package/dist/src/plugins/store/index.js.map +1 -1
- package/dist/src/plugins/store/search.js +107 -69
- package/dist/src/plugins/store/search.js.map +1 -1
- package/dist/src/plugins/tests/demo-plugin-store.js +160 -113
- package/dist/src/plugins/tests/demo-plugin-store.js.map +1 -1
- package/dist/src/plugins/tests/standalone-test.js +223 -172
- package/dist/src/plugins/tests/standalone-test.js.map +1 -1
- package/dist/src/plugins/tests/test-plugin-store.js +228 -190
- package/dist/src/plugins/tests/test-plugin-store.js.map +1 -1
- package/dist/src/production/circuit-breaker.js +126 -62
- package/dist/src/production/circuit-breaker.js.map +1 -1
- package/dist/src/production/error-handler.js +156 -86
- package/dist/src/production/error-handler.js.map +1 -1
- package/dist/src/production/monitoring.js +220 -139
- package/dist/src/production/monitoring.js.map +1 -1
- package/dist/src/production/rate-limiter.js +93 -74
- package/dist/src/production/rate-limiter.js.map +1 -1
- package/dist/src/production/retry.js +167 -75
- package/dist/src/production/retry.js.map +1 -1
- package/dist/src/prompt.js +560 -436
- package/dist/src/prompt.js.map +1 -1
- package/dist/src/runtime/headless.js +289 -200
- package/dist/src/runtime/headless.js.map +1 -1
- package/dist/src/ruvector/agent-wasm.js +511 -0
- package/dist/src/ruvector/agent-wasm.js.map +1 -0
- package/dist/src/ruvector/ast-analyzer.js +232 -145
- package/dist/src/ruvector/ast-analyzer.js.map +1 -1
- package/dist/src/ruvector/coverage-router.js +419 -287
- package/dist/src/ruvector/coverage-router.js.map +1 -1
- package/dist/src/ruvector/coverage-tools.js +101 -56
- package/dist/src/ruvector/coverage-tools.js.map +1 -1
- package/dist/src/ruvector/diff-classifier.js +451 -324
- package/dist/src/ruvector/diff-classifier.js.map +1 -1
- package/dist/src/ruvector/enhanced-model-router.js +337 -251
- package/dist/src/ruvector/enhanced-model-router.js.map +1 -1
- package/dist/src/ruvector/flash-attention.js +254 -223
- package/dist/src/ruvector/flash-attention.js.map +1 -1
- package/dist/src/ruvector/graph-analyzer.js +680 -486
- package/dist/src/ruvector/graph-analyzer.js.map +1 -1
- package/dist/src/ruvector/index.js +113 -27
- package/dist/src/ruvector/index.js.map +1 -1
- package/dist/src/ruvector/lora-adapter.js +248 -155
- package/dist/src/ruvector/lora-adapter.js.map +1 -1
- package/dist/src/ruvector/model-router.js +248 -175
- package/dist/src/ruvector/model-router.js.map +1 -1
- package/dist/src/ruvector/moe-router.js +286 -228
- package/dist/src/ruvector/moe-router.js.map +1 -1
- package/dist/src/ruvector/q-learning-router.js +338 -257
- package/dist/src/ruvector/q-learning-router.js.map +1 -1
- package/dist/src/ruvector/ruvllm-wasm.js +527 -0
- package/dist/src/ruvector/ruvllm-wasm.js.map +1 -0
- package/dist/src/ruvector/semantic-router.js +67 -60
- package/dist/src/ruvector/semantic-router.js.map +1 -1
- package/dist/src/ruvector/vector-db.js +205 -119
- package/dist/src/ruvector/vector-db.js.map +1 -1
- package/dist/src/services/agentic-flow-bridge.js +168 -0
- package/dist/src/services/agentic-flow-bridge.js.map +1 -0
- package/dist/src/services/claim-service.js +940 -615
- package/dist/src/services/claim-service.js.map +1 -1
- package/dist/src/services/container-worker-pool.js +669 -399
- package/dist/src/services/container-worker-pool.js.map +1 -1
- package/dist/src/services/headless-worker-executor.js +467 -441
- package/dist/src/services/headless-worker-executor.js.map +1 -1
- package/dist/src/services/index.d.ts +5 -5
- 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.js +201 -93
- package/dist/src/services/registry-api.js.map +1 -1
- package/dist/src/services/ruvector-training.js +414 -144
- package/dist/src/services/ruvector-training.js.map +1 -1
- package/dist/src/services/worker-daemon.js +928 -531
- package/dist/src/services/worker-daemon.js.map +1 -1
- package/dist/src/services/worker-queue.js +550 -331
- package/dist/src/services/worker-queue.js.map +1 -1
- package/dist/src/suggest.js +55 -45
- package/dist/src/suggest.js.map +1 -1
- package/dist/src/transfer/anonymization/index.js +37 -29
- package/dist/src/transfer/anonymization/index.js.map +1 -1
- package/dist/src/transfer/deploy-seraphine.d.ts +1 -1
- package/dist/src/transfer/deploy-seraphine.js +156 -129
- package/dist/src/transfer/deploy-seraphine.js.map +1 -1
- package/dist/src/transfer/export.js +142 -84
- 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 +2 -0
- package/dist/src/transfer/index.js.map +1 -1
- package/dist/src/transfer/ipfs/client.js +337 -179
- package/dist/src/transfer/ipfs/client.js.map +1 -1
- package/dist/src/transfer/ipfs/upload.js +434 -290
- package/dist/src/transfer/ipfs/upload.js.map +1 -1
- package/dist/src/transfer/models/seraphine.js +58 -58
- package/dist/src/transfer/models/seraphine.js.map +1 -1
- package/dist/src/transfer/serialization/cfp.js +37 -33
- package/dist/src/transfer/serialization/cfp.js.map +1 -1
- package/dist/src/transfer/storage/gcs.js +248 -139
- package/dist/src/transfer/storage/gcs.js.map +1 -1
- package/dist/src/transfer/store/discovery.js +353 -243
- package/dist/src/transfer/store/discovery.js.map +1 -1
- package/dist/src/transfer/store/download.js +365 -243
- package/dist/src/transfer/store/download.js.map +1 -1
- package/dist/src/transfer/store/index.js +130 -63
- package/dist/src/transfer/store/index.js.map +1 -1
- package/dist/src/transfer/store/publish.js +258 -184
- package/dist/src/transfer/store/publish.js.map +1 -1
- package/dist/src/transfer/store/registry.js +73 -51
- package/dist/src/transfer/store/registry.js.map +1 -1
- package/dist/src/transfer/store/search.js +96 -64
- package/dist/src/transfer/store/search.js.map +1 -1
- package/dist/src/transfer/store/tests/standalone-test.js +231 -174
- package/dist/src/transfer/store/tests/standalone-test.js.map +1 -1
- package/dist/src/transfer/test-seraphine.js +130 -95
- package/dist/src/transfer/test-seraphine.js.map +1 -1
- package/dist/src/transfer/tests/test-store.js +239 -194
- package/dist/src/transfer/tests/test-store.js.map +1 -1
- package/dist/src/types.js +56 -27
- package/dist/src/types.js.map +1 -1
- package/dist/src/update/checker.js +183 -106
- package/dist/src/update/checker.js.map +1 -1
- package/dist/src/update/executor.js +198 -135
- package/dist/src/update/executor.js.map +1 -1
- package/dist/src/update/index.js +85 -38
- package/dist/src/update/index.js.map +1 -1
- package/dist/src/update/rate-limiter.js +31 -19
- package/dist/src/update/rate-limiter.js.map +1 -1
- package/dist/src/update/validator.js +64 -38
- package/dist/src/update/validator.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +13 -10
- package/.claude/agents/custom/accessibility-auditor.yaml +0 -56
- package/.claude/agents/custom/design-architect.yaml +0 -48
- package/.claude/agents/custom/ui-developer.yaml +0 -46
- package/.claude/agents/custom/ux-researcher.yaml +0 -60
- package/dist/src/benchmarks/pretrain/index.d.ts +0 -58
- package/dist/src/benchmarks/pretrain/index.d.ts.map +0 -1
- package/dist/src/commands/index.d.ts +0 -108
- package/dist/src/commands/index.d.ts.map +0 -1
- package/dist/src/config-adapter.d.ts +0 -15
- package/dist/src/config-adapter.d.ts.map +0 -1
- package/dist/src/index.d.ts +0 -76
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/infrastructure/in-memory-repositories.d.ts +0 -68
- package/dist/src/infrastructure/in-memory-repositories.d.ts.map +0 -1
- package/dist/src/init/claudemd-generator.d.ts +0 -25
- package/dist/src/init/claudemd-generator.d.ts.map +0 -1
- package/dist/src/init/executor.d.ts +0 -41
- package/dist/src/init/executor.d.ts.map +0 -1
- package/dist/src/init/helpers-generator.d.ts +0 -60
- package/dist/src/init/helpers-generator.d.ts.map +0 -1
- package/dist/src/mcp-client.d.ts +0 -92
- package/dist/src/mcp-client.d.ts.map +0 -1
- package/dist/src/mcp-server.d.ts +0 -161
- package/dist/src/mcp-server.d.ts.map +0 -1
- package/dist/src/mcp-tools/auto-install.d.ts +0 -83
- package/dist/src/mcp-tools/auto-install.d.ts.map +0 -1
- package/dist/src/mcp-tools/types.d.ts +0 -31
- package/dist/src/mcp-tools/types.d.ts.map +0 -1
- package/dist/src/memory/ewc-consolidation.d.ts +0 -271
- package/dist/src/memory/ewc-consolidation.d.ts.map +0 -1
- package/dist/src/memory/intelligence.d.ts +0 -285
- package/dist/src/memory/intelligence.d.ts.map +0 -1
- package/dist/src/memory/memory-initializer.d.ts +0 -396
- package/dist/src/memory/memory-initializer.d.ts.map +0 -1
- package/dist/src/memory/sona-optimizer.d.ts +0 -227
- package/dist/src/memory/sona-optimizer.d.ts.map +0 -1
- package/dist/src/parser.d.ts +0 -41
- package/dist/src/parser.d.ts.map +0 -1
- package/dist/src/plugins/manager.d.ts +0 -133
- package/dist/src/plugins/manager.d.ts.map +0 -1
- package/dist/src/plugins/store/discovery.d.ts +0 -88
- package/dist/src/plugins/store/discovery.d.ts.map +0 -1
- package/dist/src/plugins/store/index.d.ts +0 -76
- package/dist/src/plugins/store/index.d.ts.map +0 -1
- package/dist/src/plugins/store/search.d.ts +0 -46
- package/dist/src/plugins/store/search.d.ts.map +0 -1
- package/dist/src/plugins/store/types.d.ts +0 -274
- package/dist/src/plugins/store/types.d.ts.map +0 -1
- package/dist/src/production/circuit-breaker.d.ts +0 -101
- package/dist/src/production/circuit-breaker.d.ts.map +0 -1
- package/dist/src/production/error-handler.d.ts +0 -92
- package/dist/src/production/error-handler.d.ts.map +0 -1
- package/dist/src/production/monitoring.d.ts +0 -161
- package/dist/src/production/monitoring.d.ts.map +0 -1
- package/dist/src/production/rate-limiter.d.ts +0 -80
- package/dist/src/production/rate-limiter.d.ts.map +0 -1
- package/dist/src/production/retry.d.ts +0 -48
- package/dist/src/production/retry.d.ts.map +0 -1
- package/dist/src/prompt.d.ts +0 -44
- package/dist/src/prompt.d.ts.map +0 -1
- package/dist/src/runtime/headless.d.ts +0 -60
- package/dist/src/runtime/headless.d.ts.map +0 -1
- package/dist/src/ruvector/ast-analyzer.d.ts +0 -67
- package/dist/src/ruvector/ast-analyzer.d.ts.map +0 -1
- package/dist/src/ruvector/coverage-router.d.ts +0 -160
- package/dist/src/ruvector/coverage-router.d.ts.map +0 -1
- package/dist/src/ruvector/diff-classifier.d.ts +0 -175
- package/dist/src/ruvector/diff-classifier.d.ts.map +0 -1
- package/dist/src/ruvector/enhanced-model-router.d.ts +0 -146
- package/dist/src/ruvector/enhanced-model-router.d.ts.map +0 -1
- package/dist/src/ruvector/flash-attention.d.ts +0 -195
- package/dist/src/ruvector/flash-attention.d.ts.map +0 -1
- package/dist/src/ruvector/graph-analyzer.d.ts +0 -187
- package/dist/src/ruvector/graph-analyzer.d.ts.map +0 -1
- package/dist/src/ruvector/index.d.ts +0 -34
- package/dist/src/ruvector/index.d.ts.map +0 -1
- package/dist/src/ruvector/lora-adapter.d.ts +0 -218
- package/dist/src/ruvector/lora-adapter.d.ts.map +0 -1
- package/dist/src/ruvector/model-router.d.ts +0 -220
- package/dist/src/ruvector/model-router.d.ts.map +0 -1
- package/dist/src/ruvector/moe-router.d.ts +0 -206
- package/dist/src/ruvector/moe-router.d.ts.map +0 -1
- package/dist/src/ruvector/q-learning-router.d.ts +0 -211
- package/dist/src/ruvector/q-learning-router.d.ts.map +0 -1
- package/dist/src/ruvector/semantic-router.d.ts +0 -77
- package/dist/src/ruvector/semantic-router.d.ts.map +0 -1
- package/dist/src/ruvector/vector-db.d.ts +0 -69
- package/dist/src/ruvector/vector-db.d.ts.map +0 -1
- package/dist/src/services/claim-service.d.ts +0 -204
- package/dist/src/services/claim-service.d.ts.map +0 -1
- package/dist/src/services/container-worker-pool.d.ts +0 -197
- package/dist/src/services/container-worker-pool.d.ts.map +0 -1
- package/dist/src/services/headless-worker-executor.d.ts +0 -304
- package/dist/src/services/headless-worker-executor.d.ts.map +0 -1
- package/dist/src/services/registry-api.d.ts +0 -58
- package/dist/src/services/registry-api.d.ts.map +0 -1
- package/dist/src/services/ruvector-training.d.ts +0 -213
- package/dist/src/services/ruvector-training.d.ts.map +0 -1
- package/dist/src/services/worker-daemon.d.ts +0 -203
- package/dist/src/services/worker-daemon.d.ts.map +0 -1
- package/dist/src/services/worker-queue.d.ts +0 -194
- package/dist/src/services/worker-queue.d.ts.map +0 -1
- package/dist/src/suggest.d.ts +0 -53
- package/dist/src/suggest.d.ts.map +0 -1
- package/dist/src/transfer/export.d.ts +0 -25
- package/dist/src/transfer/export.d.ts.map +0 -1
- package/dist/src/transfer/ipfs/client.d.ts +0 -109
- package/dist/src/transfer/ipfs/client.d.ts.map +0 -1
- package/dist/src/transfer/ipfs/upload.d.ts +0 -95
- package/dist/src/transfer/ipfs/upload.d.ts.map +0 -1
- package/dist/src/transfer/models/seraphine.d.ts +0 -72
- package/dist/src/transfer/models/seraphine.d.ts.map +0 -1
- package/dist/src/transfer/serialization/cfp.d.ts +0 -49
- package/dist/src/transfer/serialization/cfp.d.ts.map +0 -1
- package/dist/src/transfer/storage/gcs.d.ts +0 -82
- package/dist/src/transfer/storage/gcs.d.ts.map +0 -1
- package/dist/src/transfer/store/discovery.d.ts +0 -84
- package/dist/src/transfer/store/discovery.d.ts.map +0 -1
- package/dist/src/transfer/store/download.d.ts +0 -70
- package/dist/src/transfer/store/download.d.ts.map +0 -1
- package/dist/src/transfer/store/index.d.ts +0 -84
- package/dist/src/transfer/store/index.d.ts.map +0 -1
- package/dist/src/transfer/store/publish.d.ts +0 -76
- package/dist/src/transfer/store/publish.d.ts.map +0 -1
- package/dist/src/transfer/store/search.d.ts +0 -54
- package/dist/src/transfer/store/search.d.ts.map +0 -1
- package/dist/src/transfer/types.d.ts +0 -245
- package/dist/src/transfer/types.d.ts.map +0 -1
- package/dist/src/types.d.ts +0 -198
- package/dist/src/types.d.ts.map +0 -1
- package/dist/src/update/checker.d.ts +0 -34
- package/dist/src/update/checker.d.ts.map +0 -1
- package/dist/src/update/executor.d.ts +0 -32
- package/dist/src/update/executor.d.ts.map +0 -1
- package/dist/src/update/index.d.ts +0 -33
- package/dist/src/update/index.d.ts.map +0 -1
- package/dist/src/update/rate-limiter.d.ts +0 -20
- package/dist/src/update/rate-limiter.d.ts.map +0 -1
- package/dist/src/update/validator.d.ts +0 -17
- package/dist/src/update/validator.d.ts.map +0 -1
|
@@ -2,10 +2,46 @@
|
|
|
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
|
+
};
|
|
5
41
|
import { output } from '../output.js';
|
|
6
42
|
import { confirm } from '../prompt.js';
|
|
7
43
|
// Init configuration
|
|
8
|
-
|
|
44
|
+
var initCommand = {
|
|
9
45
|
name: 'init',
|
|
10
46
|
description: 'Initialize configuration',
|
|
11
47
|
options: [
|
|
@@ -14,96 +50,98 @@ const initCommand = {
|
|
|
14
50
|
short: 'f',
|
|
15
51
|
description: 'Overwrite existing configuration',
|
|
16
52
|
type: 'boolean',
|
|
17
|
-
default: false
|
|
53
|
+
"default": false
|
|
18
54
|
},
|
|
19
55
|
{
|
|
20
56
|
name: 'sparc',
|
|
21
57
|
description: 'Initialize with SPARC methodology',
|
|
22
58
|
type: 'boolean',
|
|
23
|
-
default: false
|
|
59
|
+
"default": false
|
|
24
60
|
},
|
|
25
61
|
{
|
|
26
62
|
name: 'v3',
|
|
27
63
|
description: 'Initialize V3 configuration',
|
|
28
64
|
type: 'boolean',
|
|
29
|
-
default: true
|
|
65
|
+
"default": true
|
|
30
66
|
}
|
|
31
67
|
],
|
|
32
|
-
action:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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
|
-
|
|
68
|
+
action: function (ctx) { return __awaiter(void 0, void 0, Promise, function () {
|
|
69
|
+
var sparc, v3, config;
|
|
70
|
+
return __generator(this, function (_a) {
|
|
71
|
+
sparc = ctx.flags.sparc;
|
|
72
|
+
v3 = ctx.flags.v3;
|
|
73
|
+
output.writeln();
|
|
74
|
+
output.printInfo('Initializing RuFlo configuration...');
|
|
75
|
+
output.writeln();
|
|
76
|
+
config = {
|
|
77
|
+
version: '3.0.0',
|
|
78
|
+
v3Mode: v3,
|
|
79
|
+
sparc: sparc,
|
|
80
|
+
agents: {
|
|
81
|
+
defaultType: 'coder',
|
|
82
|
+
maxConcurrent: 15,
|
|
83
|
+
autoSpawn: true,
|
|
84
|
+
timeout: 300
|
|
85
|
+
},
|
|
86
|
+
swarm: {
|
|
87
|
+
topology: 'hybrid',
|
|
88
|
+
maxAgents: 15,
|
|
89
|
+
autoScale: true,
|
|
90
|
+
coordinationStrategy: 'consensus'
|
|
91
|
+
},
|
|
92
|
+
memory: {
|
|
93
|
+
backend: 'hybrid',
|
|
94
|
+
path: './data/memory',
|
|
95
|
+
cacheSize: 256,
|
|
96
|
+
enableHNSW: true
|
|
97
|
+
},
|
|
98
|
+
mcp: {
|
|
99
|
+
transport: 'stdio',
|
|
100
|
+
autoStart: true,
|
|
101
|
+
tools: 'all'
|
|
102
|
+
},
|
|
103
|
+
providers: [
|
|
104
|
+
{ name: 'anthropic', priority: 1, enabled: true },
|
|
105
|
+
{ name: 'openrouter', priority: 2, enabled: false },
|
|
106
|
+
{ name: 'ollama', priority: 3, enabled: false }
|
|
107
|
+
]
|
|
108
|
+
};
|
|
109
|
+
output.writeln(output.dim(' Creating claude-flow.config.json...'));
|
|
110
|
+
output.writeln(output.dim(' Creating .claude-flow/ directory...'));
|
|
111
|
+
if (sparc) {
|
|
112
|
+
output.writeln(output.dim(' Initializing SPARC methodology...'));
|
|
113
|
+
output.writeln(output.dim(' Creating SPARC workflow files...'));
|
|
114
|
+
}
|
|
115
|
+
if (v3) {
|
|
116
|
+
output.writeln(output.dim(' Enabling V3 15-agent coordination...'));
|
|
117
|
+
output.writeln(output.dim(' Configuring AgentDB integration...'));
|
|
118
|
+
output.writeln(output.dim(' Setting up Flash Attention optimization...'));
|
|
119
|
+
}
|
|
120
|
+
output.writeln();
|
|
121
|
+
output.printTable({
|
|
122
|
+
columns: [
|
|
123
|
+
{ key: 'setting', header: 'Setting', width: 25 },
|
|
124
|
+
{ key: 'value', header: 'Value', width: 30 }
|
|
125
|
+
],
|
|
126
|
+
data: [
|
|
127
|
+
{ setting: 'Version', value: config.version },
|
|
128
|
+
{ setting: 'V3 Mode', value: config.v3Mode ? 'Enabled' : 'Disabled' },
|
|
129
|
+
{ setting: 'SPARC Mode', value: config.sparc ? 'Enabled' : 'Disabled' },
|
|
130
|
+
{ setting: 'Swarm Topology', value: config.swarm.topology },
|
|
131
|
+
{ setting: 'Max Agents', value: config.swarm.maxAgents },
|
|
132
|
+
{ setting: 'Memory Backend', value: config.memory.backend },
|
|
133
|
+
{ setting: 'MCP Transport', value: config.mcp.transport }
|
|
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 }];
|
|
98
140
|
});
|
|
99
|
-
|
|
100
|
-
output.printSuccess('Configuration initialized');
|
|
101
|
-
output.writeln(output.dim(' Config file: ./claude-flow.config.json'));
|
|
102
|
-
return { success: true, data: config };
|
|
103
|
-
}
|
|
141
|
+
}); }
|
|
104
142
|
};
|
|
105
143
|
// Get configuration
|
|
106
|
-
|
|
144
|
+
var getCommand = {
|
|
107
145
|
name: 'get',
|
|
108
146
|
description: 'Get configuration value',
|
|
109
147
|
options: [
|
|
@@ -118,55 +156,60 @@ const getCommand = {
|
|
|
118
156
|
{ command: 'claude-flow config get swarm.topology', description: 'Get swarm topology' },
|
|
119
157
|
{ command: 'claude-flow config get -k memory.backend', description: 'Get memory backend' }
|
|
120
158
|
],
|
|
121
|
-
action:
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
159
|
+
action: function (ctx) { return __awaiter(void 0, void 0, Promise, function () {
|
|
160
|
+
var key, configValues, value;
|
|
161
|
+
return __generator(this, function (_a) {
|
|
162
|
+
key = ctx.flags.key || ctx.args[0];
|
|
163
|
+
configValues = {
|
|
164
|
+
'version': '3.0.0',
|
|
165
|
+
'v3Mode': true,
|
|
166
|
+
'swarm.topology': 'hybrid',
|
|
167
|
+
'swarm.maxAgents': 15,
|
|
168
|
+
'swarm.autoScale': true,
|
|
169
|
+
'memory.backend': 'hybrid',
|
|
170
|
+
'memory.cacheSize': 256,
|
|
171
|
+
'mcp.transport': 'stdio',
|
|
172
|
+
'agents.defaultType': 'coder',
|
|
173
|
+
'agents.maxConcurrent': 15
|
|
174
|
+
};
|
|
175
|
+
if (!key) {
|
|
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
|
+
}
|
|
138
201
|
if (ctx.flags.format === 'json') {
|
|
139
|
-
output.printJson(
|
|
140
|
-
return { success: true, data: configValues };
|
|
202
|
+
output.printJson({ key: key, value: value });
|
|
141
203
|
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
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
|
-
}
|
|
204
|
+
else {
|
|
205
|
+
output.writeln(key + " = " + value);
|
|
206
|
+
}
|
|
207
|
+
return [2 /*return*/, { success: true, data: { key: key, value: value } }];
|
|
208
|
+
});
|
|
209
|
+
}); }
|
|
167
210
|
};
|
|
168
211
|
// Set configuration
|
|
169
|
-
|
|
212
|
+
var setCommand = {
|
|
170
213
|
name: 'set',
|
|
171
214
|
description: 'Set configuration value',
|
|
172
215
|
options: [
|
|
@@ -189,20 +232,23 @@ const setCommand = {
|
|
|
189
232
|
{ command: 'claude-flow config set swarm.maxAgents 20', description: 'Set max agents' },
|
|
190
233
|
{ command: 'claude-flow config set -k memory.backend -v agentdb', description: 'Set memory backend' }
|
|
191
234
|
],
|
|
192
|
-
action:
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
235
|
+
action: function (ctx) { return __awaiter(void 0, void 0, Promise, function () {
|
|
236
|
+
var key, value;
|
|
237
|
+
return __generator(this, function (_a) {
|
|
238
|
+
key = ctx.flags.key || ctx.args[0];
|
|
239
|
+
value = ctx.flags.value || ctx.args[1];
|
|
240
|
+
if (!key || value === undefined) {
|
|
241
|
+
output.printError('Both key and value are required');
|
|
242
|
+
return [2 /*return*/, { success: false, exitCode: 1 }];
|
|
243
|
+
}
|
|
244
|
+
output.printInfo("Setting " + key + " = " + value);
|
|
245
|
+
output.printSuccess('Configuration updated');
|
|
246
|
+
return [2 /*return*/, { success: true, data: { key: key, value: value } }];
|
|
247
|
+
});
|
|
248
|
+
}); }
|
|
203
249
|
};
|
|
204
250
|
// List providers
|
|
205
|
-
|
|
251
|
+
var providersCommand = {
|
|
206
252
|
name: 'providers',
|
|
207
253
|
description: 'Manage AI providers',
|
|
208
254
|
options: [
|
|
@@ -229,40 +275,43 @@ const providersCommand = {
|
|
|
229
275
|
type: 'string'
|
|
230
276
|
}
|
|
231
277
|
],
|
|
232
|
-
action:
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
278
|
+
action: function (ctx) { return __awaiter(void 0, void 0, Promise, function () {
|
|
279
|
+
var providers;
|
|
280
|
+
return __generator(this, function (_a) {
|
|
281
|
+
providers = [
|
|
282
|
+
{ name: 'anthropic', model: 'claude-3-5-sonnet-20241022', priority: 1, enabled: true, status: 'Active' },
|
|
283
|
+
{ name: 'openrouter', model: 'claude-3.5-sonnet', priority: 2, enabled: false, status: 'Disabled' },
|
|
284
|
+
{ name: 'ollama', model: 'llama3.2', priority: 3, enabled: false, status: 'Disabled' },
|
|
285
|
+
{ name: 'gemini', model: 'gemini-2.0-flash', priority: 4, enabled: false, status: 'Disabled' }
|
|
286
|
+
];
|
|
287
|
+
if (ctx.flags.format === 'json') {
|
|
288
|
+
output.printJson(providers);
|
|
289
|
+
return [2 /*return*/, { success: true, data: providers }];
|
|
290
|
+
}
|
|
291
|
+
output.writeln();
|
|
292
|
+
output.writeln(output.bold('AI Providers'));
|
|
293
|
+
output.writeln();
|
|
294
|
+
output.printTable({
|
|
295
|
+
columns: [
|
|
296
|
+
{ key: 'name', header: 'Provider', width: 12 },
|
|
297
|
+
{ key: 'model', header: 'Model', width: 25 },
|
|
298
|
+
{ key: 'priority', header: 'Priority', width: 10, align: 'right' },
|
|
299
|
+
{ key: 'status', header: 'Status', width: 10, format: function (v) {
|
|
300
|
+
if (v === 'Active')
|
|
301
|
+
return output.success(String(v));
|
|
302
|
+
return output.dim(String(v));
|
|
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 }];
|
|
258
310
|
});
|
|
259
|
-
|
|
260
|
-
output.writeln(output.dim('Use --add, --remove, --enable, --disable to manage providers'));
|
|
261
|
-
return { success: true, data: providers };
|
|
262
|
-
}
|
|
311
|
+
}); }
|
|
263
312
|
};
|
|
264
313
|
// Reset configuration
|
|
265
|
-
|
|
314
|
+
var resetCommand = {
|
|
266
315
|
name: 'reset',
|
|
267
316
|
description: 'Reset configuration to defaults',
|
|
268
317
|
options: [
|
|
@@ -271,7 +320,7 @@ const resetCommand = {
|
|
|
271
320
|
short: 'f',
|
|
272
321
|
description: 'Skip confirmation',
|
|
273
322
|
type: 'boolean',
|
|
274
|
-
default: false
|
|
323
|
+
"default": false
|
|
275
324
|
},
|
|
276
325
|
{
|
|
277
326
|
name: 'section',
|
|
@@ -280,26 +329,35 @@ const resetCommand = {
|
|
|
280
329
|
choices: ['agents', 'swarm', 'memory', 'mcp', 'providers', 'all']
|
|
281
330
|
}
|
|
282
331
|
],
|
|
283
|
-
action:
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
332
|
+
action: function (ctx) { return __awaiter(void 0, void 0, Promise, function () {
|
|
333
|
+
var force, section, confirmed;
|
|
334
|
+
return __generator(this, function (_a) {
|
|
335
|
+
switch (_a.label) {
|
|
336
|
+
case 0:
|
|
337
|
+
force = ctx.flags.force;
|
|
338
|
+
section = ctx.flags.section || 'all';
|
|
339
|
+
if (!(!force && ctx.interactive)) return [3 /*break*/, 2];
|
|
340
|
+
return [4 /*yield*/, confirm({
|
|
341
|
+
message: "Reset " + section + " configuration to defaults?",
|
|
342
|
+
"default": false
|
|
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 } }];
|
|
294
355
|
}
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
output.printSuccess('Configuration reset to defaults');
|
|
298
|
-
return { success: true, data: { section, reset: true } };
|
|
299
|
-
}
|
|
356
|
+
});
|
|
357
|
+
}); }
|
|
300
358
|
};
|
|
301
359
|
// Export configuration
|
|
302
|
-
|
|
360
|
+
var exportCommand = {
|
|
303
361
|
name: 'export',
|
|
304
362
|
description: 'Export configuration',
|
|
305
363
|
options: [
|
|
@@ -314,29 +372,32 @@ const exportCommand = {
|
|
|
314
372
|
short: 'f',
|
|
315
373
|
description: 'Export format (json, yaml)',
|
|
316
374
|
type: 'string',
|
|
317
|
-
default: 'json',
|
|
375
|
+
"default": 'json',
|
|
318
376
|
choices: ['json', 'yaml']
|
|
319
377
|
}
|
|
320
378
|
],
|
|
321
|
-
action:
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
379
|
+
action: function (ctx) { return __awaiter(void 0, void 0, Promise, function () {
|
|
380
|
+
var outputPath, config;
|
|
381
|
+
return __generator(this, function (_a) {
|
|
382
|
+
outputPath = ctx.flags.output || './claude-flow.config.export.json';
|
|
383
|
+
config = {
|
|
384
|
+
version: '3.0.0',
|
|
385
|
+
exportedAt: new Date().toISOString(),
|
|
386
|
+
agents: { defaultType: 'coder', maxConcurrent: 15 },
|
|
387
|
+
swarm: { topology: 'hybrid', maxAgents: 15 },
|
|
388
|
+
memory: { backend: 'hybrid', cacheSize: 256 },
|
|
389
|
+
mcp: { transport: 'stdio', tools: 'all' }
|
|
390
|
+
};
|
|
391
|
+
output.printInfo("Exporting configuration to " + outputPath + "...");
|
|
392
|
+
output.printJson(config);
|
|
393
|
+
output.writeln();
|
|
394
|
+
output.printSuccess('Configuration exported');
|
|
395
|
+
return [2 /*return*/, { success: true, data: { path: outputPath, config: config } }];
|
|
396
|
+
});
|
|
397
|
+
}); }
|
|
337
398
|
};
|
|
338
399
|
// Import configuration
|
|
339
|
-
|
|
400
|
+
var importCommand = {
|
|
340
401
|
name: 'import',
|
|
341
402
|
description: 'Import configuration',
|
|
342
403
|
options: [
|
|
@@ -351,29 +412,32 @@ const importCommand = {
|
|
|
351
412
|
name: 'merge',
|
|
352
413
|
description: 'Merge with existing configuration',
|
|
353
414
|
type: 'boolean',
|
|
354
|
-
default: false
|
|
415
|
+
"default": false
|
|
355
416
|
}
|
|
356
417
|
],
|
|
357
|
-
action:
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
output.
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
418
|
+
action: function (ctx) { return __awaiter(void 0, void 0, Promise, function () {
|
|
419
|
+
var file, merge;
|
|
420
|
+
return __generator(this, function (_a) {
|
|
421
|
+
file = ctx.flags.file || ctx.args[0];
|
|
422
|
+
merge = ctx.flags.merge;
|
|
423
|
+
if (!file) {
|
|
424
|
+
output.printError('File path is required');
|
|
425
|
+
return [2 /*return*/, { success: false, exitCode: 1 }];
|
|
426
|
+
}
|
|
427
|
+
output.printInfo("Importing configuration from " + file + "...");
|
|
428
|
+
if (merge) {
|
|
429
|
+
output.writeln(output.dim(' Merging with existing configuration...'));
|
|
430
|
+
}
|
|
431
|
+
else {
|
|
432
|
+
output.writeln(output.dim(' Replacing existing configuration...'));
|
|
433
|
+
}
|
|
434
|
+
output.printSuccess('Configuration imported');
|
|
435
|
+
return [2 /*return*/, { success: true, data: { file: file, merge: merge, imported: true } }];
|
|
436
|
+
});
|
|
437
|
+
}); }
|
|
374
438
|
};
|
|
375
439
|
// Main config command
|
|
376
|
-
export
|
|
440
|
+
export var configCommand = {
|
|
377
441
|
name: 'config',
|
|
378
442
|
description: 'Configuration management',
|
|
379
443
|
subcommands: [initCommand, getCommand, setCommand, providersCommand, resetCommand, exportCommand, importCommand],
|
|
@@ -383,24 +447,26 @@ export const configCommand = {
|
|
|
383
447
|
{ command: 'claude-flow config get swarm.topology', description: 'Get config value' },
|
|
384
448
|
{ command: 'claude-flow config set swarm.maxAgents 20', description: 'Set config value' }
|
|
385
449
|
],
|
|
386
|
-
action:
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
450
|
+
action: function (ctx) { return __awaiter(void 0, void 0, Promise, function () {
|
|
451
|
+
return __generator(this, function (_a) {
|
|
452
|
+
output.writeln();
|
|
453
|
+
output.writeln(output.bold('Configuration Management'));
|
|
454
|
+
output.writeln();
|
|
455
|
+
output.writeln('Usage: claude-flow config <subcommand> [options]');
|
|
456
|
+
output.writeln();
|
|
457
|
+
output.writeln('Subcommands:');
|
|
458
|
+
output.printList([
|
|
459
|
+
output.highlight('init') + " - Initialize configuration",
|
|
460
|
+
output.highlight('get') + " - Get configuration value",
|
|
461
|
+
output.highlight('set') + " - Set configuration value",
|
|
462
|
+
output.highlight('providers') + " - Manage AI providers",
|
|
463
|
+
output.highlight('reset') + " - Reset to defaults",
|
|
464
|
+
output.highlight('export') + " - Export configuration",
|
|
465
|
+
output.highlight('import') + " - Import configuration"
|
|
466
|
+
]);
|
|
467
|
+
return [2 /*return*/, { success: true }];
|
|
468
|
+
});
|
|
469
|
+
}); }
|
|
404
470
|
};
|
|
405
471
|
export default configCommand;
|
|
406
472
|
//# sourceMappingURL=config.js.map
|