agentic-qe 3.2.3 → 3.3.0
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/agents/v3/qe-accessibility-auditor.md +90 -0
- package/README.md +43 -5
- package/package.json +3 -2
- package/scripts/cloud-db-config.json +37 -0
- package/scripts/cloud-db-connect.sh +37 -0
- package/scripts/cloud-db-tunnel.sh +23 -0
- package/v3/CHANGELOG.md +165 -0
- package/v3/README.md +59 -1
- package/v3/assets/agents/v3/qe-accessibility-auditor.md +90 -0
- package/v3/dist/adapters/claude-flow/index.d.ts +54 -0
- package/v3/dist/adapters/claude-flow/index.d.ts.map +1 -0
- package/v3/dist/adapters/claude-flow/index.js +79 -0
- package/v3/dist/adapters/claude-flow/index.js.map +1 -0
- package/v3/dist/adapters/claude-flow/model-router-bridge.d.ts +70 -0
- package/v3/dist/adapters/claude-flow/model-router-bridge.d.ts.map +1 -0
- package/v3/dist/adapters/claude-flow/model-router-bridge.js +203 -0
- package/v3/dist/adapters/claude-flow/model-router-bridge.js.map +1 -0
- package/v3/dist/adapters/claude-flow/pretrain-bridge.d.ts +73 -0
- package/v3/dist/adapters/claude-flow/pretrain-bridge.d.ts.map +1 -0
- package/v3/dist/adapters/claude-flow/pretrain-bridge.js +276 -0
- package/v3/dist/adapters/claude-flow/pretrain-bridge.js.map +1 -0
- package/v3/dist/adapters/claude-flow/trajectory-bridge.d.ts +70 -0
- package/v3/dist/adapters/claude-flow/trajectory-bridge.d.ts.map +1 -0
- package/v3/dist/adapters/claude-flow/trajectory-bridge.js +205 -0
- package/v3/dist/adapters/claude-flow/trajectory-bridge.js.map +1 -0
- package/v3/dist/adapters/claude-flow/types.d.ts +99 -0
- package/v3/dist/adapters/claude-flow/types.d.ts.map +1 -0
- package/v3/dist/adapters/claude-flow/types.js +6 -0
- package/v3/dist/adapters/claude-flow/types.js.map +1 -0
- package/v3/dist/causal-discovery/causal-graph.d.ts +80 -1
- package/v3/dist/causal-discovery/causal-graph.d.ts.map +1 -1
- package/v3/dist/causal-discovery/causal-graph.js +111 -1
- package/v3/dist/causal-discovery/causal-graph.js.map +1 -1
- package/v3/dist/cli/bundle.js +11612 -4929
- package/v3/dist/cli/commands/claude-flow-setup.d.ts +82 -0
- package/v3/dist/cli/commands/claude-flow-setup.d.ts.map +1 -0
- package/v3/dist/cli/commands/claude-flow-setup.js +334 -0
- package/v3/dist/cli/commands/claude-flow-setup.js.map +1 -0
- package/v3/dist/cli/commands/hooks.d.ts +2 -0
- package/v3/dist/cli/commands/hooks.d.ts.map +1 -1
- package/v3/dist/cli/commands/hooks.js +13 -2
- package/v3/dist/cli/commands/hooks.js.map +1 -1
- package/v3/dist/cli/commands/init.d.ts +19 -0
- package/v3/dist/cli/commands/init.d.ts.map +1 -0
- package/v3/dist/cli/commands/init.js +345 -0
- package/v3/dist/cli/commands/init.js.map +1 -0
- package/v3/dist/cli/index.js +110 -2
- package/v3/dist/cli/index.js.map +1 -1
- package/v3/dist/coordination/mincut/interfaces.d.ts +8 -2
- package/v3/dist/coordination/mincut/interfaces.d.ts.map +1 -1
- package/v3/dist/coordination/mincut/interfaces.js.map +1 -1
- package/v3/dist/coordination/mincut/mincut-health-monitor.d.ts +5 -0
- package/v3/dist/coordination/mincut/mincut-health-monitor.d.ts.map +1 -1
- package/v3/dist/coordination/mincut/mincut-health-monitor.js +22 -4
- package/v3/dist/coordination/mincut/mincut-health-monitor.js.map +1 -1
- package/v3/dist/coordination/mincut/queen-integration.d.ts +4 -0
- package/v3/dist/coordination/mincut/queen-integration.d.ts.map +1 -1
- package/v3/dist/coordination/mincut/queen-integration.js +14 -1
- package/v3/dist/coordination/mincut/queen-integration.js.map +1 -1
- package/v3/dist/coordination/queen-coordinator.d.ts +5 -0
- package/v3/dist/coordination/queen-coordinator.d.ts.map +1 -1
- package/v3/dist/coordination/queen-coordinator.js +45 -7
- package/v3/dist/coordination/queen-coordinator.js.map +1 -1
- package/v3/dist/domains/learning-optimization/coordinator.d.ts +5 -0
- package/v3/dist/domains/learning-optimization/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/learning-optimization/coordinator.js +79 -0
- package/v3/dist/domains/learning-optimization/coordinator.js.map +1 -1
- package/v3/dist/domains/test-generation/coherence-gate.d.ts +245 -0
- package/v3/dist/domains/test-generation/coherence-gate.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/coherence-gate.js +454 -0
- package/v3/dist/domains/test-generation/coherence-gate.js.map +1 -0
- package/v3/dist/domains/test-generation/coordinator.d.ts +32 -1
- package/v3/dist/domains/test-generation/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/coordinator.js +70 -1
- package/v3/dist/domains/test-generation/coordinator.js.map +1 -1
- package/v3/dist/domains/test-generation/index.d.ts +1 -0
- package/v3/dist/domains/test-generation/index.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/index.js +4 -0
- package/v3/dist/domains/test-generation/index.js.map +1 -1
- package/v3/dist/domains/test-generation/services/index.d.ts +1 -0
- package/v3/dist/domains/test-generation/services/index.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/services/index.js +2 -0
- package/v3/dist/domains/test-generation/services/index.js.map +1 -1
- package/v3/dist/domains/visual-accessibility/index.d.ts +2 -1
- package/v3/dist/domains/visual-accessibility/index.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/index.js +1 -0
- package/v3/dist/domains/visual-accessibility/index.js.map +1 -1
- package/v3/dist/domains/visual-accessibility/interfaces.d.ts +131 -0
- package/v3/dist/domains/visual-accessibility/interfaces.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/plugin.d.ts +26 -0
- package/v3/dist/domains/visual-accessibility/plugin.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/plugin.js +151 -0
- package/v3/dist/domains/visual-accessibility/plugin.js.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/accessibility-tester.d.ts +42 -1
- package/v3/dist/domains/visual-accessibility/services/accessibility-tester.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/accessibility-tester.js +69 -0
- package/v3/dist/domains/visual-accessibility/services/accessibility-tester.js.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/eu-compliance.d.ts +138 -0
- package/v3/dist/domains/visual-accessibility/services/eu-compliance.d.ts.map +1 -0
- package/v3/dist/domains/visual-accessibility/services/eu-compliance.js +830 -0
- package/v3/dist/domains/visual-accessibility/services/eu-compliance.js.map +1 -0
- package/v3/dist/domains/visual-accessibility/services/index.d.ts +1 -0
- package/v3/dist/domains/visual-accessibility/services/index.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/index.js +1 -0
- package/v3/dist/domains/visual-accessibility/services/index.js.map +1 -1
- package/v3/dist/init/enhancements/claude-flow-adapter.d.ts +84 -0
- package/v3/dist/init/enhancements/claude-flow-adapter.d.ts.map +1 -0
- package/v3/dist/init/enhancements/claude-flow-adapter.js +250 -0
- package/v3/dist/init/enhancements/claude-flow-adapter.js.map +1 -0
- package/v3/dist/init/enhancements/detector.d.ts +10 -0
- package/v3/dist/init/enhancements/detector.d.ts.map +1 -0
- package/v3/dist/init/enhancements/detector.js +87 -0
- package/v3/dist/init/enhancements/detector.js.map +1 -0
- package/v3/dist/init/enhancements/index.d.ts +13 -0
- package/v3/dist/init/enhancements/index.d.ts.map +1 -0
- package/v3/dist/init/enhancements/index.js +25 -0
- package/v3/dist/init/enhancements/index.js.map +1 -0
- package/v3/dist/init/enhancements/types.d.ts +93 -0
- package/v3/dist/init/enhancements/types.d.ts.map +1 -0
- package/v3/dist/init/enhancements/types.js +6 -0
- package/v3/dist/init/enhancements/types.js.map +1 -0
- package/v3/dist/init/index.d.ts +8 -0
- package/v3/dist/init/index.d.ts.map +1 -1
- package/v3/dist/init/index.js +4 -0
- package/v3/dist/init/index.js.map +1 -1
- package/v3/dist/init/migration/config-migrator.d.ts +31 -0
- package/v3/dist/init/migration/config-migrator.d.ts.map +1 -0
- package/v3/dist/init/migration/config-migrator.js +133 -0
- package/v3/dist/init/migration/config-migrator.js.map +1 -0
- package/v3/dist/init/migration/data-migrator.d.ts +72 -0
- package/v3/dist/init/migration/data-migrator.d.ts.map +1 -0
- package/v3/dist/init/migration/data-migrator.js +233 -0
- package/v3/dist/init/migration/data-migrator.js.map +1 -0
- package/v3/dist/init/migration/detector.d.ts +44 -0
- package/v3/dist/init/migration/detector.d.ts.map +1 -0
- package/v3/dist/init/migration/detector.js +106 -0
- package/v3/dist/init/migration/detector.js.map +1 -0
- package/v3/dist/init/migration/index.d.ts +8 -0
- package/v3/dist/init/migration/index.d.ts.map +1 -0
- package/v3/dist/init/migration/index.js +8 -0
- package/v3/dist/init/migration/index.js.map +1 -0
- package/v3/dist/init/orchestrator.d.ts +68 -0
- package/v3/dist/init/orchestrator.d.ts.map +1 -0
- package/v3/dist/init/orchestrator.js +239 -0
- package/v3/dist/init/orchestrator.js.map +1 -0
- package/v3/dist/init/phases/01-detection.d.ts +30 -0
- package/v3/dist/init/phases/01-detection.d.ts.map +1 -0
- package/v3/dist/init/phases/01-detection.js +143 -0
- package/v3/dist/init/phases/01-detection.js.map +1 -0
- package/v3/dist/init/phases/02-analysis.d.ts +18 -0
- package/v3/dist/init/phases/02-analysis.d.ts.map +1 -0
- package/v3/dist/init/phases/02-analysis.js +28 -0
- package/v3/dist/init/phases/02-analysis.js.map +1 -0
- package/v3/dist/init/phases/03-configuration.d.ts +26 -0
- package/v3/dist/init/phases/03-configuration.d.ts.map +1 -0
- package/v3/dist/init/phases/03-configuration.js +98 -0
- package/v3/dist/init/phases/03-configuration.js.map +1 -0
- package/v3/dist/init/phases/04-database.d.ts +22 -0
- package/v3/dist/init/phases/04-database.d.ts.map +1 -0
- package/v3/dist/init/phases/04-database.js +88 -0
- package/v3/dist/init/phases/04-database.js.map +1 -0
- package/v3/dist/init/phases/05-learning.d.ts +28 -0
- package/v3/dist/init/phases/05-learning.d.ts.map +1 -0
- package/v3/dist/init/phases/05-learning.js +98 -0
- package/v3/dist/init/phases/05-learning.js.map +1 -0
- package/v3/dist/init/phases/06-code-intelligence.d.ts +33 -0
- package/v3/dist/init/phases/06-code-intelligence.d.ts.map +1 -0
- package/v3/dist/init/phases/06-code-intelligence.js +115 -0
- package/v3/dist/init/phases/06-code-intelligence.js.map +1 -0
- package/v3/dist/init/phases/07-hooks.d.ts +27 -0
- package/v3/dist/init/phases/07-hooks.d.ts.map +1 -0
- package/v3/dist/init/phases/07-hooks.js +209 -0
- package/v3/dist/init/phases/07-hooks.js.map +1 -0
- package/v3/dist/init/phases/08-mcp.d.ts +22 -0
- package/v3/dist/init/phases/08-mcp.d.ts.map +1 -0
- package/v3/dist/init/phases/08-mcp.js +62 -0
- package/v3/dist/init/phases/08-mcp.js.map +1 -0
- package/v3/dist/init/phases/09-assets.d.ts +23 -0
- package/v3/dist/init/phases/09-assets.d.ts.map +1 -0
- package/v3/dist/init/phases/09-assets.js +82 -0
- package/v3/dist/init/phases/09-assets.js.map +1 -0
- package/v3/dist/init/phases/10-workers.d.ts +23 -0
- package/v3/dist/init/phases/10-workers.d.ts.map +1 -0
- package/v3/dist/init/phases/10-workers.js +111 -0
- package/v3/dist/init/phases/10-workers.js.map +1 -0
- package/v3/dist/init/phases/11-claude-md.d.ts +26 -0
- package/v3/dist/init/phases/11-claude-md.d.ts.map +1 -0
- package/v3/dist/init/phases/11-claude-md.js +121 -0
- package/v3/dist/init/phases/11-claude-md.js.map +1 -0
- package/v3/dist/init/phases/12-verification.d.ts +38 -0
- package/v3/dist/init/phases/12-verification.d.ts.map +1 -0
- package/v3/dist/init/phases/12-verification.js +187 -0
- package/v3/dist/init/phases/12-verification.js.map +1 -0
- package/v3/dist/init/phases/index.d.ts +46 -0
- package/v3/dist/init/phases/index.d.ts.map +1 -0
- package/v3/dist/init/phases/index.js +64 -0
- package/v3/dist/init/phases/index.js.map +1 -0
- package/v3/dist/init/phases/phase-interface.d.ts +193 -0
- package/v3/dist/init/phases/phase-interface.d.ts.map +1 -0
- package/v3/dist/init/phases/phase-interface.js +119 -0
- package/v3/dist/init/phases/phase-interface.js.map +1 -0
- package/v3/dist/integrations/coherence/coherence-service.d.ts +323 -0
- package/v3/dist/integrations/coherence/coherence-service.d.ts.map +1 -0
- package/v3/dist/integrations/coherence/coherence-service.js +799 -0
- package/v3/dist/integrations/coherence/coherence-service.js.map +1 -0
- package/v3/dist/integrations/coherence/engines/category-adapter.d.ts +170 -0
- package/v3/dist/integrations/coherence/engines/category-adapter.d.ts.map +1 -0
- package/v3/dist/integrations/coherence/engines/category-adapter.js +403 -0
- package/v3/dist/integrations/coherence/engines/category-adapter.js.map +1 -0
- package/v3/dist/integrations/coherence/engines/causal-adapter.d.ts +159 -0
- package/v3/dist/integrations/coherence/engines/causal-adapter.d.ts.map +1 -0
- package/v3/dist/integrations/coherence/engines/causal-adapter.js +348 -0
- package/v3/dist/integrations/coherence/engines/causal-adapter.js.map +1 -0
- package/v3/dist/integrations/coherence/engines/cohomology-adapter.d.ts +174 -0
- package/v3/dist/integrations/coherence/engines/cohomology-adapter.d.ts.map +1 -0
- package/v3/dist/integrations/coherence/engines/cohomology-adapter.js +401 -0
- package/v3/dist/integrations/coherence/engines/cohomology-adapter.js.map +1 -0
- package/v3/dist/integrations/coherence/engines/homotopy-adapter.d.ts +201 -0
- package/v3/dist/integrations/coherence/engines/homotopy-adapter.d.ts.map +1 -0
- package/v3/dist/integrations/coherence/engines/homotopy-adapter.js +324 -0
- package/v3/dist/integrations/coherence/engines/homotopy-adapter.js.map +1 -0
- package/v3/dist/integrations/coherence/engines/index.d.ts +20 -0
- package/v3/dist/integrations/coherence/engines/index.d.ts.map +1 -0
- package/v3/dist/integrations/coherence/engines/index.js +26 -0
- package/v3/dist/integrations/coherence/engines/index.js.map +1 -0
- package/v3/dist/integrations/coherence/engines/spectral-adapter.d.ts +193 -0
- package/v3/dist/integrations/coherence/engines/spectral-adapter.d.ts.map +1 -0
- package/v3/dist/integrations/coherence/engines/spectral-adapter.js +476 -0
- package/v3/dist/integrations/coherence/engines/spectral-adapter.js.map +1 -0
- package/v3/dist/integrations/coherence/engines/witness-adapter.d.ts +175 -0
- package/v3/dist/integrations/coherence/engines/witness-adapter.d.ts.map +1 -0
- package/v3/dist/integrations/coherence/engines/witness-adapter.js +377 -0
- package/v3/dist/integrations/coherence/engines/witness-adapter.js.map +1 -0
- package/v3/dist/integrations/coherence/index.d.ts +84 -0
- package/v3/dist/integrations/coherence/index.d.ts.map +1 -0
- package/v3/dist/integrations/coherence/index.js +114 -0
- package/v3/dist/integrations/coherence/index.js.map +1 -0
- package/v3/dist/integrations/coherence/threshold-tuner.d.ts +396 -0
- package/v3/dist/integrations/coherence/threshold-tuner.d.ts.map +1 -0
- package/v3/dist/integrations/coherence/threshold-tuner.js +538 -0
- package/v3/dist/integrations/coherence/threshold-tuner.js.map +1 -0
- package/v3/dist/integrations/coherence/types.d.ts +879 -0
- package/v3/dist/integrations/coherence/types.d.ts.map +1 -0
- package/v3/dist/integrations/coherence/types.js +134 -0
- package/v3/dist/integrations/coherence/types.js.map +1 -0
- package/v3/dist/integrations/coherence/wasm-loader.d.ts +351 -0
- package/v3/dist/integrations/coherence/wasm-loader.d.ts.map +1 -0
- package/v3/dist/integrations/coherence/wasm-loader.js +842 -0
- package/v3/dist/integrations/coherence/wasm-loader.js.map +1 -0
- package/v3/dist/integrations/embeddings/index/HNSWIndex.d.ts.map +1 -1
- package/v3/dist/integrations/embeddings/index/HNSWIndex.js +4 -1
- package/v3/dist/integrations/embeddings/index/HNSWIndex.js.map +1 -1
- package/v3/dist/kernel/interfaces.d.ts +8 -1
- package/v3/dist/kernel/interfaces.d.ts.map +1 -1
- package/v3/dist/learning/aqe-learning-engine.d.ts +272 -0
- package/v3/dist/learning/aqe-learning-engine.d.ts.map +1 -0
- package/v3/dist/learning/aqe-learning-engine.js +708 -0
- package/v3/dist/learning/aqe-learning-engine.js.map +1 -0
- package/v3/dist/learning/causal-verifier.d.ts +244 -0
- package/v3/dist/learning/causal-verifier.d.ts.map +1 -0
- package/v3/dist/learning/causal-verifier.js +300 -0
- package/v3/dist/learning/causal-verifier.js.map +1 -0
- package/v3/dist/learning/experience-capture.d.ts +266 -0
- package/v3/dist/learning/experience-capture.d.ts.map +1 -0
- package/v3/dist/learning/experience-capture.js +647 -0
- package/v3/dist/learning/experience-capture.js.map +1 -0
- package/v3/dist/learning/index.d.ts +8 -0
- package/v3/dist/learning/index.d.ts.map +1 -1
- package/v3/dist/learning/index.js +16 -0
- package/v3/dist/learning/index.js.map +1 -1
- package/v3/dist/learning/memory-auditor.d.ts +235 -0
- package/v3/dist/learning/memory-auditor.d.ts.map +1 -0
- package/v3/dist/learning/memory-auditor.js +478 -0
- package/v3/dist/learning/memory-auditor.js.map +1 -0
- package/v3/dist/learning/pattern-store.d.ts.map +1 -1
- package/v3/dist/learning/pattern-store.js +27 -6
- package/v3/dist/learning/pattern-store.js.map +1 -1
- package/v3/dist/learning/qe-patterns.d.ts +15 -1
- package/v3/dist/learning/qe-patterns.d.ts.map +1 -1
- package/v3/dist/learning/qe-patterns.js +26 -5
- package/v3/dist/learning/qe-patterns.js.map +1 -1
- package/v3/dist/learning/qe-reasoning-bank.d.ts +38 -2
- package/v3/dist/learning/qe-reasoning-bank.d.ts.map +1 -1
- package/v3/dist/learning/qe-reasoning-bank.js +86 -4
- package/v3/dist/learning/qe-reasoning-bank.js.map +1 -1
- package/v3/dist/learning/real-qe-reasoning-bank.d.ts +32 -2
- package/v3/dist/learning/real-qe-reasoning-bank.d.ts.map +1 -1
- package/v3/dist/learning/real-qe-reasoning-bank.js +61 -6
- package/v3/dist/learning/real-qe-reasoning-bank.js.map +1 -1
- package/v3/dist/mcp/bundle.js +6303 -266
- package/v3/dist/mcp/tools/coherence/audit.d.ts +107 -0
- package/v3/dist/mcp/tools/coherence/audit.d.ts.map +1 -0
- package/v3/dist/mcp/tools/coherence/audit.js +236 -0
- package/v3/dist/mcp/tools/coherence/audit.js.map +1 -0
- package/v3/dist/mcp/tools/coherence/check.d.ts +106 -0
- package/v3/dist/mcp/tools/coherence/check.d.ts.map +1 -0
- package/v3/dist/mcp/tools/coherence/check.js +205 -0
- package/v3/dist/mcp/tools/coherence/check.js.map +1 -0
- package/v3/dist/mcp/tools/coherence/collapse.d.ts +123 -0
- package/v3/dist/mcp/tools/coherence/collapse.d.ts.map +1 -0
- package/v3/dist/mcp/tools/coherence/collapse.js +279 -0
- package/v3/dist/mcp/tools/coherence/collapse.js.map +1 -0
- package/v3/dist/mcp/tools/coherence/consensus.d.ts +100 -0
- package/v3/dist/mcp/tools/coherence/consensus.d.ts.map +1 -0
- package/v3/dist/mcp/tools/coherence/consensus.js +201 -0
- package/v3/dist/mcp/tools/coherence/consensus.js.map +1 -0
- package/v3/dist/mcp/tools/coherence/index.d.ts +31 -0
- package/v3/dist/mcp/tools/coherence/index.d.ts.map +1 -0
- package/v3/dist/mcp/tools/coherence/index.js +42 -0
- package/v3/dist/mcp/tools/coherence/index.js.map +1 -0
- package/v3/dist/mcp/tools/index.d.ts +6 -1
- package/v3/dist/mcp/tools/index.d.ts.map +1 -1
- package/v3/dist/mcp/tools/index.js +9 -1
- package/v3/dist/mcp/tools/index.js.map +1 -1
- package/v3/dist/mcp/tools/mincut/index.d.ts +1 -1
- package/v3/dist/mcp/tools/mincut/index.d.ts.map +1 -1
- package/v3/dist/mcp/tools/mincut/index.js.map +1 -1
- package/v3/dist/mcp/tools/registry.d.ts +4 -0
- package/v3/dist/mcp/tools/registry.d.ts.map +1 -1
- package/v3/dist/mcp/tools/registry.js +5 -0
- package/v3/dist/mcp/tools/registry.js.map +1 -1
- package/v3/dist/mcp/types.d.ts +1 -1
- package/v3/dist/mcp/types.d.ts.map +1 -1
- package/v3/dist/strange-loop/belief-reconciler.d.ts +357 -0
- package/v3/dist/strange-loop/belief-reconciler.d.ts.map +1 -0
- package/v3/dist/strange-loop/belief-reconciler.js +696 -0
- package/v3/dist/strange-loop/belief-reconciler.js.map +1 -0
- package/v3/dist/strange-loop/index.d.ts +1 -0
- package/v3/dist/strange-loop/index.d.ts.map +1 -1
- package/v3/dist/strange-loop/index.js +2 -0
- package/v3/dist/strange-loop/index.js.map +1 -1
- package/v3/dist/strange-loop/strange-loop.d.ts +177 -5
- package/v3/dist/strange-loop/strange-loop.d.ts.map +1 -1
- package/v3/dist/strange-loop/strange-loop.js +452 -9
- package/v3/dist/strange-loop/strange-loop.js.map +1 -1
- package/v3/dist/strange-loop/types.d.ts +205 -1
- package/v3/dist/strange-loop/types.d.ts.map +1 -1
- package/v3/dist/strange-loop/types.js +5 -0
- package/v3/dist/strange-loop/types.js.map +1 -1
- package/v3/package.json +5 -1
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AQE Experience Capture Module
|
|
3
|
+
* Phase 4: Self-Learning Features
|
|
4
|
+
*
|
|
5
|
+
* Captures task execution experiences for pattern learning.
|
|
6
|
+
* Works standalone and integrates with Claude Flow trajectories when available.
|
|
7
|
+
*
|
|
8
|
+
* Features:
|
|
9
|
+
* - Task execution recording
|
|
10
|
+
* - Outcome capture with quality metrics
|
|
11
|
+
* - Pattern extraction from successful tasks
|
|
12
|
+
* - Pattern promotion after threshold uses
|
|
13
|
+
* - Cross-domain experience sharing
|
|
14
|
+
*/
|
|
15
|
+
import type { MemoryBackend, EventBus } from '../kernel/interfaces.js';
|
|
16
|
+
import type { Result } from '../shared/types/index.js';
|
|
17
|
+
import type { QEDomain } from './qe-patterns.js';
|
|
18
|
+
import type { PatternStore } from './pattern-store.js';
|
|
19
|
+
/**
|
|
20
|
+
* Task execution experience
|
|
21
|
+
*/
|
|
22
|
+
export interface TaskExperience {
|
|
23
|
+
/** Unique experience ID */
|
|
24
|
+
id: string;
|
|
25
|
+
/** Task description */
|
|
26
|
+
task: string;
|
|
27
|
+
/** Agent that executed the task */
|
|
28
|
+
agent?: string;
|
|
29
|
+
/** QE Domain (if applicable) */
|
|
30
|
+
domain?: QEDomain;
|
|
31
|
+
/** Model used (haiku/sonnet/opus) */
|
|
32
|
+
model?: 'haiku' | 'sonnet' | 'opus';
|
|
33
|
+
/** Task started timestamp */
|
|
34
|
+
startedAt: number;
|
|
35
|
+
/** Task completed timestamp */
|
|
36
|
+
completedAt: number;
|
|
37
|
+
/** Duration in milliseconds */
|
|
38
|
+
durationMs: number;
|
|
39
|
+
/** Execution steps */
|
|
40
|
+
steps: ExperienceStep[];
|
|
41
|
+
/** Success indicator */
|
|
42
|
+
success: boolean;
|
|
43
|
+
/** Quality score (0-1) */
|
|
44
|
+
quality: number;
|
|
45
|
+
/** Feedback provided */
|
|
46
|
+
feedback?: string;
|
|
47
|
+
/** Extracted patterns (if any) */
|
|
48
|
+
patterns?: string[];
|
|
49
|
+
/** Claude Flow trajectory ID (if available) */
|
|
50
|
+
trajectoryId?: string;
|
|
51
|
+
/** Additional metadata */
|
|
52
|
+
metadata?: Record<string, unknown>;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Experience step
|
|
56
|
+
*/
|
|
57
|
+
export interface ExperienceStep {
|
|
58
|
+
/** Action taken */
|
|
59
|
+
action: string;
|
|
60
|
+
/** Result of the action */
|
|
61
|
+
result?: string;
|
|
62
|
+
/** Quality score for this step (0-1) */
|
|
63
|
+
quality?: number;
|
|
64
|
+
/** Timestamp */
|
|
65
|
+
timestamp: number;
|
|
66
|
+
/** Tokens used (if tracked) */
|
|
67
|
+
tokensUsed?: number;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Experience capture configuration
|
|
71
|
+
*/
|
|
72
|
+
export interface ExperienceCaptureConfig {
|
|
73
|
+
/** Storage namespace */
|
|
74
|
+
namespace: string;
|
|
75
|
+
/** Minimum quality for pattern extraction (0-1) */
|
|
76
|
+
minQualityForPatternExtraction: number;
|
|
77
|
+
/** Similarity threshold for pattern matching */
|
|
78
|
+
similarityThreshold: number;
|
|
79
|
+
/** Promotion threshold (successful uses) */
|
|
80
|
+
promotionThreshold: number;
|
|
81
|
+
/** Maximum experiences to keep per domain */
|
|
82
|
+
maxExperiencesPerDomain: number;
|
|
83
|
+
/** Enable cross-domain sharing */
|
|
84
|
+
enableCrossDomainSharing: boolean;
|
|
85
|
+
/** Auto-cleanup old experiences */
|
|
86
|
+
autoCleanup: boolean;
|
|
87
|
+
/** Cleanup interval in milliseconds */
|
|
88
|
+
cleanupIntervalMs: number;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Default experience capture configuration
|
|
92
|
+
*/
|
|
93
|
+
export declare const DEFAULT_EXPERIENCE_CONFIG: ExperienceCaptureConfig;
|
|
94
|
+
/**
|
|
95
|
+
* Experience capture statistics
|
|
96
|
+
*/
|
|
97
|
+
export interface ExperienceCaptureStats {
|
|
98
|
+
/** Total experiences captured */
|
|
99
|
+
totalExperiences: number;
|
|
100
|
+
/** Experiences by domain */
|
|
101
|
+
byDomain: Record<QEDomain, number>;
|
|
102
|
+
/** Success rate */
|
|
103
|
+
successRate: number;
|
|
104
|
+
/** Average quality */
|
|
105
|
+
avgQuality: number;
|
|
106
|
+
/** Patterns extracted */
|
|
107
|
+
patternsExtracted: number;
|
|
108
|
+
/** Patterns promoted */
|
|
109
|
+
patternsPromoted: number;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Pattern extraction result
|
|
113
|
+
*/
|
|
114
|
+
export interface PatternExtractionResult {
|
|
115
|
+
/** Whether a new pattern was created */
|
|
116
|
+
newPattern: boolean;
|
|
117
|
+
/** Pattern ID (new or existing) */
|
|
118
|
+
patternId?: string;
|
|
119
|
+
/** Whether an existing pattern was reinforced */
|
|
120
|
+
reinforced: boolean;
|
|
121
|
+
/** Whether pattern was promoted */
|
|
122
|
+
promoted: boolean;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Experience Capture Service
|
|
126
|
+
*
|
|
127
|
+
* Captures and processes task execution experiences for pattern learning.
|
|
128
|
+
*/
|
|
129
|
+
export declare class ExperienceCaptureService {
|
|
130
|
+
private readonly memory;
|
|
131
|
+
private readonly patternStore?;
|
|
132
|
+
private readonly eventBus?;
|
|
133
|
+
private readonly config;
|
|
134
|
+
private initialized;
|
|
135
|
+
private cleanupTimer?;
|
|
136
|
+
private activeExperiences;
|
|
137
|
+
private stats;
|
|
138
|
+
constructor(memory: MemoryBackend, patternStore?: PatternStore | undefined, eventBus?: EventBus | undefined, config?: Partial<ExperienceCaptureConfig>);
|
|
139
|
+
/**
|
|
140
|
+
* Initialize the experience capture service
|
|
141
|
+
*/
|
|
142
|
+
initialize(): Promise<void>;
|
|
143
|
+
/**
|
|
144
|
+
* Start capturing a task experience
|
|
145
|
+
*/
|
|
146
|
+
startCapture(task: string, options?: {
|
|
147
|
+
agent?: string;
|
|
148
|
+
domain?: QEDomain;
|
|
149
|
+
model?: 'haiku' | 'sonnet' | 'opus';
|
|
150
|
+
trajectoryId?: string;
|
|
151
|
+
metadata?: Record<string, unknown>;
|
|
152
|
+
}): string;
|
|
153
|
+
/**
|
|
154
|
+
* Record a step in the experience
|
|
155
|
+
*/
|
|
156
|
+
recordStep(experienceId: string, step: Omit<ExperienceStep, 'timestamp'>): void;
|
|
157
|
+
/**
|
|
158
|
+
* Complete and capture the experience
|
|
159
|
+
*/
|
|
160
|
+
completeCapture(experienceId: string, outcome: {
|
|
161
|
+
success: boolean;
|
|
162
|
+
quality?: number;
|
|
163
|
+
feedback?: string;
|
|
164
|
+
}): Promise<Result<TaskExperience>>;
|
|
165
|
+
/**
|
|
166
|
+
* Get an active experience
|
|
167
|
+
*/
|
|
168
|
+
getActiveExperience(experienceId: string): TaskExperience | undefined;
|
|
169
|
+
/**
|
|
170
|
+
* Get experience by ID
|
|
171
|
+
*/
|
|
172
|
+
getExperience(experienceId: string): Promise<TaskExperience | null>;
|
|
173
|
+
/**
|
|
174
|
+
* Search experiences
|
|
175
|
+
*/
|
|
176
|
+
searchExperiences(options?: {
|
|
177
|
+
domain?: QEDomain;
|
|
178
|
+
agent?: string;
|
|
179
|
+
success?: boolean;
|
|
180
|
+
minQuality?: number;
|
|
181
|
+
limit?: number;
|
|
182
|
+
}): Promise<TaskExperience[]>;
|
|
183
|
+
/**
|
|
184
|
+
* Get experience capture statistics
|
|
185
|
+
*/
|
|
186
|
+
getStats(): Promise<ExperienceCaptureStats>;
|
|
187
|
+
/**
|
|
188
|
+
* Extract pattern from experience
|
|
189
|
+
*/
|
|
190
|
+
extractPattern(experience: TaskExperience): Promise<PatternExtractionResult>;
|
|
191
|
+
/**
|
|
192
|
+
* Share experience across domains
|
|
193
|
+
*/
|
|
194
|
+
shareAcrossDomains(experience: TaskExperience): Promise<void>;
|
|
195
|
+
/**
|
|
196
|
+
* Cleanup old experiences
|
|
197
|
+
*/
|
|
198
|
+
cleanup(): Promise<{
|
|
199
|
+
removed: number;
|
|
200
|
+
}>;
|
|
201
|
+
/**
|
|
202
|
+
* Dispose the service
|
|
203
|
+
*/
|
|
204
|
+
dispose(): Promise<void>;
|
|
205
|
+
/**
|
|
206
|
+
* Store experience in memory
|
|
207
|
+
*/
|
|
208
|
+
private storeExperience;
|
|
209
|
+
/**
|
|
210
|
+
* Delete experience
|
|
211
|
+
*/
|
|
212
|
+
private deleteExperience;
|
|
213
|
+
/**
|
|
214
|
+
* Calculate quality from experience steps
|
|
215
|
+
*/
|
|
216
|
+
private calculateQuality;
|
|
217
|
+
/**
|
|
218
|
+
* Update statistics
|
|
219
|
+
*/
|
|
220
|
+
private updateStats;
|
|
221
|
+
/**
|
|
222
|
+
* Calculate average quality across all experiences
|
|
223
|
+
*/
|
|
224
|
+
private calculateAvgQuality;
|
|
225
|
+
/**
|
|
226
|
+
* Convert experience to pattern options
|
|
227
|
+
*/
|
|
228
|
+
private experienceToPatternOptions;
|
|
229
|
+
/**
|
|
230
|
+
* Detect pattern type from task description
|
|
231
|
+
*/
|
|
232
|
+
private detectPatternType;
|
|
233
|
+
/**
|
|
234
|
+
* Generate pattern name from experience
|
|
235
|
+
*/
|
|
236
|
+
private generatePatternName;
|
|
237
|
+
/**
|
|
238
|
+
* Extract tags from experience
|
|
239
|
+
*/
|
|
240
|
+
private extractTags;
|
|
241
|
+
/**
|
|
242
|
+
* Detect test type from task
|
|
243
|
+
*/
|
|
244
|
+
private detectTestType;
|
|
245
|
+
/**
|
|
246
|
+
* Get related domains for cross-domain sharing
|
|
247
|
+
*/
|
|
248
|
+
private getRelatedDomains;
|
|
249
|
+
/**
|
|
250
|
+
* Emit experience captured event
|
|
251
|
+
*/
|
|
252
|
+
private emitExperienceCaptured;
|
|
253
|
+
/**
|
|
254
|
+
* Load stats from persistence
|
|
255
|
+
*/
|
|
256
|
+
private loadStats;
|
|
257
|
+
/**
|
|
258
|
+
* Save stats to persistence
|
|
259
|
+
*/
|
|
260
|
+
private saveStats;
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Create experience capture service
|
|
264
|
+
*/
|
|
265
|
+
export declare function createExperienceCaptureService(memory: MemoryBackend, patternStore?: PatternStore, eventBus?: EventBus, config?: Partial<ExperienceCaptureConfig>): ExperienceCaptureService;
|
|
266
|
+
//# sourceMappingURL=experience-capture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"experience-capture.d.ts","sourceRoot":"","sources":["../../src/learning/experience-capture.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAGvD,OAAO,KAAK,EAGV,QAAQ,EAET,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,YAAY,EAAuB,MAAM,oBAAoB,CAAC;AAM5E;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,2BAA2B;IAC3B,EAAE,EAAE,MAAM,CAAC;IAEX,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;IAEb,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,gCAAgC;IAChC,MAAM,CAAC,EAAE,QAAQ,CAAC;IAEl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