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
|
@@ -2,53 +2,6 @@
|
|
|
2
2
|
* Pattern Publish Service
|
|
3
3
|
* Publish and contribute patterns to decentralized registry
|
|
4
4
|
*/
|
|
5
|
-
var __assign = (this && this.__assign) || function () {
|
|
6
|
-
__assign = Object.assign || function(t) {
|
|
7
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
-
s = arguments[i];
|
|
9
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
-
t[p] = s[p];
|
|
11
|
-
}
|
|
12
|
-
return t;
|
|
13
|
-
};
|
|
14
|
-
return __assign.apply(this, arguments);
|
|
15
|
-
};
|
|
16
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
17
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
18
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
19
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
20
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
21
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
22
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
26
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
27
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
28
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
29
|
-
function step(op) {
|
|
30
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
31
|
-
while (_) try {
|
|
32
|
-
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;
|
|
33
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
34
|
-
switch (op[0]) {
|
|
35
|
-
case 0: case 1: t = op; break;
|
|
36
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
37
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
38
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
39
|
-
default:
|
|
40
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
41
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
42
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
43
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
44
|
-
if (t[2]) _.ops.pop();
|
|
45
|
-
_.trys.pop(); continue;
|
|
46
|
-
}
|
|
47
|
-
op = body.call(thisArg, _);
|
|
48
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
49
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
5
|
import * as fs from 'fs';
|
|
53
6
|
import * as crypto from 'crypto';
|
|
54
7
|
import { DEFAULT_STORE_CONFIG, generatePatternId } from './registry.js';
|
|
@@ -58,199 +11,186 @@ import { uploadToIPFS, pinContent } from '../ipfs/upload.js';
|
|
|
58
11
|
* Pattern Publisher
|
|
59
12
|
* Handles publishing patterns to IPFS and registry
|
|
60
13
|
*/
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
this.config =
|
|
14
|
+
export class PatternPublisher {
|
|
15
|
+
config;
|
|
16
|
+
constructor(config = {}) {
|
|
17
|
+
this.config = { ...DEFAULT_STORE_CONFIG, ...config };
|
|
65
18
|
}
|
|
66
19
|
/**
|
|
67
20
|
* Publish a pattern to IPFS and registry
|
|
68
21
|
*/
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
name: options.name + ".cfp.json",
|
|
108
|
-
metadata: {
|
|
109
|
-
checksum: checksum,
|
|
110
|
-
author: author.id,
|
|
111
|
-
version: cfp.version
|
|
112
|
-
}
|
|
113
|
-
})];
|
|
114
|
-
case 4:
|
|
115
|
-
gcsResult = _c.sent();
|
|
116
|
-
if (gcsResult.success) {
|
|
117
|
-
uploadCid = gcsResult.uri; // Use GCS URI as CID
|
|
118
|
-
gatewayUrl = gcsResult.publicUrl;
|
|
119
|
-
console.log("[Publish] Uploaded to GCS: " + gcsResult.uri);
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
throw new Error('GCS upload failed');
|
|
123
|
-
}
|
|
124
|
-
return [3 /*break*/, 6];
|
|
125
|
-
case 5: throw new Error('GCS not configured');
|
|
126
|
-
case 6: return [3 /*break*/, 10];
|
|
127
|
-
case 7:
|
|
128
|
-
_b = _c.sent();
|
|
129
|
-
// Fallback to IPFS
|
|
130
|
-
console.log("[Publish] Uploading to IPFS...");
|
|
131
|
-
return [4 /*yield*/, uploadToIPFS(contentBuffer, {
|
|
132
|
-
name: options.name + ".cfp.json",
|
|
133
|
-
pin: true
|
|
134
|
-
})];
|
|
135
|
-
case 8:
|
|
136
|
-
uploadResult = _c.sent();
|
|
137
|
-
if (!uploadResult.cid) {
|
|
138
|
-
return [2 /*return*/, {
|
|
139
|
-
success: false,
|
|
140
|
-
patternId: '',
|
|
141
|
-
cid: '',
|
|
142
|
-
registryCid: '',
|
|
143
|
-
gatewayUrl: '',
|
|
144
|
-
message: 'Failed to upload to IPFS (no IPFS credentials configured)'
|
|
145
|
-
}];
|
|
146
|
-
}
|
|
147
|
-
uploadCid = uploadResult.cid;
|
|
148
|
-
gatewayUrl = this.config.gateway + "/ipfs/" + uploadResult.cid;
|
|
149
|
-
console.log("[Publish] Uploaded to IPFS: " + uploadResult.cid);
|
|
150
|
-
// Pin content
|
|
151
|
-
return [4 /*yield*/, pinContent(uploadResult.cid)];
|
|
152
|
-
case 9:
|
|
153
|
-
// Pin content
|
|
154
|
-
_c.sent();
|
|
155
|
-
return [3 /*break*/, 10];
|
|
156
|
-
case 10:
|
|
157
|
-
patternId = generatePatternId(options.name);
|
|
158
|
-
patternEntry = {
|
|
159
|
-
id: patternId,
|
|
160
|
-
name: options.name,
|
|
161
|
-
displayName: options.displayName,
|
|
162
|
-
description: options.description,
|
|
22
|
+
async publishPattern(cfp, options) {
|
|
23
|
+
console.log(`[Publish] Starting publish: ${options.name}`);
|
|
24
|
+
try {
|
|
25
|
+
// Step 1: Anonymize if needed
|
|
26
|
+
const anonymized = anonymizeCFP(cfp, options.anonymize);
|
|
27
|
+
console.log(`[Publish] Anonymization level: ${options.anonymize}`);
|
|
28
|
+
// Step 2: Serialize content
|
|
29
|
+
const content = JSON.stringify(anonymized, null, 2);
|
|
30
|
+
const contentBuffer = Buffer.from(content);
|
|
31
|
+
// Step 3: Calculate checksum
|
|
32
|
+
const checksum = crypto
|
|
33
|
+
.createHash('sha256')
|
|
34
|
+
.update(contentBuffer)
|
|
35
|
+
.digest('hex');
|
|
36
|
+
// Step 4: Sign if private key provided
|
|
37
|
+
let signature;
|
|
38
|
+
let publicKey;
|
|
39
|
+
if (options.privateKeyPath && fs.existsSync(options.privateKeyPath)) {
|
|
40
|
+
const signResult = this.signContent(contentBuffer, options.privateKeyPath);
|
|
41
|
+
signature = signResult.signature;
|
|
42
|
+
publicKey = signResult.publicKey;
|
|
43
|
+
console.log(`[Publish] Content signed`);
|
|
44
|
+
}
|
|
45
|
+
// Get author info early (needed for GCS metadata and pattern entry)
|
|
46
|
+
const author = this.getAuthor();
|
|
47
|
+
// Step 5: Upload to IPFS or GCS
|
|
48
|
+
let uploadCid;
|
|
49
|
+
let gatewayUrl;
|
|
50
|
+
// Check if GCS is configured
|
|
51
|
+
try {
|
|
52
|
+
const { hasGCSCredentials, uploadToGCS } = await import('../storage/gcs.js');
|
|
53
|
+
if (hasGCSCredentials()) {
|
|
54
|
+
console.log(`[Publish] Uploading to Google Cloud Storage...`);
|
|
55
|
+
const gcsResult = await uploadToGCS(contentBuffer, {
|
|
56
|
+
name: `${options.name}.cfp.json`,
|
|
57
|
+
metadata: {
|
|
58
|
+
checksum,
|
|
59
|
+
author: author.id,
|
|
163
60
|
version: cfp.version,
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
rating: 0,
|
|
175
|
-
ratingCount: 0,
|
|
176
|
-
lastUpdated: new Date().toISOString(),
|
|
177
|
-
createdAt: new Date().toISOString(),
|
|
178
|
-
minClaudeFlowVersion: '3.0.0',
|
|
179
|
-
verified: author.verified,
|
|
180
|
-
trustLevel: author.verified ? 'verified' : 'community',
|
|
181
|
-
signature: signature,
|
|
182
|
-
publicKey: publicKey
|
|
183
|
-
};
|
|
184
|
-
// Step 7: Add to registry (in production: submit to registry maintainers)
|
|
185
|
-
console.log("[Publish] Pattern entry created: " + patternId);
|
|
186
|
-
return [2 /*return*/, {
|
|
187
|
-
success: true,
|
|
188
|
-
patternId: patternId,
|
|
189
|
-
cid: uploadCid,
|
|
190
|
-
registryCid: '',
|
|
191
|
-
gatewayUrl: gatewayUrl,
|
|
192
|
-
message: "Pattern '" + options.displayName + "' published successfully!"
|
|
193
|
-
}];
|
|
194
|
-
case 11:
|
|
195
|
-
error_1 = _c.sent();
|
|
196
|
-
console.error("[Publish] Failed:", error_1);
|
|
197
|
-
return [2 /*return*/, {
|
|
198
|
-
success: false,
|
|
199
|
-
patternId: '',
|
|
200
|
-
cid: '',
|
|
201
|
-
registryCid: '',
|
|
202
|
-
gatewayUrl: '',
|
|
203
|
-
message: "Publish failed: " + error_1
|
|
204
|
-
}];
|
|
205
|
-
case 12: return [2 /*return*/];
|
|
61
|
+
},
|
|
62
|
+
});
|
|
63
|
+
if (gcsResult.success) {
|
|
64
|
+
uploadCid = gcsResult.uri; // Use GCS URI as CID
|
|
65
|
+
gatewayUrl = gcsResult.publicUrl;
|
|
66
|
+
console.log(`[Publish] Uploaded to GCS: ${gcsResult.uri}`);
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
throw new Error('GCS upload failed');
|
|
70
|
+
}
|
|
206
71
|
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
72
|
+
else {
|
|
73
|
+
throw new Error('GCS not configured');
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
catch {
|
|
77
|
+
// Fallback to IPFS
|
|
78
|
+
console.log(`[Publish] Uploading to IPFS...`);
|
|
79
|
+
const uploadResult = await uploadToIPFS(contentBuffer, {
|
|
80
|
+
name: `${options.name}.cfp.json`,
|
|
81
|
+
pin: true,
|
|
82
|
+
});
|
|
83
|
+
if (!uploadResult.cid) {
|
|
84
|
+
return {
|
|
85
|
+
success: false,
|
|
86
|
+
patternId: '',
|
|
87
|
+
cid: '',
|
|
88
|
+
registryCid: '',
|
|
89
|
+
gatewayUrl: '',
|
|
90
|
+
message: 'Failed to upload to IPFS (no IPFS credentials configured)',
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
uploadCid = uploadResult.cid;
|
|
94
|
+
gatewayUrl = `${this.config.gateway}/ipfs/${uploadResult.cid}`;
|
|
95
|
+
console.log(`[Publish] Uploaded to IPFS: ${uploadResult.cid}`);
|
|
96
|
+
// Pin content
|
|
97
|
+
await pinContent(uploadResult.cid);
|
|
98
|
+
}
|
|
99
|
+
// Step 6: Create pattern entry
|
|
100
|
+
const patternId = generatePatternId(options.name);
|
|
101
|
+
const patternEntry = {
|
|
102
|
+
id: patternId,
|
|
103
|
+
name: options.name,
|
|
104
|
+
displayName: options.displayName,
|
|
105
|
+
description: options.description,
|
|
106
|
+
version: cfp.version,
|
|
107
|
+
cid: uploadCid,
|
|
108
|
+
size: contentBuffer.length,
|
|
109
|
+
checksum,
|
|
110
|
+
author,
|
|
111
|
+
license: options.license,
|
|
112
|
+
categories: options.categories,
|
|
113
|
+
tags: options.tags,
|
|
114
|
+
language: options.language,
|
|
115
|
+
framework: options.framework,
|
|
116
|
+
downloads: 0,
|
|
117
|
+
rating: 0,
|
|
118
|
+
ratingCount: 0,
|
|
119
|
+
lastUpdated: new Date().toISOString(),
|
|
120
|
+
createdAt: new Date().toISOString(),
|
|
121
|
+
minClaudeFlowVersion: '3.0.0',
|
|
122
|
+
verified: author.verified,
|
|
123
|
+
trustLevel: author.verified ? 'verified' : 'community',
|
|
124
|
+
signature,
|
|
125
|
+
publicKey,
|
|
126
|
+
};
|
|
127
|
+
// Step 7: Add to registry (in production: submit to registry maintainers)
|
|
128
|
+
console.log(`[Publish] Pattern entry created: ${patternId}`);
|
|
129
|
+
return {
|
|
130
|
+
success: true,
|
|
131
|
+
patternId,
|
|
132
|
+
cid: uploadCid,
|
|
133
|
+
registryCid: '', // Would be updated after registry update
|
|
134
|
+
gatewayUrl,
|
|
135
|
+
message: `Pattern '${options.displayName}' published successfully!`,
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
catch (error) {
|
|
139
|
+
console.error(`[Publish] Failed:`, error);
|
|
140
|
+
return {
|
|
141
|
+
success: false,
|
|
142
|
+
patternId: '',
|
|
143
|
+
cid: '',
|
|
144
|
+
registryCid: '',
|
|
145
|
+
gatewayUrl: '',
|
|
146
|
+
message: `Publish failed: ${error}`,
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
}
|
|
210
150
|
/**
|
|
211
151
|
* Sign content with private key
|
|
212
152
|
*/
|
|
213
|
-
|
|
153
|
+
signContent(content, privateKeyPath) {
|
|
214
154
|
// In production: Use actual Ed25519 signing
|
|
215
155
|
// For demo: Generate mock signature
|
|
216
|
-
|
|
217
|
-
|
|
156
|
+
const privateKey = fs.readFileSync(privateKeyPath, 'utf-8').trim();
|
|
157
|
+
const signature = crypto
|
|
218
158
|
.createHmac('sha256', privateKey)
|
|
219
159
|
.update(content)
|
|
220
160
|
.digest('hex');
|
|
221
|
-
|
|
161
|
+
const publicKey = 'ed25519:' +
|
|
222
162
|
crypto.createHash('sha256').update(privateKey).digest('hex').slice(0, 32);
|
|
223
163
|
return {
|
|
224
|
-
signature:
|
|
225
|
-
publicKey
|
|
164
|
+
signature: `ed25519:${signature}`,
|
|
165
|
+
publicKey,
|
|
226
166
|
};
|
|
227
|
-
}
|
|
167
|
+
}
|
|
228
168
|
/**
|
|
229
169
|
* Get current author info
|
|
230
170
|
*/
|
|
231
|
-
|
|
171
|
+
getAuthor() {
|
|
232
172
|
if (this.config.authorId) {
|
|
233
173
|
return {
|
|
234
174
|
id: this.config.authorId,
|
|
235
175
|
displayName: this.config.authorId,
|
|
236
176
|
verified: false,
|
|
237
177
|
patterns: 0,
|
|
238
|
-
totalDownloads: 0
|
|
178
|
+
totalDownloads: 0,
|
|
239
179
|
};
|
|
240
180
|
}
|
|
241
181
|
// Anonymous author
|
|
242
182
|
return {
|
|
243
|
-
id:
|
|
183
|
+
id: `anon-${crypto.randomBytes(8).toString('hex')}`,
|
|
244
184
|
verified: false,
|
|
245
185
|
patterns: 0,
|
|
246
|
-
totalDownloads: 0
|
|
186
|
+
totalDownloads: 0,
|
|
247
187
|
};
|
|
248
|
-
}
|
|
188
|
+
}
|
|
249
189
|
/**
|
|
250
190
|
* Validate pattern before publish
|
|
251
191
|
*/
|
|
252
|
-
|
|
253
|
-
|
|
192
|
+
validateForPublish(cfp, options) {
|
|
193
|
+
const errors = [];
|
|
254
194
|
// Check required fields
|
|
255
195
|
if (!options.name || options.name.length < 3) {
|
|
256
196
|
errors.push('Name must be at least 3 characters');
|
|
@@ -268,24 +208,24 @@ var PatternPublisher = /** @class */ (function () {
|
|
|
268
208
|
errors.push('At least 3 tags are required');
|
|
269
209
|
}
|
|
270
210
|
// Check valid license
|
|
271
|
-
|
|
211
|
+
const validLicenses = ['MIT', 'Apache-2.0', 'GPL-3.0', 'BSD-3-Clause', 'CC-BY-4.0', 'Unlicense'];
|
|
272
212
|
if (!validLicenses.includes(options.license)) {
|
|
273
|
-
errors.push(
|
|
213
|
+
errors.push(`License must be one of: ${validLicenses.join(', ')}`);
|
|
274
214
|
}
|
|
275
215
|
// Check pattern content
|
|
276
216
|
if (cfp.magic !== 'CFP1') {
|
|
277
217
|
errors.push('Invalid CFP format (missing magic header)');
|
|
278
218
|
}
|
|
279
|
-
|
|
219
|
+
const totalPatterns = cfp.statistics.totalPatterns;
|
|
280
220
|
if (totalPatterns === 0) {
|
|
281
221
|
errors.push('Pattern must contain at least one pattern');
|
|
282
222
|
}
|
|
283
223
|
return errors;
|
|
284
|
-
}
|
|
224
|
+
}
|
|
285
225
|
/**
|
|
286
226
|
* Create publish preview
|
|
287
227
|
*/
|
|
288
|
-
|
|
228
|
+
createPreview(cfp, options) {
|
|
289
229
|
return {
|
|
290
230
|
name: options.name,
|
|
291
231
|
displayName: options.displayName,
|
|
@@ -297,46 +237,37 @@ var PatternPublisher = /** @class */ (function () {
|
|
|
297
237
|
framework: options.framework,
|
|
298
238
|
anonymization: options.anonymize,
|
|
299
239
|
statistics: cfp.statistics,
|
|
300
|
-
estimatedSize: JSON.stringify(cfp).length
|
|
240
|
+
estimatedSize: JSON.stringify(cfp).length,
|
|
301
241
|
};
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
}());
|
|
305
|
-
export { PatternPublisher };
|
|
242
|
+
}
|
|
243
|
+
}
|
|
306
244
|
/**
|
|
307
245
|
* Submit a contribution to the registry
|
|
308
246
|
*/
|
|
309
|
-
export function submitContribution(request) {
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
}];
|
|
323
|
-
});
|
|
324
|
-
});
|
|
247
|
+
export async function submitContribution(request) {
|
|
248
|
+
console.log(`[Contribute] Submitting contribution: ${request.name}`);
|
|
249
|
+
// In production: Submit to registry governance system
|
|
250
|
+
// For demo: Generate mock submission ID
|
|
251
|
+
const submissionId = `contrib-${crypto.randomBytes(8).toString('hex')}`;
|
|
252
|
+
console.log(`[Contribute] Submission ID: ${submissionId}`);
|
|
253
|
+
console.log(`[Contribute] Pattern CID: ${request.patternCid}`);
|
|
254
|
+
console.log(`[Contribute] Author: ${request.authorId}`);
|
|
255
|
+
return {
|
|
256
|
+
success: true,
|
|
257
|
+
submissionId,
|
|
258
|
+
message: `Contribution submitted for review. Track status with ID: ${submissionId}`,
|
|
259
|
+
};
|
|
325
260
|
}
|
|
326
261
|
/**
|
|
327
262
|
* Check contribution status
|
|
328
263
|
*/
|
|
329
|
-
export function checkContributionStatus(submissionId) {
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
message: 'Your contribution is pending review'
|
|
337
|
-
}];
|
|
338
|
-
});
|
|
339
|
-
});
|
|
264
|
+
export async function checkContributionStatus(submissionId) {
|
|
265
|
+
// In production: Query registry governance system
|
|
266
|
+
// For demo: Return mock status
|
|
267
|
+
return {
|
|
268
|
+
status: 'pending',
|
|
269
|
+
message: 'Your contribution is pending review',
|
|
270
|
+
};
|
|
340
271
|
}
|
|
341
272
|
/**
|
|
342
273
|
* Create publisher with default config
|
|
@@ -347,22 +278,17 @@ export function createPublisher(config) {
|
|
|
347
278
|
/**
|
|
348
279
|
* Quick publish helper
|
|
349
280
|
*/
|
|
350
|
-
export function quickPublish(cfp, name, description, tags, config) {
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
anonymize: 'standard'
|
|
363
|
-
};
|
|
364
|
-
return [2 /*return*/, publisher.publishPattern(cfp, options)];
|
|
365
|
-
});
|
|
366
|
-
});
|
|
281
|
+
export async function quickPublish(cfp, name, description, tags, config) {
|
|
282
|
+
const publisher = new PatternPublisher(config);
|
|
283
|
+
const options = {
|
|
284
|
+
name,
|
|
285
|
+
displayName: name.replace(/-/g, ' ').replace(/\b\w/g, c => c.toUpperCase()),
|
|
286
|
+
description,
|
|
287
|
+
categories: ['custom'],
|
|
288
|
+
tags,
|
|
289
|
+
license: 'MIT',
|
|
290
|
+
anonymize: 'standard',
|
|
291
|
+
};
|
|
292
|
+
return publisher.publishPattern(cfp, options);
|
|
367
293
|
}
|
|
368
294
|
//# sourceMappingURL=publish.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publish.js","sourceRoot":"","sources":["../../../../src/transfer/store/publish.ts"],"names":[],"mappings":"AAAA;;;GAGG
|
|
1
|
+
{"version":3,"file":"publish.js","sourceRoot":"","sources":["../../../../src/transfer/store/publish.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AAEzB,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AASjC,OAAO,EAAE,oBAAoB,EAAwB,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAE9F,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE7D;;;G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