kynjal-cli 4.0.0 → 4.0.1
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
package/dist/src/index.js
CHANGED
|
@@ -4,51 +4,6 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Created with ❤️ by ruv.io
|
|
6
6
|
*/
|
|
7
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
8
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
9
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
10
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
11
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
12
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
13
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
17
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
18
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
19
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
20
|
-
function step(op) {
|
|
21
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
22
|
-
while (_) try {
|
|
23
|
-
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;
|
|
24
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
25
|
-
switch (op[0]) {
|
|
26
|
-
case 0: case 1: t = op; break;
|
|
27
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
28
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
29
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
30
|
-
default:
|
|
31
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
32
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
33
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
34
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
35
|
-
if (t[2]) _.ops.pop();
|
|
36
|
-
_.trys.pop(); continue;
|
|
37
|
-
}
|
|
38
|
-
op = body.call(thisArg, _);
|
|
39
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
40
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
44
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
45
|
-
if (ar || !(i in from)) {
|
|
46
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
47
|
-
ar[i] = from[i];
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
51
|
-
};
|
|
52
7
|
import { readFileSync } from 'fs';
|
|
53
8
|
import { fileURLToPath } from 'url';
|
|
54
9
|
import { dirname, join } from 'path';
|
|
@@ -60,285 +15,267 @@ import { runStartupUpdateCheck } from './update/index.js';
|
|
|
60
15
|
// Read version from package.json at runtime
|
|
61
16
|
function getPackageVersion() {
|
|
62
17
|
try {
|
|
63
|
-
|
|
64
|
-
|
|
18
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
19
|
+
const __dirname = dirname(__filename);
|
|
65
20
|
// Navigate from dist/src to package root
|
|
66
|
-
|
|
67
|
-
|
|
21
|
+
const pkgPath = join(__dirname, '..', '..', 'package.json');
|
|
22
|
+
const pkg = JSON.parse(readFileSync(pkgPath, 'utf-8'));
|
|
68
23
|
return pkg.version || '3.0.0';
|
|
69
24
|
}
|
|
70
|
-
catch
|
|
25
|
+
catch {
|
|
71
26
|
return '3.0.0';
|
|
72
27
|
}
|
|
73
28
|
}
|
|
74
|
-
export
|
|
29
|
+
export const VERSION = getPackageVersion();
|
|
75
30
|
/**
|
|
76
31
|
* V3 CLI Application
|
|
77
32
|
*/
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
33
|
+
export class CLI {
|
|
34
|
+
name;
|
|
35
|
+
description;
|
|
36
|
+
version;
|
|
37
|
+
parser;
|
|
38
|
+
output;
|
|
39
|
+
interactive;
|
|
40
|
+
constructor(options = {}) {
|
|
82
41
|
this.name = options.name || 'ruflo';
|
|
83
42
|
this.description = options.description || 'RuFlo V3 - AI Agent Orchestration Platform';
|
|
84
43
|
this.version = options.version || VERSION;
|
|
85
44
|
this.parser = commandParser;
|
|
86
45
|
this.output = output;
|
|
87
|
-
this.interactive =
|
|
46
|
+
this.interactive = options.interactive ?? process.stdin.isTTY ?? false;
|
|
88
47
|
// Register all commands
|
|
89
|
-
for (
|
|
90
|
-
var cmd = commands_1[_i];
|
|
48
|
+
for (const cmd of commands) {
|
|
91
49
|
this.parser.registerCommand(cmd);
|
|
92
50
|
}
|
|
93
51
|
}
|
|
94
52
|
/**
|
|
95
53
|
* Run the CLI with given arguments
|
|
96
54
|
*/
|
|
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
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
subcommandArgs = positional;
|
|
196
|
-
// Check for nested subcommand (level 2)
|
|
197
|
-
if (commandPath.length > 2 && subcommand.subcommands) {
|
|
198
|
-
nestedName_1 = commandPath[2];
|
|
199
|
-
nestedSubcommand = subcommand.subcommands.find(function (sc) { var _a; return sc.name === nestedName_1 || ((_a = sc.aliases) === null || _a === void 0 ? void 0 : _a.includes(nestedName_1)); });
|
|
200
|
-
if (nestedSubcommand) {
|
|
201
|
-
targetCommand = nestedSubcommand;
|
|
202
|
-
// Parser already extracted nested subcommand too
|
|
203
|
-
subcommandArgs = positional;
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
else if (positional.length > 0 && command.subcommands) {
|
|
209
|
-
subcommandName_2 = positional[0];
|
|
210
|
-
subcommand = command.subcommands.find(function (sc) { var _a; return sc.name === subcommandName_2 || ((_a = sc.aliases) === null || _a === void 0 ? void 0 : _a.includes(subcommandName_2)); });
|
|
211
|
-
if (subcommand) {
|
|
212
|
-
targetCommand = subcommand;
|
|
213
|
-
subcommandArgs = positional.slice(1);
|
|
214
|
-
// Check for nested subcommand (level 2 from positional)
|
|
215
|
-
if (subcommandArgs.length > 0 && subcommand.subcommands) {
|
|
216
|
-
nestedName_2 = subcommandArgs[0];
|
|
217
|
-
nestedSubcommand = subcommand.subcommands.find(function (sc) { var _a; return sc.name === nestedName_2 || ((_a = sc.aliases) === null || _a === void 0 ? void 0 : _a.includes(nestedName_2)); });
|
|
218
|
-
if (nestedSubcommand) {
|
|
219
|
-
targetCommand = nestedSubcommand;
|
|
220
|
-
subcommandArgs = subcommandArgs.slice(1);
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
validationErrors = this.parser.validateFlags(flags, targetCommand);
|
|
226
|
-
if (validationErrors.length > 0) {
|
|
227
|
-
for (_i = 0, validationErrors_1 = validationErrors; _i < validationErrors_1.length; _i++) {
|
|
228
|
-
error = validationErrors_1[_i];
|
|
229
|
-
this.output.printError(error);
|
|
230
|
-
}
|
|
231
|
-
process.exit(1);
|
|
232
|
-
}
|
|
233
|
-
_a = {
|
|
234
|
-
args: subcommandArgs,
|
|
235
|
-
flags: flags
|
|
236
|
-
};
|
|
237
|
-
return [4 /*yield*/, this.loadConfig(flags.config)];
|
|
238
|
-
case 7:
|
|
239
|
-
ctx = (_a.config = _b.sent(),
|
|
240
|
-
_a.cwd = process.cwd(),
|
|
241
|
-
_a.interactive = this.interactive && !flags.quiet,
|
|
242
|
-
_a);
|
|
243
|
-
if (!targetCommand.action) return [3 /*break*/, 9];
|
|
244
|
-
if (this.output.isVerbose()) {
|
|
245
|
-
this.output.printDebug("Executing: " + targetCommand.name);
|
|
246
|
-
}
|
|
247
|
-
startTime = Date.now();
|
|
248
|
-
return [4 /*yield*/, targetCommand.action(ctx)];
|
|
249
|
-
case 8:
|
|
250
|
-
result = _b.sent();
|
|
251
|
-
if (this.output.isVerbose()) {
|
|
252
|
-
this.output.printDebug("Completed in " + (Date.now() - startTime) + "ms");
|
|
253
|
-
}
|
|
254
|
-
if (result && !result.success) {
|
|
255
|
-
process.exit(result.exitCode || 1);
|
|
55
|
+
async run(args = process.argv.slice(2)) {
|
|
56
|
+
try {
|
|
57
|
+
// Parse arguments
|
|
58
|
+
const parseResult = this.parser.parse(args);
|
|
59
|
+
const { command: commandPath, flags, positional } = parseResult;
|
|
60
|
+
// Handle global flags
|
|
61
|
+
if (flags.version || flags.V) {
|
|
62
|
+
this.showVersion();
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
if (flags.noColor) {
|
|
66
|
+
this.output.setColorEnabled(false);
|
|
67
|
+
}
|
|
68
|
+
// Set verbosity level based on flags
|
|
69
|
+
if (flags.quiet) {
|
|
70
|
+
this.output.setVerbosity('quiet');
|
|
71
|
+
}
|
|
72
|
+
else if (flags.verbose) {
|
|
73
|
+
this.output.setVerbosity(process.env.DEBUG ? 'debug' : 'verbose');
|
|
74
|
+
}
|
|
75
|
+
// Verbose mode: show parsed arguments
|
|
76
|
+
if (this.output.isVerbose()) {
|
|
77
|
+
this.output.printDebug(`Command: ${commandPath.join(' ') || '(none)'}`);
|
|
78
|
+
this.output.printDebug(`Positional: [${positional.join(', ')}]`);
|
|
79
|
+
this.output.printDebug(`Flags: ${JSON.stringify(Object.fromEntries(Object.entries(flags).filter(([k]) => k !== '_')))}`);
|
|
80
|
+
this.output.printDebug(`CWD: ${process.cwd()}`);
|
|
81
|
+
}
|
|
82
|
+
// Run startup update check (non-blocking, silent on skip)
|
|
83
|
+
if (!flags.noUpdate && commandPath[0] !== 'update') {
|
|
84
|
+
this.checkForUpdatesOnStartup().catch(() => { });
|
|
85
|
+
}
|
|
86
|
+
// Handle lazy-loaded commands that weren't recognized by the parser
|
|
87
|
+
// If commandPath is empty but positional has a command name, check if it's lazy-loadable
|
|
88
|
+
if (commandPath.length === 0 && positional.length > 0 && !positional[0].startsWith('-')) {
|
|
89
|
+
const potentialCommand = positional[0];
|
|
90
|
+
if (hasCommand(potentialCommand)) {
|
|
91
|
+
// This is a lazy-loaded command, treat it as the command
|
|
92
|
+
commandPath.push(potentialCommand);
|
|
93
|
+
positional.shift();
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
// No command - show help or suggest correction
|
|
97
|
+
if (commandPath.length === 0 || flags.help || flags.h) {
|
|
98
|
+
if (commandPath.length > 0) {
|
|
99
|
+
// Show command-specific help
|
|
100
|
+
await this.showCommandHelp(commandPath[0]);
|
|
101
|
+
}
|
|
102
|
+
else if (positional.length > 0 && !positional[0].startsWith('-')) {
|
|
103
|
+
// First positional looks like an attempted command - suggest correction
|
|
104
|
+
const attemptedCommand = positional[0];
|
|
105
|
+
this.output.printError(`Unknown command: ${attemptedCommand}`);
|
|
106
|
+
const availableCommands = Array.from(new Set([...commands.map(c => c.name), ...getCommandNames()]));
|
|
107
|
+
const { message } = suggestCommand(attemptedCommand, availableCommands);
|
|
108
|
+
this.output.writeln(this.output.dim(` ${message}`));
|
|
109
|
+
process.exit(1);
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
this.showHelp();
|
|
113
|
+
}
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
// Find and execute command
|
|
117
|
+
const commandName = commandPath[0];
|
|
118
|
+
// First check the parser's registry (for dynamically registered commands)
|
|
119
|
+
// Then fall back to the static registry, then try lazy loading
|
|
120
|
+
let command = this.parser.getCommand(commandName) || getCommand(commandName);
|
|
121
|
+
// If not found in sync registry, try lazy loading
|
|
122
|
+
if (!command && hasCommand(commandName)) {
|
|
123
|
+
command = await getCommandAsync(commandName);
|
|
124
|
+
}
|
|
125
|
+
if (!command) {
|
|
126
|
+
this.output.printError(`Unknown command: ${commandName}`);
|
|
127
|
+
// Smart suggestions - include lazy-loadable commands in suggestions
|
|
128
|
+
const availableCommands = Array.from(new Set([...commands.map(c => c.name), ...getCommandNames()]));
|
|
129
|
+
const { message } = suggestCommand(commandName, availableCommands);
|
|
130
|
+
this.output.writeln(this.output.dim(` ${message}`));
|
|
131
|
+
process.exit(1);
|
|
132
|
+
}
|
|
133
|
+
// Handle subcommand (supports nested subcommands)
|
|
134
|
+
let targetCommand = command;
|
|
135
|
+
let subcommandArgs = positional;
|
|
136
|
+
// Process command path (e.g., ['hooks', 'worker', 'list'])
|
|
137
|
+
// Note: When parser includes subcommand in commandPath, positional already excludes it
|
|
138
|
+
if (commandPath.length > 1 && command.subcommands) {
|
|
139
|
+
const subcommandName = commandPath[1];
|
|
140
|
+
const subcommand = command.subcommands.find(sc => sc.name === subcommandName || sc.aliases?.includes(subcommandName));
|
|
141
|
+
if (subcommand) {
|
|
142
|
+
targetCommand = subcommand;
|
|
143
|
+
// Parser already extracted subcommand from positional, so use as-is
|
|
144
|
+
subcommandArgs = positional;
|
|
145
|
+
// Check for nested subcommand (level 2)
|
|
146
|
+
if (commandPath.length > 2 && subcommand.subcommands) {
|
|
147
|
+
const nestedName = commandPath[2];
|
|
148
|
+
const nestedSubcommand = subcommand.subcommands.find(sc => sc.name === nestedName || sc.aliases?.includes(nestedName));
|
|
149
|
+
if (nestedSubcommand) {
|
|
150
|
+
targetCommand = nestedSubcommand;
|
|
151
|
+
// Parser already extracted nested subcommand too
|
|
152
|
+
subcommandArgs = positional;
|
|
256
153
|
}
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
else if (positional.length > 0 && command.subcommands) {
|
|
158
|
+
// Check if first positional is a subcommand
|
|
159
|
+
const subcommandName = positional[0];
|
|
160
|
+
const subcommand = command.subcommands.find(sc => sc.name === subcommandName || sc.aliases?.includes(subcommandName));
|
|
161
|
+
if (subcommand) {
|
|
162
|
+
targetCommand = subcommand;
|
|
163
|
+
subcommandArgs = positional.slice(1);
|
|
164
|
+
// Check for nested subcommand (level 2 from positional)
|
|
165
|
+
if (subcommandArgs.length > 0 && subcommand.subcommands) {
|
|
166
|
+
const nestedName = subcommandArgs[0];
|
|
167
|
+
const nestedSubcommand = subcommand.subcommands.find(sc => sc.name === nestedName || sc.aliases?.includes(nestedName));
|
|
168
|
+
if (nestedSubcommand) {
|
|
169
|
+
targetCommand = nestedSubcommand;
|
|
170
|
+
subcommandArgs = subcommandArgs.slice(1);
|
|
268
171
|
}
|
|
269
|
-
|
|
270
|
-
return [3 /*break*/, 12];
|
|
271
|
-
case 12: return [2 /*return*/];
|
|
172
|
+
}
|
|
272
173
|
}
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
|
|
174
|
+
}
|
|
175
|
+
// Validate flags
|
|
176
|
+
const validationErrors = this.parser.validateFlags(flags, targetCommand);
|
|
177
|
+
if (validationErrors.length > 0) {
|
|
178
|
+
for (const error of validationErrors) {
|
|
179
|
+
this.output.printError(error);
|
|
180
|
+
}
|
|
181
|
+
process.exit(1);
|
|
182
|
+
}
|
|
183
|
+
// Build context
|
|
184
|
+
const ctx = {
|
|
185
|
+
args: subcommandArgs,
|
|
186
|
+
flags,
|
|
187
|
+
config: await this.loadConfig(flags.config),
|
|
188
|
+
cwd: process.cwd(),
|
|
189
|
+
interactive: this.interactive && !flags.quiet
|
|
190
|
+
};
|
|
191
|
+
// Execute command
|
|
192
|
+
if (targetCommand.action) {
|
|
193
|
+
if (this.output.isVerbose()) {
|
|
194
|
+
this.output.printDebug(`Executing: ${targetCommand.name}`);
|
|
195
|
+
}
|
|
196
|
+
const startTime = Date.now();
|
|
197
|
+
const result = await targetCommand.action(ctx);
|
|
198
|
+
if (this.output.isVerbose()) {
|
|
199
|
+
this.output.printDebug(`Completed in ${Date.now() - startTime}ms`);
|
|
200
|
+
}
|
|
201
|
+
if (result && !result.success) {
|
|
202
|
+
process.exit(result.exitCode || 1);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
else {
|
|
206
|
+
// No action - show command help
|
|
207
|
+
this.showCommandHelp(commandName);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
catch (error) {
|
|
211
|
+
// Don't re-handle if this is a process.exit error (from mocked tests)
|
|
212
|
+
const errorMessage = error.message;
|
|
213
|
+
if (errorMessage && errorMessage.startsWith('process.exit:')) {
|
|
214
|
+
throw error; // Re-throw so tests can capture the exit code
|
|
215
|
+
}
|
|
216
|
+
this.handleError(error);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
276
219
|
/**
|
|
277
220
|
* Show main help
|
|
278
221
|
*/
|
|
279
|
-
|
|
222
|
+
showHelp() {
|
|
280
223
|
this.output.writeln();
|
|
281
|
-
this.output.writeln(this.output.bold(this.name
|
|
224
|
+
this.output.writeln(this.output.bold(`${this.name} v${this.version}`));
|
|
282
225
|
this.output.writeln(this.output.dim(this.description));
|
|
283
226
|
this.output.writeln();
|
|
284
227
|
this.output.writeln(this.output.bold('USAGE:'));
|
|
285
|
-
this.output.writeln(
|
|
228
|
+
this.output.writeln(` ${this.name} <command> [subcommand] [options]`);
|
|
286
229
|
this.output.writeln();
|
|
287
230
|
// Primary Commands
|
|
288
231
|
this.output.writeln(this.output.bold('PRIMARY COMMANDS:'));
|
|
289
|
-
for (
|
|
290
|
-
var cmd = _a[_i];
|
|
232
|
+
for (const cmd of commandsByCategory.primary) {
|
|
291
233
|
if (cmd.hidden)
|
|
292
234
|
continue;
|
|
293
|
-
|
|
294
|
-
this.output.writeln(
|
|
235
|
+
const name = cmd.name.padEnd(12);
|
|
236
|
+
this.output.writeln(` ${this.output.highlight(name)} ${cmd.description}`);
|
|
295
237
|
}
|
|
296
238
|
this.output.writeln();
|
|
297
239
|
// Advanced Commands
|
|
298
240
|
this.output.writeln(this.output.bold('ADVANCED COMMANDS:'));
|
|
299
|
-
for (
|
|
300
|
-
var cmd = _c[_b];
|
|
241
|
+
for (const cmd of commandsByCategory.advanced) {
|
|
301
242
|
if (cmd.hidden)
|
|
302
243
|
continue;
|
|
303
|
-
|
|
304
|
-
this.output.writeln(
|
|
244
|
+
const name = cmd.name.padEnd(12);
|
|
245
|
+
this.output.writeln(` ${this.output.highlight(name)} ${cmd.description}`);
|
|
305
246
|
}
|
|
306
247
|
this.output.writeln();
|
|
307
248
|
// Utility Commands
|
|
308
249
|
this.output.writeln(this.output.bold('UTILITY COMMANDS:'));
|
|
309
|
-
for (
|
|
310
|
-
var cmd = _e[_d];
|
|
250
|
+
for (const cmd of commandsByCategory.utility) {
|
|
311
251
|
if (cmd.hidden)
|
|
312
252
|
continue;
|
|
313
|
-
|
|
314
|
-
this.output.writeln(
|
|
253
|
+
const name = cmd.name.padEnd(12);
|
|
254
|
+
this.output.writeln(` ${this.output.highlight(name)} ${cmd.description}`);
|
|
315
255
|
}
|
|
316
256
|
this.output.writeln();
|
|
317
257
|
// Analysis Commands
|
|
318
258
|
this.output.writeln(this.output.bold('ANALYSIS COMMANDS:'));
|
|
319
|
-
for (
|
|
320
|
-
var cmd = _g[_f];
|
|
259
|
+
for (const cmd of commandsByCategory.analysis) {
|
|
321
260
|
if (cmd.hidden)
|
|
322
261
|
continue;
|
|
323
|
-
|
|
324
|
-
this.output.writeln(
|
|
262
|
+
const name = cmd.name.padEnd(12);
|
|
263
|
+
this.output.writeln(` ${this.output.highlight(name)} ${cmd.description}`);
|
|
325
264
|
}
|
|
326
265
|
this.output.writeln();
|
|
327
266
|
// Management Commands
|
|
328
267
|
this.output.writeln(this.output.bold('MANAGEMENT COMMANDS:'));
|
|
329
|
-
for (
|
|
330
|
-
var cmd = _j[_h];
|
|
268
|
+
for (const cmd of commandsByCategory.management) {
|
|
331
269
|
if (cmd.hidden)
|
|
332
270
|
continue;
|
|
333
|
-
|
|
334
|
-
this.output.writeln(
|
|
271
|
+
const name = cmd.name.padEnd(12);
|
|
272
|
+
this.output.writeln(` ${this.output.highlight(name)} ${cmd.description}`);
|
|
335
273
|
}
|
|
336
274
|
this.output.writeln();
|
|
337
275
|
this.output.writeln(this.output.bold('GLOBAL OPTIONS:'));
|
|
338
|
-
for (
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
this.output.writeln(" " + flags.padEnd(25) + " " + opt.description);
|
|
276
|
+
for (const opt of this.parser.getGlobalOptions()) {
|
|
277
|
+
const flags = opt.short ? `-${opt.short}, --${opt.name}` : ` --${opt.name}`;
|
|
278
|
+
this.output.writeln(` ${flags.padEnd(25)} ${opt.description}`);
|
|
342
279
|
}
|
|
343
280
|
this.output.writeln();
|
|
344
281
|
this.output.writeln(this.output.bold('V3 FEATURES:'));
|
|
@@ -352,170 +289,133 @@ var CLI = /** @class */ (function () {
|
|
|
352
289
|
]);
|
|
353
290
|
this.output.writeln();
|
|
354
291
|
this.output.writeln(this.output.bold('EXAMPLES:'));
|
|
355
|
-
this.output.writeln(
|
|
356
|
-
this.output.writeln(
|
|
357
|
-
this.output.writeln(
|
|
358
|
-
this.output.writeln(
|
|
292
|
+
this.output.writeln(` ${this.name} agent spawn -t coder # Spawn a coder agent`);
|
|
293
|
+
this.output.writeln(` ${this.name} swarm init --v3-mode # Initialize V3 swarm`);
|
|
294
|
+
this.output.writeln(` ${this.name} memory search -q "auth patterns" # Semantic search`);
|
|
295
|
+
this.output.writeln(` ${this.name} mcp start # Start MCP server`);
|
|
359
296
|
this.output.writeln();
|
|
360
|
-
this.output.writeln(this.output.dim(
|
|
297
|
+
this.output.writeln(this.output.dim(`Run "${this.name} <command> --help" for command help`));
|
|
361
298
|
this.output.writeln();
|
|
362
299
|
this.output.writeln(this.output.dim('Created with ❤️ by ruv.io'));
|
|
363
300
|
this.output.writeln();
|
|
364
|
-
}
|
|
301
|
+
}
|
|
365
302
|
/**
|
|
366
303
|
* Show command-specific help
|
|
367
304
|
*/
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
if (command.examples && command.examples.length > 0) {
|
|
416
|
-
this.output.writeln(this.output.bold('EXAMPLES:'));
|
|
417
|
-
for (_d = 0, _e = command.examples; _d < _e.length; _d++) {
|
|
418
|
-
example = _e[_d];
|
|
419
|
-
this.output.writeln(" " + this.output.dim('$') + " " + example.command);
|
|
420
|
-
this.output.writeln(" " + this.output.dim(example.description));
|
|
421
|
-
}
|
|
422
|
-
this.output.writeln();
|
|
423
|
-
}
|
|
424
|
-
return [2 /*return*/];
|
|
425
|
-
}
|
|
426
|
-
});
|
|
427
|
-
});
|
|
428
|
-
};
|
|
305
|
+
async showCommandHelp(commandName) {
|
|
306
|
+
// Try sync first, then lazy load
|
|
307
|
+
let command = getCommand(commandName);
|
|
308
|
+
if (!command && hasCommand(commandName)) {
|
|
309
|
+
command = await getCommandAsync(commandName);
|
|
310
|
+
}
|
|
311
|
+
if (!command) {
|
|
312
|
+
this.output.printError(`Unknown command: ${commandName}`);
|
|
313
|
+
return;
|
|
314
|
+
}
|
|
315
|
+
this.output.writeln();
|
|
316
|
+
this.output.writeln(this.output.bold(`${this.name} ${command.name}`));
|
|
317
|
+
this.output.writeln(command.description);
|
|
318
|
+
this.output.writeln();
|
|
319
|
+
// Subcommands
|
|
320
|
+
if (command.subcommands && command.subcommands.length > 0) {
|
|
321
|
+
this.output.writeln(this.output.bold('SUBCOMMANDS:'));
|
|
322
|
+
for (const sub of command.subcommands) {
|
|
323
|
+
if (sub.hidden)
|
|
324
|
+
continue;
|
|
325
|
+
const name = sub.name.padEnd(15);
|
|
326
|
+
const aliases = sub.aliases ? this.output.dim(` (${sub.aliases.join(', ')})`) : '';
|
|
327
|
+
this.output.writeln(` ${this.output.highlight(name)} ${sub.description}${aliases}`);
|
|
328
|
+
}
|
|
329
|
+
this.output.writeln();
|
|
330
|
+
}
|
|
331
|
+
// Options
|
|
332
|
+
if (command.options && command.options.length > 0) {
|
|
333
|
+
this.output.writeln(this.output.bold('OPTIONS:'));
|
|
334
|
+
for (const opt of command.options) {
|
|
335
|
+
const flags = opt.short ? `-${opt.short}, --${opt.name}` : ` --${opt.name}`;
|
|
336
|
+
const required = opt.required ? this.output.error(' (required)') : '';
|
|
337
|
+
const defaultVal = opt.default !== undefined ? this.output.dim(` [default: ${opt.default}]`) : '';
|
|
338
|
+
this.output.writeln(` ${flags.padEnd(25)} ${opt.description}${required}${defaultVal}`);
|
|
339
|
+
}
|
|
340
|
+
this.output.writeln();
|
|
341
|
+
}
|
|
342
|
+
// Examples
|
|
343
|
+
if (command.examples && command.examples.length > 0) {
|
|
344
|
+
this.output.writeln(this.output.bold('EXAMPLES:'));
|
|
345
|
+
for (const example of command.examples) {
|
|
346
|
+
this.output.writeln(` ${this.output.dim('$')} ${example.command}`);
|
|
347
|
+
this.output.writeln(` ${this.output.dim(example.description)}`);
|
|
348
|
+
}
|
|
349
|
+
this.output.writeln();
|
|
350
|
+
}
|
|
351
|
+
}
|
|
429
352
|
/**
|
|
430
353
|
* Show version
|
|
431
354
|
*/
|
|
432
|
-
|
|
433
|
-
this.output.writeln(this.name
|
|
434
|
-
}
|
|
355
|
+
showVersion() {
|
|
356
|
+
this.output.writeln(`${this.name} v${this.version}`);
|
|
357
|
+
}
|
|
435
358
|
/**
|
|
436
359
|
* Check for updates on startup (non-blocking)
|
|
437
360
|
* Shows notification if updates are available
|
|
438
361
|
*/
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
case 1:
|
|
448
|
-
result = _b.sent();
|
|
449
|
-
// Show notifications for available updates that weren't auto-applied
|
|
450
|
-
if (result.checked && result.updatesAvailable.length > 0) {
|
|
451
|
-
nonAutoUpdates = result.updatesAvailable.filter(function (u) { return !u.shouldAutoUpdate; });
|
|
452
|
-
if (result.updatesApplied.length > 0) {
|
|
453
|
-
this.output.writeln(this.output.dim("Auto-updated: " + result.updatesApplied.join(', ')));
|
|
454
|
-
}
|
|
455
|
-
if (nonAutoUpdates.length > 0) {
|
|
456
|
-
this.output.writeln(this.output.dim("Updates available: " + nonAutoUpdates.map(function (u) { return u.package + "@" + u.latestVersion; }).join(', ')));
|
|
457
|
-
this.output.writeln(this.output.dim("Run '" + this.name + " update check' for details"));
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
return [3 /*break*/, 3];
|
|
461
|
-
case 2:
|
|
462
|
-
_a = _b.sent();
|
|
463
|
-
return [3 /*break*/, 3];
|
|
464
|
-
case 3: return [2 /*return*/];
|
|
362
|
+
async checkForUpdatesOnStartup() {
|
|
363
|
+
try {
|
|
364
|
+
const result = await runStartupUpdateCheck({ autoUpdate: true });
|
|
365
|
+
// Show notifications for available updates that weren't auto-applied
|
|
366
|
+
if (result.checked && result.updatesAvailable.length > 0) {
|
|
367
|
+
const nonAutoUpdates = result.updatesAvailable.filter(u => !u.shouldAutoUpdate);
|
|
368
|
+
if (result.updatesApplied.length > 0) {
|
|
369
|
+
this.output.writeln(this.output.dim(`Auto-updated: ${result.updatesApplied.join(', ')}`));
|
|
465
370
|
}
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
371
|
+
if (nonAutoUpdates.length > 0) {
|
|
372
|
+
this.output.writeln(this.output.dim(`Updates available: ${nonAutoUpdates.map(u => `${u.package}@${u.latestVersion}`).join(', ')}`));
|
|
373
|
+
this.output.writeln(this.output.dim(`Run '${this.name} update check' for details`));
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
catch {
|
|
378
|
+
// Silently fail - don't interrupt CLI usage
|
|
379
|
+
}
|
|
380
|
+
}
|
|
469
381
|
/**
|
|
470
382
|
* Load configuration file
|
|
471
383
|
*/
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
loadSystemConfig = (_b.sent()).loadConfig;
|
|
482
|
-
return [4 /*yield*/, import('./config-adapter.js')];
|
|
483
|
-
case 2:
|
|
484
|
-
systemConfigToV3Config = (_b.sent()).systemConfigToV3Config;
|
|
485
|
-
return [4 /*yield*/, loadSystemConfig({
|
|
486
|
-
file: configPath,
|
|
487
|
-
paths: configPath ? undefined : [process.cwd()]
|
|
488
|
-
})];
|
|
489
|
-
case 3:
|
|
490
|
-
loaded = _b.sent();
|
|
491
|
-
v3Config = systemConfigToV3Config(loaded.config);
|
|
492
|
-
// Log warnings if any
|
|
493
|
-
if (loaded.warnings && loaded.warnings.length > 0) {
|
|
494
|
-
for (_i = 0, _a = loaded.warnings; _i < _a.length; _i++) {
|
|
495
|
-
warning = _a[_i];
|
|
496
|
-
this.output.printWarning(warning);
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
return [2 /*return*/, v3Config];
|
|
500
|
-
case 4:
|
|
501
|
-
error_2 = _b.sent();
|
|
502
|
-
// Config loading is optional - don't fail if it doesn't exist
|
|
503
|
-
if (process.env.DEBUG) {
|
|
504
|
-
this.output.writeln(this.output.dim("Config loading failed: " + error_2.message));
|
|
505
|
-
}
|
|
506
|
-
return [2 /*return*/, undefined];
|
|
507
|
-
case 5: return [2 /*return*/];
|
|
508
|
-
}
|
|
384
|
+
async loadConfig(configPath) {
|
|
385
|
+
try {
|
|
386
|
+
// Import config utilities
|
|
387
|
+
const { loadConfig: loadSystemConfig } = await import('@claude-flow/shared');
|
|
388
|
+
const { systemConfigToV3Config } = await import('./config-adapter.js');
|
|
389
|
+
// Load configuration
|
|
390
|
+
const loaded = await loadSystemConfig({
|
|
391
|
+
file: configPath,
|
|
392
|
+
paths: configPath ? undefined : [process.cwd()],
|
|
509
393
|
});
|
|
510
|
-
|
|
511
|
-
|
|
394
|
+
// Convert to V3Config format
|
|
395
|
+
const v3Config = systemConfigToV3Config(loaded.config);
|
|
396
|
+
// Log warnings if any
|
|
397
|
+
if (loaded.warnings && loaded.warnings.length > 0) {
|
|
398
|
+
for (const warning of loaded.warnings) {
|
|
399
|
+
this.output.printWarning(warning);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
return v3Config;
|
|
403
|
+
}
|
|
404
|
+
catch (error) {
|
|
405
|
+
// Config loading is optional - don't fail if it doesn't exist
|
|
406
|
+
if (process.env.DEBUG) {
|
|
407
|
+
this.output.writeln(this.output.dim(`Config loading failed: ${error.message}`));
|
|
408
|
+
}
|
|
409
|
+
return undefined;
|
|
410
|
+
}
|
|
411
|
+
}
|
|
512
412
|
/**
|
|
513
413
|
* Handle errors
|
|
514
414
|
*/
|
|
515
|
-
|
|
415
|
+
handleError(error) {
|
|
516
416
|
if ('code' in error) {
|
|
517
417
|
// CLIError
|
|
518
|
-
|
|
418
|
+
const cliError = error;
|
|
519
419
|
this.output.printError(cliError.message);
|
|
520
420
|
if (cliError.details) {
|
|
521
421
|
this.output.writeln(this.output.dim(JSON.stringify(cliError.details, null, 2)));
|
|
@@ -531,10 +431,8 @@ var CLI = /** @class */ (function () {
|
|
|
531
431
|
}
|
|
532
432
|
process.exit(1);
|
|
533
433
|
}
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
}());
|
|
537
|
-
export { CLI };
|
|
434
|
+
}
|
|
435
|
+
}
|
|
538
436
|
// =============================================================================
|
|
539
437
|
// Module Exports
|
|
540
438
|
// =============================================================================
|
|
@@ -543,26 +441,26 @@ export * from './types.js';
|
|
|
543
441
|
// Parser
|
|
544
442
|
export { CommandParser, commandParser } from './parser.js';
|
|
545
443
|
// Output
|
|
546
|
-
export { OutputFormatter, output, Progress, Spinner
|
|
444
|
+
export { OutputFormatter, output, Progress, Spinner } from './output.js';
|
|
547
445
|
// Prompt
|
|
548
446
|
export * from './prompt.js';
|
|
549
447
|
// Commands (internal use)
|
|
550
448
|
export * from './commands/index.js';
|
|
551
449
|
// MCP Server management
|
|
552
|
-
export { MCPServerManager, createMCPServerManager, getServerManager, startMCPServer, stopMCPServer, getMCPServerStatus,
|
|
450
|
+
export { MCPServerManager, createMCPServerManager, getServerManager, startMCPServer, stopMCPServer, getMCPServerStatus, } from './mcp-server.js';
|
|
553
451
|
// Memory & Intelligence (V3 Performance Features)
|
|
554
452
|
export { initializeMemoryDatabase, generateEmbedding, generateBatchEmbeddings, storeEntry, searchEntries, getHNSWIndex, addToHNSWIndex, searchHNSWIndex, getHNSWStatus, clearHNSWIndex, quantizeInt8, dequantizeInt8, quantizedCosineSim, getQuantizationStats,
|
|
555
453
|
// Flash Attention-style batch operations
|
|
556
|
-
batchCosineSim, softmaxAttention, topKIndices, flashAttentionSearch,
|
|
454
|
+
batchCosineSim, softmaxAttention, topKIndices, flashAttentionSearch, } from './memory/memory-initializer.js';
|
|
557
455
|
export { initializeIntelligence, recordStep, recordTrajectory, findSimilarPatterns, getIntelligenceStats, getSonaCoordinator, getReasoningBank, clearIntelligence, benchmarkAdaptation,
|
|
558
456
|
// RL loop API
|
|
559
457
|
endTrajectoryWithVerdict, distillLearning,
|
|
560
458
|
// Pattern persistence API
|
|
561
|
-
getAllPatterns, getPatternsByType, flushPatterns, deletePattern, clearAllPatterns, getNeuralDataDir, getPersistenceStatus,
|
|
459
|
+
getAllPatterns, getPatternsByType, flushPatterns, deletePattern, clearAllPatterns, getNeuralDataDir, getPersistenceStatus, } from './memory/intelligence.js';
|
|
562
460
|
// EWC++ Consolidation (Prevents Catastrophic Forgetting)
|
|
563
|
-
export { EWCConsolidator, getEWCConsolidator, resetEWCConsolidator, consolidatePatterns, recordPatternOutcome, getEWCStats,
|
|
461
|
+
export { EWCConsolidator, getEWCConsolidator, resetEWCConsolidator, consolidatePatterns, recordPatternOutcome, getEWCStats, } from './memory/ewc-consolidation.js';
|
|
564
462
|
// SONA Optimizer (Adaptive Routing via Trajectory Learning)
|
|
565
|
-
export { SONAOptimizer, getSONAOptimizer, resetSONAOptimizer, processTrajectory, getSuggestion, getSONAStats,
|
|
463
|
+
export { SONAOptimizer, getSONAOptimizer, resetSONAOptimizer, processTrajectory, getSuggestion, getSONAStats, } from './memory/sona-optimizer.js';
|
|
566
464
|
// Production Hardening
|
|
567
465
|
export { ErrorHandler, withErrorHandling, } from './production/error-handler.js';
|
|
568
466
|
export { RateLimiter, createRateLimiter, } from './production/rate-limiter.js';
|