agentic-qe 3.3.3 → 3.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/agents/v3/README.md +100 -0
- package/.claude/agents/v3/qe-accessibility-auditor.md +112 -11
- package/.claude/agents/v3/qe-bdd-generator.md +40 -0
- package/.claude/agents/v3/qe-coverage-specialist.md +39 -0
- package/.claude/agents/v3/qe-defect-predictor.md +36 -0
- package/.claude/agents/v3/qe-gap-detector.md +39 -0
- package/.claude/agents/v3/qe-pattern-learner.md +31 -0
- package/.claude/agents/v3/qe-product-factors-assessor.md +34 -0
- package/.claude/agents/v3/qe-quality-criteria-recommender.md +32 -0
- package/.claude/agents/v3/qe-quality-gate.md +39 -0
- package/.claude/agents/v3/qe-queen-coordinator.md +332 -166
- package/.claude/agents/v3/qe-requirements-validator.md +37 -0
- package/.claude/agents/v3/qe-risk-assessor.md +33 -0
- package/.claude/agents/v3/qe-tdd-specialist.md +33 -0
- package/.claude/agents/v3/qe-test-architect.md +36 -0
- package/.claude/helpers/statusline-v3.cjs +38 -42
- package/.claude/skills/README.md +30 -104
- package/.claude/skills/a11y-ally/SKILL.md +1658 -0
- package/.claude/skills/qcsd-ideation-swarm/SKILL.md +1750 -0
- package/.claude/skills/skills-manifest.json +78 -8
- package/README.md +18 -4
- package/package.json +1 -1
- package/scripts/cloud-db-config.json +10 -5
- package/scripts/demo-warmup.sh +45 -0
- package/scripts/fetch-content.js +460 -0
- package/scripts/merge-v3-to-root.sql +48 -0
- package/v3/CHANGELOG.md +166 -0
- package/v3/README.md +11 -6
- package/v3/assets/agents/v3/README.md +100 -0
- package/v3/assets/agents/v3/qe-accessibility-auditor.md +112 -11
- package/v3/assets/agents/v3/qe-bdd-generator.md +40 -0
- package/v3/assets/agents/v3/qe-coverage-specialist.md +39 -0
- package/v3/assets/agents/v3/qe-defect-predictor.md +36 -0
- package/v3/assets/agents/v3/qe-gap-detector.md +39 -0
- package/v3/assets/agents/v3/qe-pattern-learner.md +31 -0
- package/v3/assets/agents/v3/qe-product-factors-assessor.md +34 -0
- package/v3/assets/agents/v3/qe-quality-criteria-recommender.md +32 -0
- package/v3/assets/agents/v3/qe-quality-gate.md +39 -0
- package/v3/assets/agents/v3/qe-queen-coordinator.md +332 -166
- package/v3/assets/agents/v3/qe-requirements-validator.md +37 -0
- package/v3/assets/agents/v3/qe-risk-assessor.md +33 -0
- package/v3/assets/agents/v3/qe-tdd-specialist.md +33 -0
- package/v3/assets/agents/v3/qe-test-architect.md +36 -0
- package/v3/assets/hooks/cross-phase-memory.yaml +253 -0
- package/v3/assets/skills/a11y-ally/SKILL.md +1658 -0
- package/v3/assets/skills/qcsd-ideation-swarm/SKILL.md +1750 -0
- package/v3/assets/skills/skills-manifest.json +753 -0
- package/v3/dist/adapters/claude-flow/model-router-bridge.d.ts.map +1 -1
- package/v3/dist/adapters/claude-flow/model-router-bridge.js +6 -4
- package/v3/dist/adapters/claude-flow/model-router-bridge.js.map +1 -1
- package/v3/dist/adapters/claude-flow/pretrain-bridge.d.ts.map +1 -1
- package/v3/dist/adapters/claude-flow/pretrain-bridge.js +13 -8
- package/v3/dist/adapters/claude-flow/pretrain-bridge.js.map +1 -1
- package/v3/dist/adapters/claude-flow/trajectory-bridge.d.ts.map +1 -1
- package/v3/dist/adapters/claude-flow/trajectory-bridge.js +9 -6
- package/v3/dist/adapters/claude-flow/trajectory-bridge.js.map +1 -1
- package/v3/dist/benchmarks/performance-benchmarks.d.ts.map +1 -1
- package/v3/dist/benchmarks/performance-benchmarks.js +5 -3
- package/v3/dist/benchmarks/performance-benchmarks.js.map +1 -1
- package/v3/dist/cli/bundle.js +27646 -23204
- package/v3/dist/cli/commands/hooks.d.ts.map +1 -1
- package/v3/dist/cli/commands/hooks.js +288 -0
- package/v3/dist/cli/commands/hooks.js.map +1 -1
- package/v3/dist/cli/commands/sync.d.ts.map +1 -1
- package/v3/dist/cli/commands/sync.js +0 -6
- package/v3/dist/cli/commands/sync.js.map +1 -1
- package/v3/dist/cli/handlers/init-handler.d.ts.map +1 -1
- package/v3/dist/cli/handlers/init-handler.js +11 -0
- package/v3/dist/cli/handlers/init-handler.js.map +1 -1
- package/v3/dist/cli/index.js +14 -2
- package/v3/dist/cli/index.js.map +1 -1
- package/v3/dist/cli/scheduler/persistent-scheduler.d.ts.map +1 -1
- package/v3/dist/cli/scheduler/persistent-scheduler.js +3 -2
- package/v3/dist/cli/scheduler/persistent-scheduler.js.map +1 -1
- package/v3/dist/cli/wizards/test-wizard.d.ts.map +1 -1
- package/v3/dist/cli/wizards/test-wizard.js +6 -4
- package/v3/dist/cli/wizards/test-wizard.js.map +1 -1
- package/v3/dist/coordination/consensus/providers/claude-provider.js +1 -1
- package/v3/dist/coordination/consensus/providers/gemini-provider.js +1 -1
- package/v3/dist/coordination/consensus/providers/native-learning-provider.d.ts.map +1 -1
- package/v3/dist/coordination/consensus/providers/native-learning-provider.js +10 -8
- package/v3/dist/coordination/consensus/providers/native-learning-provider.js.map +1 -1
- package/v3/dist/coordination/consensus/providers/ollama-provider.d.ts.map +1 -1
- package/v3/dist/coordination/consensus/providers/ollama-provider.js +5 -4
- package/v3/dist/coordination/consensus/providers/ollama-provider.js.map +1 -1
- package/v3/dist/coordination/consensus/providers/openai-provider.d.ts.map +1 -1
- package/v3/dist/coordination/consensus/providers/openai-provider.js +5 -4
- package/v3/dist/coordination/consensus/providers/openai-provider.js.map +1 -1
- package/v3/dist/coordination/constants.d.ts +198 -0
- package/v3/dist/coordination/constants.d.ts.map +1 -0
- package/v3/dist/coordination/constants.js +210 -0
- package/v3/dist/coordination/constants.js.map +1 -0
- package/v3/dist/coordination/mincut/dream-integration.d.ts.map +1 -1
- package/v3/dist/coordination/mincut/dream-integration.js +5 -1
- package/v3/dist/coordination/mincut/dream-integration.js.map +1 -1
- package/v3/dist/coordination/queen-coordinator.d.ts +9 -1
- package/v3/dist/coordination/queen-coordinator.d.ts.map +1 -1
- package/v3/dist/coordination/queen-coordinator.js +49 -9
- package/v3/dist/coordination/queen-coordinator.js.map +1 -1
- package/v3/dist/coordination/task-executor.d.ts.map +1 -1
- package/v3/dist/coordination/task-executor.js +7 -8
- package/v3/dist/coordination/task-executor.js.map +1 -1
- package/v3/dist/coordination/workflow-orchestrator.d.ts.map +1 -1
- package/v3/dist/coordination/workflow-orchestrator.js +261 -0
- package/v3/dist/coordination/workflow-orchestrator.js.map +1 -1
- package/v3/dist/domains/chaos-resilience/plugin.d.ts +14 -3
- package/v3/dist/domains/chaos-resilience/plugin.d.ts.map +1 -1
- package/v3/dist/domains/chaos-resilience/plugin.js +96 -0
- package/v3/dist/domains/chaos-resilience/plugin.js.map +1 -1
- package/v3/dist/domains/chaos-resilience/services/performance-profiler.d.ts.map +1 -1
- package/v3/dist/domains/chaos-resilience/services/performance-profiler.js +12 -8
- package/v3/dist/domains/chaos-resilience/services/performance-profiler.js.map +1 -1
- package/v3/dist/domains/code-intelligence/plugin.d.ts +13 -3
- package/v3/dist/domains/code-intelligence/plugin.d.ts.map +1 -1
- package/v3/dist/domains/code-intelligence/plugin.js +85 -0
- package/v3/dist/domains/code-intelligence/plugin.js.map +1 -1
- package/v3/dist/domains/code-intelligence/services/product-factors-bridge.d.ts.map +1 -1
- package/v3/dist/domains/code-intelligence/services/product-factors-bridge.js +3 -2
- package/v3/dist/domains/code-intelligence/services/product-factors-bridge.js.map +1 -1
- package/v3/dist/domains/constants.d.ts +481 -0
- package/v3/dist/domains/constants.d.ts.map +1 -0
- package/v3/dist/domains/constants.js +503 -0
- package/v3/dist/domains/constants.js.map +1 -0
- package/v3/dist/domains/contract-testing/plugin.d.ts +6 -1
- package/v3/dist/domains/contract-testing/plugin.d.ts.map +1 -1
- package/v3/dist/domains/contract-testing/plugin.js +80 -1
- package/v3/dist/domains/contract-testing/plugin.js.map +1 -1
- package/v3/dist/domains/contract-testing/services/contract-validator.d.ts.map +1 -1
- package/v3/dist/domains/contract-testing/services/contract-validator.js +5 -4
- package/v3/dist/domains/contract-testing/services/contract-validator.js.map +1 -1
- package/v3/dist/domains/coverage-analysis/services/hnsw-index.d.ts.map +1 -1
- package/v3/dist/domains/coverage-analysis/services/hnsw-index.js +1 -0
- package/v3/dist/domains/coverage-analysis/services/hnsw-index.js.map +1 -1
- package/v3/dist/domains/defect-intelligence/coordinator.d.ts +2 -2
- package/v3/dist/domains/defect-intelligence/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/defect-intelligence/coordinator.js.map +1 -1
- package/v3/dist/domains/defect-intelligence/plugin.d.ts +6 -1
- package/v3/dist/domains/defect-intelligence/plugin.d.ts.map +1 -1
- package/v3/dist/domains/defect-intelligence/plugin.js +101 -0
- package/v3/dist/domains/defect-intelligence/plugin.js.map +1 -1
- package/v3/dist/domains/defect-intelligence/services/defect-predictor.d.ts.map +1 -1
- package/v3/dist/domains/defect-intelligence/services/defect-predictor.js +3 -2
- package/v3/dist/domains/defect-intelligence/services/defect-predictor.js.map +1 -1
- package/v3/dist/domains/domain-interface.d.ts.map +1 -1
- package/v3/dist/domains/domain-interface.js +24 -9
- package/v3/dist/domains/domain-interface.js.map +1 -1
- package/v3/dist/domains/learning-optimization/plugin.d.ts +2 -1
- package/v3/dist/domains/learning-optimization/plugin.d.ts.map +1 -1
- package/v3/dist/domains/learning-optimization/plugin.js +49 -0
- package/v3/dist/domains/learning-optimization/plugin.js.map +1 -1
- package/v3/dist/domains/quality-assessment/coordinator.d.ts +90 -1
- package/v3/dist/domains/quality-assessment/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/quality-assessment/coordinator.js +310 -0
- package/v3/dist/domains/quality-assessment/coordinator.js.map +1 -1
- package/v3/dist/domains/requirements-validation/index.d.ts +1 -0
- package/v3/dist/domains/requirements-validation/index.d.ts.map +1 -1
- package/v3/dist/domains/requirements-validation/index.js +2 -0
- package/v3/dist/domains/requirements-validation/index.js.map +1 -1
- package/v3/dist/domains/requirements-validation/plugin.d.ts +13 -1
- package/v3/dist/domains/requirements-validation/plugin.d.ts.map +1 -1
- package/v3/dist/domains/requirements-validation/plugin.js +94 -0
- package/v3/dist/domains/requirements-validation/plugin.js.map +1 -1
- package/v3/dist/domains/requirements-validation/qcsd-ideation-plugin.d.ts +245 -0
- package/v3/dist/domains/requirements-validation/qcsd-ideation-plugin.d.ts.map +1 -0
- package/v3/dist/domains/requirements-validation/qcsd-ideation-plugin.js +1143 -0
- package/v3/dist/domains/requirements-validation/qcsd-ideation-plugin.js.map +1 -0
- package/v3/dist/domains/requirements-validation/services/product-factors-assessment/code-intelligence/codebase-analyzer.d.ts.map +1 -1
- package/v3/dist/domains/requirements-validation/services/product-factors-assessment/code-intelligence/codebase-analyzer.js +3 -2
- package/v3/dist/domains/requirements-validation/services/product-factors-assessment/code-intelligence/codebase-analyzer.js.map +1 -1
- package/v3/dist/domains/security-compliance/plugin.d.ts +3 -2
- package/v3/dist/domains/security-compliance/plugin.d.ts.map +1 -1
- package/v3/dist/domains/security-compliance/plugin.js +64 -0
- package/v3/dist/domains/security-compliance/plugin.js.map +1 -1
- package/v3/dist/domains/security-compliance/services/scanners/dast-auth-testing.d.ts +25 -0
- package/v3/dist/domains/security-compliance/services/scanners/dast-auth-testing.d.ts.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/dast-auth-testing.js +160 -0
- package/v3/dist/domains/security-compliance/services/scanners/dast-auth-testing.js.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/dast-helpers.d.ts +48 -0
- package/v3/dist/domains/security-compliance/services/scanners/dast-helpers.d.ts.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/dast-helpers.js +385 -0
- package/v3/dist/domains/security-compliance/services/scanners/dast-helpers.js.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/dast-injection-testing.d.ts +20 -0
- package/v3/dist/domains/security-compliance/services/scanners/dast-injection-testing.d.ts.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/dast-injection-testing.js +99 -0
- package/v3/dist/domains/security-compliance/services/scanners/dast-injection-testing.js.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/dast-scanner.d.ts +62 -0
- package/v3/dist/domains/security-compliance/services/scanners/dast-scanner.d.ts.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/dast-scanner.js +329 -0
- package/v3/dist/domains/security-compliance/services/scanners/dast-scanner.js.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/dependency-scanner.d.ts +46 -0
- package/v3/dist/domains/security-compliance/services/scanners/dependency-scanner.d.ts.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/dependency-scanner.js +180 -0
- package/v3/dist/domains/security-compliance/services/scanners/dependency-scanner.js.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/index.d.ts +14 -0
- package/v3/dist/domains/security-compliance/services/scanners/index.d.ts.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/index.js +16 -0
- package/v3/dist/domains/security-compliance/services/scanners/index.js.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/sast-scanner.d.ts +92 -0
- package/v3/dist/domains/security-compliance/services/scanners/sast-scanner.d.ts.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/sast-scanner.js +440 -0
- package/v3/dist/domains/security-compliance/services/scanners/sast-scanner.js.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/scanner-orchestrator.d.ts +78 -0
- package/v3/dist/domains/security-compliance/services/scanners/scanner-orchestrator.d.ts.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/scanner-orchestrator.js +179 -0
- package/v3/dist/domains/security-compliance/services/scanners/scanner-orchestrator.js.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/scanner-types.d.ts +91 -0
- package/v3/dist/domains/security-compliance/services/scanners/scanner-types.d.ts.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/scanner-types.js +15 -0
- package/v3/dist/domains/security-compliance/services/scanners/scanner-types.js.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/security-patterns.d.ts +16 -0
- package/v3/dist/domains/security-compliance/services/scanners/security-patterns.d.ts.map +1 -0
- package/v3/dist/domains/security-compliance/services/scanners/security-patterns.js +507 -0
- package/v3/dist/domains/security-compliance/services/scanners/security-patterns.js.map +1 -0
- package/v3/dist/domains/security-compliance/services/security-auditor.d.ts.map +1 -1
- package/v3/dist/domains/security-compliance/services/security-auditor.js +2 -1
- package/v3/dist/domains/security-compliance/services/security-auditor.js.map +1 -1
- package/v3/dist/domains/security-compliance/services/security-scanner.d.ts +20 -213
- package/v3/dist/domains/security-compliance/services/security-scanner.d.ts.map +1 -1
- package/v3/dist/domains/security-compliance/services/security-scanner.js +37 -2013
- package/v3/dist/domains/security-compliance/services/security-scanner.js.map +1 -1
- package/v3/dist/domains/security-compliance/services/semgrep-integration.d.ts.map +1 -1
- package/v3/dist/domains/security-compliance/services/semgrep-integration.js +7 -6
- package/v3/dist/domains/security-compliance/services/semgrep-integration.js.map +1 -1
- package/v3/dist/domains/test-execution/services/auth-state-manager.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/services/auth-state-manager.js +6 -4
- package/v3/dist/domains/test-execution/services/auth-state-manager.js.map +1 -1
- package/v3/dist/domains/test-execution/services/e2e/assertion-handlers.d.ts +55 -0
- package/v3/dist/domains/test-execution/services/e2e/assertion-handlers.d.ts.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/assertion-handlers.js +407 -0
- package/v3/dist/domains/test-execution/services/e2e/assertion-handlers.js.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/browser-orchestrator.d.ts +122 -0
- package/v3/dist/domains/test-execution/services/e2e/browser-orchestrator.d.ts.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/browser-orchestrator.js +325 -0
- package/v3/dist/domains/test-execution/services/e2e/browser-orchestrator.js.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/e2e-coordinator.d.ts +97 -0
- package/v3/dist/domains/test-execution/services/e2e/e2e-coordinator.d.ts.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/e2e-coordinator.js +297 -0
- package/v3/dist/domains/test-execution/services/e2e/e2e-coordinator.js.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/index.d.ts +22 -0
- package/v3/dist/domains/test-execution/services/e2e/index.d.ts.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/index.js +52 -0
- package/v3/dist/domains/test-execution/services/e2e/index.js.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/result-collector.d.ts +51 -0
- package/v3/dist/domains/test-execution/services/e2e/result-collector.d.ts.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/result-collector.js +133 -0
- package/v3/dist/domains/test-execution/services/e2e/result-collector.js.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/step-executors.d.ts +48 -0
- package/v3/dist/domains/test-execution/services/e2e/step-executors.d.ts.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/step-executors.js +422 -0
- package/v3/dist/domains/test-execution/services/e2e/step-executors.js.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/step-retry-handler.d.ts +49 -0
- package/v3/dist/domains/test-execution/services/e2e/step-retry-handler.d.ts.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/step-retry-handler.js +146 -0
- package/v3/dist/domains/test-execution/services/e2e/step-retry-handler.js.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/types.d.ts +138 -0
- package/v3/dist/domains/test-execution/services/e2e/types.d.ts.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/types.js +65 -0
- package/v3/dist/domains/test-execution/services/e2e/types.js.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/wait-condition-handler.d.ts +33 -0
- package/v3/dist/domains/test-execution/services/e2e/wait-condition-handler.d.ts.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e/wait-condition-handler.js +114 -0
- package/v3/dist/domains/test-execution/services/e2e/wait-condition-handler.js.map +1 -0
- package/v3/dist/domains/test-execution/services/e2e-runner.d.ts +18 -392
- package/v3/dist/domains/test-execution/services/e2e-runner.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/services/e2e-runner.js +25 -1757
- package/v3/dist/domains/test-execution/services/e2e-runner.js.map +1 -1
- package/v3/dist/domains/test-execution/services/flaky-detector.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/services/flaky-detector.js +12 -9
- package/v3/dist/domains/test-execution/services/flaky-detector.js.map +1 -1
- package/v3/dist/domains/test-execution/services/retry-handler.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/services/retry-handler.js +7 -5
- package/v3/dist/domains/test-execution/services/retry-handler.js.map +1 -1
- package/v3/dist/domains/test-execution/services/test-executor.d.ts.map +1 -1
- package/v3/dist/domains/test-execution/services/test-executor.js +4 -3
- package/v3/dist/domains/test-execution/services/test-executor.js.map +1 -1
- package/v3/dist/domains/visual-accessibility/coordinator.d.ts +70 -0
- package/v3/dist/domains/visual-accessibility/coordinator.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/coordinator.js +172 -0
- package/v3/dist/domains/visual-accessibility/coordinator.js.map +1 -1
- package/v3/dist/domains/visual-accessibility/plugin.d.ts +2 -1
- package/v3/dist/domains/visual-accessibility/plugin.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/plugin.js +63 -0
- package/v3/dist/domains/visual-accessibility/plugin.js.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/accessibility-tester.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/accessibility-tester.js +3 -2
- package/v3/dist/domains/visual-accessibility/services/accessibility-tester.js.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/browser-security-scanner.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/browser-security-scanner.js +22 -12
- package/v3/dist/domains/visual-accessibility/services/browser-security-scanner.js.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/viewport-capture.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/viewport-capture.js +3 -2
- package/v3/dist/domains/visual-accessibility/services/viewport-capture.js.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/visual-regression.d.ts.map +1 -1
- package/v3/dist/domains/visual-accessibility/services/visual-regression.js +3 -2
- package/v3/dist/domains/visual-accessibility/services/visual-regression.js.map +1 -1
- package/v3/dist/hooks/cross-phase-hooks.d.ts +42 -0
- package/v3/dist/hooks/cross-phase-hooks.d.ts.map +1 -0
- package/v3/dist/hooks/cross-phase-hooks.js +338 -0
- package/v3/dist/hooks/cross-phase-hooks.js.map +1 -0
- package/v3/dist/hooks/index.d.ts +9 -0
- package/v3/dist/hooks/index.d.ts.map +1 -0
- package/v3/dist/hooks/index.js +9 -0
- package/v3/dist/hooks/index.js.map +1 -0
- package/v3/dist/init/agents-installer.d.ts.map +1 -1
- package/v3/dist/init/agents-installer.js +6 -4
- package/v3/dist/init/agents-installer.js.map +1 -1
- package/v3/dist/init/enhancements/claude-flow-adapter.d.ts.map +1 -1
- package/v3/dist/init/enhancements/claude-flow-adapter.js +15 -9
- package/v3/dist/init/enhancements/claude-flow-adapter.js.map +1 -1
- package/v3/dist/init/enhancements/detector.js +6 -4
- package/v3/dist/init/enhancements/detector.js.map +1 -1
- package/v3/dist/init/init-wizard.d.ts +5 -0
- package/v3/dist/init/init-wizard.d.ts.map +1 -1
- package/v3/dist/init/init-wizard.js +77 -14
- package/v3/dist/init/init-wizard.js.map +1 -1
- package/v3/dist/init/migration/data-migrator.d.ts.map +1 -1
- package/v3/dist/init/migration/data-migrator.js +6 -4
- package/v3/dist/init/migration/data-migrator.js.map +1 -1
- package/v3/dist/init/phases/02-analysis.js +2 -2
- package/v3/dist/init/phases/02-analysis.js.map +1 -1
- package/v3/dist/init/phases/04-database.d.ts.map +1 -1
- package/v3/dist/init/phases/04-database.js +0 -1
- package/v3/dist/init/phases/04-database.js.map +1 -1
- package/v3/dist/init/phases/05-learning.js +1 -1
- package/v3/dist/init/phases/05-learning.js.map +1 -1
- package/v3/dist/init/phases/11-claude-md.d.ts.map +1 -1
- package/v3/dist/init/phases/11-claude-md.js +25 -0
- package/v3/dist/init/phases/11-claude-md.js.map +1 -1
- package/v3/dist/init/phases/12-verification.d.ts.map +1 -1
- package/v3/dist/init/phases/12-verification.js +2 -1
- package/v3/dist/init/phases/12-verification.js.map +1 -1
- package/v3/dist/init/project-analyzer.d.ts.map +1 -1
- package/v3/dist/init/project-analyzer.js +12 -8
- package/v3/dist/init/project-analyzer.js.map +1 -1
- package/v3/dist/init/skills-installer.d.ts.map +1 -1
- package/v3/dist/init/skills-installer.js +6 -4
- package/v3/dist/init/skills-installer.js.map +1 -1
- package/v3/dist/init/token-bootstrap.d.ts.map +1 -1
- package/v3/dist/init/token-bootstrap.js +2 -1
- package/v3/dist/init/token-bootstrap.js.map +1 -1
- package/v3/dist/integrations/agent-booster-wasm/index.d.ts.map +1 -1
- package/v3/dist/integrations/agent-booster-wasm/index.js +8 -4
- package/v3/dist/integrations/agent-booster-wasm/index.js.map +1 -1
- package/v3/dist/integrations/agentic-flow/model-router/signal-collector.d.ts.map +1 -1
- package/v3/dist/integrations/agentic-flow/model-router/signal-collector.js +3 -2
- package/v3/dist/integrations/agentic-flow/model-router/signal-collector.js.map +1 -1
- package/v3/dist/integrations/agentic-flow/reasoning-bank/experience-replay.d.ts.map +1 -1
- package/v3/dist/integrations/agentic-flow/reasoning-bank/experience-replay.js.map +1 -1
- package/v3/dist/integrations/agentic-flow/reasoning-bank/trajectory-tracker.d.ts.map +1 -1
- package/v3/dist/integrations/agentic-flow/reasoning-bank/trajectory-tracker.js.map +1 -1
- package/v3/dist/integrations/browser/agent-browser/client.d.ts.map +1 -1
- package/v3/dist/integrations/browser/agent-browser/client.js +9 -6
- package/v3/dist/integrations/browser/agent-browser/client.js.map +1 -1
- package/v3/dist/integrations/browser/agent-browser/command-executor.d.ts.map +1 -1
- package/v3/dist/integrations/browser/agent-browser/command-executor.js +3 -2
- package/v3/dist/integrations/browser/agent-browser/command-executor.js.map +1 -1
- package/v3/dist/integrations/browser/index.d.ts +1 -0
- package/v3/dist/integrations/browser/index.d.ts.map +1 -1
- package/v3/dist/integrations/browser/index.js +6 -0
- package/v3/dist/integrations/browser/index.js.map +1 -1
- package/v3/dist/integrations/browser/web-content-fetcher.d.ts +154 -0
- package/v3/dist/integrations/browser/web-content-fetcher.d.ts.map +1 -0
- package/v3/dist/integrations/browser/web-content-fetcher.js +529 -0
- package/v3/dist/integrations/browser/web-content-fetcher.js.map +1 -0
- package/v3/dist/integrations/coherence/threshold-tuner.d.ts.map +1 -1
- package/v3/dist/integrations/coherence/threshold-tuner.js +3 -2
- package/v3/dist/integrations/coherence/threshold-tuner.js.map +1 -1
- package/v3/dist/integrations/coherence/wasm-loader.d.ts.map +1 -1
- package/v3/dist/integrations/coherence/wasm-loader.js +3 -2
- package/v3/dist/integrations/coherence/wasm-loader.js.map +1 -1
- package/v3/dist/integrations/n8n/agent-factory.d.ts.map +1 -1
- package/v3/dist/integrations/n8n/agent-factory.js +6 -4
- package/v3/dist/integrations/n8n/agent-factory.js.map +1 -1
- package/v3/dist/integrations/rl-suite/persistence/q-value-store.d.ts.map +1 -1
- package/v3/dist/integrations/rl-suite/persistence/q-value-store.js.map +1 -1
- package/v3/dist/integrations/ruvector/interfaces.js +1 -1
- package/v3/dist/integrations/ruvector/interfaces.js.map +1 -1
- package/v3/dist/integrations/ruvector/sona-persistence.d.ts.map +1 -1
- package/v3/dist/integrations/ruvector/sona-persistence.js +6 -4
- package/v3/dist/integrations/ruvector/sona-persistence.js.map +1 -1
- package/v3/dist/integrations/vibium/client.d.ts.map +1 -1
- package/v3/dist/integrations/vibium/client.js +3 -2
- package/v3/dist/integrations/vibium/client.js.map +1 -1
- package/v3/dist/kernel/agent-coordinator.d.ts +1 -1
- package/v3/dist/kernel/agent-coordinator.d.ts.map +1 -1
- package/v3/dist/kernel/agent-coordinator.js +4 -4
- package/v3/dist/kernel/agent-coordinator.js.map +1 -1
- package/v3/dist/kernel/constants.d.ts +155 -0
- package/v3/dist/kernel/constants.d.ts.map +1 -0
- package/v3/dist/kernel/constants.js +169 -0
- package/v3/dist/kernel/constants.js.map +1 -0
- package/v3/dist/kernel/event-bus.d.ts +8 -0
- package/v3/dist/kernel/event-bus.d.ts.map +1 -1
- package/v3/dist/kernel/event-bus.js +79 -17
- package/v3/dist/kernel/event-bus.js.map +1 -1
- package/v3/dist/kernel/hybrid-backend.d.ts.map +1 -1
- package/v3/dist/kernel/hybrid-backend.js +4 -3
- package/v3/dist/kernel/hybrid-backend.js.map +1 -1
- package/v3/dist/kernel/index.d.ts +1 -1
- package/v3/dist/kernel/index.d.ts.map +1 -1
- package/v3/dist/kernel/index.js +3 -1
- package/v3/dist/kernel/index.js.map +1 -1
- package/v3/dist/kernel/kernel.d.ts.map +1 -1
- package/v3/dist/kernel/kernel.js +3 -2
- package/v3/dist/kernel/kernel.js.map +1 -1
- package/v3/dist/kernel/memory-backend.d.ts.map +1 -1
- package/v3/dist/kernel/memory-backend.js +4 -3
- package/v3/dist/kernel/memory-backend.js.map +1 -1
- package/v3/dist/kernel/unified-memory.d.ts +26 -0
- package/v3/dist/kernel/unified-memory.d.ts.map +1 -1
- package/v3/dist/kernel/unified-memory.js +68 -13
- package/v3/dist/kernel/unified-memory.js.map +1 -1
- package/v3/dist/kernel/unified-persistence.js +3 -2
- package/v3/dist/kernel/unified-persistence.js.map +1 -1
- package/v3/dist/learning/aqe-learning-engine.d.ts.map +1 -1
- package/v3/dist/learning/aqe-learning-engine.js +12 -8
- package/v3/dist/learning/aqe-learning-engine.js.map +1 -1
- package/v3/dist/learning/dream/index.d.ts +1 -1
- package/v3/dist/learning/dream/index.d.ts.map +1 -1
- package/v3/dist/learning/dream/index.js +3 -1
- package/v3/dist/learning/dream/index.js.map +1 -1
- package/v3/dist/learning/dream/spreading-activation.d.ts +41 -0
- package/v3/dist/learning/dream/spreading-activation.d.ts.map +1 -1
- package/v3/dist/learning/dream/spreading-activation.js +79 -0
- package/v3/dist/learning/dream/spreading-activation.js.map +1 -1
- package/v3/dist/learning/pattern-store.d.ts.map +1 -1
- package/v3/dist/learning/pattern-store.js +16 -6
- package/v3/dist/learning/pattern-store.js.map +1 -1
- package/v3/dist/learning/qe-unified-memory.js +1 -1
- package/v3/dist/learning/qe-unified-memory.js.map +1 -1
- package/v3/dist/learning/real-embeddings.d.ts.map +1 -1
- package/v3/dist/learning/real-embeddings.js +7 -1
- package/v3/dist/learning/real-embeddings.js.map +1 -1
- package/v3/dist/learning/real-qe-reasoning-bank.js +2 -2
- package/v3/dist/learning/real-qe-reasoning-bank.js.map +1 -1
- package/v3/dist/learning/sqlite-persistence.d.ts +2 -2
- package/v3/dist/learning/sqlite-persistence.d.ts.map +1 -1
- package/v3/dist/learning/sqlite-persistence.js +1 -1
- package/v3/dist/learning/sqlite-persistence.js.map +1 -1
- package/v3/dist/learning/v2-to-v3-migration.d.ts +2 -2
- package/v3/dist/learning/v2-to-v3-migration.d.ts.map +1 -1
- package/v3/dist/learning/v2-to-v3-migration.js +2 -2
- package/v3/dist/learning/v2-to-v3-migration.js.map +1 -1
- package/v3/dist/logging/console-logger.d.ts +96 -0
- package/v3/dist/logging/console-logger.d.ts.map +1 -0
- package/v3/dist/logging/console-logger.js +247 -0
- package/v3/dist/logging/console-logger.js.map +1 -0
- package/v3/dist/logging/index.d.ts +42 -0
- package/v3/dist/logging/index.d.ts.map +1 -0
- package/v3/dist/logging/index.js +39 -0
- package/v3/dist/logging/index.js.map +1 -0
- package/v3/dist/logging/logger-factory.d.ts +145 -0
- package/v3/dist/logging/logger-factory.d.ts.map +1 -0
- package/v3/dist/logging/logger-factory.js +218 -0
- package/v3/dist/logging/logger-factory.js.map +1 -0
- package/v3/dist/logging/logger.d.ts +89 -0
- package/v3/dist/logging/logger.d.ts.map +1 -0
- package/v3/dist/logging/logger.js +74 -0
- package/v3/dist/logging/logger.js.map +1 -0
- package/v3/dist/mcp/bundle.js +11385 -7526
- package/v3/dist/mcp/handlers/agent-handlers.js +2 -2
- package/v3/dist/mcp/handlers/agent-handlers.js.map +1 -1
- package/v3/dist/mcp/handlers/core-handlers.d.ts +2 -0
- package/v3/dist/mcp/handlers/core-handlers.d.ts.map +1 -1
- package/v3/dist/mcp/handlers/core-handlers.js +33 -0
- package/v3/dist/mcp/handlers/core-handlers.js.map +1 -1
- package/v3/dist/mcp/handlers/cross-phase-handlers.d.ts +110 -0
- package/v3/dist/mcp/handlers/cross-phase-handlers.d.ts.map +1 -0
- package/v3/dist/mcp/handlers/cross-phase-handlers.js +216 -0
- package/v3/dist/mcp/handlers/cross-phase-handlers.js.map +1 -0
- package/v3/dist/mcp/handlers/domain-handler-configs.d.ts +151 -0
- package/v3/dist/mcp/handlers/domain-handler-configs.d.ts.map +1 -0
- package/v3/dist/mcp/handlers/domain-handler-configs.js +486 -0
- package/v3/dist/mcp/handlers/domain-handler-configs.js.map +1 -0
- package/v3/dist/mcp/handlers/domain-handlers.d.ts +174 -120
- package/v3/dist/mcp/handlers/domain-handlers.d.ts.map +1 -1
- package/v3/dist/mcp/handlers/domain-handlers.js +178 -1049
- package/v3/dist/mcp/handlers/domain-handlers.js.map +1 -1
- package/v3/dist/mcp/handlers/handler-factory.d.ts +182 -0
- package/v3/dist/mcp/handlers/handler-factory.d.ts.map +1 -0
- package/v3/dist/mcp/handlers/handler-factory.js +327 -0
- package/v3/dist/mcp/handlers/handler-factory.js.map +1 -0
- package/v3/dist/mcp/handlers/index.d.ts +1 -0
- package/v3/dist/mcp/handlers/index.d.ts.map +1 -1
- package/v3/dist/mcp/handlers/index.js +2 -0
- package/v3/dist/mcp/handlers/index.js.map +1 -1
- package/v3/dist/mcp/handlers/task-handlers.d.ts +1 -0
- package/v3/dist/mcp/handlers/task-handlers.d.ts.map +1 -1
- package/v3/dist/mcp/handlers/task-handlers.js +91 -7
- package/v3/dist/mcp/handlers/task-handlers.js.map +1 -1
- package/v3/dist/mcp/server.d.ts.map +1 -1
- package/v3/dist/mcp/server.js +107 -1
- package/v3/dist/mcp/server.js.map +1 -1
- package/v3/dist/mcp/types.d.ts +5 -3
- package/v3/dist/mcp/types.d.ts.map +1 -1
- package/v3/dist/memory/cross-phase-memory.d.ts +55 -0
- package/v3/dist/memory/cross-phase-memory.d.ts.map +1 -0
- package/v3/dist/memory/cross-phase-memory.js +265 -0
- package/v3/dist/memory/cross-phase-memory.js.map +1 -0
- package/v3/dist/memory/index.d.ts +9 -0
- package/v3/dist/memory/index.d.ts.map +1 -0
- package/v3/dist/memory/index.js +9 -0
- package/v3/dist/memory/index.js.map +1 -0
- package/v3/dist/shared/io/file-reader.d.ts.map +1 -1
- package/v3/dist/shared/io/file-reader.js +3 -2
- package/v3/dist/shared/io/file-reader.js.map +1 -1
- package/v3/dist/shared/utils/binary-insert.d.ts +85 -0
- package/v3/dist/shared/utils/binary-insert.d.ts.map +1 -0
- package/v3/dist/shared/utils/binary-insert.js +122 -0
- package/v3/dist/shared/utils/binary-insert.js.map +1 -0
- package/v3/dist/shared/utils/index.d.ts +1 -0
- package/v3/dist/shared/utils/index.d.ts.map +1 -1
- package/v3/dist/shared/utils/index.js +1 -0
- package/v3/dist/shared/utils/index.js.map +1 -1
- package/v3/dist/strange-loop/belief-reconciler.d.ts.map +1 -1
- package/v3/dist/strange-loop/belief-reconciler.js +3 -2
- package/v3/dist/strange-loop/belief-reconciler.js.map +1 -1
- package/v3/dist/sync/claude-flow-bridge.d.ts +1 -1
- package/v3/dist/sync/claude-flow-bridge.d.ts.map +1 -1
- package/v3/dist/sync/claude-flow-bridge.js +7 -5
- package/v3/dist/sync/claude-flow-bridge.js.map +1 -1
- package/v3/dist/sync/cloud/postgres-writer.d.ts.map +1 -1
- package/v3/dist/sync/cloud/postgres-writer.js +0 -1
- package/v3/dist/sync/cloud/postgres-writer.js.map +1 -1
- package/v3/dist/sync/interfaces.d.ts +6 -0
- package/v3/dist/sync/interfaces.d.ts.map +1 -1
- package/v3/dist/sync/interfaces.js +34 -47
- package/v3/dist/sync/interfaces.js.map +1 -1
- package/v3/dist/sync/readers/sqlite-reader.d.ts +1 -1
- package/v3/dist/sync/readers/sqlite-reader.d.ts.map +1 -1
- package/v3/dist/sync/readers/sqlite-reader.js +4 -3
- package/v3/dist/sync/readers/sqlite-reader.js.map +1 -1
- package/v3/dist/test-scheduling/flaky-tracking/flaky-tracker.d.ts.map +1 -1
- package/v3/dist/test-scheduling/flaky-tracking/flaky-tracker.js +3 -2
- package/v3/dist/test-scheduling/flaky-tracking/flaky-tracker.js.map +1 -1
- package/v3/dist/test-scheduling/git-aware/test-selector.d.ts.map +1 -1
- package/v3/dist/test-scheduling/git-aware/test-selector.js +3 -2
- package/v3/dist/test-scheduling/git-aware/test-selector.js.map +1 -1
- package/v3/dist/types/cross-phase-signals.d.ts +119 -0
- package/v3/dist/types/cross-phase-signals.d.ts.map +1 -0
- package/v3/dist/types/cross-phase-signals.js +33 -0
- package/v3/dist/types/cross-phase-signals.js.map +1 -0
- package/v3/dist/types/index.d.ts +9 -0
- package/v3/dist/types/index.d.ts.map +1 -0
- package/v3/dist/types/index.js +9 -0
- package/v3/dist/types/index.js.map +1 -0
- package/v3/dist/workers/worker-manager.d.ts.map +1 -1
- package/v3/dist/workers/worker-manager.js +3 -2
- package/v3/dist/workers/worker-manager.js.map +1 -1
- package/v3/dist/workflows/browser/workflow-loader.d.ts +3 -3
- package/v3/dist/workflows/browser/workflow-loader.d.ts.map +1 -1
- package/v3/dist/workflows/browser/workflow-loader.js.map +1 -1
- package/v3/package.json +4 -1
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agentic QE v3 - Logger Factory
|
|
3
|
+
* Milestone 2.7: Structured Logging Facade
|
|
4
|
+
*
|
|
5
|
+
* Factory for creating domain-specific loggers with centralized configuration.
|
|
6
|
+
* Supports runtime level changes and custom logger implementations.
|
|
7
|
+
*/
|
|
8
|
+
import { Logger, LogLevel, LogContext } from './logger.js';
|
|
9
|
+
import { ConsoleLoggerConfig } from './console-logger.js';
|
|
10
|
+
/**
|
|
11
|
+
* Configuration options for LoggerFactory
|
|
12
|
+
*/
|
|
13
|
+
export interface LoggerFactoryConfig {
|
|
14
|
+
/** Default log level for all loggers */
|
|
15
|
+
defaultLevel: LogLevel;
|
|
16
|
+
/** Domain-specific log level overrides */
|
|
17
|
+
domainLevels: Map<string, LogLevel>;
|
|
18
|
+
/** Console logger configuration */
|
|
19
|
+
consoleConfig: Partial<ConsoleLoggerConfig>;
|
|
20
|
+
/** Whether to use NullLogger for completely silent operation */
|
|
21
|
+
silent: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Custom logger provider function type
|
|
25
|
+
* Allows injecting custom logger implementations
|
|
26
|
+
*/
|
|
27
|
+
export type LoggerProvider = (domain: string, level: LogLevel, context?: LogContext) => Logger;
|
|
28
|
+
/**
|
|
29
|
+
* LoggerFactory - Centralized logger creation and configuration
|
|
30
|
+
*
|
|
31
|
+
* Usage:
|
|
32
|
+
* ```typescript
|
|
33
|
+
* import { LoggerFactory } from '../logging';
|
|
34
|
+
*
|
|
35
|
+
* // Set global log level
|
|
36
|
+
* LoggerFactory.setLevel(LogLevel.DEBUG);
|
|
37
|
+
*
|
|
38
|
+
* // Create domain-specific logger
|
|
39
|
+
* const logger = LoggerFactory.create('queen-coordinator');
|
|
40
|
+
*
|
|
41
|
+
* // Use logger
|
|
42
|
+
* logger.info('Task submitted', { taskId, priority });
|
|
43
|
+
* logger.error('Task failed', error, { taskId });
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export declare class LoggerFactory {
|
|
47
|
+
private static config;
|
|
48
|
+
private static customProvider;
|
|
49
|
+
private static instances;
|
|
50
|
+
/**
|
|
51
|
+
* Set the global default log level
|
|
52
|
+
* Affects all loggers created after this call
|
|
53
|
+
*/
|
|
54
|
+
static setLevel(level: LogLevel): void;
|
|
55
|
+
/**
|
|
56
|
+
* Set log level from environment variable or string
|
|
57
|
+
* Convenience method for configuration from env vars
|
|
58
|
+
*/
|
|
59
|
+
static setLevelFromString(level: string): void;
|
|
60
|
+
/**
|
|
61
|
+
* Get the current global log level
|
|
62
|
+
*/
|
|
63
|
+
static getLevel(): LogLevel;
|
|
64
|
+
/**
|
|
65
|
+
* Set log level for a specific domain
|
|
66
|
+
* Allows fine-grained control over logging verbosity
|
|
67
|
+
*/
|
|
68
|
+
static setDomainLevel(domain: string, level: LogLevel): void;
|
|
69
|
+
/**
|
|
70
|
+
* Get the log level for a specific domain
|
|
71
|
+
* Returns domain-specific level or falls back to default
|
|
72
|
+
*/
|
|
73
|
+
static getDomainLevel(domain: string): LogLevel;
|
|
74
|
+
/**
|
|
75
|
+
* Clear domain-specific level, reverting to default
|
|
76
|
+
*/
|
|
77
|
+
static clearDomainLevel(domain: string): void;
|
|
78
|
+
/**
|
|
79
|
+
* Configure console logger options
|
|
80
|
+
*/
|
|
81
|
+
static configure(config: Partial<ConsoleLoggerConfig>): void;
|
|
82
|
+
/**
|
|
83
|
+
* Enable silent mode (all logging disabled)
|
|
84
|
+
*/
|
|
85
|
+
static setSilent(silent: boolean): void;
|
|
86
|
+
/**
|
|
87
|
+
* Check if silent mode is enabled
|
|
88
|
+
*/
|
|
89
|
+
static isSilent(): boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Register a custom logger provider
|
|
92
|
+
* Useful for testing or custom logging backends
|
|
93
|
+
*/
|
|
94
|
+
static setProvider(provider: LoggerProvider | null): void;
|
|
95
|
+
/**
|
|
96
|
+
* Create a logger for a specific domain
|
|
97
|
+
*
|
|
98
|
+
* @param domain - The domain/namespace for the logger (e.g., 'queen-coordinator', 'test-generation')
|
|
99
|
+
* @param context - Optional default context to include in all log messages
|
|
100
|
+
* @returns Logger instance configured for the domain
|
|
101
|
+
*/
|
|
102
|
+
static create(domain: string, context?: LogContext): Logger;
|
|
103
|
+
/**
|
|
104
|
+
* Get a logger (alias for create)
|
|
105
|
+
* Follows common logging library naming conventions
|
|
106
|
+
*/
|
|
107
|
+
static getLogger(domain: string, context?: LogContext): Logger;
|
|
108
|
+
/**
|
|
109
|
+
* Reset factory to default configuration
|
|
110
|
+
* Useful for testing
|
|
111
|
+
*/
|
|
112
|
+
static reset(): void;
|
|
113
|
+
/**
|
|
114
|
+
* Initialize from environment variables
|
|
115
|
+
*
|
|
116
|
+
* Supported env vars:
|
|
117
|
+
* - LOG_LEVEL: Global log level (DEBUG, INFO, WARN, ERROR, SILENT)
|
|
118
|
+
* - LOG_TIMESTAMP: Include timestamps (true/false)
|
|
119
|
+
* - LOG_PRETTY: Pretty print context (true/false)
|
|
120
|
+
*/
|
|
121
|
+
static initFromEnv(): void;
|
|
122
|
+
/**
|
|
123
|
+
* Get statistics about logger instances
|
|
124
|
+
*/
|
|
125
|
+
static getStats(): {
|
|
126
|
+
cachedLoggers: number;
|
|
127
|
+
domains: string[];
|
|
128
|
+
domainOverrides: number;
|
|
129
|
+
currentLevel: LogLevel;
|
|
130
|
+
silent: boolean;
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Convenience function to create a logger
|
|
135
|
+
* Shorthand for LoggerFactory.create()
|
|
136
|
+
*/
|
|
137
|
+
export declare function createLogger(domain: string, context?: LogContext): Logger;
|
|
138
|
+
/**
|
|
139
|
+
* Get logger for a class or module
|
|
140
|
+
* Extracts domain name from class name or uses provided string
|
|
141
|
+
*/
|
|
142
|
+
export declare function getLogger(domainOrClass: string | {
|
|
143
|
+
name: string;
|
|
144
|
+
}, context?: LogContext): Logger;
|
|
145
|
+
//# sourceMappingURL=logger-factory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger-factory.d.ts","sourceRoot":"","sources":["../../src/logging/logger-factory.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,MAAM,EACN,QAAQ,EACR,UAAU,EAEX,MAAM,aAAa,CAAC;AACrB,OAAO,EAEL,mBAAmB,EAGpB,MAAM,qBAAqB,CAAC;AAE7B;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,wCAAwC;IACxC,YAAY,EAAE,QAAQ,CAAC;IACvB,0CAA0C;IAC1C,YAAY,EAAE,GAAG,CAAC,MAAM,E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zD;;;;;;OAMG;IACH,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,MAAM;IAyB3D;;;OAGG;IACH,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,MAAM;IAI9D;;;OAGG;IACH,MAAM,CAAC,KAAK,IAAI,IAAI;IAWpB;;;;;;;OAOG;IACH,MAAM,CAAC,WAAW,IAAI,IAAI;IAiB1B;;OAEG;IACH,MAAM,CAAC,QAAQ,IAAI;QACjB,aAAa,EAAE,MAAM,CAAC;QACtB,OAAO,EAAE,MAAM,EAAE,CAAC;QAClB,eAAe,EAAE,MAAM,CAAC;QACxB,YAAY,EAAE,QAAQ,CAAC;QACvB,MAAM,EAAE,OAAO,CAAC;KACjB;CASF;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,MAAM,CAEzE;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,aAAa,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,MAAM,CAGhG"}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agentic QE v3 - Logger Factory
|
|
3
|
+
* Milestone 2.7: Structured Logging Facade
|
|
4
|
+
*
|
|
5
|
+
* Factory for creating domain-specific loggers with centralized configuration.
|
|
6
|
+
* Supports runtime level changes and custom logger implementations.
|
|
7
|
+
*/
|
|
8
|
+
import { LogLevel, parseLogLevel, } from './logger.js';
|
|
9
|
+
import { ConsoleLogger, NullLogger, DEFAULT_CONSOLE_LOGGER_CONFIG, } from './console-logger.js';
|
|
10
|
+
/**
|
|
11
|
+
* Default factory configuration
|
|
12
|
+
*/
|
|
13
|
+
const DEFAULT_FACTORY_CONFIG = {
|
|
14
|
+
defaultLevel: LogLevel.INFO,
|
|
15
|
+
domainLevels: new Map(),
|
|
16
|
+
consoleConfig: DEFAULT_CONSOLE_LOGGER_CONFIG,
|
|
17
|
+
silent: false,
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* LoggerFactory - Centralized logger creation and configuration
|
|
21
|
+
*
|
|
22
|
+
* Usage:
|
|
23
|
+
* ```typescript
|
|
24
|
+
* import { LoggerFactory } from '../logging';
|
|
25
|
+
*
|
|
26
|
+
* // Set global log level
|
|
27
|
+
* LoggerFactory.setLevel(LogLevel.DEBUG);
|
|
28
|
+
*
|
|
29
|
+
* // Create domain-specific logger
|
|
30
|
+
* const logger = LoggerFactory.create('queen-coordinator');
|
|
31
|
+
*
|
|
32
|
+
* // Use logger
|
|
33
|
+
* logger.info('Task submitted', { taskId, priority });
|
|
34
|
+
* logger.error('Task failed', error, { taskId });
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export class LoggerFactory {
|
|
38
|
+
static config = { ...DEFAULT_FACTORY_CONFIG };
|
|
39
|
+
static customProvider = null;
|
|
40
|
+
static instances = new Map();
|
|
41
|
+
/**
|
|
42
|
+
* Set the global default log level
|
|
43
|
+
* Affects all loggers created after this call
|
|
44
|
+
*/
|
|
45
|
+
static setLevel(level) {
|
|
46
|
+
this.config.defaultLevel = level;
|
|
47
|
+
// Clear cached instances so new ones pick up the new level
|
|
48
|
+
this.instances.clear();
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Set log level from environment variable or string
|
|
52
|
+
* Convenience method for configuration from env vars
|
|
53
|
+
*/
|
|
54
|
+
static setLevelFromString(level) {
|
|
55
|
+
this.setLevel(parseLogLevel(level));
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Get the current global log level
|
|
59
|
+
*/
|
|
60
|
+
static getLevel() {
|
|
61
|
+
return this.config.defaultLevel;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Set log level for a specific domain
|
|
65
|
+
* Allows fine-grained control over logging verbosity
|
|
66
|
+
*/
|
|
67
|
+
static setDomainLevel(domain, level) {
|
|
68
|
+
this.config.domainLevels.set(domain, level);
|
|
69
|
+
// Remove cached instance if exists
|
|
70
|
+
this.instances.delete(domain);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Get the log level for a specific domain
|
|
74
|
+
* Returns domain-specific level or falls back to default
|
|
75
|
+
*/
|
|
76
|
+
static getDomainLevel(domain) {
|
|
77
|
+
return this.config.domainLevels.get(domain) ?? this.config.defaultLevel;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Clear domain-specific level, reverting to default
|
|
81
|
+
*/
|
|
82
|
+
static clearDomainLevel(domain) {
|
|
83
|
+
this.config.domainLevels.delete(domain);
|
|
84
|
+
this.instances.delete(domain);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Configure console logger options
|
|
88
|
+
*/
|
|
89
|
+
static configure(config) {
|
|
90
|
+
this.config.consoleConfig = {
|
|
91
|
+
...this.config.consoleConfig,
|
|
92
|
+
...config,
|
|
93
|
+
};
|
|
94
|
+
// Clear cached instances
|
|
95
|
+
this.instances.clear();
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Enable silent mode (all logging disabled)
|
|
99
|
+
*/
|
|
100
|
+
static setSilent(silent) {
|
|
101
|
+
this.config.silent = silent;
|
|
102
|
+
this.instances.clear();
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Check if silent mode is enabled
|
|
106
|
+
*/
|
|
107
|
+
static isSilent() {
|
|
108
|
+
return this.config.silent;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Register a custom logger provider
|
|
112
|
+
* Useful for testing or custom logging backends
|
|
113
|
+
*/
|
|
114
|
+
static setProvider(provider) {
|
|
115
|
+
this.customProvider = provider;
|
|
116
|
+
this.instances.clear();
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Create a logger for a specific domain
|
|
120
|
+
*
|
|
121
|
+
* @param domain - The domain/namespace for the logger (e.g., 'queen-coordinator', 'test-generation')
|
|
122
|
+
* @param context - Optional default context to include in all log messages
|
|
123
|
+
* @returns Logger instance configured for the domain
|
|
124
|
+
*/
|
|
125
|
+
static create(domain, context) {
|
|
126
|
+
// Check cache first (only for loggers without custom context)
|
|
127
|
+
if (!context && this.instances.has(domain)) {
|
|
128
|
+
return this.instances.get(domain);
|
|
129
|
+
}
|
|
130
|
+
const level = this.getDomainLevel(domain);
|
|
131
|
+
let logger;
|
|
132
|
+
if (this.config.silent) {
|
|
133
|
+
logger = new NullLogger(domain);
|
|
134
|
+
}
|
|
135
|
+
else if (this.customProvider) {
|
|
136
|
+
logger = this.customProvider(domain, level, context);
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
logger = new ConsoleLogger(domain, level, this.config.consoleConfig, context);
|
|
140
|
+
}
|
|
141
|
+
// Cache only loggers without custom context
|
|
142
|
+
if (!context) {
|
|
143
|
+
this.instances.set(domain, logger);
|
|
144
|
+
}
|
|
145
|
+
return logger;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Get a logger (alias for create)
|
|
149
|
+
* Follows common logging library naming conventions
|
|
150
|
+
*/
|
|
151
|
+
static getLogger(domain, context) {
|
|
152
|
+
return this.create(domain, context);
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Reset factory to default configuration
|
|
156
|
+
* Useful for testing
|
|
157
|
+
*/
|
|
158
|
+
static reset() {
|
|
159
|
+
this.config = {
|
|
160
|
+
defaultLevel: LogLevel.INFO,
|
|
161
|
+
domainLevels: new Map(),
|
|
162
|
+
consoleConfig: { ...DEFAULT_CONSOLE_LOGGER_CONFIG },
|
|
163
|
+
silent: false,
|
|
164
|
+
};
|
|
165
|
+
this.customProvider = null;
|
|
166
|
+
this.instances.clear();
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Initialize from environment variables
|
|
170
|
+
*
|
|
171
|
+
* Supported env vars:
|
|
172
|
+
* - LOG_LEVEL: Global log level (DEBUG, INFO, WARN, ERROR, SILENT)
|
|
173
|
+
* - LOG_TIMESTAMP: Include timestamps (true/false)
|
|
174
|
+
* - LOG_PRETTY: Pretty print context (true/false)
|
|
175
|
+
*/
|
|
176
|
+
static initFromEnv() {
|
|
177
|
+
const level = process.env.LOG_LEVEL;
|
|
178
|
+
if (level) {
|
|
179
|
+
this.setLevelFromString(level);
|
|
180
|
+
}
|
|
181
|
+
const timestamp = process.env.LOG_TIMESTAMP;
|
|
182
|
+
if (timestamp !== undefined) {
|
|
183
|
+
this.configure({ includeTimestamp: timestamp.toLowerCase() === 'true' });
|
|
184
|
+
}
|
|
185
|
+
const pretty = process.env.LOG_PRETTY;
|
|
186
|
+
if (pretty !== undefined) {
|
|
187
|
+
this.configure({ prettyPrint: pretty.toLowerCase() === 'true' });
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Get statistics about logger instances
|
|
192
|
+
*/
|
|
193
|
+
static getStats() {
|
|
194
|
+
return {
|
|
195
|
+
cachedLoggers: this.instances.size,
|
|
196
|
+
domains: Array.from(this.instances.keys()),
|
|
197
|
+
domainOverrides: this.config.domainLevels.size,
|
|
198
|
+
currentLevel: this.config.defaultLevel,
|
|
199
|
+
silent: this.config.silent,
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Convenience function to create a logger
|
|
205
|
+
* Shorthand for LoggerFactory.create()
|
|
206
|
+
*/
|
|
207
|
+
export function createLogger(domain, context) {
|
|
208
|
+
return LoggerFactory.create(domain, context);
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Get logger for a class or module
|
|
212
|
+
* Extracts domain name from class name or uses provided string
|
|
213
|
+
*/
|
|
214
|
+
export function getLogger(domainOrClass, context) {
|
|
215
|
+
const domain = typeof domainOrClass === 'string' ? domainOrClass : domainOrClass.name;
|
|
216
|
+
return LoggerFactory.create(domain, context);
|
|
217
|
+
}
|
|
218
|
+
//# sourceMappingURL=logger-factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger-factory.js","sourceRoot":"","sources":["../../src/logging/logger-factory.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAEL,QAAQ,EAER,aAAa,GACd,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,aAAa,EAEb,UAAU,EACV,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AAgB7B;;GAEG;AACH,MAAM,sBAAsB,GAAwB;IAClD,YAAY,EAAE,QAAQ,CAAC,IAAI;IAC3B,YAAY,EAAE,IAAI,GAAG,EAAE;IACvB,aAAa,EAAE,6BAA6B;IAC5C,MAAM,EAAE,KAAK;CACd,CAAC;AAQF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,OAAO,aAAa;IAChB,MAAM,CAAC,MAAM,GAAwB,EAAE,GAAG,sBAAsB,EAAE,CAAC;IACnE,MAAM,CAAC,cAAc,GAA0B,IAAI,CAAC;IACpD,MAAM,CAAC,SAAS,GAAwB,IAAI,GAAG,EAAE,CAAC;IAE1D;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,KAAe;QAC7B,IAAI,CAAC,MAAM,CAAC,YAAY,GAAG,KAAK,CAAC;QACjC,2DAA2D;QAC3D,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;IACzB,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,kBAAkB,CAAC,KAAa;QACrC,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;IACtC,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,QAAQ;QACb,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC;IAClC,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,cAAc,CAAC,MAAc,EAAE,KAAe;QACnD,IAAI,CAAC,MAAM,CAAC,Y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AAM,UAAU,SAAS,CAAC,aAAwC,EAAE,OAAoB;IACtF,MAAM,MAAM,GAAG,OAAO,aAAa,KAAK,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC;IACtF,OAAO,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC/C,CAAC"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agentic QE v3 - Logger Interface
|
|
3
|
+
* Milestone 2.7: Structured Logging Facade
|
|
4
|
+
*
|
|
5
|
+
* Provides a centralized logging abstraction to replace direct console.log calls
|
|
6
|
+
* throughout services, enabling consistent log formatting, level filtering,
|
|
7
|
+
* and future extensibility (file logging, remote logging, etc.).
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Log levels ordered by verbosity (lower = more verbose)
|
|
11
|
+
*/
|
|
12
|
+
export declare enum LogLevel {
|
|
13
|
+
/** Detailed debugging information for development */
|
|
14
|
+
DEBUG = 0,
|
|
15
|
+
/** General informational messages about application flow */
|
|
16
|
+
INFO = 1,
|
|
17
|
+
/** Warning conditions that are not errors but may need attention */
|
|
18
|
+
WARN = 2,
|
|
19
|
+
/** Error conditions that should be investigated */
|
|
20
|
+
ERROR = 3,
|
|
21
|
+
/** No logging - completely silent */
|
|
22
|
+
SILENT = 4
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* String representation of log levels for display
|
|
26
|
+
*/
|
|
27
|
+
export declare const LOG_LEVEL_NAMES: Record<LogLevel, string>;
|
|
28
|
+
/**
|
|
29
|
+
* Parse a string to LogLevel (case-insensitive)
|
|
30
|
+
*/
|
|
31
|
+
export declare function parseLogLevel(level: string): LogLevel;
|
|
32
|
+
/**
|
|
33
|
+
* Contextual metadata that can be attached to log entries
|
|
34
|
+
*/
|
|
35
|
+
export type LogContext = Record<string, unknown>;
|
|
36
|
+
/**
|
|
37
|
+
* Logger interface defining the contract for all logger implementations
|
|
38
|
+
*
|
|
39
|
+
* Each method accepts:
|
|
40
|
+
* - message: The log message (human-readable)
|
|
41
|
+
* - context: Optional structured data for machine parsing
|
|
42
|
+
*
|
|
43
|
+
* The error() method additionally accepts an Error object for stack trace logging.
|
|
44
|
+
*/
|
|
45
|
+
export interface Logger {
|
|
46
|
+
/**
|
|
47
|
+
* Log detailed debugging information
|
|
48
|
+
* Use for development-time diagnostics that would be too verbose in production
|
|
49
|
+
*/
|
|
50
|
+
debug(message: string, context?: LogContext): void;
|
|
51
|
+
/**
|
|
52
|
+
* Log general informational messages
|
|
53
|
+
* Use for significant events in normal application flow
|
|
54
|
+
*/
|
|
55
|
+
info(message: string, context?: LogContext): void;
|
|
56
|
+
/**
|
|
57
|
+
* Log warning conditions
|
|
58
|
+
* Use for recoverable issues that may need attention
|
|
59
|
+
*/
|
|
60
|
+
warn(message: string, context?: LogContext): void;
|
|
61
|
+
/**
|
|
62
|
+
* Log error conditions
|
|
63
|
+
* Use for failures that require investigation
|
|
64
|
+
*
|
|
65
|
+
* @param message - Human-readable error description
|
|
66
|
+
* @param error - Optional Error object for stack trace
|
|
67
|
+
* @param context - Optional structured metadata
|
|
68
|
+
*/
|
|
69
|
+
error(message: string, error?: Error, context?: LogContext): void;
|
|
70
|
+
/**
|
|
71
|
+
* Check if a given log level is enabled
|
|
72
|
+
* Useful for avoiding expensive log message construction
|
|
73
|
+
*/
|
|
74
|
+
isEnabled(level: LogLevel): boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Get the domain/namespace this logger is associated with
|
|
77
|
+
*/
|
|
78
|
+
getDomain(): string;
|
|
79
|
+
/**
|
|
80
|
+
* Create a child logger with additional context
|
|
81
|
+
* The child inherits the parent's configuration but adds context to all messages
|
|
82
|
+
*/
|
|
83
|
+
child(context: LogContext): Logger;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Type guard to check if an object implements Logger interface
|
|
87
|
+
*/
|
|
88
|
+
export declare function isLogger(obj: unknown): obj is Logger;
|
|
89
|
+
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logging/logger.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;GAEG;AACH,oBAAY,QAAQ;IAClB,qDAAqD;IACrD,KAAK,IAAI;IACT,4DAA4D;IAC5D,IAAI,IAAI;IACR,oEAAoE;IACpE,IAAI,IAAI;IACR,mDAAmD;IACnD,KAAK,IAAI;IACT,qCAAqC;IACrC,MAAM,IAAI;CACX;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAMpD,CAAC;AAEF;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,CAmBrD;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEjD;;;;;;;;GAQG;AACH,MAAM,WAAW,MAAM;IACrB;;;OAGG;IACH,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IAEnD;;;OAGG;IACH,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IAElD;;;OAGG;IACH,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IAElD;;;;;;;OAOG;IACH,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IAElE;;;OAGG;IACH,SAAS,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO,CAAC;IAEpC;;OAEG;IACH,SAAS,IAAI,MAAM,CAAC;IAEpB;;;OAGG;IACH,KAAK,CAAC,OAAO,EAAE,UAAU,GAAG,MAAM,CAAC;CACpC;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,MAAM,CAcpD"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agentic QE v3 - Logger Interface
|
|
3
|
+
* Milestone 2.7: Structured Logging Facade
|
|
4
|
+
*
|
|
5
|
+
* Provides a centralized logging abstraction to replace direct console.log calls
|
|
6
|
+
* throughout services, enabling consistent log formatting, level filtering,
|
|
7
|
+
* and future extensibility (file logging, remote logging, etc.).
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Log levels ordered by verbosity (lower = more verbose)
|
|
11
|
+
*/
|
|
12
|
+
export var LogLevel;
|
|
13
|
+
(function (LogLevel) {
|
|
14
|
+
/** Detailed debugging information for development */
|
|
15
|
+
LogLevel[LogLevel["DEBUG"] = 0] = "DEBUG";
|
|
16
|
+
/** General informational messages about application flow */
|
|
17
|
+
LogLevel[LogLevel["INFO"] = 1] = "INFO";
|
|
18
|
+
/** Warning conditions that are not errors but may need attention */
|
|
19
|
+
LogLevel[LogLevel["WARN"] = 2] = "WARN";
|
|
20
|
+
/** Error conditions that should be investigated */
|
|
21
|
+
LogLevel[LogLevel["ERROR"] = 3] = "ERROR";
|
|
22
|
+
/** No logging - completely silent */
|
|
23
|
+
LogLevel[LogLevel["SILENT"] = 4] = "SILENT";
|
|
24
|
+
})(LogLevel || (LogLevel = {}));
|
|
25
|
+
/**
|
|
26
|
+
* String representation of log levels for display
|
|
27
|
+
*/
|
|
28
|
+
export const LOG_LEVEL_NAMES = {
|
|
29
|
+
[LogLevel.DEBUG]: 'DEBUG',
|
|
30
|
+
[LogLevel.INFO]: 'INFO',
|
|
31
|
+
[LogLevel.WARN]: 'WARN',
|
|
32
|
+
[LogLevel.ERROR]: 'ERROR',
|
|
33
|
+
[LogLevel.SILENT]: 'SILENT',
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Parse a string to LogLevel (case-insensitive)
|
|
37
|
+
*/
|
|
38
|
+
export function parseLogLevel(level) {
|
|
39
|
+
const normalized = level.toUpperCase();
|
|
40
|
+
switch (normalized) {
|
|
41
|
+
case 'DEBUG':
|
|
42
|
+
return LogLevel.DEBUG;
|
|
43
|
+
case 'INFO':
|
|
44
|
+
return LogLevel.INFO;
|
|
45
|
+
case 'WARN':
|
|
46
|
+
case 'WARNING':
|
|
47
|
+
return LogLevel.WARN;
|
|
48
|
+
case 'ERROR':
|
|
49
|
+
return LogLevel.ERROR;
|
|
50
|
+
case 'SILENT':
|
|
51
|
+
case 'NONE':
|
|
52
|
+
case 'OFF':
|
|
53
|
+
return LogLevel.SILENT;
|
|
54
|
+
default:
|
|
55
|
+
return LogLevel.INFO;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Type guard to check if an object implements Logger interface
|
|
60
|
+
*/
|
|
61
|
+
export function isLogger(obj) {
|
|
62
|
+
if (typeof obj !== 'object' || obj === null) {
|
|
63
|
+
return false;
|
|
64
|
+
}
|
|
65
|
+
const candidate = obj;
|
|
66
|
+
return (typeof candidate.debug === 'function' &&
|
|
67
|
+
typeof candidate.info === 'function' &&
|
|
68
|
+
typeof candidate.warn === 'function' &&
|
|
69
|
+
typeof candidate.error === 'function' &&
|
|
70
|
+
typeof candidate.isEnabled === 'function' &&
|
|
71
|
+
typeof candidate.getDomain === 'function' &&
|
|
72
|
+
typeof candidate.child === 'function');
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=logger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/logging/logger.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;GAEG;AACH,MAAM,CAAN,IAAY,QAWX;AAXD,WAAY,QAAQ;IAClB,qDAAqD;IACrD,yCAAS,CAAA;IACT,4DAA4D;IAC5D,uCAAQ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