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
|
@@ -3,59 +3,12 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Tool definitions for configuration management with file persistence.
|
|
5
5
|
*/
|
|
6
|
-
var __assign = (this && this.__assign) || function () {
|
|
7
|
-
__assign = Object.assign || function(t) {
|
|
8
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
-
s = arguments[i];
|
|
10
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
-
t[p] = s[p];
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
return __assign.apply(this, arguments);
|
|
16
|
-
};
|
|
17
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
18
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
19
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
20
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
21
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
22
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
23
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
27
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
28
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
29
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
30
|
-
function step(op) {
|
|
31
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
32
|
-
while (_) try {
|
|
33
|
-
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;
|
|
34
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
|
-
switch (op[0]) {
|
|
36
|
-
case 0: case 1: t = op; break;
|
|
37
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
38
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
39
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
40
|
-
default:
|
|
41
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
42
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
43
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
44
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
45
|
-
if (t[2]) _.ops.pop();
|
|
46
|
-
_.trys.pop(); continue;
|
|
47
|
-
}
|
|
48
|
-
op = body.call(thisArg, _);
|
|
49
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
50
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
6
|
import { existsSync, readFileSync, writeFileSync, mkdirSync } from 'node:fs';
|
|
54
7
|
import { join } from 'node:path';
|
|
55
8
|
// Storage paths
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
9
|
+
const STORAGE_DIR = '.claude-flow';
|
|
10
|
+
const CONFIG_FILE = 'config.json';
|
|
11
|
+
const DEFAULT_CONFIG = {
|
|
59
12
|
'swarm.topology': 'mesh',
|
|
60
13
|
'swarm.maxAgents': 10,
|
|
61
14
|
'swarm.autoScale': true,
|
|
@@ -66,7 +19,7 @@ var DEFAULT_CONFIG = {
|
|
|
66
19
|
'logging.level': 'info',
|
|
67
20
|
'logging.format': 'json',
|
|
68
21
|
'security.sandboxEnabled': true,
|
|
69
|
-
'security.pathValidation': true
|
|
22
|
+
'security.pathValidation': true,
|
|
70
23
|
};
|
|
71
24
|
function getConfigDir() {
|
|
72
25
|
return join(process.cwd(), STORAGE_DIR);
|
|
@@ -75,27 +28,27 @@ function getConfigPath() {
|
|
|
75
28
|
return join(getConfigDir(), CONFIG_FILE);
|
|
76
29
|
}
|
|
77
30
|
function ensureConfigDir() {
|
|
78
|
-
|
|
31
|
+
const dir = getConfigDir();
|
|
79
32
|
if (!existsSync(dir)) {
|
|
80
|
-
mkdirSync(dir, { recursive: true, mode:
|
|
33
|
+
mkdirSync(dir, { recursive: true, mode: 0o700 });
|
|
81
34
|
}
|
|
82
35
|
}
|
|
83
36
|
function loadConfigStore() {
|
|
84
37
|
try {
|
|
85
|
-
|
|
38
|
+
const path = getConfigPath();
|
|
86
39
|
if (existsSync(path)) {
|
|
87
|
-
|
|
40
|
+
const data = readFileSync(path, 'utf-8');
|
|
88
41
|
return JSON.parse(data);
|
|
89
42
|
}
|
|
90
43
|
}
|
|
91
|
-
catch
|
|
44
|
+
catch {
|
|
92
45
|
// Return default store on error
|
|
93
46
|
}
|
|
94
47
|
return {
|
|
95
|
-
values:
|
|
48
|
+
values: { ...DEFAULT_CONFIG },
|
|
96
49
|
scopes: {},
|
|
97
50
|
version: '3.0.0',
|
|
98
|
-
updatedAt: new Date().toISOString()
|
|
51
|
+
updatedAt: new Date().toISOString(),
|
|
99
52
|
};
|
|
100
53
|
}
|
|
101
54
|
function saveConfigStore(store) {
|
|
@@ -104,10 +57,9 @@ function saveConfigStore(store) {
|
|
|
104
57
|
writeFileSync(getConfigPath(), JSON.stringify(store, null, 2), 'utf-8');
|
|
105
58
|
}
|
|
106
59
|
function getNestedValue(obj, key) {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
for (
|
|
110
|
-
var part = parts_1[_i];
|
|
60
|
+
const parts = key.split('.');
|
|
61
|
+
let current = obj;
|
|
62
|
+
for (const part of parts) {
|
|
111
63
|
if (current && typeof current === 'object' && part in current) {
|
|
112
64
|
current = current[part];
|
|
113
65
|
}
|
|
@@ -117,11 +69,10 @@ function getNestedValue(obj, key) {
|
|
|
117
69
|
}
|
|
118
70
|
return current;
|
|
119
71
|
}
|
|
120
|
-
|
|
72
|
+
const DANGEROUS_KEYS = new Set(['__proto__', 'constructor', 'prototype']);
|
|
121
73
|
function filterDangerousKeys(obj) {
|
|
122
|
-
|
|
123
|
-
for (
|
|
124
|
-
var _b = _a[_i], key = _b[0], value = _b[1];
|
|
74
|
+
const filtered = {};
|
|
75
|
+
for (const [key, value] of Object.entries(obj)) {
|
|
125
76
|
if (!DANGEROUS_KEYS.has(key)) {
|
|
126
77
|
filtered[key] = value;
|
|
127
78
|
}
|
|
@@ -129,20 +80,19 @@ function filterDangerousKeys(obj) {
|
|
|
129
80
|
return filtered;
|
|
130
81
|
}
|
|
131
82
|
function setNestedValue(obj, key, value) {
|
|
132
|
-
|
|
133
|
-
|
|
83
|
+
const MAX_NESTING_DEPTH = 10;
|
|
84
|
+
const parts = key.split('.');
|
|
134
85
|
if (parts.length > MAX_NESTING_DEPTH) {
|
|
135
|
-
throw new Error(
|
|
86
|
+
throw new Error(`Key exceeds maximum nesting depth of ${MAX_NESTING_DEPTH}`);
|
|
136
87
|
}
|
|
137
|
-
for (
|
|
138
|
-
var part = parts_2[_i];
|
|
88
|
+
for (const part of parts) {
|
|
139
89
|
if (DANGEROUS_KEYS.has(part)) {
|
|
140
|
-
throw new Error(
|
|
90
|
+
throw new Error(`Dangerous key segment rejected: ${part}`);
|
|
141
91
|
}
|
|
142
92
|
}
|
|
143
|
-
|
|
144
|
-
for (
|
|
145
|
-
|
|
93
|
+
let current = obj;
|
|
94
|
+
for (let i = 0; i < parts.length - 1; i++) {
|
|
95
|
+
const part = parts[i];
|
|
146
96
|
if (!(part in current) || typeof current[part] !== 'object') {
|
|
147
97
|
current[part] = {};
|
|
148
98
|
}
|
|
@@ -150,7 +100,7 @@ function setNestedValue(obj, key, value) {
|
|
|
150
100
|
}
|
|
151
101
|
current[parts[parts.length - 1]] = value;
|
|
152
102
|
}
|
|
153
|
-
export
|
|
103
|
+
export const configTools = [
|
|
154
104
|
{
|
|
155
105
|
name: 'config_get',
|
|
156
106
|
description: 'Get configuration value',
|
|
@@ -159,35 +109,33 @@ export var configTools = [
|
|
|
159
109
|
type: 'object',
|
|
160
110
|
properties: {
|
|
161
111
|
key: { type: 'string', description: 'Configuration key (dot notation supported)' },
|
|
162
|
-
scope: { type: 'string', description: 'Configuration scope (project, user, system)' }
|
|
112
|
+
scope: { type: 'string', description: 'Configuration scope (project, user, system)' },
|
|
163
113
|
},
|
|
164
|
-
required: ['key']
|
|
114
|
+
required: ['key'],
|
|
115
|
+
},
|
|
116
|
+
handler: async (input) => {
|
|
117
|
+
const store = loadConfigStore();
|
|
118
|
+
const key = input.key;
|
|
119
|
+
const scope = input.scope || 'default';
|
|
120
|
+
let value;
|
|
121
|
+
// Check scope first, then default values
|
|
122
|
+
if (scope !== 'default' && store.scopes[scope]) {
|
|
123
|
+
value = store.scopes[scope][key];
|
|
124
|
+
}
|
|
125
|
+
if (value === undefined) {
|
|
126
|
+
value = store.values[key];
|
|
127
|
+
}
|
|
128
|
+
if (value === undefined) {
|
|
129
|
+
value = DEFAULT_CONFIG[key];
|
|
130
|
+
}
|
|
131
|
+
return {
|
|
132
|
+
key,
|
|
133
|
+
value,
|
|
134
|
+
scope,
|
|
135
|
+
exists: value !== undefined,
|
|
136
|
+
source: value !== undefined ? (store.values[key] !== undefined ? 'stored' : 'default') : 'none',
|
|
137
|
+
};
|
|
165
138
|
},
|
|
166
|
-
handler: function (input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
167
|
-
var store, key, scope, value;
|
|
168
|
-
return __generator(this, function (_a) {
|
|
169
|
-
store = loadConfigStore();
|
|
170
|
-
key = input.key;
|
|
171
|
-
scope = input.scope || 'default';
|
|
172
|
-
// Check scope first, then default values
|
|
173
|
-
if (scope !== 'default' && store.scopes[scope]) {
|
|
174
|
-
value = store.scopes[scope][key];
|
|
175
|
-
}
|
|
176
|
-
if (value === undefined) {
|
|
177
|
-
value = store.values[key];
|
|
178
|
-
}
|
|
179
|
-
if (value === undefined) {
|
|
180
|
-
value = DEFAULT_CONFIG[key];
|
|
181
|
-
}
|
|
182
|
-
return [2 /*return*/, {
|
|
183
|
-
key: key,
|
|
184
|
-
value: value,
|
|
185
|
-
scope: scope,
|
|
186
|
-
exists: value !== undefined,
|
|
187
|
-
source: value !== undefined ? (store.values[key] !== undefined ? 'stored' : 'default') : 'none'
|
|
188
|
-
}];
|
|
189
|
-
});
|
|
190
|
-
}); }
|
|
191
139
|
},
|
|
192
140
|
{
|
|
193
141
|
name: 'config_set',
|
|
@@ -198,38 +146,35 @@ export var configTools = [
|
|
|
198
146
|
properties: {
|
|
199
147
|
key: { type: 'string', description: 'Configuration key (dot notation supported)' },
|
|
200
148
|
value: { description: 'Configuration value' },
|
|
201
|
-
scope: { type: 'string', description: 'Configuration scope (project, user, system)' }
|
|
149
|
+
scope: { type: 'string', description: 'Configuration scope (project, user, system)' },
|
|
202
150
|
},
|
|
203
|
-
required: ['key', 'value']
|
|
151
|
+
required: ['key', 'value'],
|
|
204
152
|
},
|
|
205
|
-
handler:
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
if (!store.scopes[scope]) {
|
|
218
|
-
store.scopes[scope] = {};
|
|
219
|
-
}
|
|
220
|
-
store.scopes[scope][key] = value;
|
|
153
|
+
handler: async (input) => {
|
|
154
|
+
const store = loadConfigStore();
|
|
155
|
+
const key = input.key;
|
|
156
|
+
const value = input.value;
|
|
157
|
+
const scope = input.scope || 'default';
|
|
158
|
+
const previousValue = store.values[key];
|
|
159
|
+
if (scope === 'default') {
|
|
160
|
+
store.values[key] = value;
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
if (!store.scopes[scope]) {
|
|
164
|
+
store.scopes[scope] = {};
|
|
221
165
|
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
166
|
+
store.scopes[scope][key] = value;
|
|
167
|
+
}
|
|
168
|
+
saveConfigStore(store);
|
|
169
|
+
return {
|
|
170
|
+
success: true,
|
|
171
|
+
key,
|
|
172
|
+
value,
|
|
173
|
+
previousValue,
|
|
174
|
+
scope,
|
|
175
|
+
path: getConfigPath(),
|
|
176
|
+
};
|
|
177
|
+
},
|
|
233
178
|
},
|
|
234
179
|
{
|
|
235
180
|
name: 'config_list',
|
|
@@ -240,54 +185,43 @@ export var configTools = [
|
|
|
240
185
|
properties: {
|
|
241
186
|
scope: { type: 'string', description: 'Configuration scope' },
|
|
242
187
|
prefix: { type: 'string', description: 'Key prefix filter' },
|
|
243
|
-
includeDefaults: { type: 'boolean', description: 'Include default values' }
|
|
188
|
+
includeDefaults: { type: 'boolean', description: 'Include default values' },
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
handler: async (input) => {
|
|
192
|
+
const store = loadConfigStore();
|
|
193
|
+
const scope = input.scope || 'default';
|
|
194
|
+
const prefix = input.prefix;
|
|
195
|
+
const includeDefaults = input.includeDefaults !== false;
|
|
196
|
+
// Merge stored values with defaults
|
|
197
|
+
let configs = {};
|
|
198
|
+
if (includeDefaults) {
|
|
199
|
+
configs = { ...DEFAULT_CONFIG };
|
|
200
|
+
}
|
|
201
|
+
// Add stored values
|
|
202
|
+
Object.assign(configs, store.values);
|
|
203
|
+
// Add scope-specific values
|
|
204
|
+
if (scope !== 'default' && store.scopes[scope]) {
|
|
205
|
+
Object.assign(configs, store.scopes[scope]);
|
|
244
206
|
}
|
|
207
|
+
// Filter by prefix
|
|
208
|
+
let entries = Object.entries(configs);
|
|
209
|
+
if (prefix) {
|
|
210
|
+
entries = entries.filter(([key]) => key.startsWith(prefix));
|
|
211
|
+
}
|
|
212
|
+
// Sort by key
|
|
213
|
+
entries.sort(([a], [b]) => a.localeCompare(b));
|
|
214
|
+
return {
|
|
215
|
+
configs: entries.map(([key, value]) => ({
|
|
216
|
+
key,
|
|
217
|
+
value,
|
|
218
|
+
source: store.values[key] !== undefined ? 'stored' : 'default',
|
|
219
|
+
})),
|
|
220
|
+
total: entries.length,
|
|
221
|
+
scope,
|
|
222
|
+
updatedAt: store.updatedAt,
|
|
223
|
+
};
|
|
245
224
|
},
|
|
246
|
-
handler: function (input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
247
|
-
var store, scope, prefix, includeDefaults, configs, entries;
|
|
248
|
-
return __generator(this, function (_a) {
|
|
249
|
-
store = loadConfigStore();
|
|
250
|
-
scope = input.scope || 'default';
|
|
251
|
-
prefix = input.prefix;
|
|
252
|
-
includeDefaults = input.includeDefaults !== false;
|
|
253
|
-
configs = {};
|
|
254
|
-
if (includeDefaults) {
|
|
255
|
-
configs = __assign({}, DEFAULT_CONFIG);
|
|
256
|
-
}
|
|
257
|
-
// Add stored values
|
|
258
|
-
Object.assign(configs, store.values);
|
|
259
|
-
// Add scope-specific values
|
|
260
|
-
if (scope !== 'default' && store.scopes[scope]) {
|
|
261
|
-
Object.assign(configs, store.scopes[scope]);
|
|
262
|
-
}
|
|
263
|
-
entries = Object.entries(configs);
|
|
264
|
-
if (prefix) {
|
|
265
|
-
entries = entries.filter(function (_a) {
|
|
266
|
-
var key = _a[0];
|
|
267
|
-
return key.startsWith(prefix);
|
|
268
|
-
});
|
|
269
|
-
}
|
|
270
|
-
// Sort by key
|
|
271
|
-
entries.sort(function (_a, _b) {
|
|
272
|
-
var a = _a[0];
|
|
273
|
-
var b = _b[0];
|
|
274
|
-
return a.localeCompare(b);
|
|
275
|
-
});
|
|
276
|
-
return [2 /*return*/, {
|
|
277
|
-
configs: entries.map(function (_a) {
|
|
278
|
-
var key = _a[0], value = _a[1];
|
|
279
|
-
return ({
|
|
280
|
-
key: key,
|
|
281
|
-
value: value,
|
|
282
|
-
source: store.values[key] !== undefined ? 'stored' : 'default'
|
|
283
|
-
});
|
|
284
|
-
}),
|
|
285
|
-
total: entries.length,
|
|
286
|
-
scope: scope,
|
|
287
|
-
updatedAt: store.updatedAt
|
|
288
|
-
}];
|
|
289
|
-
});
|
|
290
|
-
}); }
|
|
291
225
|
},
|
|
292
226
|
{
|
|
293
227
|
name: 'config_reset',
|
|
@@ -297,50 +231,47 @@ export var configTools = [
|
|
|
297
231
|
type: 'object',
|
|
298
232
|
properties: {
|
|
299
233
|
scope: { type: 'string', description: 'Configuration scope' },
|
|
300
|
-
key: { type: 'string', description: 'Specific key to reset (omit to reset all)' }
|
|
301
|
-
}
|
|
234
|
+
key: { type: 'string', description: 'Specific key to reset (omit to reset all)' },
|
|
235
|
+
},
|
|
302
236
|
},
|
|
303
|
-
handler:
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
if (
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
if (key in store.values) {
|
|
314
|
-
delete store.values[key];
|
|
315
|
-
resetKeys.push(key);
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
else if (store.scopes[scope] && key in store.scopes[scope]) {
|
|
319
|
-
delete store.scopes[scope][key];
|
|
237
|
+
handler: async (input) => {
|
|
238
|
+
const store = loadConfigStore();
|
|
239
|
+
const scope = input.scope || 'default';
|
|
240
|
+
const key = input.key;
|
|
241
|
+
let resetKeys = [];
|
|
242
|
+
if (key) {
|
|
243
|
+
// Reset specific key
|
|
244
|
+
if (scope === 'default') {
|
|
245
|
+
if (key in store.values) {
|
|
246
|
+
delete store.values[key];
|
|
320
247
|
resetKeys.push(key);
|
|
321
248
|
}
|
|
322
249
|
}
|
|
323
|
-
else {
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
}
|
|
250
|
+
else if (store.scopes[scope] && key in store.scopes[scope]) {
|
|
251
|
+
delete store.scopes[scope][key];
|
|
252
|
+
resetKeys.push(key);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
else {
|
|
256
|
+
// Reset all keys in scope
|
|
257
|
+
if (scope === 'default') {
|
|
258
|
+
resetKeys = Object.keys(store.values);
|
|
259
|
+
store.values = { ...DEFAULT_CONFIG };
|
|
333
260
|
}
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
261
|
+
else if (store.scopes[scope]) {
|
|
262
|
+
resetKeys = Object.keys(store.scopes[scope]);
|
|
263
|
+
delete store.scopes[scope];
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
saveConfigStore(store);
|
|
267
|
+
return {
|
|
268
|
+
success: true,
|
|
269
|
+
scope,
|
|
270
|
+
reset: key || 'all',
|
|
271
|
+
resetKeys,
|
|
272
|
+
count: resetKeys.length,
|
|
273
|
+
};
|
|
274
|
+
},
|
|
344
275
|
},
|
|
345
276
|
{
|
|
346
277
|
name: 'config_export',
|
|
@@ -350,32 +281,29 @@ export var configTools = [
|
|
|
350
281
|
type: 'object',
|
|
351
282
|
properties: {
|
|
352
283
|
scope: { type: 'string', description: 'Configuration scope' },
|
|
353
|
-
includeDefaults: { type: 'boolean', description: 'Include default values' }
|
|
284
|
+
includeDefaults: { type: 'boolean', description: 'Include default values' },
|
|
285
|
+
},
|
|
286
|
+
},
|
|
287
|
+
handler: async (input) => {
|
|
288
|
+
const store = loadConfigStore();
|
|
289
|
+
const scope = input.scope || 'default';
|
|
290
|
+
const includeDefaults = input.includeDefaults !== false;
|
|
291
|
+
let exportData = {};
|
|
292
|
+
if (includeDefaults) {
|
|
293
|
+
exportData = { ...DEFAULT_CONFIG };
|
|
354
294
|
}
|
|
295
|
+
Object.assign(exportData, store.values);
|
|
296
|
+
if (scope !== 'default' && store.scopes[scope]) {
|
|
297
|
+
Object.assign(exportData, store.scopes[scope]);
|
|
298
|
+
}
|
|
299
|
+
return {
|
|
300
|
+
config: exportData,
|
|
301
|
+
scope,
|
|
302
|
+
version: store.version,
|
|
303
|
+
exportedAt: new Date().toISOString(),
|
|
304
|
+
count: Object.keys(exportData).length,
|
|
305
|
+
};
|
|
355
306
|
},
|
|
356
|
-
handler: function (input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
357
|
-
var store, scope, includeDefaults, exportData;
|
|
358
|
-
return __generator(this, function (_a) {
|
|
359
|
-
store = loadConfigStore();
|
|
360
|
-
scope = input.scope || 'default';
|
|
361
|
-
includeDefaults = input.includeDefaults !== false;
|
|
362
|
-
exportData = {};
|
|
363
|
-
if (includeDefaults) {
|
|
364
|
-
exportData = __assign({}, DEFAULT_CONFIG);
|
|
365
|
-
}
|
|
366
|
-
Object.assign(exportData, store.values);
|
|
367
|
-
if (scope !== 'default' && store.scopes[scope]) {
|
|
368
|
-
Object.assign(exportData, store.scopes[scope]);
|
|
369
|
-
}
|
|
370
|
-
return [2 /*return*/, {
|
|
371
|
-
config: exportData,
|
|
372
|
-
scope: scope,
|
|
373
|
-
version: store.version,
|
|
374
|
-
exportedAt: new Date().toISOString(),
|
|
375
|
-
count: Object.keys(exportData).length
|
|
376
|
-
}];
|
|
377
|
-
});
|
|
378
|
-
}); }
|
|
379
307
|
},
|
|
380
308
|
{
|
|
381
309
|
name: 'config_import',
|
|
@@ -386,42 +314,39 @@ export var configTools = [
|
|
|
386
314
|
properties: {
|
|
387
315
|
config: { type: 'object', description: 'Configuration object to import' },
|
|
388
316
|
scope: { type: 'string', description: 'Configuration scope' },
|
|
389
|
-
merge: { type: 'boolean', description: 'Merge with existing (true) or replace (false)' }
|
|
317
|
+
merge: { type: 'boolean', description: 'Merge with existing (true) or replace (false)' },
|
|
390
318
|
},
|
|
391
|
-
required: ['config']
|
|
319
|
+
required: ['config'],
|
|
392
320
|
},
|
|
393
|
-
handler:
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
if (merge) {
|
|
403
|
-
Object.assign(store.values, config);
|
|
404
|
-
}
|
|
405
|
-
else {
|
|
406
|
-
store.values = __assign(__assign({}, DEFAULT_CONFIG), config);
|
|
407
|
-
}
|
|
321
|
+
handler: async (input) => {
|
|
322
|
+
const store = loadConfigStore();
|
|
323
|
+
const config = filterDangerousKeys(input.config);
|
|
324
|
+
const scope = input.scope || 'default';
|
|
325
|
+
const merge = input.merge !== false;
|
|
326
|
+
const importedKeys = Object.keys(config);
|
|
327
|
+
if (scope === 'default') {
|
|
328
|
+
if (merge) {
|
|
329
|
+
Object.assign(store.values, config);
|
|
408
330
|
}
|
|
409
331
|
else {
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
332
|
+
store.values = { ...DEFAULT_CONFIG, ...config };
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
else {
|
|
336
|
+
if (!store.scopes[scope] || !merge) {
|
|
337
|
+
store.scopes[scope] = {};
|
|
414
338
|
}
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
339
|
+
Object.assign(store.scopes[scope], config);
|
|
340
|
+
}
|
|
341
|
+
saveConfigStore(store);
|
|
342
|
+
return {
|
|
343
|
+
success: true,
|
|
344
|
+
scope,
|
|
345
|
+
imported: importedKeys.length,
|
|
346
|
+
keys: importedKeys,
|
|
347
|
+
merge,
|
|
348
|
+
};
|
|
349
|
+
},
|
|
425
350
|
},
|
|
426
351
|
];
|
|
427
352
|
//# sourceMappingURL=config-tools.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-tools.js","sourceRoot":"","sources":["../../../src/mcp-tools/config-tools.ts"],"names":[],"mappings":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