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
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* V3 CLI Commands Index
|
|
3
|
+
* Central registry for all CLI commands
|
|
4
|
+
*
|
|
5
|
+
* NOTE: All commands are synchronously imported at module load time (lines below).
|
|
6
|
+
* The commandLoaders/loadCommand infrastructure provides an async fallback for
|
|
7
|
+
* commands looked up via getCommandAsync() but does NOT reduce startup time since
|
|
8
|
+
* all modules are already imported synchronously for the commands array and
|
|
9
|
+
* commandsByCategory exports.
|
|
10
|
+
*/
|
|
11
|
+
import type { Command } from '../types.js';
|
|
12
|
+
export { initCommand } from './init.js';
|
|
13
|
+
export { startCommand } from './start.js';
|
|
14
|
+
export { statusCommand } from './status.js';
|
|
15
|
+
export { taskCommand } from './task.js';
|
|
16
|
+
export { sessionCommand } from './session.js';
|
|
17
|
+
export { agentCommand } from './agent.js';
|
|
18
|
+
export { swarmCommand } from './swarm.js';
|
|
19
|
+
export { memoryCommand } from './memory.js';
|
|
20
|
+
export { mcpCommand } from './mcp.js';
|
|
21
|
+
export { hooksCommand } from './hooks.js';
|
|
22
|
+
export { daemonCommand } from './daemon.js';
|
|
23
|
+
export { doctorCommand } from './doctor.js';
|
|
24
|
+
export { embeddingsCommand } from './embeddings.js';
|
|
25
|
+
export { neuralCommand } from './neural.js';
|
|
26
|
+
export { performanceCommand } from './performance.js';
|
|
27
|
+
export { securityCommand } from './security.js';
|
|
28
|
+
export { ruvectorCommand } from './ruvector/index.js';
|
|
29
|
+
export { hiveMindCommand } from './hive-mind.js';
|
|
30
|
+
export { guidanceCommand } from './guidance.js';
|
|
31
|
+
export { applianceCommand } from './appliance.js';
|
|
32
|
+
export { cleanupCommand } from './cleanup.js';
|
|
33
|
+
export declare function getConfigCommand(): Promise<Command | undefined>;
|
|
34
|
+
export declare function getMigrateCommand(): Promise<Command | undefined>;
|
|
35
|
+
export declare function getWorkflowCommand(): Promise<Command | undefined>;
|
|
36
|
+
export declare function getHiveMindCommand(): Promise<Command | undefined>;
|
|
37
|
+
export declare function getProcessCommand(): Promise<Command | undefined>;
|
|
38
|
+
export declare function getTaskCommand(): Promise<Command | undefined>;
|
|
39
|
+
export declare function getSessionCommand(): Promise<Command | undefined>;
|
|
40
|
+
export declare function getNeuralCommand(): Promise<Command | undefined>;
|
|
41
|
+
export declare function getSecurityCommand(): Promise<Command | undefined>;
|
|
42
|
+
export declare function getPerformanceCommand(): Promise<Command | undefined>;
|
|
43
|
+
export declare function getProvidersCommand(): Promise<Command | undefined>;
|
|
44
|
+
export declare function getPluginsCommand(): Promise<Command | undefined>;
|
|
45
|
+
export declare function getDeploymentCommand(): Promise<Command | undefined>;
|
|
46
|
+
export declare function getClaimsCommand(): Promise<Command | undefined>;
|
|
47
|
+
export declare function getEmbeddingsCommand(): Promise<Command | undefined>;
|
|
48
|
+
export declare function getCompletionsCommand(): Promise<Command | undefined>;
|
|
49
|
+
export declare function getAnalyzeCommand(): Promise<Command | undefined>;
|
|
50
|
+
export declare function getRouteCommand(): Promise<Command | undefined>;
|
|
51
|
+
export declare function getProgressCommand(): Promise<Command | undefined>;
|
|
52
|
+
export declare function getIssuesCommand(): Promise<Command | undefined>;
|
|
53
|
+
export declare function getRuvectorCommand(): Promise<Command | undefined>;
|
|
54
|
+
export declare function getGuidanceCommand(): Promise<Command | undefined>;
|
|
55
|
+
export declare function getApplianceCommand(): Promise<Command | undefined>;
|
|
56
|
+
export declare function getCleanupCommand(): Promise<Command | undefined>;
|
|
57
|
+
/**
|
|
58
|
+
* Core commands loaded synchronously (available immediately)
|
|
59
|
+
* Advanced commands loaded on-demand for faster startup
|
|
60
|
+
*/
|
|
61
|
+
export declare const commands: Command[];
|
|
62
|
+
/**
|
|
63
|
+
* Commands organized by category for help display
|
|
64
|
+
*/
|
|
65
|
+
export declare const commandsByCategory: {
|
|
66
|
+
primary: Command[];
|
|
67
|
+
advanced: Command[];
|
|
68
|
+
utility: Command[];
|
|
69
|
+
analysis: Command[];
|
|
70
|
+
management: Command[];
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Command registry map for quick lookup
|
|
74
|
+
* Supports both sync (core commands) and async (lazy-loaded) commands
|
|
75
|
+
*/
|
|
76
|
+
export declare const commandRegistry: Map<string, Command>;
|
|
77
|
+
/**
|
|
78
|
+
* Get command by name (sync for core commands, returns undefined for lazy commands)
|
|
79
|
+
* Use getCommandAsync for lazy-loaded commands
|
|
80
|
+
*/
|
|
81
|
+
export declare function getCommand(name: string): Command | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Get command by name (async - supports lazy loading)
|
|
84
|
+
*/
|
|
85
|
+
export declare function getCommandAsync(name: string): Promise<Command | undefined>;
|
|
86
|
+
/**
|
|
87
|
+
* Check if command exists (sync check for core commands)
|
|
88
|
+
*/
|
|
89
|
+
export declare function hasCommand(name: string): boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Get all command names (including aliases and lazy-loadable)
|
|
92
|
+
*/
|
|
93
|
+
export declare function getCommandNames(): string[];
|
|
94
|
+
/**
|
|
95
|
+
* Get all unique commands (excluding aliases)
|
|
96
|
+
*/
|
|
97
|
+
export declare function getUniqueCommands(): Command[];
|
|
98
|
+
/**
|
|
99
|
+
* Load all commands (populates lazy-loaded commands)
|
|
100
|
+
* Use this when you need all commands available synchronously
|
|
101
|
+
*/
|
|
102
|
+
export declare function loadAllCommands(): Promise<Command[]>;
|
|
103
|
+
/**
|
|
104
|
+
* Setup commands in a CLI instance
|
|
105
|
+
*/
|
|
106
|
+
export declare function setupCommands(cli: {
|
|
107
|
+
command: (cmd: Command) => void;
|
|
108
|
+
}): void;
|
|
109
|
+
/**
|
|
110
|
+
* Setup all commands including lazy-loaded (async)
|
|
111
|
+
*/
|
|
112
|
+
export declare function setupAllCommands(cli: {
|
|
113
|
+
command: (cmd: Command) => void;
|
|
114
|
+
}): Promise<void>;
|
|
115
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -8,148 +8,91 @@
|
|
|
8
8
|
* all modules are already imported synchronously for the commands array and
|
|
9
9
|
* commandsByCategory exports.
|
|
10
10
|
*/
|
|
11
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
13
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
14
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
15
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
16
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
21
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
22
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
23
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
24
|
-
function step(op) {
|
|
25
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
26
|
-
while (_) try {
|
|
27
|
-
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;
|
|
28
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
29
|
-
switch (op[0]) {
|
|
30
|
-
case 0: case 1: t = op; break;
|
|
31
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
32
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
33
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
34
|
-
default:
|
|
35
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
36
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
37
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
38
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
39
|
-
if (t[2]) _.ops.pop();
|
|
40
|
-
_.trys.pop(); continue;
|
|
41
|
-
}
|
|
42
|
-
op = body.call(thisArg, _);
|
|
43
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
44
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
48
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
49
|
-
if (ar || !(i in from)) {
|
|
50
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
51
|
-
ar[i] = from[i];
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
55
|
-
};
|
|
56
11
|
/**
|
|
57
12
|
* Command loaders - commands are only imported when needed
|
|
58
13
|
* This reduces initial bundle parse time by ~200ms
|
|
59
14
|
*/
|
|
60
|
-
|
|
15
|
+
const commandLoaders = {
|
|
61
16
|
// P1 Core Commands (frequently used - load first)
|
|
62
|
-
init:
|
|
63
|
-
start:
|
|
64
|
-
status:
|
|
65
|
-
task:
|
|
66
|
-
session:
|
|
17
|
+
init: () => import('./init.js'),
|
|
18
|
+
start: () => import('./start.js'),
|
|
19
|
+
status: () => import('./status.js'),
|
|
20
|
+
task: () => import('./task.js'),
|
|
21
|
+
session: () => import('./session.js'),
|
|
67
22
|
// Original Commands
|
|
68
|
-
agent:
|
|
69
|
-
swarm:
|
|
70
|
-
memory:
|
|
71
|
-
mcp:
|
|
72
|
-
config:
|
|
73
|
-
migrate:
|
|
74
|
-
hooks:
|
|
75
|
-
workflow:
|
|
76
|
-
'hive-mind':
|
|
77
|
-
process:
|
|
78
|
-
daemon:
|
|
23
|
+
agent: () => import('./agent.js'),
|
|
24
|
+
swarm: () => import('./swarm.js'),
|
|
25
|
+
memory: () => import('./memory.js'),
|
|
26
|
+
mcp: () => import('./mcp.js'),
|
|
27
|
+
config: () => import('./config.js'),
|
|
28
|
+
migrate: () => import('./migrate.js'),
|
|
29
|
+
hooks: () => import('./hooks.js'),
|
|
30
|
+
workflow: () => import('./workflow.js'),
|
|
31
|
+
'hive-mind': () => import('./hive-mind.js'),
|
|
32
|
+
process: () => import('./process.js'),
|
|
33
|
+
daemon: () => import('./daemon.js'),
|
|
79
34
|
// V3 Advanced Commands (less frequently used - lazy load)
|
|
80
|
-
neural:
|
|
81
|
-
security:
|
|
82
|
-
performance:
|
|
83
|
-
providers:
|
|
84
|
-
plugins:
|
|
85
|
-
deployment:
|
|
86
|
-
claims:
|
|
87
|
-
embeddings:
|
|
35
|
+
neural: () => import('./neural.js'),
|
|
36
|
+
security: () => import('./security.js'),
|
|
37
|
+
performance: () => import('./performance.js'),
|
|
38
|
+
providers: () => import('./providers.js'),
|
|
39
|
+
plugins: () => import('./plugins.js'),
|
|
40
|
+
deployment: () => import('./deployment.js'),
|
|
41
|
+
claims: () => import('./claims.js'),
|
|
42
|
+
embeddings: () => import('./embeddings.js'),
|
|
88
43
|
// P0 Commands
|
|
89
|
-
completions:
|
|
90
|
-
doctor:
|
|
44
|
+
completions: () => import('./completions.js'),
|
|
45
|
+
doctor: () => import('./doctor.js'),
|
|
91
46
|
// Analysis Commands
|
|
92
|
-
analyze:
|
|
47
|
+
analyze: () => import('./analyze.js'),
|
|
93
48
|
// Q-Learning Routing Commands
|
|
94
|
-
route:
|
|
49
|
+
route: () => import('./route.js'),
|
|
95
50
|
// Progress Commands
|
|
96
|
-
progress:
|
|
51
|
+
progress: () => import('./progress.js'),
|
|
97
52
|
// Issue Claims Commands (ADR-016)
|
|
98
|
-
issues:
|
|
53
|
+
issues: () => import('./issues.js'),
|
|
99
54
|
// Auto-update System (ADR-025)
|
|
100
|
-
update:
|
|
55
|
+
update: () => import('./update.js'),
|
|
101
56
|
// RuVector PostgreSQL Bridge
|
|
102
|
-
ruvector:
|
|
57
|
+
ruvector: () => import('./ruvector/index.js'),
|
|
103
58
|
// Benchmark Suite (Pre-training, Neural, Memory)
|
|
104
|
-
benchmark:
|
|
59
|
+
benchmark: () => import('./benchmark.js'),
|
|
105
60
|
// Guidance Control Plane
|
|
106
|
-
guidance:
|
|
61
|
+
guidance: () => import('./guidance.js'),
|
|
107
62
|
// RVFA Appliance Management
|
|
108
|
-
appliance:
|
|
109
|
-
'appliance-advanced':
|
|
110
|
-
'transfer-store':
|
|
111
|
-
cleanup:
|
|
63
|
+
appliance: () => import('./appliance.js'),
|
|
64
|
+
'appliance-advanced': () => import('./appliance-advanced.js'),
|
|
65
|
+
'transfer-store': () => import('./transfer-store.js'),
|
|
66
|
+
cleanup: () => import('./cleanup.js'),
|
|
112
67
|
};
|
|
113
68
|
// Cache for loaded commands
|
|
114
|
-
|
|
69
|
+
const loadedCommands = new Map();
|
|
115
70
|
/**
|
|
116
71
|
* Load a command lazily
|
|
117
72
|
*/
|
|
118
|
-
function loadCommand(name) {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
return [3 /*break*/, 4];
|
|
142
|
-
case 3:
|
|
143
|
-
error_1 = _a.sent();
|
|
144
|
-
// Silently fail for missing optional commands
|
|
145
|
-
if (process.env.DEBUG) {
|
|
146
|
-
console.error("Failed to load command " + name + ":", error_1);
|
|
147
|
-
}
|
|
148
|
-
return [3 /*break*/, 4];
|
|
149
|
-
case 4: return [2 /*return*/, undefined];
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
});
|
|
73
|
+
async function loadCommand(name) {
|
|
74
|
+
if (loadedCommands.has(name)) {
|
|
75
|
+
return loadedCommands.get(name);
|
|
76
|
+
}
|
|
77
|
+
const loader = commandLoaders[name];
|
|
78
|
+
if (!loader)
|
|
79
|
+
return undefined;
|
|
80
|
+
try {
|
|
81
|
+
const module = await loader();
|
|
82
|
+
// Try to find the command export (either default or named)
|
|
83
|
+
const command = (module.default || module[`${name}Command`] || Object.values(module).find((v) => typeof v === 'object' && v !== null && 'name' in v && 'description' in v));
|
|
84
|
+
if (command) {
|
|
85
|
+
loadedCommands.set(name, command);
|
|
86
|
+
return command;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
catch (error) {
|
|
90
|
+
// Silently fail for missing optional commands
|
|
91
|
+
if (process.env.DEBUG) {
|
|
92
|
+
console.error(`Failed to load command ${name}:`, error);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return undefined;
|
|
153
96
|
}
|
|
154
97
|
// =============================================================================
|
|
155
98
|
// Synchronous Imports for Core Commands (needed immediately at startup)
|
|
@@ -238,131 +181,35 @@ export { guidanceCommand } from './guidance.js';
|
|
|
238
181
|
export { applianceCommand } from './appliance.js';
|
|
239
182
|
export { cleanupCommand } from './cleanup.js';
|
|
240
183
|
// Lazy-loaded command re-exports (for backwards compatibility, but async-only)
|
|
241
|
-
export function getConfigCommand() {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
}
|
|
246
|
-
export function
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
}
|
|
251
|
-
export function
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
}
|
|
256
|
-
export function
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
}
|
|
261
|
-
export function
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
}
|
|
266
|
-
export function getTaskCommand() {
|
|
267
|
-
return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
268
|
-
return [2 /*return*/, loadCommand('task')];
|
|
269
|
-
}); });
|
|
270
|
-
}
|
|
271
|
-
export function getSessionCommand() {
|
|
272
|
-
return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
273
|
-
return [2 /*return*/, loadCommand('session')];
|
|
274
|
-
}); });
|
|
275
|
-
}
|
|
276
|
-
export function getNeuralCommand() {
|
|
277
|
-
return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
278
|
-
return [2 /*return*/, loadCommand('neural')];
|
|
279
|
-
}); });
|
|
280
|
-
}
|
|
281
|
-
export function getSecurityCommand() {
|
|
282
|
-
return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
283
|
-
return [2 /*return*/, loadCommand('security')];
|
|
284
|
-
}); });
|
|
285
|
-
}
|
|
286
|
-
export function getPerformanceCommand() {
|
|
287
|
-
return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
288
|
-
return [2 /*return*/, loadCommand('performance')];
|
|
289
|
-
}); });
|
|
290
|
-
}
|
|
291
|
-
export function getProvidersCommand() {
|
|
292
|
-
return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
293
|
-
return [2 /*return*/, loadCommand('providers')];
|
|
294
|
-
}); });
|
|
295
|
-
}
|
|
296
|
-
export function getPluginsCommand() {
|
|
297
|
-
return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
298
|
-
return [2 /*return*/, loadCommand('plugins')];
|
|
299
|
-
}); });
|
|
300
|
-
}
|
|
301
|
-
export function getDeploymentCommand() {
|
|
302
|
-
return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
303
|
-
return [2 /*return*/, loadCommand('deployment')];
|
|
304
|
-
}); });
|
|
305
|
-
}
|
|
306
|
-
export function getClaimsCommand() {
|
|
307
|
-
return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
308
|
-
return [2 /*return*/, loadCommand('claims')];
|
|
309
|
-
}); });
|
|
310
|
-
}
|
|
311
|
-
export function getEmbeddingsCommand() {
|
|
312
|
-
return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
313
|
-
return [2 /*return*/, loadCommand('embeddings')];
|
|
314
|
-
}); });
|
|
315
|
-
}
|
|
316
|
-
export function getCompletionsCommand() {
|
|
317
|
-
return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
318
|
-
return [2 /*return*/, loadCommand('completions')];
|
|
319
|
-
}); });
|
|
320
|
-
}
|
|
321
|
-
export function getAnalyzeCommand() {
|
|
322
|
-
return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
323
|
-
return [2 /*return*/, loadCommand('analyze')];
|
|
324
|
-
}); });
|
|
325
|
-
}
|
|
326
|
-
export function getRouteCommand() {
|
|
327
|
-
return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
328
|
-
return [2 /*return*/, loadCommand('route')];
|
|
329
|
-
}); });
|
|
330
|
-
}
|
|
331
|
-
export function getProgressCommand() {
|
|
332
|
-
return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
333
|
-
return [2 /*return*/, loadCommand('progress')];
|
|
334
|
-
}); });
|
|
335
|
-
}
|
|
336
|
-
export function getIssuesCommand() {
|
|
337
|
-
return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
338
|
-
return [2 /*return*/, loadCommand('issues')];
|
|
339
|
-
}); });
|
|
340
|
-
}
|
|
341
|
-
export function getRuvectorCommand() {
|
|
342
|
-
return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
343
|
-
return [2 /*return*/, loadCommand('ruvector')];
|
|
344
|
-
}); });
|
|
345
|
-
}
|
|
346
|
-
export function getGuidanceCommand() {
|
|
347
|
-
return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
348
|
-
return [2 /*return*/, loadCommand('guidance')];
|
|
349
|
-
}); });
|
|
350
|
-
}
|
|
351
|
-
export function getApplianceCommand() {
|
|
352
|
-
return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
353
|
-
return [2 /*return*/, loadCommand('appliance')];
|
|
354
|
-
}); });
|
|
355
|
-
}
|
|
356
|
-
export function getCleanupCommand() {
|
|
357
|
-
return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
358
|
-
return [2 /*return*/, loadCommand('cleanup')];
|
|
359
|
-
}); });
|
|
360
|
-
}
|
|
184
|
+
export async function getConfigCommand() { return loadCommand('config'); }
|
|
185
|
+
export async function getMigrateCommand() { return loadCommand('migrate'); }
|
|
186
|
+
export async function getWorkflowCommand() { return loadCommand('workflow'); }
|
|
187
|
+
export async function getHiveMindCommand() { return loadCommand('hive-mind'); }
|
|
188
|
+
export async function getProcessCommand() { return loadCommand('process'); }
|
|
189
|
+
export async function getTaskCommand() { return loadCommand('task'); }
|
|
190
|
+
export async function getSessionCommand() { return loadCommand('session'); }
|
|
191
|
+
export async function getNeuralCommand() { return loadCommand('neural'); }
|
|
192
|
+
export async function getSecurityCommand() { return loadCommand('security'); }
|
|
193
|
+
export async function getPerformanceCommand() { return loadCommand('performance'); }
|
|
194
|
+
export async function getProvidersCommand() { return loadCommand('providers'); }
|
|
195
|
+
export async function getPluginsCommand() { return loadCommand('plugins'); }
|
|
196
|
+
export async function getDeploymentCommand() { return loadCommand('deployment'); }
|
|
197
|
+
export async function getClaimsCommand() { return loadCommand('claims'); }
|
|
198
|
+
export async function getEmbeddingsCommand() { return loadCommand('embeddings'); }
|
|
199
|
+
export async function getCompletionsCommand() { return loadCommand('completions'); }
|
|
200
|
+
export async function getAnalyzeCommand() { return loadCommand('analyze'); }
|
|
201
|
+
export async function getRouteCommand() { return loadCommand('route'); }
|
|
202
|
+
export async function getProgressCommand() { return loadCommand('progress'); }
|
|
203
|
+
export async function getIssuesCommand() { return loadCommand('issues'); }
|
|
204
|
+
export async function getRuvectorCommand() { return loadCommand('ruvector'); }
|
|
205
|
+
export async function getGuidanceCommand() { return loadCommand('guidance'); }
|
|
206
|
+
export async function getApplianceCommand() { return loadCommand('appliance'); }
|
|
207
|
+
export async function getCleanupCommand() { return loadCommand('cleanup'); }
|
|
361
208
|
/**
|
|
362
209
|
* Core commands loaded synchronously (available immediately)
|
|
363
210
|
* Advanced commands loaded on-demand for faster startup
|
|
364
211
|
*/
|
|
365
|
-
export
|
|
212
|
+
export const commands = [
|
|
366
213
|
// Core commands (synchronously loaded)
|
|
367
214
|
initCommand,
|
|
368
215
|
startCommand,
|
|
@@ -388,7 +235,7 @@ export var commands = [
|
|
|
388
235
|
/**
|
|
389
236
|
* Commands organized by category for help display
|
|
390
237
|
*/
|
|
391
|
-
export
|
|
238
|
+
export const commandsByCategory = {
|
|
392
239
|
primary: [
|
|
393
240
|
initCommand,
|
|
394
241
|
startCommand,
|
|
@@ -433,20 +280,18 @@ export var commandsByCategory = {
|
|
|
433
280
|
processCommand,
|
|
434
281
|
applianceCommand,
|
|
435
282
|
cleanupCommand,
|
|
436
|
-
]
|
|
283
|
+
],
|
|
437
284
|
};
|
|
438
285
|
/**
|
|
439
286
|
* Command registry map for quick lookup
|
|
440
287
|
* Supports both sync (core commands) and async (lazy-loaded) commands
|
|
441
288
|
*/
|
|
442
|
-
export
|
|
289
|
+
export const commandRegistry = new Map();
|
|
443
290
|
// Register core commands and their aliases
|
|
444
|
-
for (
|
|
445
|
-
var cmd = commands_1[_i];
|
|
291
|
+
for (const cmd of commands) {
|
|
446
292
|
commandRegistry.set(cmd.name, cmd);
|
|
447
293
|
if (cmd.aliases) {
|
|
448
|
-
for (
|
|
449
|
-
var alias = _b[_a];
|
|
294
|
+
for (const alias of cmd.aliases) {
|
|
450
295
|
commandRegistry.set(alias, cmd);
|
|
451
296
|
}
|
|
452
297
|
}
|
|
@@ -461,20 +306,17 @@ export function getCommand(name) {
|
|
|
461
306
|
/**
|
|
462
307
|
* Get command by name (async - supports lazy loading)
|
|
463
308
|
*/
|
|
464
|
-
export function getCommandAsync(name) {
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
return [2 /*return*/, loadCommand(name)];
|
|
476
|
-
});
|
|
477
|
-
});
|
|
309
|
+
export async function getCommandAsync(name) {
|
|
310
|
+
// Check already-loaded commands first
|
|
311
|
+
const cached = loadedCommands.get(name);
|
|
312
|
+
if (cached)
|
|
313
|
+
return cached;
|
|
314
|
+
// Check sync registry
|
|
315
|
+
const synced = commandRegistry.get(name);
|
|
316
|
+
if (synced)
|
|
317
|
+
return synced;
|
|
318
|
+
// Try lazy loading
|
|
319
|
+
return loadCommand(name);
|
|
478
320
|
}
|
|
479
321
|
/**
|
|
480
322
|
* Check if command exists (sync check for core commands)
|
|
@@ -486,74 +328,50 @@ export function hasCommand(name) {
|
|
|
486
328
|
* Get all command names (including aliases and lazy-loadable)
|
|
487
329
|
*/
|
|
488
330
|
export function getCommandNames() {
|
|
489
|
-
|
|
331
|
+
const names = new Set([
|
|
332
|
+
...Array.from(commandRegistry.keys()),
|
|
333
|
+
...Array.from(loadedCommands.keys()),
|
|
334
|
+
...Object.keys(commandLoaders),
|
|
335
|
+
]);
|
|
490
336
|
return Array.from(names);
|
|
491
337
|
}
|
|
492
338
|
/**
|
|
493
339
|
* Get all unique commands (excluding aliases)
|
|
494
340
|
*/
|
|
495
341
|
export function getUniqueCommands() {
|
|
496
|
-
return commands.filter(
|
|
342
|
+
return commands.filter(cmd => !cmd.hidden);
|
|
497
343
|
}
|
|
498
344
|
/**
|
|
499
345
|
* Load all commands (populates lazy-loaded commands)
|
|
500
346
|
* Use this when you need all commands available synchronously
|
|
501
347
|
*/
|
|
502
|
-
export function loadAllCommands() {
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
_i = 0, _a = Object.keys(commandLoaders);
|
|
510
|
-
_b.label = 1;
|
|
511
|
-
case 1:
|
|
512
|
-
if (!(_i < _a.length)) return [3 /*break*/, 4];
|
|
513
|
-
name = _a[_i];
|
|
514
|
-
if (!!loadedCommands.has(name)) return [3 /*break*/, 3];
|
|
515
|
-
return [4 /*yield*/, loadCommand(name)];
|
|
516
|
-
case 2:
|
|
517
|
-
cmd = _b.sent();
|
|
518
|
-
if (cmd && !allCommands.includes(cmd)) {
|
|
519
|
-
allCommands.push(cmd);
|
|
520
|
-
}
|
|
521
|
-
_b.label = 3;
|
|
522
|
-
case 3:
|
|
523
|
-
_i++;
|
|
524
|
-
return [3 /*break*/, 1];
|
|
525
|
-
case 4: return [2 /*return*/, allCommands];
|
|
348
|
+
export async function loadAllCommands() {
|
|
349
|
+
const allCommands = [...commands];
|
|
350
|
+
for (const name of Object.keys(commandLoaders)) {
|
|
351
|
+
if (!loadedCommands.has(name)) {
|
|
352
|
+
const cmd = await loadCommand(name);
|
|
353
|
+
if (cmd && !allCommands.includes(cmd)) {
|
|
354
|
+
allCommands.push(cmd);
|
|
526
355
|
}
|
|
527
|
-
}
|
|
528
|
-
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
return allCommands;
|
|
529
359
|
}
|
|
530
360
|
/**
|
|
531
361
|
* Setup commands in a CLI instance
|
|
532
362
|
*/
|
|
533
363
|
export function setupCommands(cli) {
|
|
534
|
-
for (
|
|
535
|
-
var cmd = commands_2[_i];
|
|
364
|
+
for (const cmd of commands) {
|
|
536
365
|
cli.command(cmd);
|
|
537
366
|
}
|
|
538
367
|
}
|
|
539
368
|
/**
|
|
540
369
|
* Setup all commands including lazy-loaded (async)
|
|
541
370
|
*/
|
|
542
|
-
export function setupAllCommands(cli) {
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
case 0: return [4 /*yield*/, loadAllCommands()];
|
|
548
|
-
case 1:
|
|
549
|
-
allCommands = _a.sent();
|
|
550
|
-
for (_i = 0, allCommands_1 = allCommands; _i < allCommands_1.length; _i++) {
|
|
551
|
-
cmd = allCommands_1[_i];
|
|
552
|
-
cli.command(cmd);
|
|
553
|
-
}
|
|
554
|
-
return [2 /*return*/];
|
|
555
|
-
}
|
|
556
|
-
});
|
|
557
|
-
});
|
|
371
|
+
export async function setupAllCommands(cli) {
|
|
372
|
+
const allCommands = await loadAllCommands();
|
|
373
|
+
for (const cmd of allCommands) {
|
|
374
|
+
cli.command(cmd);
|
|
375
|
+
}
|
|
558
376
|
}
|
|
559
377
|
//# sourceMappingURL=index.js.map
|