kynjal-cli 4.0.0 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/appliance/gguf-engine.d.ts +91 -0
- package/dist/src/appliance/gguf-engine.d.ts.map +1 -0
- package/dist/src/appliance/gguf-engine.js +286 -525
- package/dist/src/appliance/gguf-engine.js.map +1 -1
- package/dist/src/appliance/ruvllm-bridge.d.ts +102 -0
- package/dist/src/appliance/ruvllm-bridge.d.ts.map +1 -0
- package/dist/src/appliance/ruvllm-bridge.js +203 -403
- package/dist/src/appliance/ruvllm-bridge.js.map +1 -1
- package/dist/src/appliance/rvfa-builder.d.ts +44 -0
- package/dist/src/appliance/rvfa-builder.d.ts.map +1 -0
- package/dist/src/appliance/rvfa-builder.js +154 -208
- package/dist/src/appliance/rvfa-builder.js.map +1 -1
- package/dist/src/appliance/rvfa-distribution.d.ts +97 -0
- package/dist/src/appliance/rvfa-distribution.d.ts.map +1 -0
- package/dist/src/appliance/rvfa-distribution.js +260 -423
- package/dist/src/appliance/rvfa-distribution.js.map +1 -1
- package/dist/src/appliance/rvfa-format.d.ts +111 -0
- package/dist/src/appliance/rvfa-format.d.ts.map +1 -0
- package/dist/src/appliance/rvfa-format.js +128 -200
- package/dist/src/appliance/rvfa-format.js.map +1 -1
- package/dist/src/appliance/rvfa-runner.d.ts +69 -0
- package/dist/src/appliance/rvfa-runner.d.ts.map +1 -0
- package/dist/src/appliance/rvfa-runner.js +168 -304
- package/dist/src/appliance/rvfa-runner.js.map +1 -1
- package/dist/src/appliance/rvfa-signing.d.ts +123 -0
- package/dist/src/appliance/rvfa-signing.d.ts.map +1 -0
- package/dist/src/appliance/rvfa-signing.js +173 -295
- package/dist/src/appliance/rvfa-signing.js.map +1 -1
- package/dist/src/benchmarks/pretrain/index.d.ts +58 -0
- package/dist/src/benchmarks/pretrain/index.d.ts.map +1 -0
- package/dist/src/benchmarks/pretrain/index.js +331 -542
- package/dist/src/benchmarks/pretrain/index.js.map +1 -1
- package/dist/src/commands/agent.js +574 -697
- package/dist/src/commands/agent.js.map +1 -1
- package/dist/src/commands/analyze.js +1218 -1548
- package/dist/src/commands/analyze.js.map +1 -1
- package/dist/src/commands/appliance-advanced.js +158 -267
- package/dist/src/commands/appliance-advanced.js.map +1 -1
- package/dist/src/commands/appliance.js +318 -493
- package/dist/src/commands/appliance.js.map +1 -1
- package/dist/src/commands/benchmark.js +372 -523
- package/dist/src/commands/benchmark.js.map +1 -1
- package/dist/src/commands/claims.js +274 -364
- package/dist/src/commands/claims.js.map +1 -1
- package/dist/src/commands/cleanup.js +113 -157
- package/dist/src/commands/cleanup.js.map +1 -1
- package/dist/src/commands/completions.js +477 -118
- package/dist/src/commands/completions.js.map +1 -1
- package/dist/src/commands/config.js +237 -303
- package/dist/src/commands/config.js.map +1 -1
- package/dist/src/commands/daemon.js +487 -596
- package/dist/src/commands/daemon.js.map +1 -1
- package/dist/src/commands/deployment.js +194 -275
- package/dist/src/commands/deployment.js.map +1 -1
- package/dist/src/commands/doctor.js +504 -686
- package/dist/src/commands/doctor.js.map +1 -1
- package/dist/src/commands/embeddings.js +1293 -1543
- package/dist/src/commands/embeddings.js.map +1 -1
- package/dist/src/commands/guidance.js +449 -596
- package/dist/src/commands/guidance.js.map +1 -1
- package/dist/src/commands/hive-mind.js +854 -938
- package/dist/src/commands/hive-mind.js.map +1 -1
- package/dist/src/commands/hooks.js +3112 -3519
- package/dist/src/commands/hooks.js.map +1 -1
- package/dist/src/commands/index.d.ts +115 -0
- package/dist/src/commands/index.d.ts.map +1 -0
- package/dist/src/commands/index.js +126 -308
- package/dist/src/commands/index.js.map +1 -1
- package/dist/src/commands/init.js +788 -940
- package/dist/src/commands/init.js.map +1 -1
- package/dist/src/commands/issues.js +383 -558
- package/dist/src/commands/issues.js.map +1 -1
- package/dist/src/commands/mcp.js +493 -605
- package/dist/src/commands/mcp.js.map +1 -1
- package/dist/src/commands/memory.js +833 -1026
- package/dist/src/commands/memory.js.map +1 -1
- package/dist/src/commands/migrate.js +282 -347
- package/dist/src/commands/migrate.js.map +1 -1
- package/dist/src/commands/neural.js +1289 -1563
- package/dist/src/commands/neural.js.map +1 -1
- package/dist/src/commands/performance.js +497 -643
- package/dist/src/commands/performance.js.map +1 -1
- package/dist/src/commands/plugins.js +668 -841
- package/dist/src/commands/plugins.js.map +1 -1
- package/dist/src/commands/process.js +392 -447
- package/dist/src/commands/process.js.map +1 -1
- package/dist/src/commands/progress.js +162 -256
- package/dist/src/commands/progress.js.map +1 -1
- package/dist/src/commands/providers.js +150 -220
- package/dist/src/commands/providers.js.map +1 -1
- package/dist/src/commands/route.js +520 -665
- package/dist/src/commands/route.js.map +1 -1
- package/dist/src/commands/ruvector/backup.js +505 -651
- package/dist/src/commands/ruvector/backup.js.map +1 -1
- package/dist/src/commands/ruvector/benchmark.js +349 -401
- package/dist/src/commands/ruvector/benchmark.js.map +1 -1
- package/dist/src/commands/ruvector/import.js +224 -266
- package/dist/src/commands/ruvector/import.js.map +1 -1
- package/dist/src/commands/ruvector/index.js +37 -75
- package/dist/src/commands/ruvector/index.js.map +1 -1
- package/dist/src/commands/ruvector/init.js +336 -359
- package/dist/src/commands/ruvector/init.js.map +1 -1
- package/dist/src/commands/ruvector/migrate.js +335 -322
- package/dist/src/commands/ruvector/migrate.js.map +1 -1
- package/dist/src/commands/ruvector/optimize.js +375 -431
- package/dist/src/commands/ruvector/optimize.js.map +1 -1
- package/dist/src/commands/ruvector/setup.js +703 -117
- package/dist/src/commands/ruvector/setup.js.map +1 -1
- package/dist/src/commands/ruvector/status.js +364 -419
- package/dist/src/commands/ruvector/status.js.map +1 -1
- package/dist/src/commands/security.js +485 -608
- package/dist/src/commands/security.js.map +1 -1
- package/dist/src/commands/session.js +504 -626
- package/dist/src/commands/session.js.map +1 -1
- package/dist/src/commands/start.js +267 -364
- package/dist/src/commands/start.js.map +1 -1
- package/dist/src/commands/status.js +380 -486
- package/dist/src/commands/status.js.map +1 -1
- package/dist/src/commands/swarm.js +408 -488
- package/dist/src/commands/swarm.js.map +1 -1
- package/dist/src/commands/task.js +423 -538
- package/dist/src/commands/task.js.map +1 -1
- package/dist/src/commands/transfer-store.js +322 -412
- package/dist/src/commands/transfer-store.js.map +1 -1
- package/dist/src/commands/update.js +196 -291
- package/dist/src/commands/update.js.map +1 -1
- package/dist/src/commands/workflow.js +386 -486
- package/dist/src/commands/workflow.js.map +1 -1
- package/dist/src/config-adapter.d.ts +15 -0
- package/dist/src/config-adapter.d.ts.map +1 -0
- package/dist/src/config-adapter.js +38 -39
- package/dist/src/config-adapter.js.map +1 -1
- package/dist/src/index.d.ts +77 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +309 -411
- package/dist/src/index.js.map +1 -1
- package/dist/src/infrastructure/in-memory-repositories.d.ts +68 -0
- package/dist/src/infrastructure/in-memory-repositories.d.ts.map +1 -0
- package/dist/src/infrastructure/in-memory-repositories.js +246 -507
- package/dist/src/infrastructure/in-memory-repositories.js.map +1 -1
- package/dist/src/init/claudemd-generator.d.ts +25 -0
- package/dist/src/init/claudemd-generator.d.ts.map +1 -0
- package/dist/src/init/claudemd-generator.js +368 -78
- package/dist/src/init/claudemd-generator.js.map +1 -1
- package/dist/src/init/executor.d.ts +41 -0
- package/dist/src/init/executor.d.ts.map +1 -0
- package/dist/src/init/executor.js +1307 -996
- package/dist/src/init/executor.js.map +1 -1
- package/dist/src/init/helpers-generator.d.ts +60 -0
- package/dist/src/init/helpers-generator.d.ts.map +1 -0
- package/dist/src/init/helpers-generator.js +657 -12
- package/dist/src/init/helpers-generator.js.map +1 -1
- package/dist/src/init/index.d.ts +1 -1
- package/dist/src/init/index.d.ts.map +1 -1
- package/dist/src/init/index.js +1 -1
- package/dist/src/init/index.js.map +1 -1
- package/dist/src/init/mcp-generator.js +33 -37
- package/dist/src/init/mcp-generator.js.map +1 -1
- package/dist/src/init/settings-generator.js +76 -77
- package/dist/src/init/settings-generator.js.map +1 -1
- package/dist/src/init/statusline-generator.js +801 -3
- package/dist/src/init/statusline-generator.js.map +1 -1
- package/dist/src/init/types.d.ts +1 -1
- package/dist/src/init/types.d.ts.map +1 -1
- package/dist/src/init/types.js +76 -59
- package/dist/src/init/types.js.map +1 -1
- package/dist/src/mcp-client.d.ts +92 -0
- package/dist/src/mcp-client.d.ts.map +1 -0
- package/dist/src/mcp-client.js +81 -125
- package/dist/src/mcp-client.js.map +1 -1
- package/dist/src/mcp-server.d.ts +161 -0
- package/dist/src/mcp-server.d.ts.map +1 -0
- package/dist/src/mcp-server.js +470 -757
- package/dist/src/mcp-server.js.map +1 -1
- package/dist/src/mcp-tools/agent-tools.js +391 -492
- package/dist/src/mcp-tools/agent-tools.js.map +1 -1
- package/dist/src/mcp-tools/agentdb-tools.js +332 -533
- package/dist/src/mcp-tools/agentdb-tools.js.map +1 -1
- package/dist/src/mcp-tools/analyze-tools.js +172 -236
- package/dist/src/mcp-tools/analyze-tools.js.map +1 -1
- package/dist/src/mcp-tools/auto-install.d.ts +83 -0
- package/dist/src/mcp-tools/auto-install.d.ts.map +1 -0
- package/dist/src/mcp-tools/auto-install.js +80 -142
- package/dist/src/mcp-tools/auto-install.js.map +1 -1
- package/dist/src/mcp-tools/browser-tools.js +252 -375
- package/dist/src/mcp-tools/browser-tools.js.map +1 -1
- package/dist/src/mcp-tools/claims-tools.js +473 -565
- package/dist/src/mcp-tools/claims-tools.js.map +1 -1
- package/dist/src/mcp-tools/config-tools.js +197 -272
- package/dist/src/mcp-tools/config-tools.js.map +1 -1
- package/dist/src/mcp-tools/coordination-tools.js +500 -572
- package/dist/src/mcp-tools/coordination-tools.js.map +1 -1
- package/dist/src/mcp-tools/daa-tools.js +286 -364
- package/dist/src/mcp-tools/daa-tools.js.map +1 -1
- package/dist/src/mcp-tools/embeddings-tools.js +582 -693
- package/dist/src/mcp-tools/embeddings-tools.js.map +1 -1
- package/dist/src/mcp-tools/github-tools.js +260 -311
- package/dist/src/mcp-tools/github-tools.js.map +1 -1
- package/dist/src/mcp-tools/hive-mind-tools.js +573 -640
- package/dist/src/mcp-tools/hive-mind-tools.js.map +1 -1
- package/dist/src/mcp-tools/hooks-tools.js +2215 -2648
- package/dist/src/mcp-tools/hooks-tools.js.map +1 -1
- package/dist/src/mcp-tools/memory-tools.js +350 -505
- package/dist/src/mcp-tools/memory-tools.js.map +1 -1
- package/dist/src/mcp-tools/neural-tools.js +315 -412
- package/dist/src/mcp-tools/neural-tools.js.map +1 -1
- package/dist/src/mcp-tools/performance-tools.js +420 -480
- package/dist/src/mcp-tools/performance-tools.js.map +1 -1
- package/dist/src/mcp-tools/progress-tools.js +204 -278
- package/dist/src/mcp-tools/progress-tools.js.map +1 -1
- package/dist/src/mcp-tools/ruvllm-tools.js +163 -279
- package/dist/src/mcp-tools/ruvllm-tools.js.map +1 -1
- package/dist/src/mcp-tools/security-tools.js +297 -429
- package/dist/src/mcp-tools/security-tools.js.map +1 -1
- package/dist/src/mcp-tools/session-tools.js +185 -234
- package/dist/src/mcp-tools/session-tools.js.map +1 -1
- package/dist/src/mcp-tools/swarm-tools.js +207 -260
- package/dist/src/mcp-tools/swarm-tools.js.map +1 -1
- package/dist/src/mcp-tools/system-tools.js +276 -325
- package/dist/src/mcp-tools/system-tools.js.map +1 -1
- package/dist/src/mcp-tools/task-tools.js +270 -336
- package/dist/src/mcp-tools/task-tools.js.map +1 -1
- package/dist/src/mcp-tools/terminal-tools.js +148 -196
- package/dist/src/mcp-tools/terminal-tools.js.map +1 -1
- package/dist/src/mcp-tools/transfer-tools.js +186 -333
- package/dist/src/mcp-tools/transfer-tools.js.map +1 -1
- package/dist/src/mcp-tools/types.d.ts +31 -0
- package/dist/src/mcp-tools/types.d.ts.map +1 -0
- package/dist/src/mcp-tools/wasm-agent-tools.js +133 -280
- package/dist/src/mcp-tools/wasm-agent-tools.js.map +1 -1
- package/dist/src/mcp-tools/workflow-tools.js +405 -450
- package/dist/src/mcp-tools/workflow-tools.js.map +1 -1
- package/dist/src/memory/ewc-consolidation.d.ts +295 -0
- package/dist/src/memory/ewc-consolidation.d.ts.map +1 -0
- package/dist/src/memory/ewc-consolidation.js +190 -303
- package/dist/src/memory/ewc-consolidation.js.map +1 -1
- package/dist/src/memory/intelligence.d.ts +338 -0
- package/dist/src/memory/intelligence.d.ts.map +1 -0
- package/dist/src/memory/intelligence.js +569 -794
- package/dist/src/memory/intelligence.js.map +1 -1
- package/dist/src/memory/memory-bridge.d.ts +407 -0
- package/dist/src/memory/memory-bridge.d.ts.map +1 -0
- package/dist/src/memory/memory-bridge.js +1170 -1640
- package/dist/src/memory/memory-bridge.js.map +1 -1
- package/dist/src/memory/memory-initializer.d.ts +412 -0
- package/dist/src/memory/memory-initializer.d.ts.map +1 -0
- package/dist/src/memory/memory-initializer.js +1836 -1851
- package/dist/src/memory/memory-initializer.js.map +1 -1
- package/dist/src/memory/sona-optimizer.d.ts +227 -0
- package/dist/src/memory/sona-optimizer.d.ts.map +1 -0
- package/dist/src/memory/sona-optimizer.js +199 -329
- package/dist/src/memory/sona-optimizer.js.map +1 -1
- package/dist/src/output.d.ts +2 -2
- package/dist/src/output.d.ts.map +1 -1
- package/dist/src/output.js +242 -272
- package/dist/src/output.js.map +1 -1
- package/dist/src/parser.d.ts +51 -0
- package/dist/src/parser.d.ts.map +1 -0
- package/dist/src/parser.js +140 -187
- package/dist/src/parser.js.map +1 -1
- package/dist/src/plugins/manager.d.ts +133 -0
- package/dist/src/plugins/manager.d.ts.map +1 -0
- package/dist/src/plugins/manager.js +285 -521
- package/dist/src/plugins/manager.js.map +1 -1
- package/dist/src/plugins/store/discovery.d.ts +88 -0
- package/dist/src/plugins/store/discovery.d.ts.map +1 -0
- package/dist/src/plugins/store/discovery.js +271 -358
- package/dist/src/plugins/store/discovery.js.map +1 -1
- package/dist/src/plugins/store/index.d.ts +76 -0
- package/dist/src/plugins/store/index.d.ts.map +1 -0
- package/dist/src/plugins/store/index.js +48 -105
- package/dist/src/plugins/store/index.js.map +1 -1
- package/dist/src/plugins/store/search.d.ts +46 -0
- package/dist/src/plugins/store/search.d.ts.map +1 -0
- package/dist/src/plugins/store/search.js +69 -107
- package/dist/src/plugins/store/search.js.map +1 -1
- package/dist/src/plugins/store/types.d.ts +274 -0
- package/dist/src/plugins/store/types.d.ts.map +1 -0
- package/dist/src/plugins/tests/demo-plugin-store.js +113 -160
- package/dist/src/plugins/tests/demo-plugin-store.js.map +1 -1
- package/dist/src/plugins/tests/standalone-test.js +172 -223
- package/dist/src/plugins/tests/standalone-test.js.map +1 -1
- package/dist/src/plugins/tests/test-plugin-store.js +190 -228
- package/dist/src/plugins/tests/test-plugin-store.js.map +1 -1
- package/dist/src/production/circuit-breaker.d.ts +101 -0
- package/dist/src/production/circuit-breaker.d.ts.map +1 -0
- package/dist/src/production/circuit-breaker.js +62 -126
- package/dist/src/production/circuit-breaker.js.map +1 -1
- package/dist/src/production/error-handler.d.ts +92 -0
- package/dist/src/production/error-handler.d.ts.map +1 -0
- package/dist/src/production/error-handler.js +86 -156
- package/dist/src/production/error-handler.js.map +1 -1
- package/dist/src/production/monitoring.d.ts +161 -0
- package/dist/src/production/monitoring.d.ts.map +1 -0
- package/dist/src/production/monitoring.js +139 -220
- package/dist/src/production/monitoring.js.map +1 -1
- package/dist/src/production/rate-limiter.d.ts +80 -0
- package/dist/src/production/rate-limiter.d.ts.map +1 -0
- package/dist/src/production/rate-limiter.js +74 -93
- package/dist/src/production/rate-limiter.js.map +1 -1
- package/dist/src/production/retry.d.ts +48 -0
- package/dist/src/production/retry.d.ts.map +1 -0
- package/dist/src/production/retry.js +75 -167
- package/dist/src/production/retry.js.map +1 -1
- package/dist/src/prompt.d.ts +44 -0
- package/dist/src/prompt.d.ts.map +1 -0
- package/dist/src/prompt.js +436 -560
- package/dist/src/prompt.js.map +1 -1
- package/dist/src/runtime/headless.d.ts +60 -0
- package/dist/src/runtime/headless.d.ts.map +1 -0
- package/dist/src/runtime/headless.js +197 -286
- package/dist/src/runtime/headless.js.map +1 -1
- package/dist/src/ruvector/agent-wasm.d.ts +182 -0
- package/dist/src/ruvector/agent-wasm.d.ts.map +1 -0
- package/dist/src/ruvector/agent-wasm.js +156 -351
- package/dist/src/ruvector/agent-wasm.js.map +1 -1
- package/dist/src/ruvector/ast-analyzer.d.ts +67 -0
- package/dist/src/ruvector/ast-analyzer.d.ts.map +1 -0
- package/dist/src/ruvector/ast-analyzer.js +145 -232
- package/dist/src/ruvector/ast-analyzer.js.map +1 -1
- package/dist/src/ruvector/coverage-router.d.ts +160 -0
- package/dist/src/ruvector/coverage-router.d.ts.map +1 -0
- package/dist/src/ruvector/coverage-router.js +287 -419
- package/dist/src/ruvector/coverage-router.js.map +1 -1
- package/dist/src/ruvector/coverage-tools.js +56 -101
- package/dist/src/ruvector/coverage-tools.js.map +1 -1
- package/dist/src/ruvector/diff-classifier.d.ts +175 -0
- package/dist/src/ruvector/diff-classifier.d.ts.map +1 -0
- package/dist/src/ruvector/diff-classifier.js +324 -451
- package/dist/src/ruvector/diff-classifier.js.map +1 -1
- package/dist/src/ruvector/enhanced-model-router.d.ts +146 -0
- package/dist/src/ruvector/enhanced-model-router.d.ts.map +1 -0
- package/dist/src/ruvector/enhanced-model-router.js +260 -336
- package/dist/src/ruvector/enhanced-model-router.js.map +1 -1
- package/dist/src/ruvector/flash-attention.d.ts +195 -0
- package/dist/src/ruvector/flash-attention.d.ts.map +1 -0
- package/dist/src/ruvector/flash-attention.js +223 -254
- package/dist/src/ruvector/flash-attention.js.map +1 -1
- package/dist/src/ruvector/graph-analyzer.d.ts +187 -0
- package/dist/src/ruvector/graph-analyzer.d.ts.map +1 -0
- package/dist/src/ruvector/graph-analyzer.js +486 -680
- package/dist/src/ruvector/graph-analyzer.js.map +1 -1
- package/dist/src/ruvector/index.d.ts +40 -0
- package/dist/src/ruvector/index.d.ts.map +1 -0
- package/dist/src/ruvector/index.js +36 -106
- package/dist/src/ruvector/index.js.map +1 -1
- package/dist/src/ruvector/lora-adapter.d.ts +218 -0
- package/dist/src/ruvector/lora-adapter.d.ts.map +1 -0
- package/dist/src/ruvector/lora-adapter.js +155 -248
- package/dist/src/ruvector/lora-adapter.js.map +1 -1
- package/dist/src/ruvector/model-router.d.ts +220 -0
- package/dist/src/ruvector/model-router.d.ts.map +1 -0
- package/dist/src/ruvector/model-router.js +175 -248
- package/dist/src/ruvector/model-router.js.map +1 -1
- package/dist/src/ruvector/moe-router.d.ts +206 -0
- package/dist/src/ruvector/moe-router.d.ts.map +1 -0
- package/dist/src/ruvector/moe-router.js +228 -286
- package/dist/src/ruvector/moe-router.js.map +1 -1
- package/dist/src/ruvector/q-learning-router.d.ts +211 -0
- package/dist/src/ruvector/q-learning-router.d.ts.map +1 -0
- package/dist/src/ruvector/q-learning-router.js +257 -338
- package/dist/src/ruvector/q-learning-router.js.map +1 -1
- package/dist/src/ruvector/ruvllm-wasm.d.ts +179 -0
- package/dist/src/ruvector/ruvllm-wasm.d.ts.map +1 -0
- package/dist/src/ruvector/ruvllm-wasm.js +270 -434
- package/dist/src/ruvector/ruvllm-wasm.js.map +1 -1
- package/dist/src/ruvector/semantic-router.d.ts +77 -0
- package/dist/src/ruvector/semantic-router.d.ts.map +1 -0
- package/dist/src/ruvector/semantic-router.js +60 -67
- package/dist/src/ruvector/semantic-router.js.map +1 -1
- package/dist/src/ruvector/vector-db.d.ts +69 -0
- package/dist/src/ruvector/vector-db.d.ts.map +1 -0
- package/dist/src/ruvector/vector-db.js +119 -205
- package/dist/src/ruvector/vector-db.js.map +1 -1
- package/dist/src/services/agentic-flow-bridge.d.ts +50 -0
- package/dist/src/services/agentic-flow-bridge.d.ts.map +1 -0
- package/dist/src/services/agentic-flow-bridge.js +32 -105
- package/dist/src/services/agentic-flow-bridge.js.map +1 -1
- package/dist/src/services/claim-service.d.ts +204 -0
- package/dist/src/services/claim-service.d.ts.map +1 -0
- package/dist/src/services/claim-service.js +615 -940
- package/dist/src/services/claim-service.js.map +1 -1
- package/dist/src/services/container-worker-pool.d.ts +197 -0
- package/dist/src/services/container-worker-pool.d.ts.map +1 -0
- package/dist/src/services/container-worker-pool.js +398 -666
- package/dist/src/services/container-worker-pool.js.map +1 -1
- package/dist/src/services/headless-worker-executor.d.ts +304 -0
- package/dist/src/services/headless-worker-executor.d.ts.map +1 -0
- package/dist/src/services/headless-worker-executor.js +441 -467
- package/dist/src/services/headless-worker-executor.js.map +1 -1
- package/dist/src/services/index.d.ts +4 -4
- package/dist/src/services/index.d.ts.map +1 -1
- package/dist/src/services/index.js +4 -4
- package/dist/src/services/index.js.map +1 -1
- package/dist/src/services/registry-api.d.ts +58 -0
- package/dist/src/services/registry-api.d.ts.map +1 -0
- package/dist/src/services/registry-api.js +92 -200
- package/dist/src/services/registry-api.js.map +1 -1
- package/dist/src/services/ruvector-training.d.ts +222 -0
- package/dist/src/services/ruvector-training.d.ts.map +1 -0
- package/dist/src/services/ruvector-training.js +257 -337
- package/dist/src/services/ruvector-training.js.map +1 -1
- package/dist/src/services/worker-daemon.d.ts +228 -0
- package/dist/src/services/worker-daemon.d.ts.map +1 -0
- package/dist/src/services/worker-daemon.js +591 -849
- package/dist/src/services/worker-daemon.js.map +1 -1
- package/dist/src/services/worker-queue.d.ts +194 -0
- package/dist/src/services/worker-queue.d.ts.map +1 -0
- package/dist/src/services/worker-queue.js +331 -548
- package/dist/src/services/worker-queue.js.map +1 -1
- package/dist/src/suggest.d.ts +53 -0
- package/dist/src/suggest.d.ts.map +1 -0
- package/dist/src/suggest.js +45 -55
- package/dist/src/suggest.js.map +1 -1
- package/dist/src/transfer/anonymization/index.js +29 -37
- package/dist/src/transfer/anonymization/index.js.map +1 -1
- package/dist/src/transfer/deploy-seraphine.js +128 -155
- package/dist/src/transfer/deploy-seraphine.js.map +1 -1
- package/dist/src/transfer/export.d.ts +25 -0
- package/dist/src/transfer/export.d.ts.map +1 -0
- package/dist/src/transfer/export.js +84 -142
- package/dist/src/transfer/export.js.map +1 -1
- package/dist/src/transfer/index.d.ts +1 -1
- package/dist/src/transfer/index.d.ts.map +1 -1
- package/dist/src/transfer/index.js +0 -2
- package/dist/src/transfer/index.js.map +1 -1
- package/dist/src/transfer/ipfs/client.d.ts +109 -0
- package/dist/src/transfer/ipfs/client.d.ts.map +1 -0
- package/dist/src/transfer/ipfs/client.js +187 -337
- package/dist/src/transfer/ipfs/client.js.map +1 -1
- package/dist/src/transfer/ipfs/upload.d.ts +95 -0
- package/dist/src/transfer/ipfs/upload.d.ts.map +1 -0
- package/dist/src/transfer/ipfs/upload.js +288 -434
- package/dist/src/transfer/ipfs/upload.js.map +1 -1
- package/dist/src/transfer/models/seraphine.d.ts +72 -0
- package/dist/src/transfer/models/seraphine.d.ts.map +1 -0
- package/dist/src/transfer/models/seraphine.js +55 -55
- package/dist/src/transfer/models/seraphine.js.map +1 -1
- package/dist/src/transfer/serialization/cfp.d.ts +49 -0
- package/dist/src/transfer/serialization/cfp.d.ts.map +1 -0
- package/dist/src/transfer/serialization/cfp.js +30 -31
- package/dist/src/transfer/serialization/cfp.js.map +1 -1
- package/dist/src/transfer/storage/gcs.d.ts +82 -0
- package/dist/src/transfer/storage/gcs.d.ts.map +1 -0
- package/dist/src/transfer/storage/gcs.js +165 -232
- package/dist/src/transfer/storage/gcs.js.map +1 -1
- package/dist/src/transfer/store/discovery.d.ts +84 -0
- package/dist/src/transfer/store/discovery.d.ts.map +1 -0
- package/dist/src/transfer/store/discovery.js +239 -349
- package/dist/src/transfer/store/discovery.js.map +1 -1
- package/dist/src/transfer/store/download.d.ts +70 -0
- package/dist/src/transfer/store/download.d.ts.map +1 -0
- package/dist/src/transfer/store/download.js +243 -365
- package/dist/src/transfer/store/download.js.map +1 -1
- package/dist/src/transfer/store/index.d.ts +84 -0
- package/dist/src/transfer/store/index.d.ts.map +1 -0
- package/dist/src/transfer/store/index.js +63 -130
- package/dist/src/transfer/store/index.js.map +1 -1
- package/dist/src/transfer/store/publish.d.ts +76 -0
- package/dist/src/transfer/store/publish.d.ts.map +1 -0
- package/dist/src/transfer/store/publish.js +184 -258
- package/dist/src/transfer/store/publish.js.map +1 -1
- package/dist/src/transfer/store/registry.js +50 -72
- package/dist/src/transfer/store/registry.js.map +1 -1
- package/dist/src/transfer/store/search.d.ts +54 -0
- package/dist/src/transfer/store/search.d.ts.map +1 -0
- package/dist/src/transfer/store/search.js +64 -96
- package/dist/src/transfer/store/search.js.map +1 -1
- package/dist/src/transfer/store/tests/standalone-test.js +174 -231
- package/dist/src/transfer/store/tests/standalone-test.js.map +1 -1
- package/dist/src/transfer/test-seraphine.js +95 -130
- package/dist/src/transfer/test-seraphine.js.map +1 -1
- package/dist/src/transfer/tests/test-store.js +194 -239
- package/dist/src/transfer/tests/test-store.js.map +1 -1
- package/dist/src/transfer/types.d.ts +245 -0
- package/dist/src/transfer/types.d.ts.map +1 -0
- package/dist/src/types.d.ts +198 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +26 -55
- package/dist/src/types.js.map +1 -1
- package/dist/src/update/checker.d.ts +34 -0
- package/dist/src/update/checker.d.ts.map +1 -0
- package/dist/src/update/checker.js +106 -183
- package/dist/src/update/checker.js.map +1 -1
- package/dist/src/update/executor.d.ts +32 -0
- package/dist/src/update/executor.d.ts.map +1 -0
- package/dist/src/update/executor.js +135 -198
- package/dist/src/update/executor.js.map +1 -1
- package/dist/src/update/index.d.ts +33 -0
- package/dist/src/update/index.d.ts.map +1 -0
- package/dist/src/update/index.js +38 -85
- package/dist/src/update/index.js.map +1 -1
- package/dist/src/update/rate-limiter.d.ts +20 -0
- package/dist/src/update/rate-limiter.d.ts.map +1 -0
- package/dist/src/update/rate-limiter.js +19 -31
- package/dist/src/update/rate-limiter.js.map +1 -1
- package/dist/src/update/validator.d.ts +17 -0
- package/dist/src/update/validator.d.ts.map +1 -0
- package/dist/src/update/validator.js +38 -64
- package/dist/src/update/validator.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -2,56 +2,20 @@
|
|
|
2
2
|
* V3 CLI Appliance Advanced Commands (Phase 3-4)
|
|
3
3
|
* Sign, publish, and hot-patch RVFA appliances.
|
|
4
4
|
*/
|
|
5
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
6
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
7
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
8
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
9
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
10
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
11
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
12
|
-
});
|
|
13
|
-
};
|
|
14
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
15
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
16
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
17
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
18
|
-
function step(op) {
|
|
19
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
20
|
-
while (_) try {
|
|
21
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
22
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
23
|
-
switch (op[0]) {
|
|
24
|
-
case 0: case 1: t = op; break;
|
|
25
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
26
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
27
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
28
|
-
default:
|
|
29
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
30
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
31
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
32
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
33
|
-
if (t[2]) _.ops.pop();
|
|
34
|
-
_.trys.pop(); continue;
|
|
35
|
-
}
|
|
36
|
-
op = body.call(thisArg, _);
|
|
37
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
38
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
5
|
import { output } from '../output.js';
|
|
42
6
|
function fmtSize(bytes) {
|
|
43
7
|
if (bytes < 1024)
|
|
44
|
-
return bytes
|
|
8
|
+
return `${bytes} B`;
|
|
45
9
|
if (bytes < 1024 * 1024)
|
|
46
|
-
return (bytes / 1024).toFixed(1)
|
|
10
|
+
return `${(bytes / 1024).toFixed(1)} KB`;
|
|
47
11
|
if (bytes < 1024 * 1024 * 1024)
|
|
48
|
-
return (bytes / (1024 * 1024)).toFixed(1)
|
|
49
|
-
return (bytes / (1024 * 1024 * 1024)).toFixed(2)
|
|
12
|
+
return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;
|
|
13
|
+
return `${(bytes / (1024 * 1024 * 1024)).toFixed(2)} GB`;
|
|
50
14
|
}
|
|
51
15
|
function errMsg(err) {
|
|
52
16
|
return err instanceof Error ? err.message : String(err);
|
|
53
17
|
}
|
|
54
|
-
|
|
18
|
+
const fail = (msg, detail) => {
|
|
55
19
|
output.printError(msg, detail);
|
|
56
20
|
return { success: false, exitCode: 1 };
|
|
57
21
|
};
|
|
@@ -61,106 +25,75 @@ function hdr(title) {
|
|
|
61
25
|
output.writeln(output.dim('─'.repeat(50)));
|
|
62
26
|
output.writeln();
|
|
63
27
|
}
|
|
64
|
-
function requireFile(file) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
fs = _a.sent();
|
|
72
|
-
if (!fs.existsSync(file)) {
|
|
73
|
-
output.printError("File not found: " + file);
|
|
74
|
-
return [2 /*return*/, false];
|
|
75
|
-
}
|
|
76
|
-
return [2 /*return*/, true];
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
});
|
|
28
|
+
async function requireFile(file) {
|
|
29
|
+
const fs = await import('fs');
|
|
30
|
+
if (!fs.existsSync(file)) {
|
|
31
|
+
output.printError(`File not found: ${file}`);
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
return true;
|
|
80
35
|
}
|
|
81
36
|
// SIGN
|
|
82
|
-
export
|
|
37
|
+
export const signCommand = {
|
|
83
38
|
name: 'sign',
|
|
84
39
|
description: 'Sign an RVFA appliance with Ed25519 for tamper detection',
|
|
85
40
|
options: [
|
|
86
41
|
{ name: 'file', short: 'f', type: 'string', description: 'Path to .rvf file', required: true },
|
|
87
42
|
{ name: 'key', short: 'k', type: 'string', description: 'Path to Ed25519 private key (PEM)' },
|
|
88
43
|
{ name: 'generate-keys', type: 'boolean', description: 'Generate a new key pair' },
|
|
89
|
-
{ name: 'key-dir', type: 'string', description: 'Directory for key storage',
|
|
44
|
+
{ name: 'key-dir', type: 'string', description: 'Directory for key storage', default: '.rvfa-keys' },
|
|
90
45
|
{ name: 'signer', type: 'string', description: 'Publisher name for signature metadata' },
|
|
91
46
|
],
|
|
92
|
-
action:
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
output.printSuccess("Private key: " + paths.privateKeyPath);
|
|
120
|
-
output.printInfo("Fingerprint: " + kp.fingerprint);
|
|
121
|
-
output.writeln(output.dim(' Keep the private key secure. Share only the public key.'));
|
|
122
|
-
output.writeln();
|
|
123
|
-
_a.label = 5;
|
|
124
|
-
case 5: return [4 /*yield*/, requireFile(file)];
|
|
125
|
-
case 6:
|
|
126
|
-
if (!(_a.sent()))
|
|
127
|
-
return [2 /*return*/, { success: false, exitCode: 1 }];
|
|
128
|
-
hdr('Signing RVFA Appliance');
|
|
129
|
-
privateKey = void 0;
|
|
130
|
-
if (!keyPath) return [3 /*break*/, 8];
|
|
131
|
-
return [4 /*yield*/, import('fs')];
|
|
132
|
-
case 7:
|
|
133
|
-
fs = _a.sent();
|
|
134
|
-
privateKey = fs.readFileSync(keyPath);
|
|
135
|
-
return [3 /*break*/, 10];
|
|
136
|
-
case 8: return [4 /*yield*/, signing.loadKeyPair(keyDir)];
|
|
137
|
-
case 9:
|
|
138
|
-
kp = _a.sent();
|
|
139
|
-
privateKey = kp.privateKey;
|
|
140
|
-
_a.label = 10;
|
|
141
|
-
case 10:
|
|
142
|
-
s = new signing.RvfaSigner(privateKey);
|
|
143
|
-
return [4 /*yield*/, s.signAppliance(file, signer)];
|
|
144
|
-
case 11:
|
|
145
|
-
meta = _a.sent();
|
|
146
|
-
output.printSuccess('Appliance signed successfully');
|
|
147
|
-
output.printInfo("Algorithm: " + meta.algorithm);
|
|
148
|
-
output.printInfo("Fingerprint: " + meta.publicKeyFingerprint);
|
|
149
|
-
output.printInfo("Signed at: " + meta.signedAt);
|
|
150
|
-
if (signer)
|
|
151
|
-
output.printInfo("Signed by: " + signer);
|
|
152
|
-
output.printInfo("Signature: " + meta.signature.slice(0, 32) + "...");
|
|
153
|
-
return [2 /*return*/, { success: true, data: meta }];
|
|
154
|
-
case 12:
|
|
155
|
-
err_1 = _a.sent();
|
|
156
|
-
return [2 /*return*/, fail('Signing failed', errMsg(err_1))];
|
|
157
|
-
case 13: return [2 /*return*/];
|
|
47
|
+
action: async (ctx) => {
|
|
48
|
+
const file = ctx.flags.file;
|
|
49
|
+
const keyPath = ctx.flags.key;
|
|
50
|
+
const genKeys = ctx.flags['generate-keys'];
|
|
51
|
+
const keyDir = ctx.flags['key-dir'] || '.rvfa-keys';
|
|
52
|
+
const signer = ctx.flags.signer;
|
|
53
|
+
if (!file)
|
|
54
|
+
return fail('--file is required');
|
|
55
|
+
try {
|
|
56
|
+
const signing = await import('../appliance/rvfa-signing.js');
|
|
57
|
+
if (genKeys) {
|
|
58
|
+
hdr('Generating Ed25519 Key Pair');
|
|
59
|
+
const kp = await signing.generateKeyPair();
|
|
60
|
+
const paths = await signing.saveKeyPair(kp, keyDir);
|
|
61
|
+
output.printSuccess(`Public key: ${paths.publicKeyPath}`);
|
|
62
|
+
output.printSuccess(`Private key: ${paths.privateKeyPath}`);
|
|
63
|
+
output.printInfo(`Fingerprint: ${kp.fingerprint}`);
|
|
64
|
+
output.writeln(output.dim(' Keep the private key secure. Share only the public key.'));
|
|
65
|
+
output.writeln();
|
|
66
|
+
}
|
|
67
|
+
if (!(await requireFile(file)))
|
|
68
|
+
return { success: false, exitCode: 1 };
|
|
69
|
+
hdr('Signing RVFA Appliance');
|
|
70
|
+
let privateKey;
|
|
71
|
+
if (keyPath) {
|
|
72
|
+
const fs = await import('fs');
|
|
73
|
+
privateKey = fs.readFileSync(keyPath);
|
|
158
74
|
}
|
|
159
|
-
|
|
160
|
-
|
|
75
|
+
else {
|
|
76
|
+
const kp = await signing.loadKeyPair(keyDir);
|
|
77
|
+
privateKey = kp.privateKey;
|
|
78
|
+
}
|
|
79
|
+
const s = new signing.RvfaSigner(privateKey);
|
|
80
|
+
const meta = await s.signAppliance(file, signer);
|
|
81
|
+
output.printSuccess('Appliance signed successfully');
|
|
82
|
+
output.printInfo(`Algorithm: ${meta.algorithm}`);
|
|
83
|
+
output.printInfo(`Fingerprint: ${meta.publicKeyFingerprint}`);
|
|
84
|
+
output.printInfo(`Signed at: ${meta.signedAt}`);
|
|
85
|
+
if (signer)
|
|
86
|
+
output.printInfo(`Signed by: ${signer}`);
|
|
87
|
+
output.printInfo(`Signature: ${meta.signature.slice(0, 32)}...`);
|
|
88
|
+
return { success: true, data: meta };
|
|
89
|
+
}
|
|
90
|
+
catch (err) {
|
|
91
|
+
return fail('Signing failed', errMsg(err));
|
|
92
|
+
}
|
|
93
|
+
},
|
|
161
94
|
};
|
|
162
95
|
// PUBLISH
|
|
163
|
-
export
|
|
96
|
+
export const publishCommand = {
|
|
164
97
|
name: 'publish',
|
|
165
98
|
description: 'Publish an RVFA appliance to IPFS via Pinata',
|
|
166
99
|
options: [
|
|
@@ -168,49 +101,35 @@ export var publishCommand = {
|
|
|
168
101
|
{ name: 'name', short: 'n', type: 'string', description: 'Publication name' },
|
|
169
102
|
{ name: 'description', type: 'string', description: 'Description' },
|
|
170
103
|
],
|
|
171
|
-
action:
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
case 4:
|
|
198
|
-
result = _a.sent();
|
|
199
|
-
output.printSuccess('Published successfully');
|
|
200
|
-
output.printInfo("CID: " + output.bold(result.cid));
|
|
201
|
-
output.printInfo("Size: " + fmtSize(result.size));
|
|
202
|
-
output.printInfo("Gateway: " + result.gatewayUrl);
|
|
203
|
-
return [2 /*return*/, { success: true, data: result }];
|
|
204
|
-
case 5:
|
|
205
|
-
err_2 = _a.sent();
|
|
206
|
-
return [2 /*return*/, fail('Publishing failed', errMsg(err_2))];
|
|
207
|
-
case 6: return [2 /*return*/];
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
}); }
|
|
104
|
+
action: async (ctx) => {
|
|
105
|
+
const file = ctx.flags.file;
|
|
106
|
+
if (!file)
|
|
107
|
+
return fail('--file is required');
|
|
108
|
+
if (!(await requireFile(file)))
|
|
109
|
+
return { success: false, exitCode: 1 };
|
|
110
|
+
try {
|
|
111
|
+
const dist = await import('../appliance/rvfa-distribution.js');
|
|
112
|
+
hdr('Publishing RVFA to IPFS');
|
|
113
|
+
output.printInfo(`File: ${file}`);
|
|
114
|
+
output.writeln();
|
|
115
|
+
const publisher = dist.createPublisher();
|
|
116
|
+
const result = await publisher.publish(file, {
|
|
117
|
+
name: ctx.flags.name,
|
|
118
|
+
description: ctx.flags.description,
|
|
119
|
+
});
|
|
120
|
+
output.printSuccess('Published successfully');
|
|
121
|
+
output.printInfo(`CID: ${output.bold(result.cid)}`);
|
|
122
|
+
output.printInfo(`Size: ${fmtSize(result.size)}`);
|
|
123
|
+
output.printInfo(`Gateway: ${result.gatewayUrl}`);
|
|
124
|
+
return { success: true, data: result };
|
|
125
|
+
}
|
|
126
|
+
catch (err) {
|
|
127
|
+
return fail('Publishing failed', errMsg(err));
|
|
128
|
+
}
|
|
129
|
+
},
|
|
211
130
|
};
|
|
212
131
|
// UPDATE (hot-patch)
|
|
213
|
-
export
|
|
132
|
+
export const updateAppCommand = {
|
|
214
133
|
name: 'update',
|
|
215
134
|
description: 'Hot-patch a section in an RVFA appliance',
|
|
216
135
|
options: [
|
|
@@ -218,107 +137,79 @@ export var updateAppCommand = {
|
|
|
218
137
|
{ name: 'section', short: 's', type: 'string', description: 'Section to patch (e.g. ruflo, models)', required: true },
|
|
219
138
|
{ name: 'patch', short: 'p', type: 'string', description: 'Path to .rvfp patch file' },
|
|
220
139
|
{ name: 'data', short: 'd', type: 'string', description: 'Path to new section data (creates patch automatically)' },
|
|
221
|
-
{ name: 'version', type: 'string', description: 'Patch version',
|
|
140
|
+
{ name: 'version', type: 'string', description: 'Patch version', default: '0.0.1' },
|
|
222
141
|
{ name: 'no-backup', type: 'boolean', description: 'Skip backup creation' },
|
|
223
142
|
{ name: 'public-key', type: 'string', description: 'Path to public key for patch verification' },
|
|
224
143
|
],
|
|
225
|
-
action:
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
case 11:
|
|
289
|
-
pubKey = void 0;
|
|
290
|
-
if (!ctx.flags['public-key']) return [3 /*break*/, 13];
|
|
291
|
-
pkPath = ctx.flags['public-key'];
|
|
292
|
-
return [4 /*yield*/, requireFile(pkPath)];
|
|
293
|
-
case 12:
|
|
294
|
-
if (!(_a.sent()))
|
|
295
|
-
return [2 /*return*/, { success: false, exitCode: 1 }];
|
|
296
|
-
pubKey = fs.readFileSync(pkPath);
|
|
297
|
-
_a.label = 13;
|
|
298
|
-
case 13: return [4 /*yield*/, dist.RvfaPatcher.applyPatch(file, patchBuf, {
|
|
299
|
-
backup: !ctx.flags['no-backup'],
|
|
300
|
-
verify: true,
|
|
301
|
-
publicKey: pubKey
|
|
302
|
-
})];
|
|
303
|
-
case 14:
|
|
304
|
-
result = _a.sent();
|
|
305
|
-
if (result.success) {
|
|
306
|
-
output.printSuccess("Section \"" + result.patchedSection + "\" updated successfully");
|
|
307
|
-
output.printInfo("New size: " + fmtSize(result.newSize));
|
|
308
|
-
if (result.backupPath)
|
|
309
|
-
output.printInfo("Backup: " + result.backupPath);
|
|
310
|
-
}
|
|
311
|
-
else {
|
|
312
|
-
output.printError('Patch failed');
|
|
313
|
-
result.errors.forEach(function (e) { return output.writeln(" " + output.error('X') + " " + e); });
|
|
314
|
-
}
|
|
315
|
-
return [2 /*return*/, { success: result.success, exitCode: result.success ? 0 : 1, data: result }];
|
|
316
|
-
case 15:
|
|
317
|
-
err_3 = _a.sent();
|
|
318
|
-
return [2 /*return*/, fail('Update failed', errMsg(err_3))];
|
|
319
|
-
case 16: return [2 /*return*/];
|
|
144
|
+
action: async (ctx) => {
|
|
145
|
+
const file = ctx.flags.file;
|
|
146
|
+
const section = ctx.flags.section;
|
|
147
|
+
const patchPath = ctx.flags.patch;
|
|
148
|
+
const dataPath = ctx.flags.data;
|
|
149
|
+
if (!file || !section)
|
|
150
|
+
return fail('--file and --section are required');
|
|
151
|
+
if (!patchPath && !dataPath)
|
|
152
|
+
return fail('Provide --patch (RVFP file) or --data (raw section data)');
|
|
153
|
+
if (!(await requireFile(file)))
|
|
154
|
+
return { success: false, exitCode: 1 };
|
|
155
|
+
try {
|
|
156
|
+
const dist = await import('../appliance/rvfa-distribution.js');
|
|
157
|
+
const { RvfaReader } = await import('../appliance/rvfa-format.js');
|
|
158
|
+
const fs = await import('fs');
|
|
159
|
+
hdr('RVFA Hot-Patch Update');
|
|
160
|
+
output.printInfo(`Appliance: ${file}`);
|
|
161
|
+
output.printInfo(`Section: ${section}`);
|
|
162
|
+
output.writeln();
|
|
163
|
+
let patchBuf;
|
|
164
|
+
if (patchPath) {
|
|
165
|
+
if (!(await requireFile(patchPath)))
|
|
166
|
+
return { success: false, exitCode: 1 };
|
|
167
|
+
patchBuf = fs.readFileSync(patchPath);
|
|
168
|
+
output.printInfo(`Patch file: ${patchPath} (${fmtSize(patchBuf.length)})`);
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
if (!(await requireFile(dataPath)))
|
|
172
|
+
return { success: false, exitCode: 1 };
|
|
173
|
+
const newData = fs.readFileSync(dataPath);
|
|
174
|
+
const reader = await RvfaReader.fromFile(file);
|
|
175
|
+
const appHdr = reader.getHeader();
|
|
176
|
+
output.printInfo(`Creating patch for section "${section}" (${fmtSize(newData.length)} new data)`);
|
|
177
|
+
patchBuf = await dist.RvfaPatcher.createPatch({
|
|
178
|
+
targetName: appHdr.name,
|
|
179
|
+
targetVersion: appHdr.appVersion,
|
|
180
|
+
sectionId: section,
|
|
181
|
+
sectionData: newData,
|
|
182
|
+
patchVersion: ctx.flags.version || '0.0.1',
|
|
183
|
+
compression: 'gzip',
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
let pubKey;
|
|
187
|
+
if (ctx.flags['public-key']) {
|
|
188
|
+
const pkPath = ctx.flags['public-key'];
|
|
189
|
+
if (!(await requireFile(pkPath)))
|
|
190
|
+
return { success: false, exitCode: 1 };
|
|
191
|
+
pubKey = fs.readFileSync(pkPath);
|
|
192
|
+
}
|
|
193
|
+
const result = await dist.RvfaPatcher.applyPatch(file, patchBuf, {
|
|
194
|
+
backup: !ctx.flags['no-backup'],
|
|
195
|
+
verify: true,
|
|
196
|
+
publicKey: pubKey,
|
|
197
|
+
});
|
|
198
|
+
if (result.success) {
|
|
199
|
+
output.printSuccess(`Section "${result.patchedSection}" updated successfully`);
|
|
200
|
+
output.printInfo(`New size: ${fmtSize(result.newSize)}`);
|
|
201
|
+
if (result.backupPath)
|
|
202
|
+
output.printInfo(`Backup: ${result.backupPath}`);
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
output.printError('Patch failed');
|
|
206
|
+
result.errors.forEach(e => output.writeln(` ${output.error('X')} ${e}`));
|
|
320
207
|
}
|
|
321
|
-
|
|
322
|
-
|
|
208
|
+
return { success: result.success, exitCode: result.success ? 0 : 1, data: result };
|
|
209
|
+
}
|
|
210
|
+
catch (err) {
|
|
211
|
+
return fail('Update failed', errMsg(err));
|
|
212
|
+
}
|
|
213
|
+
},
|
|
323
214
|
};
|
|
324
215
|
//# sourceMappingURL=appliance-advanced.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appliance-advanced.js","sourceRoot":"","sources":["../../../src/commands/appliance-advanced.ts"],"names":[],"mappings":"AAAA;;;GAGG
|
|
1
|
+
{"version":3,"file":"appliance-advanced.js","sourceRoot":"","sources":["../../../src/commands/appliance-advanced.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,SAAS,OAAO,CAAC,KAAa;IAC5B,IAAI,KAAK,GAAG,IAAI;QAAE,OAAO,GAAG,KAAK,IAAI,CAAC;IACtC,IAAI,KAAK,GAAG,IAAI,GAAG,IAAI;QAAE,OAAO,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC;IAClE,IAAI,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI;QAAE,OAAO,GAAG,CAAC,KAAK,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC;IAClF,OAAO,GAAG,CAAC,KAAK,GAAG,CAAC,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC;AAC3D,CAAC;AAED,SAAS,MAAM,CAA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