agentic-qe 3.7.12 → 3.7.14
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/skills/.validation/schemas/skill-frontmatter.schema.json +5 -0
- package/.claude/skills/skills-manifest.json +1 -1
- package/CHANGELOG.md +38 -0
- package/assets/skills/.validation/schemas/skill-frontmatter.schema.json +5 -0
- package/dist/audit/witness-backfill.d.ts +34 -0
- package/dist/audit/witness-backfill.js +80 -0
- package/dist/audit/witness-chain.d.ts +40 -99
- package/dist/audit/witness-chain.js +153 -163
- package/dist/audit/witness-key-manager.d.ts +100 -0
- package/dist/audit/witness-key-manager.js +218 -0
- package/dist/cli/brain-commands.d.ts +9 -0
- package/dist/cli/brain-commands.js +17 -0
- package/dist/cli/bundle.js +1414 -1238
- package/dist/cli/handlers/brain-handler.d.ts +1 -0
- package/dist/cli/handlers/brain-handler.js +106 -21
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -1
- package/dist/integrations/ruvector/brain-exporter.d.ts +24 -15
- package/dist/integrations/ruvector/brain-exporter.js +175 -448
- package/dist/integrations/ruvector/brain-rvf-exporter.d.ts +23 -25
- package/dist/integrations/ruvector/brain-rvf-exporter.js +207 -324
- package/dist/integrations/ruvector/brain-shared.d.ts +155 -0
- package/dist/integrations/ruvector/brain-shared.js +337 -0
- package/dist/integrations/ruvector/brain-table-ddl.d.ts +19 -0
- package/dist/integrations/ruvector/brain-table-ddl.js +226 -0
- package/dist/integrations/ruvector/rvf-native-adapter.d.ts +49 -17
- package/dist/integrations/ruvector/rvf-native-adapter.js +95 -2
- package/dist/learning/asymmetric-learning.d.ts +4 -0
- package/dist/learning/asymmetric-learning.js +11 -0
- package/dist/learning/dream/dream-engine.d.ts +4 -0
- package/dist/learning/dream/dream-engine.js +16 -0
- package/dist/learning/dream/rvcow-branch-manager.d.ts +4 -0
- package/dist/learning/dream/rvcow-branch-manager.js +9 -0
- package/dist/learning/pattern-lifecycle.d.ts +4 -0
- package/dist/learning/pattern-lifecycle.js +9 -0
- package/dist/mcp/bundle.js +278 -95
- package/dist/routing/qe-task-router.d.ts +4 -0
- package/dist/routing/qe-task-router.js +12 -0
- package/dist/validation/index.d.ts +4 -0
- package/dist/validation/index.js +8 -0
- package/dist/validation/trigger-optimizer.d.ts +61 -0
- package/dist/validation/trigger-optimizer.js +356 -0
- package/dist/validation/version-comparator.d.ts +115 -0
- package/dist/validation/version-comparator.js +322 -0
- package/package.json +13 -3
- package/dist/adapters/a2a/agent-cards/generator.d.ts.map +0 -1
- package/dist/adapters/a2a/agent-cards/generator.js.map +0 -1
- package/dist/adapters/a2a/agent-cards/schema.d.ts.map +0 -1
- package/dist/adapters/a2a/agent-cards/schema.js.map +0 -1
- package/dist/adapters/a2a/agent-cards/validator.d.ts.map +0 -1
- package/dist/adapters/a2a/agent-cards/validator.js.map +0 -1
- package/dist/adapters/a2a/auth/index.d.ts.map +0 -1
- package/dist/adapters/a2a/auth/index.js.map +0 -1
- package/dist/adapters/a2a/auth/jwt-utils.d.ts.map +0 -1
- package/dist/adapters/a2a/auth/jwt-utils.js.map +0 -1
- package/dist/adapters/a2a/auth/middleware.d.ts.map +0 -1
- package/dist/adapters/a2a/auth/middleware.js.map +0 -1
- package/dist/adapters/a2a/auth/oauth-provider.d.ts.map +0 -1
- package/dist/adapters/a2a/auth/oauth-provider.js.map +0 -1
- package/dist/adapters/a2a/auth/routes.d.ts.map +0 -1
- package/dist/adapters/a2a/auth/routes.js.map +0 -1
- package/dist/adapters/a2a/auth/scopes.d.ts.map +0 -1
- package/dist/adapters/a2a/auth/scopes.js.map +0 -1
- package/dist/adapters/a2a/auth/token-store.d.ts.map +0 -1
- package/dist/adapters/a2a/auth/token-store.js.map +0 -1
- package/dist/adapters/a2a/discovery/agent-health.d.ts.map +0 -1
- package/dist/adapters/a2a/discovery/agent-health.js.map +0 -1
- package/dist/adapters/a2a/discovery/discovery-service.d.ts.map +0 -1
- package/dist/adapters/a2a/discovery/discovery-service.js.map +0 -1
- package/dist/adapters/a2a/discovery/file-watcher.d.ts.map +0 -1
- package/dist/adapters/a2a/discovery/file-watcher.js.map +0 -1
- package/dist/adapters/a2a/discovery/hot-reload-service.d.ts.map +0 -1
- package/dist/adapters/a2a/discovery/hot-reload-service.js.map +0 -1
- package/dist/adapters/a2a/discovery/index.d.ts.map +0 -1
- package/dist/adapters/a2a/discovery/index.js.map +0 -1
- package/dist/adapters/a2a/discovery/metrics.d.ts.map +0 -1
- package/dist/adapters/a2a/discovery/metrics.js.map +0 -1
- package/dist/adapters/a2a/discovery/routes.d.ts.map +0 -1
- package/dist/adapters/a2a/discovery/routes.js.map +0 -1
- package/dist/adapters/a2a/index.d.ts.map +0 -1
- package/dist/adapters/a2a/index.js.map +0 -1
- package/dist/adapters/a2a/jsonrpc/envelope.d.ts.map +0 -1
- package/dist/adapters/a2a/jsonrpc/envelope.js.map +0 -1
- package/dist/adapters/a2a/jsonrpc/errors.d.ts.map +0 -1
- package/dist/adapters/a2a/jsonrpc/errors.js.map +0 -1
- package/dist/adapters/a2a/jsonrpc/index.d.ts.map +0 -1
- package/dist/adapters/a2a/jsonrpc/index.js.map +0 -1
- package/dist/adapters/a2a/jsonrpc/methods.d.ts.map +0 -1
- package/dist/adapters/a2a/jsonrpc/methods.js.map +0 -1
- package/dist/adapters/a2a/notifications/index.d.ts.map +0 -1
- package/dist/adapters/a2a/notifications/index.js.map +0 -1
- package/dist/adapters/a2a/notifications/retry-queue.d.ts.map +0 -1
- package/dist/adapters/a2a/notifications/retry-queue.js.map +0 -1
- package/dist/adapters/a2a/notifications/signature.d.ts.map +0 -1
- package/dist/adapters/a2a/notifications/signature.js.map +0 -1
- package/dist/adapters/a2a/notifications/subscription-store.d.ts.map +0 -1
- package/dist/adapters/a2a/notifications/subscription-store.js.map +0 -1
- package/dist/adapters/a2a/notifications/webhook-service.d.ts.map +0 -1
- package/dist/adapters/a2a/notifications/webhook-service.js.map +0 -1
- package/dist/adapters/a2a/tasks/index.d.ts.map +0 -1
- package/dist/adapters/a2a/tasks/index.js.map +0 -1
- package/dist/adapters/a2a/tasks/task-manager.d.ts.map +0 -1
- package/dist/adapters/a2a/tasks/task-manager.js.map +0 -1
- package/dist/adapters/a2a/tasks/task-router.d.ts.map +0 -1
- package/dist/adapters/a2a/tasks/task-router.js.map +0 -1
- package/dist/adapters/a2a/tasks/task-store.d.ts.map +0 -1
- package/dist/adapters/a2a/tasks/task-store.js.map +0 -1
- package/dist/adapters/a2ui/accessibility/aria-attributes.d.ts.map +0 -1
- package/dist/adapters/a2ui/accessibility/aria-attributes.js.map +0 -1
- package/dist/adapters/a2ui/accessibility/index.d.ts.map +0 -1
- package/dist/adapters/a2ui/accessibility/index.js.map +0 -1
- package/dist/adapters/a2ui/accessibility/keyboard-nav.d.ts.map +0 -1
- package/dist/adapters/a2ui/accessibility/keyboard-nav.js.map +0 -1
- package/dist/adapters/a2ui/accessibility/wcag-validator.d.ts.map +0 -1
- package/dist/adapters/a2ui/accessibility/wcag-validator.js.map +0 -1
- package/dist/adapters/a2ui/catalog/component-schemas.d.ts.map +0 -1
- package/dist/adapters/a2ui/catalog/component-schemas.js.map +0 -1
- package/dist/adapters/a2ui/catalog/index.d.ts.map +0 -1
- package/dist/adapters/a2ui/catalog/index.js.map +0 -1
- package/dist/adapters/a2ui/catalog/qe-catalog.d.ts.map +0 -1
- package/dist/adapters/a2ui/catalog/qe-catalog.js.map +0 -1
- package/dist/adapters/a2ui/catalog/standard-catalog.d.ts.map +0 -1
- package/dist/adapters/a2ui/catalog/standard-catalog.js.map +0 -1
- package/dist/adapters/a2ui/data/bound-value.d.ts.map +0 -1
- package/dist/adapters/a2ui/data/bound-value.js.map +0 -1
- package/dist/adapters/a2ui/data/index.d.ts.map +0 -1
- package/dist/adapters/a2ui/data/index.js.map +0 -1
- package/dist/adapters/a2ui/data/json-pointer-resolver.d.ts.map +0 -1
- package/dist/adapters/a2ui/data/json-pointer-resolver.js.map +0 -1
- package/dist/adapters/a2ui/data/reactive-store.d.ts.map +0 -1
- package/dist/adapters/a2ui/data/reactive-store.js.map +0 -1
- package/dist/adapters/a2ui/index.d.ts.map +0 -1
- package/dist/adapters/a2ui/index.js.map +0 -1
- package/dist/adapters/a2ui/integration/agui-sync.d.ts.map +0 -1
- package/dist/adapters/a2ui/integration/agui-sync.js.map +0 -1
- package/dist/adapters/a2ui/integration/index.d.ts.map +0 -1
- package/dist/adapters/a2ui/integration/index.js.map +0 -1
- package/dist/adapters/a2ui/integration/surface-state-bridge.d.ts.map +0 -1
- package/dist/adapters/a2ui/integration/surface-state-bridge.js.map +0 -1
- package/dist/adapters/a2ui/renderer/component-builder.d.ts.map +0 -1
- package/dist/adapters/a2ui/renderer/component-builder.js.map +0 -1
- package/dist/adapters/a2ui/renderer/index.d.ts.map +0 -1
- package/dist/adapters/a2ui/renderer/index.js.map +0 -1
- package/dist/adapters/a2ui/renderer/message-types.d.ts.map +0 -1
- package/dist/adapters/a2ui/renderer/message-types.js.map +0 -1
- package/dist/adapters/a2ui/renderer/surface-generator.d.ts.map +0 -1
- package/dist/adapters/a2ui/renderer/surface-generator.js.map +0 -1
- package/dist/adapters/a2ui/renderer/templates/accessibility-surface.d.ts.map +0 -1
- package/dist/adapters/a2ui/renderer/templates/accessibility-surface.js.map +0 -1
- package/dist/adapters/a2ui/renderer/templates/coverage-surface.d.ts.map +0 -1
- package/dist/adapters/a2ui/renderer/templates/coverage-surface.js.map +0 -1
- package/dist/adapters/a2ui/renderer/templates/index.d.ts.map +0 -1
- package/dist/adapters/a2ui/renderer/templates/index.js.map +0 -1
- package/dist/adapters/a2ui/renderer/templates/security-surface.d.ts.map +0 -1
- package/dist/adapters/a2ui/renderer/templates/security-surface.js.map +0 -1
- package/dist/adapters/a2ui/renderer/templates/test-results-surface.d.ts.map +0 -1
- package/dist/adapters/a2ui/renderer/templates/test-results-surface.js.map +0 -1
- package/dist/adapters/ag-ui/backpressure-handler.d.ts.map +0 -1
- package/dist/adapters/ag-ui/backpressure-handler.js.map +0 -1
- package/dist/adapters/ag-ui/event-adapter.d.ts.map +0 -1
- package/dist/adapters/ag-ui/event-adapter.js.map +0 -1
- package/dist/adapters/ag-ui/event-batcher.d.ts.map +0 -1
- package/dist/adapters/ag-ui/event-batcher.js.map +0 -1
- package/dist/adapters/ag-ui/event-types.d.ts.map +0 -1
- package/dist/adapters/ag-ui/event-types.js.map +0 -1
- package/dist/adapters/ag-ui/index.d.ts.map +0 -1
- package/dist/adapters/ag-ui/index.js.map +0 -1
- package/dist/adapters/ag-ui/json-patch-utils.d.ts.map +0 -1
- package/dist/adapters/ag-ui/json-patch-utils.js.map +0 -1
- package/dist/adapters/ag-ui/json-patch.d.ts.map +0 -1
- package/dist/adapters/ag-ui/json-patch.js.map +0 -1
- package/dist/adapters/ag-ui/state-delta-cache.d.ts.map +0 -1
- package/dist/adapters/ag-ui/state-delta-cache.js.map +0 -1
- package/dist/adapters/ag-ui/state-manager.d.ts.map +0 -1
- package/dist/adapters/ag-ui/state-manager.js.map +0 -1
- package/dist/adapters/ag-ui/stream-controller.d.ts.map +0 -1
- package/dist/adapters/ag-ui/stream-controller.js.map +0 -1
- package/dist/adapters/browser-result-adapter.d.ts.map +0 -1
- package/dist/adapters/browser-result-adapter.js.map +0 -1
- package/dist/adapters/claude-flow/detect.d.ts.map +0 -1
- package/dist/adapters/claude-flow/detect.js.map +0 -1
- package/dist/adapters/claude-flow/index.d.ts.map +0 -1
- package/dist/adapters/claude-flow/index.js.map +0 -1
- package/dist/adapters/claude-flow/model-router-bridge.d.ts.map +0 -1
- package/dist/adapters/claude-flow/model-router-bridge.js.map +0 -1
- package/dist/adapters/claude-flow/pretrain-bridge.d.ts.map +0 -1
- package/dist/adapters/claude-flow/pretrain-bridge.js.map +0 -1
- package/dist/adapters/claude-flow/trajectory-bridge.d.ts.map +0 -1
- package/dist/adapters/claude-flow/trajectory-bridge.js.map +0 -1
- package/dist/adapters/claude-flow/types.d.ts.map +0 -1
- package/dist/adapters/claude-flow/types.js.map +0 -1
- package/dist/adapters/index.d.ts.map +0 -1
- package/dist/adapters/index.js.map +0 -1
- package/dist/adapters/trajectory-adapter.d.ts.map +0 -1
- package/dist/adapters/trajectory-adapter.js.map +0 -1
- package/dist/agents/claim-verifier/claim-verifier-service.d.ts.map +0 -1
- package/dist/agents/claim-verifier/claim-verifier-service.js.map +0 -1
- package/dist/agents/claim-verifier/index.d.ts.map +0 -1
- package/dist/agents/claim-verifier/index.js.map +0 -1
- package/dist/agents/claim-verifier/interfaces.d.ts.map +0 -1
- package/dist/agents/claim-verifier/interfaces.js.map +0 -1
- package/dist/agents/claim-verifier/verifiers/file-verifier.d.ts.map +0 -1
- package/dist/agents/claim-verifier/verifiers/file-verifier.js.map +0 -1
- package/dist/agents/claim-verifier/verifiers/index.d.ts.map +0 -1
- package/dist/agents/claim-verifier/verifiers/index.js.map +0 -1
- package/dist/agents/claim-verifier/verifiers/output-verifier.d.ts.map +0 -1
- package/dist/agents/claim-verifier/verifiers/output-verifier.js.map +0 -1
- package/dist/agents/claim-verifier/verifiers/test-verifier.d.ts.map +0 -1
- package/dist/agents/claim-verifier/verifiers/test-verifier.js.map +0 -1
- package/dist/agents/devils-advocate/agent.d.ts.map +0 -1
- package/dist/agents/devils-advocate/agent.js.map +0 -1
- package/dist/agents/devils-advocate/index.d.ts.map +0 -1
- package/dist/agents/devils-advocate/index.js.map +0 -1
- package/dist/agents/devils-advocate/strategies.d.ts.map +0 -1
- package/dist/agents/devils-advocate/strategies.js.map +0 -1
- package/dist/agents/devils-advocate/types.d.ts.map +0 -1
- package/dist/agents/devils-advocate/types.js.map +0 -1
- package/dist/agents/index.d.ts.map +0 -1
- package/dist/agents/index.js.map +0 -1
- package/dist/audit/witness-chain.d.ts.map +0 -1
- package/dist/audit/witness-chain.js.map +0 -1
- package/dist/benchmarks/performance-benchmarks.d.ts.map +0 -1
- package/dist/benchmarks/performance-benchmarks.js.map +0 -1
- package/dist/benchmarks/run-benchmarks.d.ts.map +0 -1
- package/dist/benchmarks/run-benchmarks.js.map +0 -1
- package/dist/causal-discovery/causal-graph.d.ts.map +0 -1
- package/dist/causal-discovery/causal-graph.js.map +0 -1
- package/dist/causal-discovery/discovery-engine.d.ts.map +0 -1
- package/dist/causal-discovery/discovery-engine.js.map +0 -1
- package/dist/causal-discovery/index.d.ts.map +0 -1
- package/dist/causal-discovery/index.js.map +0 -1
- package/dist/causal-discovery/types.d.ts.map +0 -1
- package/dist/causal-discovery/types.js.map +0 -1
- package/dist/causal-discovery/weight-matrix.d.ts.map +0 -1
- package/dist/causal-discovery/weight-matrix.js.map +0 -1
- package/dist/cli/brain-commands.d.ts.map +0 -1
- package/dist/cli/brain-commands.js.map +0 -1
- package/dist/cli/command-registry.d.ts.map +0 -1
- package/dist/cli/command-registry.js.map +0 -1
- package/dist/cli/commands/ci.d.ts.map +0 -1
- package/dist/cli/commands/ci.js.map +0 -1
- package/dist/cli/commands/claude-flow-setup.d.ts.map +0 -1
- package/dist/cli/commands/claude-flow-setup.js.map +0 -1
- package/dist/cli/commands/code.d.ts.map +0 -1
- package/dist/cli/commands/code.js.map +0 -1
- package/dist/cli/commands/completions.d.ts.map +0 -1
- package/dist/cli/commands/completions.js.map +0 -1
- package/dist/cli/commands/coverage.d.ts.map +0 -1
- package/dist/cli/commands/coverage.js.map +0 -1
- package/dist/cli/commands/eval.d.ts.map +0 -1
- package/dist/cli/commands/eval.js.map +0 -1
- package/dist/cli/commands/fleet.d.ts.map +0 -1
- package/dist/cli/commands/fleet.js.map +0 -1
- package/dist/cli/commands/hooks.d.ts.map +0 -1
- package/dist/cli/commands/hooks.js.map +0 -1
- package/dist/cli/commands/init.d.ts.map +0 -1
- package/dist/cli/commands/init.js.map +0 -1
- package/dist/cli/commands/learning-helpers.d.ts.map +0 -1
- package/dist/cli/commands/learning-helpers.js.map +0 -1
- package/dist/cli/commands/learning.d.ts.map +0 -1
- package/dist/cli/commands/learning.js.map +0 -1
- package/dist/cli/commands/llm-router.d.ts.map +0 -1
- package/dist/cli/commands/llm-router.js.map +0 -1
- package/dist/cli/commands/mcp.d.ts.map +0 -1
- package/dist/cli/commands/mcp.js.map +0 -1
- package/dist/cli/commands/migrate.d.ts.map +0 -1
- package/dist/cli/commands/migrate.js.map +0 -1
- package/dist/cli/commands/platform.d.ts.map +0 -1
- package/dist/cli/commands/platform.js.map +0 -1
- package/dist/cli/commands/quality.d.ts.map +0 -1
- package/dist/cli/commands/quality.js.map +0 -1
- package/dist/cli/commands/security.d.ts.map +0 -1
- package/dist/cli/commands/security.js.map +0 -1
- package/dist/cli/commands/sync.d.ts.map +0 -1
- package/dist/cli/commands/sync.js.map +0 -1
- package/dist/cli/commands/test.d.ts.map +0 -1
- package/dist/cli/commands/test.js.map +0 -1
- package/dist/cli/commands/token-usage.d.ts.map +0 -1
- package/dist/cli/commands/token-usage.js.map +0 -1
- package/dist/cli/commands/validate-swarm.d.ts.map +0 -1
- package/dist/cli/commands/validate-swarm.js.map +0 -1
- package/dist/cli/commands/validate.d.ts.map +0 -1
- package/dist/cli/commands/validate.js.map +0 -1
- package/dist/cli/completions/index.d.ts.map +0 -1
- package/dist/cli/completions/index.js.map +0 -1
- package/dist/cli/config/cli-config.d.ts.map +0 -1
- package/dist/cli/config/cli-config.js.map +0 -1
- package/dist/cli/config/index.d.ts.map +0 -1
- package/dist/cli/config/index.js.map +0 -1
- package/dist/cli/handlers/agent-handler.d.ts.map +0 -1
- package/dist/cli/handlers/agent-handler.js.map +0 -1
- package/dist/cli/handlers/brain-handler.d.ts.map +0 -1
- package/dist/cli/handlers/brain-handler.js.map +0 -1
- package/dist/cli/handlers/domain-handler.d.ts.map +0 -1
- package/dist/cli/handlers/domain-handler.js.map +0 -1
- package/dist/cli/handlers/index.d.ts.map +0 -1
- package/dist/cli/handlers/index.js.map +0 -1
- package/dist/cli/handlers/init-handler.d.ts.map +0 -1
- package/dist/cli/handlers/init-handler.js.map +0 -1
- package/dist/cli/handlers/interfaces.d.ts.map +0 -1
- package/dist/cli/handlers/interfaces.js.map +0 -1
- package/dist/cli/handlers/protocol-handler.d.ts.map +0 -1
- package/dist/cli/handlers/protocol-handler.js.map +0 -1
- package/dist/cli/handlers/status-handler.d.ts.map +0 -1
- package/dist/cli/handlers/status-handler.js.map +0 -1
- package/dist/cli/handlers/task-handler.d.ts.map +0 -1
- package/dist/cli/handlers/task-handler.js.map +0 -1
- package/dist/cli/helpers/safe-json.d.ts.map +0 -1
- package/dist/cli/helpers/safe-json.js.map +0 -1
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/index.js.map +0 -1
- package/dist/cli/scheduler/index.d.ts.map +0 -1
- package/dist/cli/scheduler/index.js.map +0 -1
- package/dist/cli/scheduler/persistent-scheduler.d.ts.map +0 -1
- package/dist/cli/scheduler/persistent-scheduler.js.map +0 -1
- package/dist/cli/utils/ci-config.d.ts.map +0 -1
- package/dist/cli/utils/ci-config.js.map +0 -1
- package/dist/cli/utils/ci-output.d.ts.map +0 -1
- package/dist/cli/utils/ci-output.js.map +0 -1
- package/dist/cli/utils/coverage-data.d.ts.map +0 -1
- package/dist/cli/utils/coverage-data.js.map +0 -1
- package/dist/cli/utils/file-discovery.d.ts.map +0 -1
- package/dist/cli/utils/file-discovery.js.map +0 -1
- package/dist/cli/utils/index.d.ts.map +0 -1
- package/dist/cli/utils/index.js.map +0 -1
- package/dist/cli/utils/progress.d.ts.map +0 -1
- package/dist/cli/utils/progress.js.map +0 -1
- package/dist/cli/utils/streaming.d.ts.map +0 -1
- package/dist/cli/utils/streaming.js.map +0 -1
- package/dist/cli/utils/workflow-parser.d.ts.map +0 -1
- package/dist/cli/utils/workflow-parser.js.map +0 -1
- package/dist/cli/wizards/core/index.d.ts.map +0 -1
- package/dist/cli/wizards/core/index.js.map +0 -1
- package/dist/cli/wizards/core/wizard-base.d.ts.map +0 -1
- package/dist/cli/wizards/core/wizard-base.js.map +0 -1
- package/dist/cli/wizards/core/wizard-command.d.ts.map +0 -1
- package/dist/cli/wizards/core/wizard-command.js.map +0 -1
- package/dist/cli/wizards/core/wizard-step.d.ts.map +0 -1
- package/dist/cli/wizards/core/wizard-step.js.map +0 -1
- package/dist/cli/wizards/core/wizard-utils.d.ts.map +0 -1
- package/dist/cli/wizards/core/wizard-utils.js.map +0 -1
- package/dist/cli/wizards/coverage-wizard.d.ts.map +0 -1
- package/dist/cli/wizards/coverage-wizard.js.map +0 -1
- package/dist/cli/wizards/fleet-wizard.d.ts.map +0 -1
- package/dist/cli/wizards/fleet-wizard.js.map +0 -1
- package/dist/cli/wizards/index.d.ts.map +0 -1
- package/dist/cli/wizards/index.js.map +0 -1
- package/dist/cli/wizards/security-wizard.d.ts.map +0 -1
- package/dist/cli/wizards/security-wizard.js.map +0 -1
- package/dist/cli/wizards/test-wizard.d.ts.map +0 -1
- package/dist/cli/wizards/test-wizard.js.map +0 -1
- package/dist/coordination/agent-teams/adapter.d.ts.map +0 -1
- package/dist/coordination/agent-teams/adapter.js.map +0 -1
- package/dist/coordination/agent-teams/domain-team-manager.d.ts.map +0 -1
- package/dist/coordination/agent-teams/domain-team-manager.js.map +0 -1
- package/dist/coordination/agent-teams/index.d.ts.map +0 -1
- package/dist/coordination/agent-teams/index.js.map +0 -1
- package/dist/coordination/agent-teams/mailbox.d.ts.map +0 -1
- package/dist/coordination/agent-teams/mailbox.js.map +0 -1
- package/dist/coordination/agent-teams/tracing.d.ts.map +0 -1
- package/dist/coordination/agent-teams/tracing.js.map +0 -1
- package/dist/coordination/agent-teams/types.d.ts.map +0 -1
- package/dist/coordination/agent-teams/types.js.map +0 -1
- package/dist/coordination/circuit-breaker/breaker-registry.d.ts.map +0 -1
- package/dist/coordination/circuit-breaker/breaker-registry.js.map +0 -1
- package/dist/coordination/circuit-breaker/domain-circuit-breaker.d.ts.map +0 -1
- package/dist/coordination/circuit-breaker/domain-circuit-breaker.js.map +0 -1
- package/dist/coordination/circuit-breaker/index.d.ts.map +0 -1
- package/dist/coordination/circuit-breaker/index.js.map +0 -1
- package/dist/coordination/circuit-breaker/types.d.ts.map +0 -1
- package/dist/coordination/circuit-breaker/types.js.map +0 -1
- package/dist/coordination/claims/claim-repository.d.ts.map +0 -1
- package/dist/coordination/claims/claim-repository.js.map +0 -1
- package/dist/coordination/claims/claim-service.d.ts.map +0 -1
- package/dist/coordination/claims/claim-service.js.map +0 -1
- package/dist/coordination/claims/handoff-manager.d.ts.map +0 -1
- package/dist/coordination/claims/handoff-manager.js.map +0 -1
- package/dist/coordination/claims/index.d.ts.map +0 -1
- package/dist/coordination/claims/index.js.map +0 -1
- package/dist/coordination/claims/interfaces.d.ts.map +0 -1
- package/dist/coordination/claims/interfaces.js.map +0 -1
- package/dist/coordination/claims/work-stealing.d.ts.map +0 -1
- package/dist/coordination/claims/work-stealing.js.map +0 -1
- package/dist/coordination/competing-hypotheses/hypothesis-manager.d.ts.map +0 -1
- package/dist/coordination/competing-hypotheses/hypothesis-manager.js.map +0 -1
- package/dist/coordination/competing-hypotheses/index.d.ts.map +0 -1
- package/dist/coordination/competing-hypotheses/index.js.map +0 -1
- package/dist/coordination/competing-hypotheses/types.d.ts.map +0 -1
- package/dist/coordination/competing-hypotheses/types.js.map +0 -1
- package/dist/coordination/complexity-composition/index.d.ts.map +0 -1
- package/dist/coordination/complexity-composition/index.js.map +0 -1
- package/dist/coordination/complexity-composition/team-composer.d.ts.map +0 -1
- package/dist/coordination/complexity-composition/team-composer.js.map +0 -1
- package/dist/coordination/consensus/consensus-engine.d.ts.map +0 -1
- package/dist/coordination/consensus/consensus-engine.js.map +0 -1
- package/dist/coordination/consensus/domain-findings.d.ts.map +0 -1
- package/dist/coordination/consensus/domain-findings.js.map +0 -1
- package/dist/coordination/consensus/factory.d.ts.map +0 -1
- package/dist/coordination/consensus/factory.js.map +0 -1
- package/dist/coordination/consensus/index.d.ts.map +0 -1
- package/dist/coordination/consensus/index.js.map +0 -1
- package/dist/coordination/consensus/interfaces.d.ts.map +0 -1
- package/dist/coordination/consensus/interfaces.js.map +0 -1
- package/dist/coordination/consensus/model-provider.d.ts.map +0 -1
- package/dist/coordination/consensus/model-provider.js.map +0 -1
- package/dist/coordination/consensus/providers/claude-provider.d.ts.map +0 -1
- package/dist/coordination/consensus/providers/claude-provider.js.map +0 -1
- package/dist/coordination/consensus/providers/gemini-provider.d.ts.map +0 -1
- package/dist/coordination/consensus/providers/gemini-provider.js.map +0 -1
- package/dist/coordination/consensus/providers/index.d.ts.map +0 -1
- package/dist/coordination/consensus/providers/index.js.map +0 -1
- package/dist/coordination/consensus/providers/native-learning-provider.d.ts.map +0 -1
- package/dist/coordination/consensus/providers/native-learning-provider.js.map +0 -1
- package/dist/coordination/consensus/providers/ollama-provider.d.ts.map +0 -1
- package/dist/coordination/consensus/providers/ollama-provider.js.map +0 -1
- package/dist/coordination/consensus/providers/openai-provider.d.ts.map +0 -1
- package/dist/coordination/consensus/providers/openai-provider.js.map +0 -1
- package/dist/coordination/consensus/providers/openrouter-provider.d.ts.map +0 -1
- package/dist/coordination/consensus/providers/openrouter-provider.js.map +0 -1
- package/dist/coordination/consensus/strategies/index.d.ts.map +0 -1
- package/dist/coordination/consensus/strategies/index.js.map +0 -1
- package/dist/coordination/consensus/strategies/majority-strategy.d.ts.map +0 -1
- package/dist/coordination/consensus/strategies/majority-strategy.js.map +0 -1
- package/dist/coordination/consensus/strategies/unanimous-strategy.d.ts.map +0 -1
- package/dist/coordination/consensus/strategies/unanimous-strategy.js.map +0 -1
- package/dist/coordination/consensus/strategies/weighted-strategy.d.ts.map +0 -1
- package/dist/coordination/consensus/strategies/weighted-strategy.js.map +0 -1
- package/dist/coordination/consensus/sycophancy-scorer.d.ts.map +0 -1
- package/dist/coordination/consensus/sycophancy-scorer.js.map +0 -1
- package/dist/coordination/constants.d.ts.map +0 -1
- package/dist/coordination/constants.js.map +0 -1
- package/dist/coordination/cross-domain-router.d.ts.map +0 -1
- package/dist/coordination/cross-domain-router.js.map +0 -1
- package/dist/coordination/dynamic-scaling/dynamic-scaler.d.ts.map +0 -1
- package/dist/coordination/dynamic-scaling/dynamic-scaler.js.map +0 -1
- package/dist/coordination/dynamic-scaling/index.d.ts.map +0 -1
- package/dist/coordination/dynamic-scaling/index.js.map +0 -1
- package/dist/coordination/dynamic-scaling/types.d.ts.map +0 -1
- package/dist/coordination/dynamic-scaling/types.js.map +0 -1
- package/dist/coordination/federation/federation-mailbox.d.ts.map +0 -1
- package/dist/coordination/federation/federation-mailbox.js.map +0 -1
- package/dist/coordination/federation/index.d.ts.map +0 -1
- package/dist/coordination/federation/index.js.map +0 -1
- package/dist/coordination/federation/types.d.ts.map +0 -1
- package/dist/coordination/federation/types.js.map +0 -1
- package/dist/coordination/fleet-tiers/index.d.ts.map +0 -1
- package/dist/coordination/fleet-tiers/index.js.map +0 -1
- package/dist/coordination/fleet-tiers/tier-config.d.ts.map +0 -1
- package/dist/coordination/fleet-tiers/tier-config.js.map +0 -1
- package/dist/coordination/fleet-tiers/tier-selector.d.ts.map +0 -1
- package/dist/coordination/fleet-tiers/tier-selector.js.map +0 -1
- package/dist/coordination/fleet-tiers/types.d.ts.map +0 -1
- package/dist/coordination/fleet-tiers/types.js.map +0 -1
- package/dist/coordination/handlers/code-intelligence-handlers.d.ts.map +0 -1
- package/dist/coordination/handlers/code-intelligence-handlers.js.map +0 -1
- package/dist/coordination/handlers/coverage-handlers.d.ts.map +0 -1
- package/dist/coordination/handlers/coverage-handlers.js.map +0 -1
- package/dist/coordination/handlers/handler-types.d.ts.map +0 -1
- package/dist/coordination/handlers/handler-types.js.map +0 -1
- package/dist/coordination/handlers/handler-utils.d.ts.map +0 -1
- package/dist/coordination/handlers/handler-utils.js.map +0 -1
- package/dist/coordination/handlers/index.d.ts.map +0 -1
- package/dist/coordination/handlers/index.js.map +0 -1
- package/dist/coordination/handlers/misc-handlers.d.ts.map +0 -1
- package/dist/coordination/handlers/misc-handlers.js.map +0 -1
- package/dist/coordination/handlers/quality-handlers.d.ts.map +0 -1
- package/dist/coordination/handlers/quality-handlers.js.map +0 -1
- package/dist/coordination/handlers/requirements-handlers.d.ts.map +0 -1
- package/dist/coordination/handlers/requirements-handlers.js.map +0 -1
- package/dist/coordination/handlers/security-handlers.d.ts.map +0 -1
- package/dist/coordination/handlers/security-handlers.js.map +0 -1
- package/dist/coordination/handlers/test-execution-handlers.d.ts.map +0 -1
- package/dist/coordination/handlers/test-execution-handlers.js.map +0 -1
- package/dist/coordination/index.d.ts.map +0 -1
- package/dist/coordination/index.js.map +0 -1
- package/dist/coordination/interfaces.d.ts.map +0 -1
- package/dist/coordination/interfaces.js.map +0 -1
- package/dist/coordination/mincut/causal-discovery.d.ts.map +0 -1
- package/dist/coordination/mincut/causal-discovery.js.map +0 -1
- package/dist/coordination/mincut/dream-integration.d.ts.map +0 -1
- package/dist/coordination/mincut/dream-integration.js.map +0 -1
- package/dist/coordination/mincut/index.d.ts.map +0 -1
- package/dist/coordination/mincut/index.js.map +0 -1
- package/dist/coordination/mincut/interfaces.d.ts.map +0 -1
- package/dist/coordination/mincut/interfaces.js.map +0 -1
- package/dist/coordination/mincut/kuramoto-cpg.d.ts.map +0 -1
- package/dist/coordination/mincut/kuramoto-cpg.js.map +0 -1
- package/dist/coordination/mincut/mincut-calculator.d.ts.map +0 -1
- package/dist/coordination/mincut/mincut-calculator.js.map +0 -1
- package/dist/coordination/mincut/mincut-health-monitor.d.ts.map +0 -1
- package/dist/coordination/mincut/mincut-health-monitor.js.map +0 -1
- package/dist/coordination/mincut/mincut-persistence.d.ts.map +0 -1
- package/dist/coordination/mincut/mincut-persistence.js.map +0 -1
- package/dist/coordination/mincut/morphogenetic-growth.d.ts.map +0 -1
- package/dist/coordination/mincut/morphogenetic-growth.js.map +0 -1
- package/dist/coordination/mincut/neural-goap.d.ts.map +0 -1
- package/dist/coordination/mincut/neural-goap.js.map +0 -1
- package/dist/coordination/mincut/queen-integration.d.ts.map +0 -1
- package/dist/coordination/mincut/queen-integration.js.map +0 -1
- package/dist/coordination/mincut/shared-singleton.d.ts.map +0 -1
- package/dist/coordination/mincut/shared-singleton.js.map +0 -1
- package/dist/coordination/mincut/strange-loop.d.ts.map +0 -1
- package/dist/coordination/mincut/strange-loop.js.map +0 -1
- package/dist/coordination/mincut/swarm-graph.d.ts.map +0 -1
- package/dist/coordination/mincut/swarm-graph.js.map +0 -1
- package/dist/coordination/mincut/time-crystal.d.ts.map +0 -1
- package/dist/coordination/mincut/time-crystal.js.map +0 -1
- package/dist/coordination/mixins/consensus-enabled-domain.d.ts.map +0 -1
- package/dist/coordination/mixins/consensus-enabled-domain.js.map +0 -1
- package/dist/coordination/mixins/governance-aware-domain.d.ts.map +0 -1
- package/dist/coordination/mixins/governance-aware-domain.js.map +0 -1
- package/dist/coordination/mixins/index.d.ts.map +0 -1
- package/dist/coordination/mixins/index.js.map +0 -1
- package/dist/coordination/mixins/mincut-aware-domain.d.ts.map +0 -1
- package/dist/coordination/mixins/mincut-aware-domain.js.map +0 -1
- package/dist/coordination/plugin.d.ts.map +0 -1
- package/dist/coordination/plugin.js.map +0 -1
- package/dist/coordination/protocol-executor.d.ts.map +0 -1
- package/dist/coordination/protocol-executor.js.map +0 -1
- package/dist/coordination/protocols/code-intelligence-index.d.ts.map +0 -1
- package/dist/coordination/protocols/code-intelligence-index.js.map +0 -1
- package/dist/coordination/protocols/defect-investigation.d.ts.map +0 -1
- package/dist/coordination/protocols/defect-investigation.js.map +0 -1
- package/dist/coordination/protocols/index.d.ts.map +0 -1
- package/dist/coordination/protocols/index.js.map +0 -1
- package/dist/coordination/protocols/learning-consolidation.d.ts.map +0 -1
- package/dist/coordination/protocols/learning-consolidation.js.map +0 -1
- package/dist/coordination/protocols/morning-sync.d.ts.map +0 -1
- package/dist/coordination/protocols/morning-sync.js.map +0 -1
- package/dist/coordination/protocols/quality-gate.d.ts.map +0 -1
- package/dist/coordination/protocols/quality-gate.js.map +0 -1
- package/dist/coordination/protocols/security-audit.d.ts.map +0 -1
- package/dist/coordination/protocols/security-audit.js.map +0 -1
- package/dist/coordination/queen-coordinator.d.ts.map +0 -1
- package/dist/coordination/queen-coordinator.js.map +0 -1
- package/dist/coordination/queen-event-handlers.d.ts.map +0 -1
- package/dist/coordination/queen-event-handlers.js.map +0 -1
- package/dist/coordination/queen-lifecycle.d.ts.map +0 -1
- package/dist/coordination/queen-lifecycle.js.map +0 -1
- package/dist/coordination/queen-task-management.d.ts.map +0 -1
- package/dist/coordination/queen-task-management.js.map +0 -1
- package/dist/coordination/queen-types.d.ts.map +0 -1
- package/dist/coordination/queen-types.js.map +0 -1
- package/dist/coordination/queen-work-stealing.d.ts.map +0 -1
- package/dist/coordination/queen-work-stealing.js.map +0 -1
- package/dist/coordination/result-saver.d.ts.map +0 -1
- package/dist/coordination/result-saver.js.map +0 -1
- package/dist/coordination/services/index.d.ts.map +0 -1
- package/dist/coordination/services/index.js.map +0 -1
- package/dist/coordination/services/task-audit-logger.d.ts.map +0 -1
- package/dist/coordination/services/task-audit-logger.js.map +0 -1
- package/dist/coordination/task-dag/dag.d.ts.map +0 -1
- package/dist/coordination/task-dag/dag.js.map +0 -1
- package/dist/coordination/task-dag/index.d.ts.map +0 -1
- package/dist/coordination/task-dag/index.js.map +0 -1
- package/dist/coordination/task-dag/scheduler.d.ts.map +0 -1
- package/dist/coordination/task-dag/scheduler.js.map +0 -1
- package/dist/coordination/task-dag/types.d.ts.map +0 -1
- package/dist/coordination/task-dag/types.js.map +0 -1
- package/dist/coordination/task-executor.d.ts.map +0 -1
- package/dist/coordination/task-executor.js.map +0 -1
- package/dist/coordination/workflow-builtin.d.ts.map +0 -1
- package/dist/coordination/workflow-builtin.js.map +0 -1
- package/dist/coordination/workflow-orchestrator.d.ts.map +0 -1
- package/dist/coordination/workflow-orchestrator.js.map +0 -1
- package/dist/coordination/workflow-types.d.ts.map +0 -1
- package/dist/coordination/workflow-types.js.map +0 -1
- package/dist/domains/base-domain-coordinator.d.ts.map +0 -1
- package/dist/domains/base-domain-coordinator.js.map +0 -1
- package/dist/domains/chaos-resilience/coordinator.d.ts.map +0 -1
- package/dist/domains/chaos-resilience/coordinator.js.map +0 -1
- package/dist/domains/chaos-resilience/index.d.ts.map +0 -1
- package/dist/domains/chaos-resilience/index.js.map +0 -1
- package/dist/domains/chaos-resilience/interfaces.d.ts.map +0 -1
- package/dist/domains/chaos-resilience/interfaces.js.map +0 -1
- package/dist/domains/chaos-resilience/plugin.d.ts.map +0 -1
- package/dist/domains/chaos-resilience/plugin.js.map +0 -1
- package/dist/domains/chaos-resilience/services/chaos-engineer.d.ts.map +0 -1
- package/dist/domains/chaos-resilience/services/chaos-engineer.js.map +0 -1
- package/dist/domains/chaos-resilience/services/index.d.ts.map +0 -1
- package/dist/domains/chaos-resilience/services/index.js.map +0 -1
- package/dist/domains/chaos-resilience/services/load-tester.d.ts.map +0 -1
- package/dist/domains/chaos-resilience/services/load-tester.js.map +0 -1
- package/dist/domains/chaos-resilience/services/performance-profiler.d.ts.map +0 -1
- package/dist/domains/chaos-resilience/services/performance-profiler.js.map +0 -1
- package/dist/domains/code-intelligence/coordinator-consensus.d.ts.map +0 -1
- package/dist/domains/code-intelligence/coordinator-consensus.js.map +0 -1
- package/dist/domains/code-intelligence/coordinator-gnn.d.ts.map +0 -1
- package/dist/domains/code-intelligence/coordinator-gnn.js.map +0 -1
- package/dist/domains/code-intelligence/coordinator-hypergraph.d.ts.map +0 -1
- package/dist/domains/code-intelligence/coordinator-hypergraph.js.map +0 -1
- package/dist/domains/code-intelligence/coordinator.d.ts.map +0 -1
- package/dist/domains/code-intelligence/coordinator.js.map +0 -1
- package/dist/domains/code-intelligence/index.d.ts.map +0 -1
- package/dist/domains/code-intelligence/index.js.map +0 -1
- package/dist/domains/code-intelligence/interfaces.d.ts.map +0 -1
- package/dist/domains/code-intelligence/interfaces.js.map +0 -1
- package/dist/domains/code-intelligence/plugin.d.ts.map +0 -1
- package/dist/domains/code-intelligence/plugin.js.map +0 -1
- package/dist/domains/code-intelligence/services/c4-model/index.d.ts.map +0 -1
- package/dist/domains/code-intelligence/services/c4-model/index.js.map +0 -1
- package/dist/domains/code-intelligence/services/c4-model/types.d.ts.map +0 -1
- package/dist/domains/code-intelligence/services/c4-model/types.js.map +0 -1
- package/dist/domains/code-intelligence/services/impact-analyzer.d.ts.map +0 -1
- package/dist/domains/code-intelligence/services/impact-analyzer.js.map +0 -1
- package/dist/domains/code-intelligence/services/index.d.ts.map +0 -1
- package/dist/domains/code-intelligence/services/index.js.map +0 -1
- package/dist/domains/code-intelligence/services/knowledge-graph.d.ts.map +0 -1
- package/dist/domains/code-intelligence/services/knowledge-graph.js.map +0 -1
- package/dist/domains/code-intelligence/services/metric-collector/index.d.ts.map +0 -1
- package/dist/domains/code-intelligence/services/metric-collector/index.js.map +0 -1
- package/dist/domains/code-intelligence/services/metric-collector/interfaces.d.ts.map +0 -1
- package/dist/domains/code-intelligence/services/metric-collector/interfaces.js.map +0 -1
- package/dist/domains/code-intelligence/services/metric-collector/loc-counter.d.ts.map +0 -1
- package/dist/domains/code-intelligence/services/metric-collector/loc-counter.js.map +0 -1
- package/dist/domains/code-intelligence/services/metric-collector/test-counter.d.ts.map +0 -1
- package/dist/domains/code-intelligence/services/metric-collector/test-counter.js.map +0 -1
- package/dist/domains/code-intelligence/services/product-factors-bridge.d.ts.map +0 -1
- package/dist/domains/code-intelligence/services/product-factors-bridge.js.map +0 -1
- package/dist/domains/code-intelligence/services/semantic-analyzer.d.ts.map +0 -1
- package/dist/domains/code-intelligence/services/semantic-analyzer.js.map +0 -1
- package/dist/domains/constants.d.ts.map +0 -1
- package/dist/domains/constants.js.map +0 -1
- package/dist/domains/contract-testing/coordinator.d.ts.map +0 -1
- package/dist/domains/contract-testing/coordinator.js.map +0 -1
- package/dist/domains/contract-testing/index.d.ts.map +0 -1
- package/dist/domains/contract-testing/index.js.map +0 -1
- package/dist/domains/contract-testing/interfaces.d.ts.map +0 -1
- package/dist/domains/contract-testing/interfaces.js.map +0 -1
- package/dist/domains/contract-testing/plugin.d.ts.map +0 -1
- package/dist/domains/contract-testing/plugin.js.map +0 -1
- package/dist/domains/contract-testing/services/api-compatibility.d.ts.map +0 -1
- package/dist/domains/contract-testing/services/api-compatibility.js.map +0 -1
- package/dist/domains/contract-testing/services/contract-validator.d.ts.map +0 -1
- package/dist/domains/contract-testing/services/contract-validator.js.map +0 -1
- package/dist/domains/contract-testing/services/index.d.ts.map +0 -1
- package/dist/domains/contract-testing/services/index.js.map +0 -1
- package/dist/domains/contract-testing/services/schema-validator.d.ts.map +0 -1
- package/dist/domains/contract-testing/services/schema-validator.js.map +0 -1
- package/dist/domains/coverage-analysis/coordinator.d.ts.map +0 -1
- package/dist/domains/coverage-analysis/coordinator.js.map +0 -1
- package/dist/domains/coverage-analysis/index.d.ts.map +0 -1
- package/dist/domains/coverage-analysis/index.js.map +0 -1
- package/dist/domains/coverage-analysis/interfaces.d.ts.map +0 -1
- package/dist/domains/coverage-analysis/interfaces.js.map +0 -1
- package/dist/domains/coverage-analysis/plugin.d.ts.map +0 -1
- package/dist/domains/coverage-analysis/plugin.js.map +0 -1
- package/dist/domains/coverage-analysis/services/coverage-analyzer.d.ts.map +0 -1
- package/dist/domains/coverage-analysis/services/coverage-analyzer.js.map +0 -1
- package/dist/domains/coverage-analysis/services/coverage-embedder.d.ts.map +0 -1
- package/dist/domains/coverage-analysis/services/coverage-embedder.js.map +0 -1
- package/dist/domains/coverage-analysis/services/coverage-parser.d.ts.map +0 -1
- package/dist/domains/coverage-analysis/services/coverage-parser.js.map +0 -1
- package/dist/domains/coverage-analysis/services/gap-detector.d.ts.map +0 -1
- package/dist/domains/coverage-analysis/services/gap-detector.js.map +0 -1
- package/dist/domains/coverage-analysis/services/ghost-coverage-analyzer.d.ts.map +0 -1
- package/dist/domains/coverage-analysis/services/ghost-coverage-analyzer.js.map +0 -1
- package/dist/domains/coverage-analysis/services/hnsw-index.d.ts.map +0 -1
- package/dist/domains/coverage-analysis/services/hnsw-index.js.map +0 -1
- package/dist/domains/coverage-analysis/services/index.d.ts.map +0 -1
- package/dist/domains/coverage-analysis/services/index.js.map +0 -1
- package/dist/domains/coverage-analysis/services/risk-scorer.d.ts.map +0 -1
- package/dist/domains/coverage-analysis/services/risk-scorer.js.map +0 -1
- package/dist/domains/coverage-analysis/services/sublinear-analyzer.d.ts.map +0 -1
- package/dist/domains/coverage-analysis/services/sublinear-analyzer.js.map +0 -1
- package/dist/domains/defect-intelligence/coordinator.d.ts.map +0 -1
- package/dist/domains/defect-intelligence/coordinator.js.map +0 -1
- package/dist/domains/defect-intelligence/index.d.ts.map +0 -1
- package/dist/domains/defect-intelligence/index.js.map +0 -1
- package/dist/domains/defect-intelligence/interfaces.d.ts.map +0 -1
- package/dist/domains/defect-intelligence/interfaces.js.map +0 -1
- package/dist/domains/defect-intelligence/plugin.d.ts.map +0 -1
- package/dist/domains/defect-intelligence/plugin.js.map +0 -1
- package/dist/domains/defect-intelligence/services/causal-root-cause-analyzer.d.ts.map +0 -1
- package/dist/domains/defect-intelligence/services/causal-root-cause-analyzer.js.map +0 -1
- package/dist/domains/defect-intelligence/services/defect-predictor.d.ts.map +0 -1
- package/dist/domains/defect-intelligence/services/defect-predictor.js.map +0 -1
- package/dist/domains/defect-intelligence/services/index.d.ts.map +0 -1
- package/dist/domains/defect-intelligence/services/index.js.map +0 -1
- package/dist/domains/defect-intelligence/services/pattern-learner.d.ts.map +0 -1
- package/dist/domains/defect-intelligence/services/pattern-learner.js.map +0 -1
- package/dist/domains/defect-intelligence/services/root-cause-analyzer.d.ts.map +0 -1
- package/dist/domains/defect-intelligence/services/root-cause-analyzer.js.map +0 -1
- package/dist/domains/domain-interface.d.ts.map +0 -1
- package/dist/domains/domain-interface.js.map +0 -1
- package/dist/domains/enterprise-integration/coordinator.d.ts.map +0 -1
- package/dist/domains/enterprise-integration/coordinator.js.map +0 -1
- package/dist/domains/enterprise-integration/index.d.ts.map +0 -1
- package/dist/domains/enterprise-integration/index.js.map +0 -1
- package/dist/domains/enterprise-integration/interfaces.d.ts.map +0 -1
- package/dist/domains/enterprise-integration/interfaces.js.map +0 -1
- package/dist/domains/enterprise-integration/plugin.d.ts.map +0 -1
- package/dist/domains/enterprise-integration/plugin.js.map +0 -1
- package/dist/domains/enterprise-integration/services/esb-middleware-service.d.ts.map +0 -1
- package/dist/domains/enterprise-integration/services/esb-middleware-service.js.map +0 -1
- package/dist/domains/enterprise-integration/services/index.d.ts.map +0 -1
- package/dist/domains/enterprise-integration/services/index.js.map +0 -1
- package/dist/domains/enterprise-integration/services/message-broker-service.d.ts.map +0 -1
- package/dist/domains/enterprise-integration/services/message-broker-service.js.map +0 -1
- package/dist/domains/enterprise-integration/services/odata-service.d.ts.map +0 -1
- package/dist/domains/enterprise-integration/services/odata-service.js.map +0 -1
- package/dist/domains/enterprise-integration/services/sap-integration-service.d.ts.map +0 -1
- package/dist/domains/enterprise-integration/services/sap-integration-service.js.map +0 -1
- package/dist/domains/enterprise-integration/services/soap-wsdl-service.d.ts.map +0 -1
- package/dist/domains/enterprise-integration/services/soap-wsdl-service.js.map +0 -1
- package/dist/domains/enterprise-integration/services/sod-analysis-service.d.ts.map +0 -1
- package/dist/domains/enterprise-integration/services/sod-analysis-service.js.map +0 -1
- package/dist/domains/index.d.ts.map +0 -1
- package/dist/domains/index.js.map +0 -1
- package/dist/domains/learning-optimization/coordinator-consensus.d.ts.map +0 -1
- package/dist/domains/learning-optimization/coordinator-consensus.js.map +0 -1
- package/dist/domains/learning-optimization/coordinator-dream.d.ts.map +0 -1
- package/dist/domains/learning-optimization/coordinator-dream.js.map +0 -1
- package/dist/domains/learning-optimization/coordinator-helpers.d.ts.map +0 -1
- package/dist/domains/learning-optimization/coordinator-helpers.js.map +0 -1
- package/dist/domains/learning-optimization/coordinator-sona-methods.d.ts.map +0 -1
- package/dist/domains/learning-optimization/coordinator-sona-methods.js.map +0 -1
- package/dist/domains/learning-optimization/coordinator.d.ts.map +0 -1
- package/dist/domains/learning-optimization/coordinator.js.map +0 -1
- package/dist/domains/learning-optimization/index.d.ts.map +0 -1
- package/dist/domains/learning-optimization/index.js.map +0 -1
- package/dist/domains/learning-optimization/interfaces.d.ts.map +0 -1
- package/dist/domains/learning-optimization/interfaces.js.map +0 -1
- package/dist/domains/learning-optimization/plugin.d.ts.map +0 -1
- package/dist/domains/learning-optimization/plugin.js.map +0 -1
- package/dist/domains/learning-optimization/services/index.d.ts.map +0 -1
- package/dist/domains/learning-optimization/services/index.js.map +0 -1
- package/dist/domains/learning-optimization/services/learning-coordinator.d.ts.map +0 -1
- package/dist/domains/learning-optimization/services/learning-coordinator.js.map +0 -1
- package/dist/domains/learning-optimization/services/metrics-optimizer.d.ts.map +0 -1
- package/dist/domains/learning-optimization/services/metrics-optimizer.js.map +0 -1
- package/dist/domains/learning-optimization/services/production-intel.d.ts.map +0 -1
- package/dist/domains/learning-optimization/services/production-intel.js.map +0 -1
- package/dist/domains/learning-optimization/services/transfer-specialist.d.ts.map +0 -1
- package/dist/domains/learning-optimization/services/transfer-specialist.js.map +0 -1
- package/dist/domains/quality-assessment/coherence/gate-controller.d.ts.map +0 -1
- package/dist/domains/quality-assessment/coherence/gate-controller.js.map +0 -1
- package/dist/domains/quality-assessment/coherence/index.d.ts.map +0 -1
- package/dist/domains/quality-assessment/coherence/index.js.map +0 -1
- package/dist/domains/quality-assessment/coherence/lambda-calculator.d.ts.map +0 -1
- package/dist/domains/quality-assessment/coherence/lambda-calculator.js.map +0 -1
- package/dist/domains/quality-assessment/coherence/partition-detector.d.ts.map +0 -1
- package/dist/domains/quality-assessment/coherence/partition-detector.js.map +0 -1
- package/dist/domains/quality-assessment/coherence/types.d.ts.map +0 -1
- package/dist/domains/quality-assessment/coherence/types.js.map +0 -1
- package/dist/domains/quality-assessment/coordinator-claim-verifier.d.ts.map +0 -1
- package/dist/domains/quality-assessment/coordinator-claim-verifier.js.map +0 -1
- package/dist/domains/quality-assessment/coordinator-gate-evaluation.d.ts.map +0 -1
- package/dist/domains/quality-assessment/coordinator-gate-evaluation.js.map +0 -1
- package/dist/domains/quality-assessment/coordinator-reports.d.ts.map +0 -1
- package/dist/domains/quality-assessment/coordinator-reports.js.map +0 -1
- package/dist/domains/quality-assessment/coordinator-rl-integration.d.ts.map +0 -1
- package/dist/domains/quality-assessment/coordinator-rl-integration.js.map +0 -1
- package/dist/domains/quality-assessment/coordinator.d.ts.map +0 -1
- package/dist/domains/quality-assessment/coordinator.js.map +0 -1
- package/dist/domains/quality-assessment/index.d.ts.map +0 -1
- package/dist/domains/quality-assessment/index.js.map +0 -1
- package/dist/domains/quality-assessment/interfaces.d.ts.map +0 -1
- package/dist/domains/quality-assessment/interfaces.js.map +0 -1
- package/dist/domains/quality-assessment/plugin.d.ts.map +0 -1
- package/dist/domains/quality-assessment/plugin.js.map +0 -1
- package/dist/domains/quality-assessment/services/coherence-gate.d.ts.map +0 -1
- package/dist/domains/quality-assessment/services/coherence-gate.js.map +0 -1
- package/dist/domains/quality-assessment/services/deployment-advisor.d.ts.map +0 -1
- package/dist/domains/quality-assessment/services/deployment-advisor.js.map +0 -1
- package/dist/domains/quality-assessment/services/index.d.ts.map +0 -1
- package/dist/domains/quality-assessment/services/index.js.map +0 -1
- package/dist/domains/quality-assessment/services/quality-analyzer.d.ts.map +0 -1
- package/dist/domains/quality-assessment/services/quality-analyzer.js.map +0 -1
- package/dist/domains/quality-assessment/services/quality-gate.d.ts.map +0 -1
- package/dist/domains/quality-assessment/services/quality-gate.js.map +0 -1
- package/dist/domains/requirements-validation/coordinator.d.ts.map +0 -1
- package/dist/domains/requirements-validation/coordinator.js.map +0 -1
- package/dist/domains/requirements-validation/index.d.ts.map +0 -1
- package/dist/domains/requirements-validation/index.js.map +0 -1
- package/dist/domains/requirements-validation/interfaces.d.ts.map +0 -1
- package/dist/domains/requirements-validation/interfaces.js.map +0 -1
- package/dist/domains/requirements-validation/plugin.d.ts.map +0 -1
- package/dist/domains/requirements-validation/plugin.js.map +0 -1
- package/dist/domains/requirements-validation/qcsd-ideation-plugin.d.ts.map +0 -1
- package/dist/domains/requirements-validation/qcsd-ideation-plugin.js.map +0 -1
- package/dist/domains/requirements-validation/qcsd-refinement-plugin.d.ts.map +0 -1
- package/dist/domains/requirements-validation/qcsd-refinement-plugin.js.map +0 -1
- package/dist/domains/requirements-validation/services/bdd-scenario-writer.d.ts.map +0 -1
- package/dist/domains/requirements-validation/services/bdd-scenario-writer.js.map +0 -1
- package/dist/domains/requirements-validation/services/index.d.ts.map +0 -1
- package/dist/domains/requirements-validation/services/index.js.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/analyzers/brutal-honesty-analyzer.d.ts.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/analyzers/brutal-honesty-analyzer.js.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/analyzers/index.d.ts.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/analyzers/index.js.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/analyzers/sfdipot-analyzer.d.ts.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/analyzers/sfdipot-analyzer.js.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/code-intelligence/codebase-analyzer.d.ts.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/code-intelligence/codebase-analyzer.js.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/code-intelligence/index.d.ts.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/code-intelligence/index.js.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/formatters/gherkin-formatter.d.ts.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/formatters/gherkin-formatter.js.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/formatters/html-formatter.d.ts.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/formatters/html-formatter.js.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/formatters/index.d.ts.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/formatters/index.js.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/formatters/json-formatter.d.ts.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/formatters/json-formatter.js.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/formatters/markdown-formatter.d.ts.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/formatters/markdown-formatter.js.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/generators/index.d.ts.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/generators/index.js.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/generators/question-generator.d.ts.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/generators/question-generator.js.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/generators/test-idea-generator.d.ts.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/generators/test-idea-generator.js.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/index.d.ts.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/index.js.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/parsers/architecture-parser.d.ts.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/parsers/architecture-parser.js.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/parsers/document-parser.d.ts.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/parsers/document-parser.js.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/parsers/index.d.ts.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/parsers/index.js.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/parsers/user-story-parser.d.ts.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/parsers/user-story-parser.js.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/patterns/domain-registry.d.ts.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/patterns/domain-registry.js.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/patterns/index.d.ts.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/patterns/index.js.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/product-factors-service.d.ts.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/product-factors-service.js.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/skills/index.d.ts.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/skills/index.js.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/skills/skill-integration.d.ts.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/skills/skill-integration.js.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/types/index.d.ts.map +0 -1
- package/dist/domains/requirements-validation/services/product-factors-assessment/types/index.js.map +0 -1
- package/dist/domains/requirements-validation/services/quality-criteria/index.d.ts.map +0 -1
- package/dist/domains/requirements-validation/services/quality-criteria/index.js.map +0 -1
- package/dist/domains/requirements-validation/services/quality-criteria/quality-criteria-service.d.ts.map +0 -1
- package/dist/domains/requirements-validation/services/quality-criteria/quality-criteria-service.js.map +0 -1
- package/dist/domains/requirements-validation/services/quality-criteria/types.d.ts.map +0 -1
- package/dist/domains/requirements-validation/services/quality-criteria/types.js.map +0 -1
- package/dist/domains/requirements-validation/services/requirements-validator.d.ts.map +0 -1
- package/dist/domains/requirements-validation/services/requirements-validator.js.map +0 -1
- package/dist/domains/requirements-validation/services/test-idea-transformer.d.ts.map +0 -1
- package/dist/domains/requirements-validation/services/test-idea-transformer.js.map +0 -1
- package/dist/domains/requirements-validation/services/testability-scorer.d.ts.map +0 -1
- package/dist/domains/requirements-validation/services/testability-scorer.js.map +0 -1
- package/dist/domains/security-compliance/coordinator.d.ts.map +0 -1
- package/dist/domains/security-compliance/coordinator.js.map +0 -1
- package/dist/domains/security-compliance/index.d.ts.map +0 -1
- package/dist/domains/security-compliance/index.js.map +0 -1
- package/dist/domains/security-compliance/interfaces.d.ts.map +0 -1
- package/dist/domains/security-compliance/interfaces.js.map +0 -1
- package/dist/domains/security-compliance/plugin.d.ts.map +0 -1
- package/dist/domains/security-compliance/plugin.js.map +0 -1
- package/dist/domains/security-compliance/services/compliance-validator.d.ts.map +0 -1
- package/dist/domains/security-compliance/services/compliance-validator.js.map +0 -1
- package/dist/domains/security-compliance/services/index.d.ts.map +0 -1
- package/dist/domains/security-compliance/services/index.js.map +0 -1
- package/dist/domains/security-compliance/services/scanners/dast-auth-testing.d.ts.map +0 -1
- package/dist/domains/security-compliance/services/scanners/dast-auth-testing.js.map +0 -1
- package/dist/domains/security-compliance/services/scanners/dast-helpers.d.ts.map +0 -1
- package/dist/domains/security-compliance/services/scanners/dast-helpers.js.map +0 -1
- package/dist/domains/security-compliance/services/scanners/dast-injection-testing.d.ts.map +0 -1
- package/dist/domains/security-compliance/services/scanners/dast-injection-testing.js.map +0 -1
- package/dist/domains/security-compliance/services/scanners/dast-scanner.d.ts.map +0 -1
- package/dist/domains/security-compliance/services/scanners/dast-scanner.js.map +0 -1
- package/dist/domains/security-compliance/services/scanners/dependency-scanner.d.ts.map +0 -1
- package/dist/domains/security-compliance/services/scanners/dependency-scanner.js.map +0 -1
- package/dist/domains/security-compliance/services/scanners/index.d.ts.map +0 -1
- package/dist/domains/security-compliance/services/scanners/index.js.map +0 -1
- package/dist/domains/security-compliance/services/scanners/sast-scanner.d.ts.map +0 -1
- package/dist/domains/security-compliance/services/scanners/sast-scanner.js.map +0 -1
- package/dist/domains/security-compliance/services/scanners/scanner-orchestrator.d.ts.map +0 -1
- package/dist/domains/security-compliance/services/scanners/scanner-orchestrator.js.map +0 -1
- package/dist/domains/security-compliance/services/scanners/scanner-types.d.ts.map +0 -1
- package/dist/domains/security-compliance/services/scanners/scanner-types.js.map +0 -1
- package/dist/domains/security-compliance/services/scanners/security-patterns.d.ts.map +0 -1
- package/dist/domains/security-compliance/services/scanners/security-patterns.js.map +0 -1
- package/dist/domains/security-compliance/services/security-auditor-dast.d.ts.map +0 -1
- package/dist/domains/security-compliance/services/security-auditor-dast.js.map +0 -1
- package/dist/domains/security-compliance/services/security-auditor-reports.d.ts.map +0 -1
- package/dist/domains/security-compliance/services/security-auditor-reports.js.map +0 -1
- package/dist/domains/security-compliance/services/security-auditor-sast.d.ts.map +0 -1
- package/dist/domains/security-compliance/services/security-auditor-sast.js.map +0 -1
- package/dist/domains/security-compliance/services/security-auditor-secrets.d.ts.map +0 -1
- package/dist/domains/security-compliance/services/security-auditor-secrets.js.map +0 -1
- package/dist/domains/security-compliance/services/security-auditor-types.d.ts.map +0 -1
- package/dist/domains/security-compliance/services/security-auditor-types.js.map +0 -1
- package/dist/domains/security-compliance/services/security-auditor.d.ts.map +0 -1
- package/dist/domains/security-compliance/services/security-auditor.js.map +0 -1
- package/dist/domains/security-compliance/services/security-scanner.d.ts.map +0 -1
- package/dist/domains/security-compliance/services/security-scanner.js.map +0 -1
- package/dist/domains/security-compliance/services/semgrep-integration.d.ts.map +0 -1
- package/dist/domains/security-compliance/services/semgrep-integration.js.map +0 -1
- package/dist/domains/test-execution/coordinator.d.ts.map +0 -1
- package/dist/domains/test-execution/coordinator.js.map +0 -1
- package/dist/domains/test-execution/index.d.ts.map +0 -1
- package/dist/domains/test-execution/index.js.map +0 -1
- package/dist/domains/test-execution/interfaces.d.ts.map +0 -1
- package/dist/domains/test-execution/interfaces.js.map +0 -1
- package/dist/domains/test-execution/plugin.d.ts.map +0 -1
- package/dist/domains/test-execution/plugin.js.map +0 -1
- package/dist/domains/test-execution/services/auth-state-manager.d.ts.map +0 -1
- package/dist/domains/test-execution/services/auth-state-manager.js.map +0 -1
- package/dist/domains/test-execution/services/e2e/adaptive-locator-service.d.ts.map +0 -1
- package/dist/domains/test-execution/services/e2e/adaptive-locator-service.js.map +0 -1
- package/dist/domains/test-execution/services/e2e/adaptive-locator-types.d.ts.map +0 -1
- package/dist/domains/test-execution/services/e2e/adaptive-locator-types.js.map +0 -1
- package/dist/domains/test-execution/services/e2e/assertion-handlers.d.ts.map +0 -1
- package/dist/domains/test-execution/services/e2e/assertion-handlers.js.map +0 -1
- package/dist/domains/test-execution/services/e2e/browser-orchestrator.d.ts.map +0 -1
- package/dist/domains/test-execution/services/e2e/browser-orchestrator.js.map +0 -1
- package/dist/domains/test-execution/services/e2e/e2e-coordinator.d.ts.map +0 -1
- package/dist/domains/test-execution/services/e2e/e2e-coordinator.js.map +0 -1
- package/dist/domains/test-execution/services/e2e/index.d.ts.map +0 -1
- package/dist/domains/test-execution/services/e2e/index.js.map +0 -1
- package/dist/domains/test-execution/services/e2e/result-collector.d.ts.map +0 -1
- package/dist/domains/test-execution/services/e2e/result-collector.js.map +0 -1
- package/dist/domains/test-execution/services/e2e/step-executors.d.ts.map +0 -1
- package/dist/domains/test-execution/services/e2e/step-executors.js.map +0 -1
- package/dist/domains/test-execution/services/e2e/step-retry-handler.d.ts.map +0 -1
- package/dist/domains/test-execution/services/e2e/step-retry-handler.js.map +0 -1
- package/dist/domains/test-execution/services/e2e/types.d.ts.map +0 -1
- package/dist/domains/test-execution/services/e2e/types.js.map +0 -1
- package/dist/domains/test-execution/services/e2e/wait-condition-handler.d.ts.map +0 -1
- package/dist/domains/test-execution/services/e2e/wait-condition-handler.js.map +0 -1
- package/dist/domains/test-execution/services/e2e-runner.d.ts.map +0 -1
- package/dist/domains/test-execution/services/e2e-runner.js.map +0 -1
- package/dist/domains/test-execution/services/flaky-detector.d.ts.map +0 -1
- package/dist/domains/test-execution/services/flaky-detector.js.map +0 -1
- package/dist/domains/test-execution/services/index.d.ts.map +0 -1
- package/dist/domains/test-execution/services/index.js.map +0 -1
- package/dist/domains/test-execution/services/mincut-test-optimizer.d.ts.map +0 -1
- package/dist/domains/test-execution/services/mincut-test-optimizer.js.map +0 -1
- package/dist/domains/test-execution/services/network-mocker.d.ts.map +0 -1
- package/dist/domains/test-execution/services/network-mocker.js.map +0 -1
- package/dist/domains/test-execution/services/retry-handler.d.ts.map +0 -1
- package/dist/domains/test-execution/services/retry-handler.js.map +0 -1
- package/dist/domains/test-execution/services/test-executor.d.ts.map +0 -1
- package/dist/domains/test-execution/services/test-executor.js.map +0 -1
- package/dist/domains/test-execution/services/test-prioritizer.d.ts.map +0 -1
- package/dist/domains/test-execution/services/test-prioritizer.js.map +0 -1
- package/dist/domains/test-execution/services/user-flow-generator.d.ts.map +0 -1
- package/dist/domains/test-execution/services/user-flow-generator.js.map +0 -1
- package/dist/domains/test-execution/test-prioritization-types.d.ts.map +0 -1
- package/dist/domains/test-execution/test-prioritization-types.js.map +0 -1
- package/dist/domains/test-execution/types/e2e-step.types.d.ts.map +0 -1
- package/dist/domains/test-execution/types/e2e-step.types.js.map +0 -1
- package/dist/domains/test-execution/types/flow-templates.types.d.ts.map +0 -1
- package/dist/domains/test-execution/types/flow-templates.types.js.map +0 -1
- package/dist/domains/test-execution/types/index.d.ts.map +0 -1
- package/dist/domains/test-execution/types/index.js.map +0 -1
- package/dist/domains/test-generation/blind-review/blind-review-orchestrator.d.ts.map +0 -1
- package/dist/domains/test-generation/blind-review/blind-review-orchestrator.js.map +0 -1
- package/dist/domains/test-generation/blind-review/index.d.ts.map +0 -1
- package/dist/domains/test-generation/blind-review/index.js.map +0 -1
- package/dist/domains/test-generation/context/rust-context-builder.d.ts.map +0 -1
- package/dist/domains/test-generation/context/rust-context-builder.js.map +0 -1
- package/dist/domains/test-generation/coordinator.d.ts.map +0 -1
- package/dist/domains/test-generation/coordinator.js.map +0 -1
- package/dist/domains/test-generation/detectors/mobile-detector.d.ts.map +0 -1
- package/dist/domains/test-generation/detectors/mobile-detector.js.map +0 -1
- package/dist/domains/test-generation/detectors/spring-detector.d.ts.map +0 -1
- package/dist/domains/test-generation/detectors/spring-detector.js.map +0 -1
- package/dist/domains/test-generation/factories/index.d.ts.map +0 -1
- package/dist/domains/test-generation/factories/index.js.map +0 -1
- package/dist/domains/test-generation/factories/test-generator-factory.d.ts.map +0 -1
- package/dist/domains/test-generation/factories/test-generator-factory.js.map +0 -1
- package/dist/domains/test-generation/gates/index.d.ts.map +0 -1
- package/dist/domains/test-generation/gates/index.js.map +0 -1
- package/dist/domains/test-generation/gates/test-quality-gate.d.ts.map +0 -1
- package/dist/domains/test-generation/gates/test-quality-gate.js.map +0 -1
- package/dist/domains/test-generation/generators/base-test-generator.d.ts.map +0 -1
- package/dist/domains/test-generation/generators/base-test-generator.js.map +0 -1
- package/dist/domains/test-generation/generators/flutter-test-generator.d.ts.map +0 -1
- package/dist/domains/test-generation/generators/flutter-test-generator.js.map +0 -1
- package/dist/domains/test-generation/generators/go-test-generator.d.ts.map +0 -1
- package/dist/domains/test-generation/generators/go-test-generator.js.map +0 -1
- package/dist/domains/test-generation/generators/index.d.ts.map +0 -1
- package/dist/domains/test-generation/generators/index.js.map +0 -1
- package/dist/domains/test-generation/generators/jest-rn-generator.d.ts.map +0 -1
- package/dist/domains/test-generation/generators/jest-rn-generator.js.map +0 -1
- package/dist/domains/test-generation/generators/jest-vitest-generator.d.ts.map +0 -1
- package/dist/domains/test-generation/generators/jest-vitest-generator.js.map +0 -1
- package/dist/domains/test-generation/generators/junit5-generator.d.ts.map +0 -1
- package/dist/domains/test-generation/generators/junit5-generator.js.map +0 -1
- package/dist/domains/test-generation/generators/kotlin-junit-generator.d.ts.map +0 -1
- package/dist/domains/test-generation/generators/kotlin-junit-generator.js.map +0 -1
- package/dist/domains/test-generation/generators/mocha-generator.d.ts.map +0 -1
- package/dist/domains/test-generation/generators/mocha-generator.js.map +0 -1
- package/dist/domains/test-generation/generators/node-test-generator.d.ts.map +0 -1
- package/dist/domains/test-generation/generators/node-test-generator.js.map +0 -1
- package/dist/domains/test-generation/generators/pytest-generator.d.ts.map +0 -1
- package/dist/domains/test-generation/generators/pytest-generator.js.map +0 -1
- package/dist/domains/test-generation/generators/rust-test-generator.d.ts.map +0 -1
- package/dist/domains/test-generation/generators/rust-test-generator.js.map +0 -1
- package/dist/domains/test-generation/generators/swift-testing-generator.d.ts.map +0 -1
- package/dist/domains/test-generation/generators/swift-testing-generator.js.map +0 -1
- package/dist/domains/test-generation/generators/xunit-generator.d.ts.map +0 -1
- package/dist/domains/test-generation/generators/xunit-generator.js.map +0 -1
- package/dist/domains/test-generation/index.d.ts.map +0 -1
- package/dist/domains/test-generation/index.js.map +0 -1
- package/dist/domains/test-generation/interfaces/index.d.ts.map +0 -1
- package/dist/domains/test-generation/interfaces/index.js.map +0 -1
- package/dist/domains/test-generation/interfaces/test-generator.interface.d.ts.map +0 -1
- package/dist/domains/test-generation/interfaces/test-generator.interface.js.map +0 -1
- package/dist/domains/test-generation/interfaces.d.ts.map +0 -1
- package/dist/domains/test-generation/interfaces.js.map +0 -1
- package/dist/domains/test-generation/pattern-injection/edge-case-injector.d.ts.map +0 -1
- package/dist/domains/test-generation/pattern-injection/edge-case-injector.js.map +0 -1
- package/dist/domains/test-generation/pattern-injection/index.d.ts.map +0 -1
- package/dist/domains/test-generation/pattern-injection/index.js.map +0 -1
- package/dist/domains/test-generation/plugin.d.ts.map +0 -1
- package/dist/domains/test-generation/plugin.js.map +0 -1
- package/dist/domains/test-generation/prompts/language-prompts.d.ts.map +0 -1
- package/dist/domains/test-generation/prompts/language-prompts.js.map +0 -1
- package/dist/domains/test-generation/services/code-transform-integration.d.ts.map +0 -1
- package/dist/domains/test-generation/services/code-transform-integration.js.map +0 -1
- package/dist/domains/test-generation/services/coherence-gate-service.d.ts.map +0 -1
- package/dist/domains/test-generation/services/coherence-gate-service.js.map +0 -1
- package/dist/domains/test-generation/services/compilation-validator.d.ts.map +0 -1
- package/dist/domains/test-generation/services/compilation-validator.js.map +0 -1
- package/dist/domains/test-generation/services/index.d.ts.map +0 -1
- package/dist/domains/test-generation/services/index.js.map +0 -1
- package/dist/domains/test-generation/services/pattern-matcher.d.ts.map +0 -1
- package/dist/domains/test-generation/services/pattern-matcher.js.map +0 -1
- package/dist/domains/test-generation/services/property-test-generator.d.ts.map +0 -1
- package/dist/domains/test-generation/services/property-test-generator.js.map +0 -1
- package/dist/domains/test-generation/services/tdd-generator.d.ts.map +0 -1
- package/dist/domains/test-generation/services/tdd-generator.js.map +0 -1
- package/dist/domains/test-generation/services/test-data-generator.d.ts.map +0 -1
- package/dist/domains/test-generation/services/test-data-generator.js.map +0 -1
- package/dist/domains/test-generation/services/test-file-resolver.d.ts.map +0 -1
- package/dist/domains/test-generation/services/test-file-resolver.js.map +0 -1
- package/dist/domains/test-generation/services/test-generator.d.ts.map +0 -1
- package/dist/domains/test-generation/services/test-generator.js.map +0 -1
- package/dist/domains/visual-accessibility/coordinator.d.ts.map +0 -1
- package/dist/domains/visual-accessibility/coordinator.js.map +0 -1
- package/dist/domains/visual-accessibility/index.d.ts.map +0 -1
- package/dist/domains/visual-accessibility/index.js.map +0 -1
- package/dist/domains/visual-accessibility/interfaces.d.ts.map +0 -1
- package/dist/domains/visual-accessibility/interfaces.js.map +0 -1
- package/dist/domains/visual-accessibility/plugin.d.ts.map +0 -1
- package/dist/domains/visual-accessibility/plugin.js.map +0 -1
- package/dist/domains/visual-accessibility/services/accessibility-tester-browser.d.ts.map +0 -1
- package/dist/domains/visual-accessibility/services/accessibility-tester-browser.js.map +0 -1
- package/dist/domains/visual-accessibility/services/accessibility-tester-heuristics.d.ts.map +0 -1
- package/dist/domains/visual-accessibility/services/accessibility-tester-heuristics.js.map +0 -1
- package/dist/domains/visual-accessibility/services/accessibility-tester.d.ts.map +0 -1
- package/dist/domains/visual-accessibility/services/accessibility-tester.js.map +0 -1
- package/dist/domains/visual-accessibility/services/axe-core-audit.d.ts.map +0 -1
- package/dist/domains/visual-accessibility/services/axe-core-audit.js.map +0 -1
- package/dist/domains/visual-accessibility/services/axe-core-integration.d.ts.map +0 -1
- package/dist/domains/visual-accessibility/services/axe-core-integration.js.map +0 -1
- package/dist/domains/visual-accessibility/services/browser-security-scanner.d.ts.map +0 -1
- package/dist/domains/visual-accessibility/services/browser-security-scanner.js.map +0 -1
- package/dist/domains/visual-accessibility/services/browser-swarm-coordinator.d.ts.map +0 -1
- package/dist/domains/visual-accessibility/services/browser-swarm-coordinator.js.map +0 -1
- package/dist/domains/visual-accessibility/services/eu-compliance.d.ts.map +0 -1
- package/dist/domains/visual-accessibility/services/eu-compliance.js.map +0 -1
- package/dist/domains/visual-accessibility/services/index.d.ts.map +0 -1
- package/dist/domains/visual-accessibility/services/index.js.map +0 -1
- package/dist/domains/visual-accessibility/services/responsive-tester.d.ts.map +0 -1
- package/dist/domains/visual-accessibility/services/responsive-tester.js.map +0 -1
- package/dist/domains/visual-accessibility/services/viewport-capture.d.ts.map +0 -1
- package/dist/domains/visual-accessibility/services/viewport-capture.js.map +0 -1
- package/dist/domains/visual-accessibility/services/visual-regression.d.ts.map +0 -1
- package/dist/domains/visual-accessibility/services/visual-regression.js.map +0 -1
- package/dist/domains/visual-accessibility/services/visual-tester.d.ts.map +0 -1
- package/dist/domains/visual-accessibility/services/visual-tester.js.map +0 -1
- package/dist/early-exit/early-exit-controller.d.ts.map +0 -1
- package/dist/early-exit/early-exit-controller.js.map +0 -1
- package/dist/early-exit/early-exit-decision.d.ts.map +0 -1
- package/dist/early-exit/early-exit-decision.js.map +0 -1
- package/dist/early-exit/index.d.ts.map +0 -1
- package/dist/early-exit/index.js.map +0 -1
- package/dist/early-exit/quality-signal.d.ts.map +0 -1
- package/dist/early-exit/quality-signal.js.map +0 -1
- package/dist/early-exit/speculative-executor.d.ts.map +0 -1
- package/dist/early-exit/speculative-executor.js.map +0 -1
- package/dist/early-exit/types.d.ts.map +0 -1
- package/dist/early-exit/types.js.map +0 -1
- package/dist/feedback/coverage-learner.d.ts.map +0 -1
- package/dist/feedback/coverage-learner.js.map +0 -1
- package/dist/feedback/feedback-loop.d.ts.map +0 -1
- package/dist/feedback/feedback-loop.js.map +0 -1
- package/dist/feedback/index.d.ts.map +0 -1
- package/dist/feedback/index.js.map +0 -1
- package/dist/feedback/pattern-promotion.d.ts.map +0 -1
- package/dist/feedback/pattern-promotion.js.map +0 -1
- package/dist/feedback/quality-score-calculator.d.ts.map +0 -1
- package/dist/feedback/quality-score-calculator.js.map +0 -1
- package/dist/feedback/test-outcome-tracker.d.ts.map +0 -1
- package/dist/feedback/test-outcome-tracker.js.map +0 -1
- package/dist/feedback/types.d.ts.map +0 -1
- package/dist/feedback/types.js.map +0 -1
- package/dist/governance/ab-benchmarking.d.ts.map +0 -1
- package/dist/governance/ab-benchmarking.js.map +0 -1
- package/dist/governance/adversarial-defense-integration.d.ts.map +0 -1
- package/dist/governance/adversarial-defense-integration.js.map +0 -1
- package/dist/governance/compliance-reporter.d.ts.map +0 -1
- package/dist/governance/compliance-reporter.js.map +0 -1
- package/dist/governance/constitutional-enforcer.d.ts.map +0 -1
- package/dist/governance/constitutional-enforcer.js.map +0 -1
- package/dist/governance/continue-gate-integration.d.ts.map +0 -1
- package/dist/governance/continue-gate-integration.js.map +0 -1
- package/dist/governance/deterministic-gateway-integration.d.ts.map +0 -1
- package/dist/governance/deterministic-gateway-integration.js.map +0 -1
- package/dist/governance/evolution-pipeline-integration.d.ts.map +0 -1
- package/dist/governance/evolution-pipeline-integration.js.map +0 -1
- package/dist/governance/feature-flags.d.ts.map +0 -1
- package/dist/governance/feature-flags.js.map +0 -1
- package/dist/governance/index.d.ts.map +0 -1
- package/dist/governance/index.js.map +0 -1
- package/dist/governance/memory-write-gate-integration.d.ts.map +0 -1
- package/dist/governance/memory-write-gate-integration.js.map +0 -1
- package/dist/governance/proof-envelope-integration.d.ts.map +0 -1
- package/dist/governance/proof-envelope-integration.js.map +0 -1
- package/dist/governance/queen-governance-adapter.d.ts.map +0 -1
- package/dist/governance/queen-governance-adapter.js.map +0 -1
- package/dist/governance/shard-embeddings.d.ts.map +0 -1
- package/dist/governance/shard-embeddings.js.map +0 -1
- package/dist/governance/shard-retriever-integration.d.ts.map +0 -1
- package/dist/governance/shard-retriever-integration.js.map +0 -1
- package/dist/governance/trust-accumulator-integration.d.ts.map +0 -1
- package/dist/governance/trust-accumulator-integration.js.map +0 -1
- package/dist/governance/wasm-kernel-integration.d.ts.map +0 -1
- package/dist/governance/wasm-kernel-integration.js.map +0 -1
- package/dist/hooks/cross-phase-hooks.d.ts.map +0 -1
- package/dist/hooks/cross-phase-hooks.js.map +0 -1
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/index.js.map +0 -1
- package/dist/hooks/quality-gate-enforcer.d.ts.map +0 -1
- package/dist/hooks/quality-gate-enforcer.js.map +0 -1
- package/dist/hooks/reasoning-bank-pattern-store.d.ts.map +0 -1
- package/dist/hooks/reasoning-bank-pattern-store.js.map +0 -1
- package/dist/hooks/task-completed-hook.d.ts.map +0 -1
- package/dist/hooks/task-completed-hook.js.map +0 -1
- package/dist/hooks/teammate-idle-hook.d.ts.map +0 -1
- package/dist/hooks/teammate-idle-hook.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/init/agents-installer.d.ts.map +0 -1
- package/dist/init/agents-installer.js.map +0 -1
- package/dist/init/cline-installer.d.ts.map +0 -1
- package/dist/init/cline-installer.js.map +0 -1
- package/dist/init/codex-installer.d.ts.map +0 -1
- package/dist/init/codex-installer.js.map +0 -1
- package/dist/init/continuedev-installer.d.ts.map +0 -1
- package/dist/init/continuedev-installer.js.map +0 -1
- package/dist/init/copilot-installer.d.ts.map +0 -1
- package/dist/init/copilot-installer.js.map +0 -1
- package/dist/init/cursor-installer.d.ts.map +0 -1
- package/dist/init/cursor-installer.js.map +0 -1
- package/dist/init/enhancements/claude-flow-adapter.d.ts.map +0 -1
- package/dist/init/enhancements/claude-flow-adapter.js.map +0 -1
- package/dist/init/enhancements/detector.d.ts.map +0 -1
- package/dist/init/enhancements/detector.js.map +0 -1
- package/dist/init/enhancements/index.d.ts.map +0 -1
- package/dist/init/enhancements/index.js.map +0 -1
- package/dist/init/enhancements/types.d.ts.map +0 -1
- package/dist/init/enhancements/types.js.map +0 -1
- package/dist/init/fleet-integration.d.ts.map +0 -1
- package/dist/init/fleet-integration.js.map +0 -1
- package/dist/init/governance-installer.d.ts.map +0 -1
- package/dist/init/governance-installer.js.map +0 -1
- package/dist/init/index.d.ts.map +0 -1
- package/dist/init/index.js.map +0 -1
- package/dist/init/init-wizard-hooks.d.ts.map +0 -1
- package/dist/init/init-wizard-hooks.js.map +0 -1
- package/dist/init/init-wizard-migration.d.ts.map +0 -1
- package/dist/init/init-wizard-migration.js.map +0 -1
- package/dist/init/init-wizard-steps.d.ts.map +0 -1
- package/dist/init/init-wizard-steps.js.map +0 -1
- package/dist/init/init-wizard.d.ts.map +0 -1
- package/dist/init/init-wizard.js.map +0 -1
- package/dist/init/kilocode-installer.d.ts.map +0 -1
- package/dist/init/kilocode-installer.js.map +0 -1
- package/dist/init/kiro-installer.d.ts.map +0 -1
- package/dist/init/kiro-installer.js.map +0 -1
- package/dist/init/migration/config-migrator.d.ts.map +0 -1
- package/dist/init/migration/config-migrator.js.map +0 -1
- package/dist/init/migration/data-migrator.d.ts.map +0 -1
- package/dist/init/migration/data-migrator.js.map +0 -1
- package/dist/init/migration/detector.d.ts.map +0 -1
- package/dist/init/migration/detector.js.map +0 -1
- package/dist/init/migration/index.d.ts.map +0 -1
- package/dist/init/migration/index.js.map +0 -1
- package/dist/init/n8n-installer.d.ts.map +0 -1
- package/dist/init/n8n-installer.js.map +0 -1
- package/dist/init/opencode-installer.d.ts.map +0 -1
- package/dist/init/opencode-installer.js.map +0 -1
- package/dist/init/orchestrator.d.ts.map +0 -1
- package/dist/init/orchestrator.js.map +0 -1
- package/dist/init/phases/01-detection.d.ts.map +0 -1
- package/dist/init/phases/01-detection.js.map +0 -1
- package/dist/init/phases/02-analysis.d.ts.map +0 -1
- package/dist/init/phases/02-analysis.js.map +0 -1
- package/dist/init/phases/03-configuration.d.ts.map +0 -1
- package/dist/init/phases/03-configuration.js.map +0 -1
- package/dist/init/phases/04-database.d.ts.map +0 -1
- package/dist/init/phases/04-database.js.map +0 -1
- package/dist/init/phases/05-learning.d.ts.map +0 -1
- package/dist/init/phases/05-learning.js.map +0 -1
- package/dist/init/phases/06-code-intelligence.d.ts.map +0 -1
- package/dist/init/phases/06-code-intelligence.js.map +0 -1
- package/dist/init/phases/07-hooks.d.ts.map +0 -1
- package/dist/init/phases/07-hooks.js.map +0 -1
- package/dist/init/phases/08-mcp.d.ts.map +0 -1
- package/dist/init/phases/08-mcp.js.map +0 -1
- package/dist/init/phases/09-assets.d.ts.map +0 -1
- package/dist/init/phases/09-assets.js.map +0 -1
- package/dist/init/phases/10-workers.d.ts.map +0 -1
- package/dist/init/phases/10-workers.js.map +0 -1
- package/dist/init/phases/11-claude-md.d.ts.map +0 -1
- package/dist/init/phases/11-claude-md.js.map +0 -1
- package/dist/init/phases/12-verification.d.ts.map +0 -1
- package/dist/init/phases/12-verification.js.map +0 -1
- package/dist/init/phases/13-governance.d.ts.map +0 -1
- package/dist/init/phases/13-governance.js.map +0 -1
- package/dist/init/phases/index.d.ts.map +0 -1
- package/dist/init/phases/index.js.map +0 -1
- package/dist/init/phases/phase-interface.d.ts.map +0 -1
- package/dist/init/phases/phase-interface.js.map +0 -1
- package/dist/init/platform-config-generator.d.ts.map +0 -1
- package/dist/init/platform-config-generator.js.map +0 -1
- package/dist/init/project-analyzer.d.ts.map +0 -1
- package/dist/init/project-analyzer.js.map +0 -1
- package/dist/init/roocode-installer.d.ts.map +0 -1
- package/dist/init/roocode-installer.js.map +0 -1
- package/dist/init/self-configurator.d.ts.map +0 -1
- package/dist/init/self-configurator.js.map +0 -1
- package/dist/init/settings-merge.d.ts.map +0 -1
- package/dist/init/settings-merge.js.map +0 -1
- package/dist/init/skills-installer.d.ts.map +0 -1
- package/dist/init/skills-installer.js.map +0 -1
- package/dist/init/token-bootstrap.d.ts.map +0 -1
- package/dist/init/token-bootstrap.js.map +0 -1
- package/dist/init/types.d.ts.map +0 -1
- package/dist/init/types.js.map +0 -1
- package/dist/init/windsurf-installer.d.ts.map +0 -1
- package/dist/init/windsurf-installer.js.map +0 -1
- package/dist/integrations/agent-booster-wasm/index.d.ts.map +0 -1
- package/dist/integrations/agent-booster-wasm/index.js.map +0 -1
- package/dist/integrations/agentic-flow/agent-booster/adapter.d.ts.map +0 -1
- package/dist/integrations/agentic-flow/agent-booster/adapter.js.map +0 -1
- package/dist/integrations/agentic-flow/agent-booster/index.d.ts.map +0 -1
- package/dist/integrations/agentic-flow/agent-booster/index.js.map +0 -1
- package/dist/integrations/agentic-flow/agent-booster/transforms.d.ts.map +0 -1
- package/dist/integrations/agentic-flow/agent-booster/transforms.js.map +0 -1
- package/dist/integrations/agentic-flow/agent-booster/types.d.ts.map +0 -1
- package/dist/integrations/agentic-flow/agent-booster/types.js.map +0 -1
- package/dist/integrations/agentic-flow/index.d.ts.map +0 -1
- package/dist/integrations/agentic-flow/index.js.map +0 -1
- package/dist/integrations/agentic-flow/metrics/index.d.ts.map +0 -1
- package/dist/integrations/agentic-flow/metrics/index.js.map +0 -1
- package/dist/integrations/agentic-flow/metrics/metrics-tracker.d.ts.map +0 -1
- package/dist/integrations/agentic-flow/metrics/metrics-tracker.js.map +0 -1
- package/dist/integrations/agentic-flow/metrics/pattern-updater.d.ts.map +0 -1
- package/dist/integrations/agentic-flow/metrics/pattern-updater.js.map +0 -1
- package/dist/integrations/agentic-flow/metrics/types.d.ts.map +0 -1
- package/dist/integrations/agentic-flow/metrics/types.js.map +0 -1
- package/dist/integrations/agentic-flow/model-router/budget-enforcer.d.ts.map +0 -1
- package/dist/integrations/agentic-flow/model-router/budget-enforcer.js.map +0 -1
- package/dist/integrations/agentic-flow/model-router/complexity-analyzer.d.ts.map +0 -1
- package/dist/integrations/agentic-flow/model-router/complexity-analyzer.js.map +0 -1
- package/dist/integrations/agentic-flow/model-router/example.d.ts.map +0 -1
- package/dist/integrations/agentic-flow/model-router/example.js.map +0 -1
- package/dist/integrations/agentic-flow/model-router/index.d.ts.map +0 -1
- package/dist/integrations/agentic-flow/model-router/index.js.map +0 -1
- package/dist/integrations/agentic-flow/model-router/router.d.ts.map +0 -1
- package/dist/integrations/agentic-flow/model-router/router.js.map +0 -1
- package/dist/integrations/agentic-flow/model-router/score-calculator.d.ts.map +0 -1
- package/dist/integrations/agentic-flow/model-router/score-calculator.js.map +0 -1
- package/dist/integrations/agentic-flow/model-router/signal-collector.d.ts.map +0 -1
- package/dist/integrations/agentic-flow/model-router/signal-collector.js.map +0 -1
- package/dist/integrations/agentic-flow/model-router/tier-recommender.d.ts.map +0 -1
- package/dist/integrations/agentic-flow/model-router/tier-recommender.js.map +0 -1
- package/dist/integrations/agentic-flow/model-router/types.d.ts.map +0 -1
- package/dist/integrations/agentic-flow/model-router/types.js.map +0 -1
- package/dist/integrations/agentic-flow/onnx-embeddings/adapter.d.ts.map +0 -1
- package/dist/integrations/agentic-flow/onnx-embeddings/adapter.js.map +0 -1
- package/dist/integrations/agentic-flow/onnx-embeddings/embedding-generator.d.ts.map +0 -1
- package/dist/integrations/agentic-flow/onnx-embeddings/embedding-generator.js.map +0 -1
- package/dist/integrations/agentic-flow/onnx-embeddings/hyperbolic-ops.d.ts.map +0 -1
- package/dist/integrations/agentic-flow/onnx-embeddings/hyperbolic-ops.js.map +0 -1
- package/dist/integrations/agentic-flow/onnx-embeddings/index.d.ts.map +0 -1
- package/dist/integrations/agentic-flow/onnx-embeddings/index.js.map +0 -1
- package/dist/integrations/agentic-flow/onnx-embeddings/similarity-search.d.ts.map +0 -1
- package/dist/integrations/agentic-flow/onnx-embeddings/similarity-search.js.map +0 -1
- package/dist/integrations/agentic-flow/onnx-embeddings/types.d.ts.map +0 -1
- package/dist/integrations/agentic-flow/onnx-embeddings/types.js.map +0 -1
- package/dist/integrations/agentic-flow/pattern-loader.d.ts.map +0 -1
- package/dist/integrations/agentic-flow/pattern-loader.js.map +0 -1
- package/dist/integrations/agentic-flow/reasoning-bank/experience-replay.d.ts.map +0 -1
- package/dist/integrations/agentic-flow/reasoning-bank/experience-replay.js.map +0 -1
- package/dist/integrations/agentic-flow/reasoning-bank/index.d.ts.map +0 -1
- package/dist/integrations/agentic-flow/reasoning-bank/index.js.map +0 -1
- package/dist/integrations/agentic-flow/reasoning-bank/pattern-evolution.d.ts.map +0 -1
- package/dist/integrations/agentic-flow/reasoning-bank/pattern-evolution.js.map +0 -1
- package/dist/integrations/agentic-flow/reasoning-bank/trajectory-tracker.d.ts.map +0 -1
- package/dist/integrations/agentic-flow/reasoning-bank/trajectory-tracker.js.map +0 -1
- package/dist/integrations/browser/agent-browser/client.d.ts.map +0 -1
- package/dist/integrations/browser/agent-browser/client.js.map +0 -1
- package/dist/integrations/browser/agent-browser/command-executor.d.ts.map +0 -1
- package/dist/integrations/browser/agent-browser/command-executor.js.map +0 -1
- package/dist/integrations/browser/agent-browser/index.d.ts.map +0 -1
- package/dist/integrations/browser/agent-browser/index.js.map +0 -1
- package/dist/integrations/browser/agent-browser/session-manager.d.ts.map +0 -1
- package/dist/integrations/browser/agent-browser/session-manager.js.map +0 -1
- package/dist/integrations/browser/agent-browser/snapshot-parser.d.ts.map +0 -1
- package/dist/integrations/browser/agent-browser/snapshot-parser.js.map +0 -1
- package/dist/integrations/browser/client-factory.d.ts.map +0 -1
- package/dist/integrations/browser/client-factory.js.map +0 -1
- package/dist/integrations/browser/index.d.ts.map +0 -1
- package/dist/integrations/browser/index.js.map +0 -1
- package/dist/integrations/browser/page-pool-types.d.ts.map +0 -1
- package/dist/integrations/browser/page-pool-types.js.map +0 -1
- package/dist/integrations/browser/page-pool.d.ts.map +0 -1
- package/dist/integrations/browser/page-pool.js.map +0 -1
- package/dist/integrations/browser/resource-blocking.d.ts.map +0 -1
- package/dist/integrations/browser/resource-blocking.js.map +0 -1
- package/dist/integrations/browser/stealth/index.d.ts.map +0 -1
- package/dist/integrations/browser/stealth/index.js.map +0 -1
- package/dist/integrations/browser/stealth/stealth-client.d.ts.map +0 -1
- package/dist/integrations/browser/stealth/stealth-client.js.map +0 -1
- package/dist/integrations/browser/stealth/stealth-types.d.ts.map +0 -1
- package/dist/integrations/browser/stealth/stealth-types.js.map +0 -1
- package/dist/integrations/browser/types.d.ts.map +0 -1
- package/dist/integrations/browser/types.js.map +0 -1
- package/dist/integrations/browser/web-content-fetcher.d.ts.map +0 -1
- package/dist/integrations/browser/web-content-fetcher.js.map +0 -1
- package/dist/integrations/coherence/coherence-service.d.ts.map +0 -1
- package/dist/integrations/coherence/coherence-service.js.map +0 -1
- package/dist/integrations/coherence/engines/category-adapter.d.ts.map +0 -1
- package/dist/integrations/coherence/engines/category-adapter.js.map +0 -1
- package/dist/integrations/coherence/engines/causal-adapter.d.ts.map +0 -1
- package/dist/integrations/coherence/engines/causal-adapter.js.map +0 -1
- package/dist/integrations/coherence/engines/cohomology-adapter.d.ts.map +0 -1
- package/dist/integrations/coherence/engines/cohomology-adapter.js.map +0 -1
- package/dist/integrations/coherence/engines/homotopy-adapter.d.ts.map +0 -1
- package/dist/integrations/coherence/engines/homotopy-adapter.js.map +0 -1
- package/dist/integrations/coherence/engines/index.d.ts.map +0 -1
- package/dist/integrations/coherence/engines/index.js.map +0 -1
- package/dist/integrations/coherence/engines/spectral-adapter.d.ts.map +0 -1
- package/dist/integrations/coherence/engines/spectral-adapter.js.map +0 -1
- package/dist/integrations/coherence/engines/witness-adapter.d.ts.map +0 -1
- package/dist/integrations/coherence/engines/witness-adapter.js.map +0 -1
- package/dist/integrations/coherence/index.d.ts.map +0 -1
- package/dist/integrations/coherence/index.js.map +0 -1
- package/dist/integrations/coherence/threshold-tuner.d.ts.map +0 -1
- package/dist/integrations/coherence/threshold-tuner.js.map +0 -1
- package/dist/integrations/coherence/types.d.ts.map +0 -1
- package/dist/integrations/coherence/types.js.map +0 -1
- package/dist/integrations/coherence/wasm-loader.d.ts.map +0 -1
- package/dist/integrations/coherence/wasm-loader.js.map +0 -1
- package/dist/integrations/embeddings/base/EmbeddingGenerator.d.ts.map +0 -1
- package/dist/integrations/embeddings/base/EmbeddingGenerator.js.map +0 -1
- package/dist/integrations/embeddings/base/types.d.ts.map +0 -1
- package/dist/integrations/embeddings/base/types.js.map +0 -1
- package/dist/integrations/embeddings/cache/EmbeddingCache.d.ts.map +0 -1
- package/dist/integrations/embeddings/cache/EmbeddingCache.js.map +0 -1
- package/dist/integrations/embeddings/extensions/CoverageEmbedding.d.ts.map +0 -1
- package/dist/integrations/embeddings/extensions/CoverageEmbedding.js.map +0 -1
- package/dist/integrations/embeddings/extensions/DefectEmbedding.d.ts.map +0 -1
- package/dist/integrations/embeddings/extensions/DefectEmbedding.js.map +0 -1
- package/dist/integrations/embeddings/extensions/TestEmbedding.d.ts.map +0 -1
- package/dist/integrations/embeddings/extensions/TestEmbedding.js.map +0 -1
- package/dist/integrations/embeddings/index/HNSWIndex.d.ts.map +0 -1
- package/dist/integrations/embeddings/index/HNSWIndex.js.map +0 -1
- package/dist/integrations/embeddings/index.d.ts.map +0 -1
- package/dist/integrations/embeddings/index.js.map +0 -1
- package/dist/integrations/n8n/agent-factory.d.ts.map +0 -1
- package/dist/integrations/n8n/agent-factory.js.map +0 -1
- package/dist/integrations/n8n/domain-router.d.ts.map +0 -1
- package/dist/integrations/n8n/domain-router.js.map +0 -1
- package/dist/integrations/n8n/index.d.ts.map +0 -1
- package/dist/integrations/n8n/index.js.map +0 -1
- package/dist/integrations/n8n/n8n-adapter.d.ts.map +0 -1
- package/dist/integrations/n8n/n8n-adapter.js.map +0 -1
- package/dist/integrations/n8n/types.d.ts.map +0 -1
- package/dist/integrations/n8n/types.js.map +0 -1
- package/dist/integrations/n8n/workflow-mapper.d.ts.map +0 -1
- package/dist/integrations/n8n/workflow-mapper.js.map +0 -1
- package/dist/integrations/rl-suite/algorithms/a2c.d.ts.map +0 -1
- package/dist/integrations/rl-suite/algorithms/a2c.js.map +0 -1
- package/dist/integrations/rl-suite/algorithms/actor-critic.d.ts.map +0 -1
- package/dist/integrations/rl-suite/algorithms/actor-critic.js.map +0 -1
- package/dist/integrations/rl-suite/algorithms/ddpg.d.ts.map +0 -1
- package/dist/integrations/rl-suite/algorithms/ddpg.js.map +0 -1
- package/dist/integrations/rl-suite/algorithms/decision-transformer.d.ts.map +0 -1
- package/dist/integrations/rl-suite/algorithms/decision-transformer.js.map +0 -1
- package/dist/integrations/rl-suite/algorithms/dqn.d.ts.map +0 -1
- package/dist/integrations/rl-suite/algorithms/dqn.js.map +0 -1
- package/dist/integrations/rl-suite/algorithms/index.d.ts.map +0 -1
- package/dist/integrations/rl-suite/algorithms/index.js.map +0 -1
- package/dist/integrations/rl-suite/algorithms/policy-gradient.d.ts.map +0 -1
- package/dist/integrations/rl-suite/algorithms/policy-gradient.js.map +0 -1
- package/dist/integrations/rl-suite/algorithms/ppo.d.ts.map +0 -1
- package/dist/integrations/rl-suite/algorithms/ppo.js.map +0 -1
- package/dist/integrations/rl-suite/algorithms/q-learning.d.ts.map +0 -1
- package/dist/integrations/rl-suite/algorithms/q-learning.js.map +0 -1
- package/dist/integrations/rl-suite/algorithms/sarsa.d.ts.map +0 -1
- package/dist/integrations/rl-suite/algorithms/sarsa.js.map +0 -1
- package/dist/integrations/rl-suite/base-algorithm.d.ts.map +0 -1
- package/dist/integrations/rl-suite/base-algorithm.js.map +0 -1
- package/dist/integrations/rl-suite/index.d.ts.map +0 -1
- package/dist/integrations/rl-suite/index.js.map +0 -1
- package/dist/integrations/rl-suite/interfaces.d.ts.map +0 -1
- package/dist/integrations/rl-suite/interfaces.js.map +0 -1
- package/dist/integrations/rl-suite/neural/index.d.ts.map +0 -1
- package/dist/integrations/rl-suite/neural/index.js.map +0 -1
- package/dist/integrations/rl-suite/neural/neural-network.d.ts.map +0 -1
- package/dist/integrations/rl-suite/neural/neural-network.js.map +0 -1
- package/dist/integrations/rl-suite/neural/replay-buffer.d.ts.map +0 -1
- package/dist/integrations/rl-suite/neural/replay-buffer.js.map +0 -1
- package/dist/integrations/rl-suite/orchestrator.d.ts.map +0 -1
- package/dist/integrations/rl-suite/orchestrator.js.map +0 -1
- package/dist/integrations/rl-suite/persistence/index.d.ts.map +0 -1
- package/dist/integrations/rl-suite/persistence/index.js.map +0 -1
- package/dist/integrations/rl-suite/persistence/q-value-store.d.ts.map +0 -1
- package/dist/integrations/rl-suite/persistence/q-value-store.js.map +0 -1
- package/dist/integrations/rl-suite/reward-signals.d.ts.map +0 -1
- package/dist/integrations/rl-suite/reward-signals.js.map +0 -1
- package/dist/integrations/rl-suite/sona.d.ts.map +0 -1
- package/dist/integrations/rl-suite/sona.js.map +0 -1
- package/dist/integrations/ruvector/ast-complexity.d.ts.map +0 -1
- package/dist/integrations/ruvector/ast-complexity.js.map +0 -1
- package/dist/integrations/ruvector/attention-wrapper.d.ts.map +0 -1
- package/dist/integrations/ruvector/attention-wrapper.js.map +0 -1
- package/dist/integrations/ruvector/brain-exporter.d.ts.map +0 -1
- package/dist/integrations/ruvector/brain-exporter.js.map +0 -1
- package/dist/integrations/ruvector/brain-rvf-exporter.d.ts.map +0 -1
- package/dist/integrations/ruvector/brain-rvf-exporter.js.map +0 -1
- package/dist/integrations/ruvector/coverage-router.d.ts.map +0 -1
- package/dist/integrations/ruvector/coverage-router.js.map +0 -1
- package/dist/integrations/ruvector/diff-risk-classifier.d.ts.map +0 -1
- package/dist/integrations/ruvector/diff-risk-classifier.js.map +0 -1
- package/dist/integrations/ruvector/fallback.d.ts.map +0 -1
- package/dist/integrations/ruvector/fallback.js.map +0 -1
- package/dist/integrations/ruvector/feature-flags.d.ts.map +0 -1
- package/dist/integrations/ruvector/feature-flags.js.map +0 -1
- package/dist/integrations/ruvector/gnn-wrapper.d.ts.map +0 -1
- package/dist/integrations/ruvector/gnn-wrapper.js.map +0 -1
- package/dist/integrations/ruvector/graph-boundaries.d.ts.map +0 -1
- package/dist/integrations/ruvector/graph-boundaries.js.map +0 -1
- package/dist/integrations/ruvector/hypergraph-engine.d.ts.map +0 -1
- package/dist/integrations/ruvector/hypergraph-engine.js.map +0 -1
- package/dist/integrations/ruvector/hypergraph-schema.d.ts.map +0 -1
- package/dist/integrations/ruvector/hypergraph-schema.js.map +0 -1
- package/dist/integrations/ruvector/index.d.ts.map +0 -1
- package/dist/integrations/ruvector/index.js.map +0 -1
- package/dist/integrations/ruvector/interfaces.d.ts.map +0 -1
- package/dist/integrations/ruvector/interfaces.js.map +0 -1
- package/dist/integrations/ruvector/mincut-wrapper.d.ts.map +0 -1
- package/dist/integrations/ruvector/mincut-wrapper.js.map +0 -1
- package/dist/integrations/ruvector/observability.d.ts.map +0 -1
- package/dist/integrations/ruvector/observability.js.map +0 -1
- package/dist/integrations/ruvector/persistent-q-router.d.ts.map +0 -1
- package/dist/integrations/ruvector/persistent-q-router.js.map +0 -1
- package/dist/integrations/ruvector/provider.d.ts.map +0 -1
- package/dist/integrations/ruvector/provider.js.map +0 -1
- package/dist/integrations/ruvector/q-learning-router.d.ts.map +0 -1
- package/dist/integrations/ruvector/q-learning-router.js.map +0 -1
- package/dist/integrations/ruvector/rvf-dual-writer.d.ts.map +0 -1
- package/dist/integrations/ruvector/rvf-dual-writer.js.map +0 -1
- package/dist/integrations/ruvector/rvf-native-adapter.d.ts.map +0 -1
- package/dist/integrations/ruvector/rvf-native-adapter.js.map +0 -1
- package/dist/integrations/ruvector/server-client.d.ts.map +0 -1
- package/dist/integrations/ruvector/server-client.js.map +0 -1
- package/dist/integrations/ruvector/shared-memory.d.ts.map +0 -1
- package/dist/integrations/ruvector/shared-memory.js.map +0 -1
- package/dist/integrations/ruvector/shared-rvf-dual-writer.d.ts.map +0 -1
- package/dist/integrations/ruvector/shared-rvf-dual-writer.js.map +0 -1
- package/dist/integrations/ruvector/sona-persistence.d.ts.map +0 -1
- package/dist/integrations/ruvector/sona-persistence.js.map +0 -1
- package/dist/integrations/ruvector/sona-wrapper.d.ts.map +0 -1
- package/dist/integrations/ruvector/sona-wrapper.js.map +0 -1
- package/dist/integrations/ruvector/wrappers.d.ts.map +0 -1
- package/dist/integrations/ruvector/wrappers.js.map +0 -1
- package/dist/integrations/vibium/client.d.ts.map +0 -1
- package/dist/integrations/vibium/client.js.map +0 -1
- package/dist/integrations/vibium/errors.d.ts.map +0 -1
- package/dist/integrations/vibium/errors.js.map +0 -1
- package/dist/integrations/vibium/fallback.d.ts.map +0 -1
- package/dist/integrations/vibium/fallback.js.map +0 -1
- package/dist/integrations/vibium/feature-flags.d.ts.map +0 -1
- package/dist/integrations/vibium/feature-flags.js.map +0 -1
- package/dist/integrations/vibium/index.d.ts.map +0 -1
- package/dist/integrations/vibium/index.js.map +0 -1
- package/dist/integrations/vibium/types.d.ts.map +0 -1
- package/dist/integrations/vibium/types.js.map +0 -1
- package/dist/kernel/agent-coordinator.d.ts.map +0 -1
- package/dist/kernel/agent-coordinator.js.map +0 -1
- package/dist/kernel/anti-drift-middleware.d.ts.map +0 -1
- package/dist/kernel/anti-drift-middleware.js.map +0 -1
- package/dist/kernel/constants.d.ts.map +0 -1
- package/dist/kernel/constants.js.map +0 -1
- package/dist/kernel/event-bus.d.ts.map +0 -1
- package/dist/kernel/event-bus.js.map +0 -1
- package/dist/kernel/hnsw-adapter.d.ts.map +0 -1
- package/dist/kernel/hnsw-adapter.js.map +0 -1
- package/dist/kernel/hnsw-index-provider.d.ts.map +0 -1
- package/dist/kernel/hnsw-index-provider.js.map +0 -1
- package/dist/kernel/hybrid-backend.d.ts.map +0 -1
- package/dist/kernel/hybrid-backend.js.map +0 -1
- package/dist/kernel/index.d.ts.map +0 -1
- package/dist/kernel/index.js.map +0 -1
- package/dist/kernel/interfaces.d.ts.map +0 -1
- package/dist/kernel/interfaces.js.map +0 -1
- package/dist/kernel/kernel.d.ts.map +0 -1
- package/dist/kernel/kernel.js.map +0 -1
- package/dist/kernel/memory-backend.d.ts.map +0 -1
- package/dist/kernel/memory-backend.js.map +0 -1
- package/dist/kernel/memory-factory.d.ts.map +0 -1
- package/dist/kernel/memory-factory.js.map +0 -1
- package/dist/kernel/plugin-loader.d.ts.map +0 -1
- package/dist/kernel/plugin-loader.js.map +0 -1
- package/dist/kernel/progressive-hnsw-backend.d.ts.map +0 -1
- package/dist/kernel/progressive-hnsw-backend.js.map +0 -1
- package/dist/kernel/unified-memory-hnsw.d.ts.map +0 -1
- package/dist/kernel/unified-memory-hnsw.js.map +0 -1
- package/dist/kernel/unified-memory-migration.d.ts.map +0 -1
- package/dist/kernel/unified-memory-migration.js.map +0 -1
- package/dist/kernel/unified-memory-schemas.d.ts.map +0 -1
- package/dist/kernel/unified-memory-schemas.js.map +0 -1
- package/dist/kernel/unified-memory.d.ts.map +0 -1
- package/dist/kernel/unified-memory.js.map +0 -1
- package/dist/kernel/unified-persistence.d.ts.map +0 -1
- package/dist/kernel/unified-persistence.js.map +0 -1
- package/dist/learning/aqe-learning-engine.d.ts.map +0 -1
- package/dist/learning/aqe-learning-engine.js.map +0 -1
- package/dist/learning/asymmetric-learning.d.ts.map +0 -1
- package/dist/learning/asymmetric-learning.js.map +0 -1
- package/dist/learning/causal-verifier.d.ts.map +0 -1
- package/dist/learning/causal-verifier.js.map +0 -1
- package/dist/learning/dream/concept-graph.d.ts.map +0 -1
- package/dist/learning/dream/concept-graph.js.map +0 -1
- package/dist/learning/dream/dream-engine.d.ts.map +0 -1
- package/dist/learning/dream/dream-engine.js.map +0 -1
- package/dist/learning/dream/dream-scheduler.d.ts.map +0 -1
- package/dist/learning/dream/dream-scheduler.js.map +0 -1
- package/dist/learning/dream/index.d.ts.map +0 -1
- package/dist/learning/dream/index.js.map +0 -1
- package/dist/learning/dream/insight-generator.d.ts.map +0 -1
- package/dist/learning/dream/insight-generator.js.map +0 -1
- package/dist/learning/dream/rvcow-branch-manager.d.ts.map +0 -1
- package/dist/learning/dream/rvcow-branch-manager.js.map +0 -1
- package/dist/learning/dream/speculative-dreamer.d.ts.map +0 -1
- package/dist/learning/dream/speculative-dreamer.js.map +0 -1
- package/dist/learning/dream/spreading-activation.d.ts.map +0 -1
- package/dist/learning/dream/spreading-activation.js.map +0 -1
- package/dist/learning/dream/types.d.ts.map +0 -1
- package/dist/learning/dream/types.js.map +0 -1
- package/dist/learning/experience-capture-middleware.d.ts.map +0 -1
- package/dist/learning/experience-capture-middleware.js.map +0 -1
- package/dist/learning/experience-capture.d.ts.map +0 -1
- package/dist/learning/experience-capture.js.map +0 -1
- package/dist/learning/experience-consolidation.d.ts.map +0 -1
- package/dist/learning/experience-consolidation.js.map +0 -1
- package/dist/learning/index.d.ts.map +0 -1
- package/dist/learning/index.js.map +0 -1
- package/dist/learning/memory-auditor.d.ts.map +0 -1
- package/dist/learning/memory-auditor.js.map +0 -1
- package/dist/learning/metrics-tracker.d.ts.map +0 -1
- package/dist/learning/metrics-tracker.js.map +0 -1
- package/dist/learning/pattern-lifecycle.d.ts.map +0 -1
- package/dist/learning/pattern-lifecycle.js.map +0 -1
- package/dist/learning/pattern-store.d.ts.map +0 -1
- package/dist/learning/pattern-store.js.map +0 -1
- package/dist/learning/qe-guidance.d.ts.map +0 -1
- package/dist/learning/qe-guidance.js.map +0 -1
- package/dist/learning/qe-hooks.d.ts.map +0 -1
- package/dist/learning/qe-hooks.js.map +0 -1
- package/dist/learning/qe-patterns.d.ts.map +0 -1
- package/dist/learning/qe-patterns.js.map +0 -1
- package/dist/learning/qe-reasoning-bank.d.ts.map +0 -1
- package/dist/learning/qe-reasoning-bank.js.map +0 -1
- package/dist/learning/qe-unified-memory.d.ts.map +0 -1
- package/dist/learning/qe-unified-memory.js.map +0 -1
- package/dist/learning/real-embeddings.d.ts.map +0 -1
- package/dist/learning/real-embeddings.js.map +0 -1
- package/dist/learning/real-qe-reasoning-bank.d.ts.map +0 -1
- package/dist/learning/real-qe-reasoning-bank.js.map +0 -1
- package/dist/learning/skill-validation-learner.d.ts.map +0 -1
- package/dist/learning/skill-validation-learner.js.map +0 -1
- package/dist/learning/sqlite-persistence.d.ts.map +0 -1
- package/dist/learning/sqlite-persistence.js.map +0 -1
- package/dist/learning/token-tracker.d.ts.map +0 -1
- package/dist/learning/token-tracker.js.map +0 -1
- package/dist/learning/v2-to-v3-migration.d.ts.map +0 -1
- package/dist/learning/v2-to-v3-migration.js.map +0 -1
- package/dist/logging/console-logger.d.ts.map +0 -1
- package/dist/logging/console-logger.js.map +0 -1
- package/dist/logging/index.d.ts.map +0 -1
- package/dist/logging/index.js.map +0 -1
- package/dist/logging/logger-factory.d.ts.map +0 -1
- package/dist/logging/logger-factory.js.map +0 -1
- package/dist/logging/logger.d.ts.map +0 -1
- package/dist/logging/logger.js.map +0 -1
- package/dist/mcp/connection-pool.d.ts.map +0 -1
- package/dist/mcp/connection-pool.js.map +0 -1
- package/dist/mcp/entry.d.ts.map +0 -1
- package/dist/mcp/entry.js.map +0 -1
- package/dist/mcp/handlers/agent-handlers.d.ts.map +0 -1
- package/dist/mcp/handlers/agent-handlers.js.map +0 -1
- package/dist/mcp/handlers/core-handlers.d.ts.map +0 -1
- package/dist/mcp/handlers/core-handlers.js.map +0 -1
- package/dist/mcp/handlers/cross-phase-handlers.d.ts.map +0 -1
- package/dist/mcp/handlers/cross-phase-handlers.js.map +0 -1
- package/dist/mcp/handlers/domain-handler-configs.d.ts.map +0 -1
- package/dist/mcp/handlers/domain-handler-configs.js.map +0 -1
- package/dist/mcp/handlers/domain-handlers.d.ts.map +0 -1
- package/dist/mcp/handlers/domain-handlers.js.map +0 -1
- package/dist/mcp/handlers/handler-factory.d.ts.map +0 -1
- package/dist/mcp/handlers/handler-factory.js.map +0 -1
- package/dist/mcp/handlers/index.d.ts.map +0 -1
- package/dist/mcp/handlers/index.js.map +0 -1
- package/dist/mcp/handlers/memory-handlers.d.ts.map +0 -1
- package/dist/mcp/handlers/memory-handlers.js.map +0 -1
- package/dist/mcp/handlers/task-handlers.d.ts.map +0 -1
- package/dist/mcp/handlers/task-handlers.js.map +0 -1
- package/dist/mcp/handlers/team-handlers.d.ts.map +0 -1
- package/dist/mcp/handlers/team-handlers.js.map +0 -1
- package/dist/mcp/handlers/wrapped-domain-handlers.d.ts.map +0 -1
- package/dist/mcp/handlers/wrapped-domain-handlers.js.map +0 -1
- package/dist/mcp/http-server.d.ts.map +0 -1
- package/dist/mcp/http-server.js.map +0 -1
- package/dist/mcp/index.d.ts.map +0 -1
- package/dist/mcp/index.js.map +0 -1
- package/dist/mcp/load-balancer.d.ts.map +0 -1
- package/dist/mcp/load-balancer.js.map +0 -1
- package/dist/mcp/metrics/index.d.ts.map +0 -1
- package/dist/mcp/metrics/index.js.map +0 -1
- package/dist/mcp/metrics/metrics-collector.d.ts.map +0 -1
- package/dist/mcp/metrics/metrics-collector.js.map +0 -1
- package/dist/mcp/middleware/output-compaction.d.ts.map +0 -1
- package/dist/mcp/middleware/output-compaction.js.map +0 -1
- package/dist/mcp/performance-monitor.d.ts.map +0 -1
- package/dist/mcp/performance-monitor.js.map +0 -1
- package/dist/mcp/protocol-server.d.ts.map +0 -1
- package/dist/mcp/protocol-server.js.map +0 -1
- package/dist/mcp/qe-tool-bridge.d.ts.map +0 -1
- package/dist/mcp/qe-tool-bridge.js.map +0 -1
- package/dist/mcp/security/cve-prevention.d.ts.map +0 -1
- package/dist/mcp/security/cve-prevention.js.map +0 -1
- package/dist/mcp/security/index.d.ts.map +0 -1
- package/dist/mcp/security/index.js.map +0 -1
- package/dist/mcp/security/oauth21-provider.d.ts.map +0 -1
- package/dist/mcp/security/oauth21-provider.js.map +0 -1
- package/dist/mcp/security/rate-limiter.d.ts.map +0 -1
- package/dist/mcp/security/rate-limiter.js.map +0 -1
- package/dist/mcp/security/sampling-server.d.ts.map +0 -1
- package/dist/mcp/security/sampling-server.js.map +0 -1
- package/dist/mcp/security/schema-validator.d.ts.map +0 -1
- package/dist/mcp/security/schema-validator.js.map +0 -1
- package/dist/mcp/security/validators/command-validator.d.ts.map +0 -1
- package/dist/mcp/security/validators/command-validator.js.map +0 -1
- package/dist/mcp/security/validators/crypto-validator.d.ts.map +0 -1
- package/dist/mcp/security/validators/crypto-validator.js.map +0 -1
- package/dist/mcp/security/validators/index.d.ts.map +0 -1
- package/dist/mcp/security/validators/index.js.map +0 -1
- package/dist/mcp/security/validators/input-sanitizer.d.ts.map +0 -1
- package/dist/mcp/security/validators/input-sanitizer.js.map +0 -1
- package/dist/mcp/security/validators/interfaces.d.ts.map +0 -1
- package/dist/mcp/security/validators/interfaces.js.map +0 -1
- package/dist/mcp/security/validators/path-traversal-validator.d.ts.map +0 -1
- package/dist/mcp/security/validators/path-traversal-validator.js.map +0 -1
- package/dist/mcp/security/validators/regex-safety-validator.d.ts.map +0 -1
- package/dist/mcp/security/validators/regex-safety-validator.js.map +0 -1
- package/dist/mcp/security/validators/validation-orchestrator.d.ts.map +0 -1
- package/dist/mcp/security/validators/validation-orchestrator.js.map +0 -1
- package/dist/mcp/server.d.ts.map +0 -1
- package/dist/mcp/server.js.map +0 -1
- package/dist/mcp/services/index.d.ts.map +0 -1
- package/dist/mcp/services/index.js.map +0 -1
- package/dist/mcp/services/mincut-routing-service.d.ts.map +0 -1
- package/dist/mcp/services/mincut-routing-service.js.map +0 -1
- package/dist/mcp/services/reasoning-bank-service.d.ts.map +0 -1
- package/dist/mcp/services/reasoning-bank-service.js.map +0 -1
- package/dist/mcp/services/task-router.d.ts.map +0 -1
- package/dist/mcp/services/task-router.js.map +0 -1
- package/dist/mcp/tool-registry.d.ts.map +0 -1
- package/dist/mcp/tool-registry.js.map +0 -1
- package/dist/mcp/tools/analysis/index.d.ts.map +0 -1
- package/dist/mcp/tools/analysis/index.js.map +0 -1
- package/dist/mcp/tools/analysis/token-usage.d.ts.map +0 -1
- package/dist/mcp/tools/analysis/token-usage.js.map +0 -1
- package/dist/mcp/tools/base.d.ts.map +0 -1
- package/dist/mcp/tools/base.js.map +0 -1
- package/dist/mcp/tools/chaos-resilience/inject.d.ts.map +0 -1
- package/dist/mcp/tools/chaos-resilience/inject.js.map +0 -1
- package/dist/mcp/tools/code-intelligence/analyze.d.ts.map +0 -1
- package/dist/mcp/tools/code-intelligence/analyze.js.map +0 -1
- package/dist/mcp/tools/coherence/audit.d.ts.map +0 -1
- package/dist/mcp/tools/coherence/audit.js.map +0 -1
- package/dist/mcp/tools/coherence/check.d.ts.map +0 -1
- package/dist/mcp/tools/coherence/check.js.map +0 -1
- package/dist/mcp/tools/coherence/collapse.d.ts.map +0 -1
- package/dist/mcp/tools/coherence/collapse.js.map +0 -1
- package/dist/mcp/tools/coherence/consensus.d.ts.map +0 -1
- package/dist/mcp/tools/coherence/consensus.js.map +0 -1
- package/dist/mcp/tools/coherence/index.d.ts.map +0 -1
- package/dist/mcp/tools/coherence/index.js.map +0 -1
- package/dist/mcp/tools/contract-testing/validate.d.ts.map +0 -1
- package/dist/mcp/tools/contract-testing/validate.js.map +0 -1
- package/dist/mcp/tools/coverage-analysis/index.d.ts.map +0 -1
- package/dist/mcp/tools/coverage-analysis/index.js.map +0 -1
- package/dist/mcp/tools/defect-intelligence/predict.d.ts.map +0 -1
- package/dist/mcp/tools/defect-intelligence/predict.js.map +0 -1
- package/dist/mcp/tools/embeddings/embedding.d.ts.map +0 -1
- package/dist/mcp/tools/embeddings/embedding.js.map +0 -1
- package/dist/mcp/tools/embeddings/index.d.ts.map +0 -1
- package/dist/mcp/tools/embeddings/index.js.map +0 -1
- package/dist/mcp/tools/index.d.ts.map +0 -1
- package/dist/mcp/tools/index.js.map +0 -1
- package/dist/mcp/tools/learning-optimization/dream.d.ts.map +0 -1
- package/dist/mcp/tools/learning-optimization/dream.js.map +0 -1
- package/dist/mcp/tools/learning-optimization/index.d.ts.map +0 -1
- package/dist/mcp/tools/learning-optimization/index.js.map +0 -1
- package/dist/mcp/tools/learning-optimization/optimize.d.ts.map +0 -1
- package/dist/mcp/tools/learning-optimization/optimize.js.map +0 -1
- package/dist/mcp/tools/mincut/index.d.ts.map +0 -1
- package/dist/mcp/tools/mincut/index.js.map +0 -1
- package/dist/mcp/tools/planning/goap-execute.d.ts.map +0 -1
- package/dist/mcp/tools/planning/goap-execute.js.map +0 -1
- package/dist/mcp/tools/planning/goap-plan.d.ts.map +0 -1
- package/dist/mcp/tools/planning/goap-plan.js.map +0 -1
- package/dist/mcp/tools/planning/goap-status.d.ts.map +0 -1
- package/dist/mcp/tools/planning/goap-status.js.map +0 -1
- package/dist/mcp/tools/planning/index.d.ts.map +0 -1
- package/dist/mcp/tools/planning/index.js.map +0 -1
- package/dist/mcp/tools/quality-assessment/evaluate.d.ts.map +0 -1
- package/dist/mcp/tools/quality-assessment/evaluate.js.map +0 -1
- package/dist/mcp/tools/qx-analysis/analyze.d.ts.map +0 -1
- package/dist/mcp/tools/qx-analysis/analyze.js.map +0 -1
- package/dist/mcp/tools/qx-analysis/heuristics-engine.d.ts.map +0 -1
- package/dist/mcp/tools/qx-analysis/heuristics-engine.js.map +0 -1
- package/dist/mcp/tools/qx-analysis/impact-analyzer.d.ts.map +0 -1
- package/dist/mcp/tools/qx-analysis/impact-analyzer.js.map +0 -1
- package/dist/mcp/tools/qx-analysis/index.d.ts.map +0 -1
- package/dist/mcp/tools/qx-analysis/index.js.map +0 -1
- package/dist/mcp/tools/qx-analysis/oracle-detector.d.ts.map +0 -1
- package/dist/mcp/tools/qx-analysis/oracle-detector.js.map +0 -1
- package/dist/mcp/tools/qx-analysis/types.d.ts.map +0 -1
- package/dist/mcp/tools/qx-analysis/types.js.map +0 -1
- package/dist/mcp/tools/registry.d.ts.map +0 -1
- package/dist/mcp/tools/registry.js.map +0 -1
- package/dist/mcp/tools/requirements-validation/quality-criteria.d.ts.map +0 -1
- package/dist/mcp/tools/requirements-validation/quality-criteria.js.map +0 -1
- package/dist/mcp/tools/requirements-validation/validate.d.ts.map +0 -1
- package/dist/mcp/tools/requirements-validation/validate.js.map +0 -1
- package/dist/mcp/tools/security-compliance/scan.d.ts.map +0 -1
- package/dist/mcp/tools/security-compliance/scan.js.map +0 -1
- package/dist/mcp/tools/security-compliance/visual-security.d.ts.map +0 -1
- package/dist/mcp/tools/security-compliance/visual-security.js.map +0 -1
- package/dist/mcp/tools/test-execution/browser-workflow.d.ts.map +0 -1
- package/dist/mcp/tools/test-execution/browser-workflow.js.map +0 -1
- package/dist/mcp/tools/test-execution/e2e-execute.d.ts.map +0 -1
- package/dist/mcp/tools/test-execution/e2e-execute.js.map +0 -1
- package/dist/mcp/tools/test-execution/execute.d.ts.map +0 -1
- package/dist/mcp/tools/test-execution/execute.js.map +0 -1
- package/dist/mcp/tools/test-execution/index.d.ts.map +0 -1
- package/dist/mcp/tools/test-execution/index.js.map +0 -1
- package/dist/mcp/tools/test-execution/load-test.d.ts.map +0 -1
- package/dist/mcp/tools/test-execution/load-test.js.map +0 -1
- package/dist/mcp/tools/test-execution/schedule.d.ts.map +0 -1
- package/dist/mcp/tools/test-execution/schedule.js.map +0 -1
- package/dist/mcp/tools/test-generation/generate.d.ts.map +0 -1
- package/dist/mcp/tools/test-generation/generate.js.map +0 -1
- package/dist/mcp/tools/visual-accessibility/index.d.ts.map +0 -1
- package/dist/mcp/tools/visual-accessibility/index.js.map +0 -1
- package/dist/mcp/transport/index.d.ts.map +0 -1
- package/dist/mcp/transport/index.js.map +0 -1
- package/dist/mcp/transport/sse/connection-manager.d.ts.map +0 -1
- package/dist/mcp/transport/sse/connection-manager.js.map +0 -1
- package/dist/mcp/transport/sse/index.d.ts.map +0 -1
- package/dist/mcp/transport/sse/index.js.map +0 -1
- package/dist/mcp/transport/sse/sse-transport.d.ts.map +0 -1
- package/dist/mcp/transport/sse/sse-transport.js.map +0 -1
- package/dist/mcp/transport/sse/types.d.ts.map +0 -1
- package/dist/mcp/transport/sse/types.js.map +0 -1
- package/dist/mcp/transport/stdio.d.ts.map +0 -1
- package/dist/mcp/transport/stdio.js.map +0 -1
- package/dist/mcp/transport/websocket/connection-manager.d.ts.map +0 -1
- package/dist/mcp/transport/websocket/connection-manager.js.map +0 -1
- package/dist/mcp/transport/websocket/index.d.ts.map +0 -1
- package/dist/mcp/transport/websocket/index.js.map +0 -1
- package/dist/mcp/transport/websocket/types.d.ts.map +0 -1
- package/dist/mcp/transport/websocket/types.js.map +0 -1
- package/dist/mcp/transport/websocket/websocket-transport.d.ts.map +0 -1
- package/dist/mcp/transport/websocket/websocket-transport.js.map +0 -1
- package/dist/mcp/types.d.ts.map +0 -1
- package/dist/mcp/types.js.map +0 -1
- package/dist/memory/crdt/convergence-tracker.d.ts.map +0 -1
- package/dist/memory/crdt/convergence-tracker.js.map +0 -1
- package/dist/memory/crdt/crdt-store.d.ts.map +0 -1
- package/dist/memory/crdt/crdt-store.js.map +0 -1
- package/dist/memory/crdt/g-counter.d.ts.map +0 -1
- package/dist/memory/crdt/g-counter.js.map +0 -1
- package/dist/memory/crdt/index.d.ts.map +0 -1
- package/dist/memory/crdt/index.js.map +0 -1
- package/dist/memory/crdt/lww-register.d.ts.map +0 -1
- package/dist/memory/crdt/lww-register.js.map +0 -1
- package/dist/memory/crdt/or-set.d.ts.map +0 -1
- package/dist/memory/crdt/or-set.js.map +0 -1
- package/dist/memory/crdt/pn-counter.d.ts.map +0 -1
- package/dist/memory/crdt/pn-counter.js.map +0 -1
- package/dist/memory/crdt/types.d.ts.map +0 -1
- package/dist/memory/crdt/types.js.map +0 -1
- package/dist/memory/cross-phase-memory.d.ts.map +0 -1
- package/dist/memory/cross-phase-memory.js.map +0 -1
- package/dist/memory/index.d.ts.map +0 -1
- package/dist/memory/index.js.map +0 -1
- package/dist/migration/agent-compat.d.ts.map +0 -1
- package/dist/migration/agent-compat.js.map +0 -1
- package/dist/migrations/20260120_add_hypergraph_tables.d.ts.map +0 -1
- package/dist/migrations/20260120_add_hypergraph_tables.js.map +0 -1
- package/dist/monitoring/structural-health.d.ts.map +0 -1
- package/dist/monitoring/structural-health.js.map +0 -1
- package/dist/optimization/auto-tuner.d.ts.map +0 -1
- package/dist/optimization/auto-tuner.js.map +0 -1
- package/dist/optimization/early-exit-token-optimizer.d.ts.map +0 -1
- package/dist/optimization/early-exit-token-optimizer.js.map +0 -1
- package/dist/optimization/index.d.ts.map +0 -1
- package/dist/optimization/index.js.map +0 -1
- package/dist/optimization/metric-collectors.d.ts.map +0 -1
- package/dist/optimization/metric-collectors.js.map +0 -1
- package/dist/optimization/qe-workers.d.ts.map +0 -1
- package/dist/optimization/qe-workers.js.map +0 -1
- package/dist/optimization/token-optimizer-service.d.ts.map +0 -1
- package/dist/optimization/token-optimizer-service.js.map +0 -1
- package/dist/optimization/tuning-algorithm.d.ts.map +0 -1
- package/dist/optimization/tuning-algorithm.js.map +0 -1
- package/dist/optimization/types.d.ts.map +0 -1
- package/dist/optimization/types.js.map +0 -1
- package/dist/performance/benchmarks.d.ts.map +0 -1
- package/dist/performance/benchmarks.js.map +0 -1
- package/dist/performance/ci-gates.d.ts.map +0 -1
- package/dist/performance/ci-gates.js.map +0 -1
- package/dist/performance/index.d.ts.map +0 -1
- package/dist/performance/index.js.map +0 -1
- package/dist/performance/optimizer.d.ts.map +0 -1
- package/dist/performance/optimizer.js.map +0 -1
- package/dist/performance/profiler.d.ts.map +0 -1
- package/dist/performance/profiler.js.map +0 -1
- package/dist/performance/run-gates.d.ts.map +0 -1
- package/dist/performance/run-gates.js.map +0 -1
- package/dist/planning/actions/qe-action-library.d.ts.map +0 -1
- package/dist/planning/actions/qe-action-library.js.map +0 -1
- package/dist/planning/goap-planner.d.ts.map +0 -1
- package/dist/planning/goap-planner.js.map +0 -1
- package/dist/planning/index.d.ts.map +0 -1
- package/dist/planning/index.js.map +0 -1
- package/dist/planning/plan-executor.d.ts.map +0 -1
- package/dist/planning/plan-executor.js.map +0 -1
- package/dist/planning/types.d.ts.map +0 -1
- package/dist/planning/types.js.map +0 -1
- package/dist/routing/calibration/ema-calibrator.d.ts.map +0 -1
- package/dist/routing/calibration/ema-calibrator.js.map +0 -1
- package/dist/routing/calibration/index.d.ts.map +0 -1
- package/dist/routing/calibration/index.js.map +0 -1
- package/dist/routing/escalation/auto-escalation-tracker.d.ts.map +0 -1
- package/dist/routing/escalation/auto-escalation-tracker.js.map +0 -1
- package/dist/routing/escalation/index.d.ts.map +0 -1
- package/dist/routing/escalation/index.js.map +0 -1
- package/dist/routing/index.d.ts.map +0 -1
- package/dist/routing/index.js.map +0 -1
- package/dist/routing/qe-agent-registry.d.ts.map +0 -1
- package/dist/routing/qe-agent-registry.js.map +0 -1
- package/dist/routing/qe-task-router.d.ts.map +0 -1
- package/dist/routing/qe-task-router.js.map +0 -1
- package/dist/routing/queen-integration.d.ts.map +0 -1
- package/dist/routing/queen-integration.js.map +0 -1
- package/dist/routing/routing-config.d.ts.map +0 -1
- package/dist/routing/routing-config.js.map +0 -1
- package/dist/routing/routing-feedback.d.ts.map +0 -1
- package/dist/routing/routing-feedback.js.map +0 -1
- package/dist/routing/task-classifier.d.ts.map +0 -1
- package/dist/routing/task-classifier.js.map +0 -1
- package/dist/routing/tiny-dancer-router.d.ts.map +0 -1
- package/dist/routing/tiny-dancer-router.js.map +0 -1
- package/dist/routing/types.d.ts.map +0 -1
- package/dist/routing/types.js.map +0 -1
- package/dist/shared/base-domain-plugin.d.ts.map +0 -1
- package/dist/shared/base-domain-plugin.js.map +0 -1
- package/dist/shared/c4-model/index.d.ts.map +0 -1
- package/dist/shared/c4-model/index.js.map +0 -1
- package/dist/shared/domain-service-registry.d.ts.map +0 -1
- package/dist/shared/domain-service-registry.js.map +0 -1
- package/dist/shared/embeddings/embedding-cache.d.ts.map +0 -1
- package/dist/shared/embeddings/embedding-cache.js.map +0 -1
- package/dist/shared/embeddings/index.d.ts.map +0 -1
- package/dist/shared/embeddings/index.js.map +0 -1
- package/dist/shared/embeddings/nomic-embedder.d.ts.map +0 -1
- package/dist/shared/embeddings/nomic-embedder.js.map +0 -1
- package/dist/shared/embeddings/ollama-client.d.ts.map +0 -1
- package/dist/shared/embeddings/ollama-client.js.map +0 -1
- package/dist/shared/embeddings/types.d.ts.map +0 -1
- package/dist/shared/embeddings/types.js.map +0 -1
- package/dist/shared/entities/agent.d.ts.map +0 -1
- package/dist/shared/entities/agent.js.map +0 -1
- package/dist/shared/entities/base-entity.d.ts.map +0 -1
- package/dist/shared/entities/base-entity.js.map +0 -1
- package/dist/shared/entities/index.d.ts.map +0 -1
- package/dist/shared/entities/index.js.map +0 -1
- package/dist/shared/error-utils.d.ts.map +0 -1
- package/dist/shared/error-utils.js.map +0 -1
- package/dist/shared/events/domain-events.d.ts.map +0 -1
- package/dist/shared/events/domain-events.js.map +0 -1
- package/dist/shared/events/index.d.ts.map +0 -1
- package/dist/shared/events/index.js.map +0 -1
- package/dist/shared/git/git-analyzer.d.ts.map +0 -1
- package/dist/shared/git/git-analyzer.js.map +0 -1
- package/dist/shared/git/index.d.ts.map +0 -1
- package/dist/shared/git/index.js.map +0 -1
- package/dist/shared/http/http-client.d.ts.map +0 -1
- package/dist/shared/http/http-client.js.map +0 -1
- package/dist/shared/http/index.d.ts.map +0 -1
- package/dist/shared/http/index.js.map +0 -1
- package/dist/shared/index.d.ts.map +0 -1
- package/dist/shared/index.js.map +0 -1
- package/dist/shared/io/file-reader.d.ts.map +0 -1
- package/dist/shared/io/file-reader.js.map +0 -1
- package/dist/shared/io/index.d.ts.map +0 -1
- package/dist/shared/io/index.js.map +0 -1
- package/dist/shared/language-detector.d.ts.map +0 -1
- package/dist/shared/language-detector.js.map +0 -1
- package/dist/shared/llm/cache.d.ts.map +0 -1
- package/dist/shared/llm/cache.js.map +0 -1
- package/dist/shared/llm/circuit-breaker.d.ts.map +0 -1
- package/dist/shared/llm/circuit-breaker.js.map +0 -1
- package/dist/shared/llm/cost-tracker.d.ts.map +0 -1
- package/dist/shared/llm/cost-tracker.js.map +0 -1
- package/dist/shared/llm/index.d.ts.map +0 -1
- package/dist/shared/llm/index.js.map +0 -1
- package/dist/shared/llm/interfaces.d.ts.map +0 -1
- package/dist/shared/llm/interfaces.js.map +0 -1
- package/dist/shared/llm/metrics/cost-metrics.d.ts.map +0 -1
- package/dist/shared/llm/metrics/cost-metrics.js.map +0 -1
- package/dist/shared/llm/metrics/index.d.ts.map +0 -1
- package/dist/shared/llm/metrics/index.js.map +0 -1
- package/dist/shared/llm/metrics/router-metrics.d.ts.map +0 -1
- package/dist/shared/llm/metrics/router-metrics.js.map +0 -1
- package/dist/shared/llm/model-mapping.d.ts.map +0 -1
- package/dist/shared/llm/model-mapping.js.map +0 -1
- package/dist/shared/llm/model-registry.d.ts.map +0 -1
- package/dist/shared/llm/model-registry.js.map +0 -1
- package/dist/shared/llm/provider-manager.d.ts.map +0 -1
- package/dist/shared/llm/provider-manager.js.map +0 -1
- package/dist/shared/llm/providers/azure-openai.d.ts.map +0 -1
- package/dist/shared/llm/providers/azure-openai.js.map +0 -1
- package/dist/shared/llm/providers/bedrock.d.ts.map +0 -1
- package/dist/shared/llm/providers/bedrock.js.map +0 -1
- package/dist/shared/llm/providers/claude.d.ts.map +0 -1
- package/dist/shared/llm/providers/claude.js.map +0 -1
- package/dist/shared/llm/providers/gemini.d.ts.map +0 -1
- package/dist/shared/llm/providers/gemini.js.map +0 -1
- package/dist/shared/llm/providers/index.d.ts.map +0 -1
- package/dist/shared/llm/providers/index.js.map +0 -1
- package/dist/shared/llm/providers/ollama.d.ts.map +0 -1
- package/dist/shared/llm/providers/ollama.js.map +0 -1
- package/dist/shared/llm/providers/openai.d.ts.map +0 -1
- package/dist/shared/llm/providers/openai.js.map +0 -1
- package/dist/shared/llm/providers/openrouter.d.ts.map +0 -1
- package/dist/shared/llm/providers/openrouter.js.map +0 -1
- package/dist/shared/llm/router/agent-router-config.d.ts.map +0 -1
- package/dist/shared/llm/router/agent-router-config.js.map +0 -1
- package/dist/shared/llm/router/hybrid-router.d.ts.map +0 -1
- package/dist/shared/llm/router/hybrid-router.js.map +0 -1
- package/dist/shared/llm/router/index.d.ts.map +0 -1
- package/dist/shared/llm/router/index.js.map +0 -1
- package/dist/shared/llm/router/routing-rules.d.ts.map +0 -1
- package/dist/shared/llm/router/routing-rules.js.map +0 -1
- package/dist/shared/llm/router/types.d.ts.map +0 -1
- package/dist/shared/llm/router/types.js.map +0 -1
- package/dist/shared/llm/translation/index.d.ts.map +0 -1
- package/dist/shared/llm/translation/index.js.map +0 -1
- package/dist/shared/llm/translation/message-formatter.d.ts.map +0 -1
- package/dist/shared/llm/translation/message-formatter.js.map +0 -1
- package/dist/shared/llm/translation/prompt-translator.d.ts.map +0 -1
- package/dist/shared/llm/translation/prompt-translator.js.map +0 -1
- package/dist/shared/llm/translation/tool-translator.d.ts.map +0 -1
- package/dist/shared/llm/translation/tool-translator.js.map +0 -1
- package/dist/shared/metrics/code-metrics.d.ts.map +0 -1
- package/dist/shared/metrics/code-metrics.js.map +0 -1
- package/dist/shared/metrics/index.d.ts.map +0 -1
- package/dist/shared/metrics/index.js.map +0 -1
- package/dist/shared/metrics/system-metrics.d.ts.map +0 -1
- package/dist/shared/metrics/system-metrics.js.map +0 -1
- package/dist/shared/parsers/index.d.ts.map +0 -1
- package/dist/shared/parsers/index.js.map +0 -1
- package/dist/shared/parsers/interfaces.d.ts.map +0 -1
- package/dist/shared/parsers/interfaces.js.map +0 -1
- package/dist/shared/parsers/multi-language-parser.d.ts.map +0 -1
- package/dist/shared/parsers/multi-language-parser.js.map +0 -1
- package/dist/shared/parsers/rust-ownership-analyzer.d.ts.map +0 -1
- package/dist/shared/parsers/rust-ownership-analyzer.js.map +0 -1
- package/dist/shared/parsers/typescript-parser.d.ts.map +0 -1
- package/dist/shared/parsers/typescript-parser.js.map +0 -1
- package/dist/shared/safe-db.d.ts.map +0 -1
- package/dist/shared/safe-db.js.map +0 -1
- package/dist/shared/safe-json.d.ts.map +0 -1
- package/dist/shared/safe-json.js.map +0 -1
- package/dist/shared/security/compliance-patterns.d.ts.map +0 -1
- package/dist/shared/security/compliance-patterns.js.map +0 -1
- package/dist/shared/security/index.d.ts.map +0 -1
- package/dist/shared/security/index.js.map +0 -1
- package/dist/shared/security/osv-client.d.ts.map +0 -1
- package/dist/shared/security/osv-client.js.map +0 -1
- package/dist/shared/sql-safety.d.ts.map +0 -1
- package/dist/shared/sql-safety.js.map +0 -1
- package/dist/shared/types/index.d.ts.map +0 -1
- package/dist/shared/types/index.js.map +0 -1
- package/dist/shared/types/test-frameworks.d.ts.map +0 -1
- package/dist/shared/types/test-frameworks.js.map +0 -1
- package/dist/shared/utils/binary-insert.d.ts.map +0 -1
- package/dist/shared/utils/binary-insert.js.map +0 -1
- package/dist/shared/utils/circular-buffer.d.ts.map +0 -1
- package/dist/shared/utils/circular-buffer.js.map +0 -1
- package/dist/shared/utils/crypto-random.d.ts.map +0 -1
- package/dist/shared/utils/crypto-random.js.map +0 -1
- package/dist/shared/utils/index.d.ts.map +0 -1
- package/dist/shared/utils/index.js.map +0 -1
- package/dist/shared/utils/safe-expression-evaluator.d.ts.map +0 -1
- package/dist/shared/utils/safe-expression-evaluator.js.map +0 -1
- package/dist/shared/utils/vector-math.d.ts.map +0 -1
- package/dist/shared/utils/vector-math.js.map +0 -1
- package/dist/shared/value-objects/index.d.ts.map +0 -1
- package/dist/shared/value-objects/index.js.map +0 -1
- package/dist/skills/security-visual-testing/index.d.ts.map +0 -1
- package/dist/skills/security-visual-testing/index.js.map +0 -1
- package/dist/skills/security-visual-testing/types.d.ts.map +0 -1
- package/dist/skills/security-visual-testing/types.js.map +0 -1
- package/dist/strange-loop/belief-reconciler.d.ts.map +0 -1
- package/dist/strange-loop/belief-reconciler.js.map +0 -1
- package/dist/strange-loop/healing-controller.d.ts.map +0 -1
- package/dist/strange-loop/healing-controller.js.map +0 -1
- package/dist/strange-loop/index.d.ts.map +0 -1
- package/dist/strange-loop/index.js.map +0 -1
- package/dist/strange-loop/infra-healing/composite-action-executor.d.ts.map +0 -1
- package/dist/strange-loop/infra-healing/composite-action-executor.js.map +0 -1
- package/dist/strange-loop/infra-healing/coordination-lock.d.ts.map +0 -1
- package/dist/strange-loop/infra-healing/coordination-lock.js.map +0 -1
- package/dist/strange-loop/infra-healing/global-instance.d.ts.map +0 -1
- package/dist/strange-loop/infra-healing/global-instance.js.map +0 -1
- package/dist/strange-loop/infra-healing/index.d.ts.map +0 -1
- package/dist/strange-loop/infra-healing/index.js.map +0 -1
- package/dist/strange-loop/infra-healing/infra-action-executor.d.ts.map +0 -1
- package/dist/strange-loop/infra-healing/infra-action-executor.js.map +0 -1
- package/dist/strange-loop/infra-healing/infra-aware-agent-provider.d.ts.map +0 -1
- package/dist/strange-loop/infra-healing/infra-aware-agent-provider.js.map +0 -1
- package/dist/strange-loop/infra-healing/infra-healing-orchestrator.d.ts.map +0 -1
- package/dist/strange-loop/infra-healing/infra-healing-orchestrator.js.map +0 -1
- package/dist/strange-loop/infra-healing/recovery-playbook.d.ts.map +0 -1
- package/dist/strange-loop/infra-healing/recovery-playbook.js.map +0 -1
- package/dist/strange-loop/infra-healing/test-output-observer.d.ts.map +0 -1
- package/dist/strange-loop/infra-healing/test-output-observer.js.map +0 -1
- package/dist/strange-loop/infra-healing/test-rerun-manager.d.ts.map +0 -1
- package/dist/strange-loop/infra-healing/test-rerun-manager.js.map +0 -1
- package/dist/strange-loop/infra-healing/types.d.ts.map +0 -1
- package/dist/strange-loop/infra-healing/types.js.map +0 -1
- package/dist/strange-loop/self-model.d.ts.map +0 -1
- package/dist/strange-loop/self-model.js.map +0 -1
- package/dist/strange-loop/strange-loop.d.ts.map +0 -1
- package/dist/strange-loop/strange-loop.js.map +0 -1
- package/dist/strange-loop/swarm-observer.d.ts.map +0 -1
- package/dist/strange-loop/swarm-observer.js.map +0 -1
- package/dist/strange-loop/topology-analyzer.d.ts.map +0 -1
- package/dist/strange-loop/topology-analyzer.js.map +0 -1
- package/dist/strange-loop/types.d.ts.map +0 -1
- package/dist/strange-loop/types.js.map +0 -1
- package/dist/sync/claude-flow-bridge.d.ts.map +0 -1
- package/dist/sync/claude-flow-bridge.js.map +0 -1
- package/dist/sync/cloud/index.d.ts.map +0 -1
- package/dist/sync/cloud/index.js.map +0 -1
- package/dist/sync/cloud/postgres-reader.d.ts.map +0 -1
- package/dist/sync/cloud/postgres-reader.js.map +0 -1
- package/dist/sync/cloud/postgres-writer.d.ts.map +0 -1
- package/dist/sync/cloud/postgres-writer.js.map +0 -1
- package/dist/sync/cloud/tunnel-manager.d.ts.map +0 -1
- package/dist/sync/cloud/tunnel-manager.js.map +0 -1
- package/dist/sync/embeddings/index.d.ts.map +0 -1
- package/dist/sync/embeddings/index.js.map +0 -1
- package/dist/sync/embeddings/sync-embedding-generator.d.ts.map +0 -1
- package/dist/sync/embeddings/sync-embedding-generator.js.map +0 -1
- package/dist/sync/index.d.ts.map +0 -1
- package/dist/sync/index.js.map +0 -1
- package/dist/sync/interfaces.d.ts.map +0 -1
- package/dist/sync/interfaces.js.map +0 -1
- package/dist/sync/pull-agent.d.ts.map +0 -1
- package/dist/sync/pull-agent.js.map +0 -1
- package/dist/sync/readers/index.d.ts.map +0 -1
- package/dist/sync/readers/index.js.map +0 -1
- package/dist/sync/readers/json-reader.d.ts.map +0 -1
- package/dist/sync/readers/json-reader.js.map +0 -1
- package/dist/sync/readers/sqlite-reader.d.ts.map +0 -1
- package/dist/sync/readers/sqlite-reader.js.map +0 -1
- package/dist/sync/sync-agent.d.ts.map +0 -1
- package/dist/sync/sync-agent.js.map +0 -1
- package/dist/sync/writers/index.d.ts.map +0 -1
- package/dist/sync/writers/index.js.map +0 -1
- package/dist/sync/writers/sqlite-writer.d.ts.map +0 -1
- package/dist/sync/writers/sqlite-writer.js.map +0 -1
- package/dist/test-scheduling/cicd/github-actions.d.ts.map +0 -1
- package/dist/test-scheduling/cicd/github-actions.js.map +0 -1
- package/dist/test-scheduling/executors/vitest-executor.d.ts.map +0 -1
- package/dist/test-scheduling/executors/vitest-executor.js.map +0 -1
- package/dist/test-scheduling/flaky-tracking/flaky-tracker.d.ts.map +0 -1
- package/dist/test-scheduling/flaky-tracking/flaky-tracker.js.map +0 -1
- package/dist/test-scheduling/git-aware/test-selector.d.ts.map +0 -1
- package/dist/test-scheduling/git-aware/test-selector.js.map +0 -1
- package/dist/test-scheduling/index.d.ts.map +0 -1
- package/dist/test-scheduling/index.js.map +0 -1
- package/dist/test-scheduling/interfaces.d.ts.map +0 -1
- package/dist/test-scheduling/interfaces.js.map +0 -1
- package/dist/test-scheduling/phase-scheduler.d.ts.map +0 -1
- package/dist/test-scheduling/phase-scheduler.js.map +0 -1
- package/dist/test-scheduling/pipeline.d.ts.map +0 -1
- package/dist/test-scheduling/pipeline.js.map +0 -1
- package/dist/testing/index.d.ts.map +0 -1
- package/dist/testing/index.js.map +0 -1
- package/dist/testing/load/agent-load-tester.d.ts.map +0 -1
- package/dist/testing/load/agent-load-tester.js.map +0 -1
- package/dist/testing/load/bottleneck-analyzer.d.ts.map +0 -1
- package/dist/testing/load/bottleneck-analyzer.js.map +0 -1
- package/dist/testing/load/index.d.ts.map +0 -1
- package/dist/testing/load/index.js.map +0 -1
- package/dist/testing/load/metrics-collector.d.ts.map +0 -1
- package/dist/testing/load/metrics-collector.js.map +0 -1
- package/dist/types/cross-phase-signals.d.ts.map +0 -1
- package/dist/types/cross-phase-signals.js.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js.map +0 -1
- package/dist/validation/index.d.ts.map +0 -1
- package/dist/validation/index.js.map +0 -1
- package/dist/validation/parallel-eval-runner.d.ts.map +0 -1
- package/dist/validation/parallel-eval-runner.js.map +0 -1
- package/dist/validation/swarm-skill-validator.d.ts.map +0 -1
- package/dist/validation/swarm-skill-validator.js.map +0 -1
- package/dist/validation/validation-result-aggregator.d.ts.map +0 -1
- package/dist/validation/validation-result-aggregator.js.map +0 -1
- package/dist/workers/base-worker.d.ts.map +0 -1
- package/dist/workers/base-worker.js.map +0 -1
- package/dist/workers/daemon.d.ts.map +0 -1
- package/dist/workers/daemon.js.map +0 -1
- package/dist/workers/index.d.ts.map +0 -1
- package/dist/workers/index.js.map +0 -1
- package/dist/workers/interfaces.d.ts.map +0 -1
- package/dist/workers/interfaces.js.map +0 -1
- package/dist/workers/worker-manager.d.ts.map +0 -1
- package/dist/workers/worker-manager.js.map +0 -1
- package/dist/workers/workers/cloud-sync.d.ts.map +0 -1
- package/dist/workers/workers/cloud-sync.js.map +0 -1
- package/dist/workers/workers/compliance-checker.d.ts.map +0 -1
- package/dist/workers/workers/compliance-checker.js.map +0 -1
- package/dist/workers/workers/coverage-tracker.d.ts.map +0 -1
- package/dist/workers/workers/coverage-tracker.js.map +0 -1
- package/dist/workers/workers/defect-predictor.d.ts.map +0 -1
- package/dist/workers/workers/defect-predictor.js.map +0 -1
- package/dist/workers/workers/flaky-detector.d.ts.map +0 -1
- package/dist/workers/workers/flaky-detector.js.map +0 -1
- package/dist/workers/workers/index.d.ts.map +0 -1
- package/dist/workers/workers/index.js.map +0 -1
- package/dist/workers/workers/learning-consolidation.d.ts.map +0 -1
- package/dist/workers/workers/learning-consolidation.js.map +0 -1
- package/dist/workers/workers/performance-baseline.d.ts.map +0 -1
- package/dist/workers/workers/performance-baseline.js.map +0 -1
- package/dist/workers/workers/quality-gate.d.ts.map +0 -1
- package/dist/workers/workers/quality-gate.js.map +0 -1
- package/dist/workers/workers/regression-monitor.d.ts.map +0 -1
- package/dist/workers/workers/regression-monitor.js.map +0 -1
- package/dist/workers/workers/security-scan.d.ts.map +0 -1
- package/dist/workers/workers/security-scan.js.map +0 -1
- package/dist/workers/workers/test-health.d.ts.map +0 -1
- package/dist/workers/workers/test-health.js.map +0 -1
- package/dist/workflows/browser/index.d.ts.map +0 -1
- package/dist/workflows/browser/index.js.map +0 -1
- package/dist/workflows/browser/workflow-loader.d.ts.map +0 -1
- package/dist/workflows/browser/workflow-loader.js.map +0 -1
- package/scripts/benchmark-aqe-baseline.ts +0 -614
- package/scripts/benchmark-coherence-versions.sh +0 -351
- package/scripts/benchmark-hnsw-loading.ts +0 -542
- package/scripts/benchmark-kg-assisted.ts +0 -725
- package/scripts/build-cli.mjs +0 -199
- package/scripts/build-mcp.mjs +0 -182
- package/scripts/cloud-db-config.json +0 -42
- package/scripts/cloud-db-connect.sh +0 -37
- package/scripts/cloud-db-tunnel.sh +0 -23
- package/scripts/coherence-check.mjs +0 -370
- package/scripts/collect-production-telemetry.sh +0 -291
- package/scripts/demo-infra-healing.ts +0 -286
- package/scripts/demo-warmup.sh +0 -45
- package/scripts/detect-skill-conflicts.ts +0 -347
- package/scripts/eval-driven-workflow.ts +0 -704
- package/scripts/generate-embeddings.ts +0 -138
- package/scripts/generate-opencode-agents.ts +0 -530
- package/scripts/generate-opencode-skills.ts +0 -318
- package/scripts/generate-pattern-embeddings.ts +0 -102
- package/scripts/index-codebase-kg.ts +0 -340
- package/scripts/merge-v3-to-root.sql +0 -48
- package/scripts/migrate-validators.cjs +0 -171
- package/scripts/prepare-assets.cjs +0 -213
- package/scripts/prepare-assets.sh +0 -92
- package/scripts/run-skill-eval.ts +0 -1297
- package/scripts/rvf-baseline-benchmark.ts +0 -843
- package/scripts/score-skill-quality.ts +0 -511
- package/scripts/sync-agents-check.cjs +0 -82
- package/scripts/sync-agents.cjs +0 -77
- package/scripts/sync-claude-flow.cjs +0 -100
- package/scripts/test-dashboard.cjs +0 -74
- package/scripts/test-migrated-patterns.ts +0 -148
- package/scripts/test-migrated-simple.ts +0 -132
- package/scripts/test-schema-validation.cjs +0 -301
- package/scripts/test-v2-migration.ts +0 -61
- package/scripts/update-skill-manifest.ts +0 -751
package/dist/cli/bundle.js
CHANGED
|
@@ -976,18 +976,18 @@ var init_logger_factory = __esm({
|
|
|
976
976
|
return this.instances.get(domain);
|
|
977
977
|
}
|
|
978
978
|
const level = this.getDomainLevel(domain);
|
|
979
|
-
let
|
|
979
|
+
let logger25;
|
|
980
980
|
if (this.config.silent) {
|
|
981
|
-
|
|
981
|
+
logger25 = new NullLogger(domain);
|
|
982
982
|
} else if (this.customProvider) {
|
|
983
|
-
|
|
983
|
+
logger25 = this.customProvider(domain, level, context2);
|
|
984
984
|
} else {
|
|
985
|
-
|
|
985
|
+
logger25 = new ConsoleLogger(domain, level, this.config.consoleConfig, context2);
|
|
986
986
|
}
|
|
987
987
|
if (!context2) {
|
|
988
|
-
this.instances.set(domain,
|
|
988
|
+
this.instances.set(domain, logger25);
|
|
989
989
|
}
|
|
990
|
-
return
|
|
990
|
+
return logger25;
|
|
991
991
|
}
|
|
992
992
|
/**
|
|
993
993
|
* Get a logger (alias for create)
|
|
@@ -1372,7 +1372,7 @@ var require_secure_json_parse = __commonJS({
|
|
|
1372
1372
|
}
|
|
1373
1373
|
return obj;
|
|
1374
1374
|
}
|
|
1375
|
-
function
|
|
1375
|
+
function parse6(text, reviver, options) {
|
|
1376
1376
|
const { stackTraceLimit } = Error;
|
|
1377
1377
|
Error.stackTraceLimit = 0;
|
|
1378
1378
|
try {
|
|
@@ -1392,9 +1392,9 @@ var require_secure_json_parse = __commonJS({
|
|
|
1392
1392
|
Error.stackTraceLimit = stackTraceLimit;
|
|
1393
1393
|
}
|
|
1394
1394
|
}
|
|
1395
|
-
module.exports =
|
|
1396
|
-
module.exports.default =
|
|
1397
|
-
module.exports.parse =
|
|
1395
|
+
module.exports = parse6;
|
|
1396
|
+
module.exports.default = parse6;
|
|
1397
|
+
module.exports.parse = parse6;
|
|
1398
1398
|
module.exports.safeParse = safeParse;
|
|
1399
1399
|
module.exports.scan = filter;
|
|
1400
1400
|
}
|
|
@@ -4348,10 +4348,10 @@ var init_unified_memory = __esm({
|
|
|
4348
4348
|
{ table: "rl_q_values", requiredColumn: "algorithm", columnDef: "TEXT DEFAULT 'q-learning'" }
|
|
4349
4349
|
];
|
|
4350
4350
|
for (const { table, requiredColumn, columnDef } of v2IncompatibleTables) {
|
|
4351
|
-
const
|
|
4351
|
+
const tableExists3 = this.db.prepare(
|
|
4352
4352
|
`SELECT name FROM sqlite_master WHERE type='table' AND name=?`
|
|
4353
4353
|
).get(table);
|
|
4354
|
-
if (
|
|
4354
|
+
if (tableExists3 && !this.columnExists(table, requiredColumn)) {
|
|
4355
4355
|
const safeName = validateTableName(table);
|
|
4356
4356
|
try {
|
|
4357
4357
|
this.db.exec(`ALTER TABLE ${safeName} ADD COLUMN ${requiredColumn} ${columnDef}`);
|
|
@@ -13472,6 +13472,16 @@ import { createHash as createHash4 } from "crypto";
|
|
|
13472
13472
|
function sha256(data) {
|
|
13473
13473
|
return createHash4("sha256").update(data, "utf-8").digest("hex");
|
|
13474
13474
|
}
|
|
13475
|
+
function shake256(data) {
|
|
13476
|
+
try {
|
|
13477
|
+
return createHash4("shake256", { outputLength: 32 }).update(data, "utf-8").digest("hex");
|
|
13478
|
+
} catch {
|
|
13479
|
+
return sha256(data);
|
|
13480
|
+
}
|
|
13481
|
+
}
|
|
13482
|
+
function hashWith(algo, data) {
|
|
13483
|
+
return algo === "shake256" ? shake256(data) : sha256(data);
|
|
13484
|
+
}
|
|
13475
13485
|
function serializeEntry(entry) {
|
|
13476
13486
|
return JSON.stringify({
|
|
13477
13487
|
id: entry.id,
|
|
@@ -13490,6 +13500,9 @@ async function getWitnessChain() {
|
|
|
13490
13500
|
}
|
|
13491
13501
|
return _instance;
|
|
13492
13502
|
}
|
|
13503
|
+
function createWitnessChain(db, keyManager) {
|
|
13504
|
+
return new WitnessChain(db, keyManager);
|
|
13505
|
+
}
|
|
13493
13506
|
var GENESIS_PREV_HASH, WitnessChain, _instance;
|
|
13494
13507
|
var init_witness_chain = __esm({
|
|
13495
13508
|
"src/audit/witness-chain.ts"() {
|
|
@@ -13497,21 +13510,13 @@ var init_witness_chain = __esm({
|
|
|
13497
13510
|
init_unified_memory();
|
|
13498
13511
|
GENESIS_PREV_HASH = "0".repeat(64);
|
|
13499
13512
|
WitnessChain = class {
|
|
13500
|
-
|
|
13501
|
-
* Create a WitnessChain instance.
|
|
13502
|
-
*
|
|
13503
|
-
* @param externalDb - Optional external database connection (for testing
|
|
13504
|
-
* with in-memory SQLite). When omitted, uses UnifiedMemoryManager.
|
|
13505
|
-
*/
|
|
13506
|
-
constructor(externalDb) {
|
|
13513
|
+
constructor(externalDb, keyManager) {
|
|
13507
13514
|
this.externalDb = externalDb;
|
|
13515
|
+
this.keyManager = keyManager ?? null;
|
|
13508
13516
|
}
|
|
13509
13517
|
db = null;
|
|
13510
13518
|
initialized = false;
|
|
13511
|
-
|
|
13512
|
-
* Initialize the witness chain.
|
|
13513
|
-
* Creates the witness_chain table if it does not exist.
|
|
13514
|
-
*/
|
|
13519
|
+
keyManager = null;
|
|
13515
13520
|
async initialize() {
|
|
13516
13521
|
if (this.initialized) return;
|
|
13517
13522
|
if (this.externalDb) {
|
|
@@ -13524,94 +13529,122 @@ var init_witness_chain = __esm({
|
|
|
13524
13529
|
this.ensureTable();
|
|
13525
13530
|
this.initialized = true;
|
|
13526
13531
|
}
|
|
13527
|
-
|
|
13528
|
-
|
|
13529
|
-
|
|
13532
|
+
getDatabase() {
|
|
13533
|
+
return this.db;
|
|
13534
|
+
}
|
|
13535
|
+
getKeyManager() {
|
|
13536
|
+
return this.keyManager;
|
|
13537
|
+
}
|
|
13530
13538
|
ensureTable() {
|
|
13531
13539
|
if (!this.db) throw new Error("Database not initialized");
|
|
13532
13540
|
this.db.exec(`
|
|
13533
13541
|
CREATE TABLE IF NOT EXISTS witness_chain (
|
|
13534
13542
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
13535
|
-
prev_hash TEXT NOT NULL,
|
|
13536
|
-
|
|
13537
|
-
|
|
13538
|
-
action_data TEXT,
|
|
13539
|
-
timestamp TEXT NOT NULL,
|
|
13540
|
-
actor TEXT NOT NULL
|
|
13543
|
+
prev_hash TEXT NOT NULL, action_hash TEXT NOT NULL, action_type TEXT NOT NULL,
|
|
13544
|
+
action_data TEXT, timestamp TEXT NOT NULL, actor TEXT NOT NULL,
|
|
13545
|
+
hash_algo TEXT DEFAULT 'sha256', signature TEXT, signer_key_id TEXT
|
|
13541
13546
|
);
|
|
13542
13547
|
CREATE INDEX IF NOT EXISTS idx_witness_action_type ON witness_chain(action_type);
|
|
13543
13548
|
CREATE INDEX IF NOT EXISTS idx_witness_timestamp ON witness_chain(timestamp);
|
|
13549
|
+
CREATE INDEX IF NOT EXISTS idx_witness_actor ON witness_chain(actor);
|
|
13550
|
+
`);
|
|
13551
|
+
this.addColumnIfMissing("hash_algo", "TEXT DEFAULT 'sha256'");
|
|
13552
|
+
this.addColumnIfMissing("signature", "TEXT");
|
|
13553
|
+
this.addColumnIfMissing("signer_key_id", "TEXT");
|
|
13554
|
+
this.db.exec(`
|
|
13555
|
+
CREATE TABLE IF NOT EXISTS witness_chain_archive (
|
|
13556
|
+
id INTEGER PRIMARY KEY,
|
|
13557
|
+
prev_hash TEXT NOT NULL, action_hash TEXT NOT NULL, action_type TEXT NOT NULL,
|
|
13558
|
+
action_data TEXT, timestamp TEXT NOT NULL, actor TEXT NOT NULL,
|
|
13559
|
+
hash_algo TEXT DEFAULT 'sha256', signature TEXT, signer_key_id TEXT,
|
|
13560
|
+
archived_at TEXT NOT NULL
|
|
13561
|
+
);
|
|
13544
13562
|
`);
|
|
13545
13563
|
}
|
|
13546
|
-
|
|
13547
|
-
|
|
13548
|
-
|
|
13549
|
-
|
|
13550
|
-
|
|
13551
|
-
|
|
13552
|
-
|
|
13553
|
-
|
|
13564
|
+
addColumnIfMissing(column, definition) {
|
|
13565
|
+
if (!this.db) return;
|
|
13566
|
+
const cols = this.db.prepare("SELECT name FROM pragma_table_info('witness_chain')").all();
|
|
13567
|
+
if (!cols.some((c70) => c70.name === column)) {
|
|
13568
|
+
this.db.exec(`ALTER TABLE witness_chain ADD COLUMN ${column} ${definition}`);
|
|
13569
|
+
}
|
|
13570
|
+
}
|
|
13571
|
+
/** Append a new SHAKE-256-hashed entry, optionally Ed25519-signed. */
|
|
13554
13572
|
append(actionType, actionData, actor) {
|
|
13555
13573
|
if (!this.db) throw new Error("WitnessChain not initialized");
|
|
13556
13574
|
const timestamp = (/* @__PURE__ */ new Date()).toISOString();
|
|
13557
13575
|
const actionDataStr = JSON.stringify(actionData);
|
|
13558
|
-
const
|
|
13576
|
+
const algo = "shake256";
|
|
13577
|
+
const actionHash = shake256(actionDataStr);
|
|
13559
13578
|
const lastEntry = this.db.prepare("SELECT * FROM witness_chain ORDER BY id DESC LIMIT 1").get();
|
|
13560
|
-
const prevHash = lastEntry ?
|
|
13561
|
-
|
|
13562
|
-
|
|
13563
|
-
|
|
13564
|
-
|
|
13565
|
-
|
|
13566
|
-
|
|
13579
|
+
const prevHash = lastEntry ? hashWith(algo, serializeEntry(lastEntry)) : GENESIS_PREV_HASH;
|
|
13580
|
+
let signature = null;
|
|
13581
|
+
let signerKeyId = null;
|
|
13582
|
+
if (this.keyManager) {
|
|
13583
|
+
const sigData = Buffer.from(prevHash + actionHash + actionType + timestamp + actor, "utf-8");
|
|
13584
|
+
const result = this.keyManager.sign(sigData);
|
|
13585
|
+
signature = result.signature.toString("hex");
|
|
13586
|
+
signerKeyId = result.keyId;
|
|
13587
|
+
}
|
|
13588
|
+
const ins = this.db.prepare(
|
|
13589
|
+
`INSERT INTO witness_chain
|
|
13590
|
+
(prev_hash, action_hash, action_type, action_data, timestamp, actor, hash_algo, signature, signer_key_id)
|
|
13591
|
+
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`
|
|
13592
|
+
).run(prevHash, actionHash, actionType, actionDataStr, timestamp, actor, algo, signature, signerKeyId);
|
|
13593
|
+
return {
|
|
13594
|
+
id: ins.lastInsertRowid,
|
|
13567
13595
|
prev_hash: prevHash,
|
|
13568
13596
|
action_hash: actionHash,
|
|
13569
13597
|
action_type: actionType,
|
|
13570
13598
|
action_data: actionDataStr,
|
|
13571
13599
|
timestamp,
|
|
13572
|
-
actor
|
|
13600
|
+
actor,
|
|
13601
|
+
hash_algo: algo,
|
|
13602
|
+
signature,
|
|
13603
|
+
signer_key_id: signerKeyId
|
|
13573
13604
|
};
|
|
13574
|
-
return entry;
|
|
13575
13605
|
}
|
|
13576
|
-
/**
|
|
13577
|
-
|
|
13578
|
-
*
|
|
13579
|
-
* Walks through every entry in order and checks that each entry's
|
|
13580
|
-
* prev_hash matches the SHA-256 of the previous entry's serialized form.
|
|
13581
|
-
*
|
|
13582
|
-
* @returns Verification result with validity status and break point
|
|
13583
|
-
*/
|
|
13584
|
-
verify() {
|
|
13606
|
+
/** Verify chain integrity. Supports mixed SHA-256/SHAKE-256 and optional signature checks. */
|
|
13607
|
+
verify(options) {
|
|
13585
13608
|
if (!this.db) throw new Error("WitnessChain not initialized");
|
|
13586
13609
|
const entries = this.db.prepare("SELECT * FROM witness_chain ORDER BY id ASC").all();
|
|
13587
|
-
if (entries.length === 0) {
|
|
13588
|
-
|
|
13589
|
-
|
|
13590
|
-
|
|
13591
|
-
return { valid: false, brokenAt: entries[0].id, entriesChecked: 1 };
|
|
13592
|
-
}
|
|
13593
|
-
if (entries[0].action_hash !== sha256(entries[0].action_data)) {
|
|
13594
|
-
return { valid: false, brokenAt: entries[0].id, entriesChecked: 1 };
|
|
13595
|
-
}
|
|
13596
|
-
for (let i58 = 1; i58 < entries.length; i58++) {
|
|
13610
|
+
if (entries.length === 0) return { valid: true, entriesChecked: 0 };
|
|
13611
|
+
let signatureFailures = 0;
|
|
13612
|
+
const checkSigs = options?.checkSignatures === true && this.keyManager !== null;
|
|
13613
|
+
for (let i58 = 0; i58 < entries.length; i58++) {
|
|
13597
13614
|
const current = entries[i58];
|
|
13598
|
-
const
|
|
13599
|
-
if (current.action_hash !==
|
|
13600
|
-
return { valid: false, brokenAt: current.id, entriesChecked: i58 + 1 };
|
|
13615
|
+
const algo = current.hash_algo || "sha256";
|
|
13616
|
+
if (current.action_hash !== hashWith(algo, current.action_data)) {
|
|
13617
|
+
return { valid: false, brokenAt: current.id, entriesChecked: i58 + 1, signatureFailures };
|
|
13601
13618
|
}
|
|
13602
|
-
|
|
13603
|
-
|
|
13604
|
-
|
|
13619
|
+
if (i58 === 0) {
|
|
13620
|
+
if (current.prev_hash !== GENESIS_PREV_HASH) {
|
|
13621
|
+
return { valid: false, brokenAt: current.id, entriesChecked: 1, signatureFailures };
|
|
13622
|
+
}
|
|
13623
|
+
} else {
|
|
13624
|
+
const expectedPrevHash = hashWith(algo, serializeEntry(entries[i58 - 1]));
|
|
13625
|
+
if (current.prev_hash !== expectedPrevHash) {
|
|
13626
|
+
return { valid: false, brokenAt: current.id, entriesChecked: i58 + 1, signatureFailures };
|
|
13627
|
+
}
|
|
13628
|
+
}
|
|
13629
|
+
if (checkSigs && current.signature && current.signer_key_id) {
|
|
13630
|
+
const sigData = Buffer.from(
|
|
13631
|
+
current.prev_hash + current.action_hash + current.action_type + current.timestamp + current.actor,
|
|
13632
|
+
"utf-8"
|
|
13633
|
+
);
|
|
13634
|
+
if (!this.keyManager.verify(Buffer.from(sigData), Buffer.from(current.signature, "hex"), current.signer_key_id)) {
|
|
13635
|
+
signatureFailures++;
|
|
13636
|
+
}
|
|
13605
13637
|
}
|
|
13606
13638
|
}
|
|
13607
|
-
|
|
13639
|
+
const valid = signatureFailures === 0;
|
|
13640
|
+
return {
|
|
13641
|
+
valid,
|
|
13642
|
+
entriesChecked: entries.length,
|
|
13643
|
+
signatureFailures,
|
|
13644
|
+
...signatureFailures > 0 ? { brokenAt: entries[0].id } : {}
|
|
13645
|
+
};
|
|
13608
13646
|
}
|
|
13609
|
-
/**
|
|
13610
|
-
* Query witness chain entries with optional filters.
|
|
13611
|
-
*
|
|
13612
|
-
* @param filter - Optional filter criteria
|
|
13613
|
-
* @returns Array of matching WitnessEntry records
|
|
13614
|
-
*/
|
|
13647
|
+
/** Query entries with optional filters. */
|
|
13615
13648
|
getEntries(filter) {
|
|
13616
13649
|
if (!this.db) throw new Error("WitnessChain not initialized");
|
|
13617
13650
|
const conditions = [];
|
|
@@ -13635,38 +13668,53 @@ var init_witness_chain = __esm({
|
|
|
13635
13668
|
const where = conditions.length > 0 ? `WHERE ${conditions.join(" AND ")}` : "";
|
|
13636
13669
|
const limit = filter?.limit ? `LIMIT ${filter.limit}` : "";
|
|
13637
13670
|
const offset = filter?.offset ? `OFFSET ${filter.offset}` : "";
|
|
13638
|
-
|
|
13639
|
-
return this.db.prepare(sql).all(...params);
|
|
13671
|
+
return this.db.prepare(`SELECT * FROM witness_chain ${where} ORDER BY id ASC ${limit} ${offset}`).all(...params);
|
|
13640
13672
|
}
|
|
13641
|
-
/**
|
|
13642
|
-
|
|
13643
|
-
|
|
13644
|
-
|
|
13645
|
-
|
|
13646
|
-
|
|
13647
|
-
|
|
13648
|
-
|
|
13649
|
-
|
|
13673
|
+
/** Get all witness entries for a pattern by ID (checks both patternId and pattern_id keys). */
|
|
13674
|
+
getPatternLineage(patternId) {
|
|
13675
|
+
if (!this.db) throw new Error("WitnessChain not initialized");
|
|
13676
|
+
return this.db.prepare(
|
|
13677
|
+
`SELECT * FROM witness_chain
|
|
13678
|
+
WHERE json_extract(action_data, '$.patternId') = ? OR json_extract(action_data, '$.pattern_id') = ?
|
|
13679
|
+
ORDER BY id ASC`
|
|
13680
|
+
).all(patternId, patternId);
|
|
13681
|
+
}
|
|
13682
|
+
/** Get all witness entries for a specific actor, optionally filtered by time. */
|
|
13683
|
+
getActorHistory(actorId, since) {
|
|
13684
|
+
if (!this.db) throw new Error("WitnessChain not initialized");
|
|
13685
|
+
if (since) {
|
|
13686
|
+
return this.db.prepare("SELECT * FROM witness_chain WHERE actor = ? AND timestamp >= ? ORDER BY id ASC").all(actorId, since);
|
|
13687
|
+
}
|
|
13688
|
+
return this.db.prepare("SELECT * FROM witness_chain WHERE actor = ? ORDER BY id ASC").all(actorId);
|
|
13689
|
+
}
|
|
13690
|
+
/** Archive old entries to witness_chain_archive. Never archives genesis (id=1). */
|
|
13691
|
+
archiveEntries(olderThan) {
|
|
13692
|
+
if (!this.db) throw new Error("WitnessChain not initialized");
|
|
13693
|
+
const archivedAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
13694
|
+
const ins = this.db.prepare(
|
|
13695
|
+
`INSERT INTO witness_chain_archive
|
|
13696
|
+
(id, prev_hash, action_hash, action_type, action_data, timestamp, actor, hash_algo, signature, signer_key_id, archived_at)
|
|
13697
|
+
SELECT id, prev_hash, action_hash, action_type, action_data, timestamp, actor, hash_algo, signature, signer_key_id, ?
|
|
13698
|
+
FROM witness_chain WHERE timestamp < ? AND id > 1 AND id NOT IN (SELECT id FROM witness_chain_archive)`
|
|
13699
|
+
).run(archivedAt, olderThan);
|
|
13700
|
+
const archived = ins.changes;
|
|
13701
|
+
if (archived > 0) {
|
|
13702
|
+
this.db.prepare("DELETE FROM witness_chain WHERE timestamp < ? AND id > 1").run(olderThan);
|
|
13703
|
+
}
|
|
13704
|
+
return { archived };
|
|
13705
|
+
}
|
|
13706
|
+
/** Cross-verify against an RVF native witness chain. */
|
|
13650
13707
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13651
13708
|
crossVerifyWithRvf(rvfAdapter) {
|
|
13652
13709
|
const sqliteResult = this.verify();
|
|
13653
13710
|
const rvfStatus = rvfAdapter.status();
|
|
13654
13711
|
const rvfValid = rvfStatus.witnessValid === true;
|
|
13655
13712
|
const rvfEntries = typeof rvfStatus.witnessEntries === "number" ? rvfStatus.witnessEntries : 0;
|
|
13656
|
-
return {
|
|
13657
|
-
sqliteValid: sqliteResult.valid,
|
|
13658
|
-
rvfValid,
|
|
13659
|
-
rvfEntries,
|
|
13660
|
-
bothValid: sqliteResult.valid && rvfValid
|
|
13661
|
-
};
|
|
13713
|
+
return { sqliteValid: sqliteResult.valid, rvfValid, rvfEntries, bothValid: sqliteResult.valid && rvfValid };
|
|
13662
13714
|
}
|
|
13663
|
-
/**
|
|
13664
|
-
* Get the total number of entries in the chain.
|
|
13665
|
-
*/
|
|
13666
13715
|
getChainLength() {
|
|
13667
13716
|
if (!this.db) throw new Error("WitnessChain not initialized");
|
|
13668
|
-
|
|
13669
|
-
return row.count;
|
|
13717
|
+
return this.db.prepare("SELECT COUNT(*) as count FROM witness_chain").get().count;
|
|
13670
13718
|
}
|
|
13671
13719
|
};
|
|
13672
13720
|
_instance = null;
|
|
@@ -16932,6 +16980,11 @@ var init_rvcow_branch_manager = __esm({
|
|
|
16932
16980
|
rvfAdapter;
|
|
16933
16981
|
/** When true and rvfAdapter is set, createBranch() also forks an RVF snapshot */
|
|
16934
16982
|
useRvfFork = false;
|
|
16983
|
+
/** Optional witness chain for audit trail of branch operations (ADR-070) */
|
|
16984
|
+
_witnessChain = null;
|
|
16985
|
+
set witnessChain(wc) {
|
|
16986
|
+
this._witnessChain = wc;
|
|
16987
|
+
}
|
|
16935
16988
|
/**
|
|
16936
16989
|
* Set an RVF native adapter for supplementary COW fork snapshots.
|
|
16937
16990
|
* When set with useRvfFork=true, createBranch() will additionally
|
|
@@ -17045,6 +17098,12 @@ var init_rvcow_branch_manager = __esm({
|
|
|
17045
17098
|
branch.status = "merged";
|
|
17046
17099
|
this.activeBranches.delete(branch.name);
|
|
17047
17100
|
this.emit("dream:branch_merged", branch);
|
|
17101
|
+
try {
|
|
17102
|
+
this._witnessChain?.append("BRANCH_MERGE", {
|
|
17103
|
+
branchName: branch.name
|
|
17104
|
+
}, "rvcow-branch-manager");
|
|
17105
|
+
} catch {
|
|
17106
|
+
}
|
|
17048
17107
|
}
|
|
17049
17108
|
/**
|
|
17050
17109
|
* Discard a branch by rolling back to its savepoint.
|
|
@@ -17286,6 +17345,11 @@ var init_dream_engine = __esm({
|
|
|
17286
17345
|
initialized = false;
|
|
17287
17346
|
cancelled = false;
|
|
17288
17347
|
branchEventListeners = [];
|
|
17348
|
+
/** Optional witness chain for audit trail of dream decisions (ADR-070) */
|
|
17349
|
+
_witnessChain = null;
|
|
17350
|
+
set witnessChain(wc) {
|
|
17351
|
+
this._witnessChain = wc;
|
|
17352
|
+
}
|
|
17289
17353
|
constructor(config) {
|
|
17290
17354
|
this.config = { ...DEFAULT_DREAM_CONFIG, ...config };
|
|
17291
17355
|
}
|
|
@@ -17433,9 +17497,24 @@ var init_dream_engine = __esm({
|
|
|
17433
17497
|
if (validation.passed) {
|
|
17434
17498
|
this.branchManager.mergeBranch(branch);
|
|
17435
17499
|
this.emitBranchEvent("dream:branch_merged", branch, validation);
|
|
17500
|
+
try {
|
|
17501
|
+
this._witnessChain?.append("DREAM_MERGE", {
|
|
17502
|
+
cycleId: this.currentCycle.id,
|
|
17503
|
+
branchName: branch.name
|
|
17504
|
+
}, "dream-engine");
|
|
17505
|
+
} catch {
|
|
17506
|
+
}
|
|
17436
17507
|
} else {
|
|
17437
17508
|
this.branchManager.discardBranch(branch);
|
|
17438
17509
|
this.emitBranchEvent("dream:branch_discarded", branch, validation);
|
|
17510
|
+
try {
|
|
17511
|
+
this._witnessChain?.append("DREAM_DISCARD", {
|
|
17512
|
+
cycleId: this.currentCycle.id,
|
|
17513
|
+
branchName: branch.name,
|
|
17514
|
+
reason: validation.reason
|
|
17515
|
+
}, "dream-engine");
|
|
17516
|
+
} catch {
|
|
17517
|
+
}
|
|
17439
17518
|
dreamLogger.warn("Dream branch discarded: quality validation failed", {
|
|
17440
17519
|
cycleId: this.currentCycle.id,
|
|
17441
17520
|
reason: validation.reason
|
|
@@ -19377,11 +19456,11 @@ var init_v2_to_v3_migration = __esm({
|
|
|
19377
19456
|
if (!this.v2Db) throw new Error("V2 database not connected");
|
|
19378
19457
|
const safeReadTable = (tableName) => {
|
|
19379
19458
|
try {
|
|
19380
|
-
const
|
|
19459
|
+
const tableExists3 = this.v2Db.prepare(`
|
|
19381
19460
|
SELECT name FROM sqlite_master
|
|
19382
19461
|
WHERE type='table' AND name=?
|
|
19383
19462
|
`).get(tableName);
|
|
19384
|
-
if (!
|
|
19463
|
+
if (!tableExists3) {
|
|
19385
19464
|
console.log(` [V2Migration] Table '${tableName}' not found, skipping...`);
|
|
19386
19465
|
return [];
|
|
19387
19466
|
}
|
|
@@ -20108,8 +20187,8 @@ var init_kiro_installer = __esm({
|
|
|
20108
20187
|
continue;
|
|
20109
20188
|
}
|
|
20110
20189
|
try {
|
|
20111
|
-
const
|
|
20112
|
-
const parsed = this.parseYamlAgent(
|
|
20190
|
+
const yaml3 = readFileSync21(join33(sourceDir, file), "utf-8");
|
|
20191
|
+
const parsed = this.parseYamlAgent(yaml3);
|
|
20113
20192
|
const kiroAgent = this.convertToKiroAgent(parsed);
|
|
20114
20193
|
writeFileSync13(targetFile, JSON.stringify(kiroAgent, null, 2) + "\n");
|
|
20115
20194
|
installed.push(name);
|
|
@@ -20185,19 +20264,19 @@ var init_kiro_installer = __esm({
|
|
|
20185
20264
|
includeMcpJson: true
|
|
20186
20265
|
};
|
|
20187
20266
|
}
|
|
20188
|
-
parseYamlAgent(
|
|
20267
|
+
parseYamlAgent(yaml3) {
|
|
20189
20268
|
const get = (key) => {
|
|
20190
20269
|
const re18 = new RegExp(`^${key}:\\s*(?:"([^"]*)"|(.*))`, "m");
|
|
20191
|
-
const m74 =
|
|
20270
|
+
const m74 = yaml3.match(re18);
|
|
20192
20271
|
return m74 ? (m74[1] ?? m74[2] ?? "").trim() : "";
|
|
20193
20272
|
};
|
|
20194
20273
|
let systemPrompt = "";
|
|
20195
|
-
const promptMatch =
|
|
20274
|
+
const promptMatch = yaml3.match(/^systemPrompt:\s*\|\s*\n([\s\S]*?)(?=\n\w|\n$)/m);
|
|
20196
20275
|
if (promptMatch) {
|
|
20197
20276
|
systemPrompt = promptMatch[1].split("\n").map((l75) => l75.replace(/^ {2}/, "")).join("\n").trim();
|
|
20198
20277
|
}
|
|
20199
20278
|
const tools = [];
|
|
20200
|
-
const toolsMatch =
|
|
20279
|
+
const toolsMatch = yaml3.match(/^tools:\s*\n((?:\s+-\s+.*\n?)*)/m);
|
|
20201
20280
|
if (toolsMatch) {
|
|
20202
20281
|
const lines = toolsMatch[1].split("\n");
|
|
20203
20282
|
for (const line of lines) {
|
|
@@ -20206,7 +20285,7 @@ var init_kiro_installer = __esm({
|
|
|
20206
20285
|
}
|
|
20207
20286
|
}
|
|
20208
20287
|
const permissions = {};
|
|
20209
|
-
const permMatch =
|
|
20288
|
+
const permMatch = yaml3.match(/^permissions:\s*\n((?:\s+.*\n?)*)/m);
|
|
20210
20289
|
if (permMatch) {
|
|
20211
20290
|
const lines = permMatch[1].split("\n");
|
|
20212
20291
|
for (const line of lines) {
|
|
@@ -20327,8 +20406,8 @@ var init_kiro_installer = __esm({
|
|
|
20327
20406
|
} else {
|
|
20328
20407
|
const yamlPath = join33(openCodeSkillsDir, `${skillName}.yaml`);
|
|
20329
20408
|
if (existsSync29(yamlPath)) {
|
|
20330
|
-
const
|
|
20331
|
-
const parsed = this.parseYamlSkill(
|
|
20409
|
+
const yaml3 = readFileSync21(yamlPath, "utf-8");
|
|
20410
|
+
const parsed = this.parseYamlSkill(yaml3);
|
|
20332
20411
|
const markdown = this.convertToSkillMd(parsed);
|
|
20333
20412
|
mkdirSync15(kiroSkillDir, { recursive: true });
|
|
20334
20413
|
writeFileSync13(targetFile, markdown, { mode: 420 });
|
|
@@ -20394,19 +20473,19 @@ ${claudeContent}`;
|
|
|
20394
20473
|
return `${kiroFrontmatter}
|
|
20395
20474
|
${body}`;
|
|
20396
20475
|
}
|
|
20397
|
-
parseYamlSkill(
|
|
20476
|
+
parseYamlSkill(yaml3) {
|
|
20398
20477
|
const get = (key) => {
|
|
20399
20478
|
const re18 = new RegExp(`^${key}:\\s*(?:"([^"]*)"|(.*))`, "m");
|
|
20400
|
-
const m74 =
|
|
20479
|
+
const m74 = yaml3.match(re18);
|
|
20401
20480
|
return m74 ? (m74[1] ?? m74[2] ?? "").trim() : "";
|
|
20402
20481
|
};
|
|
20403
20482
|
const tags = [];
|
|
20404
|
-
const tagsMatch =
|
|
20483
|
+
const tagsMatch = yaml3.match(/^tags:\s*\[([^\]]*)\]/m);
|
|
20405
20484
|
if (tagsMatch) {
|
|
20406
20485
|
tags.push(...tagsMatch[1].split(",").map((t50) => t50.trim().replace(/^"|"$/g, "")));
|
|
20407
20486
|
}
|
|
20408
20487
|
const steps = [];
|
|
20409
|
-
const stepsMatch =
|
|
20488
|
+
const stepsMatch = yaml3.match(/^steps:\s*\n([\s\S]*)$/m);
|
|
20410
20489
|
if (stepsMatch) {
|
|
20411
20490
|
const rawBlocks = stepsMatch[1].split(/\n\s*-\s+name:\s*/);
|
|
20412
20491
|
for (const block of rawBlocks) {
|
|
@@ -22190,7 +22269,7 @@ __export(rvf_native_adapter_exports, {
|
|
|
22190
22269
|
openRvfStore: () => openRvfStore,
|
|
22191
22270
|
openRvfStoreReadonly: () => openRvfStoreReadonly
|
|
22192
22271
|
});
|
|
22193
|
-
import { readFileSync as
|
|
22272
|
+
import { readFileSync as readFileSync41, writeFileSync as writeFileSync31, copyFileSync as copyFileSync10, existsSync as existsSync48 } from "fs";
|
|
22194
22273
|
function getNative() {
|
|
22195
22274
|
if (_nativeChecked) return _native;
|
|
22196
22275
|
_nativeChecked = true;
|
|
@@ -22213,9 +22292,9 @@ function loadIdMap(rvfPath) {
|
|
|
22213
22292
|
const strToNum = /* @__PURE__ */ new Map();
|
|
22214
22293
|
const numToStr = /* @__PURE__ */ new Map();
|
|
22215
22294
|
let nextLabel = 1;
|
|
22216
|
-
if (
|
|
22295
|
+
if (existsSync48(p74)) {
|
|
22217
22296
|
try {
|
|
22218
|
-
const raw = JSON.parse(
|
|
22297
|
+
const raw = JSON.parse(readFileSync41(p74, "utf-8"));
|
|
22219
22298
|
nextLabel = raw.nextLabel;
|
|
22220
22299
|
for (const [str, num] of raw.entries) {
|
|
22221
22300
|
strToNum.set(str, num);
|
|
@@ -22231,7 +22310,7 @@ function saveIdMap(rvfPath, strToNum, nextLabel) {
|
|
|
22231
22310
|
nextLabel,
|
|
22232
22311
|
entries: Array.from(strToNum.entries())
|
|
22233
22312
|
};
|
|
22234
|
-
|
|
22313
|
+
writeFileSync31(idMapPath(rvfPath), JSON.stringify(data), "utf-8");
|
|
22235
22314
|
}
|
|
22236
22315
|
function createRvfStore(path36, dimensions) {
|
|
22237
22316
|
const native = getNative();
|
|
@@ -22309,8 +22388,9 @@ var init_rvf_native_adapter = __esm({
|
|
|
22309
22388
|
const dim = this._dimension;
|
|
22310
22389
|
const flat = new Float32Array(entries.length * dim);
|
|
22311
22390
|
const ids = [];
|
|
22391
|
+
const metadataList = [];
|
|
22312
22392
|
for (let i58 = 0; i58 < entries.length; i58++) {
|
|
22313
|
-
const { id, vector } = entries[i58];
|
|
22393
|
+
const { id, vector, metadata } = entries[i58];
|
|
22314
22394
|
let label = this.strToNum.get(id);
|
|
22315
22395
|
if (label === void 0) {
|
|
22316
22396
|
label = this.nextLabel++;
|
|
@@ -22318,10 +22398,18 @@ var init_rvf_native_adapter = __esm({
|
|
|
22318
22398
|
this.numToStr.set(label, id);
|
|
22319
22399
|
}
|
|
22320
22400
|
ids.push(label);
|
|
22401
|
+
metadataList.push(metadata);
|
|
22321
22402
|
const src = vector instanceof Float32Array ? vector : new Float32Array(vector);
|
|
22322
22403
|
flat.set(src.subarray(0, dim), i58 * dim);
|
|
22323
22404
|
}
|
|
22324
|
-
|
|
22405
|
+
let result;
|
|
22406
|
+
const hasMetadata = metadataList.some((m74) => m74 !== void 0);
|
|
22407
|
+
if (hasMetadata && typeof this.db.ingestBatchWithMetadata === "function") {
|
|
22408
|
+
const metaJson = metadataList.map((m74) => m74 ? JSON.stringify(m74) : "");
|
|
22409
|
+
result = this.db.ingestBatchWithMetadata(flat, ids, metaJson);
|
|
22410
|
+
} else {
|
|
22411
|
+
result = this.db.ingestBatch(flat, ids);
|
|
22412
|
+
}
|
|
22325
22413
|
this.persistIdMap();
|
|
22326
22414
|
return { accepted: result.accepted, rejected: result.rejected };
|
|
22327
22415
|
}
|
|
@@ -22428,12 +22516,95 @@ var init_rvf_native_adapter = __esm({
|
|
|
22428
22516
|
this.ensureOpen();
|
|
22429
22517
|
return this.db.extractKernel();
|
|
22430
22518
|
}
|
|
22519
|
+
// -- witness / sign / lineage (graceful degradation) ---------------------
|
|
22520
|
+
verifyWitness() {
|
|
22521
|
+
this.ensureOpen();
|
|
22522
|
+
const r54 = this.tryNative("verifyWitness");
|
|
22523
|
+
if (r54) return {
|
|
22524
|
+
valid: r54.valid ?? true,
|
|
22525
|
+
totalEntries: r54.totalEntries ?? 0,
|
|
22526
|
+
errors: Array.isArray(r54.errors) ? r54.errors : []
|
|
22527
|
+
};
|
|
22528
|
+
return { valid: true, totalEntries: 0, errors: [] };
|
|
22529
|
+
}
|
|
22530
|
+
sign(data) {
|
|
22531
|
+
this.ensureOpen();
|
|
22532
|
+
const r54 = this.tryNative("sign", data);
|
|
22533
|
+
return typeof r54 === "string" ? r54 : null;
|
|
22534
|
+
}
|
|
22535
|
+
fileId() {
|
|
22536
|
+
this.ensureOpen();
|
|
22537
|
+
const r54 = this.tryNative("fileId");
|
|
22538
|
+
return typeof r54 === "string" ? r54 : null;
|
|
22539
|
+
}
|
|
22540
|
+
parentId() {
|
|
22541
|
+
this.ensureOpen();
|
|
22542
|
+
const r54 = this.tryNative("parentId");
|
|
22543
|
+
return typeof r54 === "string" ? r54 : null;
|
|
22544
|
+
}
|
|
22545
|
+
lineageDepth() {
|
|
22546
|
+
this.ensureOpen();
|
|
22547
|
+
const r54 = this.tryNative("lineageDepth");
|
|
22548
|
+
return typeof r54 === "number" ? r54 : 0;
|
|
22549
|
+
}
|
|
22550
|
+
// -- indexStats -----------------------------------------------------------
|
|
22551
|
+
indexStats() {
|
|
22552
|
+
const s70 = this.status();
|
|
22553
|
+
return {
|
|
22554
|
+
totalVectors: s70.totalVectors,
|
|
22555
|
+
dimension: this._dimension,
|
|
22556
|
+
totalSegments: s70.totalSegments,
|
|
22557
|
+
fileSizeBytes: s70.fileSizeBytes,
|
|
22558
|
+
epoch: s70.epoch,
|
|
22559
|
+
witnessValid: s70.witnessValid,
|
|
22560
|
+
witnessEntries: s70.witnessEntries,
|
|
22561
|
+
idMapSize: this.strToNum.size
|
|
22562
|
+
};
|
|
22563
|
+
}
|
|
22564
|
+
// -- freeze / derive ------------------------------------------------------
|
|
22565
|
+
freeze() {
|
|
22566
|
+
this.ensureOpen();
|
|
22567
|
+
const r54 = this.tryNative("freeze");
|
|
22568
|
+
return typeof r54 === "number" ? r54 : 0;
|
|
22569
|
+
}
|
|
22570
|
+
derive(childPath) {
|
|
22571
|
+
this.ensureOpen();
|
|
22572
|
+
const native = getNative();
|
|
22573
|
+
if (typeof this.db.derive === "function") {
|
|
22574
|
+
try {
|
|
22575
|
+
const childDb = this.db.derive(childPath);
|
|
22576
|
+
const childStrToNum = new Map(this.strToNum);
|
|
22577
|
+
const childNumToStr = new Map(this.numToStr);
|
|
22578
|
+
saveIdMap(childPath, childStrToNum, this.nextLabel);
|
|
22579
|
+
return new _RvfNativeAdapterImpl(
|
|
22580
|
+
childDb,
|
|
22581
|
+
childPath,
|
|
22582
|
+
this._dimension,
|
|
22583
|
+
childStrToNum,
|
|
22584
|
+
childNumToStr,
|
|
22585
|
+
this.nextLabel
|
|
22586
|
+
);
|
|
22587
|
+
} catch {
|
|
22588
|
+
}
|
|
22589
|
+
}
|
|
22590
|
+
return this.fork(childPath);
|
|
22591
|
+
}
|
|
22431
22592
|
// -- internal -------------------------------------------------------------
|
|
22432
22593
|
ensureOpen() {
|
|
22433
22594
|
if (!this._open) {
|
|
22434
22595
|
throw new Error("RVF database is closed");
|
|
22435
22596
|
}
|
|
22436
22597
|
}
|
|
22598
|
+
/** Call a native method if it exists, returning null on missing/error. */
|
|
22599
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
22600
|
+
tryNative(method, ...args) {
|
|
22601
|
+
if (typeof this.db[method] !== "function") return null;
|
|
22602
|
+
try {
|
|
22603
|
+
return this.db[method](...args);
|
|
22604
|
+
} catch {
|
|
22605
|
+
return null;
|
|
22606
|
+
}
|
|
22607
|
+
}
|
|
22437
22608
|
persistIdMap() {
|
|
22438
22609
|
saveIdMap(this._path, this.strToNum, this.nextLabel);
|
|
22439
22610
|
}
|
|
@@ -22446,7 +22617,7 @@ var file_discovery_exports = {};
|
|
|
22446
22617
|
__export(file_discovery_exports, {
|
|
22447
22618
|
walkSourceFiles: () => walkSourceFiles
|
|
22448
22619
|
});
|
|
22449
|
-
import { existsSync as
|
|
22620
|
+
import { existsSync as existsSync50, readdirSync as readdirSync14, statSync as statSync10 } from "fs";
|
|
22450
22621
|
import { join as join52, extname as extname9 } from "path";
|
|
22451
22622
|
function walkSourceFiles(targetPath, options = {}) {
|
|
22452
22623
|
const {
|
|
@@ -22455,7 +22626,7 @@ function walkSourceFiles(targetPath, options = {}) {
|
|
|
22455
22626
|
testsOnly = false,
|
|
22456
22627
|
extraExtensions = []
|
|
22457
22628
|
} = options;
|
|
22458
|
-
if (!
|
|
22629
|
+
if (!existsSync50(targetPath)) {
|
|
22459
22630
|
return [];
|
|
22460
22631
|
}
|
|
22461
22632
|
const stat4 = statSync10(targetPath);
|
|
@@ -22471,7 +22642,7 @@ function walkSourceFiles(targetPath, options = {}) {
|
|
|
22471
22642
|
if (depth > maxDepth) return;
|
|
22472
22643
|
let entries;
|
|
22473
22644
|
try {
|
|
22474
|
-
entries =
|
|
22645
|
+
entries = readdirSync14(dir, { withFileTypes: true });
|
|
22475
22646
|
} catch {
|
|
22476
22647
|
return;
|
|
22477
22648
|
}
|
|
@@ -22651,8 +22822,8 @@ var init_base = __esm({
|
|
|
22651
22822
|
/**
|
|
22652
22823
|
* Set logger for this tool
|
|
22653
22824
|
*/
|
|
22654
|
-
setLogger(
|
|
22655
|
-
this.logger =
|
|
22825
|
+
setLogger(logger25) {
|
|
22826
|
+
this.logger = logger25;
|
|
22656
22827
|
}
|
|
22657
22828
|
/**
|
|
22658
22829
|
* Mark result as coming from demo/sample data
|
|
@@ -26281,13 +26452,13 @@ var init_sqlite_persistence = __esm({
|
|
|
26281
26452
|
storePattern(pattern, embedding) {
|
|
26282
26453
|
if (!this.db) throw new Error("Database not initialized");
|
|
26283
26454
|
const id = pattern.id || v4_default();
|
|
26284
|
-
const
|
|
26455
|
+
const insertPattern = this.prepared.get("insertPattern");
|
|
26285
26456
|
const insertEmbedding = this.prepared.get("insertEmbedding");
|
|
26286
|
-
if (!
|
|
26457
|
+
if (!insertPattern || !insertEmbedding) {
|
|
26287
26458
|
throw new Error("Prepared statements not ready");
|
|
26288
26459
|
}
|
|
26289
26460
|
const transaction = this.db.transaction(() => {
|
|
26290
|
-
|
|
26461
|
+
insertPattern.run(
|
|
26291
26462
|
id,
|
|
26292
26463
|
pattern.patternType,
|
|
26293
26464
|
pattern.qeDomain,
|
|
@@ -26354,8 +26525,8 @@ var init_sqlite_persistence = __esm({
|
|
|
26354
26525
|
recordUsage(patternId, success, metrics, feedback) {
|
|
26355
26526
|
if (!this.db) throw new Error("Database not initialized");
|
|
26356
26527
|
const insertUsage = this.prepared.get("insertUsage");
|
|
26357
|
-
const
|
|
26358
|
-
if (!insertUsage || !
|
|
26528
|
+
const updatePattern = this.prepared.get("updatePattern");
|
|
26529
|
+
if (!insertUsage || !updatePattern) {
|
|
26359
26530
|
throw new Error("Prepared statements not ready");
|
|
26360
26531
|
}
|
|
26361
26532
|
const pattern = this.getPattern(patternId);
|
|
@@ -26374,7 +26545,7 @@ var init_sqlite_persistence = __esm({
|
|
|
26374
26545
|
metrics ? JSON.stringify(metrics) : null,
|
|
26375
26546
|
feedback || null
|
|
26376
26547
|
);
|
|
26377
|
-
|
|
26548
|
+
updatePattern.run(
|
|
26378
26549
|
success ? 1 : 0,
|
|
26379
26550
|
success ? 1 : 0,
|
|
26380
26551
|
qualityScore,
|
|
@@ -26604,10 +26775,10 @@ var init_sqlite_persistence = __esm({
|
|
|
26604
26775
|
getPatternReuseStats(patternId, days = 7) {
|
|
26605
26776
|
if (!this.db) throw new Error("Database not initialized");
|
|
26606
26777
|
try {
|
|
26607
|
-
const
|
|
26778
|
+
const tableExists3 = this.db.prepare(`
|
|
26608
26779
|
SELECT name FROM sqlite_master WHERE type='table' AND name='qe_pattern_reuse'
|
|
26609
26780
|
`).get();
|
|
26610
|
-
if (!
|
|
26781
|
+
if (!tableExists3) {
|
|
26611
26782
|
return {
|
|
26612
26783
|
totalSearches: 0,
|
|
26613
26784
|
totalReused: 0,
|
|
@@ -27333,7 +27504,7 @@ __export(qe_reasoning_bank_exports, {
|
|
|
27333
27504
|
function createQEReasoningBank(memory, eventBus, config, coherenceService) {
|
|
27334
27505
|
return new QEReasoningBank(memory, eventBus, config, coherenceService);
|
|
27335
27506
|
}
|
|
27336
|
-
var
|
|
27507
|
+
var logger23, DEFAULT_QE_REASONING_BANK_CONFIG, QEReasoningBank;
|
|
27337
27508
|
var init_qe_reasoning_bank = __esm({
|
|
27338
27509
|
"src/learning/qe-reasoning-bank.ts"() {
|
|
27339
27510
|
"use strict";
|
|
@@ -27347,7 +27518,7 @@ var init_qe_reasoning_bank = __esm({
|
|
|
27347
27518
|
init_witness_chain();
|
|
27348
27519
|
init_qe_patterns();
|
|
27349
27520
|
init_qe_guidance();
|
|
27350
|
-
|
|
27521
|
+
logger23 = LoggerFactory.create("QEReasoningBank");
|
|
27351
27522
|
DEFAULT_QE_REASONING_BANK_CONFIG = {
|
|
27352
27523
|
enableLearning: true,
|
|
27353
27524
|
enableGuidance: true,
|
|
@@ -27392,7 +27563,7 @@ var init_qe_reasoning_bank = __esm({
|
|
|
27392
27563
|
if (!this.sqliteStore) {
|
|
27393
27564
|
this.sqliteStore = createSQLitePatternStore();
|
|
27394
27565
|
this.sqliteStore.initialize().catch((e20) => {
|
|
27395
|
-
|
|
27566
|
+
logger23.warn("SQLitePatternStore init failed", { error: toErrorMessage(e20) });
|
|
27396
27567
|
});
|
|
27397
27568
|
}
|
|
27398
27569
|
return this.sqliteStore;
|
|
@@ -27480,7 +27651,7 @@ var init_qe_reasoning_bank = __esm({
|
|
|
27480
27651
|
await store.initialize();
|
|
27481
27652
|
this.patternStore.setSqliteStore(store);
|
|
27482
27653
|
} catch (e20) {
|
|
27483
|
-
|
|
27654
|
+
logger23.warn("Failed to wire SQLitePatternStore into PatternStore", { error: toErrorMessage(e20) });
|
|
27484
27655
|
}
|
|
27485
27656
|
await this.loadPretrainedPatterns();
|
|
27486
27657
|
this.initialized = true;
|
|
@@ -27492,12 +27663,12 @@ var init_qe_reasoning_bank = __esm({
|
|
|
27492
27663
|
await this.seedCrossDomainPatterns();
|
|
27493
27664
|
} else {
|
|
27494
27665
|
const stats = await this.patternStore.getStats();
|
|
27495
|
-
|
|
27666
|
+
logger23.info("Cross-domain transfer already complete", { totalPatterns: stats.totalPatterns });
|
|
27496
27667
|
}
|
|
27497
27668
|
} catch (error) {
|
|
27498
|
-
|
|
27669
|
+
logger23.warn("Cross-domain seeding failed (non-fatal)", { error });
|
|
27499
27670
|
}
|
|
27500
|
-
|
|
27671
|
+
logger23.info("Initialized");
|
|
27501
27672
|
}
|
|
27502
27673
|
/**
|
|
27503
27674
|
* Load pre-trained patterns for common QE scenarios
|
|
@@ -27505,7 +27676,7 @@ var init_qe_reasoning_bank = __esm({
|
|
|
27505
27676
|
async loadPretrainedPatterns() {
|
|
27506
27677
|
const stats = await this.patternStore.getStats();
|
|
27507
27678
|
if (stats.totalPatterns > 0) {
|
|
27508
|
-
|
|
27679
|
+
logger23.info("Found existing patterns", { totalPatterns: stats.totalPatterns });
|
|
27509
27680
|
return;
|
|
27510
27681
|
}
|
|
27511
27682
|
const foundationalPatterns = [
|
|
@@ -28223,10 +28394,10 @@ On promotion:
|
|
|
28223
28394
|
try {
|
|
28224
28395
|
await this.patternStore.create(options);
|
|
28225
28396
|
} catch (error) {
|
|
28226
|
-
|
|
28397
|
+
logger23.warn("Failed to load pattern", { name: options.name, error });
|
|
28227
28398
|
}
|
|
28228
28399
|
}
|
|
28229
|
-
|
|
28400
|
+
logger23.info("Loaded foundational patterns", { count: foundationalPatterns.length });
|
|
28230
28401
|
}
|
|
28231
28402
|
/**
|
|
28232
28403
|
* Seed cross-domain patterns by transferring generalizable patterns
|
|
@@ -28309,7 +28480,7 @@ On promotion:
|
|
|
28309
28480
|
}
|
|
28310
28481
|
}
|
|
28311
28482
|
}
|
|
28312
|
-
|
|
28483
|
+
logger23.info("Cross-domain transfer complete", { transferred, skipped });
|
|
28313
28484
|
return { transferred, skipped };
|
|
28314
28485
|
}
|
|
28315
28486
|
/**
|
|
@@ -28336,7 +28507,7 @@ On promotion:
|
|
|
28336
28507
|
try {
|
|
28337
28508
|
this.rvfDualWriter.writePattern(result.value.id, result.value.embedding);
|
|
28338
28509
|
} catch (rvfErr) {
|
|
28339
|
-
|
|
28510
|
+
logger23.warn("RVF dual-write failed (non-fatal)", { patternId: result.value.id, error: toErrorMessage(rvfErr) });
|
|
28340
28511
|
}
|
|
28341
28512
|
}
|
|
28342
28513
|
}
|
|
@@ -28400,7 +28571,7 @@ On promotion:
|
|
|
28400
28571
|
outcome.feedback
|
|
28401
28572
|
);
|
|
28402
28573
|
} catch (persistError) {
|
|
28403
|
-
|
|
28574
|
+
logger23.warn("SQLite pattern usage persist failed", { error: toErrorMessage(persistError) });
|
|
28404
28575
|
}
|
|
28405
28576
|
if (result.success) {
|
|
28406
28577
|
this.stats.learningOutcomes++;
|
|
@@ -28412,7 +28583,7 @@ On promotion:
|
|
|
28412
28583
|
const pattern = await this.getPattern(outcome.patternId);
|
|
28413
28584
|
if (pattern && await this.checkPatternPromotionWithCoherence(pattern)) {
|
|
28414
28585
|
await this.promotePattern(outcome.patternId);
|
|
28415
|
-
|
|
28586
|
+
logger23.info("Pattern promoted to long-term", { name: pattern.name });
|
|
28416
28587
|
}
|
|
28417
28588
|
}
|
|
28418
28589
|
return result;
|
|
@@ -28459,7 +28630,7 @@ On promotion:
|
|
|
28459
28630
|
payload: event
|
|
28460
28631
|
});
|
|
28461
28632
|
}
|
|
28462
|
-
|
|
28633
|
+
logger23.info("Pattern promotion blocked due to coherence violation", {
|
|
28463
28634
|
name: pattern.name,
|
|
28464
28635
|
energy: coherenceResult.energy
|
|
28465
28636
|
});
|
|
@@ -28488,7 +28659,7 @@ On promotion:
|
|
|
28488
28659
|
try {
|
|
28489
28660
|
this.getSqliteStore().promotePattern(patternId);
|
|
28490
28661
|
} catch (e20) {
|
|
28491
|
-
|
|
28662
|
+
logger23.warn("SQLite pattern promotion persist failed", { error: toErrorMessage(e20) });
|
|
28492
28663
|
}
|
|
28493
28664
|
if (this.rvfDualWriter) {
|
|
28494
28665
|
try {
|
|
@@ -28497,12 +28668,12 @@ On promotion:
|
|
|
28497
28668
|
this.rvfDualWriter.writePattern(patternId, promoted.embedding);
|
|
28498
28669
|
}
|
|
28499
28670
|
} catch (rvfErr) {
|
|
28500
|
-
|
|
28671
|
+
logger23.warn("RVF dual-write on promote failed (non-fatal)", { patternId, error: toErrorMessage(rvfErr) });
|
|
28501
28672
|
}
|
|
28502
28673
|
}
|
|
28503
28674
|
getWitnessChain().then((wc) => wc.append("PATTERN_PROMOTE", { patternId }, "reasoning-bank")).catch(() => {
|
|
28504
28675
|
});
|
|
28505
|
-
|
|
28676
|
+
logger23.info("Promoted pattern to long-term", { patternId });
|
|
28506
28677
|
if (this.eventBus) {
|
|
28507
28678
|
await this.eventBus.publish({
|
|
28508
28679
|
id: `pattern-promoted-${patternId}`,
|
|
@@ -28513,7 +28684,7 @@ On promotion:
|
|
|
28513
28684
|
});
|
|
28514
28685
|
}
|
|
28515
28686
|
} else {
|
|
28516
|
-
|
|
28687
|
+
logger23.error("Failed to promote pattern", result.error, { patternId });
|
|
28517
28688
|
}
|
|
28518
28689
|
}
|
|
28519
28690
|
/**
|
|
@@ -28639,7 +28810,7 @@ On promotion:
|
|
|
28639
28810
|
return embedding;
|
|
28640
28811
|
} catch (error) {
|
|
28641
28812
|
if (process.env.DEBUG) {
|
|
28642
|
-
|
|
28813
|
+
logger23.warn("ONNX embeddings unavailable, using hash fallback", {
|
|
28643
28814
|
error: toErrorMessage(error)
|
|
28644
28815
|
});
|
|
28645
28816
|
}
|
|
@@ -28851,7 +29022,7 @@ function wrapNativeAdapter(adapter, dim) {
|
|
|
28851
29022
|
}
|
|
28852
29023
|
};
|
|
28853
29024
|
}
|
|
28854
|
-
function
|
|
29025
|
+
function tableExists2(db, name) {
|
|
28855
29026
|
const row = db.prepare(
|
|
28856
29027
|
"SELECT COUNT(*) as cnt FROM sqlite_master WHERE type='table' AND name=?"
|
|
28857
29028
|
).get(name);
|
|
@@ -29085,7 +29256,7 @@ var init_rvf_dual_writer = __esm({
|
|
|
29085
29256
|
embedding instanceof Float32Array ? embedding.buffer : new Float32Array(embedding).buffer
|
|
29086
29257
|
);
|
|
29087
29258
|
const dimension = embedding.length;
|
|
29088
|
-
if (
|
|
29259
|
+
if (tableExists2(this.db, "qe_pattern_embeddings")) {
|
|
29089
29260
|
this.db.prepare(`
|
|
29090
29261
|
INSERT INTO qe_pattern_embeddings (pattern_id, embedding, dimension, model, created_at)
|
|
29091
29262
|
VALUES (?, ?, ?, 'all-MiniLM-L6-v2', datetime('now'))
|
|
@@ -29097,17 +29268,17 @@ var init_rvf_dual_writer = __esm({
|
|
|
29097
29268
|
}
|
|
29098
29269
|
}
|
|
29099
29270
|
deleteSqliteEmbedding(patternId) {
|
|
29100
|
-
if (
|
|
29271
|
+
if (tableExists2(this.db, "qe_pattern_embeddings")) {
|
|
29101
29272
|
this.db.prepare("DELETE FROM qe_pattern_embeddings WHERE pattern_id = ?").run(patternId);
|
|
29102
29273
|
}
|
|
29103
29274
|
}
|
|
29104
29275
|
getSqliteEmbeddingCount() {
|
|
29105
|
-
if (!
|
|
29276
|
+
if (!tableExists2(this.db, "qe_pattern_embeddings")) return 0;
|
|
29106
29277
|
const row = this.db.prepare("SELECT COUNT(*) as cnt FROM qe_pattern_embeddings").get();
|
|
29107
29278
|
return row?.cnt ?? 0;
|
|
29108
29279
|
}
|
|
29109
29280
|
getSqlitePatternCount() {
|
|
29110
|
-
if (!
|
|
29281
|
+
if (!tableExists2(this.db, "qe_patterns")) return 0;
|
|
29111
29282
|
const row = this.db.prepare("SELECT COUNT(*) as cnt FROM qe_patterns").get();
|
|
29112
29283
|
return row?.cnt ?? 0;
|
|
29113
29284
|
}
|
|
@@ -29116,7 +29287,7 @@ var init_rvf_dual_writer = __esm({
|
|
|
29116
29287
|
* This is the fallback when RVF is unavailable.
|
|
29117
29288
|
*/
|
|
29118
29289
|
searchSqlite(query, k68) {
|
|
29119
|
-
if (!
|
|
29290
|
+
if (!tableExists2(this.db, "qe_pattern_embeddings")) return [];
|
|
29120
29291
|
const rows = this.db.prepare(
|
|
29121
29292
|
"SELECT pattern_id, embedding, dimension FROM qe_pattern_embeddings"
|
|
29122
29293
|
).all();
|
|
@@ -57946,10 +58117,10 @@ var PersistentSONAEngine = class {
|
|
|
57946
58117
|
*/
|
|
57947
58118
|
ensureSchema() {
|
|
57948
58119
|
if (!this.db) throw new Error("Database not initialized");
|
|
57949
|
-
const
|
|
58120
|
+
const tableExists3 = this.db.prepare(
|
|
57950
58121
|
`SELECT name FROM sqlite_master WHERE type='table' AND name='sona_patterns'`
|
|
57951
58122
|
).get();
|
|
57952
|
-
if (!
|
|
58123
|
+
if (!tableExists3) {
|
|
57953
58124
|
console.log("[PersistentSONAEngine] Creating sona_patterns table");
|
|
57954
58125
|
this.db.exec(SONA_PATTERNS_SCHEMA2);
|
|
57955
58126
|
}
|
|
@@ -67428,10 +67599,10 @@ var BrowserOrchestrator = class {
|
|
|
67428
67599
|
config;
|
|
67429
67600
|
log;
|
|
67430
67601
|
adaptiveLocator = null;
|
|
67431
|
-
constructor(client, config,
|
|
67602
|
+
constructor(client, config, logger25) {
|
|
67432
67603
|
this.client = client;
|
|
67433
67604
|
this.config = config;
|
|
67434
|
-
this.log =
|
|
67605
|
+
this.log = logger25;
|
|
67435
67606
|
this.unifiedClient = config.browserClient ?? client;
|
|
67436
67607
|
this.useAgentBrowser = isAgentBrowserClient(this.unifiedClient);
|
|
67437
67608
|
if (config.adaptiveLocator?.enabled) {
|
|
@@ -67710,17 +67881,17 @@ var BrowserOrchestrator = class {
|
|
|
67710
67881
|
return options;
|
|
67711
67882
|
}
|
|
67712
67883
|
};
|
|
67713
|
-
function createBrowserOrchestrator(client, config,
|
|
67714
|
-
return new BrowserOrchestrator(client, config,
|
|
67884
|
+
function createBrowserOrchestrator(client, config, logger25) {
|
|
67885
|
+
return new BrowserOrchestrator(client, config, logger25);
|
|
67715
67886
|
}
|
|
67716
67887
|
|
|
67717
67888
|
// src/domains/test-execution/services/e2e/assertion-handlers.ts
|
|
67718
67889
|
var AssertionHandlers = class {
|
|
67719
67890
|
orchestrator;
|
|
67720
67891
|
log;
|
|
67721
|
-
constructor(orchestrator,
|
|
67892
|
+
constructor(orchestrator, logger25) {
|
|
67722
67893
|
this.orchestrator = orchestrator;
|
|
67723
|
-
this.log =
|
|
67894
|
+
this.log = logger25;
|
|
67724
67895
|
}
|
|
67725
67896
|
// ==========================================================================
|
|
67726
67897
|
// Unified Browser Client Assertions
|
|
@@ -68133,8 +68304,8 @@ var AssertionHandlers = class {
|
|
|
68133
68304
|
this.assertCondition(matches, step, expected, actual);
|
|
68134
68305
|
}
|
|
68135
68306
|
};
|
|
68136
|
-
function createAssertionHandlers(orchestrator,
|
|
68137
|
-
return new AssertionHandlers(orchestrator,
|
|
68307
|
+
function createAssertionHandlers(orchestrator, logger25) {
|
|
68308
|
+
return new AssertionHandlers(orchestrator, logger25);
|
|
68138
68309
|
}
|
|
68139
68310
|
|
|
68140
68311
|
// src/domains/test-execution/services/e2e/wait-condition-handler.ts
|
|
@@ -68247,12 +68418,12 @@ var StepExecutors = class {
|
|
|
68247
68418
|
assertionHandlers;
|
|
68248
68419
|
waitConditionHandler;
|
|
68249
68420
|
log;
|
|
68250
|
-
constructor(config, orchestrator,
|
|
68421
|
+
constructor(config, orchestrator, logger25) {
|
|
68251
68422
|
this.config = config;
|
|
68252
68423
|
this.orchestrator = orchestrator;
|
|
68253
|
-
this.assertionHandlers = createAssertionHandlers(orchestrator,
|
|
68424
|
+
this.assertionHandlers = createAssertionHandlers(orchestrator, logger25);
|
|
68254
68425
|
this.waitConditionHandler = createWaitConditionHandler(orchestrator);
|
|
68255
|
-
this.log =
|
|
68426
|
+
this.log = logger25;
|
|
68256
68427
|
}
|
|
68257
68428
|
/**
|
|
68258
68429
|
* Execute a single step based on its type
|
|
@@ -68680,8 +68851,8 @@ var StepExecutors = class {
|
|
|
68680
68851
|
return new Promise((resolve22) => setTimeout(resolve22, ms));
|
|
68681
68852
|
}
|
|
68682
68853
|
};
|
|
68683
|
-
function createStepExecutors(config, orchestrator,
|
|
68684
|
-
return new StepExecutors(config, orchestrator,
|
|
68854
|
+
function createStepExecutors(config, orchestrator, logger25) {
|
|
68855
|
+
return new StepExecutors(config, orchestrator, logger25);
|
|
68685
68856
|
}
|
|
68686
68857
|
|
|
68687
68858
|
// src/domains/test-execution/services/e2e/step-retry-handler.ts
|
|
@@ -68691,10 +68862,10 @@ var StepRetryHandler = class {
|
|
|
68691
68862
|
config;
|
|
68692
68863
|
stepExecutors;
|
|
68693
68864
|
log;
|
|
68694
|
-
constructor(config, stepExecutors,
|
|
68865
|
+
constructor(config, stepExecutors, logger25) {
|
|
68695
68866
|
this.config = config;
|
|
68696
68867
|
this.stepExecutors = stepExecutors;
|
|
68697
|
-
this.log =
|
|
68868
|
+
this.log = logger25;
|
|
68698
68869
|
}
|
|
68699
68870
|
/**
|
|
68700
68871
|
* Execute a step with retry logic
|
|
@@ -68804,8 +68975,8 @@ var StepRetryHandler = class {
|
|
|
68804
68975
|
return new Promise((resolve22) => setTimeout(resolve22, ms));
|
|
68805
68976
|
}
|
|
68806
68977
|
};
|
|
68807
|
-
function createStepRetryHandler(config, stepExecutors,
|
|
68808
|
-
return new StepRetryHandler(config, stepExecutors,
|
|
68978
|
+
function createStepRetryHandler(config, stepExecutors, logger25) {
|
|
68979
|
+
return new StepRetryHandler(config, stepExecutors, logger25);
|
|
68809
68980
|
}
|
|
68810
68981
|
|
|
68811
68982
|
// src/domains/test-execution/services/e2e/result-collector.ts
|
|
@@ -68931,10 +69102,10 @@ var E2ETestRunnerService = class {
|
|
|
68931
69102
|
constructor(client, config = {}) {
|
|
68932
69103
|
this.client = client;
|
|
68933
69104
|
this.config = { ...DEFAULT_E2E_RUNNER_CONFIG, ...config };
|
|
68934
|
-
const
|
|
68935
|
-
this.orchestrator = createBrowserOrchestrator(client, this.config,
|
|
68936
|
-
this.stepExecutors = createStepExecutors(this.config, this.orchestrator,
|
|
68937
|
-
this.retryHandler = createStepRetryHandler(this.config, this.stepExecutors,
|
|
69105
|
+
const logger25 = (message) => this.log(message);
|
|
69106
|
+
this.orchestrator = createBrowserOrchestrator(client, this.config, logger25);
|
|
69107
|
+
this.stepExecutors = createStepExecutors(this.config, this.orchestrator, logger25);
|
|
69108
|
+
this.retryHandler = createStepRetryHandler(this.config, this.stepExecutors, logger25);
|
|
68938
69109
|
this.resultCollector = createResultCollector();
|
|
68939
69110
|
this.log(
|
|
68940
69111
|
`E2E Runner initialized with ${this.orchestrator.isUsingAgentBrowser() ? "agent-browser" : "vibium"} client`
|
|
@@ -134180,7 +134351,7 @@ var ALL_DOMAINS2 = [
|
|
|
134180
134351
|
"enterprise-integration"
|
|
134181
134352
|
];
|
|
134182
134353
|
function getAQEVersion() {
|
|
134183
|
-
return true ? "3.7.
|
|
134354
|
+
return true ? "3.7.14" : "3.0.0";
|
|
134184
134355
|
}
|
|
134185
134356
|
function createDefaultConfig(projectName, projectRoot) {
|
|
134186
134357
|
return {
|
|
@@ -135093,11 +135264,11 @@ function readVersionFromDb(dbPath) {
|
|
|
135093
135264
|
try {
|
|
135094
135265
|
const db = openDatabase(dbPath, { readonly: true, fileMustExist: true });
|
|
135095
135266
|
try {
|
|
135096
|
-
const
|
|
135267
|
+
const tableExists3 = db.prepare(`
|
|
135097
135268
|
SELECT name FROM sqlite_master
|
|
135098
135269
|
WHERE type='table' AND name='kv_store'
|
|
135099
135270
|
`).get();
|
|
135100
|
-
if (!
|
|
135271
|
+
if (!tableExists3) {
|
|
135101
135272
|
db.close();
|
|
135102
135273
|
return void 0;
|
|
135103
135274
|
}
|
|
@@ -135358,12 +135529,12 @@ async function migrateV2Config(projectRoot, v2Detection) {
|
|
|
135358
135529
|
codeIntelligence: codeIntelConfig
|
|
135359
135530
|
}
|
|
135360
135531
|
};
|
|
135361
|
-
const
|
|
135532
|
+
const yaml3 = await import("yaml");
|
|
135362
135533
|
const yamlContent = `# Agentic QE v3 Configuration
|
|
135363
135534
|
# Migrated from v2 on ${(/* @__PURE__ */ new Date()).toISOString()}
|
|
135364
135535
|
# Original v2 settings preserved in _v2Backup section
|
|
135365
135536
|
|
|
135366
|
-
${
|
|
135537
|
+
${yaml3.stringify(v3Config)}`;
|
|
135367
135538
|
writeFileSync3(v3ConfigPath, yamlContent, "utf-8");
|
|
135368
135539
|
console.log(" \u2713 V2 config migrated to v3 format");
|
|
135369
135540
|
} catch (error) {
|
|
@@ -137546,9 +137717,9 @@ async function saveConfig(projectRoot, config) {
|
|
|
137546
137717
|
if (!existsSync21(configDir)) {
|
|
137547
137718
|
mkdirSync10(configDir, { recursive: true });
|
|
137548
137719
|
}
|
|
137549
|
-
const
|
|
137720
|
+
const yaml3 = configToYAML(config);
|
|
137550
137721
|
const configPath = join25(configDir, "config.yaml");
|
|
137551
|
-
writeFileSync8(configPath,
|
|
137722
|
+
writeFileSync8(configPath, yaml3, "utf-8");
|
|
137552
137723
|
}
|
|
137553
137724
|
function configToYAML(config) {
|
|
137554
137725
|
const lines = [
|
|
@@ -138125,11 +138296,11 @@ var DetectionPhase = class extends BasePhase {
|
|
|
138125
138296
|
try {
|
|
138126
138297
|
const db = openDatabase(dbPath, { readonly: true, fileMustExist: true });
|
|
138127
138298
|
try {
|
|
138128
|
-
const
|
|
138299
|
+
const tableExists3 = db.prepare(`
|
|
138129
138300
|
SELECT name FROM sqlite_master
|
|
138130
138301
|
WHERE type='table' AND name='kv_store'
|
|
138131
138302
|
`).get();
|
|
138132
|
-
if (!
|
|
138303
|
+
if (!tableExists3) {
|
|
138133
138304
|
db.close();
|
|
138134
138305
|
return void 0;
|
|
138135
138306
|
}
|
|
@@ -139951,8 +140122,8 @@ var VerificationPhase = class extends BasePhase {
|
|
|
139951
140122
|
config = this.mergeConfigs(config, existingConfig);
|
|
139952
140123
|
}
|
|
139953
140124
|
}
|
|
139954
|
-
const
|
|
139955
|
-
writeFileSync24(configPath,
|
|
140125
|
+
const yaml3 = this.configToYAML(config);
|
|
140126
|
+
writeFileSync24(configPath, yaml3, "utf-8");
|
|
139956
140127
|
}
|
|
139957
140128
|
/**
|
|
139958
140129
|
* Load existing config.yaml and parse it
|
|
@@ -142393,25 +142564,282 @@ init_better_sqlite3();
|
|
|
142393
142564
|
|
|
142394
142565
|
// src/integrations/ruvector/brain-exporter.ts
|
|
142395
142566
|
init_safe_json();
|
|
142396
|
-
import {
|
|
142397
|
-
import { existsSync as existsSync46, mkdirSync as mkdirSync29, writeFileSync as writeFileSync29, readFileSync as readFileSync39 } from "fs";
|
|
142567
|
+
import { existsSync as existsSync47, mkdirSync as mkdirSync29, writeFileSync as writeFileSync30, readFileSync as readFileSync40 } from "fs";
|
|
142398
142568
|
import { join as join51, resolve as resolve9 } from "path";
|
|
142399
|
-
|
|
142400
|
-
|
|
142569
|
+
|
|
142570
|
+
// src/integrations/ruvector/brain-shared.ts
|
|
142571
|
+
import { createHash as createHash5 } from "crypto";
|
|
142572
|
+
import { existsSync as existsSync46, readFileSync as readFileSync39, writeFileSync as writeFileSync29, openSync, writeSync, closeSync } from "fs";
|
|
142573
|
+
|
|
142574
|
+
// src/integrations/ruvector/brain-table-ddl.ts
|
|
142575
|
+
var BRAIN_TABLE_DDL = [
|
|
142576
|
+
// --- Tier 0: Core tables (already existed in Phase 1) ---
|
|
142577
|
+
`CREATE TABLE IF NOT EXISTS qe_patterns (
|
|
142578
|
+
id TEXT PRIMARY KEY, pattern_type TEXT NOT NULL, qe_domain TEXT NOT NULL,
|
|
142579
|
+
domain TEXT NOT NULL, name TEXT NOT NULL, description TEXT,
|
|
142580
|
+
confidence REAL DEFAULT 0.5, usage_count INTEGER DEFAULT 0,
|
|
142581
|
+
success_rate REAL DEFAULT 0.0, quality_score REAL DEFAULT 0.0,
|
|
142582
|
+
tier TEXT DEFAULT 'short-term', template_json TEXT, context_json TEXT,
|
|
142583
|
+
created_at TEXT DEFAULT (datetime('now')), updated_at TEXT DEFAULT (datetime('now')),
|
|
142584
|
+
last_used_at TEXT, successful_uses INTEGER DEFAULT 0, tokens_used INTEGER,
|
|
142585
|
+
input_tokens INTEGER, output_tokens INTEGER, latency_ms REAL,
|
|
142586
|
+
reusable INTEGER DEFAULT 0, reuse_count INTEGER DEFAULT 0,
|
|
142587
|
+
average_token_savings REAL DEFAULT 0, total_tokens_saved INTEGER
|
|
142588
|
+
)`,
|
|
142589
|
+
`CREATE TABLE IF NOT EXISTS rl_q_values (
|
|
142590
|
+
id TEXT PRIMARY KEY, algorithm TEXT NOT NULL, agent_id TEXT NOT NULL,
|
|
142591
|
+
state_key TEXT NOT NULL, action_key TEXT NOT NULL,
|
|
142592
|
+
q_value REAL NOT NULL DEFAULT 0.0, visits INTEGER NOT NULL DEFAULT 0,
|
|
142593
|
+
last_reward REAL, domain TEXT,
|
|
142594
|
+
created_at TEXT DEFAULT (datetime('now')), updated_at TEXT DEFAULT (datetime('now')),
|
|
142595
|
+
UNIQUE(algorithm, agent_id, state_key, action_key)
|
|
142596
|
+
)`,
|
|
142597
|
+
`CREATE TABLE IF NOT EXISTS dream_cycles (
|
|
142598
|
+
id TEXT PRIMARY KEY, start_time TEXT NOT NULL, end_time TEXT, duration_ms INTEGER,
|
|
142599
|
+
concepts_processed INTEGER DEFAULT 0, associations_found INTEGER DEFAULT 0,
|
|
142600
|
+
insights_generated INTEGER DEFAULT 0, status TEXT DEFAULT 'running',
|
|
142601
|
+
error TEXT, created_at TEXT DEFAULT (datetime('now'))
|
|
142602
|
+
)`,
|
|
142603
|
+
`CREATE TABLE IF NOT EXISTS dream_insights (
|
|
142604
|
+
id TEXT PRIMARY KEY, cycle_id TEXT NOT NULL, insight_type TEXT NOT NULL,
|
|
142605
|
+
source_concepts TEXT NOT NULL, description TEXT NOT NULL,
|
|
142606
|
+
novelty_score REAL DEFAULT 0.5, confidence_score REAL DEFAULT 0.5,
|
|
142607
|
+
actionable INTEGER DEFAULT 0, applied INTEGER DEFAULT 0,
|
|
142608
|
+
suggested_action TEXT, pattern_id TEXT, created_at TEXT DEFAULT (datetime('now'))
|
|
142609
|
+
)`,
|
|
142610
|
+
`CREATE TABLE IF NOT EXISTS witness_chain (
|
|
142611
|
+
id INTEGER PRIMARY KEY AUTOINCREMENT, prev_hash TEXT NOT NULL,
|
|
142612
|
+
action_hash TEXT NOT NULL, action_type TEXT NOT NULL,
|
|
142613
|
+
action_data TEXT, timestamp TEXT NOT NULL, actor TEXT NOT NULL,
|
|
142614
|
+
hash_algo TEXT DEFAULT 'sha256', signature TEXT, signer_key_id TEXT
|
|
142615
|
+
)`,
|
|
142616
|
+
`CREATE TABLE IF NOT EXISTS qe_pattern_embeddings (
|
|
142617
|
+
pattern_id TEXT PRIMARY KEY, embedding BLOB NOT NULL,
|
|
142618
|
+
dimension INTEGER NOT NULL, model TEXT DEFAULT 'all-MiniLM-L6-v2',
|
|
142619
|
+
created_at TEXT DEFAULT (datetime('now')),
|
|
142620
|
+
FOREIGN KEY (pattern_id) REFERENCES qe_patterns(id) ON DELETE CASCADE
|
|
142621
|
+
)`,
|
|
142622
|
+
// --- Tier 1: New tables ---
|
|
142623
|
+
`CREATE TABLE IF NOT EXISTS captured_experiences (
|
|
142624
|
+
id TEXT PRIMARY KEY, task TEXT NOT NULL, agent TEXT NOT NULL,
|
|
142625
|
+
domain TEXT NOT NULL DEFAULT '', success INTEGER NOT NULL DEFAULT 0,
|
|
142626
|
+
quality REAL NOT NULL DEFAULT 0.5, duration_ms INTEGER NOT NULL DEFAULT 0,
|
|
142627
|
+
model_tier INTEGER, routing_json TEXT, steps_json TEXT, result_json TEXT,
|
|
142628
|
+
error TEXT, started_at TEXT NOT NULL DEFAULT (datetime('now')),
|
|
142629
|
+
completed_at TEXT NOT NULL DEFAULT (datetime('now')),
|
|
142630
|
+
source TEXT DEFAULT 'middleware', application_count INTEGER DEFAULT 0,
|
|
142631
|
+
avg_token_savings REAL DEFAULT 0, embedding BLOB, embedding_dimension INTEGER,
|
|
142632
|
+
tags TEXT, last_applied_at TEXT, consolidated_into TEXT DEFAULT NULL,
|
|
142633
|
+
consolidation_count INTEGER DEFAULT 1, quality_updated_at TEXT DEFAULT NULL,
|
|
142634
|
+
reuse_success_count INTEGER DEFAULT 0, reuse_failure_count INTEGER DEFAULT 0
|
|
142635
|
+
)`,
|
|
142636
|
+
`CREATE TABLE IF NOT EXISTS sona_patterns (
|
|
142637
|
+
id TEXT PRIMARY KEY, type TEXT NOT NULL, domain TEXT NOT NULL,
|
|
142638
|
+
state_embedding BLOB, action_embedding BLOB,
|
|
142639
|
+
action_type TEXT NOT NULL, action_value TEXT,
|
|
142640
|
+
outcome_reward REAL NOT NULL DEFAULT 0.0, outcome_success INTEGER NOT NULL DEFAULT 0,
|
|
142641
|
+
outcome_quality REAL NOT NULL DEFAULT 0.0, confidence REAL DEFAULT 0.5,
|
|
142642
|
+
usage_count INTEGER DEFAULT 0, success_count INTEGER DEFAULT 0,
|
|
142643
|
+
failure_count INTEGER DEFAULT 0, metadata TEXT,
|
|
142644
|
+
created_at TEXT DEFAULT (datetime('now')), updated_at TEXT DEFAULT (datetime('now')),
|
|
142645
|
+
last_used_at TEXT
|
|
142646
|
+
)`,
|
|
142647
|
+
`CREATE TABLE IF NOT EXISTS qe_trajectories (
|
|
142648
|
+
id TEXT PRIMARY KEY, task TEXT NOT NULL, agent TEXT, domain TEXT,
|
|
142649
|
+
started_at TEXT DEFAULT (datetime('now')), ended_at TEXT,
|
|
142650
|
+
success INTEGER, steps_json TEXT, metadata_json TEXT
|
|
142651
|
+
)`,
|
|
142652
|
+
`CREATE TABLE IF NOT EXISTS trajectory_steps (
|
|
142653
|
+
id TEXT PRIMARY KEY, trajectory_id TEXT NOT NULL, step_order INTEGER NOT NULL,
|
|
142654
|
+
action TEXT NOT NULL, outcome TEXT NOT NULL, quality REAL DEFAULT 0.5,
|
|
142655
|
+
duration_ms INTEGER DEFAULT 0, tokens_used INTEGER, result_data TEXT,
|
|
142656
|
+
error_message TEXT, metrics_json TEXT, context_json TEXT,
|
|
142657
|
+
timestamp TEXT DEFAULT (datetime('now')),
|
|
142658
|
+
FOREIGN KEY (trajectory_id) REFERENCES qe_trajectories(id) ON DELETE CASCADE
|
|
142659
|
+
)`,
|
|
142660
|
+
`CREATE TABLE IF NOT EXISTS concept_nodes (
|
|
142661
|
+
id TEXT PRIMARY KEY, concept_type TEXT NOT NULL, content TEXT NOT NULL,
|
|
142662
|
+
embedding BLOB, activation_level REAL DEFAULT 0.0, last_activated TEXT,
|
|
142663
|
+
pattern_id TEXT, metadata TEXT, created_at TEXT DEFAULT (datetime('now'))
|
|
142664
|
+
)`,
|
|
142665
|
+
`CREATE TABLE IF NOT EXISTS concept_edges (
|
|
142666
|
+
id TEXT PRIMARY KEY, source TEXT NOT NULL, target TEXT NOT NULL,
|
|
142667
|
+
weight REAL NOT NULL DEFAULT 1.0, edge_type TEXT NOT NULL,
|
|
142668
|
+
evidence INTEGER DEFAULT 1, created_at TEXT DEFAULT (datetime('now')),
|
|
142669
|
+
updated_at TEXT DEFAULT (datetime('now')),
|
|
142670
|
+
FOREIGN KEY (source) REFERENCES concept_nodes(id) ON DELETE CASCADE,
|
|
142671
|
+
FOREIGN KEY (target) REFERENCES concept_nodes(id) ON DELETE CASCADE
|
|
142672
|
+
)`,
|
|
142673
|
+
`CREATE TABLE IF NOT EXISTS goap_actions (
|
|
142674
|
+
id TEXT PRIMARY KEY, name TEXT NOT NULL, description TEXT,
|
|
142675
|
+
agent_type TEXT NOT NULL, preconditions TEXT NOT NULL, effects TEXT NOT NULL,
|
|
142676
|
+
cost REAL DEFAULT 1.0, estimated_duration_ms INTEGER,
|
|
142677
|
+
success_rate REAL DEFAULT 1.0, execution_count INTEGER DEFAULT 0,
|
|
142678
|
+
category TEXT NOT NULL, qe_domain TEXT,
|
|
142679
|
+
created_at TEXT DEFAULT (datetime('now')), updated_at TEXT DEFAULT (datetime('now'))
|
|
142680
|
+
)`,
|
|
142681
|
+
`CREATE TABLE IF NOT EXISTS routing_outcomes (
|
|
142682
|
+
id TEXT PRIMARY KEY, task_json TEXT NOT NULL, decision_json TEXT NOT NULL,
|
|
142683
|
+
used_agent TEXT NOT NULL, followed_recommendation INTEGER NOT NULL,
|
|
142684
|
+
success INTEGER NOT NULL, quality_score REAL NOT NULL,
|
|
142685
|
+
duration_ms REAL NOT NULL, error TEXT,
|
|
142686
|
+
created_at TEXT DEFAULT (datetime('now'))
|
|
142687
|
+
)`,
|
|
142688
|
+
// --- Tier 2: Additional tables ---
|
|
142689
|
+
`CREATE TABLE IF NOT EXISTS goap_goals (
|
|
142690
|
+
id TEXT PRIMARY KEY, name TEXT NOT NULL, description TEXT,
|
|
142691
|
+
conditions TEXT NOT NULL, priority INTEGER DEFAULT 3,
|
|
142692
|
+
qe_domain TEXT, created_at TEXT DEFAULT (datetime('now'))
|
|
142693
|
+
)`,
|
|
142694
|
+
`CREATE TABLE IF NOT EXISTS goap_plans (
|
|
142695
|
+
id TEXT PRIMARY KEY, goal_id TEXT, initial_state TEXT NOT NULL,
|
|
142696
|
+
goal_state TEXT NOT NULL, action_sequence TEXT NOT NULL,
|
|
142697
|
+
total_cost REAL, estimated_duration_ms INTEGER,
|
|
142698
|
+
status TEXT DEFAULT 'pending', reused_from TEXT, similarity_score REAL,
|
|
142699
|
+
created_at TEXT DEFAULT (datetime('now')), executed_at TEXT, completed_at TEXT,
|
|
142700
|
+
FOREIGN KEY (goal_id) REFERENCES goap_goals(id)
|
|
142701
|
+
)`,
|
|
142702
|
+
`CREATE TABLE IF NOT EXISTS goap_plan_signatures (
|
|
142703
|
+
id TEXT PRIMARY KEY, plan_id TEXT NOT NULL UNIQUE,
|
|
142704
|
+
goal_hash TEXT NOT NULL, state_vector TEXT NOT NULL,
|
|
142705
|
+
action_sequence TEXT NOT NULL, total_cost REAL NOT NULL,
|
|
142706
|
+
success_rate REAL DEFAULT 1.0, usage_count INTEGER DEFAULT 0,
|
|
142707
|
+
created_at TEXT DEFAULT (datetime('now'))
|
|
142708
|
+
)`,
|
|
142709
|
+
`CREATE TABLE IF NOT EXISTS qe_pattern_usage (
|
|
142710
|
+
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
142711
|
+
pattern_id TEXT NOT NULL, success INTEGER NOT NULL,
|
|
142712
|
+
metrics_json TEXT, feedback TEXT,
|
|
142713
|
+
created_at TEXT DEFAULT (datetime('now'))
|
|
142714
|
+
)`,
|
|
142715
|
+
`CREATE TABLE IF NOT EXISTS pattern_evolution_events (
|
|
142716
|
+
id TEXT PRIMARY KEY, pattern_id TEXT NOT NULL,
|
|
142717
|
+
event_type TEXT NOT NULL, details TEXT,
|
|
142718
|
+
created_at TEXT DEFAULT (datetime('now')),
|
|
142719
|
+
FOREIGN KEY (pattern_id) REFERENCES qe_patterns(id) ON DELETE CASCADE
|
|
142720
|
+
)`,
|
|
142721
|
+
`CREATE TABLE IF NOT EXISTS pattern_relationships (
|
|
142722
|
+
id TEXT PRIMARY KEY, source_pattern_id TEXT NOT NULL,
|
|
142723
|
+
target_pattern_id TEXT NOT NULL, relationship_type TEXT NOT NULL,
|
|
142724
|
+
similarity_score REAL, created_at TEXT DEFAULT (datetime('now')),
|
|
142725
|
+
FOREIGN KEY (source_pattern_id) REFERENCES qe_patterns(id) ON DELETE CASCADE
|
|
142726
|
+
)`,
|
|
142727
|
+
`CREATE TABLE IF NOT EXISTS pattern_versions (
|
|
142728
|
+
id TEXT PRIMARY KEY, pattern_id TEXT NOT NULL,
|
|
142729
|
+
version INTEGER NOT NULL, embedding BLOB NOT NULL,
|
|
142730
|
+
embedding_dimension INTEGER NOT NULL, changes TEXT,
|
|
142731
|
+
quality_score REAL DEFAULT 0.5, success_rate REAL DEFAULT 0.5,
|
|
142732
|
+
trigger TEXT DEFAULT 'manual',
|
|
142733
|
+
created_at TEXT DEFAULT (datetime('now')),
|
|
142734
|
+
FOREIGN KEY (pattern_id) REFERENCES qe_patterns(id) ON DELETE CASCADE
|
|
142735
|
+
)`,
|
|
142736
|
+
`CREATE TABLE IF NOT EXISTS vectors (
|
|
142737
|
+
id TEXT PRIMARY KEY, namespace TEXT NOT NULL DEFAULT 'default',
|
|
142738
|
+
embedding BLOB NOT NULL, dimensions INTEGER NOT NULL, metadata TEXT,
|
|
142739
|
+
created_at TEXT DEFAULT (datetime('now')), updated_at TEXT DEFAULT (datetime('now'))
|
|
142740
|
+
)`,
|
|
142741
|
+
`CREATE TABLE IF NOT EXISTS experience_applications (
|
|
142742
|
+
id TEXT PRIMARY KEY, experience_id TEXT NOT NULL,
|
|
142743
|
+
task TEXT NOT NULL, success INTEGER NOT NULL,
|
|
142744
|
+
tokens_saved INTEGER DEFAULT 0, feedback TEXT,
|
|
142745
|
+
applied_at TEXT DEFAULT (datetime('now')),
|
|
142746
|
+
FOREIGN KEY (experience_id) REFERENCES captured_experiences(id) ON DELETE CASCADE
|
|
142747
|
+
)`,
|
|
142748
|
+
`CREATE TABLE IF NOT EXISTS execution_results (
|
|
142749
|
+
id TEXT PRIMARY KEY, plan_id TEXT NOT NULL,
|
|
142750
|
+
status TEXT NOT NULL, steps_completed INTEGER DEFAULT 0,
|
|
142751
|
+
steps_failed INTEGER DEFAULT 0, total_duration_ms INTEGER DEFAULT 0,
|
|
142752
|
+
final_world_state TEXT, error_message TEXT,
|
|
142753
|
+
created_at TEXT DEFAULT (datetime('now'))
|
|
142754
|
+
)`,
|
|
142755
|
+
`CREATE TABLE IF NOT EXISTS executed_steps (
|
|
142756
|
+
id TEXT PRIMARY KEY, execution_id TEXT NOT NULL,
|
|
142757
|
+
plan_id TEXT NOT NULL, action_id TEXT NOT NULL,
|
|
142758
|
+
step_order INTEGER NOT NULL, status TEXT NOT NULL,
|
|
142759
|
+
retries INTEGER DEFAULT 0, started_at TEXT NOT NULL,
|
|
142760
|
+
completed_at TEXT, duration_ms INTEGER, agent_id TEXT,
|
|
142761
|
+
agent_output TEXT, world_state_before TEXT, world_state_after TEXT,
|
|
142762
|
+
error_message TEXT,
|
|
142763
|
+
FOREIGN KEY (execution_id) REFERENCES execution_results(id)
|
|
142764
|
+
)`
|
|
142765
|
+
];
|
|
142766
|
+
function ensureAllBrainTables(db) {
|
|
142767
|
+
for (const ddl of BRAIN_TABLE_DDL) {
|
|
142768
|
+
db.exec(ddl);
|
|
142769
|
+
}
|
|
142770
|
+
}
|
|
142771
|
+
|
|
142772
|
+
// src/integrations/ruvector/brain-shared.ts
|
|
142773
|
+
var PK_COLUMNS = {
|
|
142774
|
+
qe_pattern_embeddings: "pattern_id"
|
|
142775
|
+
};
|
|
142776
|
+
var CONFIDENCE_COLUMNS = {
|
|
142777
|
+
qe_patterns: "confidence",
|
|
142778
|
+
rl_q_values: "q_value",
|
|
142779
|
+
dream_insights: "confidence_score",
|
|
142780
|
+
captured_experiences: "quality",
|
|
142781
|
+
sona_patterns: "confidence"
|
|
142782
|
+
};
|
|
142783
|
+
var TIMESTAMP_COLUMNS = {
|
|
142784
|
+
qe_patterns: "updated_at",
|
|
142785
|
+
rl_q_values: "updated_at",
|
|
142786
|
+
sona_patterns: "updated_at",
|
|
142787
|
+
goap_actions: "updated_at",
|
|
142788
|
+
concept_edges: "updated_at"
|
|
142789
|
+
};
|
|
142790
|
+
var TABLE_CONFIGS = [
|
|
142791
|
+
{ tableName: "qe_patterns", fileName: "patterns.jsonl", domainColumn: "qe_domain" },
|
|
142792
|
+
{ tableName: "rl_q_values", fileName: "q-values.jsonl", domainColumn: "domain" },
|
|
142793
|
+
{ tableName: "dream_cycles", fileName: "dream-cycles.jsonl" },
|
|
142794
|
+
{ tableName: "dream_insights", fileName: "dream-insights.jsonl" },
|
|
142795
|
+
{ tableName: "witness_chain", fileName: "witness-chain.jsonl", dedupColumns: ["action_hash", "timestamp"] },
|
|
142796
|
+
{ tableName: "qe_pattern_embeddings", fileName: "pattern-embeddings.jsonl", blobColumns: ["embedding"] },
|
|
142797
|
+
{ tableName: "captured_experiences", fileName: "captured-experiences.jsonl", domainColumn: "domain", blobColumns: ["embedding"] },
|
|
142798
|
+
{ tableName: "sona_patterns", fileName: "sona-patterns.jsonl", domainColumn: "domain", blobColumns: ["state_embedding", "action_embedding"] },
|
|
142799
|
+
{ tableName: "qe_trajectories", fileName: "trajectories.jsonl", domainColumn: "domain" },
|
|
142800
|
+
{ tableName: "trajectory_steps", fileName: "trajectory-steps.jsonl" },
|
|
142801
|
+
{ tableName: "concept_nodes", fileName: "concept-nodes.jsonl", blobColumns: ["embedding"] },
|
|
142802
|
+
{ tableName: "concept_edges", fileName: "concept-edges.jsonl" },
|
|
142803
|
+
{ tableName: "goap_actions", fileName: "goap-actions.jsonl", domainColumn: "qe_domain" },
|
|
142804
|
+
{ tableName: "routing_outcomes", fileName: "routing-outcomes.jsonl" },
|
|
142805
|
+
{ tableName: "goap_goals", fileName: "goap-goals.jsonl", domainColumn: "qe_domain" },
|
|
142806
|
+
{ tableName: "goap_plans", fileName: "goap-plans.jsonl" },
|
|
142807
|
+
{ tableName: "goap_plan_signatures", fileName: "goap-plan-signatures.jsonl" },
|
|
142808
|
+
{ tableName: "qe_pattern_usage", fileName: "pattern-usage.jsonl", dedupColumns: ["pattern_id", "created_at"] },
|
|
142809
|
+
{ tableName: "pattern_evolution_events", fileName: "pattern-evolution.jsonl" },
|
|
142810
|
+
{ tableName: "pattern_relationships", fileName: "pattern-relationships.jsonl" },
|
|
142811
|
+
{ tableName: "pattern_versions", fileName: "pattern-versions.jsonl", blobColumns: ["embedding"] },
|
|
142812
|
+
{ tableName: "vectors", fileName: "vectors.jsonl", blobColumns: ["embedding"] },
|
|
142813
|
+
{ tableName: "experience_applications", fileName: "experience-applications.jsonl" },
|
|
142814
|
+
{ tableName: "execution_results", fileName: "execution-results.jsonl" },
|
|
142815
|
+
{ tableName: "executed_steps", fileName: "executed-steps.jsonl" }
|
|
142816
|
+
];
|
|
142817
|
+
var TABLE_BLOB_COLUMNS = Object.fromEntries(
|
|
142818
|
+
TABLE_CONFIGS.filter((c70) => c70.blobColumns && c70.blobColumns.length > 0).map((c70) => [c70.tableName, c70.blobColumns])
|
|
142819
|
+
);
|
|
142820
|
+
function serializeRowBlobs(row, blobColumns) {
|
|
142821
|
+
const result = { ...row };
|
|
142822
|
+
for (const col of blobColumns) {
|
|
142823
|
+
if (result[col] instanceof Buffer) {
|
|
142824
|
+
result[`_${col}_b64`] = result[col].toString("base64");
|
|
142825
|
+
delete result[col];
|
|
142826
|
+
}
|
|
142827
|
+
}
|
|
142828
|
+
return result;
|
|
142401
142829
|
}
|
|
142402
|
-
function
|
|
142403
|
-
const
|
|
142404
|
-
const
|
|
142405
|
-
|
|
142406
|
-
|
|
142407
|
-
|
|
142408
|
-
|
|
142409
|
-
hashes.push(sha2562(content));
|
|
142410
|
-
} else {
|
|
142411
|
-
hashes.push(sha2562(""));
|
|
142830
|
+
function deserializeRowBlobs(row, blobColumns) {
|
|
142831
|
+
const result = { ...row };
|
|
142832
|
+
for (const col of blobColumns) {
|
|
142833
|
+
const b64Key = `_${col}_b64`;
|
|
142834
|
+
if (typeof result[b64Key] === "string") {
|
|
142835
|
+
result[col] = Buffer.from(result[b64Key], "base64");
|
|
142836
|
+
delete result[b64Key];
|
|
142412
142837
|
}
|
|
142413
142838
|
}
|
|
142414
|
-
return
|
|
142839
|
+
return result;
|
|
142840
|
+
}
|
|
142841
|
+
function sha2562(data) {
|
|
142842
|
+
return createHash5("sha256").update(data, "utf-8").digest("hex");
|
|
142415
142843
|
}
|
|
142416
142844
|
function tableExists(db, name) {
|
|
142417
142845
|
const row = db.prepare(
|
|
@@ -142432,546 +142860,303 @@ function queryAll(db, table, whereClause, params) {
|
|
|
142432
142860
|
const stmt = db.prepare(sql);
|
|
142433
142861
|
return params && params.length > 0 ? stmt.all(...params) : stmt.all();
|
|
142434
142862
|
}
|
|
142863
|
+
function* queryIterator(db, table, whereClause, params) {
|
|
142864
|
+
if (!tableExists(db, table)) return;
|
|
142865
|
+
const sql = `SELECT * FROM ${table}${whereClause ? ` WHERE ${whereClause}` : ""}`;
|
|
142866
|
+
const stmt = db.prepare(sql);
|
|
142867
|
+
const iter = params && params.length > 0 ? stmt.iterate(...params) : stmt.iterate();
|
|
142868
|
+
for (const row of iter) {
|
|
142869
|
+
yield row;
|
|
142870
|
+
}
|
|
142871
|
+
}
|
|
142872
|
+
function domainFilterForColumn(domains, columnName) {
|
|
142873
|
+
if (!domains || domains.length === 0) return [void 0, []];
|
|
142874
|
+
const placeholders = domains.map(() => "?").join(", ");
|
|
142875
|
+
return [`${columnName} IN (${placeholders})`, [...domains]];
|
|
142876
|
+
}
|
|
142435
142877
|
function writeJsonl(filePath, rows) {
|
|
142436
142878
|
const lines = rows.map((r54) => JSON.stringify(r54));
|
|
142437
142879
|
writeFileSync29(filePath, lines.join("\n") + (lines.length > 0 ? "\n" : ""), "utf-8");
|
|
142438
142880
|
}
|
|
142439
|
-
function
|
|
142881
|
+
function writeJsonlStreaming(filePath, rows, transform) {
|
|
142882
|
+
const fd = openSync(filePath, "w");
|
|
142883
|
+
let count = 0;
|
|
142884
|
+
try {
|
|
142885
|
+
for (const row of rows) {
|
|
142886
|
+
const r54 = transform ? transform(row) : row;
|
|
142887
|
+
writeSync(fd, JSON.stringify(r54) + "\n");
|
|
142888
|
+
count++;
|
|
142889
|
+
}
|
|
142890
|
+
} finally {
|
|
142891
|
+
closeSync(fd);
|
|
142892
|
+
}
|
|
142893
|
+
return count;
|
|
142894
|
+
}
|
|
142895
|
+
function readJsonl(filePath, parser = (line) => JSON.parse(line)) {
|
|
142440
142896
|
if (!existsSync46(filePath)) return [];
|
|
142441
142897
|
const content = readFileSync39(filePath, "utf-8").trim();
|
|
142442
142898
|
if (content === "") return [];
|
|
142443
|
-
return content.split("\n").map(
|
|
142444
|
-
}
|
|
142445
|
-
function
|
|
142446
|
-
|
|
142447
|
-
const
|
|
142448
|
-
|
|
142899
|
+
return content.split("\n").map(parser);
|
|
142900
|
+
}
|
|
142901
|
+
function dynamicInsert(db, tableName, row) {
|
|
142902
|
+
const keys = Object.keys(row);
|
|
142903
|
+
const cols = keys.join(", ");
|
|
142904
|
+
const placeholders = keys.map(() => "?").join(", ");
|
|
142905
|
+
db.prepare(`INSERT INTO ${tableName} (${cols}) VALUES (${placeholders})`).run(
|
|
142906
|
+
...keys.map((k68) => row[k68] ?? null)
|
|
142907
|
+
);
|
|
142449
142908
|
}
|
|
142450
|
-
function
|
|
142451
|
-
const
|
|
142452
|
-
if (
|
|
142453
|
-
|
|
142454
|
-
}
|
|
142455
|
-
|
|
142456
|
-
|
|
142457
|
-
|
|
142458
|
-
const domainSet = /* @__PURE__ */ new Set();
|
|
142459
|
-
for (const p74 of patterns) {
|
|
142460
|
-
if (p74.qe_domain) domainSet.add(p74.qe_domain);
|
|
142461
|
-
}
|
|
142462
|
-
let qValueCount = 0;
|
|
142463
|
-
if (options.includeQValues !== false) {
|
|
142464
|
-
const [qWhere, qParams] = options.domains && options.domains.length > 0 ? [`domain IN (${options.domains.map(() => "?").join(", ")})`, [...options.domains]] : [void 0, []];
|
|
142465
|
-
const qValues = queryAll(db, "rl_q_values", qWhere, qParams);
|
|
142466
|
-
writeJsonl(join51(outDir, "q-values.jsonl"), qValues);
|
|
142467
|
-
qValueCount = qValues.length;
|
|
142468
|
-
} else {
|
|
142469
|
-
writeJsonl(join51(outDir, "q-values.jsonl"), []);
|
|
142470
|
-
}
|
|
142471
|
-
let dreamInsightCount = 0;
|
|
142472
|
-
if (options.includeDreamInsights !== false) {
|
|
142473
|
-
const insights = queryAll(db, "dream_insights");
|
|
142474
|
-
writeJsonl(join51(outDir, "dream-insights.jsonl"), insights);
|
|
142475
|
-
dreamInsightCount = insights.length;
|
|
142476
|
-
} else {
|
|
142477
|
-
writeJsonl(join51(outDir, "dream-insights.jsonl"), []);
|
|
142478
|
-
}
|
|
142479
|
-
let witnessChainLength = 0;
|
|
142480
|
-
if (options.includeWitnessChain !== false) {
|
|
142481
|
-
const chain = queryAll(db, "witness_chain");
|
|
142482
|
-
writeJsonl(join51(outDir, "witness-chain.jsonl"), chain);
|
|
142483
|
-
witnessChainLength = chain.length;
|
|
142484
|
-
} else {
|
|
142485
|
-
writeJsonl(join51(outDir, "witness-chain.jsonl"), []);
|
|
142486
|
-
}
|
|
142487
|
-
let vectorCount = 0;
|
|
142488
|
-
if (options.includeVectors !== false) {
|
|
142489
|
-
vectorCount = countRows(db, "vectors");
|
|
142490
|
-
}
|
|
142491
|
-
const checksum = computeChecksum(outDir);
|
|
142492
|
-
const manifest = {
|
|
142493
|
-
version: "1.0",
|
|
142494
|
-
exportedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
142495
|
-
sourceDb: sourceDbLabel,
|
|
142496
|
-
stats: {
|
|
142497
|
-
patternCount: patterns.length,
|
|
142498
|
-
vectorCount,
|
|
142499
|
-
qValueCount,
|
|
142500
|
-
dreamInsightCount,
|
|
142501
|
-
witnessChainLength
|
|
142502
|
-
},
|
|
142503
|
-
domains: [...domainSet].sort(),
|
|
142504
|
-
checksum
|
|
142505
|
-
};
|
|
142506
|
-
writeFileSync29(join51(outDir, "manifest.json"), JSON.stringify(manifest, null, 2), "utf-8");
|
|
142507
|
-
return manifest;
|
|
142909
|
+
function dynamicUpdate(db, tableName, row, idColumn) {
|
|
142910
|
+
const keys = Object.keys(row).filter((k68) => k68 !== idColumn);
|
|
142911
|
+
if (keys.length === 0) return;
|
|
142912
|
+
const sets = keys.map((k68) => `${k68} = ?`).join(", ");
|
|
142913
|
+
db.prepare(`UPDATE ${tableName} SET ${sets} WHERE ${idColumn} = ?`).run(
|
|
142914
|
+
...keys.map((k68) => row[k68] ?? null),
|
|
142915
|
+
row[idColumn]
|
|
142916
|
+
);
|
|
142508
142917
|
}
|
|
142509
|
-
function
|
|
142510
|
-
|
|
142511
|
-
|
|
142512
|
-
|
|
142513
|
-
throw new Error(`Manifest not found at ${manifestPath}`);
|
|
142514
|
-
}
|
|
142515
|
-
const manifest = safeJsonParse(readFileSync39(manifestPath, "utf-8"));
|
|
142516
|
-
const actualChecksum = computeChecksum(dir);
|
|
142517
|
-
if (actualChecksum !== manifest.checksum) {
|
|
142518
|
-
throw new Error(
|
|
142519
|
-
`Checksum mismatch: expected ${manifest.checksum}, got ${actualChecksum}. The export may have been tampered with or corrupted.`
|
|
142520
|
-
);
|
|
142521
|
-
}
|
|
142522
|
-
let imported = 0;
|
|
142523
|
-
let skipped = 0;
|
|
142524
|
-
let conflicts = 0;
|
|
142525
|
-
if (options.dryRun) {
|
|
142526
|
-
const patterns2 = readJsonl(join51(dir, "patterns.jsonl"));
|
|
142527
|
-
const qValues2 = readJsonl(join51(dir, "q-values.jsonl"));
|
|
142528
|
-
const insights2 = readJsonl(join51(dir, "dream-insights.jsonl"));
|
|
142529
|
-
const chain2 = readJsonl(join51(dir, "witness-chain.jsonl"));
|
|
142530
|
-
return {
|
|
142531
|
-
imported: patterns2.length + qValues2.length + insights2.length + chain2.length,
|
|
142532
|
-
skipped: 0,
|
|
142533
|
-
conflicts: 0
|
|
142534
|
-
};
|
|
142535
|
-
}
|
|
142536
|
-
ensureTargetTables(db);
|
|
142537
|
-
const patterns = readJsonl(join51(dir, "patterns.jsonl"));
|
|
142538
|
-
for (const pattern of patterns) {
|
|
142539
|
-
const result = mergePattern(db, pattern, options.mergeStrategy);
|
|
142540
|
-
imported += result.imported;
|
|
142541
|
-
skipped += result.skipped;
|
|
142542
|
-
conflicts += result.conflicts;
|
|
142543
|
-
}
|
|
142544
|
-
const qValues = readJsonl(join51(dir, "q-values.jsonl"));
|
|
142545
|
-
for (const qv of qValues) {
|
|
142546
|
-
const result = mergeQValue(db, qv, options.mergeStrategy);
|
|
142547
|
-
imported += result.imported;
|
|
142548
|
-
skipped += result.skipped;
|
|
142549
|
-
conflicts += result.conflicts;
|
|
142550
|
-
}
|
|
142551
|
-
const insights = readJsonl(join51(dir, "dream-insights.jsonl"));
|
|
142552
|
-
for (const insight of insights) {
|
|
142553
|
-
const result = mergeDreamInsight(db, insight, options.mergeStrategy);
|
|
142554
|
-
imported += result.imported;
|
|
142555
|
-
skipped += result.skipped;
|
|
142556
|
-
conflicts += result.conflicts;
|
|
142557
|
-
}
|
|
142558
|
-
const chain = readJsonl(join51(dir, "witness-chain.jsonl"));
|
|
142559
|
-
for (const entry of chain) {
|
|
142560
|
-
const result = mergeWitnessEntry(db, entry, options.mergeStrategy);
|
|
142561
|
-
imported += result.imported;
|
|
142562
|
-
skipped += result.skipped;
|
|
142563
|
-
conflicts += result.conflicts;
|
|
142918
|
+
function mergeGenericRow(db, tableName, row, idColumn, strategy, timestampColumn, confidenceColumn) {
|
|
142919
|
+
if (!tableExists(db, tableName)) {
|
|
142920
|
+
dynamicInsert(db, tableName, row);
|
|
142921
|
+
return { imported: 1, skipped: 0, conflicts: 0 };
|
|
142564
142922
|
}
|
|
142565
|
-
|
|
142566
|
-
}
|
|
142567
|
-
function mergePattern(db, pattern, strategy) {
|
|
142568
|
-
const existing = tableExists(db, "qe_patterns") ? db.prepare("SELECT * FROM qe_patterns WHERE id = ?").get(pattern.id) : void 0;
|
|
142923
|
+
const existing = db.prepare(`SELECT * FROM ${tableName} WHERE ${idColumn} = ?`).get(row[idColumn]);
|
|
142569
142924
|
if (!existing) {
|
|
142570
|
-
|
|
142925
|
+
dynamicInsert(db, tableName, row);
|
|
142571
142926
|
return { imported: 1, skipped: 0, conflicts: 0 };
|
|
142572
142927
|
}
|
|
142573
142928
|
switch (strategy) {
|
|
142574
142929
|
case "skip-conflicts":
|
|
142575
142930
|
return { imported: 0, skipped: 1, conflicts: 1 };
|
|
142576
142931
|
case "latest-wins": {
|
|
142577
|
-
const
|
|
142578
|
-
const
|
|
142932
|
+
const ts = timestampColumn || "created_at";
|
|
142933
|
+
const existingTime = existing[ts] || "";
|
|
142934
|
+
const incomingTime = row[ts] || "";
|
|
142579
142935
|
if (incomingTime > existingTime) {
|
|
142580
|
-
|
|
142936
|
+
dynamicUpdate(db, tableName, row, idColumn);
|
|
142581
142937
|
return { imported: 1, skipped: 0, conflicts: 1 };
|
|
142582
142938
|
}
|
|
142583
142939
|
return { imported: 0, skipped: 1, conflicts: 1 };
|
|
142584
142940
|
}
|
|
142585
142941
|
case "highest-confidence": {
|
|
142586
|
-
const
|
|
142587
|
-
|
|
142588
|
-
|
|
142589
|
-
|
|
142590
|
-
|
|
142942
|
+
const cc = confidenceColumn || "confidence";
|
|
142943
|
+
if (typeof row[cc] === "number" && typeof existing[cc] === "number") {
|
|
142944
|
+
if (row[cc] > existing[cc]) {
|
|
142945
|
+
dynamicUpdate(db, tableName, row, idColumn);
|
|
142946
|
+
return { imported: 1, skipped: 0, conflicts: 1 };
|
|
142947
|
+
}
|
|
142591
142948
|
}
|
|
142592
142949
|
return { imported: 0, skipped: 1, conflicts: 1 };
|
|
142593
142950
|
}
|
|
142594
|
-
case "union":
|
|
142595
|
-
return { imported: 0, skipped: 1, conflicts: 1 };
|
|
142596
142951
|
default:
|
|
142597
142952
|
return { imported: 0, skipped: 1, conflicts: 1 };
|
|
142598
142953
|
}
|
|
142599
142954
|
}
|
|
142600
|
-
function
|
|
142601
|
-
|
|
142602
|
-
|
|
142603
|
-
insertQValue(db, qv);
|
|
142955
|
+
function mergeAppendOnlyRow(db, tableName, row, dedupColumns) {
|
|
142956
|
+
if (!tableExists(db, tableName)) {
|
|
142957
|
+
dynamicInsert(db, tableName, row);
|
|
142604
142958
|
return { imported: 1, skipped: 0, conflicts: 0 };
|
|
142605
142959
|
}
|
|
142606
|
-
|
|
142607
|
-
|
|
142608
|
-
|
|
142609
|
-
|
|
142610
|
-
|
|
142611
|
-
|
|
142612
|
-
|
|
142613
|
-
updateQValue(db, qv);
|
|
142614
|
-
return { imported: 1, skipped: 0, conflicts: 1 };
|
|
142615
|
-
}
|
|
142616
|
-
return { imported: 0, skipped: 1, conflicts: 1 };
|
|
142617
|
-
}
|
|
142618
|
-
case "highest-confidence": {
|
|
142619
|
-
if (qv.q_value > existing.q_value) {
|
|
142620
|
-
updateQValue(db, qv);
|
|
142621
|
-
return { imported: 1, skipped: 0, conflicts: 1 };
|
|
142622
|
-
}
|
|
142623
|
-
return { imported: 0, skipped: 1, conflicts: 1 };
|
|
142624
|
-
}
|
|
142625
|
-
case "union":
|
|
142626
|
-
return { imported: 0, skipped: 1, conflicts: 1 };
|
|
142627
|
-
default:
|
|
142628
|
-
return { imported: 0, skipped: 1, conflicts: 1 };
|
|
142960
|
+
const whereParts = dedupColumns.map((c70) => `${c70} = ?`);
|
|
142961
|
+
const params = dedupColumns.map((c70) => row[c70] ?? null);
|
|
142962
|
+
const existing = db.prepare(
|
|
142963
|
+
`SELECT 1 FROM ${tableName} WHERE ${whereParts.join(" AND ")} LIMIT 1`
|
|
142964
|
+
).get(...params);
|
|
142965
|
+
if (existing) {
|
|
142966
|
+
return { imported: 0, skipped: 1, conflicts: 1 };
|
|
142629
142967
|
}
|
|
142968
|
+
const insertRow = { ...row };
|
|
142969
|
+
delete insertRow.id;
|
|
142970
|
+
dynamicInsert(db, tableName, insertRow);
|
|
142971
|
+
return { imported: 1, skipped: 0, conflicts: 0 };
|
|
142630
142972
|
}
|
|
142631
|
-
function
|
|
142632
|
-
|
|
142633
|
-
|
|
142634
|
-
|
|
142635
|
-
|
|
142973
|
+
function ensureTargetTables(db) {
|
|
142974
|
+
ensureAllBrainTables(db);
|
|
142975
|
+
}
|
|
142976
|
+
|
|
142977
|
+
// src/integrations/ruvector/brain-exporter.ts
|
|
142978
|
+
var OPTIONAL_TABLE_FLAGS = {
|
|
142979
|
+
rl_q_values: "includeQValues",
|
|
142980
|
+
dream_insights: "includeDreamInsights",
|
|
142981
|
+
dream_cycles: "includeDreamInsights",
|
|
142982
|
+
witness_chain: "includeWitnessChain",
|
|
142983
|
+
vectors: "includeVectors"
|
|
142984
|
+
};
|
|
142985
|
+
function shouldExportTable(config, options) {
|
|
142986
|
+
const flag = OPTIONAL_TABLE_FLAGS[config.tableName];
|
|
142987
|
+
if (flag && options[flag] === false) return false;
|
|
142988
|
+
return true;
|
|
142989
|
+
}
|
|
142990
|
+
var STREAMING_THRESHOLD = 1e4;
|
|
142991
|
+
function exportTableRows(db, config, options, outDir) {
|
|
142992
|
+
if (!shouldExportTable(config, options)) {
|
|
142993
|
+
writeJsonl(join51(outDir, config.fileName), []);
|
|
142994
|
+
return { count: 0, rows: [] };
|
|
142636
142995
|
}
|
|
142637
|
-
|
|
142638
|
-
|
|
142639
|
-
|
|
142640
|
-
|
|
142641
|
-
|
|
142642
|
-
|
|
142643
|
-
|
|
142644
|
-
|
|
142645
|
-
|
|
142646
|
-
|
|
142647
|
-
|
|
142996
|
+
const [where, params] = config.domainColumn ? domainFilterForColumn(options.domains, config.domainColumn) : [void 0, []];
|
|
142997
|
+
const rowCount = countRows(db, config.tableName, where, params);
|
|
142998
|
+
if (rowCount >= STREAMING_THRESHOLD) {
|
|
142999
|
+
const blobCols = config.blobColumns;
|
|
143000
|
+
const transform = blobCols && blobCols.length > 0 ? (r54) => serializeRowBlobs(r54, blobCols) : void 0;
|
|
143001
|
+
const count = writeJsonlStreaming(
|
|
143002
|
+
join51(outDir, config.fileName),
|
|
143003
|
+
queryIterator(db, config.tableName, where, params),
|
|
143004
|
+
transform
|
|
143005
|
+
);
|
|
143006
|
+
return { count };
|
|
143007
|
+
}
|
|
143008
|
+
let rows = queryAll(db, config.tableName, where, params);
|
|
143009
|
+
if (config.blobColumns && config.blobColumns.length > 0) {
|
|
143010
|
+
rows = rows.map((r54) => serializeRowBlobs(r54, config.blobColumns));
|
|
143011
|
+
}
|
|
143012
|
+
writeJsonl(join51(outDir, config.fileName), rows);
|
|
143013
|
+
return { count: rows.length, rows };
|
|
143014
|
+
}
|
|
143015
|
+
function computeChecksum(dir) {
|
|
143016
|
+
const hashes = [];
|
|
143017
|
+
for (const config of TABLE_CONFIGS) {
|
|
143018
|
+
const filePath = join51(dir, config.fileName);
|
|
143019
|
+
if (existsSync47(filePath)) {
|
|
143020
|
+
hashes.push(sha2562(readFileSync40(filePath, "utf-8")));
|
|
143021
|
+
} else {
|
|
143022
|
+
hashes.push(sha2562(""));
|
|
142648
143023
|
}
|
|
142649
|
-
|
|
142650
|
-
|
|
142651
|
-
|
|
142652
|
-
|
|
142653
|
-
|
|
142654
|
-
|
|
143024
|
+
}
|
|
143025
|
+
return sha2562(hashes.join(":"));
|
|
143026
|
+
}
|
|
143027
|
+
function exportBrain(db, options, sourceDbLabel = "memory.db") {
|
|
143028
|
+
const outDir = resolve9(options.outputPath);
|
|
143029
|
+
if (!existsSync47(outDir)) {
|
|
143030
|
+
mkdirSync29(outDir, { recursive: true });
|
|
143031
|
+
}
|
|
143032
|
+
let totalRecords = 0;
|
|
143033
|
+
const tableRecordCounts = {};
|
|
143034
|
+
const domainSet = /* @__PURE__ */ new Set();
|
|
143035
|
+
for (const config of TABLE_CONFIGS) {
|
|
143036
|
+
const result = exportTableRows(db, config, options, outDir);
|
|
143037
|
+
tableRecordCounts[config.tableName] = result.count;
|
|
143038
|
+
totalRecords += result.count;
|
|
143039
|
+
if (config.tableName === "qe_patterns") {
|
|
143040
|
+
if (result.rows) {
|
|
143041
|
+
for (const p74 of result.rows) {
|
|
143042
|
+
if (p74.qe_domain) domainSet.add(p74.qe_domain);
|
|
143043
|
+
}
|
|
143044
|
+
} else if (result.count > 0) {
|
|
143045
|
+
const [where, params] = config.domainColumn ? domainFilterForColumn(options.domains, config.domainColumn) : [void 0, []];
|
|
143046
|
+
const whereClause = where ? `WHERE ${where} AND qe_domain IS NOT NULL` : "WHERE qe_domain IS NOT NULL";
|
|
143047
|
+
const domainSql = `SELECT DISTINCT qe_domain FROM qe_patterns ${whereClause}`;
|
|
143048
|
+
try {
|
|
143049
|
+
const domainRows = db.prepare(domainSql).all(...params || []);
|
|
143050
|
+
for (const r54 of domainRows) domainSet.add(r54.qe_domain);
|
|
143051
|
+
} catch {
|
|
143052
|
+
}
|
|
142655
143053
|
}
|
|
142656
|
-
return { imported: 0, skipped: 1, conflicts: 1 };
|
|
142657
143054
|
}
|
|
142658
|
-
case "union":
|
|
142659
|
-
return { imported: 0, skipped: 1, conflicts: 1 };
|
|
142660
|
-
default:
|
|
142661
|
-
return { imported: 0, skipped: 1, conflicts: 1 };
|
|
142662
143055
|
}
|
|
143056
|
+
const vectorCount = options.includeVectors !== false ? countRows(db, "vectors") : 0;
|
|
143057
|
+
const checksum = computeChecksum(outDir);
|
|
143058
|
+
const manifest = {
|
|
143059
|
+
version: "3.0",
|
|
143060
|
+
exportedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
143061
|
+
sourceDb: sourceDbLabel,
|
|
143062
|
+
stats: {
|
|
143063
|
+
patternCount: tableRecordCounts["qe_patterns"] || 0,
|
|
143064
|
+
vectorCount,
|
|
143065
|
+
qValueCount: tableRecordCounts["rl_q_values"] || 0,
|
|
143066
|
+
dreamInsightCount: tableRecordCounts["dream_insights"] || 0,
|
|
143067
|
+
witnessChainLength: tableRecordCounts["witness_chain"] || 0,
|
|
143068
|
+
totalRecords
|
|
143069
|
+
},
|
|
143070
|
+
domains: [...domainSet].sort(),
|
|
143071
|
+
checksum,
|
|
143072
|
+
tableRecordCounts
|
|
143073
|
+
};
|
|
143074
|
+
writeFileSync30(join51(outDir, "manifest.json"), JSON.stringify(manifest, null, 2), "utf-8");
|
|
143075
|
+
return manifest;
|
|
142663
143076
|
}
|
|
142664
|
-
|
|
142665
|
-
|
|
142666
|
-
|
|
142667
|
-
|
|
142668
|
-
|
|
142669
|
-
|
|
142670
|
-
|
|
143077
|
+
var V1_LEGACY_TABLES = /* @__PURE__ */ new Set([
|
|
143078
|
+
"qe_patterns",
|
|
143079
|
+
"rl_q_values",
|
|
143080
|
+
"dream_insights",
|
|
143081
|
+
"witness_chain"
|
|
143082
|
+
]);
|
|
143083
|
+
function tablesToImport(version2) {
|
|
143084
|
+
if (version2 === "1.0") {
|
|
143085
|
+
return TABLE_CONFIGS.filter((c70) => V1_LEGACY_TABLES.has(c70.tableName));
|
|
142671
143086
|
}
|
|
142672
|
-
|
|
142673
|
-
|
|
142674
|
-
|
|
142675
|
-
|
|
142676
|
-
|
|
142677
|
-
id, pattern_type, qe_domain, domain, name, description,
|
|
142678
|
-
confidence, usage_count, success_rate, quality_score, tier,
|
|
142679
|
-
template_json, context_json, created_at, updated_at, last_used_at,
|
|
142680
|
-
successful_uses, tokens_used, input_tokens, output_tokens,
|
|
142681
|
-
latency_ms, reusable, reuse_count, average_token_savings, total_tokens_saved
|
|
142682
|
-
) VALUES (
|
|
142683
|
-
?, ?, ?, ?, ?, ?,
|
|
142684
|
-
?, ?, ?, ?, ?,
|
|
142685
|
-
?, ?, ?, ?, ?,
|
|
142686
|
-
?, ?, ?, ?,
|
|
142687
|
-
?, ?, ?, ?, ?
|
|
142688
|
-
)
|
|
142689
|
-
`).run(
|
|
142690
|
-
p74.id,
|
|
142691
|
-
p74.pattern_type,
|
|
142692
|
-
p74.qe_domain,
|
|
142693
|
-
p74.domain,
|
|
142694
|
-
p74.name,
|
|
142695
|
-
p74.description ?? null,
|
|
142696
|
-
p74.confidence ?? 0.5,
|
|
142697
|
-
p74.usage_count ?? 0,
|
|
142698
|
-
p74.success_rate ?? 0,
|
|
142699
|
-
p74.quality_score ?? 0,
|
|
142700
|
-
p74.tier ?? "short-term",
|
|
142701
|
-
p74.template_json ?? null,
|
|
142702
|
-
p74.context_json ?? null,
|
|
142703
|
-
p74.created_at ?? null,
|
|
142704
|
-
p74.updated_at ?? null,
|
|
142705
|
-
p74.last_used_at ?? null,
|
|
142706
|
-
p74.successful_uses ?? 0,
|
|
142707
|
-
p74.tokens_used ?? null,
|
|
142708
|
-
p74.input_tokens ?? null,
|
|
142709
|
-
p74.output_tokens ?? null,
|
|
142710
|
-
p74.latency_ms ?? null,
|
|
142711
|
-
p74.reusable ?? 0,
|
|
142712
|
-
p74.reuse_count ?? 0,
|
|
142713
|
-
p74.average_token_savings ?? 0,
|
|
142714
|
-
p74.total_tokens_saved ?? null
|
|
142715
|
-
);
|
|
142716
|
-
}
|
|
142717
|
-
function updatePattern(db, p74) {
|
|
142718
|
-
db.prepare(`
|
|
142719
|
-
UPDATE qe_patterns SET
|
|
142720
|
-
pattern_type = ?, qe_domain = ?, domain = ?, name = ?, description = ?,
|
|
142721
|
-
confidence = ?, usage_count = ?, success_rate = ?, quality_score = ?, tier = ?,
|
|
142722
|
-
template_json = ?, context_json = ?, updated_at = ?, last_used_at = ?,
|
|
142723
|
-
successful_uses = ?, tokens_used = ?, input_tokens = ?, output_tokens = ?,
|
|
142724
|
-
latency_ms = ?, reusable = ?, reuse_count = ?, average_token_savings = ?, total_tokens_saved = ?
|
|
142725
|
-
WHERE id = ?
|
|
142726
|
-
`).run(
|
|
142727
|
-
p74.pattern_type,
|
|
142728
|
-
p74.qe_domain,
|
|
142729
|
-
p74.domain,
|
|
142730
|
-
p74.name,
|
|
142731
|
-
p74.description ?? null,
|
|
142732
|
-
p74.confidence ?? 0.5,
|
|
142733
|
-
p74.usage_count ?? 0,
|
|
142734
|
-
p74.success_rate ?? 0,
|
|
142735
|
-
p74.quality_score ?? 0,
|
|
142736
|
-
p74.tier ?? "short-term",
|
|
142737
|
-
p74.template_json ?? null,
|
|
142738
|
-
p74.context_json ?? null,
|
|
142739
|
-
p74.updated_at ?? null,
|
|
142740
|
-
p74.last_used_at ?? null,
|
|
142741
|
-
p74.successful_uses ?? 0,
|
|
142742
|
-
p74.tokens_used ?? null,
|
|
142743
|
-
p74.input_tokens ?? null,
|
|
142744
|
-
p74.output_tokens ?? null,
|
|
142745
|
-
p74.latency_ms ?? null,
|
|
142746
|
-
p74.reusable ?? 0,
|
|
142747
|
-
p74.reuse_count ?? 0,
|
|
142748
|
-
p74.average_token_savings ?? 0,
|
|
142749
|
-
p74.total_tokens_saved ?? null,
|
|
142750
|
-
p74.id
|
|
142751
|
-
);
|
|
142752
|
-
}
|
|
142753
|
-
function insertQValue(db, qv) {
|
|
142754
|
-
db.prepare(`
|
|
142755
|
-
INSERT INTO rl_q_values (id, algorithm, agent_id, state_key, action_key, q_value, visits, last_reward, domain, created_at, updated_at)
|
|
142756
|
-
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
142757
|
-
`).run(
|
|
142758
|
-
qv.id,
|
|
142759
|
-
qv.algorithm,
|
|
142760
|
-
qv.agent_id,
|
|
142761
|
-
qv.state_key,
|
|
142762
|
-
qv.action_key,
|
|
142763
|
-
qv.q_value,
|
|
142764
|
-
qv.visits,
|
|
142765
|
-
qv.last_reward ?? null,
|
|
142766
|
-
qv.domain ?? null,
|
|
142767
|
-
qv.created_at ?? null,
|
|
142768
|
-
qv.updated_at ?? null
|
|
142769
|
-
);
|
|
142770
|
-
}
|
|
142771
|
-
function updateQValue(db, qv) {
|
|
142772
|
-
db.prepare(`
|
|
142773
|
-
UPDATE rl_q_values SET
|
|
142774
|
-
algorithm = ?, agent_id = ?, state_key = ?, action_key = ?,
|
|
142775
|
-
q_value = ?, visits = ?, last_reward = ?, domain = ?, updated_at = ?
|
|
142776
|
-
WHERE id = ?
|
|
142777
|
-
`).run(
|
|
142778
|
-
qv.algorithm,
|
|
142779
|
-
qv.agent_id,
|
|
142780
|
-
qv.state_key,
|
|
142781
|
-
qv.action_key,
|
|
142782
|
-
qv.q_value,
|
|
142783
|
-
qv.visits,
|
|
142784
|
-
qv.last_reward ?? null,
|
|
142785
|
-
qv.domain ?? null,
|
|
142786
|
-
qv.updated_at ?? null,
|
|
142787
|
-
qv.id
|
|
142788
|
-
);
|
|
142789
|
-
}
|
|
142790
|
-
function insertDreamInsight(db, ins) {
|
|
142791
|
-
db.prepare(`
|
|
142792
|
-
INSERT INTO dream_insights (
|
|
142793
|
-
id, cycle_id, insight_type, source_concepts, description,
|
|
142794
|
-
novelty_score, confidence_score, actionable, applied,
|
|
142795
|
-
suggested_action, pattern_id, created_at
|
|
142796
|
-
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
142797
|
-
`).run(
|
|
142798
|
-
ins.id,
|
|
142799
|
-
ins.cycle_id,
|
|
142800
|
-
ins.insight_type,
|
|
142801
|
-
ins.source_concepts,
|
|
142802
|
-
ins.description,
|
|
142803
|
-
ins.novelty_score ?? 0.5,
|
|
142804
|
-
ins.confidence_score ?? 0.5,
|
|
142805
|
-
ins.actionable ?? 0,
|
|
142806
|
-
ins.applied ?? 0,
|
|
142807
|
-
ins.suggested_action ?? null,
|
|
142808
|
-
ins.pattern_id ?? null,
|
|
142809
|
-
ins.created_at ?? null
|
|
142810
|
-
);
|
|
142811
|
-
}
|
|
142812
|
-
function updateDreamInsight(db, ins) {
|
|
142813
|
-
db.prepare(`
|
|
142814
|
-
UPDATE dream_insights SET
|
|
142815
|
-
cycle_id = ?, insight_type = ?, source_concepts = ?, description = ?,
|
|
142816
|
-
novelty_score = ?, confidence_score = ?, actionable = ?, applied = ?,
|
|
142817
|
-
suggested_action = ?, pattern_id = ?, created_at = ?
|
|
142818
|
-
WHERE id = ?
|
|
142819
|
-
`).run(
|
|
142820
|
-
ins.cycle_id,
|
|
142821
|
-
ins.insight_type,
|
|
142822
|
-
ins.source_concepts,
|
|
142823
|
-
ins.description,
|
|
142824
|
-
ins.novelty_score ?? 0.5,
|
|
142825
|
-
ins.confidence_score ?? 0.5,
|
|
142826
|
-
ins.actionable ?? 0,
|
|
142827
|
-
ins.applied ?? 0,
|
|
142828
|
-
ins.suggested_action ?? null,
|
|
142829
|
-
ins.pattern_id ?? null,
|
|
142830
|
-
ins.created_at ?? null,
|
|
142831
|
-
ins.id
|
|
142832
|
-
);
|
|
142833
|
-
}
|
|
142834
|
-
function insertWitnessEntry(db, entry) {
|
|
142835
|
-
db.prepare(`
|
|
142836
|
-
INSERT INTO witness_chain (prev_hash, action_hash, action_type, action_data, timestamp, actor)
|
|
142837
|
-
VALUES (?, ?, ?, ?, ?, ?)
|
|
142838
|
-
`).run(
|
|
142839
|
-
entry.prev_hash,
|
|
142840
|
-
entry.action_hash,
|
|
142841
|
-
entry.action_type,
|
|
142842
|
-
entry.action_data ?? null,
|
|
142843
|
-
entry.timestamp,
|
|
142844
|
-
entry.actor
|
|
143087
|
+
if (version2 === "3.0") {
|
|
143088
|
+
return TABLE_CONFIGS;
|
|
143089
|
+
}
|
|
143090
|
+
console.warn(
|
|
143091
|
+
`[brain-import] Unknown manifest version '${version2}'. Attempting full import \u2014 some files may be missing.`
|
|
142845
143092
|
);
|
|
143093
|
+
return TABLE_CONFIGS;
|
|
142846
143094
|
}
|
|
142847
|
-
function
|
|
142848
|
-
|
|
142849
|
-
|
|
142850
|
-
|
|
142851
|
-
|
|
142852
|
-
|
|
142853
|
-
|
|
142854
|
-
|
|
142855
|
-
|
|
142856
|
-
|
|
142857
|
-
|
|
142858
|
-
success_rate REAL DEFAULT 0.0,
|
|
142859
|
-
quality_score REAL DEFAULT 0.0,
|
|
142860
|
-
tier TEXT DEFAULT 'short-term',
|
|
142861
|
-
template_json TEXT,
|
|
142862
|
-
context_json TEXT,
|
|
142863
|
-
created_at TEXT DEFAULT (datetime('now')),
|
|
142864
|
-
updated_at TEXT DEFAULT (datetime('now')),
|
|
142865
|
-
last_used_at TEXT,
|
|
142866
|
-
successful_uses INTEGER DEFAULT 0,
|
|
142867
|
-
tokens_used INTEGER,
|
|
142868
|
-
input_tokens INTEGER,
|
|
142869
|
-
output_tokens INTEGER,
|
|
142870
|
-
latency_ms REAL,
|
|
142871
|
-
reusable INTEGER DEFAULT 0,
|
|
142872
|
-
reuse_count INTEGER DEFAULT 0,
|
|
142873
|
-
average_token_savings REAL DEFAULT 0,
|
|
142874
|
-
total_tokens_saved INTEGER
|
|
142875
|
-
);
|
|
142876
|
-
|
|
142877
|
-
CREATE TABLE IF NOT EXISTS rl_q_values (
|
|
142878
|
-
id TEXT PRIMARY KEY,
|
|
142879
|
-
algorithm TEXT NOT NULL,
|
|
142880
|
-
agent_id TEXT NOT NULL,
|
|
142881
|
-
state_key TEXT NOT NULL,
|
|
142882
|
-
action_key TEXT NOT NULL,
|
|
142883
|
-
q_value REAL NOT NULL DEFAULT 0.0,
|
|
142884
|
-
visits INTEGER NOT NULL DEFAULT 0,
|
|
142885
|
-
last_reward REAL,
|
|
142886
|
-
domain TEXT,
|
|
142887
|
-
created_at TEXT DEFAULT (datetime('now')),
|
|
142888
|
-
updated_at TEXT DEFAULT (datetime('now')),
|
|
142889
|
-
UNIQUE(algorithm, agent_id, state_key, action_key)
|
|
142890
|
-
);
|
|
142891
|
-
|
|
142892
|
-
CREATE TABLE IF NOT EXISTS dream_insights (
|
|
142893
|
-
id TEXT PRIMARY KEY,
|
|
142894
|
-
cycle_id TEXT NOT NULL,
|
|
142895
|
-
insight_type TEXT NOT NULL,
|
|
142896
|
-
source_concepts TEXT NOT NULL,
|
|
142897
|
-
description TEXT NOT NULL,
|
|
142898
|
-
novelty_score REAL DEFAULT 0.5,
|
|
142899
|
-
confidence_score REAL DEFAULT 0.5,
|
|
142900
|
-
actionable INTEGER DEFAULT 0,
|
|
142901
|
-
applied INTEGER DEFAULT 0,
|
|
142902
|
-
suggested_action TEXT,
|
|
142903
|
-
pattern_id TEXT,
|
|
142904
|
-
created_at TEXT DEFAULT (datetime('now'))
|
|
142905
|
-
);
|
|
142906
|
-
|
|
142907
|
-
CREATE TABLE IF NOT EXISTS dream_cycles (
|
|
142908
|
-
id TEXT PRIMARY KEY,
|
|
142909
|
-
start_time TEXT NOT NULL,
|
|
142910
|
-
end_time TEXT,
|
|
142911
|
-
duration_ms INTEGER,
|
|
142912
|
-
concepts_processed INTEGER DEFAULT 0,
|
|
142913
|
-
associations_found INTEGER DEFAULT 0,
|
|
142914
|
-
insights_generated INTEGER DEFAULT 0,
|
|
142915
|
-
status TEXT DEFAULT 'running',
|
|
142916
|
-
error TEXT,
|
|
142917
|
-
created_at TEXT DEFAULT (datetime('now'))
|
|
142918
|
-
);
|
|
142919
|
-
|
|
142920
|
-
CREATE TABLE IF NOT EXISTS witness_chain (
|
|
142921
|
-
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
142922
|
-
prev_hash TEXT NOT NULL,
|
|
142923
|
-
action_hash TEXT NOT NULL,
|
|
142924
|
-
action_type TEXT NOT NULL,
|
|
142925
|
-
action_data TEXT,
|
|
142926
|
-
timestamp TEXT NOT NULL,
|
|
142927
|
-
actor TEXT NOT NULL
|
|
142928
|
-
);
|
|
142929
|
-
|
|
142930
|
-
CREATE TABLE IF NOT EXISTS vectors (
|
|
142931
|
-
id TEXT PRIMARY KEY,
|
|
142932
|
-
namespace TEXT NOT NULL DEFAULT 'default',
|
|
142933
|
-
embedding BLOB NOT NULL,
|
|
142934
|
-
dimensions INTEGER NOT NULL,
|
|
142935
|
-
metadata TEXT,
|
|
142936
|
-
created_at TEXT DEFAULT (datetime('now')),
|
|
142937
|
-
updated_at TEXT DEFAULT (datetime('now'))
|
|
143095
|
+
function importBrain(db, containerPath, options) {
|
|
143096
|
+
const dir = resolve9(containerPath);
|
|
143097
|
+
const manifestPath = join51(dir, "manifest.json");
|
|
143098
|
+
if (!existsSync47(manifestPath)) {
|
|
143099
|
+
throw new Error(`Manifest not found at ${manifestPath}`);
|
|
143100
|
+
}
|
|
143101
|
+
const manifest = safeJsonParse(readFileSync40(manifestPath, "utf-8"));
|
|
143102
|
+
const actualChecksum = computeChecksum(dir);
|
|
143103
|
+
if (actualChecksum !== manifest.checksum) {
|
|
143104
|
+
throw new Error(
|
|
143105
|
+
`Checksum mismatch: expected ${manifest.checksum}, got ${actualChecksum}. The export may have been tampered with or corrupted.`
|
|
142938
143106
|
);
|
|
142939
|
-
|
|
143107
|
+
}
|
|
143108
|
+
const configs = tablesToImport(manifest.version);
|
|
143109
|
+
if (options.dryRun) {
|
|
143110
|
+
let total = 0;
|
|
143111
|
+
for (const config of configs) {
|
|
143112
|
+
const rows = readJsonl(join51(dir, config.fileName), safeJsonParse);
|
|
143113
|
+
total += rows.length;
|
|
143114
|
+
}
|
|
143115
|
+
return { imported: total, skipped: 0, conflicts: 0 };
|
|
143116
|
+
}
|
|
143117
|
+
ensureTargetTables(db);
|
|
143118
|
+
let imported = 0;
|
|
143119
|
+
let skipped = 0;
|
|
143120
|
+
let conflicts = 0;
|
|
143121
|
+
const importAll = db.transaction(() => {
|
|
143122
|
+
for (const config of configs) {
|
|
143123
|
+
const filePath = join51(dir, config.fileName);
|
|
143124
|
+
let rows = readJsonl(filePath, safeJsonParse);
|
|
143125
|
+
if (config.blobColumns && config.blobColumns.length > 0) {
|
|
143126
|
+
rows = rows.map((r54) => deserializeRowBlobs(r54, config.blobColumns));
|
|
143127
|
+
}
|
|
143128
|
+
for (const row of rows) {
|
|
143129
|
+
let result;
|
|
143130
|
+
if (config.dedupColumns && config.dedupColumns.length > 0) {
|
|
143131
|
+
result = mergeAppendOnlyRow(db, config.tableName, row, config.dedupColumns);
|
|
143132
|
+
} else {
|
|
143133
|
+
const idCol = PK_COLUMNS[config.tableName] || "id";
|
|
143134
|
+
const tsCol = TIMESTAMP_COLUMNS[config.tableName];
|
|
143135
|
+
const confCol = CONFIDENCE_COLUMNS[config.tableName];
|
|
143136
|
+
result = mergeGenericRow(db, config.tableName, row, idCol, options.mergeStrategy, tsCol, confCol);
|
|
143137
|
+
}
|
|
143138
|
+
imported += result.imported;
|
|
143139
|
+
skipped += result.skipped;
|
|
143140
|
+
conflicts += result.conflicts;
|
|
143141
|
+
}
|
|
143142
|
+
}
|
|
143143
|
+
});
|
|
143144
|
+
importAll();
|
|
143145
|
+
return { imported, skipped, conflicts };
|
|
142940
143146
|
}
|
|
142941
143147
|
function brainInfo(containerPath) {
|
|
142942
143148
|
const dir = resolve9(containerPath);
|
|
142943
143149
|
const manifestPath = join51(dir, "manifest.json");
|
|
142944
|
-
if (!
|
|
143150
|
+
if (!existsSync47(manifestPath)) {
|
|
142945
143151
|
throw new Error(`Manifest not found at ${manifestPath}`);
|
|
142946
143152
|
}
|
|
142947
|
-
return safeJsonParse(
|
|
143153
|
+
return safeJsonParse(readFileSync40(manifestPath, "utf-8"));
|
|
142948
143154
|
}
|
|
142949
143155
|
|
|
142950
143156
|
// src/integrations/ruvector/brain-rvf-exporter.ts
|
|
142951
143157
|
init_rvf_native_adapter();
|
|
142952
|
-
import { existsSync as
|
|
143158
|
+
import { existsSync as existsSync49, statSync as statSync9, unlinkSync as unlinkSync6, writeFileSync as writeFileSync32 } from "fs";
|
|
142953
143159
|
import { resolve as resolve10 } from "path";
|
|
142954
|
-
import { createHash as createHash6 } from "crypto";
|
|
142955
|
-
function sha2563(data) {
|
|
142956
|
-
return createHash6("sha256").update(data, "utf-8").digest("hex");
|
|
142957
|
-
}
|
|
142958
|
-
function tableExists2(db, name) {
|
|
142959
|
-
const row = db.prepare(
|
|
142960
|
-
"SELECT COUNT(*) as cnt FROM sqlite_master WHERE type='table' AND name=?"
|
|
142961
|
-
).get(name);
|
|
142962
|
-
return row.cnt > 0;
|
|
142963
|
-
}
|
|
142964
|
-
function queryAll2(db, table, where, params) {
|
|
142965
|
-
if (!tableExists2(db, table)) return [];
|
|
142966
|
-
const sql = `SELECT * FROM ${table}${where ? ` WHERE ${where}` : ""}`;
|
|
142967
|
-
const stmt = db.prepare(sql);
|
|
142968
|
-
return params && params.length > 0 ? stmt.all(...params) : stmt.all();
|
|
142969
|
-
}
|
|
142970
|
-
function domainFilter2(domains) {
|
|
142971
|
-
if (!domains || domains.length === 0) return [void 0, []];
|
|
142972
|
-
const placeholders = domains.map(() => "?").join(", ");
|
|
142973
|
-
return [`qe_domain IN (${placeholders})`, [...domains]];
|
|
142974
|
-
}
|
|
142975
143160
|
function exportBrainToRvf(db, options, sourceDbLabel = "memory.db") {
|
|
142976
143161
|
if (!isRvfNativeAvailable()) {
|
|
142977
143162
|
throw new Error(
|
|
@@ -142980,68 +143165,119 @@ function exportBrainToRvf(db, options, sourceDbLabel = "memory.db") {
|
|
|
142980
143165
|
}
|
|
142981
143166
|
const outPath = resolve10(options.outputPath);
|
|
142982
143167
|
const dimension = options.dimension ?? 384;
|
|
142983
|
-
if (
|
|
143168
|
+
if (existsSync49(outPath)) unlinkSync6(outPath);
|
|
142984
143169
|
const idmapPath = `${outPath}.idmap.json`;
|
|
142985
|
-
if (
|
|
143170
|
+
if (existsSync49(idmapPath)) unlinkSync6(idmapPath);
|
|
142986
143171
|
const rvf = createRvfStore(outPath, dimension);
|
|
142987
143172
|
try {
|
|
142988
|
-
const
|
|
142989
|
-
const patterns = queryAll2(db, "qe_patterns", domainWhere, domainParams);
|
|
143173
|
+
const allTableData = {};
|
|
142990
143174
|
const domainSet = /* @__PURE__ */ new Set();
|
|
142991
|
-
|
|
142992
|
-
|
|
143175
|
+
let totalRecords = 0;
|
|
143176
|
+
for (const config of TABLE_CONFIGS) {
|
|
143177
|
+
const [where, params] = config.domainColumn ? domainFilterForColumn(options.domains, config.domainColumn) : [void 0, []];
|
|
143178
|
+
let rows = queryAll(db, config.tableName, where, params);
|
|
143179
|
+
if (config.tableName === "qe_patterns") {
|
|
143180
|
+
for (const p74 of rows) {
|
|
143181
|
+
if (p74.qe_domain) domainSet.add(p74.qe_domain);
|
|
143182
|
+
}
|
|
143183
|
+
}
|
|
143184
|
+
const blobCols = TABLE_BLOB_COLUMNS[config.tableName];
|
|
143185
|
+
if (blobCols && blobCols.length > 0) {
|
|
143186
|
+
rows = rows.map((r54) => serializeRowBlobs(r54, blobCols));
|
|
143187
|
+
}
|
|
143188
|
+
allTableData[config.tableName] = rows;
|
|
143189
|
+
totalRecords += rows.length;
|
|
142993
143190
|
}
|
|
142994
|
-
const [qWhere, qParams] = options.domains && options.domains.length > 0 ? [`domain IN (${options.domains.map(() => "?").join(", ")})`, [...options.domains]] : [void 0, []];
|
|
142995
|
-
const qValues = queryAll2(db, "rl_q_values", qWhere, qParams);
|
|
142996
|
-
const dreamInsights = queryAll2(db, "dream_insights");
|
|
142997
|
-
const witnessChain = queryAll2(db, "witness_chain");
|
|
142998
143191
|
let embeddingCount = 0;
|
|
142999
|
-
|
|
143000
|
-
|
|
143192
|
+
const embeddingEntries = [];
|
|
143193
|
+
if (tableExists(db, "qe_pattern_embeddings")) {
|
|
143194
|
+
const rows = db.prepare(
|
|
143001
143195
|
"SELECT pattern_id, embedding, dimension FROM qe_pattern_embeddings"
|
|
143002
143196
|
).all();
|
|
143003
|
-
|
|
143004
|
-
|
|
143005
|
-
|
|
143006
|
-
|
|
143007
|
-
|
|
143008
|
-
|
|
143009
|
-
|
|
143010
|
-
|
|
143011
|
-
);
|
|
143012
|
-
vec.set(src);
|
|
143013
|
-
return { id: row.pattern_id, vector: vec };
|
|
143014
|
-
});
|
|
143015
|
-
const result = rvf.ingest(entries);
|
|
143016
|
-
embeddingCount = result.accepted;
|
|
143197
|
+
for (const row of rows) {
|
|
143198
|
+
if (row.embedding && row.dimension === dimension) {
|
|
143199
|
+
embeddingEntries.push({
|
|
143200
|
+
id: `pe:${row.pattern_id}`,
|
|
143201
|
+
vector: new Float32Array(row.embedding.buffer, row.embedding.byteOffset, dimension),
|
|
143202
|
+
metadata: { tableName: "qe_pattern_embeddings" }
|
|
143203
|
+
});
|
|
143204
|
+
}
|
|
143017
143205
|
}
|
|
143018
143206
|
}
|
|
143207
|
+
if (tableExists(db, "captured_experiences")) {
|
|
143208
|
+
const rows = db.prepare(
|
|
143209
|
+
"SELECT id, embedding, embedding_dimension, domain, quality FROM captured_experiences WHERE embedding IS NOT NULL"
|
|
143210
|
+
).all();
|
|
143211
|
+
for (const row of rows) {
|
|
143212
|
+
if (row.embedding_dimension === dimension) {
|
|
143213
|
+
embeddingEntries.push({
|
|
143214
|
+
id: `exp:${row.id}`,
|
|
143215
|
+
vector: new Float32Array(row.embedding.buffer, row.embedding.byteOffset, dimension),
|
|
143216
|
+
metadata: {
|
|
143217
|
+
tableName: "captured_experiences",
|
|
143218
|
+
domain: row.domain,
|
|
143219
|
+
confidence: row.quality
|
|
143220
|
+
}
|
|
143221
|
+
});
|
|
143222
|
+
}
|
|
143223
|
+
}
|
|
143224
|
+
}
|
|
143225
|
+
if (tableExists(db, "sona_patterns")) {
|
|
143226
|
+
const rows = db.prepare(
|
|
143227
|
+
"SELECT id, state_embedding, domain, confidence FROM sona_patterns WHERE state_embedding IS NOT NULL"
|
|
143228
|
+
).all();
|
|
143229
|
+
for (const row of rows) {
|
|
143230
|
+
const dim = row.state_embedding.byteLength / 4;
|
|
143231
|
+
if (dim === dimension) {
|
|
143232
|
+
embeddingEntries.push({
|
|
143233
|
+
id: `sona:${row.id}`,
|
|
143234
|
+
vector: new Float32Array(
|
|
143235
|
+
row.state_embedding.buffer,
|
|
143236
|
+
row.state_embedding.byteOffset,
|
|
143237
|
+
dimension
|
|
143238
|
+
),
|
|
143239
|
+
metadata: {
|
|
143240
|
+
tableName: "sona_patterns",
|
|
143241
|
+
domain: row.domain,
|
|
143242
|
+
confidence: row.confidence
|
|
143243
|
+
}
|
|
143244
|
+
});
|
|
143245
|
+
}
|
|
143246
|
+
}
|
|
143247
|
+
}
|
|
143248
|
+
if (embeddingEntries.length > 0) {
|
|
143249
|
+
const result = rvf.ingest(embeddingEntries);
|
|
143250
|
+
embeddingCount = result.accepted;
|
|
143251
|
+
}
|
|
143019
143252
|
const brainData = {
|
|
143020
|
-
version: "
|
|
143253
|
+
version: "3.0",
|
|
143021
143254
|
format: "rvf",
|
|
143022
143255
|
exportedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
143023
143256
|
sourceDb: sourceDbLabel,
|
|
143024
|
-
|
|
143025
|
-
|
|
143026
|
-
dreamInsights,
|
|
143027
|
-
witnessChain,
|
|
143028
|
-
domains: [...domainSet].sort()
|
|
143257
|
+
domains: [...domainSet].sort(),
|
|
143258
|
+
tables: allTableData
|
|
143029
143259
|
};
|
|
143030
143260
|
const brainJson = JSON.stringify(brainData);
|
|
143031
|
-
const checksum =
|
|
143032
|
-
|
|
143261
|
+
const checksum = sha2562(brainJson);
|
|
143262
|
+
const kernelBuffer = Buffer.from(brainJson);
|
|
143263
|
+
rvf.embedKernel(kernelBuffer);
|
|
143264
|
+
const signature = options.sign ? rvf.sign(kernelBuffer) ?? void 0 : void 0;
|
|
143265
|
+
const signerKeyId = signature ? options.signerKeyId ?? "default" : void 0;
|
|
143266
|
+
const fId = rvf.fileId();
|
|
143267
|
+
const lineage = fId ? { fileId: fId, parentId: rvf.parentId(), lineageDepth: rvf.lineageDepth() } : void 0;
|
|
143033
143268
|
const status = rvf.status();
|
|
143034
|
-
|
|
143035
|
-
version: "
|
|
143269
|
+
const manifest = {
|
|
143270
|
+
version: "3.0",
|
|
143036
143271
|
format: "rvf",
|
|
143037
143272
|
exportedAt: brainData.exportedAt,
|
|
143038
143273
|
sourceDb: sourceDbLabel,
|
|
143039
143274
|
stats: {
|
|
143040
|
-
patternCount:
|
|
143275
|
+
patternCount: (allTableData["qe_patterns"] || []).length,
|
|
143041
143276
|
embeddingCount,
|
|
143042
|
-
qValueCount:
|
|
143043
|
-
dreamInsightCount:
|
|
143044
|
-
witnessChainLength:
|
|
143277
|
+
qValueCount: (allTableData["rl_q_values"] || []).length,
|
|
143278
|
+
dreamInsightCount: (allTableData["dream_insights"] || []).length,
|
|
143279
|
+
witnessChainLength: (allTableData["witness_chain"] || []).length,
|
|
143280
|
+
totalRecords
|
|
143045
143281
|
},
|
|
143046
143282
|
domains: brainData.domains,
|
|
143047
143283
|
checksum,
|
|
@@ -143049,12 +143285,30 @@ function exportBrainToRvf(db, options, sourceDbLabel = "memory.db") {
|
|
|
143049
143285
|
totalVectors: status.totalVectors,
|
|
143050
143286
|
totalSegments: status.totalSegments,
|
|
143051
143287
|
fileSizeBytes: status.fileSizeBytes
|
|
143052
|
-
}
|
|
143288
|
+
},
|
|
143289
|
+
// Attach optional fields only if present
|
|
143290
|
+
...signature ? { signature, signerKeyId } : {},
|
|
143291
|
+
...lineage ? { lineage } : {}
|
|
143053
143292
|
};
|
|
143293
|
+
if (signature) {
|
|
143294
|
+
try {
|
|
143295
|
+
rvf.freeze();
|
|
143296
|
+
} catch {
|
|
143297
|
+
}
|
|
143298
|
+
}
|
|
143299
|
+
const manifestPath = `${outPath}.manifest.json`;
|
|
143300
|
+
writeFileSync32(manifestPath, JSON.stringify(manifest, null, 2), "utf-8");
|
|
143301
|
+
return manifest;
|
|
143054
143302
|
} finally {
|
|
143055
143303
|
rvf.close();
|
|
143056
143304
|
}
|
|
143057
143305
|
}
|
|
143306
|
+
var LEGACY_FIELD_MAP = {
|
|
143307
|
+
patterns: "qe_patterns",
|
|
143308
|
+
qValues: "rl_q_values",
|
|
143309
|
+
dreamInsights: "dream_insights",
|
|
143310
|
+
witnessChain: "witness_chain"
|
|
143311
|
+
};
|
|
143058
143312
|
function importBrainFromRvf(db, rvfPath, options) {
|
|
143059
143313
|
if (!isRvfNativeAvailable()) {
|
|
143060
143314
|
throw new Error(
|
|
@@ -143062,57 +143316,95 @@ function importBrainFromRvf(db, rvfPath, options) {
|
|
|
143062
143316
|
);
|
|
143063
143317
|
}
|
|
143064
143318
|
const filePath = resolve10(rvfPath);
|
|
143065
|
-
if (!
|
|
143319
|
+
if (!existsSync49(filePath)) {
|
|
143066
143320
|
throw new Error(`RVF file not found: ${filePath}`);
|
|
143067
143321
|
}
|
|
143068
|
-
const rvf =
|
|
143322
|
+
const rvf = openRvfStore(filePath);
|
|
143069
143323
|
try {
|
|
143324
|
+
const witness = rvf.verifyWitness();
|
|
143325
|
+
if (!witness.valid && (witness.totalEntries > 0 || witness.errors.length > 0)) {
|
|
143326
|
+
const errMsg = witness.errors.length > 0 ? witness.errors.join("; ") : "unknown integrity error";
|
|
143327
|
+
throw new Error(
|
|
143328
|
+
`RVF witness verification failed: ${errMsg}`
|
|
143329
|
+
);
|
|
143330
|
+
}
|
|
143070
143331
|
const kernel = rvf.extractKernel();
|
|
143071
143332
|
if (!kernel || !kernel.image) {
|
|
143072
143333
|
throw new Error("No brain data found in RVF file (missing kernel segment)");
|
|
143073
143334
|
}
|
|
143074
143335
|
const brainData = JSON.parse(kernel.image.toString("utf-8"));
|
|
143075
143336
|
if (options.dryRun) {
|
|
143076
|
-
|
|
143337
|
+
let total = 0;
|
|
143338
|
+
if (brainData.tables) {
|
|
143339
|
+
for (const rows of Object.values(brainData.tables)) {
|
|
143340
|
+
total += rows?.length ?? 0;
|
|
143341
|
+
}
|
|
143342
|
+
} else {
|
|
143343
|
+
total = (brainData.patterns?.length ?? 0) + (brainData.qValues?.length ?? 0) + (brainData.dreamInsights?.length ?? 0) + (brainData.witnessChain?.length ?? 0);
|
|
143344
|
+
}
|
|
143077
143345
|
return { imported: total, skipped: 0, conflicts: 0, embeddingsRestored: 0 };
|
|
143078
143346
|
}
|
|
143079
|
-
|
|
143347
|
+
ensureTargetTables(db);
|
|
143080
143348
|
let imported = 0;
|
|
143081
143349
|
let skipped = 0;
|
|
143082
143350
|
let conflicts = 0;
|
|
143083
|
-
|
|
143084
|
-
|
|
143085
|
-
|
|
143086
|
-
|
|
143087
|
-
|
|
143088
|
-
|
|
143089
|
-
|
|
143090
|
-
|
|
143091
|
-
|
|
143092
|
-
|
|
143093
|
-
|
|
143094
|
-
|
|
143095
|
-
|
|
143096
|
-
|
|
143097
|
-
|
|
143098
|
-
|
|
143099
|
-
|
|
143100
|
-
|
|
143101
|
-
|
|
143102
|
-
|
|
143103
|
-
|
|
143104
|
-
|
|
143351
|
+
let embeddingsRestored = 0;
|
|
143352
|
+
const tablesMap = {};
|
|
143353
|
+
if (brainData.tables) {
|
|
143354
|
+
Object.assign(tablesMap, brainData.tables);
|
|
143355
|
+
} else {
|
|
143356
|
+
for (const [field, tableName] of Object.entries(LEGACY_FIELD_MAP)) {
|
|
143357
|
+
const data = brainData[field];
|
|
143358
|
+
if (Array.isArray(data)) {
|
|
143359
|
+
tablesMap[tableName] = data;
|
|
143360
|
+
}
|
|
143361
|
+
}
|
|
143362
|
+
}
|
|
143363
|
+
const importAll = db.transaction(() => {
|
|
143364
|
+
for (const config of TABLE_CONFIGS) {
|
|
143365
|
+
let rows = tablesMap[config.tableName];
|
|
143366
|
+
if (!rows || !Array.isArray(rows)) continue;
|
|
143367
|
+
const blobCols = TABLE_BLOB_COLUMNS[config.tableName];
|
|
143368
|
+
if (blobCols && blobCols.length > 0) {
|
|
143369
|
+
rows = rows.map((r54) => deserializeRowBlobs(r54, blobCols));
|
|
143370
|
+
for (const row of rows) {
|
|
143371
|
+
for (const col of blobCols) {
|
|
143372
|
+
if (row[col] instanceof Buffer) embeddingsRestored++;
|
|
143373
|
+
}
|
|
143374
|
+
}
|
|
143375
|
+
}
|
|
143376
|
+
for (const row of rows) {
|
|
143377
|
+
let result;
|
|
143378
|
+
if (config.dedupColumns && config.dedupColumns.length > 0) {
|
|
143379
|
+
result = mergeAppendOnlyRow(db, config.tableName, row, config.dedupColumns);
|
|
143380
|
+
} else {
|
|
143381
|
+
const idCol = PK_COLUMNS[config.tableName] || "id";
|
|
143382
|
+
const tsCol = TIMESTAMP_COLUMNS[config.tableName];
|
|
143383
|
+
const confCol = CONFIDENCE_COLUMNS[config.tableName];
|
|
143384
|
+
result = mergeGenericRow(
|
|
143385
|
+
db,
|
|
143386
|
+
config.tableName,
|
|
143387
|
+
row,
|
|
143388
|
+
idCol,
|
|
143389
|
+
options.mergeStrategy,
|
|
143390
|
+
tsCol,
|
|
143391
|
+
confCol
|
|
143392
|
+
);
|
|
143393
|
+
}
|
|
143394
|
+
imported += result.imported;
|
|
143395
|
+
skipped += result.skipped;
|
|
143396
|
+
conflicts += result.conflicts;
|
|
143397
|
+
}
|
|
143105
143398
|
}
|
|
143106
|
-
}
|
|
143107
|
-
|
|
143108
|
-
|
|
143109
|
-
|
|
143110
|
-
|
|
143111
|
-
|
|
143112
|
-
conflicts += r54.conflicts;
|
|
143399
|
+
});
|
|
143400
|
+
importAll();
|
|
143401
|
+
if (conflicts > 0) {
|
|
143402
|
+
try {
|
|
143403
|
+
rvf.compact();
|
|
143404
|
+
} catch {
|
|
143113
143405
|
}
|
|
143114
143406
|
}
|
|
143115
|
-
return { imported, skipped, conflicts, embeddingsRestored
|
|
143407
|
+
return { imported, skipped, conflicts, embeddingsRestored };
|
|
143116
143408
|
} finally {
|
|
143117
143409
|
rvf.close();
|
|
143118
143410
|
}
|
|
@@ -143122,7 +143414,7 @@ function brainInfoFromRvf(rvfPath) {
|
|
|
143122
143414
|
throw new Error("@ruvector/rvf-node is not available.");
|
|
143123
143415
|
}
|
|
143124
143416
|
const filePath = resolve10(rvfPath);
|
|
143125
|
-
if (!
|
|
143417
|
+
if (!existsSync49(filePath)) {
|
|
143126
143418
|
throw new Error(`RVF file not found: ${filePath}`);
|
|
143127
143419
|
}
|
|
143128
143420
|
const rvf = openRvfStoreReadonly(filePath);
|
|
@@ -143135,20 +143427,25 @@ function brainInfoFromRvf(rvfPath) {
|
|
|
143135
143427
|
const brainData = JSON.parse(brainJson);
|
|
143136
143428
|
const status = rvf.status();
|
|
143137
143429
|
const fileSize = statSync9(filePath).size;
|
|
143430
|
+
const t50 = brainData.tables;
|
|
143431
|
+
const patternCount = t50 ? t50["qe_patterns"]?.length ?? 0 : brainData.patterns?.length ?? 0;
|
|
143432
|
+
const qValueCount = t50 ? t50["rl_q_values"]?.length ?? 0 : brainData.qValues?.length ?? 0;
|
|
143433
|
+
const dreamInsightCount = t50 ? t50["dream_insights"]?.length ?? 0 : brainData.dreamInsights?.length ?? 0;
|
|
143434
|
+
const witnessChainLength = t50 ? t50["witness_chain"]?.length ?? 0 : brainData.witnessChain?.length ?? 0;
|
|
143138
143435
|
return {
|
|
143139
|
-
version: "
|
|
143436
|
+
version: "3.0",
|
|
143140
143437
|
format: "rvf",
|
|
143141
143438
|
exportedAt: brainData.exportedAt ?? "unknown",
|
|
143142
143439
|
sourceDb: brainData.sourceDb ?? "unknown",
|
|
143143
143440
|
stats: {
|
|
143144
|
-
patternCount
|
|
143441
|
+
patternCount,
|
|
143145
143442
|
embeddingCount: status.totalVectors,
|
|
143146
|
-
qValueCount
|
|
143147
|
-
dreamInsightCount
|
|
143148
|
-
witnessChainLength
|
|
143443
|
+
qValueCount,
|
|
143444
|
+
dreamInsightCount,
|
|
143445
|
+
witnessChainLength
|
|
143149
143446
|
},
|
|
143150
143447
|
domains: brainData.domains ?? [],
|
|
143151
|
-
checksum:
|
|
143448
|
+
checksum: sha2562(brainJson),
|
|
143152
143449
|
rvfStatus: {
|
|
143153
143450
|
totalVectors: status.totalVectors,
|
|
143154
143451
|
totalSegments: status.totalSegments,
|
|
@@ -143162,292 +143459,65 @@ function brainInfoFromRvf(rvfPath) {
|
|
|
143162
143459
|
function isRvfAvailable() {
|
|
143163
143460
|
return isRvfNativeAvailable();
|
|
143164
143461
|
}
|
|
143165
|
-
|
|
143166
|
-
|
|
143167
|
-
|
|
143168
|
-
|
|
143169
|
-
|
|
143170
|
-
|
|
143171
|
-
|
|
143172
|
-
|
|
143173
|
-
|
|
143174
|
-
|
|
143175
|
-
|
|
143176
|
-
updatePattern2(db, pattern);
|
|
143177
|
-
return { imported: 1, skipped: 0, conflicts: 1 };
|
|
143178
|
-
}
|
|
143179
|
-
return { imported: 0, skipped: 1, conflicts: 1 };
|
|
143180
|
-
}
|
|
143181
|
-
case "highest-confidence": {
|
|
143182
|
-
if ((pattern.confidence ?? 0) > (existing.confidence ?? 0)) {
|
|
143183
|
-
updatePattern2(db, pattern);
|
|
143184
|
-
return { imported: 1, skipped: 0, conflicts: 1 };
|
|
143185
|
-
}
|
|
143186
|
-
return { imported: 0, skipped: 1, conflicts: 1 };
|
|
143187
|
-
}
|
|
143188
|
-
default:
|
|
143189
|
-
return { imported: 0, skipped: 1, conflicts: 1 };
|
|
143190
|
-
}
|
|
143191
|
-
}
|
|
143192
|
-
function mergeQValue2(db, qv, strategy) {
|
|
143193
|
-
const existing = tableExists2(db, "rl_q_values") ? db.prepare("SELECT * FROM rl_q_values WHERE id = ?").get(qv.id) : void 0;
|
|
143194
|
-
if (!existing) {
|
|
143195
|
-
insertQValue2(db, qv);
|
|
143196
|
-
return { imported: 1, skipped: 0, conflicts: 0 };
|
|
143197
|
-
}
|
|
143198
|
-
switch (strategy) {
|
|
143199
|
-
case "skip-conflicts":
|
|
143200
|
-
return { imported: 0, skipped: 1, conflicts: 1 };
|
|
143201
|
-
case "latest-wins": {
|
|
143202
|
-
if ((qv.updated_at || qv.created_at || "") > (existing.updated_at || existing.created_at || "")) {
|
|
143203
|
-
updateQValue2(db, qv);
|
|
143204
|
-
return { imported: 1, skipped: 0, conflicts: 1 };
|
|
143205
|
-
}
|
|
143206
|
-
return { imported: 0, skipped: 1, conflicts: 1 };
|
|
143207
|
-
}
|
|
143208
|
-
case "highest-confidence": {
|
|
143209
|
-
if (qv.q_value > existing.q_value) {
|
|
143210
|
-
updateQValue2(db, qv);
|
|
143211
|
-
return { imported: 1, skipped: 0, conflicts: 1 };
|
|
143212
|
-
}
|
|
143213
|
-
return { imported: 0, skipped: 1, conflicts: 1 };
|
|
143214
|
-
}
|
|
143215
|
-
default:
|
|
143216
|
-
return { imported: 0, skipped: 1, conflicts: 1 };
|
|
143217
|
-
}
|
|
143218
|
-
}
|
|
143219
|
-
function mergeDreamInsight2(db, insight, strategy) {
|
|
143220
|
-
const existing = tableExists2(db, "dream_insights") ? db.prepare("SELECT * FROM dream_insights WHERE id = ?").get(insight.id) : void 0;
|
|
143221
|
-
if (!existing) {
|
|
143222
|
-
insertDreamInsight2(db, insight);
|
|
143223
|
-
return { imported: 1, skipped: 0, conflicts: 0 };
|
|
143224
|
-
}
|
|
143225
|
-
switch (strategy) {
|
|
143226
|
-
case "skip-conflicts":
|
|
143227
|
-
return { imported: 0, skipped: 1, conflicts: 1 };
|
|
143228
|
-
case "latest-wins": {
|
|
143229
|
-
if ((insight.created_at ?? "") > (existing.created_at ?? "")) {
|
|
143230
|
-
updateDreamInsight2(db, insight);
|
|
143231
|
-
return { imported: 1, skipped: 0, conflicts: 1 };
|
|
143232
|
-
}
|
|
143233
|
-
return { imported: 0, skipped: 1, conflicts: 1 };
|
|
143234
|
-
}
|
|
143235
|
-
case "highest-confidence": {
|
|
143236
|
-
if ((insight.confidence_score ?? 0) > (existing.confidence_score ?? 0)) {
|
|
143237
|
-
updateDreamInsight2(db, insight);
|
|
143238
|
-
return { imported: 1, skipped: 0, conflicts: 1 };
|
|
143239
|
-
}
|
|
143240
|
-
return { imported: 0, skipped: 1, conflicts: 1 };
|
|
143241
|
-
}
|
|
143242
|
-
default:
|
|
143243
|
-
return { imported: 0, skipped: 1, conflicts: 1 };
|
|
143244
|
-
}
|
|
143245
|
-
}
|
|
143246
|
-
function mergeWitnessEntry2(db, entry, _strategy) {
|
|
143247
|
-
const existing = tableExists2(db, "witness_chain") ? db.prepare("SELECT * FROM witness_chain WHERE action_hash = ? AND timestamp = ?").get(entry.action_hash, entry.timestamp) : void 0;
|
|
143248
|
-
if (!existing) {
|
|
143249
|
-
insertWitnessEntry2(db, entry);
|
|
143250
|
-
return { imported: 1, skipped: 0, conflicts: 0 };
|
|
143462
|
+
|
|
143463
|
+
// src/cli/brain-commands.ts
|
|
143464
|
+
init_witness_chain();
|
|
143465
|
+
|
|
143466
|
+
// src/audit/witness-backfill.ts
|
|
143467
|
+
function backfillWitnessChain(db, witnessChain) {
|
|
143468
|
+
const hasPatterns = db.prepare(
|
|
143469
|
+
"SELECT name FROM sqlite_master WHERE type='table' AND name='qe_patterns'"
|
|
143470
|
+
).get();
|
|
143471
|
+
if (!hasPatterns) {
|
|
143472
|
+
return { created: 0, skipped: 0 };
|
|
143251
143473
|
}
|
|
143252
|
-
return { imported: 0, skipped: 1, conflicts: 1 };
|
|
143253
|
-
}
|
|
143254
|
-
function insertPattern2(db, p74) {
|
|
143255
|
-
db.prepare(`
|
|
143256
|
-
INSERT INTO qe_patterns (
|
|
143257
|
-
id, pattern_type, qe_domain, domain, name, description,
|
|
143258
|
-
confidence, usage_count, success_rate, quality_score, tier,
|
|
143259
|
-
template_json, context_json, created_at, updated_at, last_used_at,
|
|
143260
|
-
successful_uses, tokens_used, input_tokens, output_tokens,
|
|
143261
|
-
latency_ms, reusable, reuse_count, average_token_savings, total_tokens_saved
|
|
143262
|
-
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
143263
|
-
`).run(
|
|
143264
|
-
p74.id,
|
|
143265
|
-
p74.pattern_type,
|
|
143266
|
-
p74.qe_domain,
|
|
143267
|
-
p74.domain,
|
|
143268
|
-
p74.name,
|
|
143269
|
-
p74.description ?? null,
|
|
143270
|
-
p74.confidence ?? 0.5,
|
|
143271
|
-
p74.usage_count ?? 0,
|
|
143272
|
-
p74.success_rate ?? 0,
|
|
143273
|
-
p74.quality_score ?? 0,
|
|
143274
|
-
p74.tier ?? "short-term",
|
|
143275
|
-
p74.template_json ?? null,
|
|
143276
|
-
p74.context_json ?? null,
|
|
143277
|
-
p74.created_at ?? null,
|
|
143278
|
-
p74.updated_at ?? null,
|
|
143279
|
-
p74.last_used_at ?? null,
|
|
143280
|
-
p74.successful_uses ?? 0,
|
|
143281
|
-
p74.tokens_used ?? null,
|
|
143282
|
-
p74.input_tokens ?? null,
|
|
143283
|
-
p74.output_tokens ?? null,
|
|
143284
|
-
p74.latency_ms ?? null,
|
|
143285
|
-
p74.reusable ?? 0,
|
|
143286
|
-
p74.reuse_count ?? 0,
|
|
143287
|
-
p74.average_token_savings ?? 0,
|
|
143288
|
-
p74.total_tokens_saved ?? null
|
|
143289
|
-
);
|
|
143290
|
-
}
|
|
143291
|
-
function updatePattern2(db, p74) {
|
|
143292
|
-
db.prepare(`
|
|
143293
|
-
UPDATE qe_patterns SET
|
|
143294
|
-
pattern_type = ?, qe_domain = ?, domain = ?, name = ?, description = ?,
|
|
143295
|
-
confidence = ?, usage_count = ?, success_rate = ?, quality_score = ?, tier = ?,
|
|
143296
|
-
template_json = ?, context_json = ?, updated_at = ?, last_used_at = ?,
|
|
143297
|
-
successful_uses = ?, tokens_used = ?, input_tokens = ?, output_tokens = ?,
|
|
143298
|
-
latency_ms = ?, reusable = ?, reuse_count = ?, average_token_savings = ?, total_tokens_saved = ?
|
|
143299
|
-
WHERE id = ?
|
|
143300
|
-
`).run(
|
|
143301
|
-
p74.pattern_type,
|
|
143302
|
-
p74.qe_domain,
|
|
143303
|
-
p74.domain,
|
|
143304
|
-
p74.name,
|
|
143305
|
-
p74.description ?? null,
|
|
143306
|
-
p74.confidence ?? 0.5,
|
|
143307
|
-
p74.usage_count ?? 0,
|
|
143308
|
-
p74.success_rate ?? 0,
|
|
143309
|
-
p74.quality_score ?? 0,
|
|
143310
|
-
p74.tier ?? "short-term",
|
|
143311
|
-
p74.template_json ?? null,
|
|
143312
|
-
p74.context_json ?? null,
|
|
143313
|
-
p74.updated_at ?? null,
|
|
143314
|
-
p74.last_used_at ?? null,
|
|
143315
|
-
p74.successful_uses ?? 0,
|
|
143316
|
-
p74.tokens_used ?? null,
|
|
143317
|
-
p74.input_tokens ?? null,
|
|
143318
|
-
p74.output_tokens ?? null,
|
|
143319
|
-
p74.latency_ms ?? null,
|
|
143320
|
-
p74.reusable ?? 0,
|
|
143321
|
-
p74.reuse_count ?? 0,
|
|
143322
|
-
p74.average_token_savings ?? 0,
|
|
143323
|
-
p74.total_tokens_saved ?? null,
|
|
143324
|
-
p74.id
|
|
143325
|
-
);
|
|
143326
|
-
}
|
|
143327
|
-
function insertQValue2(db, qv) {
|
|
143328
|
-
db.prepare(`
|
|
143329
|
-
INSERT INTO rl_q_values (id, algorithm, agent_id, state_key, action_key, q_value, visits, last_reward, domain, created_at, updated_at)
|
|
143330
|
-
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
143331
|
-
`).run(
|
|
143332
|
-
qv.id,
|
|
143333
|
-
qv.algorithm,
|
|
143334
|
-
qv.agent_id,
|
|
143335
|
-
qv.state_key,
|
|
143336
|
-
qv.action_key,
|
|
143337
|
-
qv.q_value,
|
|
143338
|
-
qv.visits,
|
|
143339
|
-
qv.last_reward ?? null,
|
|
143340
|
-
qv.domain ?? null,
|
|
143341
|
-
qv.created_at ?? null,
|
|
143342
|
-
qv.updated_at ?? null
|
|
143343
|
-
);
|
|
143344
|
-
}
|
|
143345
|
-
function updateQValue2(db, qv) {
|
|
143346
|
-
db.prepare(`
|
|
143347
|
-
UPDATE rl_q_values SET algorithm = ?, agent_id = ?, state_key = ?, action_key = ?,
|
|
143348
|
-
q_value = ?, visits = ?, last_reward = ?, domain = ?, updated_at = ? WHERE id = ?
|
|
143349
|
-
`).run(
|
|
143350
|
-
qv.algorithm,
|
|
143351
|
-
qv.agent_id,
|
|
143352
|
-
qv.state_key,
|
|
143353
|
-
qv.action_key,
|
|
143354
|
-
qv.q_value,
|
|
143355
|
-
qv.visits,
|
|
143356
|
-
qv.last_reward ?? null,
|
|
143357
|
-
qv.domain ?? null,
|
|
143358
|
-
qv.updated_at ?? null,
|
|
143359
|
-
qv.id
|
|
143360
|
-
);
|
|
143361
|
-
}
|
|
143362
|
-
function insertDreamInsight2(db, ins) {
|
|
143363
|
-
db.prepare(`
|
|
143364
|
-
INSERT INTO dream_insights (id, cycle_id, insight_type, source_concepts, description,
|
|
143365
|
-
novelty_score, confidence_score, actionable, applied, suggested_action, pattern_id, created_at)
|
|
143366
|
-
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
143367
|
-
`).run(
|
|
143368
|
-
ins.id,
|
|
143369
|
-
ins.cycle_id,
|
|
143370
|
-
ins.insight_type,
|
|
143371
|
-
ins.source_concepts,
|
|
143372
|
-
ins.description,
|
|
143373
|
-
ins.novelty_score ?? 0.5,
|
|
143374
|
-
ins.confidence_score ?? 0.5,
|
|
143375
|
-
ins.actionable ?? 0,
|
|
143376
|
-
ins.applied ?? 0,
|
|
143377
|
-
ins.suggested_action ?? null,
|
|
143378
|
-
ins.pattern_id ?? null,
|
|
143379
|
-
ins.created_at ?? null
|
|
143380
|
-
);
|
|
143381
|
-
}
|
|
143382
|
-
function updateDreamInsight2(db, ins) {
|
|
143383
|
-
db.prepare(`
|
|
143384
|
-
UPDATE dream_insights SET cycle_id = ?, insight_type = ?, source_concepts = ?, description = ?,
|
|
143385
|
-
novelty_score = ?, confidence_score = ?, actionable = ?, applied = ?,
|
|
143386
|
-
suggested_action = ?, pattern_id = ?, created_at = ? WHERE id = ?
|
|
143387
|
-
`).run(
|
|
143388
|
-
ins.cycle_id,
|
|
143389
|
-
ins.insight_type,
|
|
143390
|
-
ins.source_concepts,
|
|
143391
|
-
ins.description,
|
|
143392
|
-
ins.novelty_score ?? 0.5,
|
|
143393
|
-
ins.confidence_score ?? 0.5,
|
|
143394
|
-
ins.actionable ?? 0,
|
|
143395
|
-
ins.applied ?? 0,
|
|
143396
|
-
ins.suggested_action ?? null,
|
|
143397
|
-
ins.pattern_id ?? null,
|
|
143398
|
-
ins.created_at ?? null,
|
|
143399
|
-
ins.id
|
|
143400
|
-
);
|
|
143401
|
-
}
|
|
143402
|
-
function insertWitnessEntry2(db, entry) {
|
|
143403
|
-
db.prepare(`
|
|
143404
|
-
INSERT INTO witness_chain (prev_hash, action_hash, action_type, action_data, timestamp, actor)
|
|
143405
|
-
VALUES (?, ?, ?, ?, ?, ?)
|
|
143406
|
-
`).run(
|
|
143407
|
-
entry.prev_hash,
|
|
143408
|
-
entry.action_hash,
|
|
143409
|
-
entry.action_type,
|
|
143410
|
-
entry.action_data ?? null,
|
|
143411
|
-
entry.timestamp,
|
|
143412
|
-
entry.actor
|
|
143413
|
-
);
|
|
143414
|
-
}
|
|
143415
|
-
function ensureTargetTables2(db) {
|
|
143416
143474
|
db.exec(`
|
|
143417
|
-
CREATE TABLE IF NOT EXISTS
|
|
143418
|
-
|
|
143419
|
-
|
|
143420
|
-
confidence REAL DEFAULT 0.5, usage_count INTEGER DEFAULT 0,
|
|
143421
|
-
success_rate REAL DEFAULT 0.0, quality_score REAL DEFAULT 0.0,
|
|
143422
|
-
tier TEXT DEFAULT 'short-term', template_json TEXT, context_json TEXT,
|
|
143423
|
-
created_at TEXT DEFAULT (datetime('now')), updated_at TEXT DEFAULT (datetime('now')),
|
|
143424
|
-
last_used_at TEXT, successful_uses INTEGER DEFAULT 0, tokens_used INTEGER,
|
|
143425
|
-
input_tokens INTEGER, output_tokens INTEGER, latency_ms REAL,
|
|
143426
|
-
reusable INTEGER DEFAULT 0, reuse_count INTEGER DEFAULT 0,
|
|
143427
|
-
average_token_savings REAL DEFAULT 0, total_tokens_saved INTEGER
|
|
143428
|
-
);
|
|
143429
|
-
CREATE TABLE IF NOT EXISTS rl_q_values (
|
|
143430
|
-
id TEXT PRIMARY KEY, algorithm TEXT NOT NULL, agent_id TEXT NOT NULL,
|
|
143431
|
-
state_key TEXT NOT NULL, action_key TEXT NOT NULL,
|
|
143432
|
-
q_value REAL NOT NULL DEFAULT 0.0, visits INTEGER NOT NULL DEFAULT 0,
|
|
143433
|
-
last_reward REAL, domain TEXT,
|
|
143434
|
-
created_at TEXT DEFAULT (datetime('now')), updated_at TEXT DEFAULT (datetime('now')),
|
|
143435
|
-
UNIQUE(algorithm, agent_id, state_key, action_key)
|
|
143436
|
-
);
|
|
143437
|
-
CREATE TABLE IF NOT EXISTS dream_insights (
|
|
143438
|
-
id TEXT PRIMARY KEY, cycle_id TEXT NOT NULL, insight_type TEXT NOT NULL,
|
|
143439
|
-
source_concepts TEXT NOT NULL, description TEXT NOT NULL,
|
|
143440
|
-
novelty_score REAL DEFAULT 0.5, confidence_score REAL DEFAULT 0.5,
|
|
143441
|
-
actionable INTEGER DEFAULT 0, applied INTEGER DEFAULT 0,
|
|
143442
|
-
suggested_action TEXT, pattern_id TEXT,
|
|
143443
|
-
created_at TEXT DEFAULT (datetime('now'))
|
|
143444
|
-
);
|
|
143445
|
-
CREATE TABLE IF NOT EXISTS witness_chain (
|
|
143446
|
-
id INTEGER PRIMARY KEY AUTOINCREMENT, prev_hash TEXT NOT NULL,
|
|
143447
|
-
action_hash TEXT NOT NULL, action_type TEXT NOT NULL,
|
|
143448
|
-
action_data TEXT, timestamp TEXT NOT NULL, actor TEXT NOT NULL
|
|
143449
|
-
);
|
|
143475
|
+
CREATE TEMP TABLE IF NOT EXISTS _covered_patterns (
|
|
143476
|
+
pattern_id TEXT PRIMARY KEY
|
|
143477
|
+
)
|
|
143450
143478
|
`);
|
|
143479
|
+
db.exec(`DELETE FROM _covered_patterns`);
|
|
143480
|
+
db.exec(`
|
|
143481
|
+
INSERT INTO _covered_patterns (pattern_id)
|
|
143482
|
+
SELECT DISTINCT json_extract(action_data, '$.patternId')
|
|
143483
|
+
FROM witness_chain
|
|
143484
|
+
WHERE action_type = 'PATTERN_CREATE'
|
|
143485
|
+
AND json_extract(action_data, '$.patternId') IS NOT NULL
|
|
143486
|
+
`);
|
|
143487
|
+
db.exec(`
|
|
143488
|
+
INSERT OR IGNORE INTO _covered_patterns (pattern_id)
|
|
143489
|
+
SELECT DISTINCT json_extract(action_data, '$.pattern_id')
|
|
143490
|
+
FROM witness_chain
|
|
143491
|
+
WHERE action_type = 'PATTERN_CREATE'
|
|
143492
|
+
AND json_extract(action_data, '$.pattern_id') IS NOT NULL
|
|
143493
|
+
`);
|
|
143494
|
+
const uncovered = db.prepare(
|
|
143495
|
+
`SELECT p.id, p.pattern_type, p.qe_domain, p.name, p.created_at
|
|
143496
|
+
FROM qe_patterns p
|
|
143497
|
+
LEFT JOIN _covered_patterns c ON p.id = c.pattern_id
|
|
143498
|
+
WHERE c.pattern_id IS NULL
|
|
143499
|
+
ORDER BY p.created_at ASC`
|
|
143500
|
+
).all();
|
|
143501
|
+
const totalPatterns = db.prepare("SELECT COUNT(*) as count FROM qe_patterns").get().count;
|
|
143502
|
+
const skipped = totalPatterns - uncovered.length;
|
|
143503
|
+
let created = 0;
|
|
143504
|
+
for (const pattern of uncovered) {
|
|
143505
|
+
witnessChain.append(
|
|
143506
|
+
"PATTERN_CREATE",
|
|
143507
|
+
{
|
|
143508
|
+
patternId: pattern.id,
|
|
143509
|
+
patternType: pattern.pattern_type,
|
|
143510
|
+
qeDomain: pattern.qe_domain,
|
|
143511
|
+
name: pattern.name,
|
|
143512
|
+
originalCreatedAt: pattern.created_at,
|
|
143513
|
+
backfilled: true
|
|
143514
|
+
},
|
|
143515
|
+
"system:backfill"
|
|
143516
|
+
);
|
|
143517
|
+
created++;
|
|
143518
|
+
}
|
|
143519
|
+
db.exec("DROP TABLE IF EXISTS _covered_patterns");
|
|
143520
|
+
return { created, skipped };
|
|
143451
143521
|
}
|
|
143452
143522
|
|
|
143453
143523
|
// src/cli/brain-commands.ts
|
|
@@ -143502,6 +143572,16 @@ async function brainInfo2(containerPath, format) {
|
|
|
143502
143572
|
}
|
|
143503
143573
|
return brainInfo(containerPath);
|
|
143504
143574
|
}
|
|
143575
|
+
async function witnessBackfill(dbPath) {
|
|
143576
|
+
const db = new better_sqlite3_default(dbPath, { readonly: false });
|
|
143577
|
+
try {
|
|
143578
|
+
const chain = createWitnessChain(db);
|
|
143579
|
+
await chain.initialize();
|
|
143580
|
+
return backfillWitnessChain(db, chain);
|
|
143581
|
+
} finally {
|
|
143582
|
+
db.close();
|
|
143583
|
+
}
|
|
143584
|
+
}
|
|
143505
143585
|
function resolveFormat(format) {
|
|
143506
143586
|
if (format === "jsonl") return "jsonl";
|
|
143507
143587
|
if (format === "rvf") {
|
|
@@ -143542,6 +143622,9 @@ var BrainHandler = class {
|
|
|
143542
143622
|
brain.command("info").description("Show manifest info for a brain export").requiredOption("-i, --input <path>", "Path to brain export directory").action(async (options) => {
|
|
143543
143623
|
await this.executeInfo(options);
|
|
143544
143624
|
});
|
|
143625
|
+
brain.command("witness-backfill").description("Create witness chain entries for patterns that predate the witness chain").option("--db <path>", "Database path", defaultDbPath()).action(async (options) => {
|
|
143626
|
+
await this.executeWitnessBackfill(options);
|
|
143627
|
+
});
|
|
143545
143628
|
}
|
|
143546
143629
|
async executeExport(options) {
|
|
143547
143630
|
try {
|
|
@@ -143604,36 +143687,91 @@ var BrainHandler = class {
|
|
|
143604
143687
|
console.log(chalk9.blue("\n Brain Export Info\n"));
|
|
143605
143688
|
const inputPath = path20.resolve(options.input);
|
|
143606
143689
|
const manifest = await brainInfo2(inputPath);
|
|
143607
|
-
console.log(` Version: ${chalk9.cyan(manifest.version)}`);
|
|
143608
143690
|
const format = "format" in manifest ? manifest.format ?? "jsonl" : "jsonl";
|
|
143609
|
-
console.log(`
|
|
143610
|
-
console.log(`
|
|
143611
|
-
console.log(`
|
|
143612
|
-
console.log(`
|
|
143613
|
-
|
|
143614
|
-
|
|
143615
|
-
} else if ("vectorCount" in manifest.stats) {
|
|
143616
|
-
console.log(` Vectors: ${chalk9.cyan(manifest.stats.vectorCount)}`);
|
|
143617
|
-
}
|
|
143691
|
+
console.log(` Version: ${chalk9.cyan(manifest.version)}`);
|
|
143692
|
+
console.log(` Format: ${chalk9.cyan(format)}`);
|
|
143693
|
+
console.log(` Exported: ${chalk9.cyan(manifest.exportedAt)}`);
|
|
143694
|
+
console.log(` Source DB: ${chalk9.cyan(manifest.sourceDb)}`);
|
|
143695
|
+
console.log(chalk9.blue("\n Learning Data:"));
|
|
143696
|
+
console.log(` Patterns: ${chalk9.cyan(manifest.stats.patternCount)}`);
|
|
143618
143697
|
if ("qValueCount" in manifest.stats) {
|
|
143619
|
-
console.log(`
|
|
143698
|
+
console.log(` Q-Values: ${chalk9.cyan(manifest.stats.qValueCount)}`);
|
|
143620
143699
|
}
|
|
143621
143700
|
if ("dreamInsightCount" in manifest.stats) {
|
|
143622
|
-
|
|
143701
|
+
const dreamCount = manifest.stats.dreamInsightCount;
|
|
143702
|
+
const tableRecordCounts2 = "tableRecordCounts" in manifest ? manifest.tableRecordCounts : void 0;
|
|
143703
|
+
const cycleCount = tableRecordCounts2?.["dream_cycles"];
|
|
143704
|
+
const cycleInfo = cycleCount !== void 0 ? ` (${cycleCount} cycles)` : "";
|
|
143705
|
+
console.log(` Dream Insights: ${chalk9.cyan(dreamCount)}${chalk9.gray(cycleInfo)}`);
|
|
143623
143706
|
}
|
|
143624
143707
|
if ("witnessChainLength" in manifest.stats) {
|
|
143625
|
-
console.log(`
|
|
143708
|
+
console.log(` Witness Chain: ${chalk9.cyan(manifest.stats.witnessChainLength)} entries`);
|
|
143626
143709
|
}
|
|
143627
|
-
if ("
|
|
143628
|
-
|
|
143629
|
-
|
|
143630
|
-
console.log(`
|
|
143631
|
-
|
|
143710
|
+
if ("embeddingCount" in manifest.stats) {
|
|
143711
|
+
console.log(` Embeddings: ${chalk9.cyan(manifest.stats.embeddingCount)}`);
|
|
143712
|
+
} else if ("vectorCount" in manifest.stats) {
|
|
143713
|
+
console.log(` Vectors: ${chalk9.cyan(manifest.stats.vectorCount)}`);
|
|
143714
|
+
}
|
|
143715
|
+
const tableRecordCounts = "tableRecordCounts" in manifest ? manifest.tableRecordCounts : void 0;
|
|
143716
|
+
if (tableRecordCounts) {
|
|
143717
|
+
const additionalTables = Object.entries(tableRecordCounts).filter(
|
|
143718
|
+
([name, count]) => count > 0 && ![
|
|
143719
|
+
"qe_patterns",
|
|
143720
|
+
"rl_q_values",
|
|
143721
|
+
"dream_insights",
|
|
143722
|
+
"dream_cycles",
|
|
143723
|
+
"witness_chain",
|
|
143724
|
+
"vectors",
|
|
143725
|
+
"qe_pattern_embeddings"
|
|
143726
|
+
].includes(name)
|
|
143727
|
+
);
|
|
143728
|
+
if (additionalTables.length > 0) {
|
|
143729
|
+
for (const [name, count] of additionalTables) {
|
|
143730
|
+
const label = name.replace(/_/g, " ").replace(/\b\w/g, (c70) => c70.toUpperCase());
|
|
143731
|
+
const paddedLabel = `${label}:`.padEnd(15);
|
|
143732
|
+
console.log(` ${paddedLabel}${chalk9.cyan(count)}`);
|
|
143733
|
+
}
|
|
143734
|
+
}
|
|
143735
|
+
}
|
|
143736
|
+
const totalRecords = "totalRecords" in manifest.stats ? manifest.stats.totalRecords : void 0;
|
|
143737
|
+
if (totalRecords !== void 0) {
|
|
143738
|
+
console.log(chalk9.blue("\n Summary:"));
|
|
143739
|
+
console.log(` Total Records: ${chalk9.cyan(totalRecords)}`);
|
|
143632
143740
|
}
|
|
143633
|
-
console.log(` Checksum: ${chalk9.gray(manifest.checksum)}`);
|
|
143634
143741
|
if ("domains" in manifest && Array.isArray(manifest.domains) && manifest.domains.length > 0) {
|
|
143635
|
-
console.log(
|
|
143742
|
+
if (!totalRecords) console.log(chalk9.blue("\n Summary:"));
|
|
143743
|
+
console.log(` Domains: ${chalk9.cyan(manifest.domains.join(", "))}`);
|
|
143744
|
+
}
|
|
143745
|
+
if ("rvfStatus" in manifest) {
|
|
143746
|
+
const rvf = manifest.rvfStatus;
|
|
143747
|
+
console.log(chalk9.blue("\n RVF Details:"));
|
|
143748
|
+
console.log(` File Size: ${chalk9.cyan(formatBytes(rvf.fileSizeBytes))}`);
|
|
143749
|
+
console.log(` Vectors: ${chalk9.cyan(rvf.totalVectors)}`);
|
|
143750
|
+
console.log(` Segments: ${chalk9.cyan(rvf.totalSegments)}`);
|
|
143751
|
+
}
|
|
143752
|
+
if ("lineage" in manifest) {
|
|
143753
|
+
const lineage = manifest.lineage;
|
|
143754
|
+
if (lineage) {
|
|
143755
|
+
console.log(chalk9.blue("\n Lineage:"));
|
|
143756
|
+
console.log(` File ID: ${chalk9.cyan(lineage.fileId)}`);
|
|
143757
|
+
console.log(` Parent ID: ${chalk9.cyan(lineage.parentId ?? "none (root)")}`);
|
|
143758
|
+
console.log(` Depth: ${chalk9.cyan(lineage.lineageDepth)}`);
|
|
143759
|
+
}
|
|
143760
|
+
}
|
|
143761
|
+
if ("signature" in manifest) {
|
|
143762
|
+
const sig = manifest.signature;
|
|
143763
|
+
const keyId = manifest.signerKeyId;
|
|
143764
|
+
console.log(chalk9.blue("\n Signature:"));
|
|
143765
|
+
if (sig) {
|
|
143766
|
+
console.log(` Status: ${chalk9.green("Signed")}`);
|
|
143767
|
+
console.log(` Key ID: ${chalk9.cyan(keyId ?? "unknown")}`);
|
|
143768
|
+
console.log(` Signature: ${chalk9.gray(sig.slice(0, 32) + "...")}`);
|
|
143769
|
+
} else {
|
|
143770
|
+
console.log(` Status: ${chalk9.yellow("Unsigned")}`);
|
|
143771
|
+
}
|
|
143636
143772
|
}
|
|
143773
|
+
console.log(`
|
|
143774
|
+
Checksum: ${chalk9.gray(manifest.checksum)}`);
|
|
143637
143775
|
console.log("");
|
|
143638
143776
|
await this.cleanupAndExit(0);
|
|
143639
143777
|
} catch (error) {
|
|
@@ -143641,6 +143779,20 @@ var BrainHandler = class {
|
|
|
143641
143779
|
await this.cleanupAndExit(1);
|
|
143642
143780
|
}
|
|
143643
143781
|
}
|
|
143782
|
+
async executeWitnessBackfill(options) {
|
|
143783
|
+
try {
|
|
143784
|
+
console.log(chalk9.blue("\n Running witness chain backfill...\n"));
|
|
143785
|
+
const result = await witnessBackfill(options.db);
|
|
143786
|
+
console.log(chalk9.green(" Backfill complete."));
|
|
143787
|
+
console.log(` Created: ${chalk9.cyan(result.created)} new witness entries`);
|
|
143788
|
+
console.log(` Skipped: ${chalk9.cyan(result.skipped)} (already witnessed)`);
|
|
143789
|
+
console.log("");
|
|
143790
|
+
await this.cleanupAndExit(0);
|
|
143791
|
+
} catch (error) {
|
|
143792
|
+
console.error(chalk9.red("\n Witness backfill failed:"), error);
|
|
143793
|
+
await this.cleanupAndExit(1);
|
|
143794
|
+
}
|
|
143795
|
+
}
|
|
143644
143796
|
getHelp() {
|
|
143645
143797
|
return `
|
|
143646
143798
|
Export, import, and inspect QE brain state.
|
|
@@ -144027,12 +144179,12 @@ var BaseWizardCommand = class {
|
|
|
144027
144179
|
|
|
144028
144180
|
// src/cli/wizards/core/wizard-step.ts
|
|
144029
144181
|
import chalk12 from "chalk";
|
|
144030
|
-
import { existsSync as
|
|
144182
|
+
import { existsSync as existsSync53 } from "fs";
|
|
144031
144183
|
import { resolve as resolve12 } from "path";
|
|
144032
144184
|
|
|
144033
144185
|
// src/cli/wizards/core/wizard-utils.ts
|
|
144034
144186
|
import chalk11 from "chalk";
|
|
144035
|
-
import { existsSync as
|
|
144187
|
+
import { existsSync as existsSync52, statSync as statSync11 } from "fs";
|
|
144036
144188
|
import { join as join54, relative as relative7 } from "path";
|
|
144037
144189
|
var WizardPrompt = class {
|
|
144038
144190
|
/**
|
|
@@ -144125,7 +144277,7 @@ var WizardSuggestions = class _WizardSuggestions {
|
|
|
144125
144277
|
const commonDirs = ["src", "lib", "app", "packages", "api"];
|
|
144126
144278
|
for (const dir of commonDirs) {
|
|
144127
144279
|
const dirPath = join54(cwd, dir);
|
|
144128
|
-
if (
|
|
144280
|
+
if (existsSync52(dirPath) && statSync11(dirPath).isDirectory()) {
|
|
144129
144281
|
suggestions.push(dir);
|
|
144130
144282
|
}
|
|
144131
144283
|
}
|
|
@@ -144144,7 +144296,7 @@ var WizardSuggestions = class _WizardSuggestions {
|
|
|
144144
144296
|
];
|
|
144145
144297
|
for (const loc of coverageLocations) {
|
|
144146
144298
|
const locPath = join54(cwd, loc);
|
|
144147
|
-
if (
|
|
144299
|
+
if (existsSync52(locPath)) {
|
|
144148
144300
|
suggestions.push(loc);
|
|
144149
144301
|
}
|
|
144150
144302
|
}
|
|
@@ -144167,7 +144319,7 @@ var WizardSuggestions = class _WizardSuggestions {
|
|
|
144167
144319
|
];
|
|
144168
144320
|
for (const file of securityFiles) {
|
|
144169
144321
|
const filePath = join54(cwd, file);
|
|
144170
|
-
if (
|
|
144322
|
+
if (existsSync52(filePath)) {
|
|
144171
144323
|
suggestions.push(file);
|
|
144172
144324
|
}
|
|
144173
144325
|
}
|
|
@@ -144181,12 +144333,12 @@ var WizardSuggestions = class _WizardSuggestions {
|
|
|
144181
144333
|
const commonDirs = ["src", "lib", "app", "packages"];
|
|
144182
144334
|
for (const dir of commonDirs) {
|
|
144183
144335
|
const dirPath = join54(cwd, dir);
|
|
144184
|
-
if (
|
|
144336
|
+
if (existsSync52(dirPath) && statSync11(dirPath).isDirectory()) {
|
|
144185
144337
|
suggestions.push(`${dir}/**/*.ts`);
|
|
144186
144338
|
suggestions.push(dir);
|
|
144187
144339
|
}
|
|
144188
144340
|
}
|
|
144189
|
-
if (
|
|
144341
|
+
if (existsSync52(join54(cwd, "src"))) {
|
|
144190
144342
|
suggestions.push("src/services/**/*.ts");
|
|
144191
144343
|
suggestions.push("src/utils/**/*.ts");
|
|
144192
144344
|
suggestions.push("src/components/**/*.tsx");
|
|
@@ -144203,7 +144355,7 @@ var WizardSuggestions = class _WizardSuggestions {
|
|
|
144203
144355
|
join54(cwd, ".aqe", "patterns"),
|
|
144204
144356
|
join54(cwd, "data", "patterns")
|
|
144205
144357
|
];
|
|
144206
|
-
return patternLocations.some((loc) =>
|
|
144358
|
+
return patternLocations.some((loc) => existsSync52(loc));
|
|
144207
144359
|
}
|
|
144208
144360
|
};
|
|
144209
144361
|
var WizardFormat = class {
|
|
@@ -144480,7 +144632,7 @@ var PathInputStep = class extends BaseWizardCommand {
|
|
|
144480
144632
|
async execute(context2) {
|
|
144481
144633
|
if (context2.nonInteractive) {
|
|
144482
144634
|
const resolved2 = resolve12(context2.cwd, this.defaultValue);
|
|
144483
|
-
return this.success(
|
|
144635
|
+
return this.success(existsSync53(resolved2) ? resolved2 : context2.cwd);
|
|
144484
144636
|
}
|
|
144485
144637
|
WizardPrompt.printStepHeader(this.stepNumber, this.title, this.description);
|
|
144486
144638
|
if (this.examples) {
|
|
@@ -144503,7 +144655,7 @@ var PathInputStep = class extends BaseWizardCommand {
|
|
|
144503
144655
|
);
|
|
144504
144656
|
const value = input.trim() || this.defaultValue;
|
|
144505
144657
|
const resolved = resolve12(context2.cwd, value);
|
|
144506
|
-
if (this.validatePath && !
|
|
144658
|
+
if (this.validatePath && !existsSync53(resolved)) {
|
|
144507
144659
|
console.log(chalk12.yellow(` Warning: '${value}' does not exist, using current directory.`));
|
|
144508
144660
|
return this.success(context2.cwd);
|
|
144509
144661
|
}
|
|
@@ -147842,7 +147994,7 @@ import chalk21 from "chalk";
|
|
|
147842
147994
|
init_error_utils();
|
|
147843
147995
|
init_safe_db();
|
|
147844
147996
|
import chalk20 from "chalk";
|
|
147845
|
-
import { existsSync as
|
|
147997
|
+
import { existsSync as existsSync55 } from "fs";
|
|
147846
147998
|
import { join as join57 } from "path";
|
|
147847
147999
|
var FleetInitEnhancer = class {
|
|
147848
148000
|
projectRoot;
|
|
@@ -147991,7 +148143,7 @@ var FleetInitEnhancer = class {
|
|
|
147991
148143
|
*/
|
|
147992
148144
|
async hasCodeIntelligenceIndex() {
|
|
147993
148145
|
const dbPath = join57(this.projectRoot, ".agentic-qe", "memory.db");
|
|
147994
|
-
if (!
|
|
148146
|
+
if (!existsSync55(dbPath)) {
|
|
147995
148147
|
return false;
|
|
147996
148148
|
}
|
|
147997
148149
|
try {
|
|
@@ -149557,7 +149709,7 @@ function createParallelEvalRunner(skillValidationLearner, config = {}, executor2
|
|
|
149557
149709
|
|
|
149558
149710
|
// src/validation/validation-result-aggregator.ts
|
|
149559
149711
|
init_safe_json();
|
|
149560
|
-
import { readFileSync as
|
|
149712
|
+
import { readFileSync as readFileSync44, writeFileSync as writeFileSync33, existsSync as existsSync57 } from "fs";
|
|
149561
149713
|
var DEFAULT_CONFIG67 = {
|
|
149562
149714
|
varianceThreshold: 0.04,
|
|
149563
149715
|
// ~20% standard deviation
|
|
@@ -149902,10 +150054,10 @@ var ValidationResultAggregator = class {
|
|
|
149902
150054
|
* Update trust tier manifest with new pass rates
|
|
149903
150055
|
*/
|
|
149904
150056
|
async updateManifest(report) {
|
|
149905
|
-
if (!
|
|
150057
|
+
if (!existsSync57(this.manifestPath)) {
|
|
149906
150058
|
throw new Error(`Manifest file not found: ${this.manifestPath}`);
|
|
149907
150059
|
}
|
|
149908
|
-
const manifest = safeJsonParse(
|
|
150060
|
+
const manifest = safeJsonParse(readFileSync44(this.manifestPath, "utf-8"));
|
|
149909
150061
|
for (const [skillName, summary] of report.skillResults.entries()) {
|
|
149910
150062
|
if (manifest.skills && manifest.skills[skillName]) {
|
|
149911
150063
|
const skill = manifest.skills[skillName];
|
|
@@ -149932,7 +150084,7 @@ var ValidationResultAggregator = class {
|
|
|
149932
150084
|
avgPassRate: report.summary.avgPassRate,
|
|
149933
150085
|
modelsUsed: report.summary.modelsUsed
|
|
149934
150086
|
};
|
|
149935
|
-
|
|
150087
|
+
writeFileSync33(this.manifestPath, JSON.stringify(manifest, null, 2));
|
|
149936
150088
|
}
|
|
149937
150089
|
/**
|
|
149938
150090
|
* Generate markdown report
|
|
@@ -150088,10 +150240,19 @@ function createValidationResultAggregator(learner, manifestPath, config) {
|
|
|
150088
150240
|
return new ValidationResultAggregator(learner, manifestPath, config);
|
|
150089
150241
|
}
|
|
150090
150242
|
|
|
150243
|
+
// src/validation/trigger-optimizer.ts
|
|
150244
|
+
init_logging();
|
|
150245
|
+
import * as yaml2 from "yaml";
|
|
150246
|
+
var logger11 = LoggerFactory.create("trigger-optimizer");
|
|
150247
|
+
|
|
150248
|
+
// src/validation/version-comparator.ts
|
|
150249
|
+
init_logging();
|
|
150250
|
+
var logger12 = LoggerFactory.create("version-comparator");
|
|
150251
|
+
|
|
150091
150252
|
// src/learning/skill-validation-learner.ts
|
|
150092
150253
|
init_safe_json();
|
|
150093
150254
|
init_logging();
|
|
150094
|
-
var
|
|
150255
|
+
var logger13 = LoggerFactory.create("skill-validation-learner");
|
|
150095
150256
|
var SkillValidationLearner = class {
|
|
150096
150257
|
constructor(reasoningBank) {
|
|
150097
150258
|
this.reasoningBank = reasoningBank;
|
|
@@ -150174,7 +150335,7 @@ var SkillValidationLearner = class {
|
|
|
150174
150335
|
history = this.createEmptyConfidence(outcome.skillName);
|
|
150175
150336
|
}
|
|
150176
150337
|
} catch (e20) {
|
|
150177
|
-
|
|
150338
|
+
logger13.debug("Confidence history parse failed", { skill: outcome.skillName, error: e20 instanceof Error ? e20.message : String(e20) });
|
|
150178
150339
|
history = this.createEmptyConfidence(outcome.skillName);
|
|
150179
150340
|
}
|
|
150180
150341
|
} else {
|
|
@@ -150230,7 +150391,7 @@ var SkillValidationLearner = class {
|
|
|
150230
150391
|
crossModel = this.createEmptyCrossModelAnalysis();
|
|
150231
150392
|
}
|
|
150232
150393
|
} catch (e20) {
|
|
150233
|
-
|
|
150394
|
+
logger13.debug("Cross-model analysis parse failed", { error: e20 instanceof Error ? e20.message : String(e20) });
|
|
150234
150395
|
crossModel = this.createEmptyCrossModelAnalysis();
|
|
150235
150396
|
}
|
|
150236
150397
|
} else {
|
|
@@ -150319,7 +150480,7 @@ var SkillValidationLearner = class {
|
|
|
150319
150480
|
return safeJsonParse(templateContent);
|
|
150320
150481
|
}
|
|
150321
150482
|
} catch (e20) {
|
|
150322
|
-
|
|
150483
|
+
logger13.debug("Skill confidence pattern content invalid", { skill: skillName, error: e20 instanceof Error ? e20.message : String(e20) });
|
|
150323
150484
|
}
|
|
150324
150485
|
}
|
|
150325
150486
|
return null;
|
|
@@ -150337,7 +150498,7 @@ var SkillValidationLearner = class {
|
|
|
150337
150498
|
return safeJsonParse(templateContent);
|
|
150338
150499
|
}
|
|
150339
150500
|
} catch (e20) {
|
|
150340
|
-
|
|
150501
|
+
logger13.debug("Cross-model pattern content invalid", { skill: skillName, error: e20 instanceof Error ? e20.message : String(e20) });
|
|
150341
150502
|
}
|
|
150342
150503
|
}
|
|
150343
150504
|
return null;
|
|
@@ -150396,7 +150557,7 @@ var SkillValidationLearner = class {
|
|
|
150396
150557
|
}
|
|
150397
150558
|
byCategory.get(category).push(pattern);
|
|
150398
150559
|
} catch (e20) {
|
|
150399
|
-
|
|
150560
|
+
logger13.debug("Invalid pattern during category grouping", { error: e20 instanceof Error ? e20.message : String(e20) });
|
|
150400
150561
|
}
|
|
150401
150562
|
}
|
|
150402
150563
|
for (const [category, categoryPatterns] of Array.from(byCategory.entries())) {
|
|
@@ -150418,7 +150579,7 @@ var SkillValidationLearner = class {
|
|
|
150418
150579
|
tags.filter((t50) => !["skill-validation", skillName].includes(t50)).forEach((t50) => failureIndicators.add(t50));
|
|
150419
150580
|
}
|
|
150420
150581
|
} catch (e20) {
|
|
150421
|
-
|
|
150582
|
+
logger13.debug("Invalid pattern during category extraction", { error: e20 instanceof Error ? e20.message : String(e20) });
|
|
150422
150583
|
}
|
|
150423
150584
|
}
|
|
150424
150585
|
if (categoryPatterns.length > 0) {
|
|
@@ -150521,6 +150682,11 @@ var DEFAULT_ASYMMETRIC_CONFIG = {
|
|
|
150521
150682
|
};
|
|
150522
150683
|
var AsymmetricLearningEngine = class {
|
|
150523
150684
|
config;
|
|
150685
|
+
/** Optional witness chain for audit trail of Hebbian penalties (ADR-070) */
|
|
150686
|
+
_witnessChain = null;
|
|
150687
|
+
set witnessChain(wc) {
|
|
150688
|
+
this._witnessChain = wc;
|
|
150689
|
+
}
|
|
150524
150690
|
constructor(config = {}) {
|
|
150525
150691
|
this.config = {
|
|
150526
150692
|
...DEFAULT_ASYMMETRIC_CONFIG,
|
|
@@ -150544,6 +150710,16 @@ var AsymmetricLearningEngine = class {
|
|
|
150544
150710
|
computeConfidenceUpdate(currentConfidence, outcome, domain) {
|
|
150545
150711
|
const { successRate, failureRate } = this.getConfigForDomain(domain);
|
|
150546
150712
|
const delta = outcome === "success" ? successRate : -failureRate;
|
|
150713
|
+
if (outcome === "failure") {
|
|
150714
|
+
try {
|
|
150715
|
+
this._witnessChain?.append("HEBBIAN_PENALTY", {
|
|
150716
|
+
previousConfidence: currentConfidence,
|
|
150717
|
+
delta,
|
|
150718
|
+
domain
|
|
150719
|
+
}, "asymmetric-learning");
|
|
150720
|
+
} catch {
|
|
150721
|
+
}
|
|
150722
|
+
}
|
|
150547
150723
|
return clamp2(currentConfidence + delta, 0, 1);
|
|
150548
150724
|
}
|
|
150549
150725
|
/**
|
|
@@ -150643,7 +150819,7 @@ function clamp2(value, min, max) {
|
|
|
150643
150819
|
init_types();
|
|
150644
150820
|
init_circular_buffer();
|
|
150645
150821
|
init_safe_json();
|
|
150646
|
-
var
|
|
150822
|
+
var logger14 = LoggerFactory.create("RealQEReasoningBank");
|
|
150647
150823
|
var DEFAULT_REAL_CONFIG = {
|
|
150648
150824
|
sqlite: {
|
|
150649
150825
|
// ADR-046: Now uses unified storage via UnifiedMemoryManager by default
|
|
@@ -150764,15 +150940,15 @@ var RealQEReasoningBank = class {
|
|
|
150764
150940
|
if (this.initialized) return;
|
|
150765
150941
|
const startTime = performance.now();
|
|
150766
150942
|
await this.sqliteStore.initialize();
|
|
150767
|
-
|
|
150943
|
+
logger14.info("SQLite persistence initialized");
|
|
150768
150944
|
await this.initializeHNSW();
|
|
150769
|
-
|
|
150945
|
+
logger14.info("HNSW index initialized");
|
|
150770
150946
|
await this.loadPatternsIntoHNSW();
|
|
150771
150947
|
const stats = this.sqliteStore.getStats();
|
|
150772
150948
|
if (stats.totalPatterns === 0) {
|
|
150773
150949
|
const hasHistoricalData = this.sqliteStore.hasAnyHistoricalData?.() ?? false;
|
|
150774
150950
|
if (hasHistoricalData) {
|
|
150775
|
-
|
|
150951
|
+
logger14.error(
|
|
150776
150952
|
"qe_patterns table is EMPTY but historical data exists \u2014 possible data loss! Restore from backup instead of loading seed patterns. Skipping foundational pattern load to avoid masking data loss."
|
|
150777
150953
|
);
|
|
150778
150954
|
} else {
|
|
@@ -150781,7 +150957,7 @@ var RealQEReasoningBank = class {
|
|
|
150781
150957
|
}
|
|
150782
150958
|
this.initialized = true;
|
|
150783
150959
|
const initTime = performance.now() - startTime;
|
|
150784
|
-
|
|
150960
|
+
logger14.info("Fully initialized", { durationMs: Math.round(initTime) });
|
|
150785
150961
|
}
|
|
150786
150962
|
/**
|
|
150787
150963
|
* Initialize HNSW index for fast similarity search
|
|
@@ -150804,9 +150980,9 @@ var RealQEReasoningBank = class {
|
|
|
150804
150980
|
this.qeConfig.hnsw.efConstruction
|
|
150805
150981
|
);
|
|
150806
150982
|
this.hnswIndex.setEf(this.qeConfig.hnsw.efSearch);
|
|
150807
|
-
|
|
150983
|
+
logger14.info("HNSW initialized", { dimension, M: this.qeConfig.hnsw.M });
|
|
150808
150984
|
} catch (error) {
|
|
150809
|
-
|
|
150985
|
+
logger14.error("HNSW initialization failed", error instanceof Error ? error : void 0);
|
|
150810
150986
|
throw error;
|
|
150811
150987
|
}
|
|
150812
150988
|
}
|
|
@@ -150830,9 +151006,9 @@ var RealQEReasoningBank = class {
|
|
|
150830
151006
|
loaded++;
|
|
150831
151007
|
}
|
|
150832
151008
|
if (skipped > 0) {
|
|
150833
|
-
|
|
151009
|
+
logger14.warn("Skipped invalid embeddings", { skipped, expectedDim });
|
|
150834
151010
|
}
|
|
150835
|
-
|
|
151011
|
+
logger14.info("Loaded patterns into HNSW index", { count: loaded });
|
|
150836
151012
|
}
|
|
150837
151013
|
/**
|
|
150838
151014
|
* Load foundational QE patterns
|
|
@@ -150883,10 +151059,10 @@ var RealQEReasoningBank = class {
|
|
|
150883
151059
|
try {
|
|
150884
151060
|
await this.storeQEPattern(options);
|
|
150885
151061
|
} catch (error) {
|
|
150886
|
-
|
|
151062
|
+
logger14.warn("Failed to load foundational pattern", { name: options.name, error });
|
|
150887
151063
|
}
|
|
150888
151064
|
}
|
|
150889
|
-
|
|
151065
|
+
logger14.info("Loaded foundational patterns", { count: foundationalPatterns.length });
|
|
150890
151066
|
}
|
|
150891
151067
|
/**
|
|
150892
151068
|
* Store a QE pattern with REAL embeddings
|
|
@@ -150913,7 +151089,7 @@ var RealQEReasoningBank = class {
|
|
|
150913
151089
|
);
|
|
150914
151090
|
const decision = await memoryWriteGateIntegration.evaluateWrite(memoryPattern);
|
|
150915
151091
|
if (!decision.allowed) {
|
|
150916
|
-
|
|
151092
|
+
logger14.warn("Pattern blocked by MemoryWriteGate", {
|
|
150917
151093
|
name: options.name,
|
|
150918
151094
|
reason: decision.reason,
|
|
150919
151095
|
conflicts: decision.conflictingPatterns?.join(", ") || "none"
|
|
@@ -150923,7 +151099,7 @@ var RealQEReasoningBank = class {
|
|
|
150923
151099
|
}
|
|
150924
151100
|
}
|
|
150925
151101
|
} catch (govError) {
|
|
150926
|
-
|
|
151102
|
+
logger14.warn("MemoryWriteGate check error (continuing)", { error: govError });
|
|
150927
151103
|
}
|
|
150928
151104
|
}
|
|
150929
151105
|
const patternId = v4_default();
|
|
@@ -150968,7 +151144,7 @@ var RealQEReasoningBank = class {
|
|
|
150968
151144
|
domain: pattern.domain
|
|
150969
151145
|
});
|
|
150970
151146
|
} catch (regError) {
|
|
150971
|
-
|
|
151147
|
+
logger14.warn("Pattern registration with MemoryWriteGate failed", { error: regError });
|
|
150972
151148
|
}
|
|
150973
151149
|
}
|
|
150974
151150
|
return ok(pattern);
|
|
@@ -151007,7 +151183,7 @@ var RealQEReasoningBank = class {
|
|
|
151007
151183
|
}
|
|
151008
151184
|
const searchTime = performance.now() - startTime;
|
|
151009
151185
|
if (searchTime > 10) {
|
|
151010
|
-
|
|
151186
|
+
logger14.warn("Slow search", { searchTimeMs: Number(searchTime.toFixed(1)) });
|
|
151011
151187
|
}
|
|
151012
151188
|
return ok(patterns);
|
|
151013
151189
|
} catch (error) {
|
|
@@ -151109,14 +151285,14 @@ var RealQEReasoningBank = class {
|
|
|
151109
151285
|
);
|
|
151110
151286
|
const quarantineDecision = this.asymmetricEngine.shouldQuarantine(newConfidence, domain);
|
|
151111
151287
|
if (quarantineDecision.shouldQuarantine) {
|
|
151112
|
-
|
|
151288
|
+
logger14.info("Pattern quarantined (asymmetric drop)", { name: pattern.name });
|
|
151113
151289
|
}
|
|
151114
151290
|
this.sqliteStore.updatePattern(outcome.patternId, {
|
|
151115
151291
|
confidence: newConfidence
|
|
151116
151292
|
});
|
|
151117
151293
|
if (await this.checkPatternPromotionWithCoherence(pattern)) {
|
|
151118
151294
|
this.sqliteStore.promotePattern(outcome.patternId);
|
|
151119
|
-
|
|
151295
|
+
logger14.info("Pattern promoted to long-term", { name: pattern.name });
|
|
151120
151296
|
}
|
|
151121
151297
|
}
|
|
151122
151298
|
return ok(void 0);
|
|
@@ -151150,12 +151326,12 @@ var RealQEReasoningBank = class {
|
|
|
151150
151326
|
}));
|
|
151151
151327
|
const coherenceResult = await this.coherenceService.checkCoherence(coherenceNodes);
|
|
151152
151328
|
if (coherenceResult.energy >= (this.qeConfig.coherenceThreshold || 0.4)) {
|
|
151153
|
-
|
|
151329
|
+
logger14.info("Pattern promotion blocked due to coherence violation", {
|
|
151154
151330
|
name: pattern.name,
|
|
151155
151331
|
energy: coherenceResult.energy
|
|
151156
151332
|
});
|
|
151157
151333
|
if (coherenceResult.contradictions && coherenceResult.contradictions.length > 0) {
|
|
151158
|
-
|
|
151334
|
+
logger14.info("Conflicts with existing patterns", {
|
|
151159
151335
|
conflictingNodeIds: coherenceResult.contradictions.map((c70) => c70.nodeIds).flat()
|
|
151160
151336
|
});
|
|
151161
151337
|
}
|
|
@@ -151321,7 +151497,7 @@ var RealQEReasoningBank = class {
|
|
|
151321
151497
|
if (currentIndex > 0) {
|
|
151322
151498
|
const newTier = tierOrder[currentIndex - 1];
|
|
151323
151499
|
this.sqliteStore.updatePattern(patternId, { tier: newTier });
|
|
151324
|
-
|
|
151500
|
+
logger14.info("Pattern demoted", { name: pattern.name, newTier });
|
|
151325
151501
|
}
|
|
151326
151502
|
}
|
|
151327
151503
|
// ============================================================================
|
|
@@ -151348,7 +151524,7 @@ var RealQEReasoningBank = class {
|
|
|
151348
151524
|
}
|
|
151349
151525
|
}
|
|
151350
151526
|
if (cleaned > 0) {
|
|
151351
|
-
|
|
151527
|
+
logger14.info("Cleaned stale patternIdMap entries", { count: cleaned });
|
|
151352
151528
|
}
|
|
151353
151529
|
return cleaned;
|
|
151354
151530
|
}
|
|
@@ -151364,7 +151540,7 @@ var RealQEReasoningBank = class {
|
|
|
151364
151540
|
for (const [hnswIdx, id] of Array.from(this.patternIdMap.entries())) {
|
|
151365
151541
|
if (id === patternId) {
|
|
151366
151542
|
this.patternIdMap.delete(hnswIdx);
|
|
151367
|
-
|
|
151543
|
+
logger14.info("Removed pattern from HNSW mapping", { patternId });
|
|
151368
151544
|
return true;
|
|
151369
151545
|
}
|
|
151370
151546
|
}
|
|
@@ -151480,7 +151656,7 @@ var RealQEReasoningBank = class {
|
|
|
151480
151656
|
this.stats.learningOutcomes = 0;
|
|
151481
151657
|
this.stats.successfulOutcomes = 0;
|
|
151482
151658
|
this.initialized = false;
|
|
151483
|
-
|
|
151659
|
+
logger14.info("Disposed");
|
|
151484
151660
|
}
|
|
151485
151661
|
/**
|
|
151486
151662
|
* Alias for dispose() for consistency with other components
|
|
@@ -151697,21 +151873,21 @@ function formatDuration2(ms) {
|
|
|
151697
151873
|
// src/cli/commands/validate.ts
|
|
151698
151874
|
init_safe_json();
|
|
151699
151875
|
import { Command as Command10 } from "commander";
|
|
151700
|
-
import { readFileSync as
|
|
151876
|
+
import { readFileSync as readFileSync45, writeFileSync as writeFileSync34, existsSync as existsSync58, readdirSync as readdirSync15, statSync as statSync13 } from "fs";
|
|
151701
151877
|
import { join as join59, resolve as resolve14, basename as basename8 } from "path";
|
|
151702
151878
|
import chalk23 from "chalk";
|
|
151703
151879
|
function loadValidationResults(inputPath) {
|
|
151704
151880
|
const resolvedPath = resolve14(inputPath);
|
|
151705
|
-
if (!
|
|
151881
|
+
if (!existsSync58(resolvedPath)) {
|
|
151706
151882
|
throw new Error(`Input path not found: ${resolvedPath}`);
|
|
151707
151883
|
}
|
|
151708
151884
|
const stat4 = statSync13(resolvedPath);
|
|
151709
151885
|
if (stat4.isDirectory()) {
|
|
151710
151886
|
const results = [];
|
|
151711
|
-
const files =
|
|
151887
|
+
const files = readdirSync15(resolvedPath).filter((f74) => f74.endsWith(".json")).map((f74) => join59(resolvedPath, f74));
|
|
151712
151888
|
for (const file of files) {
|
|
151713
151889
|
try {
|
|
151714
|
-
const content = safeJsonParse(
|
|
151890
|
+
const content = safeJsonParse(readFileSync45(file, "utf-8"));
|
|
151715
151891
|
if (isValidationRunResult(content)) {
|
|
151716
151892
|
results.push(content);
|
|
151717
151893
|
} else if (Array.isArray(content)) {
|
|
@@ -151727,7 +151903,7 @@ function loadValidationResults(inputPath) {
|
|
|
151727
151903
|
}
|
|
151728
151904
|
return results;
|
|
151729
151905
|
} else {
|
|
151730
|
-
const content = safeJsonParse(
|
|
151906
|
+
const content = safeJsonParse(readFileSync45(resolvedPath, "utf-8"));
|
|
151731
151907
|
if (isValidationRunResult(content)) {
|
|
151732
151908
|
return [content];
|
|
151733
151909
|
} else if (Array.isArray(content)) {
|
|
@@ -151762,7 +151938,7 @@ function getDefaultManifestPath() {
|
|
|
151762
151938
|
join59(cwd, ".claude/skills/skills-manifest.json")
|
|
151763
151939
|
];
|
|
151764
151940
|
for (const candidate of candidates) {
|
|
151765
|
-
if (
|
|
151941
|
+
if (existsSync58(candidate)) {
|
|
151766
151942
|
return candidate;
|
|
151767
151943
|
}
|
|
151768
151944
|
}
|
|
@@ -151774,7 +151950,7 @@ function writeReport(report, aggregator, options) {
|
|
|
151774
151950
|
const markdown = aggregator.generateMarkdownReport(report);
|
|
151775
151951
|
if (options.output) {
|
|
151776
151952
|
const mdPath = format === "both" ? options.output.replace(/\.\w+$/, ".md") : options.output;
|
|
151777
|
-
|
|
151953
|
+
writeFileSync34(mdPath, markdown);
|
|
151778
151954
|
console.log(chalk23.green(`Markdown report written to: ${mdPath}`));
|
|
151779
151955
|
} else {
|
|
151780
151956
|
console.log("\n" + markdown);
|
|
@@ -151784,7 +151960,7 @@ function writeReport(report, aggregator, options) {
|
|
|
151784
151960
|
const json = aggregator.generateJsonReport(report);
|
|
151785
151961
|
if (options.output) {
|
|
151786
151962
|
const jsonPath = format === "both" ? options.output.replace(/\.\w+$/, ".json") : options.output;
|
|
151787
|
-
|
|
151963
|
+
writeFileSync34(jsonPath, json);
|
|
151788
151964
|
console.log(chalk23.green(`JSON report written to: ${jsonPath}`));
|
|
151789
151965
|
} else {
|
|
151790
151966
|
console.log("\n" + json);
|
|
@@ -151983,7 +152159,7 @@ Updating manifest: ${manifestPath}`));
|
|
|
151983
152159
|
newSkills,
|
|
151984
152160
|
removedSkills
|
|
151985
152161
|
};
|
|
151986
|
-
|
|
152162
|
+
writeFileSync34(options.output, JSON.stringify(comparison, null, 2));
|
|
151987
152163
|
console.log(chalk23.green(`
|
|
151988
152164
|
Comparison written to: ${options.output}`));
|
|
151989
152165
|
}
|
|
@@ -154351,7 +154527,7 @@ init_error_utils();
|
|
|
154351
154527
|
init_logging();
|
|
154352
154528
|
import * as fs26 from "fs";
|
|
154353
154529
|
import * as path27 from "path";
|
|
154354
|
-
var
|
|
154530
|
+
var logger15 = LoggerFactory.create("sqlite-reader");
|
|
154355
154531
|
var SQLiteReader = class {
|
|
154356
154532
|
name;
|
|
154357
154533
|
type = "sqlite";
|
|
@@ -154447,7 +154623,7 @@ var SQLiteReader = class {
|
|
|
154447
154623
|
const result = stmt.get();
|
|
154448
154624
|
return result.count;
|
|
154449
154625
|
} catch (error) {
|
|
154450
|
-
|
|
154626
|
+
logger15.debug("Record count query failed", { table: tableName, error: toErrorMessage(error) });
|
|
154451
154627
|
return 0;
|
|
154452
154628
|
}
|
|
154453
154629
|
}
|
|
@@ -154488,7 +154664,7 @@ var SQLiteReader = class {
|
|
|
154488
154664
|
const result = stmt.get(tableName);
|
|
154489
154665
|
return !!result;
|
|
154490
154666
|
} catch (e20) {
|
|
154491
|
-
|
|
154667
|
+
logger15.debug("Table existence check failed", { table: tableName, error: e20 instanceof Error ? e20.message : String(e20) });
|
|
154492
154668
|
return false;
|
|
154493
154669
|
}
|
|
154494
154670
|
}
|
|
@@ -154509,7 +154685,7 @@ var SQLiteReader = class {
|
|
|
154509
154685
|
}
|
|
154510
154686
|
}
|
|
154511
154687
|
} catch (e20) {
|
|
154512
|
-
|
|
154688
|
+
logger15.debug("Timestamp column detection failed", { table: tableName, error: e20 instanceof Error ? e20.message : String(e20) });
|
|
154513
154689
|
return null;
|
|
154514
154690
|
}
|
|
154515
154691
|
return null;
|
|
@@ -154527,7 +154703,7 @@ var SQLiteReader = class {
|
|
|
154527
154703
|
try {
|
|
154528
154704
|
transformed[key] = safeJsonParse(value);
|
|
154529
154705
|
} catch (e20) {
|
|
154530
|
-
|
|
154706
|
+
logger15.debug("JSON parse failed for record field", { key, error: e20 instanceof Error ? e20.message : String(e20) });
|
|
154531
154707
|
}
|
|
154532
154708
|
}
|
|
154533
154709
|
if (key.endsWith("_at") && typeof value === "number") {
|
|
@@ -154850,7 +155026,7 @@ function createJSONReader(config) {
|
|
|
154850
155026
|
init_logging();
|
|
154851
155027
|
import { spawn as spawn8 } from "child_process";
|
|
154852
155028
|
import { createConnection } from "net";
|
|
154853
|
-
var
|
|
155029
|
+
var logger16 = LoggerFactory.create("tunnel-manager");
|
|
154854
155030
|
function redactConnectionString(url) {
|
|
154855
155031
|
try {
|
|
154856
155032
|
const parsed = new URL(url);
|
|
@@ -154859,7 +155035,7 @@ function redactConnectionString(url) {
|
|
|
154859
155035
|
}
|
|
154860
155036
|
return parsed.toString();
|
|
154861
155037
|
} catch (e20) {
|
|
154862
|
-
|
|
155038
|
+
logger16.debug("URL parse failed during redaction, using regex fallback", { error: e20 instanceof Error ? e20.message : String(e20) });
|
|
154863
155039
|
return url.replace(/:\/\/([^:]+):([^@]+)@/, "://$1:***@");
|
|
154864
155040
|
}
|
|
154865
155041
|
}
|
|
@@ -155085,7 +155261,7 @@ init_sql_safety();
|
|
|
155085
155261
|
init_error_utils();
|
|
155086
155262
|
init_logging();
|
|
155087
155263
|
import { createRequire as createRequire9 } from "module";
|
|
155088
|
-
var
|
|
155264
|
+
var logger17 = LoggerFactory.create("postgres-writer");
|
|
155089
155265
|
var requirePg = createRequire9(import.meta.url);
|
|
155090
155266
|
var PostgresWriter = class {
|
|
155091
155267
|
client = null;
|
|
@@ -155111,7 +155287,7 @@ var PostgresWriter = class {
|
|
|
155111
155287
|
try {
|
|
155112
155288
|
pg = requirePg("pg");
|
|
155113
155289
|
} catch (e20) {
|
|
155114
|
-
|
|
155290
|
+
logger17.debug("pg module not installed, using mock mode", { error: e20 instanceof Error ? e20.message : String(e20) });
|
|
155115
155291
|
console.warn("[PostgresWriter] pg module not installed, running in mock mode");
|
|
155116
155292
|
this.client = this.createMockClient();
|
|
155117
155293
|
this.connected = true;
|
|
@@ -155192,7 +155368,7 @@ var PostgresWriter = class {
|
|
|
155192
155368
|
} catch (error) {
|
|
155193
155369
|
const batchNum = Math.floor(i58 / batchSize) + 1;
|
|
155194
155370
|
const totalBatches = Math.ceil(records.length / batchSize);
|
|
155195
|
-
|
|
155371
|
+
logger17.debug(`Batch ${batchNum}/${totalBatches} failed for ${table}, retrying individually`, { error: toErrorMessage(error) });
|
|
155196
155372
|
let recovered = 0;
|
|
155197
155373
|
for (const record of batch) {
|
|
155198
155374
|
try {
|
|
@@ -155200,7 +155376,7 @@ var PostgresWriter = class {
|
|
|
155200
155376
|
recovered += inserted;
|
|
155201
155377
|
} catch (retryError) {
|
|
155202
155378
|
const recordId = record["id"] || record["key"] || "?";
|
|
155203
|
-
|
|
155379
|
+
logger17.debug(`Skipped record ${String(recordId).slice(0, 50)} in ${table}`, { error: toErrorMessage(retryError) });
|
|
155204
155380
|
}
|
|
155205
155381
|
}
|
|
155206
155382
|
totalInserted += recovered;
|
|
@@ -155250,7 +155426,7 @@ var PostgresWriter = class {
|
|
|
155250
155426
|
const result = await this.client.query(sql, params);
|
|
155251
155427
|
return result.rowCount || 0;
|
|
155252
155428
|
} catch (error) {
|
|
155253
|
-
|
|
155429
|
+
logger17.debug(`Upsert failed for ${table}`, { error: toErrorMessage(error) });
|
|
155254
155430
|
throw error;
|
|
155255
155431
|
}
|
|
155256
155432
|
}
|
|
@@ -155301,7 +155477,7 @@ var PostgresWriter = class {
|
|
|
155301
155477
|
return `[${Array.from(floats).join(",")}]`;
|
|
155302
155478
|
}
|
|
155303
155479
|
} catch (e20) {
|
|
155304
|
-
|
|
155480
|
+
logger17.debug("Buffer to float array conversion failed", { error: e20 instanceof Error ? e20.message : String(e20) });
|
|
155305
155481
|
}
|
|
155306
155482
|
return null;
|
|
155307
155483
|
}
|
|
@@ -155460,7 +155636,7 @@ function createPostgresWriter(config) {
|
|
|
155460
155636
|
init_sql_safety();
|
|
155461
155637
|
init_error_utils();
|
|
155462
155638
|
init_logging();
|
|
155463
|
-
var
|
|
155639
|
+
var logger18 = LoggerFactory.create("postgres-reader");
|
|
155464
155640
|
var PostgresReader = class {
|
|
155465
155641
|
writer;
|
|
155466
155642
|
environment;
|
|
@@ -155499,7 +155675,7 @@ var PostgresReader = class {
|
|
|
155499
155675
|
}
|
|
155500
155676
|
try {
|
|
155501
155677
|
const rows = await this.writer.query(sql, params);
|
|
155502
|
-
|
|
155678
|
+
logger18.debug(`Read ${rows.length} records from ${source.cloudTable}`, {
|
|
155503
155679
|
env: this.environment
|
|
155504
155680
|
});
|
|
155505
155681
|
return rows.map((row) => this.transformRecord(row, source));
|
|
@@ -155516,7 +155692,7 @@ var PostgresReader = class {
|
|
|
155516
155692
|
const safeTable = this.sanitizeCloudTable(source.cloudTable);
|
|
155517
155693
|
const timestampCol = await this.findTimestampColumn(safeTable);
|
|
155518
155694
|
if (!timestampCol) {
|
|
155519
|
-
|
|
155695
|
+
logger18.debug(`No timestamp column found for ${source.cloudTable}, falling back to readAll`);
|
|
155520
155696
|
return this.readAll(source);
|
|
155521
155697
|
}
|
|
155522
155698
|
let sql;
|
|
@@ -155532,7 +155708,7 @@ var PostgresReader = class {
|
|
|
155532
155708
|
const rows = await this.writer.query(sql, params);
|
|
155533
155709
|
return rows.map((row) => this.transformRecord(row, source));
|
|
155534
155710
|
} catch (error) {
|
|
155535
|
-
|
|
155711
|
+
logger18.debug(`Changed query failed for ${source.cloudTable}, falling back to readAll`, {
|
|
155536
155712
|
error: toErrorMessage(error)
|
|
155537
155713
|
});
|
|
155538
155714
|
return this.readAll(source);
|
|
@@ -155563,7 +155739,7 @@ var PostgresReader = class {
|
|
|
155563
155739
|
await this.writer.rollback();
|
|
155564
155740
|
} catch {
|
|
155565
155741
|
}
|
|
155566
|
-
|
|
155742
|
+
logger18.debug(`Count query failed for ${source.cloudTable}`, {
|
|
155567
155743
|
error: toErrorMessage(error)
|
|
155568
155744
|
});
|
|
155569
155745
|
return -1;
|
|
@@ -155655,7 +155831,7 @@ init_sql_safety();
|
|
|
155655
155831
|
init_error_utils();
|
|
155656
155832
|
init_logging();
|
|
155657
155833
|
import * as fs28 from "fs";
|
|
155658
|
-
var
|
|
155834
|
+
var logger19 = LoggerFactory.create("sqlite-writer");
|
|
155659
155835
|
var SQLiteWriter = class {
|
|
155660
155836
|
db = null;
|
|
155661
155837
|
dbPath;
|
|
@@ -155676,7 +155852,7 @@ var SQLiteWriter = class {
|
|
|
155676
155852
|
this.db = openDatabase(this.dbPath);
|
|
155677
155853
|
this.db.pragma("journal_mode = WAL");
|
|
155678
155854
|
this.db.pragma("synchronous = NORMAL");
|
|
155679
|
-
|
|
155855
|
+
logger19.debug(`Opened SQLite database: ${this.dbPath}`);
|
|
155680
155856
|
} catch (error) {
|
|
155681
155857
|
throw new Error(`Failed to open SQLite database ${this.dbPath}: ${toErrorMessage(error)}`);
|
|
155682
155858
|
}
|
|
@@ -155695,7 +155871,7 @@ var SQLiteWriter = class {
|
|
|
155695
155871
|
}
|
|
155696
155872
|
const localColumns = this.getTableColumns(table);
|
|
155697
155873
|
if (localColumns.length === 0) {
|
|
155698
|
-
|
|
155874
|
+
logger19.debug(`No columns found for table ${table}`);
|
|
155699
155875
|
return 0;
|
|
155700
155876
|
}
|
|
155701
155877
|
const localColumnSet = new Set(localColumns);
|
|
@@ -155707,7 +155883,7 @@ var SQLiteWriter = class {
|
|
|
155707
155883
|
totalWritten += written;
|
|
155708
155884
|
} catch (error) {
|
|
155709
155885
|
const batchNum = Math.floor(i58 / this.batchSize) + 1;
|
|
155710
|
-
|
|
155886
|
+
logger19.debug(`Batch ${batchNum} failed for ${table}, retrying individually`, {
|
|
155711
155887
|
error: toErrorMessage(error)
|
|
155712
155888
|
});
|
|
155713
155889
|
let recovered = 0;
|
|
@@ -155716,7 +155892,7 @@ var SQLiteWriter = class {
|
|
|
155716
155892
|
recovered += this.upsertBatch(safeTable, [record], localColumnSet);
|
|
155717
155893
|
} catch (retryError) {
|
|
155718
155894
|
const recordId = record["id"] || record["key"] || "?";
|
|
155719
|
-
|
|
155895
|
+
logger19.debug(`Skipped record ${String(recordId).slice(0, 50)} in ${table}`, {
|
|
155720
155896
|
error: toErrorMessage(retryError)
|
|
155721
155897
|
});
|
|
155722
155898
|
}
|
|
@@ -155747,7 +155923,7 @@ var SQLiteWriter = class {
|
|
|
155747
155923
|
if (this.db) {
|
|
155748
155924
|
this.db.close();
|
|
155749
155925
|
this.db = null;
|
|
155750
|
-
|
|
155926
|
+
logger19.debug("SQLite writer closed");
|
|
155751
155927
|
}
|
|
155752
155928
|
}
|
|
155753
155929
|
/**
|
|
@@ -155859,7 +156035,7 @@ function createSQLiteWriter(config) {
|
|
|
155859
156035
|
init_esm_node();
|
|
155860
156036
|
init_logging();
|
|
155861
156037
|
init_error_utils();
|
|
155862
|
-
var
|
|
156038
|
+
var logger20 = LoggerFactory.create("sync-agent");
|
|
155863
156039
|
var CloudSyncAgent = class {
|
|
155864
156040
|
config;
|
|
155865
156041
|
readers = /* @__PURE__ */ new Map();
|
|
@@ -156094,7 +156270,7 @@ var CloudSyncAgent = class {
|
|
|
156094
156270
|
await this.writer.rollback();
|
|
156095
156271
|
} catch {
|
|
156096
156272
|
}
|
|
156097
|
-
|
|
156273
|
+
logger20.debug("Cloud count query failed", { source: source.name, error: e20 instanceof Error ? e20.message : String(e20) });
|
|
156098
156274
|
cloudCount = -1;
|
|
156099
156275
|
}
|
|
156100
156276
|
}
|
|
@@ -156217,7 +156393,7 @@ import * as fs29 from "fs";
|
|
|
156217
156393
|
import * as path29 from "path";
|
|
156218
156394
|
init_error_utils();
|
|
156219
156395
|
init_logging();
|
|
156220
|
-
var
|
|
156396
|
+
var logger21 = LoggerFactory.create("pull-agent");
|
|
156221
156397
|
var PullSyncAgent = class {
|
|
156222
156398
|
config;
|
|
156223
156399
|
reader = null;
|
|
@@ -156530,7 +156706,7 @@ init_safe_json();
|
|
|
156530
156706
|
init_logging();
|
|
156531
156707
|
import { resolve as resolve21, dirname as dirname25 } from "path";
|
|
156532
156708
|
import { fileURLToPath as fileURLToPath8 } from "url";
|
|
156533
|
-
var
|
|
156709
|
+
var logger22 = LoggerFactory.create("sync-embedding-generator");
|
|
156534
156710
|
var __filename6 = fileURLToPath8(import.meta.url);
|
|
156535
156711
|
var __dirname6 = dirname25(__filename6);
|
|
156536
156712
|
|
|
@@ -156966,9 +157142,9 @@ var CohomologyAdapter = class {
|
|
|
156966
157142
|
* @param wasmLoader - WASM module loader
|
|
156967
157143
|
* @param logger - Optional logger for diagnostics
|
|
156968
157144
|
*/
|
|
156969
|
-
constructor(wasmLoader2,
|
|
157145
|
+
constructor(wasmLoader2, logger25 = DEFAULT_COHERENCE_LOGGER) {
|
|
156970
157146
|
this.wasmLoader = wasmLoader2;
|
|
156971
|
-
this.logger =
|
|
157147
|
+
this.logger = logger25;
|
|
156972
157148
|
}
|
|
156973
157149
|
engine = null;
|
|
156974
157150
|
initialized = false;
|
|
@@ -157312,9 +157488,9 @@ var SpectralAdapter = class {
|
|
|
157312
157488
|
* @param wasmLoader - WASM module loader
|
|
157313
157489
|
* @param logger - Optional logger for diagnostics
|
|
157314
157490
|
*/
|
|
157315
|
-
constructor(wasmLoader2,
|
|
157491
|
+
constructor(wasmLoader2, logger25 = DEFAULT_COHERENCE_LOGGER) {
|
|
157316
157492
|
this.wasmLoader = wasmLoader2;
|
|
157317
|
-
this.logger =
|
|
157493
|
+
this.logger = logger25;
|
|
157318
157494
|
}
|
|
157319
157495
|
engine = null;
|
|
157320
157496
|
initialized = false;
|
|
@@ -157723,9 +157899,9 @@ var CausalAdapter = class {
|
|
|
157723
157899
|
* @param wasmLoader - WASM module loader
|
|
157724
157900
|
* @param logger - Optional logger for diagnostics
|
|
157725
157901
|
*/
|
|
157726
|
-
constructor(wasmLoader2,
|
|
157902
|
+
constructor(wasmLoader2, logger25 = DEFAULT_COHERENCE_LOGGER) {
|
|
157727
157903
|
this.wasmLoader = wasmLoader2;
|
|
157728
|
-
this.logger =
|
|
157904
|
+
this.logger = logger25;
|
|
157729
157905
|
}
|
|
157730
157906
|
engine = null;
|
|
157731
157907
|
initialized = false;
|
|
@@ -158018,9 +158194,9 @@ var CategoryAdapter = class {
|
|
|
158018
158194
|
* @param wasmLoader - WASM module loader
|
|
158019
158195
|
* @param logger - Optional logger for diagnostics
|
|
158020
158196
|
*/
|
|
158021
|
-
constructor(wasmLoader2,
|
|
158197
|
+
constructor(wasmLoader2, logger25 = DEFAULT_COHERENCE_LOGGER) {
|
|
158022
158198
|
this.wasmLoader = wasmLoader2;
|
|
158023
|
-
this.logger =
|
|
158199
|
+
this.logger = logger25;
|
|
158024
158200
|
}
|
|
158025
158201
|
engine = null;
|
|
158026
158202
|
initialized = false;
|
|
@@ -158332,9 +158508,9 @@ var HomotopyAdapter = class {
|
|
|
158332
158508
|
* @param wasmLoader - WASM module loader
|
|
158333
158509
|
* @param logger - Optional logger for diagnostics
|
|
158334
158510
|
*/
|
|
158335
|
-
constructor(wasmLoader2,
|
|
158511
|
+
constructor(wasmLoader2, logger25 = DEFAULT_COHERENCE_LOGGER) {
|
|
158336
158512
|
this.wasmLoader = wasmLoader2;
|
|
158337
|
-
this.logger =
|
|
158513
|
+
this.logger = logger25;
|
|
158338
158514
|
}
|
|
158339
158515
|
engine = null;
|
|
158340
158516
|
initialized = false;
|
|
@@ -158535,9 +158711,9 @@ var WitnessAdapter = class {
|
|
|
158535
158711
|
* @param wasmLoader - WASM module loader
|
|
158536
158712
|
* @param logger - Optional logger for diagnostics
|
|
158537
158713
|
*/
|
|
158538
|
-
constructor(wasmLoader2,
|
|
158714
|
+
constructor(wasmLoader2, logger25 = DEFAULT_COHERENCE_LOGGER) {
|
|
158539
158715
|
this.wasmLoader = wasmLoader2;
|
|
158540
|
-
this.logger =
|
|
158716
|
+
this.logger = logger25;
|
|
158541
158717
|
}
|
|
158542
158718
|
engine = null;
|
|
158543
158719
|
initialized = false;
|
|
@@ -158832,10 +159008,10 @@ var CoherenceService = class {
|
|
|
158832
159008
|
* @param config - Optional service configuration
|
|
158833
159009
|
* @param logger - Optional logger for diagnostics
|
|
158834
159010
|
*/
|
|
158835
|
-
constructor(wasmLoader2, config = {},
|
|
159011
|
+
constructor(wasmLoader2, config = {}, logger25) {
|
|
158836
159012
|
this.wasmLoader = wasmLoader2;
|
|
158837
159013
|
this.config = { ...DEFAULT_COHERENCE_CONFIG, ...config };
|
|
158838
|
-
this.logger =
|
|
159014
|
+
this.logger = logger25 || DEFAULT_COHERENCE_LOGGER;
|
|
158839
159015
|
}
|
|
158840
159016
|
config;
|
|
158841
159017
|
logger;
|
|
@@ -159536,8 +159712,8 @@ var CoherenceService = class {
|
|
|
159536
159712
|
return (hash >>> 0).toString(16).padStart(8, "0");
|
|
159537
159713
|
}
|
|
159538
159714
|
};
|
|
159539
|
-
async function createCoherenceService(wasmLoader2, config,
|
|
159540
|
-
const service = new CoherenceService(wasmLoader2, config,
|
|
159715
|
+
async function createCoherenceService(wasmLoader2, config, logger25) {
|
|
159716
|
+
const service = new CoherenceService(wasmLoader2, config, logger25);
|
|
159541
159717
|
await service.initialize();
|
|
159542
159718
|
return service;
|
|
159543
159719
|
}
|
|
@@ -159547,7 +159723,7 @@ init_error_utils();
|
|
|
159547
159723
|
import { createRequire as createRequire11 } from "node:module";
|
|
159548
159724
|
import { fileURLToPath as fileURLToPath9 } from "node:url";
|
|
159549
159725
|
import { dirname as dirname26, join as join63 } from "node:path";
|
|
159550
|
-
import { readFileSync as
|
|
159726
|
+
import { readFileSync as readFileSync49, existsSync as existsSync64 } from "node:fs";
|
|
159551
159727
|
var FALLBACK_RETRY_DELAYS_MS = [1e3, 2e3, 4e3];
|
|
159552
159728
|
var WasmLoader = class {
|
|
159553
159729
|
state = "unloaded";
|
|
@@ -159813,7 +159989,7 @@ var WasmLoader = class {
|
|
|
159813
159989
|
join63(process.cwd(), "node_modules/prime-radiant-advanced-wasm/prime_radiant_advanced_wasm_bg.wasm")
|
|
159814
159990
|
].filter((p74) => p74 !== null);
|
|
159815
159991
|
for (const path36 of wasmPaths) {
|
|
159816
|
-
if (
|
|
159992
|
+
if (existsSync64(path36)) {
|
|
159817
159993
|
return true;
|
|
159818
159994
|
}
|
|
159819
159995
|
}
|
|
@@ -160076,7 +160252,7 @@ var WasmLoader = class {
|
|
|
160076
160252
|
].filter((p74) => p74 !== null);
|
|
160077
160253
|
let wasmPath = null;
|
|
160078
160254
|
for (const path36 of wasmPaths) {
|
|
160079
|
-
if (
|
|
160255
|
+
if (existsSync64(path36)) {
|
|
160080
160256
|
wasmPath = path36;
|
|
160081
160257
|
break;
|
|
160082
160258
|
}
|
|
@@ -160088,7 +160264,7 @@ ${wasmPaths.join("\n")}
|
|
|
160088
160264
|
Ensure prime-radiant-advanced-wasm is installed.`
|
|
160089
160265
|
);
|
|
160090
160266
|
}
|
|
160091
|
-
const wasmBytes =
|
|
160267
|
+
const wasmBytes = readFileSync49(wasmPath);
|
|
160092
160268
|
if (wasmModule.initSync && typeof wasmModule.initSync === "function") {
|
|
160093
160269
|
wasmModule.initSync({ module: wasmBytes });
|
|
160094
160270
|
} else {
|
|
@@ -161383,7 +161559,7 @@ init_qe_patterns();
|
|
|
161383
161559
|
import { Command as Command17 } from "commander";
|
|
161384
161560
|
import chalk31 from "chalk";
|
|
161385
161561
|
import path34 from "node:path";
|
|
161386
|
-
import { existsSync as
|
|
161562
|
+
import { existsSync as existsSync66, writeFileSync as writeFileSync39, readFileSync as readFileSync50, mkdirSync as mkdirSync32, copyFileSync as copyFileSync12 } from "node:fs";
|
|
161387
161563
|
import { stat as stat3, unlink } from "node:fs/promises";
|
|
161388
161564
|
|
|
161389
161565
|
// src/learning/metrics-tracker.ts
|
|
@@ -161392,8 +161568,8 @@ init_qe_patterns();
|
|
|
161392
161568
|
init_safe_json();
|
|
161393
161569
|
init_logging();
|
|
161394
161570
|
import path32 from "node:path";
|
|
161395
|
-
import { existsSync as
|
|
161396
|
-
var
|
|
161571
|
+
import { existsSync as existsSync65 } from "node:fs";
|
|
161572
|
+
var logger24 = LoggerFactory.create("metrics-tracker");
|
|
161397
161573
|
var LearningMetricsTracker = class {
|
|
161398
161574
|
db = null;
|
|
161399
161575
|
dbPath;
|
|
@@ -161406,7 +161582,7 @@ var LearningMetricsTracker = class {
|
|
|
161406
161582
|
*/
|
|
161407
161583
|
async initialize() {
|
|
161408
161584
|
if (this.initialized) return;
|
|
161409
|
-
if (!
|
|
161585
|
+
if (!existsSync65(this.dbPath)) {
|
|
161410
161586
|
throw new Error(`Database not found: ${this.dbPath}. Run "aqe init --auto" first.`);
|
|
161411
161587
|
}
|
|
161412
161588
|
this.db = openDatabase(this.dbPath);
|
|
@@ -161486,10 +161662,10 @@ var LearningMetricsTracker = class {
|
|
|
161486
161662
|
reuseCount: 0
|
|
161487
161663
|
};
|
|
161488
161664
|
}
|
|
161489
|
-
const
|
|
161665
|
+
const tableExists3 = this.db.prepare(
|
|
161490
161666
|
`SELECT name FROM sqlite_master WHERE type='table' AND name='qe_patterns'`
|
|
161491
161667
|
).get();
|
|
161492
|
-
if (!
|
|
161668
|
+
if (!tableExists3) {
|
|
161493
161669
|
return {
|
|
161494
161670
|
total: 0,
|
|
161495
161671
|
createdToday: 0,
|
|
@@ -161573,10 +161749,10 @@ var LearningMetricsTracker = class {
|
|
|
161573
161749
|
*/
|
|
161574
161750
|
getQValueStats() {
|
|
161575
161751
|
if (!this.db) return { total: 0 };
|
|
161576
|
-
const
|
|
161752
|
+
const tableExists3 = this.db.prepare(
|
|
161577
161753
|
`SELECT name FROM sqlite_master WHERE type='table' AND name='rl_q_values'`
|
|
161578
161754
|
).get();
|
|
161579
|
-
if (!
|
|
161755
|
+
if (!tableExists3) return { total: 0 };
|
|
161580
161756
|
const stats = this.db.prepare(`
|
|
161581
161757
|
SELECT COUNT(*) as total FROM rl_q_values
|
|
161582
161758
|
`).get();
|
|
@@ -161591,10 +161767,10 @@ var LearningMetricsTracker = class {
|
|
|
161591
161767
|
coverage[domain] = 0;
|
|
161592
161768
|
}
|
|
161593
161769
|
if (!this.db) return coverage;
|
|
161594
|
-
const
|
|
161770
|
+
const tableExists3 = this.db.prepare(
|
|
161595
161771
|
`SELECT name FROM sqlite_master WHERE type='table' AND name='qe_patterns'`
|
|
161596
161772
|
).get();
|
|
161597
|
-
if (!
|
|
161773
|
+
if (!tableExists3) return coverage;
|
|
161598
161774
|
const rows = this.db.prepare(`
|
|
161599
161775
|
SELECT qe_domain, COUNT(*) as count
|
|
161600
161776
|
FROM qe_patterns
|
|
@@ -161612,10 +161788,10 @@ var LearningMetricsTracker = class {
|
|
|
161612
161788
|
*/
|
|
161613
161789
|
getHistoricalAvgReward(date) {
|
|
161614
161790
|
if (!this.db) return 0;
|
|
161615
|
-
const
|
|
161791
|
+
const tableExists3 = this.db.prepare(
|
|
161616
161792
|
`SELECT name FROM sqlite_master WHERE type='table' AND name='learning_experiences'`
|
|
161617
161793
|
).get();
|
|
161618
|
-
if (
|
|
161794
|
+
if (tableExists3) {
|
|
161619
161795
|
const result = this.db.prepare(`
|
|
161620
161796
|
SELECT AVG(reward) as avg_reward
|
|
161621
161797
|
FROM learning_experiences
|
|
@@ -161657,10 +161833,10 @@ var LearningMetricsTracker = class {
|
|
|
161657
161833
|
if (!this.initialized) await this.initialize();
|
|
161658
161834
|
if (!this.db) return [];
|
|
161659
161835
|
const history = [];
|
|
161660
|
-
const
|
|
161836
|
+
const tableExists3 = this.db.prepare(
|
|
161661
161837
|
`SELECT name FROM sqlite_master WHERE type='table' AND name='learning_daily_snapshots'`
|
|
161662
161838
|
).get();
|
|
161663
|
-
if (!
|
|
161839
|
+
if (!tableExists3) {
|
|
161664
161840
|
return [];
|
|
161665
161841
|
}
|
|
161666
161842
|
const rows = this.db.prepare(`
|
|
@@ -161674,7 +161850,7 @@ var LearningMetricsTracker = class {
|
|
|
161674
161850
|
try {
|
|
161675
161851
|
domainCoverage = safeJsonParse(row.domain_coverage_json || "{}");
|
|
161676
161852
|
} catch (e20) {
|
|
161677
|
-
|
|
161853
|
+
logger24.debug("Domain coverage JSON parse failed", { error: e20 instanceof Error ? e20.message : String(e20) });
|
|
161678
161854
|
for (const domain of QE_DOMAIN_LIST) {
|
|
161679
161855
|
domainCoverage[domain] = 0;
|
|
161680
161856
|
}
|
|
@@ -161938,10 +162114,10 @@ async function verifyDatabaseIntegrity(dbPath) {
|
|
|
161938
162114
|
async function getSchemaVersion(dbPath) {
|
|
161939
162115
|
try {
|
|
161940
162116
|
const db = openDatabase(dbPath, { readonly: true });
|
|
161941
|
-
const
|
|
162117
|
+
const tableExists3 = db.prepare(
|
|
161942
162118
|
"SELECT name FROM sqlite_master WHERE type='table' AND name='schema_version'"
|
|
161943
162119
|
).get();
|
|
161944
|
-
if (!
|
|
162120
|
+
if (!tableExists3) {
|
|
161945
162121
|
db.close();
|
|
161946
162122
|
return 0;
|
|
161947
162123
|
}
|
|
@@ -162191,7 +162367,7 @@ function registerExportCommand(learning) {
|
|
|
162191
162367
|
printJson2(exportData);
|
|
162192
162368
|
} else {
|
|
162193
162369
|
const outputPath = path34.resolve(options.output);
|
|
162194
|
-
|
|
162370
|
+
writeFileSync39(outputPath, JSON.stringify(exportData, null, 2), "utf-8");
|
|
162195
162371
|
printSuccess2(`Exported ${patterns.length} patterns to ${outputPath}`);
|
|
162196
162372
|
}
|
|
162197
162373
|
process.exit(0);
|
|
@@ -162205,8 +162381,8 @@ function registerImportCommand(learning) {
|
|
|
162205
162381
|
learning.command("import").description("Import patterns from file").requiredOption("-i, --input <file>", "Input file path").option("--dry-run", "Show what would be imported without making changes").option("--json", "Output as JSON").action(async (options) => {
|
|
162206
162382
|
try {
|
|
162207
162383
|
const inputPath = path34.resolve(options.input);
|
|
162208
|
-
if (!
|
|
162209
|
-
const content =
|
|
162384
|
+
if (!existsSync66(inputPath)) throw new Error(`File not found: ${inputPath}`);
|
|
162385
|
+
const content = readFileSync50(inputPath, "utf-8");
|
|
162210
162386
|
const importData = safeJsonParse(content);
|
|
162211
162387
|
if (!importData.patterns || !Array.isArray(importData.patterns)) throw new Error("Invalid pattern file format");
|
|
162212
162388
|
const reasoningBank = await initializeLearningSystem2();
|
|
@@ -162274,7 +162450,7 @@ function registerResetCommand(learning) {
|
|
|
162274
162450
|
if (!options.patternsOnly) filesToReset.push(path34.join(dataDir, "data", "learning-config.json"));
|
|
162275
162451
|
console.log(chalk31.bold("\n\u{1F5D1}\uFE0F Resetting Learning Data\n"));
|
|
162276
162452
|
for (const file of filesToReset) {
|
|
162277
|
-
if (
|
|
162453
|
+
if (existsSync66(file)) console.log(chalk31.dim(` Removing: ${path34.relative(projectRoot, file)}`));
|
|
162278
162454
|
}
|
|
162279
162455
|
printSuccess2('Learning data reset. Run "aqe init --auto" to reinitialize.\n');
|
|
162280
162456
|
process.exit(0);
|
|
@@ -162289,7 +162465,7 @@ function registerExtractCommand(learning) {
|
|
|
162289
162465
|
try {
|
|
162290
162466
|
const projectRoot = findProjectRoot();
|
|
162291
162467
|
const dbPath = path34.join(projectRoot, ".agentic-qe", "memory.db");
|
|
162292
|
-
if (!
|
|
162468
|
+
if (!existsSync66(dbPath)) throw new Error('No memory database found. Run "aqe init --auto" first.');
|
|
162293
162469
|
const minReward = parseFloat(options.minReward);
|
|
162294
162470
|
const minCount = parseInt(options.minCount, 10);
|
|
162295
162471
|
console.log(chalk31.bold("\n\u{1F52C} Pattern Extraction from Learning Experiences\n"));
|
|
@@ -162442,22 +162618,22 @@ function registerBackupCommand(learning) {
|
|
|
162442
162618
|
learning.command("backup").description("Backup learning database to a file").option("-o, --output <path>", "Output file path").option("--compress", "Compress backup with gzip").option("--verify", "Verify backup integrity after creation").option("--json", "Output as JSON").action(async (options) => {
|
|
162443
162619
|
try {
|
|
162444
162620
|
const dbPath = getDbPath();
|
|
162445
|
-
if (!
|
|
162621
|
+
if (!existsSync66(dbPath)) throw new Error(`No learning database found at: ${dbPath}`);
|
|
162446
162622
|
const timestamp = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-").slice(0, 19);
|
|
162447
162623
|
const defaultOutput = path34.join(process.cwd(), "backups", `learning-${timestamp}.db`);
|
|
162448
162624
|
let outputPath = options.output ? path34.resolve(options.output) : defaultOutput;
|
|
162449
162625
|
const backupDir = path34.dirname(outputPath);
|
|
162450
|
-
if (!
|
|
162626
|
+
if (!existsSync66(backupDir)) mkdirSync32(backupDir, { recursive: true });
|
|
162451
162627
|
const sourceStats = await stat3(dbPath);
|
|
162452
162628
|
const sourceSizeKB = (sourceStats.size / 1024).toFixed(2);
|
|
162453
162629
|
copyFileSync12(dbPath, outputPath);
|
|
162454
162630
|
const walPath = `${dbPath}-wal`;
|
|
162455
|
-
if (
|
|
162631
|
+
if (existsSync66(walPath)) copyFileSync12(walPath, `${outputPath}-wal`);
|
|
162456
162632
|
let finalPath = outputPath;
|
|
162457
162633
|
if (options.compress) {
|
|
162458
162634
|
finalPath = await compressFile(outputPath);
|
|
162459
162635
|
await unlink(outputPath);
|
|
162460
|
-
if (
|
|
162636
|
+
if (existsSync66(`${outputPath}-wal`)) await unlink(`${outputPath}-wal`);
|
|
162461
162637
|
}
|
|
162462
162638
|
const finalStats = await stat3(finalPath);
|
|
162463
162639
|
const finalSizeKB = (finalStats.size / 1024).toFixed(2);
|
|
@@ -162495,7 +162671,7 @@ function registerRestoreCommand(learning) {
|
|
|
162495
162671
|
try {
|
|
162496
162672
|
const inputPath = path34.resolve(options.input);
|
|
162497
162673
|
const dbPath = getDbPath();
|
|
162498
|
-
if (!
|
|
162674
|
+
if (!existsSync66(inputPath)) throw new Error(`Backup file not found: ${inputPath}`);
|
|
162499
162675
|
const isCompressed = inputPath.endsWith(".gz");
|
|
162500
162676
|
let restorePath = inputPath;
|
|
162501
162677
|
if (isCompressed) {
|
|
@@ -162506,23 +162682,23 @@ function registerRestoreCommand(learning) {
|
|
|
162506
162682
|
if (options.verify) {
|
|
162507
162683
|
const verificationResult = await verifyDatabaseIntegrity(restorePath);
|
|
162508
162684
|
if (!verificationResult.valid) {
|
|
162509
|
-
if (isCompressed &&
|
|
162685
|
+
if (isCompressed && existsSync66(restorePath)) await unlink(restorePath);
|
|
162510
162686
|
throw new Error(`Backup verification failed: ${verificationResult.message}`);
|
|
162511
162687
|
}
|
|
162512
162688
|
}
|
|
162513
|
-
if (
|
|
162689
|
+
if (existsSync66(dbPath) && !options.force) {
|
|
162514
162690
|
printError2(`Database already exists at: ${dbPath}`);
|
|
162515
162691
|
console.log(chalk31.yellow(" Use --force to overwrite"));
|
|
162516
|
-
if (isCompressed &&
|
|
162692
|
+
if (isCompressed && existsSync66(restorePath)) await unlink(restorePath);
|
|
162517
162693
|
process.exit(1);
|
|
162518
162694
|
}
|
|
162519
162695
|
const targetDir = path34.dirname(dbPath);
|
|
162520
|
-
if (!
|
|
162521
|
-
if (
|
|
162522
|
-
if (
|
|
162523
|
-
if (
|
|
162696
|
+
if (!existsSync66(targetDir)) mkdirSync32(targetDir, { recursive: true });
|
|
162697
|
+
if (existsSync66(dbPath)) await unlink(dbPath);
|
|
162698
|
+
if (existsSync66(`${dbPath}-wal`)) await unlink(`${dbPath}-wal`);
|
|
162699
|
+
if (existsSync66(`${dbPath}-shm`)) await unlink(`${dbPath}-shm`);
|
|
162524
162700
|
copyFileSync12(restorePath, dbPath);
|
|
162525
|
-
if (isCompressed &&
|
|
162701
|
+
if (isCompressed && existsSync66(restorePath)) await unlink(restorePath);
|
|
162526
162702
|
const restoredStats = await stat3(dbPath);
|
|
162527
162703
|
const schemaVersion = await getSchemaVersion(dbPath);
|
|
162528
162704
|
if (options.json) {
|
|
@@ -162546,7 +162722,7 @@ function registerVerifyCommand(learning) {
|
|
|
162546
162722
|
learning.command("verify").description("Verify learning database integrity").option("-f, --file <path>", "Database file to verify (defaults to current)").option("--json", "Output as JSON").action(async (options) => {
|
|
162547
162723
|
try {
|
|
162548
162724
|
const dbPath = options.file ? path34.resolve(options.file) : getDbPath();
|
|
162549
|
-
if (!
|
|
162725
|
+
if (!existsSync66(dbPath)) throw new Error(`Database file not found: ${dbPath}`);
|
|
162550
162726
|
const verificationResult = await verifyDatabaseIntegrity(dbPath);
|
|
162551
162727
|
const schemaVersion = await getSchemaVersion(dbPath);
|
|
162552
162728
|
const fileStats = await stat3(dbPath);
|
|
@@ -162588,7 +162764,7 @@ function registerExportFullCommand(learning) {
|
|
|
162588
162764
|
learning.command("export-full").description("Export all learning data including patterns, trajectories, and experiences").option("-o, --output <file>", "Output file path", "aqe-learning-export.json").option("--compress", "Compress output with gzip").option("--include-trajectories", "Include learning trajectories").option("--include-experiences", "Include learning experiences").option("--json", "Output as JSON (to stdout)").action(async (options) => {
|
|
162589
162765
|
try {
|
|
162590
162766
|
const dbPath = getDbPath();
|
|
162591
|
-
if (!
|
|
162767
|
+
if (!existsSync66(dbPath)) throw new Error('No learning database found. Run "aqe init --auto" first.');
|
|
162592
162768
|
const reasoningBank = await initializeLearningSystem2();
|
|
162593
162769
|
const schemaVersion = await getSchemaVersion(dbPath);
|
|
162594
162770
|
const searchResult = await reasoningBank.searchPatterns("*", { limit: 1e4 });
|
|
@@ -162641,7 +162817,7 @@ function registerExportFullCommand(learning) {
|
|
|
162641
162817
|
printJson2(exportData);
|
|
162642
162818
|
} else {
|
|
162643
162819
|
let outputPath = path34.resolve(options.output);
|
|
162644
|
-
|
|
162820
|
+
writeFileSync39(outputPath, JSON.stringify(exportData, null, 2), "utf-8");
|
|
162645
162821
|
if (options.compress) {
|
|
162646
162822
|
const compressedPath = await compressFile(outputPath);
|
|
162647
162823
|
await unlink(outputPath);
|
|
@@ -162667,15 +162843,15 @@ function registerImportMergeCommand(learning) {
|
|
|
162667
162843
|
learning.command("import-merge").description("Import and merge patterns from export file (preserves existing data)").requiredOption("-i, --input <file>", "Input file path").option("--skip-duplicates", "Skip patterns with matching names (default: update)").option("--dry-run", "Show what would be imported without making changes").option("--json", "Output as JSON").action(async (options) => {
|
|
162668
162844
|
try {
|
|
162669
162845
|
let inputPath = path34.resolve(options.input);
|
|
162670
|
-
if (!
|
|
162846
|
+
if (!existsSync66(inputPath)) throw new Error(`File not found: ${inputPath}`);
|
|
162671
162847
|
let content;
|
|
162672
162848
|
if (inputPath.endsWith(".gz")) {
|
|
162673
162849
|
const tempPath = inputPath.replace(".gz", ".tmp.json");
|
|
162674
162850
|
await decompressFile(inputPath, tempPath);
|
|
162675
|
-
content =
|
|
162851
|
+
content = readFileSync50(tempPath, "utf-8");
|
|
162676
162852
|
await unlink(tempPath);
|
|
162677
162853
|
} else {
|
|
162678
|
-
content =
|
|
162854
|
+
content = readFileSync50(inputPath, "utf-8");
|
|
162679
162855
|
}
|
|
162680
162856
|
const importData = safeJsonParse(content);
|
|
162681
162857
|
if (!importData.patterns || !Array.isArray(importData.patterns)) throw new Error("Invalid import file format: missing patterns array");
|
|
@@ -162950,7 +163126,7 @@ function registerDreamCommand(learning) {
|
|
|
162950
163126
|
import { Command as Command18 } from "commander";
|
|
162951
163127
|
import { spawn as spawn9 } from "child_process";
|
|
162952
163128
|
import { join as join64, dirname as dirname27 } from "path";
|
|
162953
|
-
import { existsSync as
|
|
163129
|
+
import { existsSync as existsSync67 } from "fs";
|
|
162954
163130
|
import { fileURLToPath as fileURLToPath10 } from "url";
|
|
162955
163131
|
function createMcpCommand() {
|
|
162956
163132
|
const cmd = new Command18("mcp").description("Start the MCP protocol server for Claude Code integration").option("--http <port>", "Also start HTTP server for AG-UI/A2A protocols", "0").option("--verbose", "Enable verbose logging").action(async (options) => {
|
|
@@ -163002,7 +163178,7 @@ function findMcpEntry() {
|
|
|
163002
163178
|
join64(process.cwd(), "node_modules", "agentic-qe", "dist", "mcp", "entry.js")
|
|
163003
163179
|
];
|
|
163004
163180
|
for (const candidate of candidates) {
|
|
163005
|
-
if (
|
|
163181
|
+
if (existsSync67(candidate)) {
|
|
163006
163182
|
return candidate;
|
|
163007
163183
|
}
|
|
163008
163184
|
}
|
|
@@ -163014,7 +163190,7 @@ init_platform_config_generator();
|
|
|
163014
163190
|
init_error_utils();
|
|
163015
163191
|
import { Command as Command19 } from "commander";
|
|
163016
163192
|
import chalk32 from "chalk";
|
|
163017
|
-
import { existsSync as
|
|
163193
|
+
import { existsSync as existsSync68, readFileSync as readFileSync51 } from "node:fs";
|
|
163018
163194
|
import path35 from "node:path";
|
|
163019
163195
|
|
|
163020
163196
|
// import("../../init/**/*-installer.js") in src/cli/commands/platform.ts
|
|
@@ -163029,13 +163205,13 @@ function getConfigStatus(projectRoot, platform) {
|
|
|
163029
163205
|
const configPath = path35.join(projectRoot, platform.configPath);
|
|
163030
163206
|
const rulesPath = path35.join(projectRoot, platform.rulesPath);
|
|
163031
163207
|
return {
|
|
163032
|
-
configExists:
|
|
163033
|
-
rulesExists:
|
|
163208
|
+
configExists: existsSync68(configPath),
|
|
163209
|
+
rulesExists: existsSync68(rulesPath)
|
|
163034
163210
|
};
|
|
163035
163211
|
}
|
|
163036
163212
|
function parseConfigFile(filePath, format) {
|
|
163037
163213
|
try {
|
|
163038
|
-
const content =
|
|
163214
|
+
const content = readFileSync51(filePath, "utf-8");
|
|
163039
163215
|
if (format === "json") {
|
|
163040
163216
|
const data = JSON.parse(content);
|
|
163041
163217
|
return { valid: true, data };
|
|
@@ -163059,7 +163235,7 @@ function parseConfigFile(filePath, format) {
|
|
|
163059
163235
|
}
|
|
163060
163236
|
function checkAqeEntry(filePath, platform) {
|
|
163061
163237
|
try {
|
|
163062
|
-
const content =
|
|
163238
|
+
const content = readFileSync51(filePath, "utf-8");
|
|
163063
163239
|
return content.includes("agentic-qe");
|
|
163064
163240
|
} catch {
|
|
163065
163241
|
return false;
|
|
@@ -163179,13 +163355,13 @@ function createPlatformCommand() {
|
|
|
163179
163355
|
console.log("");
|
|
163180
163356
|
let allPassed = true;
|
|
163181
163357
|
const configPath = path35.join(projectRoot, platform.configPath);
|
|
163182
|
-
if (
|
|
163358
|
+
if (existsSync68(configPath)) {
|
|
163183
163359
|
console.log(chalk32.green(` [pass] Config file exists: ${platform.configPath}`));
|
|
163184
163360
|
} else {
|
|
163185
163361
|
console.log(chalk32.red(` [fail] Config file missing: ${platform.configPath}`));
|
|
163186
163362
|
allPassed = false;
|
|
163187
163363
|
}
|
|
163188
|
-
if (
|
|
163364
|
+
if (existsSync68(configPath)) {
|
|
163189
163365
|
const parseResult = parseConfigFile(configPath, platform.configFormat);
|
|
163190
163366
|
if (parseResult.valid) {
|
|
163191
163367
|
console.log(chalk32.green(` [pass] Config file is valid ${platform.configFormat.toUpperCase()}`));
|
|
@@ -163201,7 +163377,7 @@ function createPlatformCommand() {
|
|
|
163201
163377
|
}
|
|
163202
163378
|
}
|
|
163203
163379
|
const rulesPath = path35.join(projectRoot, platform.rulesPath);
|
|
163204
|
-
if (
|
|
163380
|
+
if (existsSync68(rulesPath)) {
|
|
163205
163381
|
console.log(chalk32.green(` [pass] Rules file exists: ${platform.rulesPath}`));
|
|
163206
163382
|
} else {
|
|
163207
163383
|
console.log(chalk32.red(` [fail] Rules file missing: ${platform.rulesPath}`));
|
|
@@ -163406,7 +163582,7 @@ async function cleanupAndExit(code = 0) {
|
|
|
163406
163582
|
process.exit(code);
|
|
163407
163583
|
}
|
|
163408
163584
|
var program = new Command20();
|
|
163409
|
-
var VERSION = true ? "3.7.
|
|
163585
|
+
var VERSION = true ? "3.7.14" : "0.0.0-dev";
|
|
163410
163586
|
program.name("aqe").description("Agentic QE - Domain-Driven Quality Engineering").version(VERSION);
|
|
163411
163587
|
var registry2 = createCommandRegistry(context, cleanupAndExit, ensureInitialized, ensureInitializedStrict);
|
|
163412
163588
|
registry2.registerAll(program);
|