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,538 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agentic QE v3 - Threshold Auto-Tuner for Coherence Gates
|
|
3
|
+
*
|
|
4
|
+
* ADR-052 Action A4.2: Threshold Auto-Tuning
|
|
5
|
+
*
|
|
6
|
+
* This module provides adaptive threshold management for coherence gates.
|
|
7
|
+
* It tracks false positive/negative rates over time and uses exponential
|
|
8
|
+
* moving average (EMA) to adjust thresholds per domain.
|
|
9
|
+
*
|
|
10
|
+
* **Key Features:**
|
|
11
|
+
* 1. Domain-specific thresholds (test-generation, security, coverage, etc.)
|
|
12
|
+
* 2. EMA-based threshold adjustment for smooth adaptation
|
|
13
|
+
* 3. False positive/negative tracking with configurable windows
|
|
14
|
+
* 4. Memory persistence for calibrated thresholds
|
|
15
|
+
* 5. Manual override capability via configuration
|
|
16
|
+
* 6. EventBus integration for threshold_calibrated events
|
|
17
|
+
*
|
|
18
|
+
* **Default Thresholds (per ADR-052):**
|
|
19
|
+
* - reflex: 0.1 (E < 0.1 = immediate execution)
|
|
20
|
+
* - retrieval: 0.4 (0.1-0.4 = fetch additional context)
|
|
21
|
+
* - heavy: 0.7 (0.4-0.7 = deep analysis)
|
|
22
|
+
* - human: 1.0 (E > 0.7 = Queen escalation)
|
|
23
|
+
*
|
|
24
|
+
* @example Basic Usage
|
|
25
|
+
* ```typescript
|
|
26
|
+
* const tuner = new ThresholdTuner({
|
|
27
|
+
* memoryStore: myMemoryStore,
|
|
28
|
+
* eventBus: myEventBus,
|
|
29
|
+
* });
|
|
30
|
+
*
|
|
31
|
+
* // Get threshold for a domain/lane combination
|
|
32
|
+
* const threshold = tuner.getThreshold('test-generation', 'reflex');
|
|
33
|
+
*
|
|
34
|
+
* // Record outcome to improve thresholds
|
|
35
|
+
* tuner.recordOutcome('test-generation', true, 0.05);
|
|
36
|
+
*
|
|
37
|
+
* // Trigger calibration
|
|
38
|
+
* await tuner.calibrate();
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* @module integrations/coherence/threshold-tuner
|
|
42
|
+
*/
|
|
43
|
+
import { DEFAULT_LANE_CONFIG } from './types';
|
|
44
|
+
/**
|
|
45
|
+
* Default configuration for threshold tuner
|
|
46
|
+
*/
|
|
47
|
+
export const DEFAULT_TUNER_CONFIG = {
|
|
48
|
+
emaAlpha: 0.1,
|
|
49
|
+
minSamplesForCalibration: 10,
|
|
50
|
+
maxHistorySize: 1000,
|
|
51
|
+
targetFalsePositiveRate: 0.05,
|
|
52
|
+
targetFalseNegativeRate: 0.02,
|
|
53
|
+
maxAdjustmentPerCycle: 0.05,
|
|
54
|
+
autoCalibrate: false,
|
|
55
|
+
autoCalibrateInterval: 100,
|
|
56
|
+
defaultThresholds: { ...DEFAULT_LANE_CONFIG },
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Threshold Auto-Tuner Implementation
|
|
60
|
+
*
|
|
61
|
+
* Provides adaptive threshold management for coherence gates with:
|
|
62
|
+
* - Domain-specific calibration
|
|
63
|
+
* - EMA-based smooth adjustment
|
|
64
|
+
* - False positive/negative tracking
|
|
65
|
+
* - Memory persistence
|
|
66
|
+
* - EventBus integration
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```typescript
|
|
70
|
+
* const tuner = new ThresholdTuner({
|
|
71
|
+
* memoryStore: myMemoryStore,
|
|
72
|
+
* eventBus: myEventBus,
|
|
73
|
+
* config: {
|
|
74
|
+
* emaAlpha: 0.15,
|
|
75
|
+
* targetFalsePositiveRate: 0.03,
|
|
76
|
+
* }
|
|
77
|
+
* });
|
|
78
|
+
*
|
|
79
|
+
* // Load persisted thresholds
|
|
80
|
+
* await tuner.load();
|
|
81
|
+
*
|
|
82
|
+
* // Use in coherence checking
|
|
83
|
+
* const threshold = tuner.getThreshold('security', 'heavy');
|
|
84
|
+
*
|
|
85
|
+
* // Record outcomes
|
|
86
|
+
* tuner.recordOutcome('security', true, 0.55);
|
|
87
|
+
*
|
|
88
|
+
* // Periodic calibration
|
|
89
|
+
* await tuner.calibrate();
|
|
90
|
+
*
|
|
91
|
+
* // Persist for next session
|
|
92
|
+
* await tuner.persist();
|
|
93
|
+
* ```
|
|
94
|
+
*/
|
|
95
|
+
export class ThresholdTuner {
|
|
96
|
+
config;
|
|
97
|
+
memoryStore;
|
|
98
|
+
eventBus;
|
|
99
|
+
domains = new Map();
|
|
100
|
+
manualOverrides = new Map();
|
|
101
|
+
static MEMORY_NAMESPACE = 'coherence-thresholds';
|
|
102
|
+
static MEMORY_KEY_PREFIX = 'threshold-tuner';
|
|
103
|
+
/**
|
|
104
|
+
* Create a new ThresholdTuner
|
|
105
|
+
*
|
|
106
|
+
* @param options - Configuration options
|
|
107
|
+
*/
|
|
108
|
+
constructor(options = {}) {
|
|
109
|
+
this.config = {
|
|
110
|
+
...DEFAULT_TUNER_CONFIG,
|
|
111
|
+
...options.config,
|
|
112
|
+
defaultThresholds: {
|
|
113
|
+
...DEFAULT_TUNER_CONFIG.defaultThresholds,
|
|
114
|
+
...options.config?.defaultThresholds,
|
|
115
|
+
},
|
|
116
|
+
};
|
|
117
|
+
this.memoryStore = options.memoryStore;
|
|
118
|
+
this.eventBus = options.eventBus;
|
|
119
|
+
// Initialize manual overrides from config
|
|
120
|
+
if (this.config.manualOverrides) {
|
|
121
|
+
for (const [domain, thresholds] of Object.entries(this.config.manualOverrides)) {
|
|
122
|
+
if (thresholds) {
|
|
123
|
+
this.manualOverrides.set(domain, thresholds);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Get threshold for a specific domain and lane
|
|
130
|
+
*/
|
|
131
|
+
getThreshold(domain, lane) {
|
|
132
|
+
// Check manual override first
|
|
133
|
+
const override = this.manualOverrides.get(domain);
|
|
134
|
+
if (override) {
|
|
135
|
+
const overrideValue = this.getLaneThresholdFromConfig(override, lane);
|
|
136
|
+
if (overrideValue !== undefined) {
|
|
137
|
+
return overrideValue;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
// Get domain state or use defaults
|
|
141
|
+
const state = this.domains.get(domain);
|
|
142
|
+
if (state) {
|
|
143
|
+
return this.getLaneThresholdFromConfig(state.thresholds, lane) ?? this.getDefaultThreshold(lane);
|
|
144
|
+
}
|
|
145
|
+
return this.getDefaultThreshold(lane);
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Get all thresholds for a domain
|
|
149
|
+
*/
|
|
150
|
+
getThresholds(domain) {
|
|
151
|
+
// Build thresholds with manual overrides taking precedence
|
|
152
|
+
const state = this.domains.get(domain);
|
|
153
|
+
const override = this.manualOverrides.get(domain);
|
|
154
|
+
const baseThresholds = state?.thresholds ?? { ...this.config.defaultThresholds };
|
|
155
|
+
if (override) {
|
|
156
|
+
return {
|
|
157
|
+
reflexThreshold: override.reflexThreshold ?? baseThresholds.reflexThreshold,
|
|
158
|
+
retrievalThreshold: override.retrievalThreshold ?? baseThresholds.retrievalThreshold,
|
|
159
|
+
heavyThreshold: override.heavyThreshold ?? baseThresholds.heavyThreshold,
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
return baseThresholds;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Record an outcome for threshold tuning
|
|
166
|
+
*/
|
|
167
|
+
recordOutcome(domain, wasCorrect, energy, lane) {
|
|
168
|
+
const state = this.getOrCreateDomainState(domain);
|
|
169
|
+
// Determine the lane based on energy if not provided
|
|
170
|
+
const actualLane = lane ?? this.determineLane(energy, state.thresholds);
|
|
171
|
+
// Determine false positive/negative based on energy and correctness
|
|
172
|
+
// False positive: escalated to higher lane but decision was wrong (energy was low, should have been reflex)
|
|
173
|
+
// False negative: didn't escalate enough but decision was wrong (energy was high, should have been heavy/human)
|
|
174
|
+
const expectedLane = this.determineLane(energy, state.thresholds);
|
|
175
|
+
const falsePositive = !wasCorrect && this.isHigherLane(actualLane, expectedLane);
|
|
176
|
+
const falseNegative = !wasCorrect && this.isLowerLane(actualLane, expectedLane);
|
|
177
|
+
const record = {
|
|
178
|
+
timestamp: new Date(),
|
|
179
|
+
wasCorrect,
|
|
180
|
+
energy,
|
|
181
|
+
lane: actualLane,
|
|
182
|
+
falsePositive,
|
|
183
|
+
falseNegative,
|
|
184
|
+
};
|
|
185
|
+
// Add to history
|
|
186
|
+
state.history.push(record);
|
|
187
|
+
// Trim history if needed
|
|
188
|
+
if (state.history.length > this.config.maxHistorySize) {
|
|
189
|
+
state.history.shift();
|
|
190
|
+
}
|
|
191
|
+
// Update EMA
|
|
192
|
+
if (state.history.length > 0) {
|
|
193
|
+
const recentFP = falsePositive ? 1 : 0;
|
|
194
|
+
const recentFN = falseNegative ? 1 : 0;
|
|
195
|
+
state.emaFalsePositive = this.config.emaAlpha * recentFP +
|
|
196
|
+
(1 - this.config.emaAlpha) * state.emaFalsePositive;
|
|
197
|
+
state.emaFalseNegative = this.config.emaAlpha * recentFN +
|
|
198
|
+
(1 - this.config.emaAlpha) * state.emaFalseNegative;
|
|
199
|
+
}
|
|
200
|
+
state.samplesSinceCalibration++;
|
|
201
|
+
// Auto-calibrate if enabled
|
|
202
|
+
if (this.config.autoCalibrate &&
|
|
203
|
+
state.samplesSinceCalibration >= this.config.autoCalibrateInterval) {
|
|
204
|
+
// Fire and forget calibration
|
|
205
|
+
this.calibrateDomain(domain, 'auto').catch(() => {
|
|
206
|
+
// Ignore calibration errors in auto mode
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Calibrate thresholds for all domains
|
|
212
|
+
*/
|
|
213
|
+
async calibrate() {
|
|
214
|
+
const domains = Array.from(this.domains.keys());
|
|
215
|
+
for (const domain of domains) {
|
|
216
|
+
await this.calibrateDomain(domain, 'scheduled');
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Get statistics for all domains
|
|
221
|
+
*/
|
|
222
|
+
getStats() {
|
|
223
|
+
const domainStats = {};
|
|
224
|
+
let globalTotal = 0;
|
|
225
|
+
let globalCorrect = 0;
|
|
226
|
+
let globalFP = 0;
|
|
227
|
+
let globalFN = 0;
|
|
228
|
+
let lastCalibrationAt;
|
|
229
|
+
const domainEntries = Array.from(this.domains.entries());
|
|
230
|
+
for (const [domain, state] of domainEntries) {
|
|
231
|
+
const stats = this.computeDomainStats(domain, state);
|
|
232
|
+
domainStats[domain] = stats;
|
|
233
|
+
globalTotal += stats.totalOutcomes;
|
|
234
|
+
globalCorrect += stats.correctDecisions;
|
|
235
|
+
globalFP += stats.falsePositives;
|
|
236
|
+
globalFN += stats.falseNegatives;
|
|
237
|
+
if (stats.lastCalibrationAt) {
|
|
238
|
+
if (!lastCalibrationAt || stats.lastCalibrationAt > lastCalibrationAt) {
|
|
239
|
+
lastCalibrationAt = stats.lastCalibrationAt;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
return {
|
|
244
|
+
domains: domainStats,
|
|
245
|
+
global: {
|
|
246
|
+
totalOutcomes: globalTotal,
|
|
247
|
+
correctDecisions: globalCorrect,
|
|
248
|
+
falsePositives: globalFP,
|
|
249
|
+
falseNegatives: globalFN,
|
|
250
|
+
accuracy: globalTotal > 0 ? globalCorrect / globalTotal : 1,
|
|
251
|
+
falsePositiveRate: globalTotal > 0 ? globalFP / globalTotal : 0,
|
|
252
|
+
falseNegativeRate: globalTotal > 0 ? globalFN / globalTotal : 0,
|
|
253
|
+
domainsCalibrated: this.domains.size,
|
|
254
|
+
lastCalibrationAt,
|
|
255
|
+
},
|
|
256
|
+
config: {
|
|
257
|
+
emaAlpha: this.config.emaAlpha,
|
|
258
|
+
targetFalsePositiveRate: this.config.targetFalsePositiveRate,
|
|
259
|
+
targetFalseNegativeRate: this.config.targetFalseNegativeRate,
|
|
260
|
+
minSamplesForCalibration: this.config.minSamplesForCalibration,
|
|
261
|
+
autoCalibrate: this.config.autoCalibrate,
|
|
262
|
+
},
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Reset statistics and thresholds
|
|
267
|
+
*/
|
|
268
|
+
reset(domain) {
|
|
269
|
+
if (domain) {
|
|
270
|
+
this.domains.delete(domain);
|
|
271
|
+
this.manualOverrides.delete(domain);
|
|
272
|
+
}
|
|
273
|
+
else {
|
|
274
|
+
this.domains.clear();
|
|
275
|
+
this.manualOverrides.clear();
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Set a manual override for a domain
|
|
280
|
+
*/
|
|
281
|
+
setManualOverride(domain, thresholds) {
|
|
282
|
+
this.manualOverrides.set(domain, thresholds);
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* Clear manual override for a domain
|
|
286
|
+
*/
|
|
287
|
+
clearManualOverride(domain) {
|
|
288
|
+
this.manualOverrides.delete(domain);
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Persist thresholds to memory
|
|
292
|
+
*/
|
|
293
|
+
async persist() {
|
|
294
|
+
if (!this.memoryStore)
|
|
295
|
+
return;
|
|
296
|
+
const data = {};
|
|
297
|
+
const domainEntries = Array.from(this.domains.entries());
|
|
298
|
+
for (let i = 0; i < domainEntries.length; i++) {
|
|
299
|
+
const [domain, state] = domainEntries[i];
|
|
300
|
+
data[domain] = {
|
|
301
|
+
thresholds: state.thresholds,
|
|
302
|
+
calibrationCount: state.calibrationCount,
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
await this.memoryStore.store(`${ThresholdTuner.MEMORY_KEY_PREFIX}-domains`, data, ThresholdTuner.MEMORY_NAMESPACE);
|
|
306
|
+
// Persist manual overrides separately
|
|
307
|
+
const overrides = Object.fromEntries(this.manualOverrides);
|
|
308
|
+
await this.memoryStore.store(`${ThresholdTuner.MEMORY_KEY_PREFIX}-overrides`, overrides, ThresholdTuner.MEMORY_NAMESPACE);
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Load persisted thresholds from memory
|
|
312
|
+
*/
|
|
313
|
+
async load() {
|
|
314
|
+
if (!this.memoryStore)
|
|
315
|
+
return;
|
|
316
|
+
// Load domain thresholds
|
|
317
|
+
const data = await this.memoryStore.retrieve(`${ThresholdTuner.MEMORY_KEY_PREFIX}-domains`, ThresholdTuner.MEMORY_NAMESPACE);
|
|
318
|
+
if (data) {
|
|
319
|
+
const entries = Object.entries(data);
|
|
320
|
+
for (let i = 0; i < entries.length; i++) {
|
|
321
|
+
const [domain, saved] = entries[i];
|
|
322
|
+
const state = this.getOrCreateDomainState(domain);
|
|
323
|
+
state.thresholds = saved.thresholds;
|
|
324
|
+
state.calibrationCount = saved.calibrationCount;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
// Load manual overrides
|
|
328
|
+
const overrides = await this.memoryStore.retrieve(`${ThresholdTuner.MEMORY_KEY_PREFIX}-overrides`, ThresholdTuner.MEMORY_NAMESPACE);
|
|
329
|
+
if (overrides) {
|
|
330
|
+
const overrideEntries = Object.entries(overrides);
|
|
331
|
+
for (let i = 0; i < overrideEntries.length; i++) {
|
|
332
|
+
const [domain, override] = overrideEntries[i];
|
|
333
|
+
this.manualOverrides.set(domain, override);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
// ============================================================================
|
|
338
|
+
// Private Methods
|
|
339
|
+
// ============================================================================
|
|
340
|
+
/**
|
|
341
|
+
* Get or create domain state
|
|
342
|
+
*/
|
|
343
|
+
getOrCreateDomainState(domain) {
|
|
344
|
+
let state = this.domains.get(domain);
|
|
345
|
+
if (!state) {
|
|
346
|
+
state = {
|
|
347
|
+
history: [],
|
|
348
|
+
thresholds: { ...this.config.defaultThresholds },
|
|
349
|
+
emaFalsePositive: 0,
|
|
350
|
+
emaFalseNegative: 0,
|
|
351
|
+
calibrationCount: 0,
|
|
352
|
+
samplesSinceCalibration: 0,
|
|
353
|
+
};
|
|
354
|
+
this.domains.set(domain, state);
|
|
355
|
+
}
|
|
356
|
+
return state;
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* Calibrate a specific domain
|
|
360
|
+
*/
|
|
361
|
+
async calibrateDomain(domain, reason) {
|
|
362
|
+
const state = this.domains.get(domain);
|
|
363
|
+
if (!state)
|
|
364
|
+
return;
|
|
365
|
+
// Skip if not enough samples
|
|
366
|
+
if (state.history.length < this.config.minSamplesForCalibration) {
|
|
367
|
+
return;
|
|
368
|
+
}
|
|
369
|
+
// Skip if manual override is active
|
|
370
|
+
if (this.manualOverrides.has(domain)) {
|
|
371
|
+
return;
|
|
372
|
+
}
|
|
373
|
+
const previousThresholds = { ...state.thresholds };
|
|
374
|
+
let changed = false;
|
|
375
|
+
// Calculate current rates from recent history
|
|
376
|
+
const recentWindow = Math.min(100, state.history.length);
|
|
377
|
+
const recentHistory = state.history.slice(-recentWindow);
|
|
378
|
+
const fpCount = recentHistory.filter(r => r.falsePositive).length;
|
|
379
|
+
const fnCount = recentHistory.filter(r => r.falseNegative).length;
|
|
380
|
+
const fpRate = fpCount / recentWindow;
|
|
381
|
+
const fnRate = fnCount / recentWindow;
|
|
382
|
+
// Adjust thresholds based on error rates
|
|
383
|
+
// If FP rate is too high, we're escalating too aggressively -> increase thresholds
|
|
384
|
+
// If FN rate is too high, we're not escalating enough -> decrease thresholds
|
|
385
|
+
const maxAdj = this.config.maxAdjustmentPerCycle;
|
|
386
|
+
if (fpRate > this.config.targetFalsePositiveRate) {
|
|
387
|
+
// Too many false positives - increase thresholds to be less aggressive
|
|
388
|
+
const adjustment = Math.min(maxAdj, (fpRate - this.config.targetFalsePositiveRate) * 0.5);
|
|
389
|
+
state.thresholds.reflexThreshold = Math.min(0.3, state.thresholds.reflexThreshold + adjustment);
|
|
390
|
+
state.thresholds.retrievalThreshold = Math.min(0.6, state.thresholds.retrievalThreshold + adjustment);
|
|
391
|
+
state.thresholds.heavyThreshold = Math.min(0.9, state.thresholds.heavyThreshold + adjustment);
|
|
392
|
+
changed = true;
|
|
393
|
+
}
|
|
394
|
+
if (fnRate > this.config.targetFalseNegativeRate) {
|
|
395
|
+
// Too many false negatives - decrease thresholds to escalate more
|
|
396
|
+
const adjustment = Math.min(maxAdj, (fnRate - this.config.targetFalseNegativeRate) * 0.5);
|
|
397
|
+
state.thresholds.reflexThreshold = Math.max(0.05, state.thresholds.reflexThreshold - adjustment);
|
|
398
|
+
state.thresholds.retrievalThreshold = Math.max(0.2, state.thresholds.retrievalThreshold - adjustment);
|
|
399
|
+
state.thresholds.heavyThreshold = Math.max(0.5, state.thresholds.heavyThreshold - adjustment);
|
|
400
|
+
changed = true;
|
|
401
|
+
}
|
|
402
|
+
// Update state
|
|
403
|
+
state.calibrationCount++;
|
|
404
|
+
state.lastCalibrationAt = new Date();
|
|
405
|
+
state.samplesSinceCalibration = 0;
|
|
406
|
+
// Emit event if thresholds changed
|
|
407
|
+
if (changed && this.eventBus) {
|
|
408
|
+
const stats = this.computeDomainStats(domain, state);
|
|
409
|
+
const payload = {
|
|
410
|
+
domain,
|
|
411
|
+
previousThresholds,
|
|
412
|
+
newThresholds: state.thresholds,
|
|
413
|
+
stats,
|
|
414
|
+
reason,
|
|
415
|
+
};
|
|
416
|
+
await this.eventBus.publish({
|
|
417
|
+
id: `threshold-calibrated-${Date.now()}`,
|
|
418
|
+
type: 'coherence.threshold_calibrated',
|
|
419
|
+
timestamp: new Date(),
|
|
420
|
+
source: 'quality-assessment',
|
|
421
|
+
payload,
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* Compute statistics for a domain
|
|
427
|
+
*/
|
|
428
|
+
computeDomainStats(domain, state) {
|
|
429
|
+
const total = state.history.length;
|
|
430
|
+
const correct = state.history.filter(r => r.wasCorrect).length;
|
|
431
|
+
const fp = state.history.filter(r => r.falsePositive).length;
|
|
432
|
+
const fn = state.history.filter(r => r.falseNegative).length;
|
|
433
|
+
return {
|
|
434
|
+
totalOutcomes: total,
|
|
435
|
+
correctDecisions: correct,
|
|
436
|
+
falsePositives: fp,
|
|
437
|
+
falseNegatives: fn,
|
|
438
|
+
accuracy: total > 0 ? correct / total : 1,
|
|
439
|
+
falsePositiveRate: total > 0 ? fp / total : 0,
|
|
440
|
+
falseNegativeRate: total > 0 ? fn / total : 0,
|
|
441
|
+
thresholds: this.getThresholds(domain),
|
|
442
|
+
hasManualOverride: this.manualOverrides.has(domain),
|
|
443
|
+
lastCalibrationAt: state.lastCalibrationAt,
|
|
444
|
+
calibrationCount: state.calibrationCount,
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* Determine compute lane from energy and thresholds
|
|
449
|
+
*/
|
|
450
|
+
determineLane(energy, thresholds) {
|
|
451
|
+
if (energy < thresholds.reflexThreshold)
|
|
452
|
+
return 'reflex';
|
|
453
|
+
if (energy < thresholds.retrievalThreshold)
|
|
454
|
+
return 'retrieval';
|
|
455
|
+
if (energy < thresholds.heavyThreshold)
|
|
456
|
+
return 'heavy';
|
|
457
|
+
return 'human';
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* Check if lane1 is higher (more escalated) than lane2
|
|
461
|
+
*/
|
|
462
|
+
isHigherLane(lane1, lane2) {
|
|
463
|
+
const order = {
|
|
464
|
+
reflex: 0,
|
|
465
|
+
retrieval: 1,
|
|
466
|
+
heavy: 2,
|
|
467
|
+
human: 3,
|
|
468
|
+
};
|
|
469
|
+
return order[lane1] > order[lane2];
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* Check if lane1 is lower (less escalated) than lane2
|
|
473
|
+
*/
|
|
474
|
+
isLowerLane(lane1, lane2) {
|
|
475
|
+
const order = {
|
|
476
|
+
reflex: 0,
|
|
477
|
+
retrieval: 1,
|
|
478
|
+
heavy: 2,
|
|
479
|
+
human: 3,
|
|
480
|
+
};
|
|
481
|
+
return order[lane1] < order[lane2];
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* Get threshold value from config for a lane
|
|
485
|
+
*/
|
|
486
|
+
getLaneThresholdFromConfig(config, lane) {
|
|
487
|
+
switch (lane) {
|
|
488
|
+
case 'reflex':
|
|
489
|
+
return config.reflexThreshold;
|
|
490
|
+
case 'retrieval':
|
|
491
|
+
return config.retrievalThreshold;
|
|
492
|
+
case 'heavy':
|
|
493
|
+
return config.heavyThreshold;
|
|
494
|
+
case 'human':
|
|
495
|
+
return 1.0; // Human threshold is always 1.0 (anything above heavy)
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* Get default threshold for a lane
|
|
500
|
+
*/
|
|
501
|
+
getDefaultThreshold(lane) {
|
|
502
|
+
switch (lane) {
|
|
503
|
+
case 'reflex':
|
|
504
|
+
return this.config.defaultThresholds.reflexThreshold;
|
|
505
|
+
case 'retrieval':
|
|
506
|
+
return this.config.defaultThresholds.retrievalThreshold;
|
|
507
|
+
case 'heavy':
|
|
508
|
+
return this.config.defaultThresholds.heavyThreshold;
|
|
509
|
+
case 'human':
|
|
510
|
+
return 1.0;
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
// ============================================================================
|
|
515
|
+
// Factory Function
|
|
516
|
+
// ============================================================================
|
|
517
|
+
/**
|
|
518
|
+
* Create a new ThresholdTuner instance
|
|
519
|
+
*
|
|
520
|
+
* @param options - Configuration options
|
|
521
|
+
* @returns A new ThresholdTuner instance
|
|
522
|
+
*
|
|
523
|
+
* @example
|
|
524
|
+
* ```typescript
|
|
525
|
+
* const tuner = createThresholdTuner({
|
|
526
|
+
* memoryStore: myMemoryStore,
|
|
527
|
+
* eventBus: myEventBus,
|
|
528
|
+
* config: { emaAlpha: 0.15 }
|
|
529
|
+
* });
|
|
530
|
+
*
|
|
531
|
+
* await tuner.load(); // Load persisted thresholds
|
|
532
|
+
* const threshold = tuner.getThreshold('security', 'heavy');
|
|
533
|
+
* ```
|
|
534
|
+
*/
|
|
535
|
+
export function createThresholdTuner(options) {
|
|
536
|
+
return new ThresholdTuner(options);
|
|
537
|
+
}
|
|
538
|
+
//# sourceMappingURL=threshold-tuner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"threshold-tuner.js","sourceRoot":"","sources":["../../../src/integrations/coherence/threshold-tuner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAGH,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AA0C9C;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAyB;IACxD,QAAQ,EAAE,GAAG;IACb,wBAAwB,EAAE,EAAE;IAC5B,cAAc,EAAE,IAAI;IACpB,uBAAuB,EAAE,IAAI;IAC7B,uBAAuB,EAAE,IAAI;IAC7B,qBAAqB,EAAE,IAAI;IAC3B,aAAa,EAAE,KAAK;IACpB,qBAAqB,EAAE,GAAG;IAC1B,iBAAiB,EAAE,EAAE,GAAG,mBAAmB,EAAE;CAC9C,CAAC;AAgPF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,OAAO,cAAc;IACR,MAAM,CAAuB;IAC7B,WAAW,CAAyB;IACpC,QAAQ,CAAsB;IAE9B,OAAO,GAA6B,IAAI,GAAG,EAAE,CAAC;IAC9C,eAAe,GAA4C,IAAI,GAAG,EAAE,CAAC;IAE9E,MAAM,CAAU,gBAAgB,GAAG,sBAAsB,CAAC;IAC1D,MAAM,CAAU,iBAAiB,GAAG,iBAAiB,CAAC;IAE9D;;;;OAIG;IACH,YAAY,UAIR,EAAE;QACJ,IAAI,CAAC,MAAM,GAAG;YACZ,GAAG,oBA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