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
|
@@ -63,4 +63,12 @@ export { TokenMetricsCollector, TokenMetricsCollectorImpl, formatCostUsd, estima
|
|
|
63
63
|
export type { TokenUsage, TaskTokenMetric, AgentTokenMetrics, SessionTokenSummary, TokenEfficiencyReport, Timeframe, TokenCostConfig, } from './token-tracker.js';
|
|
64
64
|
export { ConceptGraph, createConceptGraph, DEFAULT_CONCEPT_GRAPH_CONFIG, } from './dream/index.js';
|
|
65
65
|
export type { ConceptType, EdgeType, InsightType, DreamCycleStatus, ConceptNode, CreateConceptNodeInput, ConceptEdge, CreateEdgeInput, DreamCycle, DreamInsight, ConceptGraphStats, ConceptGraphConfig, PatternImportData, NeighborResult, } from './dream/index.js';
|
|
66
|
+
export { AQELearningEngine, createAQELearningEngine, createDefaultLearningEngine, DEFAULT_ENGINE_CONFIG, } from './aqe-learning-engine.js';
|
|
67
|
+
export type { AQELearningEngineConfig, AQELearningEngineStatus, AQELearningEngineStats, TaskExecution, TaskStep, } from './aqe-learning-engine.js';
|
|
68
|
+
export { ExperienceCaptureService, createExperienceCaptureService, DEFAULT_EXPERIENCE_CONFIG, } from './experience-capture.js';
|
|
69
|
+
export type { TaskExperience, ExperienceStep, ExperienceCaptureConfig, ExperienceCaptureStats, PatternExtractionResult, } from './experience-capture.js';
|
|
70
|
+
export { CausalVerifier, createCausalVerifier, createUninitializedCausalVerifier, } from './causal-verifier.js';
|
|
71
|
+
export type { CausalDirection, CausalVerificationResult, CausalVerificationOptions, } from './causal-verifier.js';
|
|
72
|
+
export { MemoryCoherenceAuditor, createMemoryAuditor, DEFAULT_AUDITOR_CONFIG, } from './memory-auditor.js';
|
|
73
|
+
export type { MemoryAuditResult, PatternHotspot, AuditRecommendation, MemoryAuditorConfig, } from './memory-auditor.js';
|
|
66
74
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/learning/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAMH,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,gCAAgC,GACjC,MAAM,wBAAwB,CAAC;AAEhC,YAAY,EACV,qBAAqB,EACrB,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,wBAAwB,CAAC;AAMhC,OAAO,EAEL,UAAU,EACV,cAAc,EAGd,gBAAgB,EAGhB,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAE1B,YAAY,EACV,QAAQ,EACR,aAAa,EACb,SAAS,EACT,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,kBAAkB,CAAC;AAM1B,OAAO,EAEL,oBAAoB,EAGpB,wBAAwB,EACxB,0BAA0B,EAC1B,yBAAyB,EACzB,oBAAoB,EACpB,yBAAyB,EACzB,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB,EAGpB,WAAW,EACX,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,kBAAkB,CAAC;AAE1B,YAAY,EACV,U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B,EACrB,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,wBAAwB,CAAC;AAMhC,OAAO,EACL,cAAc,EACd,aAAa,GACd,MAAM,yBAAyB,CAAC;AAEjC,YAAY,EACV,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,yBAAyB,CAAC;AAMjC,OAAO,EAEL,qBAAqB,EAGrB,yBAAyB,EAGzB,aAAa,EACb,cAAc,GACf,MAAM,oBAAoB,CAAC;AAE5B,YAAY,EAEV,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,SAAS,EACT,eAAe,GAChB,MAAM,oBAAoB,CAAC;AAM5B,OAAO,EAEL,YAAY,EACZ,kBAAkB,EAGlB,4BAA4B,GAC7B,MAAM,kBAAkB,CAAC;AAE1B,YAAY,EAEV,WAAW,EACX,QAAQ,EACR,WAAW,EACX,gBAAgB,EAGhB,WAAW,EACX,sBAAsB,EAGtB,WAAW,EACX,eAAe,EAGf,UAAU,EAGV,YAAY,EAGZ,iBAAiB,EAGjB,kBAAkB,EAGlB,iBAAiB,EACjB,cAAc,GACf,MAAM,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/learning/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAMH,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,gCAAgC,GACjC,MAAM,wBAAwB,CAAC;AAEhC,YAAY,EACV,qBAAqB,EACrB,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,wBAAwB,CAAC;AAMhC,OAAO,EAEL,UAAU,EACV,cAAc,EAGd,gBAAgB,EAGhB,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,qBAA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e,EAGf,UAAU,EAGV,YAAY,EAGZ,iBAAiB,EAGjB,kBAAkB,EAGlB,iBAAiB,EACjB,cAAc,GACf,MAAM,kBAAkB,CAAC;AAM1B,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,2BAA2B,EAC3B,qBAAqB,GACtB,MAAM,0BAA0B,CAAC;AAElC,YAAY,EACV,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,aAAa,EACb,QAAQ,GACT,MAAM,0BAA0B,CAAC;AAMlC,OAAO,EACL,wBAAwB,EACxB,8BAA8B,EAC9B,yBAAyB,GAC1B,MAAM,yBAAyB,CAAC;AAEjC,YAAY,EACV,cAAc,EACd,cAAc,EACd,uBAAuB,EACvB,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,yBAAyB,CAAC;AAMjC,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,iCAAiC,GAClC,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EACV,eAAe,EACf,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAM9B,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC;AAE7B,YAAY,EACV,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,qBAAqB,CAAC"}
|
|
@@ -113,4 +113,20 @@ export {
|
|
|
113
113
|
ConceptGraph, createConceptGraph,
|
|
114
114
|
// Default config
|
|
115
115
|
DEFAULT_CONCEPT_GRAPH_CONFIG, } from './dream/index.js';
|
|
116
|
+
// ============================================================================
|
|
117
|
+
// Unified AQE Learning Engine (Standalone with CF Enhancement)
|
|
118
|
+
// ============================================================================
|
|
119
|
+
export { AQELearningEngine, createAQELearningEngine, createDefaultLearningEngine, DEFAULT_ENGINE_CONFIG, } from './aqe-learning-engine.js';
|
|
120
|
+
// ============================================================================
|
|
121
|
+
// Experience Capture (Phase 4: Self-Learning)
|
|
122
|
+
// ============================================================================
|
|
123
|
+
export { ExperienceCaptureService, createExperienceCaptureService, DEFAULT_EXPERIENCE_CONFIG, } from './experience-capture.js';
|
|
124
|
+
// ============================================================================
|
|
125
|
+
// Causal Verifier (ADR-052 Phase 3 Action A3.3)
|
|
126
|
+
// ============================================================================
|
|
127
|
+
export { CausalVerifier, createCausalVerifier, createUninitializedCausalVerifier, } from './causal-verifier.js';
|
|
128
|
+
// ============================================================================
|
|
129
|
+
// Memory Coherence Auditor (ADR-052 Phase 3 Action A3.2)
|
|
130
|
+
// ============================================================================
|
|
131
|
+
export { MemoryCoherenceAuditor, createMemoryAuditor, DEFAULT_AUDITOR_CONFIG, } from './memory-auditor.js';
|
|
116
132
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/learning/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,+EAA+E;AAC/E,mBAAmB;AACnB,+EAA+E;AAE/E,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,gCAAgC,GACjC,MAAM,wBAAwB,CAAC;AAWhC,+EAA+E;AAC/E,cAAc;AACd,+EAA+E;AAE/E,OAAO;AACL,kBAAkB;AAClB,UAAU,EACV,cAAc;AAEd,gBAAgB;AAChB,gBAAgB;AAEhB,oBAAoB;AACpB,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAgB1B,+EAA+E;AAC/E,cAAc;AACd,+EAA+E;AAE/E,OAAO;AACL,oBAAoB;AACpB,oBAAoB;AAEpB,4BAA4B;AAC5B,wBAAwB,EACxB,0BAA0B,EAC1B,yBAAyB,EACzB,oBAAoB,EACpB,yBAAyB,EACzB,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB;AAEpB,qBAA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AyB;AAEzB,oBAAoB;AACpB,aAAa,EACb,cAAc,GACf,MAAM,oBAAoB,CAAC;AAa5B,+EAA+E;AAC/E,mDAAmD;AACnD,+EAA+E;AAE/E,OAAO;AACL,eAAe;AACf,YAAY,EACZ,kBAAkB;AAElB,iBAAiB;AACjB,4BAA4B,GAC7B,MAAM,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/learning/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,+EAA+E;AAC/E,mBAAmB;AACnB,+EAA+E;AAE/E,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,gCAAgC,GACjC,MAAM,wBAAwB,CAAC;AAWhC,+EAA+E;AAC/E,cAAc;AACd,+EAA+E;AAE/E,OAAO;AACL,kBAAkB;AAClB,UAAU,EACV,cAAc;AAEd,gBAAgB;AAChB,gBAAgB;AAEhB,oBAAoB;AACpB,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAgB1B,+EAA+E;AAC/E,cAAc;AACd,+EAA+E;AAE/E,OAAO;AACL,oBAAoB;AACpB,oBAAoB;AAEpB,4BAA4B;AAC5B,wBAAwB,EACxB,0BAA0B,EAC1B,yBAAyB,EACzB,oBAAoB,EACpB,yBAAyB,EACzB,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB;AAEpB,qBAAqB;AACrB,WAAW,EACX,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,kBAAkB,CAAC;AAQ1B,+EAA+E;AAC/E,gBAAgB;AAChB,+EAA+E;AAE/E,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,4BAA4B,GAC7B,MAAM,oBAAoB,CAAC;AAU5B,+EAA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AAC/D,+EAA+E;AAE/E,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,2BAA2B,EAC3B,qBAAqB,GACtB,MAAM,0BAA0B,CAAC;AAUlC,+EAA+E;AAC/E,8CAA8C;AAC9C,+EAA+E;AAE/E,OAAO,EACL,wBAAwB,EACxB,8BAA8B,EAC9B,yBAAyB,GAC1B,MAAM,yBAAyB,CAAC;AAUjC,+EAA+E;AAC/E,gDAAgD;AAChD,+EAA+E;AAE/E,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,iCAAiC,GAClC,MAAM,sBAAsB,CAAC;AAQ9B,+EAA+E;AAC/E,yDAAyD;AACzD,+EAA+E;AAE/E,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agentic QE v3 - Memory Coherence Auditor
|
|
3
|
+
* ADR-052 Phase 3 Action A3.2
|
|
4
|
+
*
|
|
5
|
+
* Periodically audits QE pattern memory for contradictions and coherence issues.
|
|
6
|
+
* Uses the Prime Radiant Coherence Service to detect inconsistent patterns.
|
|
7
|
+
*
|
|
8
|
+
* **Architecture:**
|
|
9
|
+
* ```
|
|
10
|
+
* ┌────────────────────────────────────────────────────────────┐
|
|
11
|
+
* │ MEMORY COHERENCE AUDITOR │
|
|
12
|
+
* ├────────────────────────────────────────────────────────────┤
|
|
13
|
+
* │ │
|
|
14
|
+
* │ ┌──────────────┐ ┌──────────────┐ │
|
|
15
|
+
* │ │ QE Patterns │───────▶│ Coherence │ │
|
|
16
|
+
* │ │ (Memory) │ │ Service │ │
|
|
17
|
+
* │ └──────────────┘ └──────┬───────┘ │
|
|
18
|
+
* │ │ │
|
|
19
|
+
* │ ┌────────▼────────┐ │
|
|
20
|
+
* │ │ Energy Analysis │ │
|
|
21
|
+
* │ │ • Contradictions│ │
|
|
22
|
+
* │ │ • Hotspots │ │
|
|
23
|
+
* │ └────────┬────────┘ │
|
|
24
|
+
* │ │ │
|
|
25
|
+
* │ ┌────────▼────────┐ │
|
|
26
|
+
* │ │ Recommendations │ │
|
|
27
|
+
* │ │ • Merge │ │
|
|
28
|
+
* │ │ • Remove │ │
|
|
29
|
+
* │ │ • Review │ │
|
|
30
|
+
* │ └─────────────────┘ │
|
|
31
|
+
* │ │
|
|
32
|
+
* └────────────────────────────────────────────────────────────┘
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import { createMemoryAuditor } from './learning';
|
|
38
|
+
* import { createCoherenceService } from './integrations/coherence';
|
|
39
|
+
*
|
|
40
|
+
* // Create auditor
|
|
41
|
+
* const auditor = createMemoryAuditor(coherenceService, eventBus);
|
|
42
|
+
*
|
|
43
|
+
* // Audit patterns
|
|
44
|
+
* const result = await auditor.auditPatterns(patterns);
|
|
45
|
+
*
|
|
46
|
+
* if (result.contradictionCount > 0) {
|
|
47
|
+
* console.log('Found contradictions:', result.hotspots);
|
|
48
|
+
* console.log('Recommendations:', result.recommendations);
|
|
49
|
+
* }
|
|
50
|
+
*
|
|
51
|
+
* // Background audit
|
|
52
|
+
* await auditor.runBackgroundAudit(async () => {
|
|
53
|
+
* return await patternStore.getAll();
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* @module learning/memory-auditor
|
|
58
|
+
*/
|
|
59
|
+
import type { CoherenceService } from '../integrations/coherence/index.js';
|
|
60
|
+
import type { QEPattern, QEDomain } from './qe-patterns.js';
|
|
61
|
+
import type { EventBus } from '../kernel/interfaces.js';
|
|
62
|
+
/**
|
|
63
|
+
* Result of a memory audit
|
|
64
|
+
*/
|
|
65
|
+
export interface MemoryAuditResult {
|
|
66
|
+
/** Total number of patterns in the database */
|
|
67
|
+
totalPatterns: number;
|
|
68
|
+
/** Number of patterns scanned in this audit */
|
|
69
|
+
scannedPatterns: number;
|
|
70
|
+
/** Number of contradictions found */
|
|
71
|
+
contradictionCount: number;
|
|
72
|
+
/** Overall coherence energy (lower = more coherent) */
|
|
73
|
+
globalEnergy: number;
|
|
74
|
+
/** High-energy domains requiring attention */
|
|
75
|
+
hotspots: PatternHotspot[];
|
|
76
|
+
/** Actionable recommendations */
|
|
77
|
+
recommendations: AuditRecommendation[];
|
|
78
|
+
/** Audit duration in milliseconds */
|
|
79
|
+
duration: number;
|
|
80
|
+
/** When the audit was performed */
|
|
81
|
+
timestamp: Date;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* A domain with high coherence energy
|
|
85
|
+
*/
|
|
86
|
+
export interface PatternHotspot {
|
|
87
|
+
/** The problematic domain */
|
|
88
|
+
domain: QEDomain;
|
|
89
|
+
/** Pattern IDs contributing to high energy */
|
|
90
|
+
patternIds: string[];
|
|
91
|
+
/** Coherence energy for this domain */
|
|
92
|
+
energy: number;
|
|
93
|
+
/** Human-readable description */
|
|
94
|
+
description: string;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Recommendation for resolving coherence issues
|
|
98
|
+
*/
|
|
99
|
+
export interface AuditRecommendation {
|
|
100
|
+
/** Type of action to take */
|
|
101
|
+
type: 'merge' | 'remove' | 'review' | 'split';
|
|
102
|
+
/** Patterns involved */
|
|
103
|
+
patternIds: string[];
|
|
104
|
+
/** Reason for recommendation */
|
|
105
|
+
reason: string;
|
|
106
|
+
/** Priority level */
|
|
107
|
+
priority: 'low' | 'medium' | 'high';
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Configuration for the auditor
|
|
111
|
+
*/
|
|
112
|
+
export interface MemoryAuditorConfig {
|
|
113
|
+
/** Number of patterns to process per batch */
|
|
114
|
+
batchSize: number;
|
|
115
|
+
/** Energy threshold for flagging issues */
|
|
116
|
+
energyThreshold: number;
|
|
117
|
+
/** Energy threshold for hotspot detection */
|
|
118
|
+
hotspotThreshold: number;
|
|
119
|
+
/** Maximum recommendations to generate */
|
|
120
|
+
maxRecommendations: number;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Default auditor configuration
|
|
124
|
+
*/
|
|
125
|
+
export declare const DEFAULT_AUDITOR_CONFIG: MemoryAuditorConfig;
|
|
126
|
+
/**
|
|
127
|
+
* Memory Coherence Auditor
|
|
128
|
+
*
|
|
129
|
+
* Periodically scans QE patterns for coherence issues:
|
|
130
|
+
* - Contradictory patterns (detected via Prime Radiant)
|
|
131
|
+
* - Duplicate/overlapping patterns
|
|
132
|
+
* - Outdated patterns with low usage
|
|
133
|
+
* - Overly broad patterns
|
|
134
|
+
*
|
|
135
|
+
* Generates actionable recommendations:
|
|
136
|
+
* - Merge similar patterns
|
|
137
|
+
* - Remove outdated patterns
|
|
138
|
+
* - Review high-energy patterns
|
|
139
|
+
* - Split overly broad patterns
|
|
140
|
+
*/
|
|
141
|
+
export declare class MemoryCoherenceAuditor {
|
|
142
|
+
private readonly coherenceService;
|
|
143
|
+
private readonly eventBus?;
|
|
144
|
+
private readonly config;
|
|
145
|
+
private isAuditing;
|
|
146
|
+
constructor(coherenceService: CoherenceService, eventBus?: EventBus | undefined, config?: MemoryAuditorConfig);
|
|
147
|
+
/**
|
|
148
|
+
* Audit a collection of patterns for coherence
|
|
149
|
+
*
|
|
150
|
+
* @param patterns - Patterns to audit
|
|
151
|
+
* @returns Audit result with contradictions and recommendations
|
|
152
|
+
*/
|
|
153
|
+
auditPatterns(patterns: QEPattern[]): Promise<MemoryAuditResult>;
|
|
154
|
+
/**
|
|
155
|
+
* Identify coherence hotspots across patterns
|
|
156
|
+
*
|
|
157
|
+
* @param patterns - All patterns to analyze
|
|
158
|
+
* @returns Detected hotspots
|
|
159
|
+
*/
|
|
160
|
+
identifyHotspots(patterns: QEPattern[]): Promise<PatternHotspot[]>;
|
|
161
|
+
/**
|
|
162
|
+
* Generate actionable recommendations from hotspots
|
|
163
|
+
*
|
|
164
|
+
* @param hotspots - Detected hotspots
|
|
165
|
+
* @param patterns - All patterns
|
|
166
|
+
* @returns Prioritized recommendations
|
|
167
|
+
*/
|
|
168
|
+
generateRecommendations(hotspots: PatternHotspot[], patterns: QEPattern[]): Promise<AuditRecommendation[]>;
|
|
169
|
+
/**
|
|
170
|
+
* Run a background audit that doesn't block
|
|
171
|
+
*
|
|
172
|
+
* @param patternSource - Function to fetch patterns
|
|
173
|
+
*/
|
|
174
|
+
runBackgroundAudit(patternSource: () => Promise<QEPattern[]>): Promise<void>;
|
|
175
|
+
/**
|
|
176
|
+
* Group patterns by domain
|
|
177
|
+
*/
|
|
178
|
+
private groupByDomain;
|
|
179
|
+
/**
|
|
180
|
+
* Convert patterns to coherence nodes
|
|
181
|
+
*/
|
|
182
|
+
private patternsToNodes;
|
|
183
|
+
/**
|
|
184
|
+
* Create a fallback embedding for patterns without one
|
|
185
|
+
*/
|
|
186
|
+
private createFallbackEmbedding;
|
|
187
|
+
/**
|
|
188
|
+
* Describe a hotspot in human-readable form
|
|
189
|
+
*/
|
|
190
|
+
private describeHotspot;
|
|
191
|
+
/**
|
|
192
|
+
* Find duplicate-like patterns
|
|
193
|
+
*/
|
|
194
|
+
private findDuplicates;
|
|
195
|
+
/**
|
|
196
|
+
* Find outdated patterns
|
|
197
|
+
*/
|
|
198
|
+
private findOutdated;
|
|
199
|
+
/**
|
|
200
|
+
* Find overly broad patterns
|
|
201
|
+
*/
|
|
202
|
+
private findBroadPatterns;
|
|
203
|
+
/**
|
|
204
|
+
* Normalize text for comparison
|
|
205
|
+
*/
|
|
206
|
+
private normalizeText;
|
|
207
|
+
/**
|
|
208
|
+
* Convert priority to numeric value for sorting
|
|
209
|
+
*/
|
|
210
|
+
private priorityValue;
|
|
211
|
+
/**
|
|
212
|
+
* Emit event if event bus is available
|
|
213
|
+
*/
|
|
214
|
+
private emitEvent;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Create a Memory Coherence Auditor
|
|
218
|
+
*
|
|
219
|
+
* @param coherenceService - Coherence service for verification
|
|
220
|
+
* @param eventBus - Optional event bus for notifications
|
|
221
|
+
* @param config - Optional configuration overrides
|
|
222
|
+
* @returns Configured auditor instance
|
|
223
|
+
*
|
|
224
|
+
* @example
|
|
225
|
+
* ```typescript
|
|
226
|
+
* const auditor = createMemoryAuditor(coherenceService, eventBus, {
|
|
227
|
+
* batchSize: 100,
|
|
228
|
+
* energyThreshold: 0.5,
|
|
229
|
+
* });
|
|
230
|
+
*
|
|
231
|
+
* const result = await auditor.auditPatterns(patterns);
|
|
232
|
+
* ```
|
|
233
|
+
*/
|
|
234
|
+
export declare function createMemoryAuditor(coherenceService: CoherenceService, eventBus?: EventBus, config?: Partial<MemoryAuditorConfig>): MemoryCoherenceAuditor;
|
|
235
|
+
//# sourceMappingURL=memory-auditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory-auditor.d.ts","sourceRoot":"","sources":["../../src/learning/memory-auditor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAkC,MAAM,oCAAoC,CAAC;AAC3G,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAMxD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,+CAA+C;IAC/C,aAAa,EAAE,MAAM,CAAC;IACtB,+CAA+C;IAC/C,eAAe,EAAE,MAAM,CAAC;IACxB,qCAAqC;IACrC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,uDAAuD;IACvD,YAAY,EAAE,MAAM,CAAC;IACrB,8CAA8C;IAC9C,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,iCAAiC;IACjC,eAAe,EAAE,mBAAmB,EAAE,CAAC;IACvC,qCAAqC;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,mCAAmC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