agentic-qe 3.6.19 → 3.7.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/.claude/skills/pr-review/SKILL.md +1 -1
- package/.claude/skills/skills-manifest.json +6 -6
- package/README.md +43 -7
- package/package.json +3 -2
- package/scripts/generate-opencode-agents.ts +523 -0
- package/scripts/generate-opencode-skills.ts +318 -0
- package/scripts/rvf-baseline-benchmark.ts +843 -0
- package/v3/CHANGELOG.md +56 -0
- package/v3/README.md +7 -7
- package/v3/assets/skills/pr-review/SKILL.md +1 -1
- package/v3/dist/adapters/a2a/notifications/retry-queue.d.ts.map +1 -1
- package/v3/dist/adapters/a2a/notifications/retry-queue.js +2 -1
- package/v3/dist/adapters/a2a/notifications/retry-queue.js.map +1 -1
- package/v3/dist/adapters/a2a/notifications/subscription-store.d.ts.map +1 -1
- package/v3/dist/adapters/a2a/notifications/subscription-store.js +2 -1
- package/v3/dist/adapters/a2a/notifications/subscription-store.js.map +1 -1
- package/v3/dist/adapters/a2a/tasks/task-manager.d.ts.map +1 -1
- package/v3/dist/adapters/a2a/tasks/task-manager.js +4 -3
- package/v3/dist/adapters/a2a/tasks/task-manager.js.map +1 -1
- package/v3/dist/agents/claim-verifier/index.d.ts.map +1 -1
- package/v3/dist/agents/claim-verifier/index.js +2 -1
- package/v3/dist/agents/claim-verifier/index.js.map +1 -1
- package/v3/dist/audit/witness-chain.d.ts +148 -0
- package/v3/dist/audit/witness-chain.d.ts.map +1 -0
- package/v3/dist/audit/witness-chain.js +269 -0
- package/v3/dist/audit/witness-chain.js.map +1 -0
- package/v3/dist/cli/brain-commands.d.ts +39 -0
- package/v3/dist/cli/brain-commands.d.ts.map +1 -0
- package/v3/dist/cli/brain-commands.js +60 -0
- package/v3/dist/cli/brain-commands.js.map +1 -0
- package/v3/dist/cli/bundle.js +6790 -3274
- package/v3/dist/cli/command-registry.d.ts.map +1 -1
- package/v3/dist/cli/command-registry.js +3 -1
- package/v3/dist/cli/command-registry.js.map +1 -1
- package/v3/dist/cli/commands/hooks.d.ts.map +1 -1
- package/v3/dist/cli/commands/hooks.js +17 -2
- package/v3/dist/cli/commands/hooks.js.map +1 -1
- package/v3/dist/cli/commands/init.d.ts.map +1 -1
- package/v3/dist/cli/commands/init.js +2 -0
- package/v3/dist/cli/commands/init.js.map +1 -1
- package/v3/dist/cli/commands/learning-helpers.d.ts.map +1 -1
- package/v3/dist/cli/commands/learning-helpers.js +11 -0
- package/v3/dist/cli/commands/learning-helpers.js.map +1 -1
- package/v3/dist/cli/handlers/brain-handler.d.ts +22 -0
- package/v3/dist/cli/handlers/brain-handler.d.ts.map +1 -0
- package/v3/dist/cli/handlers/brain-handler.js +148 -0
- package/v3/dist/cli/handlers/brain-handler.js.map +1 -0
- package/v3/dist/cli/handlers/index.d.ts +1 -0
- package/v3/dist/cli/handlers/index.d.ts.map +1 -1
- package/v3/dist/cli/handlers/index.js +1 -0
- package/v3/dist/cli/handlers/index.js.map +1 -1
- package/v3/dist/cli/handlers/init-handler.d.ts +1 -0
- package/v3/dist/cli/handlers/init-handler.d.ts.map +1 -1
- package/v3/dist/cli/handlers/init-handler.js +3 -0
- package/v3/dist/cli/handlers/init-handler.js.map +1 -1
- package/v3/dist/cli/scheduler/persistent-scheduler.d.ts.map +1 -1
- package/v3/dist/cli/scheduler/persistent-scheduler.js +2 -1
- package/v3/dist/cli/scheduler/persistent-scheduler.js.map +1 -1
- package/v3/dist/coordination/consensus/consensus-engine.d.ts.map +1 -1
- package/v3/dist/coordination/consensus/consensus-engine.js +2 -1
- package/v3/dist/coordination/consensus/consensus-engine.js.map +1 -1
- package/v3/dist/coordination/cross-domain-router.d.ts.map +1 -1
- package/v3/dist/coordination/cross-domain-router.js +7 -8
- package/v3/dist/coordination/cross-domain-router.js.map +1 -1
- package/v3/dist/coordination/handlers/code-intelligence-handlers.d.ts +9 -0
- package/v3/dist/coordination/handlers/code-intelligence-handlers.d.ts.map +1 -0
- package/v3/dist/coordination/handlers/code-intelligence-handlers.js +203 -0
- package/v3/dist/coordination/handlers/code-intelligence-handlers.js.map +1 -0
- package/v3/dist/coordination/handlers/coverage-handlers.d.ts +9 -0
- package/v3/dist/coordination/handlers/coverage-handlers.d.ts.map +1 -0
- package/v3/dist/coordination/handlers/coverage-handlers.js +120 -0
- package/v3/dist/coordination/handlers/coverage-handlers.js.map +1 -0
- package/v3/dist/coordination/handlers/handler-types.d.ts +35 -0
- package/v3/dist/coordination/handlers/handler-types.d.ts.map +1 -0
- package/v3/dist/coordination/handlers/handler-types.js +8 -0
- package/v3/dist/coordination/handlers/handler-types.js.map +1 -0
- package/v3/dist/coordination/handlers/handler-utils.d.ts +106 -0
- package/v3/dist/coordination/handlers/handler-utils.d.ts.map +1 -0
- package/v3/dist/coordination/handlers/handler-utils.js +480 -0
- package/v3/dist/coordination/handlers/handler-utils.js.map +1 -0
- package/v3/dist/coordination/handlers/index.d.ts +15 -0
- package/v3/dist/coordination/handlers/index.d.ts.map +1 -0
- package/v3/dist/coordination/handlers/index.js +14 -0
- package/v3/dist/coordination/handlers/index.js.map +1 -0
- package/v3/dist/coordination/handlers/misc-handlers.d.ts +9 -0
- package/v3/dist/coordination/handlers/misc-handlers.d.ts.map +1 -0
- package/v3/dist/coordination/handlers/misc-handlers.js +64 -0
- package/v3/dist/coordination/handlers/misc-handlers.js.map +1 -0
- package/v3/dist/coordination/handlers/quality-handlers.d.ts +9 -0
- package/v3/dist/coordination/handlers/quality-handlers.d.ts.map +1 -0
- package/v3/dist/coordination/handlers/quality-handlers.js +83 -0
- package/v3/dist/coordination/handlers/quality-handlers.js.map +1 -0
- package/v3/dist/coordination/handlers/requirements-handlers.d.ts +9 -0
- package/v3/dist/coordination/handlers/requirements-handlers.d.ts.map +1 -0
- package/v3/dist/coordination/handlers/requirements-handlers.js +95 -0
- package/v3/dist/coordination/handlers/requirements-handlers.js.map +1 -0
- package/v3/dist/coordination/handlers/security-handlers.d.ts +9 -0
- package/v3/dist/coordination/handlers/security-handlers.d.ts.map +1 -0
- package/v3/dist/coordination/handlers/security-handlers.js +255 -0
- package/v3/dist/coordination/handlers/security-handlers.js.map +1 -0
- package/v3/dist/coordination/handlers/test-execution-handlers.d.ts +9 -0
- package/v3/dist/coordination/handlers/test-execution-handlers.d.ts.map +1 -0
- package/v3/dist/coordination/handlers/test-execution-handlers.js +153 -0
- package/v3/dist/coordination/handlers/test-execution-handlers.js.map +1 -0
- package/v3/dist/coordination/queen-coordinator.d.ts.map +1 -1
- package/v3/dist/coordination/queen-coordinator.js +28 -25
- package/v3/dist/coordination/queen-coordinator.js.map +1 -1
- package/v3/dist/coordination/task-executor.d.ts +25 -9
- package/v3/dist/coordination/task-executor.d.ts.map +1 -1
- package/v3/dist/coordination/task-executor.js +38 -1352
- package/v3/dist/coordination/task-executor.js.map +1 -1
- package/v3/dist/domains/code-intelligence/services/metric-collector/loc-counter.js +15 -9
- package/v3/dist/domains/code-intelligence/services/metric-collector/loc-counter.js.map +1 -1
- package/v3/dist/domains/coverage-analysis/services/hnsw-index.d.ts +31 -44
- package/v3/dist/domains/coverage-analysis/services/hnsw-index.d.ts.map +1 -1
- package/v3/dist/domains/coverage-analysis/services/hnsw-index.js +73 -178
- package/v3/dist/domains/coverage-analysis/services/hnsw-index.js.map +1 -1
- package/v3/dist/domains/defect-intelligence/services/causal-root-cause-analyzer.d.ts.map +1 -1
- package/v3/dist/domains/defect-intelligence/services/causal-root-cause-analyzer.js +2 -1
- package/v3/dist/domains/defect-intelligence/services/causal-root-cause-analyzer.js.map +1 -1
- package/v3/dist/domains/quality-assessment/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/quality-assessment/coordinator.js +8 -0
- package/v3/dist/domains/quality-assessment/coordinator.js.map +1 -1
- package/v3/dist/domains/requirements-validation/services/product-factors-assessment/types/index.d.ts.map +1 -1
- package/v3/dist/domains/requirements-validation/services/product-factors-assessment/types/index.js +2 -1
- package/v3/dist/domains/requirements-validation/services/product-factors-assessment/types/index.js.map +1 -1
- package/v3/dist/domains/test-execution/coordinator.d.ts +14 -0
- package/v3/dist/domains/test-execution/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/coordinator.js +18 -0
- package/v3/dist/domains/test-execution/coordinator.js.map +1 -1
- package/v3/dist/domains/test-execution/services/index.d.ts +1 -0
- package/v3/dist/domains/test-execution/services/index.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/services/index.js +1 -0
- package/v3/dist/domains/test-execution/services/index.js.map +1 -1
- package/v3/dist/domains/test-execution/services/mincut-test-optimizer.d.ts +118 -0
- package/v3/dist/domains/test-execution/services/mincut-test-optimizer.d.ts.map +1 -0
- package/v3/dist/domains/test-execution/services/mincut-test-optimizer.js +358 -0
- package/v3/dist/domains/test-execution/services/mincut-test-optimizer.js.map +1 -0
- package/v3/dist/domains/test-execution/types/e2e-step.types.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/types/e2e-step.types.js +2 -1
- package/v3/dist/domains/test-execution/types/e2e-step.types.js.map +1 -1
- package/v3/dist/feedback/coverage-learner.d.ts.map +1 -1
- package/v3/dist/feedback/coverage-learner.js +2 -1
- package/v3/dist/feedback/coverage-learner.js.map +1 -1
- package/v3/dist/init/opencode-installer.d.ts +67 -0
- package/v3/dist/init/opencode-installer.d.ts.map +1 -0
- package/v3/dist/init/opencode-installer.js +267 -0
- package/v3/dist/init/opencode-installer.js.map +1 -0
- package/v3/dist/init/orchestrator.d.ts.map +1 -1
- package/v3/dist/init/orchestrator.js +1 -0
- package/v3/dist/init/orchestrator.js.map +1 -1
- package/v3/dist/init/phases/09-assets.d.ts +2 -0
- package/v3/dist/init/phases/09-assets.d.ts.map +1 -1
- package/v3/dist/init/phases/09-assets.js +26 -0
- package/v3/dist/init/phases/09-assets.js.map +1 -1
- package/v3/dist/init/phases/phase-interface.d.ts +2 -0
- package/v3/dist/init/phases/phase-interface.d.ts.map +1 -1
- package/v3/dist/init/phases/phase-interface.js.map +1 -1
- package/v3/dist/integrations/agentic-flow/onnx-embeddings/adapter.d.ts.map +1 -1
- package/v3/dist/integrations/agentic-flow/onnx-embeddings/adapter.js +2 -1
- package/v3/dist/integrations/agentic-flow/onnx-embeddings/adapter.js.map +1 -1
- package/v3/dist/integrations/n8n/agent-factory.d.ts.map +1 -1
- package/v3/dist/integrations/n8n/agent-factory.js +2 -1
- package/v3/dist/integrations/n8n/agent-factory.js.map +1 -1
- package/v3/dist/integrations/rl-suite/sona.d.ts.map +1 -1
- package/v3/dist/integrations/rl-suite/sona.js +2 -1
- package/v3/dist/integrations/rl-suite/sona.js.map +1 -1
- package/v3/dist/integrations/ruvector/brain-exporter.d.ts +66 -0
- package/v3/dist/integrations/ruvector/brain-exporter.d.ts.map +1 -0
- package/v3/dist/integrations/ruvector/brain-exporter.js +538 -0
- package/v3/dist/integrations/ruvector/brain-exporter.js.map +1 -0
- package/v3/dist/integrations/ruvector/hypergraph-schema.d.ts.map +1 -1
- package/v3/dist/integrations/ruvector/hypergraph-schema.js +7 -0
- package/v3/dist/integrations/ruvector/hypergraph-schema.js.map +1 -1
- package/v3/dist/integrations/ruvector/index.d.ts +5 -0
- package/v3/dist/integrations/ruvector/index.d.ts.map +1 -1
- package/v3/dist/integrations/ruvector/index.js +6 -0
- package/v3/dist/integrations/ruvector/index.js.map +1 -1
- package/v3/dist/integrations/ruvector/mincut-wrapper.d.ts +204 -0
- package/v3/dist/integrations/ruvector/mincut-wrapper.d.ts.map +1 -0
- package/v3/dist/integrations/ruvector/mincut-wrapper.js +310 -0
- package/v3/dist/integrations/ruvector/mincut-wrapper.js.map +1 -0
- package/v3/dist/integrations/ruvector/rvf-dual-writer.d.ts +141 -0
- package/v3/dist/integrations/ruvector/rvf-dual-writer.d.ts.map +1 -0
- package/v3/dist/integrations/ruvector/rvf-dual-writer.js +367 -0
- package/v3/dist/integrations/ruvector/rvf-dual-writer.js.map +1 -0
- package/v3/dist/integrations/ruvector/rvf-native-adapter.d.ts +60 -0
- package/v3/dist/integrations/ruvector/rvf-native-adapter.d.ts.map +1 -0
- package/v3/dist/integrations/ruvector/rvf-native-adapter.js +240 -0
- package/v3/dist/integrations/ruvector/rvf-native-adapter.js.map +1 -0
- package/v3/dist/integrations/ruvector/shared-rvf-dual-writer.d.ts +41 -0
- package/v3/dist/integrations/ruvector/shared-rvf-dual-writer.d.ts.map +1 -0
- package/v3/dist/integrations/ruvector/shared-rvf-dual-writer.js +122 -0
- package/v3/dist/integrations/ruvector/shared-rvf-dual-writer.js.map +1 -0
- package/v3/dist/integrations/ruvector/sona-wrapper.d.ts.map +1 -1
- package/v3/dist/integrations/ruvector/sona-wrapper.js +2 -1
- package/v3/dist/integrations/ruvector/sona-wrapper.js.map +1 -1
- package/v3/dist/integrations/vibium/client.d.ts.map +1 -1
- package/v3/dist/integrations/vibium/client.js +2 -1
- package/v3/dist/integrations/vibium/client.js.map +1 -1
- package/v3/dist/integrations/vibium/fallback.d.ts.map +1 -1
- package/v3/dist/integrations/vibium/fallback.js +2 -1
- package/v3/dist/integrations/vibium/fallback.js.map +1 -1
- package/v3/dist/kernel/hnsw-adapter.d.ts +99 -0
- package/v3/dist/kernel/hnsw-adapter.d.ts.map +1 -0
- package/v3/dist/kernel/hnsw-adapter.js +218 -0
- package/v3/dist/kernel/hnsw-adapter.js.map +1 -0
- package/v3/dist/kernel/hnsw-index-provider.d.ts +90 -0
- package/v3/dist/kernel/hnsw-index-provider.d.ts.map +1 -0
- package/v3/dist/kernel/hnsw-index-provider.js +23 -0
- package/v3/dist/kernel/hnsw-index-provider.js.map +1 -0
- package/v3/dist/kernel/kernel.d.ts.map +1 -1
- package/v3/dist/kernel/kernel.js +2 -1
- package/v3/dist/kernel/kernel.js.map +1 -1
- package/v3/dist/kernel/progressive-hnsw-backend.d.ts +67 -0
- package/v3/dist/kernel/progressive-hnsw-backend.d.ts.map +1 -0
- package/v3/dist/kernel/progressive-hnsw-backend.js +266 -0
- package/v3/dist/kernel/progressive-hnsw-backend.js.map +1 -0
- package/v3/dist/kernel/unified-memory-hnsw.d.ts +71 -0
- package/v3/dist/kernel/unified-memory-hnsw.d.ts.map +1 -1
- package/v3/dist/kernel/unified-memory-hnsw.js +87 -0
- package/v3/dist/kernel/unified-memory-hnsw.js.map +1 -1
- package/v3/dist/kernel/unified-memory-schemas.d.ts +1 -0
- package/v3/dist/kernel/unified-memory-schemas.d.ts.map +1 -1
- package/v3/dist/kernel/unified-memory-schemas.js +16 -0
- package/v3/dist/kernel/unified-memory-schemas.js.map +1 -1
- package/v3/dist/kernel/unified-memory.d.ts.map +1 -1
- package/v3/dist/kernel/unified-memory.js +19 -9
- package/v3/dist/kernel/unified-memory.js.map +1 -1
- package/v3/dist/learning/aqe-learning-engine.d.ts.map +1 -1
- package/v3/dist/learning/aqe-learning-engine.js +14 -2
- package/v3/dist/learning/aqe-learning-engine.js.map +1 -1
- package/v3/dist/learning/dream/concept-graph.d.ts +10 -5
- package/v3/dist/learning/dream/concept-graph.d.ts.map +1 -1
- package/v3/dist/learning/dream/concept-graph.js +77 -25
- package/v3/dist/learning/dream/concept-graph.js.map +1 -1
- package/v3/dist/learning/dream/dream-engine.d.ts +16 -0
- package/v3/dist/learning/dream/dream-engine.d.ts.map +1 -1
- package/v3/dist/learning/dream/dream-engine.js +107 -29
- package/v3/dist/learning/dream/dream-engine.js.map +1 -1
- package/v3/dist/learning/dream/index.d.ts +2 -0
- package/v3/dist/learning/dream/index.d.ts.map +1 -1
- package/v3/dist/learning/dream/index.js +8 -0
- package/v3/dist/learning/dream/index.js.map +1 -1
- package/v3/dist/learning/dream/insight-generator.d.ts.map +1 -1
- package/v3/dist/learning/dream/insight-generator.js +2 -1
- package/v3/dist/learning/dream/insight-generator.js.map +1 -1
- package/v3/dist/learning/dream/rvcow-branch-manager.d.ts +170 -0
- package/v3/dist/learning/dream/rvcow-branch-manager.d.ts.map +1 -0
- package/v3/dist/learning/dream/rvcow-branch-manager.js +263 -0
- package/v3/dist/learning/dream/rvcow-branch-manager.js.map +1 -0
- package/v3/dist/learning/dream/speculative-dreamer.d.ts +129 -0
- package/v3/dist/learning/dream/speculative-dreamer.d.ts.map +1 -0
- package/v3/dist/learning/dream/speculative-dreamer.js +214 -0
- package/v3/dist/learning/dream/speculative-dreamer.js.map +1 -0
- package/v3/dist/learning/dream/spreading-activation.d.ts +1 -1
- package/v3/dist/learning/dream/spreading-activation.d.ts.map +1 -1
- package/v3/dist/learning/dream/spreading-activation.js +13 -5
- package/v3/dist/learning/dream/spreading-activation.js.map +1 -1
- package/v3/dist/learning/memory-auditor.d.ts.map +1 -1
- package/v3/dist/learning/memory-auditor.js +7 -4
- package/v3/dist/learning/memory-auditor.js.map +1 -1
- package/v3/dist/learning/qe-reasoning-bank.d.ts +9 -0
- package/v3/dist/learning/qe-reasoning-bank.d.ts.map +1 -1
- package/v3/dist/learning/qe-reasoning-bank.js +50 -1
- package/v3/dist/learning/qe-reasoning-bank.js.map +1 -1
- package/v3/dist/learning/real-embeddings.d.ts.map +1 -1
- package/v3/dist/learning/real-embeddings.js +26 -1
- package/v3/dist/learning/real-embeddings.js.map +1 -1
- package/v3/dist/learning/real-qe-reasoning-bank.d.ts.map +1 -1
- package/v3/dist/learning/real-qe-reasoning-bank.js +13 -2
- package/v3/dist/learning/real-qe-reasoning-bank.js.map +1 -1
- package/v3/dist/learning/sqlite-persistence.d.ts +5 -0
- package/v3/dist/learning/sqlite-persistence.d.ts.map +1 -1
- package/v3/dist/learning/sqlite-persistence.js +47 -7
- package/v3/dist/learning/sqlite-persistence.js.map +1 -1
- package/v3/dist/mcp/bundle.js +5837 -2932
- package/v3/dist/mcp/connection-pool.d.ts.map +1 -1
- package/v3/dist/mcp/connection-pool.js +3 -2
- package/v3/dist/mcp/connection-pool.js.map +1 -1
- package/v3/dist/mcp/entry.js +12 -0
- package/v3/dist/mcp/entry.js.map +1 -1
- package/v3/dist/mcp/handlers/core-handlers.d.ts +28 -0
- package/v3/dist/mcp/handlers/core-handlers.d.ts.map +1 -1
- package/v3/dist/mcp/handlers/core-handlers.js +117 -0
- package/v3/dist/mcp/handlers/core-handlers.js.map +1 -1
- package/v3/dist/mcp/handlers/index.d.ts +1 -1
- package/v3/dist/mcp/handlers/index.d.ts.map +1 -1
- package/v3/dist/mcp/handlers/index.js +1 -1
- package/v3/dist/mcp/handlers/index.js.map +1 -1
- package/v3/dist/mcp/http-server.d.ts.map +1 -1
- package/v3/dist/mcp/http-server.js +12 -9
- package/v3/dist/mcp/http-server.js.map +1 -1
- package/v3/dist/mcp/middleware/output-compaction.d.ts +45 -0
- package/v3/dist/mcp/middleware/output-compaction.d.ts.map +1 -0
- package/v3/dist/mcp/middleware/output-compaction.js +279 -0
- package/v3/dist/mcp/middleware/output-compaction.js.map +1 -0
- package/v3/dist/mcp/protocol-server.d.ts.map +1 -1
- package/v3/dist/mcp/protocol-server.js +53 -41
- package/v3/dist/mcp/protocol-server.js.map +1 -1
- package/v3/dist/mcp/security/sampling-server.js +2 -2
- package/v3/dist/mcp/security/sampling-server.js.map +1 -1
- package/v3/dist/mcp/services/mincut-routing-service.d.ts +148 -0
- package/v3/dist/mcp/services/mincut-routing-service.d.ts.map +1 -0
- package/v3/dist/mcp/services/mincut-routing-service.js +198 -0
- package/v3/dist/mcp/services/mincut-routing-service.js.map +1 -0
- package/v3/dist/mcp/services/reasoning-bank-service.d.ts.map +1 -1
- package/v3/dist/mcp/services/reasoning-bank-service.js +4 -5
- package/v3/dist/mcp/services/reasoning-bank-service.js.map +1 -1
- package/v3/dist/mcp/services/task-router.d.ts +4 -0
- package/v3/dist/mcp/services/task-router.d.ts.map +1 -1
- package/v3/dist/mcp/services/task-router.js +57 -15
- package/v3/dist/mcp/services/task-router.js.map +1 -1
- package/v3/dist/mcp/tools/base.d.ts +5 -0
- package/v3/dist/mcp/tools/base.d.ts.map +1 -1
- package/v3/dist/mcp/tools/base.js +25 -1
- package/v3/dist/mcp/tools/base.js.map +1 -1
- package/v3/dist/mcp/tools/learning-optimization/dream.d.ts.map +1 -1
- package/v3/dist/mcp/tools/learning-optimization/dream.js +22 -0
- package/v3/dist/mcp/tools/learning-optimization/dream.js.map +1 -1
- package/v3/dist/mcp/tools/security-compliance/scan.d.ts.map +1 -1
- package/v3/dist/mcp/tools/security-compliance/scan.js +2 -1
- package/v3/dist/mcp/tools/security-compliance/scan.js.map +1 -1
- package/v3/dist/mcp/transport/index.d.ts +8 -6
- package/v3/dist/mcp/transport/index.d.ts.map +1 -1
- package/v3/dist/mcp/transport/index.js +10 -9
- package/v3/dist/mcp/transport/index.js.map +1 -1
- package/v3/dist/migrations/20260120_add_hypergraph_tables.d.ts.map +1 -1
- package/v3/dist/migrations/20260120_add_hypergraph_tables.js +7 -0
- package/v3/dist/migrations/20260120_add_hypergraph_tables.js.map +1 -1
- package/v3/dist/monitoring/structural-health.d.ts +142 -0
- package/v3/dist/monitoring/structural-health.d.ts.map +1 -0
- package/v3/dist/monitoring/structural-health.js +201 -0
- package/v3/dist/monitoring/structural-health.js.map +1 -0
- package/v3/dist/optimization/token-optimizer-service.d.ts.map +1 -1
- package/v3/dist/optimization/token-optimizer-service.js +2 -1
- package/v3/dist/optimization/token-optimizer-service.js.map +1 -1
- package/v3/dist/planning/goap-planner.d.ts.map +1 -1
- package/v3/dist/planning/goap-planner.js +2 -1
- package/v3/dist/planning/goap-planner.js.map +1 -1
- package/v3/dist/planning/plan-executor.d.ts +5 -1
- package/v3/dist/planning/plan-executor.d.ts.map +1 -1
- package/v3/dist/planning/plan-executor.js +16 -2
- package/v3/dist/planning/plan-executor.js.map +1 -1
- package/v3/dist/routing/routing-feedback.d.ts.map +1 -1
- package/v3/dist/routing/routing-feedback.js +2 -1
- package/v3/dist/routing/routing-feedback.js.map +1 -1
- package/v3/dist/shared/llm/cost-tracker.d.ts.map +1 -1
- package/v3/dist/shared/llm/cost-tracker.js +2 -1
- package/v3/dist/shared/llm/cost-tracker.js.map +1 -1
- package/v3/dist/shared/llm/metrics/router-metrics.d.ts.map +1 -1
- package/v3/dist/shared/llm/metrics/router-metrics.js +2 -1
- package/v3/dist/shared/llm/metrics/router-metrics.js.map +1 -1
- package/v3/dist/strange-loop/belief-reconciler.d.ts.map +1 -1
- package/v3/dist/strange-loop/belief-reconciler.js +2 -1
- package/v3/dist/strange-loop/belief-reconciler.js.map +1 -1
- package/v3/dist/sync/readers/json-reader.d.ts.map +1 -1
- package/v3/dist/sync/readers/json-reader.js +2 -1
- package/v3/dist/sync/readers/json-reader.js.map +1 -1
- package/v3/dist/types/cross-phase-signals.d.ts.map +1 -1
- package/v3/dist/types/cross-phase-signals.js +2 -1
- package/v3/dist/types/cross-phase-signals.js.map +1 -1
- package/v3/dist/validation/swarm-skill-validator.d.ts.map +1 -1
- package/v3/dist/validation/swarm-skill-validator.js +2 -1
- package/v3/dist/validation/swarm-skill-validator.js.map +1 -1
- package/v3/dist/workers/base-worker.d.ts.map +1 -1
- package/v3/dist/workers/base-worker.js +2 -1
- package/v3/dist/workers/base-worker.js.map +1 -1
- package/v3/package.json +5 -2
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* generate-opencode-skills.ts
|
|
3
|
+
*
|
|
4
|
+
* Reads all .claude/skills/SKILL.md files and generates .opencode/skills/{name}.yaml
|
|
5
|
+
* configs for the OpenCode platform.
|
|
6
|
+
*
|
|
7
|
+
* Usage: npx tsx scripts/generate-opencode-skills.ts
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import * as fs from 'fs';
|
|
11
|
+
import * as path from 'path';
|
|
12
|
+
|
|
13
|
+
interface SkillFrontmatter {
|
|
14
|
+
name: string;
|
|
15
|
+
description: string;
|
|
16
|
+
domain?: string;
|
|
17
|
+
category?: string;
|
|
18
|
+
trust_tier: number;
|
|
19
|
+
tags?: string[];
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
interface SkillStep {
|
|
23
|
+
name: string;
|
|
24
|
+
description: string;
|
|
25
|
+
tools: string[];
|
|
26
|
+
prompt: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
interface SkillConfig {
|
|
30
|
+
name: string;
|
|
31
|
+
description: string;
|
|
32
|
+
minModelTier: string;
|
|
33
|
+
tags: string[];
|
|
34
|
+
steps: SkillStep[];
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Platform infrastructure skills to exclude
|
|
38
|
+
const EXCLUDED_PREFIXES = [
|
|
39
|
+
'v3-',
|
|
40
|
+
'flow-nexus-',
|
|
41
|
+
'agentdb-',
|
|
42
|
+
'reasoningbank-',
|
|
43
|
+
'swarm-',
|
|
44
|
+
'hive-mind-',
|
|
45
|
+
'hooks-',
|
|
46
|
+
];
|
|
47
|
+
|
|
48
|
+
function tierToMinModel(tier: number): string {
|
|
49
|
+
switch (tier) {
|
|
50
|
+
case 0:
|
|
51
|
+
case 1:
|
|
52
|
+
return 'tier1-fast';
|
|
53
|
+
case 2:
|
|
54
|
+
return 'tier2-good';
|
|
55
|
+
case 3:
|
|
56
|
+
return 'tier3-best';
|
|
57
|
+
default:
|
|
58
|
+
return 'tier2-good';
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function parseFrontmatter(content: string): SkillFrontmatter | null {
|
|
63
|
+
// Normalize CRLF to LF before parsing
|
|
64
|
+
const normalized = content.replace(/\r\n/g, '\n').replace(/\r/g, '\n');
|
|
65
|
+
const match = normalized.match(/^---\n([\s\S]*?)\n---/);
|
|
66
|
+
if (!match) return null;
|
|
67
|
+
|
|
68
|
+
const yaml = match[1];
|
|
69
|
+
const result: Record<string, unknown> = {};
|
|
70
|
+
|
|
71
|
+
for (const line of yaml.split('\n')) {
|
|
72
|
+
const trimmed = line.trim();
|
|
73
|
+
if (!trimmed || trimmed.startsWith('#')) continue;
|
|
74
|
+
|
|
75
|
+
// Skip nested YAML keys (indented lines that are part of objects)
|
|
76
|
+
if (line.startsWith(' ') && !line.trim().startsWith('-')) continue;
|
|
77
|
+
|
|
78
|
+
const colonIdx = trimmed.indexOf(':');
|
|
79
|
+
if (colonIdx === -1) continue;
|
|
80
|
+
|
|
81
|
+
const key = trimmed.slice(0, colonIdx).trim();
|
|
82
|
+
let value = trimmed.slice(colonIdx + 1).trim();
|
|
83
|
+
|
|
84
|
+
if ((value.startsWith('"') && value.endsWith('"')) || (value.startsWith("'") && value.endsWith("'"))) {
|
|
85
|
+
value = value.slice(1, -1);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (value.startsWith('[') && value.endsWith(']')) {
|
|
89
|
+
result[key] = value
|
|
90
|
+
.slice(1, -1)
|
|
91
|
+
.split(',')
|
|
92
|
+
.map((s: string) => s.trim().replace(/['"]/g, ''))
|
|
93
|
+
.filter(Boolean);
|
|
94
|
+
} else if (key === 'trust_tier') {
|
|
95
|
+
result[key] = parseInt(value, 10);
|
|
96
|
+
} else {
|
|
97
|
+
result[key] = value;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return result as unknown as SkillFrontmatter;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Extract phases/steps from markdown headers (## and ### sections)
|
|
106
|
+
*/
|
|
107
|
+
function extractSteps(content: string): SkillStep[] {
|
|
108
|
+
const normalized = content.replace(/\r\n/g, '\n').replace(/\r/g, '\n');
|
|
109
|
+
const afterFrontmatter = normalized.replace(/^---[\s\S]*?---\n*/, '');
|
|
110
|
+
const steps: SkillStep[] = [];
|
|
111
|
+
|
|
112
|
+
// Find all ## and ### Phase/Step headers
|
|
113
|
+
const phaseRegex = /^#{2,3}\s+(?:Phase\s+\d+\s*[-—:]\s*)?(?:Step\s+\d+\s*[-—:]\s*)?(.+)/gm;
|
|
114
|
+
const sections: Array<{ title: string; start: number }> = [];
|
|
115
|
+
|
|
116
|
+
let match: RegExpExecArray | null;
|
|
117
|
+
while ((match = phaseRegex.exec(afterFrontmatter)) !== null) {
|
|
118
|
+
sections.push({
|
|
119
|
+
title: match[1].trim(),
|
|
120
|
+
start: match.index,
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// Skip certain headers that are not actual steps
|
|
125
|
+
const skipHeaders = [
|
|
126
|
+
'quick reference card',
|
|
127
|
+
'when to use',
|
|
128
|
+
'agent coordination',
|
|
129
|
+
'fleet coordination',
|
|
130
|
+
'memory namespace',
|
|
131
|
+
'related skills',
|
|
132
|
+
'remember',
|
|
133
|
+
'common mistakes',
|
|
134
|
+
'common pitfalls',
|
|
135
|
+
'anti-patterns',
|
|
136
|
+
'tools',
|
|
137
|
+
'purpose',
|
|
138
|
+
'activation',
|
|
139
|
+
'quick start',
|
|
140
|
+
'prerequisites',
|
|
141
|
+
'see also',
|
|
142
|
+
'references',
|
|
143
|
+
];
|
|
144
|
+
|
|
145
|
+
for (let i = 0; i < sections.length && steps.length < 8; i++) {
|
|
146
|
+
const section = sections[i];
|
|
147
|
+
const titleLower = section.title.toLowerCase();
|
|
148
|
+
|
|
149
|
+
if (skipHeaders.some((skip) => titleLower.includes(skip))) continue;
|
|
150
|
+
|
|
151
|
+
const end = i + 1 < sections.length ? sections[i + 1].start : afterFrontmatter.length;
|
|
152
|
+
const body = afterFrontmatter.slice(section.start, end);
|
|
153
|
+
|
|
154
|
+
// Extract first meaningful paragraph as description
|
|
155
|
+
const lines = body.split('\n').slice(1);
|
|
156
|
+
const descLines: string[] = [];
|
|
157
|
+
for (const line of lines) {
|
|
158
|
+
const t = line.trim();
|
|
159
|
+
if (t === '' && descLines.length > 0) break;
|
|
160
|
+
if (t.startsWith('#') || t.startsWith('```') || t.startsWith('|') || t.startsWith('<')) break;
|
|
161
|
+
if (t !== '') descLines.push(t);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
const description = descLines.join(' ').slice(0, 300) || section.title;
|
|
165
|
+
const stepName = section.title
|
|
166
|
+
.toLowerCase()
|
|
167
|
+
.replace(/[^a-z0-9\s-]/g, '')
|
|
168
|
+
.replace(/\s+/g, '-')
|
|
169
|
+
.slice(0, 40);
|
|
170
|
+
|
|
171
|
+
// Determine tools from step content
|
|
172
|
+
const tools: string[] = ['bash', 'read'];
|
|
173
|
+
const bodyLower = body.toLowerCase();
|
|
174
|
+
if (bodyLower.includes('edit') || bodyLower.includes('fix') || bodyLower.includes('change') || bodyLower.includes('modify')) {
|
|
175
|
+
tools.push('edit');
|
|
176
|
+
}
|
|
177
|
+
if (bodyLower.includes('grep') || bodyLower.includes('search') || bodyLower.includes('find')) {
|
|
178
|
+
tools.push('grep');
|
|
179
|
+
}
|
|
180
|
+
if (bodyLower.includes('mcp') || bodyLower.includes('memory') || bodyLower.includes('agentic-qe')) {
|
|
181
|
+
tools.push('mcp:agentic-qe:*');
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
steps.push({
|
|
185
|
+
name: stepName,
|
|
186
|
+
description,
|
|
187
|
+
tools,
|
|
188
|
+
prompt: description,
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
// If no steps extracted, create a single generic step
|
|
193
|
+
if (steps.length === 0) {
|
|
194
|
+
steps.push({
|
|
195
|
+
name: 'execute',
|
|
196
|
+
description: 'Execute the skill workflow',
|
|
197
|
+
tools: ['bash', 'read', 'edit', 'grep'],
|
|
198
|
+
prompt: 'Execute the skill workflow as described in the skill documentation.',
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
return steps;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
function escapeYamlString(s: string): string {
|
|
206
|
+
return s.replace(/\\/g, '\\\\').replace(/"/g, '\\"');
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
function generateSkillYaml(config: SkillConfig): string {
|
|
210
|
+
const tagsList = config.tags.map((t) => `"${escapeYamlString(t)}"`).join(', ');
|
|
211
|
+
|
|
212
|
+
let yaml = `name: ${config.name}
|
|
213
|
+
description: "${escapeYamlString(config.description)}"
|
|
214
|
+
minModelTier: ${config.minModelTier}
|
|
215
|
+
tags: [${tagsList}]
|
|
216
|
+
steps:
|
|
217
|
+
`;
|
|
218
|
+
|
|
219
|
+
for (const step of config.steps) {
|
|
220
|
+
const toolsList = step.tools.map((t) => `"${t}"`).join(', ');
|
|
221
|
+
yaml += ` - name: ${step.name}
|
|
222
|
+
description: "${escapeYamlString(step.description)}"
|
|
223
|
+
tools: [${toolsList}]
|
|
224
|
+
prompt: |
|
|
225
|
+
${step.prompt.replace(/\n/g, '\n ')}
|
|
226
|
+
`;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
return yaml;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
function isExcluded(name: string): boolean {
|
|
233
|
+
return EXCLUDED_PREFIXES.some((prefix) => name.startsWith(prefix));
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/** Compute the output name, avoiding double qe- prefix */
|
|
237
|
+
function computeOutputName(dirName: string): string {
|
|
238
|
+
const safeName = dirName.replace(/[^a-z0-9-]/g, '-');
|
|
239
|
+
// If directory already starts with qe- or qcsd-, don't add qe- prefix
|
|
240
|
+
if (safeName.startsWith('qe-') || safeName.startsWith('qcsd-')) {
|
|
241
|
+
return safeName;
|
|
242
|
+
}
|
|
243
|
+
return `qe-${safeName}`;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
async function main(): Promise<void> {
|
|
247
|
+
const skillsDir = path.resolve(__dirname, '../.claude/skills');
|
|
248
|
+
const outputDir = path.resolve(__dirname, '../.opencode/skills');
|
|
249
|
+
|
|
250
|
+
fs.mkdirSync(outputDir, { recursive: true });
|
|
251
|
+
|
|
252
|
+
// Clear existing generated skills
|
|
253
|
+
for (const existing of fs.readdirSync(outputDir)) {
|
|
254
|
+
if (existing.endsWith('.yaml')) {
|
|
255
|
+
fs.unlinkSync(path.join(outputDir, existing));
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
const entries = fs.readdirSync(skillsDir, { withFileTypes: true });
|
|
260
|
+
let generated = 0;
|
|
261
|
+
let skipped = 0;
|
|
262
|
+
const skippedNames: string[] = [];
|
|
263
|
+
|
|
264
|
+
for (const entry of entries) {
|
|
265
|
+
if (!entry.isDirectory()) continue;
|
|
266
|
+
if (isExcluded(entry.name)) {
|
|
267
|
+
skipped++;
|
|
268
|
+
continue;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
const skillPath = path.join(skillsDir, entry.name, 'SKILL.md');
|
|
272
|
+
if (!fs.existsSync(skillPath)) {
|
|
273
|
+
skippedNames.push(`${entry.name} (no SKILL.md)`);
|
|
274
|
+
skipped++;
|
|
275
|
+
continue;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
const content = fs.readFileSync(skillPath, 'utf-8');
|
|
279
|
+
const frontmatter = parseFrontmatter(content);
|
|
280
|
+
if (!frontmatter || !frontmatter.name) {
|
|
281
|
+
skippedNames.push(`${entry.name} (no frontmatter/name)`);
|
|
282
|
+
skipped++;
|
|
283
|
+
continue;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
const outputName = computeOutputName(entry.name);
|
|
287
|
+
const tags = [...(frontmatter.tags ?? []), 'qe', 'quality-engineering'];
|
|
288
|
+
if (frontmatter.category) tags.push(frontmatter.category);
|
|
289
|
+
if (frontmatter.domain) tags.push(frontmatter.domain);
|
|
290
|
+
|
|
291
|
+
const steps = extractSteps(content);
|
|
292
|
+
const minModelTier = tierToMinModel(frontmatter.trust_tier ?? 2);
|
|
293
|
+
|
|
294
|
+
const config: SkillConfig = {
|
|
295
|
+
name: outputName,
|
|
296
|
+
description: (frontmatter.description || frontmatter.name).slice(0, 300),
|
|
297
|
+
minModelTier,
|
|
298
|
+
tags: [...new Set(tags)],
|
|
299
|
+
steps,
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
const yaml = generateSkillYaml(config);
|
|
303
|
+
const outputPath = path.join(outputDir, `${outputName}.yaml`);
|
|
304
|
+
fs.writeFileSync(outputPath, yaml, 'utf-8');
|
|
305
|
+
generated++;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
console.log(`Skill generation complete: ${generated} generated, ${skipped} skipped`);
|
|
309
|
+
if (skippedNames.length > 0) {
|
|
310
|
+
console.log(`Skipped details: ${skippedNames.join(', ')}`);
|
|
311
|
+
}
|
|
312
|
+
console.log(`Output directory: ${outputDir}`);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
main().catch((err) => {
|
|
316
|
+
console.error('Generation failed:', err);
|
|
317
|
+
process.exit(1);
|
|
318
|
+
});
|