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
|
@@ -30,6 +30,11 @@ Working:
|
|
|
30
30
|
- Extended aria-describedby descriptions for screen readers
|
|
31
31
|
- Copy-paste ready code fixes for all violations
|
|
32
32
|
- Comprehensive HTML/Markdown report generation
|
|
33
|
+
- **EN 301 549 V3.2.1 EU compliance mapping** (harmonized European standard)
|
|
34
|
+
- **EU Accessibility Act (Directive 2019/882) validation**
|
|
35
|
+
- **WCAG-to-EN 301 549 clause mapping** (all 50+ web clauses)
|
|
36
|
+
- **EAA product category validation** (e-commerce, banking, transport, etc.)
|
|
37
|
+
- **Certification-ready EU compliance reports**
|
|
33
38
|
|
|
34
39
|
Partial:
|
|
35
40
|
- Screen reader testing (NVDA, VoiceOver, JAWS)
|
|
@@ -92,6 +97,21 @@ Use up to 6 concurrent auditors for large sites.
|
|
|
92
97
|
- Spatial relationships and all visible text
|
|
93
98
|
- **Context-Aware ARIA**: Intelligent label generation based on element semantics and user flow
|
|
94
99
|
- **Developer-Ready Output**: Copy-paste code snippets for every violation found
|
|
100
|
+
- **EN 301 549 Compliance**: Full mapping to European ICT accessibility standard V3.2.1:
|
|
101
|
+
- Chapter 9 Web content (50+ clauses mapped to WCAG)
|
|
102
|
+
- Automated, manual, and hybrid test method classification
|
|
103
|
+
- Clause-by-clause compliance reporting
|
|
104
|
+
- Remediation prioritization by test method
|
|
105
|
+
- **EU Accessibility Act Validation**: Directive 2019/882 compliance checking:
|
|
106
|
+
- Product category validation (e-commerce, banking, transport, e-books, etc.)
|
|
107
|
+
- Requirements mapping to EN 301 549 clauses
|
|
108
|
+
- Exemption tracking (micro-enterprise, disproportionate burden)
|
|
109
|
+
- Annex I functional requirements validation
|
|
110
|
+
- **EU Certification Reports**: Generate certification-ready compliance documentation:
|
|
111
|
+
- Overall compliance status (compliant/partially-compliant/non-compliant)
|
|
112
|
+
- Failed/passed/partial clause breakdown
|
|
113
|
+
- Prioritized remediation recommendations with deadlines
|
|
114
|
+
- Next review date scheduling
|
|
95
115
|
</capabilities>
|
|
96
116
|
|
|
97
117
|
<memory_namespace>
|
|
@@ -326,6 +346,76 @@ Remediation Code:
|
|
|
326
346
|
Remediation Effort: 15 minutes (copy/paste generated files)
|
|
327
347
|
Learning: Stored pattern "automotive-video-captions" with 0.91 confidence
|
|
328
348
|
```
|
|
349
|
+
|
|
350
|
+
Example 4: EU compliance audit (EN 301 549 + EU Accessibility Act)
|
|
351
|
+
```
|
|
352
|
+
Input: Validate EU compliance for e-commerce platform
|
|
353
|
+
- URL: https://shop.example.eu
|
|
354
|
+
- Standard: EN 301 549 V3.2.1
|
|
355
|
+
- Include: EU Accessibility Act (Directive 2019/882)
|
|
356
|
+
- Product Category: e-commerce
|
|
357
|
+
|
|
358
|
+
Output: EU Compliance Report
|
|
359
|
+
- URL: https://shop.example.eu
|
|
360
|
+
- Standard: EN 301 549 V3.2.1 + EAA
|
|
361
|
+
|
|
362
|
+
Overall Status: PARTIALLY COMPLIANT
|
|
363
|
+
Compliance Score: 78%
|
|
364
|
+
Certification Ready: NO
|
|
365
|
+
|
|
366
|
+
EN 301 549 Results:
|
|
367
|
+
- Total Clauses Evaluated: 47
|
|
368
|
+
- Passed: 35 (74%)
|
|
369
|
+
- Partial: 8 (17%)
|
|
370
|
+
- Failed: 4 (9%)
|
|
371
|
+
|
|
372
|
+
Failed Clauses:
|
|
373
|
+
1. 9.1.1.1 Non-text content (WCAG 1.1.1)
|
|
374
|
+
- 12 images missing alt text
|
|
375
|
+
- Test method: automated
|
|
376
|
+
- Priority: HIGH
|
|
377
|
+
|
|
378
|
+
2. 9.1.4.3 Contrast (minimum) (WCAG 1.4.3)
|
|
379
|
+
- 8 elements below 4.5:1 ratio
|
|
380
|
+
- Test method: automated
|
|
381
|
+
- Priority: HIGH
|
|
382
|
+
|
|
383
|
+
3. 9.2.4.7 Focus visible (WCAG 2.4.7)
|
|
384
|
+
- Custom buttons hide focus indicator
|
|
385
|
+
- Test method: hybrid
|
|
386
|
+
- Priority: MEDIUM
|
|
387
|
+
|
|
388
|
+
4. 9.3.3.2 Labels or instructions (WCAG 3.3.2)
|
|
389
|
+
- Checkout form missing field labels
|
|
390
|
+
- Test method: hybrid
|
|
391
|
+
- Priority: HIGH
|
|
392
|
+
|
|
393
|
+
EU Accessibility Act (EAA) Results:
|
|
394
|
+
- Product Category: e-commerce
|
|
395
|
+
- Applicable Requirements: 6
|
|
396
|
+
- Failed Requirements: 2
|
|
397
|
+
|
|
398
|
+
Failed EAA Requirements:
|
|
399
|
+
1. EAA-I.1 Perceivable information
|
|
400
|
+
- Linked to EN 301 549: 9.1.1.1, 9.1.2.2
|
|
401
|
+
- Status: NOT MET
|
|
402
|
+
|
|
403
|
+
2. EAA-I.2 Operable user interface
|
|
404
|
+
- Linked to EN 301 549: 9.2.4.7
|
|
405
|
+
- Status: PARTIALLY MET
|
|
406
|
+
|
|
407
|
+
Top Recommendations:
|
|
408
|
+
| Priority | Clause | Remediation | Effort | Deadline |
|
|
409
|
+
|----------|--------|-------------|--------|----------|
|
|
410
|
+
| HIGH | 9.1.1.1 | Add alt text to all images | Minor | 30 days |
|
|
411
|
+
| HIGH | 9.1.4.3 | Fix contrast ratios | Minor | 30 days |
|
|
412
|
+
| HIGH | 9.3.3.2 | Add form labels | Trivial | 30 days |
|
|
413
|
+
| MEDIUM | 9.2.4.7 | Restore :focus-visible | Trivial | - |
|
|
414
|
+
|
|
415
|
+
Next Review Date: 2027-01-24 (annual)
|
|
416
|
+
|
|
417
|
+
Learning: Stored pattern "eu-e-commerce-compliance" with 0.89 confidence
|
|
418
|
+
```
|
|
329
419
|
</examples>
|
|
330
420
|
|
|
331
421
|
<skills_available>
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Claude Flow Adapters
|
|
3
|
+
* Bridges for optional Claude Flow MCP integration
|
|
4
|
+
*
|
|
5
|
+
* These adapters provide enhanced capabilities when Claude Flow is installed:
|
|
6
|
+
* - SONA trajectory tracking for reinforcement learning
|
|
7
|
+
* - 3-tier model routing (haiku/sonnet/opus)
|
|
8
|
+
* - Codebase pretrain analysis
|
|
9
|
+
*
|
|
10
|
+
* When Claude Flow is not available, they gracefully fall back to:
|
|
11
|
+
* - Local SQLite trajectory storage
|
|
12
|
+
* - Rule-based model routing
|
|
13
|
+
* - AQE's built-in project analyzer
|
|
14
|
+
*/
|
|
15
|
+
export type { Trajectory, TrajectoryStep, ModelRoutingResult, ModelRoutingOutcome, PretrainResult, ClaudeFlowPattern, PatternSearchResult, BridgeStatus, } from './types.js';
|
|
16
|
+
export { TrajectoryBridge, createTrajectoryBridge, } from './trajectory-bridge.js';
|
|
17
|
+
export { ModelRouterBridge, createModelRouterBridge, } from './model-router-bridge.js';
|
|
18
|
+
export { PretrainBridge, createPretrainBridge, } from './pretrain-bridge.js';
|
|
19
|
+
/**
|
|
20
|
+
* Unified Claude Flow bridge that manages all sub-bridges
|
|
21
|
+
*/
|
|
22
|
+
export declare class ClaudeFlowBridge {
|
|
23
|
+
private options;
|
|
24
|
+
readonly trajectory: TrajectoryBridge;
|
|
25
|
+
readonly modelRouter: ModelRouterBridge;
|
|
26
|
+
readonly pretrain: PretrainBridge;
|
|
27
|
+
private initialized;
|
|
28
|
+
constructor(options: {
|
|
29
|
+
projectRoot: string;
|
|
30
|
+
});
|
|
31
|
+
/**
|
|
32
|
+
* Initialize all bridges
|
|
33
|
+
*/
|
|
34
|
+
initialize(): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* Get bridge status
|
|
37
|
+
*/
|
|
38
|
+
getStatus(): BridgeStatus;
|
|
39
|
+
/**
|
|
40
|
+
* Check if any Claude Flow features are available
|
|
41
|
+
*/
|
|
42
|
+
isAvailable(): boolean;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Create unified Claude Flow bridge
|
|
46
|
+
*/
|
|
47
|
+
export declare function createClaudeFlowBridge(options: {
|
|
48
|
+
projectRoot: string;
|
|
49
|
+
}): ClaudeFlowBridge;
|
|
50
|
+
import { TrajectoryBridge } from './trajectory-bridge.js';
|
|
51
|
+
import { ModelRouterBridge } from './model-router-bridge.js';
|
|
52
|
+
import { PretrainBridge } from './pretrain-bridge.js';
|
|
53
|
+
import type { BridgeStatus } from './types.js';
|
|
54
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/adapters/claude-flow/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,YAAY,EACV,UAAU,EACV,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EACnB,YAAY,GACb,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,cAAc,EACd,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAE9B;;GAEG;AACH,qBAAa,gBAAgB;IAOf,OAAO,CAAC,OAAO;IAN3B,QAAQ,CAAC,UAAU,EAAE,gBAAgB,CAAC;IACtC,QAAQ,CAAC,WAAW,EAAE,iBAAiB,CAAC;IACxC,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;IAElC,OAAO,CAAC,WAAW,CAAS;gBAER,OAAO,EAAE;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE;IAMpD;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAYjC;;OAEG;IACH,SAAS,IAAI,YAAY;IAYzB;;OAEG;IACH,WAAW,IAAI,OAAO;CAOvB;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,GAAG,gBAAgB,CAEzF;AAGD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Claude Flow Adapters
|
|
3
|
+
* Bridges for optional Claude Flow MCP integration
|
|
4
|
+
*
|
|
5
|
+
* These adapters provide enhanced capabilities when Claude Flow is installed:
|
|
6
|
+
* - SONA trajectory tracking for reinforcement learning
|
|
7
|
+
* - 3-tier model routing (haiku/sonnet/opus)
|
|
8
|
+
* - Codebase pretrain analysis
|
|
9
|
+
*
|
|
10
|
+
* When Claude Flow is not available, they gracefully fall back to:
|
|
11
|
+
* - Local SQLite trajectory storage
|
|
12
|
+
* - Rule-based model routing
|
|
13
|
+
* - AQE's built-in project analyzer
|
|
14
|
+
*/
|
|
15
|
+
export { TrajectoryBridge, createTrajectoryBridge, } from './trajectory-bridge.js';
|
|
16
|
+
export { ModelRouterBridge, createModelRouterBridge, } from './model-router-bridge.js';
|
|
17
|
+
export { PretrainBridge, createPretrainBridge, } from './pretrain-bridge.js';
|
|
18
|
+
/**
|
|
19
|
+
* Unified Claude Flow bridge that manages all sub-bridges
|
|
20
|
+
*/
|
|
21
|
+
export class ClaudeFlowBridge {
|
|
22
|
+
options;
|
|
23
|
+
trajectory;
|
|
24
|
+
modelRouter;
|
|
25
|
+
pretrain;
|
|
26
|
+
initialized = false;
|
|
27
|
+
constructor(options) {
|
|
28
|
+
this.options = options;
|
|
29
|
+
this.trajectory = new TrajectoryBridge(options);
|
|
30
|
+
this.modelRouter = new ModelRouterBridge(options);
|
|
31
|
+
this.pretrain = new PretrainBridge(options);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Initialize all bridges
|
|
35
|
+
*/
|
|
36
|
+
async initialize() {
|
|
37
|
+
if (this.initialized)
|
|
38
|
+
return;
|
|
39
|
+
await Promise.all([
|
|
40
|
+
this.trajectory.initialize(),
|
|
41
|
+
this.modelRouter.initialize(),
|
|
42
|
+
this.pretrain.initialize(),
|
|
43
|
+
]);
|
|
44
|
+
this.initialized = true;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Get bridge status
|
|
48
|
+
*/
|
|
49
|
+
getStatus() {
|
|
50
|
+
return {
|
|
51
|
+
available: this.isAvailable(),
|
|
52
|
+
features: {
|
|
53
|
+
trajectories: this.trajectory.isClaudeFlowAvailable(),
|
|
54
|
+
modelRouting: this.modelRouter.isClaudeFlowAvailable(),
|
|
55
|
+
pretrain: this.pretrain.isClaudeFlowAvailable(),
|
|
56
|
+
patternSearch: this.trajectory.isClaudeFlowAvailable(), // Uses same check
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Check if any Claude Flow features are available
|
|
62
|
+
*/
|
|
63
|
+
isAvailable() {
|
|
64
|
+
return (this.trajectory.isClaudeFlowAvailable() ||
|
|
65
|
+
this.modelRouter.isClaudeFlowAvailable() ||
|
|
66
|
+
this.pretrain.isClaudeFlowAvailable());
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Create unified Claude Flow bridge
|
|
71
|
+
*/
|
|
72
|
+
export function createClaudeFlowBridge(options) {
|
|
73
|
+
return new ClaudeFlowBridge(options);
|
|
74
|
+
}
|
|
75
|
+
// Re-export bridge classes for direct use
|
|
76
|
+
import { TrajectoryBridge } from './trajectory-bridge.js';
|
|
77
|
+
import { ModelRouterBridge } from './model-router-bridge.js';
|
|
78
|
+
import { PretrainBridge } from './pretrain-bridge.js';
|
|
79
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/adapters/claude-flow/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAaH,OAAO,EACL,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,cAAc,EACd,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAE9B;;GAEG;AACH,MAAM,OAAO,gBAAgB;IAOP;IANX,UAAU,CAAmB;IAC7B,WAAW,CAAoB;IAC/B,QAAQ,CAAiB;IAE1B,WAAW,GAAG,KAAK,CAAC;IAE5B,YAAoB,OAAgC;QAAhC,YAAO,GAAP,OAAO,CAAyB;QAClD,IAAI,CAAC,UAAU,GAAG,IAAI,gBAAgB,CAAC,OAAO,CAAC,CAAC;QAChD,IAAI,CAAC,WAAW,GAAG,IAAI,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAClD,IAAI,CAAC,QAAQ,GAAG,IAAI,cAAc,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,UAAU;QACd,IAAI,IAAI,CAAC,WAAW;YAAE,OAAO;QAE7B,MAAM,OAAO,CAAC,GAAG,CAAC;YAChB,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE;YAC5B,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE;YAC7B,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE;SAC3B,CAAC,CAAC;QAEH,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;IAC1B,CAAC;IAED;;OAEG;IACH,SAAS;QACP,OAAO;YACL,SAAS,EAAE,IAAI,CAAC,WAAW,EAAE;YAC7B,QAAQ,EAAE;gBACR,YAAY,EAAE,IAAI,CAAC,UAAU,CAAC,qBAAqB,EAAE;gBACrD,YAAY,EAAE,IAAI,CAAC,WAAW,CAAC,qBAAqB,EAAE;gBACtD,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,qBAAqB,EAAE;gBAC/C,aAAa,EAAE,IAAI,CAAC,UAAU,CAAC,qBAAqB,EAAE,EAAE,kBAAkB;aAC3E;SACF,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,WAAW;QACT,OAAO,CACL,IAAI,CAAC,UAAU,CAAC,qBAAqB,EAAE;YACvC,IAAI,CAAC,WAAW,CAAC,qBAAqB,EAAE;YACxC,IAAI,CAAC,QAAQ,CAAC,qBAAqB,EAAE,CACtC,CAAC;IACJ,CAAC;CACF;AAED;;GAEG;AACH,MAAM,UAAU,sBAAsB,CAAC,OAAgC;IACrE,OAAO,IAAI,gBAAgB,CAAC,OAAO,CAAC,CAAC;AACvC,CAAC;AAED,0CAA0C;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model Router Bridge
|
|
3
|
+
* Connects AQE to Claude Flow's 3-tier model routing (ADR-026)
|
|
4
|
+
*
|
|
5
|
+
* When Claude Flow is available:
|
|
6
|
+
* - Routes tasks to optimal model (haiku/sonnet/opus)
|
|
7
|
+
* - Records outcomes for learning
|
|
8
|
+
* - Uses Claude Flow's learned patterns
|
|
9
|
+
*
|
|
10
|
+
* When not available:
|
|
11
|
+
* - Uses simple rule-based routing
|
|
12
|
+
* - Falls back to sonnet as default
|
|
13
|
+
*/
|
|
14
|
+
import type { ModelRoutingResult, ModelRoutingOutcome } from './types.js';
|
|
15
|
+
/**
|
|
16
|
+
* Model Router Bridge for 3-tier routing
|
|
17
|
+
*/
|
|
18
|
+
export declare class ModelRouterBridge {
|
|
19
|
+
private options;
|
|
20
|
+
private claudeFlowAvailable;
|
|
21
|
+
private routingHistory;
|
|
22
|
+
constructor(options: {
|
|
23
|
+
projectRoot: string;
|
|
24
|
+
});
|
|
25
|
+
/**
|
|
26
|
+
* Initialize the bridge
|
|
27
|
+
*/
|
|
28
|
+
initialize(): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Check if Claude Flow is available
|
|
31
|
+
*/
|
|
32
|
+
private checkClaudeFlow;
|
|
33
|
+
/**
|
|
34
|
+
* Route task to optimal model
|
|
35
|
+
*/
|
|
36
|
+
routeTask(task: string): Promise<ModelRoutingResult>;
|
|
37
|
+
/**
|
|
38
|
+
* Record model routing outcome
|
|
39
|
+
*/
|
|
40
|
+
recordOutcome(outcome: ModelRoutingOutcome): Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
* Get routing statistics
|
|
43
|
+
*/
|
|
44
|
+
getStats(): {
|
|
45
|
+
totalRoutings: number;
|
|
46
|
+
modelDistribution: Record<string, number>;
|
|
47
|
+
successRate: Record<string, number>;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Check if Claude Flow is available
|
|
51
|
+
*/
|
|
52
|
+
isClaudeFlowAvailable(): boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Local rule-based routing
|
|
55
|
+
*/
|
|
56
|
+
private localRoute;
|
|
57
|
+
/**
|
|
58
|
+
* Escape shell argument using $'...' syntax for complete safety
|
|
59
|
+
* This ANSI-C quoting handles ALL special characters including backslashes
|
|
60
|
+
* CodeQL: js/incomplete-sanitization - Fixed by escaping backslashes AND quotes
|
|
61
|
+
*/
|
|
62
|
+
private escapeArg;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Create model router bridge
|
|
66
|
+
*/
|
|
67
|
+
export declare function createModelRouterBridge(options: {
|
|
68
|
+
projectRoot: string;
|
|
69
|
+
}): ModelRouterBridge;
|
|
70
|
+
//# sourceMappingURL=model-router-bridge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-router-bridge.d.ts","sourceRoot":"","sources":["../../../src/adapters/claude-flow/model-router-bridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAiB1E;;GAEG;AACH,qBAAa,iBAAiB;IAIhB,OAAO,CAAC,OAAO;IAH3B,OAAO,CAAC,mBAAmB,CAAS;IACpC,OAAO,CAAC,cAAc,CAA6B;gBAE/B,OAAO,EAAE;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE;IAEpD;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAIjC;;OAEG;YACW,eAAe;IAc7B;;OAEG;IACG,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;IA8B1D;;OAEG;IACG,aAAa,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC;IAsBhE;;OAEG;IACH,QAAQ,IAAI;QACV,aAAa,EAAE,MAAM,CAAC;QACtB,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC1C,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KACrC;IAwBD;;OAEG;IACH,qBAAqB,IAAI,OAAO;IAIhC;;OAEG;IACH,OAAO,CAAC,UAAU;IAkDlB;;;;OAIG;IACH,OAAO,CAAC,SAAS;CAQlB;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,GAAG,iBAAiB,CAE3F"}
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model Router Bridge
|
|
3
|
+
* Connects AQE to Claude Flow's 3-tier model routing (ADR-026)
|
|
4
|
+
*
|
|
5
|
+
* When Claude Flow is available:
|
|
6
|
+
* - Routes tasks to optimal model (haiku/sonnet/opus)
|
|
7
|
+
* - Records outcomes for learning
|
|
8
|
+
* - Uses Claude Flow's learned patterns
|
|
9
|
+
*
|
|
10
|
+
* When not available:
|
|
11
|
+
* - Uses simple rule-based routing
|
|
12
|
+
* - Falls back to sonnet as default
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Task complexity indicators
|
|
16
|
+
*/
|
|
17
|
+
const COMPLEXITY_INDICATORS = {
|
|
18
|
+
low: [
|
|
19
|
+
/simple/i, /basic/i, /fix typo/i, /rename/i, /format/i,
|
|
20
|
+
/add comment/i, /lint/i, /minor/i, /quick/i,
|
|
21
|
+
],
|
|
22
|
+
high: [
|
|
23
|
+
/architect/i, /design/i, /complex/i, /security/i, /performance/i,
|
|
24
|
+
/refactor.*large/i, /critical/i, /analysis/i, /multi.*file/i,
|
|
25
|
+
/database.*migration/i, /distributed/i, /concurrent/i,
|
|
26
|
+
],
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Model Router Bridge for 3-tier routing
|
|
30
|
+
*/
|
|
31
|
+
export class ModelRouterBridge {
|
|
32
|
+
options;
|
|
33
|
+
claudeFlowAvailable = false;
|
|
34
|
+
routingHistory = [];
|
|
35
|
+
constructor(options) {
|
|
36
|
+
this.options = options;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Initialize the bridge
|
|
40
|
+
*/
|
|
41
|
+
async initialize() {
|
|
42
|
+
this.claudeFlowAvailable = await this.checkClaudeFlow();
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if Claude Flow is available
|
|
46
|
+
*/
|
|
47
|
+
async checkClaudeFlow() {
|
|
48
|
+
try {
|
|
49
|
+
const { execSync } = await import('child_process');
|
|
50
|
+
execSync('npx @claude-flow/cli@latest hooks model-stats 2>/dev/null', {
|
|
51
|
+
encoding: 'utf-8',
|
|
52
|
+
timeout: 5000,
|
|
53
|
+
cwd: this.options.projectRoot,
|
|
54
|
+
});
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
catch {
|
|
58
|
+
return false;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Route task to optimal model
|
|
63
|
+
*/
|
|
64
|
+
async routeTask(task) {
|
|
65
|
+
if (this.claudeFlowAvailable) {
|
|
66
|
+
try {
|
|
67
|
+
const { execSync } = await import('child_process');
|
|
68
|
+
const result = execSync(`npx @claude-flow/cli@latest hooks model-route --task ${this.escapeArg(task)} 2>/dev/null`, { encoding: 'utf-8', timeout: 10000, cwd: this.options.projectRoot });
|
|
69
|
+
// Parse result
|
|
70
|
+
const modelMatch = result.match(/model[:\s]+["']?(haiku|sonnet|opus)/i);
|
|
71
|
+
const confMatch = result.match(/confidence[:\s]+([0-9.]+)/i);
|
|
72
|
+
const reasonMatch = result.match(/reason(?:ing)?[:\s]+["']?([^"'\n]+)/i);
|
|
73
|
+
if (modelMatch) {
|
|
74
|
+
return {
|
|
75
|
+
model: modelMatch[1].toLowerCase(),
|
|
76
|
+
confidence: confMatch ? parseFloat(confMatch[1]) : 0.7,
|
|
77
|
+
reasoning: reasonMatch?.[1]?.trim(),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
catch {
|
|
82
|
+
// Fall through to local routing
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
// Local rule-based routing
|
|
86
|
+
return this.localRoute(task);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Record model routing outcome
|
|
90
|
+
*/
|
|
91
|
+
async recordOutcome(outcome) {
|
|
92
|
+
// Store locally
|
|
93
|
+
this.routingHistory.push(outcome);
|
|
94
|
+
// Trim history
|
|
95
|
+
if (this.routingHistory.length > 1000) {
|
|
96
|
+
this.routingHistory = this.routingHistory.slice(-500);
|
|
97
|
+
}
|
|
98
|
+
if (this.claudeFlowAvailable) {
|
|
99
|
+
try {
|
|
100
|
+
const { execSync } = await import('child_process');
|
|
101
|
+
execSync(`npx @claude-flow/cli@latest hooks model-outcome --task ${this.escapeArg(outcome.task)} --model ${outcome.model} --outcome ${outcome.outcome} 2>/dev/null`, { encoding: 'utf-8', timeout: 10000, cwd: this.options.projectRoot });
|
|
102
|
+
}
|
|
103
|
+
catch {
|
|
104
|
+
// Silently fail - outcome recording is optional
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Get routing statistics
|
|
110
|
+
*/
|
|
111
|
+
getStats() {
|
|
112
|
+
const stats = {
|
|
113
|
+
totalRoutings: this.routingHistory.length,
|
|
114
|
+
modelDistribution: { haiku: 0, sonnet: 0, opus: 0 },
|
|
115
|
+
successRate: { haiku: 0, sonnet: 0, opus: 0 },
|
|
116
|
+
};
|
|
117
|
+
const successCounts = { haiku: 0, sonnet: 0, opus: 0 };
|
|
118
|
+
for (const outcome of this.routingHistory) {
|
|
119
|
+
stats.modelDistribution[outcome.model]++;
|
|
120
|
+
if (outcome.outcome === 'success') {
|
|
121
|
+
successCounts[outcome.model]++;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
for (const model of ['haiku', 'sonnet', 'opus']) {
|
|
125
|
+
const total = stats.modelDistribution[model];
|
|
126
|
+
stats.successRate[model] = total > 0 ? successCounts[model] / total : 0;
|
|
127
|
+
}
|
|
128
|
+
return stats;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Check if Claude Flow is available
|
|
132
|
+
*/
|
|
133
|
+
isClaudeFlowAvailable() {
|
|
134
|
+
return this.claudeFlowAvailable;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Local rule-based routing
|
|
138
|
+
*/
|
|
139
|
+
localRoute(task) {
|
|
140
|
+
const taskLower = task.toLowerCase();
|
|
141
|
+
// Check for low complexity indicators → haiku
|
|
142
|
+
for (const pattern of COMPLEXITY_INDICATORS.low) {
|
|
143
|
+
if (pattern.test(taskLower)) {
|
|
144
|
+
return {
|
|
145
|
+
model: 'haiku',
|
|
146
|
+
confidence: 0.75,
|
|
147
|
+
reasoning: 'Low complexity task detected - using haiku for speed',
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
// Check for high complexity indicators → opus
|
|
152
|
+
for (const pattern of COMPLEXITY_INDICATORS.high) {
|
|
153
|
+
if (pattern.test(taskLower)) {
|
|
154
|
+
return {
|
|
155
|
+
model: 'opus',
|
|
156
|
+
confidence: 0.8,
|
|
157
|
+
reasoning: 'High complexity task detected - using opus for capability',
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
// Check task length as proxy for complexity
|
|
162
|
+
if (task.length > 500) {
|
|
163
|
+
return {
|
|
164
|
+
model: 'opus',
|
|
165
|
+
confidence: 0.65,
|
|
166
|
+
reasoning: 'Long task description - using opus for complex reasoning',
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
if (task.length < 50) {
|
|
170
|
+
return {
|
|
171
|
+
model: 'haiku',
|
|
172
|
+
confidence: 0.6,
|
|
173
|
+
reasoning: 'Short task description - using haiku for efficiency',
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
// Default to sonnet (balanced)
|
|
177
|
+
return {
|
|
178
|
+
model: 'sonnet',
|
|
179
|
+
confidence: 0.7,
|
|
180
|
+
reasoning: 'Medium complexity task - using sonnet for balance',
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Escape shell argument using $'...' syntax for complete safety
|
|
185
|
+
* This ANSI-C quoting handles ALL special characters including backslashes
|
|
186
|
+
* CodeQL: js/incomplete-sanitization - Fixed by escaping backslashes AND quotes
|
|
187
|
+
*/
|
|
188
|
+
escapeArg(arg) {
|
|
189
|
+
// Escape backslashes first, then single quotes, using ANSI-C quoting
|
|
190
|
+
// $'...' syntax interprets escape sequences like \\ and \'
|
|
191
|
+
const escaped = arg
|
|
192
|
+
.replace(/\\/g, '\\\\') // Escape backslashes first
|
|
193
|
+
.replace(/'/g, "\\'"); // Then escape single quotes
|
|
194
|
+
return "$'" + escaped + "'";
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Create model router bridge
|
|
199
|
+
*/
|
|
200
|
+
export function createModelRouterBridge(options) {
|
|
201
|
+
return new ModelRouterBridge(options);
|
|
202
|
+
}
|
|
203
|
+
//# sourceMappingURL=model-router-bridge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-router-bridge.js","sourceRoot":"","sources":["../../../src/adapters/claude-flow/model-router-bridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH;;GAEG;AACH,MAAM,qBAAqB,GAAG;IAC5B,GAAG,EAAE;QACH,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS;QACtD,cAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ;KAC5C;IACD,IAAI,EAAE;QACJ,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,cAAc;QAChE,kBAAkB,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc;QAC5D,sBAAsB,EAAE,cAAc,EAAE,aAAa;KACtD;CACF,CAAC;AAEF;;GAEG;AACH,MAAM,OAAO,iBAAiB;IAIR;IAHZ,mBAAmB,GAAG,KAAK,CAAC;IAC5B,cAAc,GAA0B,EAAE,CAAC;IAEnD,YAAoB,OAAgC;QAAhC,YAAO,GAAP,OAAO,CAAyB;IAAG,CAAC;IAExD;;OAEG;IACH,KAAK,CAAC,UAAU;QACd,IAAI,CAAC,mBAAmB,GAAG,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC;IAC1D,CAAC;IAED;;OAEG;IACK,KAAK,CAAC,eAAe;QAC3B,IAAI,CAAC;YACH,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,CAAC;YACnD,QAAQ,CAAC,2DAA2D,EAAE;gBACpE,QAAQ,EAAE,OAAO;gBACjB,OAAO,EAAE,IAAI;gBACb,GAAG,EAAE,IAAI,CAAC,OAAO,CAAC,WAAW;aAC9B,CAAC,CAAC;YACH,OAAO,IAAI,CAAC;QACd,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,SAAS,CAAC,IAAY;QAC1B,IAAI,IAAI,CAAC,mBAAmB,EAAE,CAAC;YAC7B,IAAI,CAAC;gBACH,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,CAAC;gBACnD,MAAM,MAAM,GAAG,QAAQ,CACrB,wDAAwD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,cAAc,EAC1F,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,CACrE,CAAC;gBAEF,eAAe;gBACf,MAAM,UAAU,GAAG,MAAM,CAAC,KAAK,CAAC,sCAAsC,CAAC,CAAC;gBACxE,MAAM,SAAS,GAAG,MAAM,CAAC,KAAK,CAAC,4BAA4B,CAAC,CAAC;gBAC7D,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,sCAAsC,CAAC,CAAC;gBAEzE,IAAI,UAAU,EAAE,CAAC;oBACf,OAAO;wBACL,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,WAAW,EAAiC;wBACjE,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;wBACtD,SAAS,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE;qBACpC,CAAC;gBACJ,CAAC;YACH,CAAC;YAAC,MAAM,CAAC;gBACP,gCAAgC;YAClC,CAAC;QACH,CAAC;QAED,2BAA2B;QAC3B,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,aAAa,CAAC,OAA4B;QAC9C,gBAAgB;QAChB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAElC,eAAe;QACf,IAAI,IAAI,CAAC,cAAc,CAAC,MAAM,GAAG,IAAI,EAAE,CAAC;YACtC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC;QACxD,CAAC;QAED,IAAI,IAAI,CAAC,mBAAmB,EAAE,CAAC;YAC7B,IAAI,CAAC;gBACH,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,CAAC;gBACnD,QAAQ,CACN,0DAA0D,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,OAAO,CAAC,KAAK,cAAc,OAAO,CAAC,OAAO,cAAc,EAC1J,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,CACrE,CAAC;YACJ,CAAC;YAAC,MAAM,CAAC;gBACP,gDAAgD;YAClD,CAAC;QACH,CAAC;IACH,CAAC;IAED;;OAEG;IACH,QAAQ;QAKN,MAAM,KAAK,GAAG;YACZ,aAAa,EAAE,IAAI,CAAC,cAAc,CAAC,MAAM;YACzC,iBAAiB,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAA4B;YAC7E,WAAW,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAA4B;SACxE,CAAC;QAEF,MAAM,aAAa,GAA2B,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;QAE/E,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,cAAc,EAAE,CAAC;YAC1C,KAAK,CAAC,iBAAiB,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YACzC,IAAI,OAAO,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;gBAClC,aAAa,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YACjC,CAAC;QACH,CAAC;QAED,KAAK,MAAM,KAAK,IAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC,EAAE,CAAC;YAChD,MAAM,KAAK,GAAG,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;YAC7C,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1E,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;OAEG;IACH,qBAAqB;QACnB,OAAO,IAAI,CAAC,mBAAmB,CAAC;IAClC,CAAC;IAED;;OAEG;IACK,UAAU,CAAC,IAAY;QAC7B,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;QAErC,8CAA8C;QAC9C,KAAK,MAAM,OAAO,IAAI,qBAAqB,CAAC,GAAG,EAAE,CAAC;YAChD,IAAI,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;gBAC5B,OAAO;oBACL,KAAK,EAAE,OAAO;oBACd,UAAU,EAAE,IAAI;oBAChB,SAAS,EAAE,sDAAsD;iBAClE,CAAC;YACJ,CAAC;QACH,CAAC;QAED,8CAA8C;QAC9C,KAAK,MAAM,OAAO,IAAI,qBAAqB,CAAC,IAAI,EAAE,CAAC;YACjD,IAAI,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;gBAC5B,OAAO;oBACL,KAAK,EAAE,MAAM;oBACb,UAAU,EAAE,GAAG;oBACf,SAAS,EAAE,2DAA2D;iBACvE,CAAC;YACJ,CAAC;QACH,CAAC;QAED,4CAA4C;QAC5C,IAAI,IAAI,CAAC,MAAM,GAAG,GAAG,EAAE,CAAC;YACtB,OAAO;gBACL,KAAK,EAAE,MAAM;gBACb,UAAU,EAAE,IAAI;gBAChB,SAAS,EAAE,0DAA0D;aACtE,CAAC;QACJ,CAAC;QAED,IAAI,IAAI,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC;YACrB,OAAO;gBACL,KAAK,EAAE,OAAO;gBACd,UAAU,EAAE,GAAG;gBACf,SAAS,EAAE,qDAAqD;aACjE,CAAC;QACJ,CAAC;QAED,+BAA+B;QAC/B,OAAO;YACL,KAAK,EAAE,QAAQ;YACf,UAAU,EAAE,GAAG;YACf,SAAS,EAAE,mDAAmD;SAC/D,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACK,SAAS,CAAC,GAAW;QAC3B,qEAAqE;QACrE,2DAA2D;QAC3D,MAAM,OAAO,GAAG,GAAG;aAChB,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAE,2BAA2B;aACnD,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAG,4BAA4B;QACvD,OAAO,IAAI,GAAG,OAAO,GAAG,GAAG,CAAC;IAC9B,CAAC;CACF;AAED;;GAEG;AACH,MAAM,UAAU,uBAAuB,CAAC,OAAgC;IACtE,OAAO,IAAI,iBAAiB,CAAC,OAAO,CAAC,CAAC;AACxC,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pretrain Bridge
|
|
3
|
+
* Connects AQE to Claude Flow's codebase analysis pipeline
|
|
4
|
+
*
|
|
5
|
+
* When Claude Flow is available:
|
|
6
|
+
* - Uses 4-step pretrain pipeline for codebase understanding
|
|
7
|
+
* - Generates optimized agent configurations
|
|
8
|
+
* - Transfers learned patterns
|
|
9
|
+
*
|
|
10
|
+
* When not available:
|
|
11
|
+
* - Uses AQE's built-in project analyzer
|
|
12
|
+
* - Generates basic agent configurations
|
|
13
|
+
*/
|
|
14
|
+
import type { PretrainResult } from './types.js';
|
|
15
|
+
/**
|
|
16
|
+
* Pretrain Bridge for codebase analysis
|
|
17
|
+
*/
|
|
18
|
+
export declare class PretrainBridge {
|
|
19
|
+
private options;
|
|
20
|
+
private claudeFlowAvailable;
|
|
21
|
+
private analysisCache;
|
|
22
|
+
constructor(options: {
|
|
23
|
+
projectRoot: string;
|
|
24
|
+
});
|
|
25
|
+
/**
|
|
26
|
+
* Initialize the bridge
|
|
27
|
+
*/
|
|
28
|
+
initialize(): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Check if Claude Flow is available
|
|
31
|
+
*/
|
|
32
|
+
private checkClaudeFlow;
|
|
33
|
+
/**
|
|
34
|
+
* Run pretrain analysis
|
|
35
|
+
*/
|
|
36
|
+
analyze(path?: string, depth?: 'shallow' | 'medium' | 'deep'): Promise<PretrainResult>;
|
|
37
|
+
/**
|
|
38
|
+
* Generate agent configurations from analysis
|
|
39
|
+
*/
|
|
40
|
+
generateAgentConfigs(format?: 'yaml' | 'json'): Promise<Record<string, unknown>[]>;
|
|
41
|
+
/**
|
|
42
|
+
* Transfer patterns from another project
|
|
43
|
+
*/
|
|
44
|
+
transferPatterns(sourcePath: string, minConfidence?: number): Promise<{
|
|
45
|
+
transferred: number;
|
|
46
|
+
skipped: number;
|
|
47
|
+
}>;
|
|
48
|
+
/**
|
|
49
|
+
* Check if Claude Flow is available
|
|
50
|
+
*/
|
|
51
|
+
isClaudeFlowAvailable(): boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Escape shell argument using $'...' syntax for complete safety
|
|
54
|
+
* This ANSI-C quoting handles ALL special characters including backslashes
|
|
55
|
+
* CodeQL: js/incomplete-sanitization - Fixed by escaping backslashes AND quotes
|
|
56
|
+
*/
|
|
57
|
+
private escapeArg;
|
|
58
|
+
/**
|
|
59
|
+
* Local analysis using file system scanning
|
|
60
|
+
*/
|
|
61
|
+
private localAnalyze;
|
|
62
|
+
/**
|
|
63
|
+
* Generate basic QE agent configurations
|
|
64
|
+
*/
|
|
65
|
+
private generateLocalAgentConfigs;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Create pretrain bridge
|
|
69
|
+
*/
|
|
70
|
+
export declare function createPretrainBridge(options: {
|
|
71
|
+
projectRoot: string;
|
|
72
|
+
}): PretrainBridge;
|
|
73
|
+
//# sourceMappingURL=pretrain-bridge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pretrain-bridge.d.ts","sourceRoot":"","sources":["../../../src/adapters/claude-flow/pretrain-bridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD;;GAEG;AACH,qBAAa,cAAc;IAIb,OAAO,CAAC,OAAO;IAH3B,OAAO,CAAC,mBAAmB,CAAS;IACpC,OAAO,CAAC,aAAa,CAA0C;gBAE3C,OAAO,EAAE;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE;IAEpD;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAIjC;;OAEG;YACW,eAAe;IAc7B;;OAEG;IACG,OAAO,CACX,IAAI,CAAC,EAAE,MAAM,EACb,KAAK,GAAE,SAAS,GAAG,QAAQ,GAAG,MAAiB,GAC9C,OAAO,CAAC,cAAc,CAAC;IAgD1B;;OAEG;IACG,oBAAoB,CACxB,MAAM,GAAE,MAAM,GAAG,MAAe,GAC/B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IAuBrC;;OAEG;IACG,gBAAgB,CACpB,UAAU,EAAE,MAAM,EAClB,aAAa,GAAE,MAAY,GAC1B,OAAO,CAAC;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAwBpD;;OAEG;IACH,qBAAqB,IAAI,OAAO;IAIhC;;;;OAIG;IACH,OAAO,CAAC,SAAS;IASjB;;OAEG;YACW,YAAY;IAgF1B;;OAEG;IACH,OAAO,CAAC,yBAAyB;CA4BlC;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,GAAG,cAAc,CAErF"}
|