agentic-qe 3.2.3 → 3.3.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/agents/v3/qe-accessibility-auditor.md +90 -0
- package/README.md +49 -7
- package/package.json +8 -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 +253 -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 +25321 -15378
- package/v3/dist/cli/command-registry.d.ts +55 -0
- package/v3/dist/cli/command-registry.d.ts.map +1 -0
- package/v3/dist/cli/command-registry.js +103 -0
- package/v3/dist/cli/command-registry.js.map +1 -0
- 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/code.d.ts +9 -0
- package/v3/dist/cli/commands/code.d.ts.map +1 -0
- package/v3/dist/cli/commands/code.js +254 -0
- package/v3/dist/cli/commands/code.js.map +1 -0
- package/v3/dist/cli/commands/completions.d.ts +8 -0
- package/v3/dist/cli/commands/completions.d.ts.map +1 -0
- package/v3/dist/cli/commands/completions.js +99 -0
- package/v3/dist/cli/commands/completions.js.map +1 -0
- package/v3/dist/cli/commands/coverage.d.ts +9 -0
- package/v3/dist/cli/commands/coverage.d.ts.map +1 -0
- package/v3/dist/cli/commands/coverage.js +208 -0
- package/v3/dist/cli/commands/coverage.js.map +1 -0
- package/v3/dist/cli/commands/fleet.d.ts +11 -0
- package/v3/dist/cli/commands/fleet.d.ts.map +1 -0
- package/v3/dist/cli/commands/fleet.js +338 -0
- package/v3/dist/cli/commands/fleet.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/commands/migrate.d.ts +9 -0
- package/v3/dist/cli/commands/migrate.d.ts.map +1 -0
- package/v3/dist/cli/commands/migrate.js +566 -0
- package/v3/dist/cli/commands/migrate.js.map +1 -0
- package/v3/dist/cli/commands/quality.d.ts +9 -0
- package/v3/dist/cli/commands/quality.d.ts.map +1 -0
- package/v3/dist/cli/commands/quality.js +40 -0
- package/v3/dist/cli/commands/quality.js.map +1 -0
- package/v3/dist/cli/commands/security.d.ts +9 -0
- package/v3/dist/cli/commands/security.d.ts.map +1 -0
- package/v3/dist/cli/commands/security.js +124 -0
- package/v3/dist/cli/commands/security.js.map +1 -0
- package/v3/dist/cli/commands/sync.d.ts +19 -0
- package/v3/dist/cli/commands/sync.d.ts.map +1 -0
- package/v3/dist/cli/commands/sync.js +283 -0
- package/v3/dist/cli/commands/sync.js.map +1 -0
- package/v3/dist/cli/commands/test.d.ts +9 -0
- package/v3/dist/cli/commands/test.d.ts.map +1 -0
- package/v3/dist/cli/commands/test.js +166 -0
- package/v3/dist/cli/commands/test.js.map +1 -0
- package/v3/dist/cli/handlers/agent-handler.d.ts +20 -0
- package/v3/dist/cli/handlers/agent-handler.d.ts.map +1 -0
- package/v3/dist/cli/handlers/agent-handler.js +158 -0
- package/v3/dist/cli/handlers/agent-handler.js.map +1 -0
- package/v3/dist/cli/handlers/domain-handler.d.ts +20 -0
- package/v3/dist/cli/handlers/domain-handler.d.ts.map +1 -0
- package/v3/dist/cli/handlers/domain-handler.js +115 -0
- package/v3/dist/cli/handlers/domain-handler.js.map +1 -0
- package/v3/dist/cli/handlers/index.d.ts +13 -0
- package/v3/dist/cli/handlers/index.d.ts.map +1 -0
- package/v3/dist/cli/handlers/index.js +15 -0
- package/v3/dist/cli/handlers/index.js.map +1 -0
- package/v3/dist/cli/handlers/init-handler.d.ts +38 -0
- package/v3/dist/cli/handlers/init-handler.d.ts.map +1 -0
- package/v3/dist/cli/handlers/init-handler.js +288 -0
- package/v3/dist/cli/handlers/init-handler.js.map +1 -0
- package/v3/dist/cli/handlers/interfaces.d.ts +104 -0
- package/v3/dist/cli/handlers/interfaces.d.ts.map +1 -0
- package/v3/dist/cli/handlers/interfaces.js +109 -0
- package/v3/dist/cli/handlers/interfaces.js.map +1 -0
- package/v3/dist/cli/handlers/protocol-handler.d.ts +19 -0
- package/v3/dist/cli/handlers/protocol-handler.d.ts.map +1 -0
- package/v3/dist/cli/handlers/protocol-handler.js +79 -0
- package/v3/dist/cli/handlers/protocol-handler.js.map +1 -0
- package/v3/dist/cli/handlers/status-handler.d.ts +30 -0
- package/v3/dist/cli/handlers/status-handler.d.ts.map +1 -0
- package/v3/dist/cli/handlers/status-handler.js +218 -0
- package/v3/dist/cli/handlers/status-handler.js.map +1 -0
- package/v3/dist/cli/handlers/task-handler.d.ts +22 -0
- package/v3/dist/cli/handlers/task-handler.d.ts.map +1 -0
- package/v3/dist/cli/handlers/task-handler.js +271 -0
- package/v3/dist/cli/handlers/task-handler.js.map +1 -0
- package/v3/dist/cli/index.d.ts +4 -0
- package/v3/dist/cli/index.d.ts.map +1 -1
- package/v3/dist/cli/index.js +62 -2583
- package/v3/dist/cli/index.js.map +1 -1
- package/v3/dist/cli/wizards/core/index.d.ts +11 -0
- package/v3/dist/cli/wizards/core/index.d.ts.map +1 -0
- package/v3/dist/cli/wizards/core/index.js +15 -0
- package/v3/dist/cli/wizards/core/index.js.map +1 -0
- package/v3/dist/cli/wizards/core/wizard-base.d.ts +87 -0
- package/v3/dist/cli/wizards/core/wizard-base.d.ts.map +1 -0
- package/v3/dist/cli/wizards/core/wizard-base.js +120 -0
- package/v3/dist/cli/wizards/core/wizard-base.js.map +1 -0
- package/v3/dist/cli/wizards/core/wizard-command.d.ts +182 -0
- package/v3/dist/cli/wizards/core/wizard-command.d.ts.map +1 -0
- package/v3/dist/cli/wizards/core/wizard-command.js +45 -0
- package/v3/dist/cli/wizards/core/wizard-command.js.map +1 -0
- package/v3/dist/cli/wizards/core/wizard-step.d.ts +109 -0
- package/v3/dist/cli/wizards/core/wizard-step.d.ts.map +1 -0
- package/v3/dist/cli/wizards/core/wizard-step.js +384 -0
- package/v3/dist/cli/wizards/core/wizard-step.js.map +1 -0
- package/v3/dist/cli/wizards/core/wizard-utils.d.ts +117 -0
- package/v3/dist/cli/wizards/core/wizard-utils.d.ts.map +1 -0
- package/v3/dist/cli/wizards/core/wizard-utils.js +291 -0
- package/v3/dist/cli/wizards/core/wizard-utils.js.map +1 -0
- package/v3/dist/cli/wizards/coverage-wizard.d.ts +13 -68
- package/v3/dist/cli/wizards/coverage-wizard.d.ts.map +1 -1
- package/v3/dist/cli/wizards/coverage-wizard.js +127 -391
- package/v3/dist/cli/wizards/coverage-wizard.js.map +1 -1
- package/v3/dist/cli/wizards/fleet-wizard.d.ts +13 -64
- package/v3/dist/cli/wizards/fleet-wizard.d.ts.map +1 -1
- package/v3/dist/cli/wizards/fleet-wizard.js +150 -363
- package/v3/dist/cli/wizards/fleet-wizard.js.map +1 -1
- package/v3/dist/cli/wizards/index.d.ts +2 -0
- package/v3/dist/cli/wizards/index.d.ts.map +1 -1
- package/v3/dist/cli/wizards/index.js +3 -0
- package/v3/dist/cli/wizards/index.js.map +1 -1
- package/v3/dist/cli/wizards/security-wizard.d.ts +13 -64
- package/v3/dist/cli/wizards/security-wizard.d.ts.map +1 -1
- package/v3/dist/cli/wizards/security-wizard.js +152 -395
- package/v3/dist/cli/wizards/security-wizard.js.map +1 -1
- package/v3/dist/cli/wizards/test-wizard.d.ts +13 -77
- package/v3/dist/cli/wizards/test-wizard.d.ts.map +1 -1
- package/v3/dist/cli/wizards/test-wizard.js +196 -328
- package/v3/dist/cli/wizards/test-wizard.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 +8 -0
- package/v3/dist/coordination/mincut/mincut-health-monitor.d.ts.map +1 -1
- package/v3/dist/coordination/mincut/mincut-health-monitor.js +26 -4
- package/v3/dist/coordination/mincut/mincut-health-monitor.js.map +1 -1
- package/v3/dist/coordination/mincut/queen-integration.d.ts +7 -0
- package/v3/dist/coordination/mincut/queen-integration.d.ts.map +1 -1
- package/v3/dist/coordination/mincut/queen-integration.js +19 -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/coordination/task-executor.js +2 -2
- package/v3/dist/coordination/task-executor.js.map +1 -1
- package/v3/dist/domains/chaos-resilience/plugin.js +2 -2
- package/v3/dist/domains/chaos-resilience/plugin.js.map +1 -1
- package/v3/dist/domains/code-intelligence/plugin.js +2 -2
- package/v3/dist/domains/code-intelligence/plugin.js.map +1 -1
- package/v3/dist/domains/contract-testing/plugin.js +2 -2
- package/v3/dist/domains/contract-testing/plugin.js.map +1 -1
- package/v3/dist/domains/coverage-analysis/plugin.d.ts.map +1 -1
- package/v3/dist/domains/coverage-analysis/plugin.js +2 -1
- package/v3/dist/domains/coverage-analysis/plugin.js.map +1 -1
- package/v3/dist/domains/defect-intelligence/plugin.js +2 -2
- package/v3/dist/domains/defect-intelligence/plugin.js.map +1 -1
- package/v3/dist/domains/domain-interface.d.ts.map +1 -1
- package/v3/dist/domains/domain-interface.js +3 -1
- package/v3/dist/domains/domain-interface.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/learning-optimization/plugin.js +2 -2
- package/v3/dist/domains/learning-optimization/plugin.js.map +1 -1
- package/v3/dist/domains/quality-assessment/plugin.js +2 -2
- package/v3/dist/domains/quality-assessment/plugin.js.map +1 -1
- package/v3/dist/domains/requirements-validation/plugin.js +2 -2
- package/v3/dist/domains/requirements-validation/plugin.js.map +1 -1
- package/v3/dist/domains/security-compliance/plugin.js +2 -2
- package/v3/dist/domains/security-compliance/plugin.js.map +1 -1
- package/v3/dist/domains/test-execution/index.d.ts +2 -1
- package/v3/dist/domains/test-execution/index.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/index.js +0 -2
- package/v3/dist/domains/test-execution/index.js.map +1 -1
- package/v3/dist/domains/test-execution/interfaces.d.ts +222 -25
- package/v3/dist/domains/test-execution/interfaces.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/interfaces.js +130 -3
- package/v3/dist/domains/test-execution/interfaces.js.map +1 -1
- package/v3/dist/domains/test-execution/plugin.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/plugin.js +2 -1
- package/v3/dist/domains/test-execution/plugin.js.map +1 -1
- package/v3/dist/domains/test-execution/test-prioritization-types.d.ts +5 -172
- package/v3/dist/domains/test-execution/test-prioritization-types.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/test-prioritization-types.js +6 -129
- package/v3/dist/domains/test-execution/test-prioritization-types.js.map +1 -1
- package/v3/dist/domains/test-execution/types/index.d.ts +7 -3
- package/v3/dist/domains/test-execution/types/index.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/types/index.js +7 -17
- package/v3/dist/domains/test-execution/types/index.js.map +1 -1
- 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 +72 -3
- package/v3/dist/domains/test-generation/coordinator.js.map +1 -1
- package/v3/dist/domains/test-generation/factories/index.d.ts +8 -0
- package/v3/dist/domains/test-generation/factories/index.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/factories/index.js +8 -0
- package/v3/dist/domains/test-generation/factories/index.js.map +1 -0
- package/v3/dist/domains/test-generation/factories/test-generator-factory.d.ts +108 -0
- package/v3/dist/domains/test-generation/factories/test-generator-factory.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/factories/test-generator-factory.js +158 -0
- package/v3/dist/domains/test-generation/factories/test-generator-factory.js.map +1 -0
- package/v3/dist/domains/test-generation/generators/base-test-generator.d.ts +79 -0
- package/v3/dist/domains/test-generation/generators/base-test-generator.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/generators/base-test-generator.js +252 -0
- package/v3/dist/domains/test-generation/generators/base-test-generator.js.map +1 -0
- package/v3/dist/domains/test-generation/generators/index.d.ts +11 -0
- package/v3/dist/domains/test-generation/generators/index.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/generators/index.js +13 -0
- package/v3/dist/domains/test-generation/generators/index.js.map +1 -0
- package/v3/dist/domains/test-generation/generators/jest-vitest-generator.d.ts +77 -0
- package/v3/dist/domains/test-generation/generators/jest-vitest-generator.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/generators/jest-vitest-generator.js +365 -0
- package/v3/dist/domains/test-generation/generators/jest-vitest-generator.js.map +1 -0
- package/v3/dist/domains/test-generation/generators/mocha-generator.d.ts +56 -0
- package/v3/dist/domains/test-generation/generators/mocha-generator.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/generators/mocha-generator.js +197 -0
- package/v3/dist/domains/test-generation/generators/mocha-generator.js.map +1 -0
- package/v3/dist/domains/test-generation/generators/pytest-generator.d.ts +66 -0
- package/v3/dist/domains/test-generation/generators/pytest-generator.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/generators/pytest-generator.js +240 -0
- package/v3/dist/domains/test-generation/generators/pytest-generator.js.map +1 -0
- package/v3/dist/domains/test-generation/index.d.ts +2 -1
- package/v3/dist/domains/test-generation/index.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/index.js +5 -1
- package/v3/dist/domains/test-generation/index.js.map +1 -1
- package/v3/dist/domains/test-generation/interfaces/index.d.ts +9 -0
- package/v3/dist/domains/test-generation/interfaces/index.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/interfaces/index.js +9 -0
- package/v3/dist/domains/test-generation/interfaces/index.js.map +1 -0
- package/v3/dist/domains/test-generation/interfaces/test-generator.interface.d.ts +166 -0
- package/v3/dist/domains/test-generation/interfaces/test-generator.interface.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/interfaces/test-generator.interface.js +8 -0
- package/v3/dist/domains/test-generation/interfaces/test-generator.interface.js.map +1 -0
- package/v3/dist/domains/test-generation/interfaces.d.ts +163 -24
- package/v3/dist/domains/test-generation/interfaces.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/interfaces.js +2 -2
- package/v3/dist/domains/test-generation/plugin.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/plugin.js +6 -5
- package/v3/dist/domains/test-generation/plugin.js.map +1 -1
- package/v3/dist/domains/test-generation/services/coherence-gate-service.d.ts +245 -0
- package/v3/dist/domains/test-generation/services/coherence-gate-service.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/services/coherence-gate-service.js +454 -0
- package/v3/dist/domains/test-generation/services/coherence-gate-service.js.map +1 -0
- package/v3/dist/domains/test-generation/services/index.d.ts +8 -1
- package/v3/dist/domains/test-generation/services/index.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/services/index.js +10 -1
- package/v3/dist/domains/test-generation/services/index.js.map +1 -1
- package/v3/dist/domains/test-generation/services/property-test-generator.d.ts +34 -0
- package/v3/dist/domains/test-generation/services/property-test-generator.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/services/property-test-generator.js +306 -0
- package/v3/dist/domains/test-generation/services/property-test-generator.js.map +1 -0
- package/v3/dist/domains/test-generation/services/tdd-generator.d.ts +33 -0
- package/v3/dist/domains/test-generation/services/tdd-generator.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/services/tdd-generator.js +342 -0
- package/v3/dist/domains/test-generation/services/tdd-generator.js.map +1 -0
- package/v3/dist/domains/test-generation/services/test-data-generator.d.ts +34 -0
- package/v3/dist/domains/test-generation/services/test-data-generator.d.ts.map +1 -0
- package/v3/dist/domains/test-generation/services/test-data-generator.js +245 -0
- package/v3/dist/domains/test-generation/services/test-data-generator.js.map +1 -0
- package/v3/dist/domains/test-generation/services/test-generator.d.ts +51 -160
- package/v3/dist/domains/test-generation/services/test-generator.d.ts.map +1 -1
- package/v3/dist/domains/test-generation/services/test-generator.js +101 -1858
- package/v3/dist/domains/test-generation/services/test-generator.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 +153 -2
- 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 +61 -0
- package/v3/dist/init/phases/12-verification.d.ts.map +1 -0
- package/v3/dist/init/phases/12-verification.js +370 -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/agentic-flow/model-router/complexity-analyzer.d.ts +24 -62
- package/v3/dist/integrations/agentic-flow/model-router/complexity-analyzer.d.ts.map +1 -1
- package/v3/dist/integrations/agentic-flow/model-router/complexity-analyzer.js +45 -497
- package/v3/dist/integrations/agentic-flow/model-router/complexity-analyzer.js.map +1 -1
- package/v3/dist/integrations/agentic-flow/model-router/router.js +2 -2
- package/v3/dist/integrations/agentic-flow/model-router/router.js.map +1 -1
- package/v3/dist/integrations/agentic-flow/model-router/score-calculator.d.ts +98 -0
- package/v3/dist/integrations/agentic-flow/model-router/score-calculator.d.ts.map +1 -0
- package/v3/dist/integrations/agentic-flow/model-router/score-calculator.js +197 -0
- package/v3/dist/integrations/agentic-flow/model-router/score-calculator.js.map +1 -0
- package/v3/dist/integrations/agentic-flow/model-router/signal-collector.d.ts +102 -0
- package/v3/dist/integrations/agentic-flow/model-router/signal-collector.d.ts.map +1 -0
- package/v3/dist/integrations/agentic-flow/model-router/signal-collector.js +372 -0
- package/v3/dist/integrations/agentic-flow/model-router/signal-collector.js.map +1 -0
- package/v3/dist/integrations/agentic-flow/model-router/tier-recommender.d.ts +64 -0
- package/v3/dist/integrations/agentic-flow/model-router/tier-recommender.d.ts.map +1 -0
- package/v3/dist/integrations/agentic-flow/model-router/tier-recommender.js +120 -0
- package/v3/dist/integrations/agentic-flow/model-router/tier-recommender.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 +856 -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 +565 -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 +480 -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 +8786 -1737
- package/v3/dist/mcp/security/cve-prevention.d.ts +31 -134
- package/v3/dist/mcp/security/cve-prevention.d.ts.map +1 -1
- package/v3/dist/mcp/security/cve-prevention.js +37 -562
- package/v3/dist/mcp/security/cve-prevention.js.map +1 -1
- package/v3/dist/mcp/security/index.d.ts +5 -1
- package/v3/dist/mcp/security/index.d.ts.map +1 -1
- package/v3/dist/mcp/security/validators/command-validator.d.ts +41 -0
- package/v3/dist/mcp/security/validators/command-validator.d.ts.map +1 -0
- package/v3/dist/mcp/security/validators/command-validator.js +123 -0
- package/v3/dist/mcp/security/validators/command-validator.js.map +1 -0
- package/v3/dist/mcp/security/validators/crypto-validator.d.ts +40 -0
- package/v3/dist/mcp/security/validators/crypto-validator.d.ts.map +1 -0
- package/v3/dist/mcp/security/validators/crypto-validator.js +72 -0
- package/v3/dist/mcp/security/validators/crypto-validator.js.map +1 -0
- package/v3/dist/mcp/security/validators/index.d.ts +12 -0
- package/v3/dist/mcp/security/validators/index.d.ts.map +1 -0
- package/v3/dist/mcp/security/validators/index.js +22 -0
- package/v3/dist/mcp/security/validators/index.js.map +1 -0
- package/v3/dist/mcp/security/validators/input-sanitizer.d.ts +56 -0
- package/v3/dist/mcp/security/validators/input-sanitizer.d.ts.map +1 -0
- package/v3/dist/mcp/security/validators/input-sanitizer.js +157 -0
- package/v3/dist/mcp/security/validators/input-sanitizer.js.map +1 -0
- package/v3/dist/mcp/security/validators/interfaces.d.ts +164 -0
- package/v3/dist/mcp/security/validators/interfaces.d.ts.map +1 -0
- package/v3/dist/mcp/security/validators/interfaces.js +6 -0
- package/v3/dist/mcp/security/validators/interfaces.js.map +1 -0
- package/v3/dist/mcp/security/validators/path-traversal-validator.d.ts +50 -0
- package/v3/dist/mcp/security/validators/path-traversal-validator.d.ts.map +1 -0
- package/v3/dist/mcp/security/validators/path-traversal-validator.js +242 -0
- package/v3/dist/mcp/security/validators/path-traversal-validator.js.map +1 -0
- package/v3/dist/mcp/security/validators/regex-safety-validator.d.ts +50 -0
- package/v3/dist/mcp/security/validators/regex-safety-validator.d.ts.map +1 -0
- package/v3/dist/mcp/security/validators/regex-safety-validator.js +183 -0
- package/v3/dist/mcp/security/validators/regex-safety-validator.js.map +1 -0
- package/v3/dist/mcp/security/validators/validation-orchestrator.d.ts +66 -0
- package/v3/dist/mcp/security/validators/validation-orchestrator.d.ts.map +1 -0
- package/v3/dist/mcp/security/validators/validation-orchestrator.js +146 -0
- package/v3/dist/mcp/security/validators/validation-orchestrator.js.map +1 -0
- package/v3/dist/mcp/server.d.ts.map +1 -1
- package/v3/dist/mcp/server.js +1 -0
- package/v3/dist/mcp/server.js.map +1 -1
- package/v3/dist/mcp/tool-registry.d.ts +3 -1
- package/v3/dist/mcp/tool-registry.d.ts.map +1 -1
- package/v3/dist/mcp/tool-registry.js +155 -2
- package/v3/dist/mcp/tool-registry.js.map +1 -1
- 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/tools/test-generation/generate.d.ts +1 -0
- package/v3/dist/mcp/tools/test-generation/generate.d.ts.map +1 -1
- package/v3/dist/mcp/tools/test-generation/generate.js +3 -2
- package/v3/dist/mcp/tools/test-generation/generate.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/dist/sync/cloud/index.d.ts +8 -0
- package/v3/dist/sync/cloud/index.d.ts.map +1 -0
- package/v3/dist/sync/cloud/index.js +8 -0
- package/v3/dist/sync/cloud/index.js.map +1 -0
- package/v3/dist/sync/cloud/postgres-writer.d.ts +88 -0
- package/v3/dist/sync/cloud/postgres-writer.d.ts.map +1 -0
- package/v3/dist/sync/cloud/postgres-writer.js +319 -0
- package/v3/dist/sync/cloud/postgres-writer.js.map +1 -0
- package/v3/dist/sync/cloud/tunnel-manager.d.ts +75 -0
- package/v3/dist/sync/cloud/tunnel-manager.d.ts.map +1 -0
- package/v3/dist/sync/cloud/tunnel-manager.js +221 -0
- package/v3/dist/sync/cloud/tunnel-manager.js.map +1 -0
- package/v3/dist/sync/index.d.ts +35 -0
- package/v3/dist/sync/index.d.ts.map +1 -0
- package/v3/dist/sync/index.js +35 -0
- package/v3/dist/sync/index.js.map +1 -0
- package/v3/dist/sync/interfaces.d.ts +245 -0
- package/v3/dist/sync/interfaces.d.ts.map +1 -0
- package/v3/dist/sync/interfaces.js +160 -0
- package/v3/dist/sync/interfaces.js.map +1 -0
- package/v3/dist/sync/readers/index.d.ts +8 -0
- package/v3/dist/sync/readers/index.d.ts.map +1 -0
- package/v3/dist/sync/readers/index.js +8 -0
- package/v3/dist/sync/readers/index.js.map +1 -0
- package/v3/dist/sync/readers/json-reader.d.ts +95 -0
- package/v3/dist/sync/readers/json-reader.d.ts.map +1 -0
- package/v3/dist/sync/readers/json-reader.js +306 -0
- package/v3/dist/sync/readers/json-reader.js.map +1 -0
- package/v3/dist/sync/readers/sqlite-reader.d.ts +88 -0
- package/v3/dist/sync/readers/sqlite-reader.d.ts.map +1 -0
- package/v3/dist/sync/readers/sqlite-reader.js +255 -0
- package/v3/dist/sync/readers/sqlite-reader.js.map +1 -0
- package/v3/dist/sync/sync-agent.d.ts +116 -0
- package/v3/dist/sync/sync-agent.d.ts.map +1 -0
- package/v3/dist/sync/sync-agent.js +416 -0
- package/v3/dist/sync/sync-agent.js.map +1 -0
- package/v3/package.json +17 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aqe-learning-engine.js","sourceRoot":"","sources":["../../src/learning/aqe-learning-engine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAIH,OAAO,EAAM,GAAG,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAEL,qBAAqB,GAStB,MAAM,wBAAwB,CAAC;AAKhC,OAAO,EAEL,sBAAsB,GAMvB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEL,8BAA8B,GAG/B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAqB,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EACL,UAAU,EACV,sBAAsB,GAGvB,MAAM,oCAAoC,CAAC;AA6B5C;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAiD;IACjF,gBAAgB,EAAE,IAAI;IACtB,uBAAuB,EAAE,IAAI;IAC7B,sBAAsB,EAAE,IAAI;IAC5B,kBAAkB,EAAE,CAAC;CACtB,CAAC;AAmDF,+EAA+E;AAC/E,sBAAsB;AACtB,+EAA+E;AAE/E;;;;GAIG;AACH,MAAM,OAAO,iBAAiB;IAeT;IAEA;IAhBF,MAAM,CAA0B;IACzC,aAAa,CAAmB;IAChC,gBAAgB,CAAoB;IACpC,iBAAiB,CAA4B;IAC7C,YAAY,CAAgB;IAC5B,gBAAgB,CAAqB;IACrC,WAAW,GAAG,KAAK,CAAC;IAE5B,gBAAgB;IACR,WAAW,GAA+B,IAAI,GAAG,EAAE,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,CAAC;YACtB,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC;QACpC,CAAC;QACD,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;YACvB,MAAM,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC;QACrC,CAAC;QACD,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;QACzB,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;IAC3B,CAAC;CACF;AAED,+EAA+E;AAC/E,oBAAoB;AACpB,+EAA+E;AAE/E;;;;;;;;;;GAUG;AACH,MAAM,UAAU,uBAAuB,CACrC,MAAqB,EACrB,MAA+B,EAC/B,QAAmB;IAEnB,OAAO,IAAI,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;AACzD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,2BAA2B,CACzC,MAAqB,EACrB,WAAmB,EACnB,QAAmB;IAEnB,OAAO,uBAAuB,CAAC,MAAM,EAAE,EAAE,WAAW,EAAE,EAAE,QAAQ,CAAC,CAAC;AACpE,CAAC"}
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agentic QE v3 - Causal Verifier
|
|
3
|
+
* ADR-052 Phase 3 Action A3.3: Integrate CausalEngine with Causal Discovery
|
|
4
|
+
*
|
|
5
|
+
* Provides causal verification using the Prime Radiant CausalEngine from
|
|
6
|
+
* prime-radiant-advanced-wasm. Integrates intervention-based causal inference
|
|
7
|
+
* with the existing STDP-based causal discovery modules.
|
|
8
|
+
*
|
|
9
|
+
* Use Cases:
|
|
10
|
+
* - Verify if pattern application causally leads to test success/failure
|
|
11
|
+
* - Detect spurious correlations in test failure cascades
|
|
12
|
+
* - Validate causal links in the STDP-based causal graph
|
|
13
|
+
* - Distinguish true causation from confounded relationships
|
|
14
|
+
*
|
|
15
|
+
* @module learning/causal-verifier
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```typescript
|
|
19
|
+
* import { createCausalVerifier } from './learning/causal-verifier';
|
|
20
|
+
* import { wasmLoader } from './integrations/coherence/wasm-loader';
|
|
21
|
+
*
|
|
22
|
+
* const verifier = createCausalVerifier(wasmLoader);
|
|
23
|
+
* await verifier.initialize();
|
|
24
|
+
*
|
|
25
|
+
* // Verify pattern causality
|
|
26
|
+
* const result = await verifier.verifyPatternCausality(
|
|
27
|
+
* 'pattern-tdd-unit-tests',
|
|
28
|
+
* 'success',
|
|
29
|
+
* { testCount: 50, coverage: 0.85 }
|
|
30
|
+
* );
|
|
31
|
+
*
|
|
32
|
+
* if (result.isSpurious) {
|
|
33
|
+
* console.log('Spurious correlation detected!');
|
|
34
|
+
* }
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
import type { IWasmLoader } from '../integrations/coherence/types.js';
|
|
38
|
+
/**
|
|
39
|
+
* Direction of a causal relationship
|
|
40
|
+
*/
|
|
41
|
+
export type CausalDirection = 'forward' | 'reverse' | 'bidirectional' | 'none';
|
|
42
|
+
/**
|
|
43
|
+
* Result of causal verification
|
|
44
|
+
*/
|
|
45
|
+
export interface CausalVerificationResult {
|
|
46
|
+
/** Name of the cause variable */
|
|
47
|
+
cause: string;
|
|
48
|
+
/** Name of the effect variable */
|
|
49
|
+
effect: string;
|
|
50
|
+
/** Whether the correlation is spurious */
|
|
51
|
+
isSpurious: boolean;
|
|
52
|
+
/** Direction of the causal relationship */
|
|
53
|
+
direction: CausalDirection;
|
|
54
|
+
/** Confidence in the causal analysis (0-1) */
|
|
55
|
+
confidence: number;
|
|
56
|
+
/** Effect strength (0-1) */
|
|
57
|
+
effectStrength: number;
|
|
58
|
+
/** Detected confounders */
|
|
59
|
+
confounders: string[];
|
|
60
|
+
/** Human-readable explanation */
|
|
61
|
+
explanation: string;
|
|
62
|
+
/** Analysis duration in milliseconds */
|
|
63
|
+
durationMs: number;
|
|
64
|
+
/** Intervention result details */
|
|
65
|
+
interventionResult?: {
|
|
66
|
+
/** Do-calculus result */
|
|
67
|
+
doCalcResult: number;
|
|
68
|
+
/** Counterfactual analysis */
|
|
69
|
+
counterfactual: number;
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Options for causal verification
|
|
74
|
+
*/
|
|
75
|
+
export interface CausalVerificationOptions {
|
|
76
|
+
/** Optional confounders to control for */
|
|
77
|
+
confounders?: Record<string, number[]>;
|
|
78
|
+
/** Minimum sample size for reliable analysis (default: 30) */
|
|
79
|
+
minSampleSize?: number;
|
|
80
|
+
/** Confidence threshold for verification (default: 0.7) */
|
|
81
|
+
confidenceThreshold?: number;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Causal Verifier using Prime Radiant CausalEngine
|
|
85
|
+
*
|
|
86
|
+
* Integrates intervention-based causal inference with the existing
|
|
87
|
+
* STDP-based causal discovery modules. Provides rigorous verification
|
|
88
|
+
* of causal relationships and spurious correlation detection.
|
|
89
|
+
*/
|
|
90
|
+
export declare class CausalVerifier {
|
|
91
|
+
private readonly wasmLoader;
|
|
92
|
+
private causalAdapter;
|
|
93
|
+
private initialized;
|
|
94
|
+
/**
|
|
95
|
+
* Create a new CausalVerifier
|
|
96
|
+
*
|
|
97
|
+
* @param wasmLoader - WASM module loader for coherence engines
|
|
98
|
+
*/
|
|
99
|
+
constructor(wasmLoader: IWasmLoader);
|
|
100
|
+
/**
|
|
101
|
+
* Initialize the causal verifier by loading the WASM module
|
|
102
|
+
*/
|
|
103
|
+
initialize(): Promise<void>;
|
|
104
|
+
/**
|
|
105
|
+
* Check if the verifier is initialized
|
|
106
|
+
*/
|
|
107
|
+
isInitialized(): boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Ensure the verifier is initialized before use
|
|
110
|
+
*/
|
|
111
|
+
private ensureInitialized;
|
|
112
|
+
/**
|
|
113
|
+
* Verify a causal relationship between two variables
|
|
114
|
+
*
|
|
115
|
+
* @param cause - Name of the potential cause variable
|
|
116
|
+
* @param effect - Name of the potential effect variable
|
|
117
|
+
* @param causeValues - Observed values of the cause
|
|
118
|
+
* @param effectValues - Observed values of the effect
|
|
119
|
+
* @param options - Optional verification settings
|
|
120
|
+
* @returns Causal verification result
|
|
121
|
+
*
|
|
122
|
+
* @example
|
|
123
|
+
* ```typescript
|
|
124
|
+
* const result = await verifier.verifyCausalLink(
|
|
125
|
+
* 'test_count',
|
|
126
|
+
* 'bug_detection_rate',
|
|
127
|
+
* [10, 20, 30, 40, 50],
|
|
128
|
+
* [0.1, 0.2, 0.3, 0.4, 0.5]
|
|
129
|
+
* );
|
|
130
|
+
* ```
|
|
131
|
+
*/
|
|
132
|
+
verifyCausalLink(cause: string, effect: string, causeValues: number[], effectValues: number[], options?: CausalVerificationOptions): Promise<CausalVerificationResult>;
|
|
133
|
+
/**
|
|
134
|
+
* Verify if pattern application causally leads to a specific outcome
|
|
135
|
+
*
|
|
136
|
+
* @param patternId - Pattern identifier
|
|
137
|
+
* @param outcome - Expected outcome: 'success' or 'failure'
|
|
138
|
+
* @param context - Context data with observations
|
|
139
|
+
* @returns Causal verification result
|
|
140
|
+
*
|
|
141
|
+
* @example
|
|
142
|
+
* ```typescript
|
|
143
|
+
* const result = await verifier.verifyPatternCausality(
|
|
144
|
+
* 'pattern-tdd-unit-tests',
|
|
145
|
+
* 'success',
|
|
146
|
+
* {
|
|
147
|
+
* patternApplications: [1, 1, 0, 1, 1],
|
|
148
|
+
* testSuccesses: [1, 1, 0, 1, 1]
|
|
149
|
+
* }
|
|
150
|
+
* );
|
|
151
|
+
* ```
|
|
152
|
+
*/
|
|
153
|
+
verifyPatternCausality(patternId: string, outcome: 'success' | 'failure', context: {
|
|
154
|
+
patternApplications: number[];
|
|
155
|
+
outcomes: number[];
|
|
156
|
+
confounders?: Record<string, number[]>;
|
|
157
|
+
}): Promise<CausalVerificationResult>;
|
|
158
|
+
/**
|
|
159
|
+
* Verify a causal link in the STDP-based causal graph
|
|
160
|
+
*
|
|
161
|
+
* This integrates with the existing CausalGraphImpl to verify
|
|
162
|
+
* whether a discovered causal edge is a true causal relationship
|
|
163
|
+
* or a spurious correlation.
|
|
164
|
+
*
|
|
165
|
+
* @param sourceEvent - Source event type
|
|
166
|
+
* @param targetEvent - Target event type
|
|
167
|
+
* @param observations - Temporal observations of the events
|
|
168
|
+
* @returns Causal verification result
|
|
169
|
+
*
|
|
170
|
+
* @example
|
|
171
|
+
* ```typescript
|
|
172
|
+
* const result = await verifier.verifyCausalEdge(
|
|
173
|
+
* 'test_failed',
|
|
174
|
+
* 'build_failed',
|
|
175
|
+
* {
|
|
176
|
+
* sourceOccurrences: [1, 0, 1, 1, 0],
|
|
177
|
+
* targetOccurrences: [0, 0, 1, 1, 0],
|
|
178
|
+
* }
|
|
179
|
+
* );
|
|
180
|
+
* ```
|
|
181
|
+
*/
|
|
182
|
+
verifyCausalEdge(sourceEvent: string, targetEvent: string, observations: {
|
|
183
|
+
sourceOccurrences: number[];
|
|
184
|
+
targetOccurrences: number[];
|
|
185
|
+
confounders?: Record<string, number[]>;
|
|
186
|
+
}): Promise<CausalVerificationResult>;
|
|
187
|
+
/**
|
|
188
|
+
* Batch verify multiple causal links
|
|
189
|
+
*
|
|
190
|
+
* @param links - Array of causal links to verify
|
|
191
|
+
* @returns Array of verification results
|
|
192
|
+
*/
|
|
193
|
+
verifyBatch(links: Array<{
|
|
194
|
+
cause: string;
|
|
195
|
+
effect: string;
|
|
196
|
+
causeValues: number[];
|
|
197
|
+
effectValues: number[];
|
|
198
|
+
options?: CausalVerificationOptions;
|
|
199
|
+
}>): Promise<CausalVerificationResult[]>;
|
|
200
|
+
/**
|
|
201
|
+
* Determine the direction of the causal relationship
|
|
202
|
+
*/
|
|
203
|
+
private determineDirection;
|
|
204
|
+
/**
|
|
205
|
+
* Estimate counterfactual effect
|
|
206
|
+
*
|
|
207
|
+
* This is a simplified estimation. In a full implementation,
|
|
208
|
+
* this would use the CausalEngine's counterfactual methods.
|
|
209
|
+
*/
|
|
210
|
+
private estimateCounterfactual;
|
|
211
|
+
/**
|
|
212
|
+
* Clear the engine state
|
|
213
|
+
*/
|
|
214
|
+
clear(): void;
|
|
215
|
+
/**
|
|
216
|
+
* Dispose of verifier resources
|
|
217
|
+
*/
|
|
218
|
+
dispose(): void;
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Create and initialize a CausalVerifier
|
|
222
|
+
*
|
|
223
|
+
* @param wasmLoader - WASM module loader
|
|
224
|
+
* @returns Initialized causal verifier
|
|
225
|
+
*
|
|
226
|
+
* @example
|
|
227
|
+
* ```typescript
|
|
228
|
+
* import { createCausalVerifier } from './learning/causal-verifier';
|
|
229
|
+
* import { wasmLoader } from './integrations/coherence/wasm-loader';
|
|
230
|
+
*
|
|
231
|
+
* const verifier = await createCausalVerifier(wasmLoader);
|
|
232
|
+
* ```
|
|
233
|
+
*/
|
|
234
|
+
export declare function createCausalVerifier(wasmLoader: IWasmLoader): Promise<CausalVerifier>;
|
|
235
|
+
/**
|
|
236
|
+
* Create a CausalVerifier without initializing
|
|
237
|
+
*
|
|
238
|
+
* Use this when you want to delay initialization or handle it manually.
|
|
239
|
+
*
|
|
240
|
+
* @param wasmLoader - WASM module loader
|
|
241
|
+
* @returns Uninitialized causal verifier
|
|
242
|
+
*/
|
|
243
|
+
export declare function createUninitializedCausalVerifier(wasmLoader: IWasmLoader): CausalVerifier;
|
|
244
|
+
//# sourceMappingURL=causal-verifier.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"causal-verifier.d.ts","sourceRoot":"","sources":["../../src/learning/causal-verifier.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAGH,OAAO,KAAK,EAAkC,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAOtG;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG,eAAe,GAAG,MAAM,CAAC;AAE/E;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,i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AAC,cAAc,CAAC,CAIzB;AAED;;;;;;;GAOG;AACH,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,WAAW,GACtB,cAAc,CAEhB"}
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agentic QE v3 - Causal Verifier
|
|
3
|
+
* ADR-052 Phase 3 Action A3.3: Integrate CausalEngine with Causal Discovery
|
|
4
|
+
*
|
|
5
|
+
* Provides causal verification using the Prime Radiant CausalEngine from
|
|
6
|
+
* prime-radiant-advanced-wasm. Integrates intervention-based causal inference
|
|
7
|
+
* with the existing STDP-based causal discovery modules.
|
|
8
|
+
*
|
|
9
|
+
* Use Cases:
|
|
10
|
+
* - Verify if pattern application causally leads to test success/failure
|
|
11
|
+
* - Detect spurious correlations in test failure cascades
|
|
12
|
+
* - Validate causal links in the STDP-based causal graph
|
|
13
|
+
* - Distinguish true causation from confounded relationships
|
|
14
|
+
*
|
|
15
|
+
* @module learning/causal-verifier
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```typescript
|
|
19
|
+
* import { createCausalVerifier } from './learning/causal-verifier';
|
|
20
|
+
* import { wasmLoader } from './integrations/coherence/wasm-loader';
|
|
21
|
+
*
|
|
22
|
+
* const verifier = createCausalVerifier(wasmLoader);
|
|
23
|
+
* await verifier.initialize();
|
|
24
|
+
*
|
|
25
|
+
* // Verify pattern causality
|
|
26
|
+
* const result = await verifier.verifyPatternCausality(
|
|
27
|
+
* 'pattern-tdd-unit-tests',
|
|
28
|
+
* 'success',
|
|
29
|
+
* { testCount: 50, coverage: 0.85 }
|
|
30
|
+
* );
|
|
31
|
+
*
|
|
32
|
+
* if (result.isSpurious) {
|
|
33
|
+
* console.log('Spurious correlation detected!');
|
|
34
|
+
* }
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
import { createCausalAdapter } from '../integrations/coherence/engines/causal-adapter.js';
|
|
38
|
+
// ============================================================================
|
|
39
|
+
// Causal Verifier Implementation
|
|
40
|
+
// ============================================================================
|
|
41
|
+
/**
|
|
42
|
+
* Causal Verifier using Prime Radiant CausalEngine
|
|
43
|
+
*
|
|
44
|
+
* Integrates intervention-based causal inference with the existing
|
|
45
|
+
* STDP-based causal discovery modules. Provides rigorous verification
|
|
46
|
+
* of causal relationships and spurious correlation detection.
|
|
47
|
+
*/
|
|
48
|
+
export class CausalVerifier {
|
|
49
|
+
wasmLoader;
|
|
50
|
+
causalAdapter = null;
|
|
51
|
+
initialized = false;
|
|
52
|
+
/**
|
|
53
|
+
* Create a new CausalVerifier
|
|
54
|
+
*
|
|
55
|
+
* @param wasmLoader - WASM module loader for coherence engines
|
|
56
|
+
*/
|
|
57
|
+
constructor(wasmLoader) {
|
|
58
|
+
this.wasmLoader = wasmLoader;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Initialize the causal verifier by loading the WASM module
|
|
62
|
+
*/
|
|
63
|
+
async initialize() {
|
|
64
|
+
if (this.initialized)
|
|
65
|
+
return;
|
|
66
|
+
const isAvailable = await this.wasmLoader.isAvailable();
|
|
67
|
+
if (!isAvailable) {
|
|
68
|
+
throw new Error('WASM module is not available. Cannot initialize CausalVerifier. ' +
|
|
69
|
+
'Ensure prime-radiant-advanced-wasm is installed.');
|
|
70
|
+
}
|
|
71
|
+
this.causalAdapter = await createCausalAdapter(this.wasmLoader);
|
|
72
|
+
this.initialized = true;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Check if the verifier is initialized
|
|
76
|
+
*/
|
|
77
|
+
isInitialized() {
|
|
78
|
+
return this.initialized;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Ensure the verifier is initialized before use
|
|
82
|
+
*/
|
|
83
|
+
ensureInitialized() {
|
|
84
|
+
if (!this.initialized || !this.causalAdapter) {
|
|
85
|
+
throw new Error('CausalVerifier not initialized. Call initialize() first.');
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Verify a causal relationship between two variables
|
|
90
|
+
*
|
|
91
|
+
* @param cause - Name of the potential cause variable
|
|
92
|
+
* @param effect - Name of the potential effect variable
|
|
93
|
+
* @param causeValues - Observed values of the cause
|
|
94
|
+
* @param effectValues - Observed values of the effect
|
|
95
|
+
* @param options - Optional verification settings
|
|
96
|
+
* @returns Causal verification result
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* ```typescript
|
|
100
|
+
* const result = await verifier.verifyCausalLink(
|
|
101
|
+
* 'test_count',
|
|
102
|
+
* 'bug_detection_rate',
|
|
103
|
+
* [10, 20, 30, 40, 50],
|
|
104
|
+
* [0.1, 0.2, 0.3, 0.4, 0.5]
|
|
105
|
+
* );
|
|
106
|
+
* ```
|
|
107
|
+
*/
|
|
108
|
+
async verifyCausalLink(cause, effect, causeValues, effectValues, options = {}) {
|
|
109
|
+
this.ensureInitialized();
|
|
110
|
+
const { confounders = {}, minSampleSize = 30, confidenceThreshold = 0.7, } = options;
|
|
111
|
+
// Validate sample size
|
|
112
|
+
if (causeValues.length < minSampleSize) {
|
|
113
|
+
throw new Error(`Sample size ${causeValues.length} is below minimum ${minSampleSize}. ` +
|
|
114
|
+
'Cannot perform reliable causal analysis.');
|
|
115
|
+
}
|
|
116
|
+
if (causeValues.length !== effectValues.length) {
|
|
117
|
+
throw new Error(`Cause and effect arrays must have same length. ` +
|
|
118
|
+
`Got ${causeValues.length} and ${effectValues.length}.`);
|
|
119
|
+
}
|
|
120
|
+
// Build causal data
|
|
121
|
+
const causalData = {
|
|
122
|
+
causeValues,
|
|
123
|
+
effectValues,
|
|
124
|
+
sampleSize: causeValues.length,
|
|
125
|
+
confounders,
|
|
126
|
+
};
|
|
127
|
+
// Perform verification using the adapter
|
|
128
|
+
const verification = this.causalAdapter.verifyCausality(cause, effect, causalData);
|
|
129
|
+
// Determine causal direction
|
|
130
|
+
const direction = this.determineDirection(verification);
|
|
131
|
+
// Build intervention result
|
|
132
|
+
const interventionResult = {
|
|
133
|
+
doCalcResult: verification.effectStrength,
|
|
134
|
+
counterfactual: this.estimateCounterfactual(verification),
|
|
135
|
+
};
|
|
136
|
+
return {
|
|
137
|
+
cause,
|
|
138
|
+
effect,
|
|
139
|
+
isSpurious: verification.relationshipType === 'spurious',
|
|
140
|
+
direction,
|
|
141
|
+
confidence: verification.confidence,
|
|
142
|
+
effectStrength: verification.effectStrength,
|
|
143
|
+
confounders: verification.confounders,
|
|
144
|
+
explanation: verification.explanation,
|
|
145
|
+
durationMs: verification.durationMs,
|
|
146
|
+
interventionResult,
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Verify if pattern application causally leads to a specific outcome
|
|
151
|
+
*
|
|
152
|
+
* @param patternId - Pattern identifier
|
|
153
|
+
* @param outcome - Expected outcome: 'success' or 'failure'
|
|
154
|
+
* @param context - Context data with observations
|
|
155
|
+
* @returns Causal verification result
|
|
156
|
+
*
|
|
157
|
+
* @example
|
|
158
|
+
* ```typescript
|
|
159
|
+
* const result = await verifier.verifyPatternCausality(
|
|
160
|
+
* 'pattern-tdd-unit-tests',
|
|
161
|
+
* 'success',
|
|
162
|
+
* {
|
|
163
|
+
* patternApplications: [1, 1, 0, 1, 1],
|
|
164
|
+
* testSuccesses: [1, 1, 0, 1, 1]
|
|
165
|
+
* }
|
|
166
|
+
* );
|
|
167
|
+
* ```
|
|
168
|
+
*/
|
|
169
|
+
async verifyPatternCausality(patternId, outcome, context) {
|
|
170
|
+
const { patternApplications, outcomes, confounders } = context;
|
|
171
|
+
return this.verifyCausalLink(`pattern:${patternId}`, `outcome:${outcome}`, patternApplications, outcomes, { confounders });
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Verify a causal link in the STDP-based causal graph
|
|
175
|
+
*
|
|
176
|
+
* This integrates with the existing CausalGraphImpl to verify
|
|
177
|
+
* whether a discovered causal edge is a true causal relationship
|
|
178
|
+
* or a spurious correlation.
|
|
179
|
+
*
|
|
180
|
+
* @param sourceEvent - Source event type
|
|
181
|
+
* @param targetEvent - Target event type
|
|
182
|
+
* @param observations - Temporal observations of the events
|
|
183
|
+
* @returns Causal verification result
|
|
184
|
+
*
|
|
185
|
+
* @example
|
|
186
|
+
* ```typescript
|
|
187
|
+
* const result = await verifier.verifyCausalEdge(
|
|
188
|
+
* 'test_failed',
|
|
189
|
+
* 'build_failed',
|
|
190
|
+
* {
|
|
191
|
+
* sourceOccurrences: [1, 0, 1, 1, 0],
|
|
192
|
+
* targetOccurrences: [0, 0, 1, 1, 0],
|
|
193
|
+
* }
|
|
194
|
+
* );
|
|
195
|
+
* ```
|
|
196
|
+
*/
|
|
197
|
+
async verifyCausalEdge(sourceEvent, targetEvent, observations) {
|
|
198
|
+
const { sourceOccurrences, targetOccurrences, confounders } = observations;
|
|
199
|
+
return this.verifyCausalLink(sourceEvent, targetEvent, sourceOccurrences, targetOccurrences, { confounders });
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Batch verify multiple causal links
|
|
203
|
+
*
|
|
204
|
+
* @param links - Array of causal links to verify
|
|
205
|
+
* @returns Array of verification results
|
|
206
|
+
*/
|
|
207
|
+
async verifyBatch(links) {
|
|
208
|
+
this.ensureInitialized();
|
|
209
|
+
const results = [];
|
|
210
|
+
for (const link of links) {
|
|
211
|
+
const result = await this.verifyCausalLink(link.cause, link.effect, link.causeValues, link.effectValues, link.options);
|
|
212
|
+
results.push(result);
|
|
213
|
+
}
|
|
214
|
+
return results;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Determine the direction of the causal relationship
|
|
218
|
+
*/
|
|
219
|
+
determineDirection(verification) {
|
|
220
|
+
const { relationshipType, effectStrength } = verification;
|
|
221
|
+
if (relationshipType === 'none' || relationshipType === 'spurious') {
|
|
222
|
+
return 'none';
|
|
223
|
+
}
|
|
224
|
+
if (relationshipType === 'reverse') {
|
|
225
|
+
return 'reverse';
|
|
226
|
+
}
|
|
227
|
+
if (relationshipType === 'confounded') {
|
|
228
|
+
// Confounded relationships might still have directionality
|
|
229
|
+
return effectStrength > 0.5 ? 'forward' : 'bidirectional';
|
|
230
|
+
}
|
|
231
|
+
// causal type
|
|
232
|
+
return effectStrength > 0.3 ? 'forward' : 'bidirectional';
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Estimate counterfactual effect
|
|
236
|
+
*
|
|
237
|
+
* This is a simplified estimation. In a full implementation,
|
|
238
|
+
* this would use the CausalEngine's counterfactual methods.
|
|
239
|
+
*/
|
|
240
|
+
estimateCounterfactual(verification) {
|
|
241
|
+
const { effectStrength, relationshipType } = verification;
|
|
242
|
+
if (relationshipType === 'spurious' || relationshipType === 'none') {
|
|
243
|
+
return 0;
|
|
244
|
+
}
|
|
245
|
+
// Estimate counterfactual as inverse of observed effect
|
|
246
|
+
return 1 - effectStrength;
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Clear the engine state
|
|
250
|
+
*/
|
|
251
|
+
clear() {
|
|
252
|
+
if (this.causalAdapter) {
|
|
253
|
+
this.causalAdapter.clear();
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Dispose of verifier resources
|
|
258
|
+
*/
|
|
259
|
+
dispose() {
|
|
260
|
+
if (this.causalAdapter) {
|
|
261
|
+
this.causalAdapter.dispose();
|
|
262
|
+
this.causalAdapter = null;
|
|
263
|
+
}
|
|
264
|
+
this.initialized = false;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
// ============================================================================
|
|
268
|
+
// Factory Function
|
|
269
|
+
// ============================================================================
|
|
270
|
+
/**
|
|
271
|
+
* Create and initialize a CausalVerifier
|
|
272
|
+
*
|
|
273
|
+
* @param wasmLoader - WASM module loader
|
|
274
|
+
* @returns Initialized causal verifier
|
|
275
|
+
*
|
|
276
|
+
* @example
|
|
277
|
+
* ```typescript
|
|
278
|
+
* import { createCausalVerifier } from './learning/causal-verifier';
|
|
279
|
+
* import { wasmLoader } from './integrations/coherence/wasm-loader';
|
|
280
|
+
*
|
|
281
|
+
* const verifier = await createCausalVerifier(wasmLoader);
|
|
282
|
+
* ```
|
|
283
|
+
*/
|
|
284
|
+
export async function createCausalVerifier(wasmLoader) {
|
|
285
|
+
const verifier = new CausalVerifier(wasmLoader);
|
|
286
|
+
await verifier.initialize();
|
|
287
|
+
return verifier;
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Create a CausalVerifier without initializing
|
|
291
|
+
*
|
|
292
|
+
* Use this when you want to delay initialization or handle it manually.
|
|
293
|
+
*
|
|
294
|
+
* @param wasmLoader - WASM module loader
|
|
295
|
+
* @returns Uninitialized causal verifier
|
|
296
|
+
*/
|
|
297
|
+
export function createUninitializedCausalVerifier(wasmLoader) {
|
|
298
|
+
return new CausalVerifier(wasmLoader);
|
|
299
|
+
}
|
|
300
|
+
//# sourceMappingURL=causal-verifier.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"causal-verifier.js","sourceRoot":"","sources":["../../src/learning/causal-verifier.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAIH,OAAO,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;AAsD1F,+EAA+E;AAC/E,iCAAiC;AACjC,+EAA+E;AAE/E;;;;;;GAMG;AACH,MAAM,OAAO,cAAc;IASI;IARrB,aAAa,GAA0B,IAAI,CAAC;IAC5C,WAAW,GAAG,KAAK,CAAC;IAE5B;;;;OAIG;IACH,YAA6B,UAAuB;QAAvB,eAAU,GAAV,UAAU,CAAa;IAAG,CAAC;IAExD;;OAEG;IACH,KAAK,CAAC,UAAU;QACd,IAAI,IAAI,CAAC,WAAW;YAAE,OAAO;QAE7B,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC;QACxD,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CACb,kEAAkE;gBAClE,kDAAkD,CACnD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