agentic-qe 2.6.5 → 2.7.0
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/CHANGELOG.md +112 -0
- package/README.md +1 -1
- package/dist/agents/AccessibilityAllyAgent.d.ts.map +1 -1
- package/dist/agents/AccessibilityAllyAgent.js +1 -1
- package/dist/agents/AccessibilityAllyAgent.js.map +1 -1
- package/dist/agents/ApiContractValidatorAgent.d.ts +83 -56
- package/dist/agents/ApiContractValidatorAgent.d.ts.map +1 -1
- package/dist/agents/ApiContractValidatorAgent.js +97 -46
- package/dist/agents/ApiContractValidatorAgent.js.map +1 -1
- package/dist/agents/BaseAgent.d.ts +64 -13
- package/dist/agents/BaseAgent.d.ts.map +1 -1
- package/dist/agents/BaseAgent.js +5 -4
- package/dist/agents/BaseAgent.js.map +1 -1
- package/dist/agents/CodeComplexityAnalyzerAgent.d.ts +18 -12
- package/dist/agents/CodeComplexityAnalyzerAgent.d.ts.map +1 -1
- package/dist/agents/CodeComplexityAnalyzerAgent.js +25 -24
- package/dist/agents/CodeComplexityAnalyzerAgent.js.map +1 -1
- package/dist/agents/CodeIntelligenceAgent.d.ts.map +1 -1
- package/dist/agents/CodeIntelligenceAgent.js.map +1 -1
- package/dist/agents/CoverageAnalyzerAgent.d.ts +201 -41
- package/dist/agents/CoverageAnalyzerAgent.d.ts.map +1 -1
- package/dist/agents/CoverageAnalyzerAgent.js +165 -4
- package/dist/agents/CoverageAnalyzerAgent.js.map +1 -1
- package/dist/agents/DeploymentReadinessAgent.d.ts +49 -13
- package/dist/agents/DeploymentReadinessAgent.d.ts.map +1 -1
- package/dist/agents/DeploymentReadinessAgent.js +30 -30
- package/dist/agents/DeploymentReadinessAgent.js.map +1 -1
- package/dist/agents/FlakyTestHunterAgent.d.ts +56 -18
- package/dist/agents/FlakyTestHunterAgent.d.ts.map +1 -1
- package/dist/agents/FlakyTestHunterAgent.js +45 -46
- package/dist/agents/FlakyTestHunterAgent.js.map +1 -1
- package/dist/agents/FleetCommanderAgent.d.ts +199 -14
- package/dist/agents/FleetCommanderAgent.d.ts.map +1 -1
- package/dist/agents/FleetCommanderAgent.js +270 -34
- package/dist/agents/FleetCommanderAgent.js.map +1 -1
- package/dist/agents/LearningAgent.d.ts +29 -7
- package/dist/agents/LearningAgent.d.ts.map +1 -1
- package/dist/agents/LearningAgent.js +6 -4
- package/dist/agents/LearningAgent.js.map +1 -1
- package/dist/agents/NeuralAgentExtension.d.ts +46 -2
- package/dist/agents/NeuralAgentExtension.d.ts.map +1 -1
- package/dist/agents/NeuralAgentExtension.js +13 -11
- package/dist/agents/NeuralAgentExtension.js.map +1 -1
- package/dist/agents/PerformanceTesterAgent.d.ts +177 -14
- package/dist/agents/PerformanceTesterAgent.d.ts.map +1 -1
- package/dist/agents/PerformanceTesterAgent.js +73 -10
- package/dist/agents/PerformanceTesterAgent.js.map +1 -1
- package/dist/agents/ProductionIntelligenceAgent.d.ts +117 -15
- package/dist/agents/ProductionIntelligenceAgent.d.ts.map +1 -1
- package/dist/agents/ProductionIntelligenceAgent.js +76 -63
- package/dist/agents/ProductionIntelligenceAgent.js.map +1 -1
- package/dist/agents/QXPartnerAgent.d.ts.map +1 -1
- package/dist/agents/QXPartnerAgent.js +40 -30
- package/dist/agents/QXPartnerAgent.js.map +1 -1
- package/dist/agents/QualityAnalyzerAgent.d.ts +113 -6
- package/dist/agents/QualityAnalyzerAgent.d.ts.map +1 -1
- package/dist/agents/QualityAnalyzerAgent.js +30 -25
- package/dist/agents/QualityAnalyzerAgent.js.map +1 -1
- package/dist/agents/QualityGateAgent.d.ts +125 -4
- package/dist/agents/QualityGateAgent.d.ts.map +1 -1
- package/dist/agents/QualityGateAgent.js +13 -15
- package/dist/agents/QualityGateAgent.js.map +1 -1
- package/dist/agents/RegressionRiskAnalyzerAgent.d.ts +32 -13
- package/dist/agents/RegressionRiskAnalyzerAgent.d.ts.map +1 -1
- package/dist/agents/RegressionRiskAnalyzerAgent.js +49 -30
- package/dist/agents/RegressionRiskAnalyzerAgent.js.map +1 -1
- package/dist/agents/RequirementsValidatorAgent.d.ts +6 -13
- package/dist/agents/RequirementsValidatorAgent.d.ts.map +1 -1
- package/dist/agents/RequirementsValidatorAgent.js +34 -27
- package/dist/agents/RequirementsValidatorAgent.js.map +1 -1
- package/dist/agents/SecurityScannerAgent.d.ts +86 -14
- package/dist/agents/SecurityScannerAgent.d.ts.map +1 -1
- package/dist/agents/SecurityScannerAgent.js +53 -38
- package/dist/agents/SecurityScannerAgent.js.map +1 -1
- package/dist/agents/TestDataArchitectAgent.d.ts +140 -57
- package/dist/agents/TestDataArchitectAgent.d.ts.map +1 -1
- package/dist/agents/TestDataArchitectAgent.js +93 -54
- package/dist/agents/TestDataArchitectAgent.js.map +1 -1
- package/dist/agents/TestExecutorAgent.d.ts +43 -18
- package/dist/agents/TestExecutorAgent.d.ts.map +1 -1
- package/dist/agents/TestExecutorAgent.js +31 -23
- package/dist/agents/TestExecutorAgent.js.map +1 -1
- package/dist/agents/TestGeneratorAgent.d.ts +71 -23
- package/dist/agents/TestGeneratorAgent.d.ts.map +1 -1
- package/dist/agents/TestGeneratorAgent.js +116 -58
- package/dist/agents/TestGeneratorAgent.js.map +1 -1
- package/dist/agents/adapters/LearningEngineAdapter.d.ts.map +1 -1
- package/dist/agents/adapters/LearningEngineAdapter.js.map +1 -1
- package/dist/agents/adapters/MemoryServiceAdapter.d.ts.map +1 -1
- package/dist/agents/adapters/MemoryServiceAdapter.js +10 -6
- package/dist/agents/adapters/MemoryServiceAdapter.js.map +1 -1
- package/dist/agents/index.d.ts +36 -5
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +1 -1
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/n8n/N8nBaseAgent.d.ts.map +1 -1
- package/dist/agents/n8n/N8nBaseAgent.js +2 -1
- package/dist/agents/n8n/N8nBaseAgent.js.map +1 -1
- package/dist/cli/commands/analyze.d.ts.map +1 -1
- package/dist/cli/commands/analyze.js +221 -66
- package/dist/cli/commands/analyze.js.map +1 -1
- package/dist/cli/commands/fleet/backup.d.ts +4 -4
- package/dist/cli/commands/fleet/backup.d.ts.map +1 -1
- package/dist/cli/commands/fleet/backup.js +4 -4
- package/dist/cli/commands/fleet/backup.js.map +1 -1
- package/dist/cli/commands/fleet/health.d.ts +131 -1
- package/dist/cli/commands/fleet/health.d.ts.map +1 -1
- package/dist/cli/commands/fleet/health.js +204 -138
- package/dist/cli/commands/fleet/health.js.map +1 -1
- package/dist/cli/commands/fleet/metrics.d.ts.map +1 -1
- package/dist/cli/commands/fleet/metrics.js +1 -1
- package/dist/cli/commands/fleet/metrics.js.map +1 -1
- package/dist/cli/commands/fleet/monitor.d.ts.map +1 -1
- package/dist/cli/commands/fleet/monitor.js +2 -1
- package/dist/cli/commands/fleet/monitor.js.map +1 -1
- package/dist/cli/commands/fleet/restart.d.ts.map +1 -1
- package/dist/cli/commands/fleet/restart.js +1 -1
- package/dist/cli/commands/fleet/restart.js.map +1 -1
- package/dist/cli/commands/fleet/shutdown.d.ts.map +1 -1
- package/dist/cli/commands/fleet/shutdown.js.map +1 -1
- package/dist/cli/commands/fleet/status.d.ts.map +1 -1
- package/dist/cli/commands/fleet/status.js +1 -1
- package/dist/cli/commands/fleet/status.js.map +1 -1
- package/dist/cli/commands/fleet/topology.d.ts.map +1 -1
- package/dist/cli/commands/fleet/topology.js +9 -8
- package/dist/cli/commands/fleet/topology.js.map +1 -1
- package/dist/cli/commands/fleet.d.ts +8 -0
- package/dist/cli/commands/fleet.d.ts.map +1 -1
- package/dist/cli/commands/fleet.js +55 -21
- package/dist/cli/commands/fleet.js.map +1 -1
- package/dist/cli/commands/improve/index.d.ts +2 -2
- package/dist/cli/commands/improve/index.d.ts.map +1 -1
- package/dist/cli/commands/improve/index.js +76 -38
- package/dist/cli/commands/improve/index.js.map +1 -1
- package/dist/cli/commands/kg/mincut.d.ts +50 -0
- package/dist/cli/commands/kg/mincut.d.ts.map +1 -0
- package/dist/cli/commands/kg/mincut.js +372 -0
- package/dist/cli/commands/kg/mincut.js.map +1 -0
- package/dist/cli/commands/learn/index.d.ts.map +1 -1
- package/dist/cli/commands/learn/index.js +57 -19
- package/dist/cli/commands/learn/index.js.map +1 -1
- package/dist/cli/commands/memory/index.d.ts +23 -4
- package/dist/cli/commands/memory/index.d.ts.map +1 -1
- package/dist/cli/commands/memory/index.js.map +1 -1
- package/dist/cli/commands/memory/stats.js +1 -1
- package/dist/cli/commands/memory/stats.js.map +1 -1
- package/dist/cli/commands/memory/vacuum.js +3 -3
- package/dist/cli/commands/memory/vacuum.js.map +1 -1
- package/dist/cli/commands/patterns/extract.d.ts.map +1 -1
- package/dist/cli/commands/patterns/extract.js +4 -3
- package/dist/cli/commands/patterns/extract.js.map +1 -1
- package/dist/cli/commands/patterns/index-new.d.ts +10 -1
- package/dist/cli/commands/patterns/index-new.d.ts.map +1 -1
- package/dist/cli/commands/patterns/index-new.js.map +1 -1
- package/dist/cli/commands/patterns/index.d.ts +2 -2
- package/dist/cli/commands/patterns/index.d.ts.map +1 -1
- package/dist/cli/commands/patterns/index.js +105 -19
- package/dist/cli/commands/patterns/index.js.map +1 -1
- package/dist/cli/commands/patterns/list.d.ts.map +1 -1
- package/dist/cli/commands/patterns/list.js +2 -1
- package/dist/cli/commands/patterns/list.js.map +1 -1
- package/dist/cli/commands/patterns/search.d.ts.map +1 -1
- package/dist/cli/commands/patterns/search.js +2 -1
- package/dist/cli/commands/patterns/search.js.map +1 -1
- package/dist/cli/commands/patterns/show.d.ts.map +1 -1
- package/dist/cli/commands/patterns/show.js +7 -6
- package/dist/cli/commands/patterns/show.js.map +1 -1
- package/dist/cli/commands/patterns/stats.d.ts.map +1 -1
- package/dist/cli/commands/patterns/stats.js +5 -4
- package/dist/cli/commands/patterns/stats.js.map +1 -1
- package/dist/cli/commands/quality/baseline.d.ts.map +1 -1
- package/dist/cli/commands/quality/baseline.js +2 -2
- package/dist/cli/commands/quality/baseline.js.map +1 -1
- package/dist/cli/commands/quality/compare.d.ts.map +1 -1
- package/dist/cli/commands/quality/compare.js +1 -1
- package/dist/cli/commands/quality/compare.js.map +1 -1
- package/dist/cli/commands/quality/trends.d.ts.map +1 -1
- package/dist/cli/commands/quality/trends.js.map +1 -1
- package/dist/cli/commands/routing/index.d.ts.map +1 -1
- package/dist/cli/commands/routing/index.js +90 -35
- package/dist/cli/commands/routing/index.js.map +1 -1
- package/dist/cli/commands/run.d.ts.map +1 -1
- package/dist/cli/commands/run.js +59 -33
- package/dist/cli/commands/run.js.map +1 -1
- package/dist/cli/commands/workflow/cancel.d.ts +14 -7
- package/dist/cli/commands/workflow/cancel.d.ts.map +1 -1
- package/dist/cli/commands/workflow/cancel.js +23 -6
- package/dist/cli/commands/workflow/cancel.js.map +1 -1
- package/dist/cli/commands/workflow/list.d.ts.map +1 -1
- package/dist/cli/commands/workflow/list.js +46 -9
- package/dist/cli/commands/workflow/list.js.map +1 -1
- package/dist/cli/commands/workflow/pause.d.ts +1 -1
- package/dist/cli/commands/workflow/pause.d.ts.map +1 -1
- package/dist/cli/commands/workflow/pause.js +21 -4
- package/dist/cli/commands/workflow/pause.js.map +1 -1
- package/dist/cli/index.js +91 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/init/claude-config.js +2 -2
- package/dist/code-intelligence/analysis/mincut/CircularDependencyDetector.d.ts +148 -0
- package/dist/code-intelligence/analysis/mincut/CircularDependencyDetector.d.ts.map +1 -0
- package/dist/code-intelligence/analysis/mincut/CircularDependencyDetector.js +393 -0
- package/dist/code-intelligence/analysis/mincut/CircularDependencyDetector.js.map +1 -0
- package/dist/code-intelligence/analysis/mincut/GraphAdapter.d.ts +169 -0
- package/dist/code-intelligence/analysis/mincut/GraphAdapter.d.ts.map +1 -0
- package/dist/code-intelligence/analysis/mincut/GraphAdapter.js +335 -0
- package/dist/code-intelligence/analysis/mincut/GraphAdapter.js.map +1 -0
- package/dist/code-intelligence/analysis/mincut/JsMinCut.d.ts +55 -0
- package/dist/code-intelligence/analysis/mincut/JsMinCut.d.ts.map +1 -0
- package/dist/code-intelligence/analysis/mincut/JsMinCut.js +265 -0
- package/dist/code-intelligence/analysis/mincut/JsMinCut.js.map +1 -0
- package/dist/code-intelligence/analysis/mincut/MinCutAnalyzer.d.ts +92 -0
- package/dist/code-intelligence/analysis/mincut/MinCutAnalyzer.d.ts.map +1 -0
- package/dist/code-intelligence/analysis/mincut/MinCutAnalyzer.js +200 -0
- package/dist/code-intelligence/analysis/mincut/MinCutAnalyzer.js.map +1 -0
- package/dist/code-intelligence/analysis/mincut/ModuleCouplingAnalyzer.d.ts +157 -0
- package/dist/code-intelligence/analysis/mincut/ModuleCouplingAnalyzer.d.ts.map +1 -0
- package/dist/code-intelligence/analysis/mincut/ModuleCouplingAnalyzer.js +434 -0
- package/dist/code-intelligence/analysis/mincut/ModuleCouplingAnalyzer.js.map +1 -0
- package/dist/code-intelligence/analysis/mincut/index.d.ts +12 -0
- package/dist/code-intelligence/analysis/mincut/index.d.ts.map +1 -0
- package/dist/code-intelligence/analysis/mincut/index.js +20 -0
- package/dist/code-intelligence/analysis/mincut/index.js.map +1 -0
- package/dist/code-intelligence/analysis/mincut/types.d.ts +145 -0
- package/dist/code-intelligence/analysis/mincut/types.d.ts.map +1 -0
- package/dist/code-intelligence/analysis/mincut/types.js +16 -0
- package/dist/code-intelligence/analysis/mincut/types.js.map +1 -0
- package/dist/code-intelligence/chunking/ASTChunker.d.ts +1 -1
- package/dist/code-intelligence/chunking/ASTChunker.d.ts.map +1 -1
- package/dist/code-intelligence/chunking/ASTChunker.js +4 -4
- package/dist/code-intelligence/chunking/ASTChunker.js.map +1 -1
- package/dist/code-intelligence/graph/GraphBuilder.d.ts +120 -0
- package/dist/code-intelligence/graph/GraphBuilder.d.ts.map +1 -1
- package/dist/code-intelligence/graph/GraphBuilder.js +517 -0
- package/dist/code-intelligence/graph/GraphBuilder.js.map +1 -1
- package/dist/code-intelligence/orchestrator/CodeIntelligenceOrchestrator.d.ts.map +1 -1
- package/dist/code-intelligence/orchestrator/CodeIntelligenceOrchestrator.js +3 -3
- package/dist/code-intelligence/orchestrator/CodeIntelligenceOrchestrator.js.map +1 -1
- package/dist/code-intelligence/parser/{TreeSitterParser.d.ts → WebTreeSitterParser.d.ts} +45 -10
- package/dist/code-intelligence/parser/WebTreeSitterParser.d.ts.map +1 -0
- package/dist/code-intelligence/parser/{TreeSitterParser.js → WebTreeSitterParser.js} +147 -54
- package/dist/code-intelligence/parser/WebTreeSitterParser.js.map +1 -0
- package/dist/code-intelligence/parser/extractors/BaseExtractor.d.ts +12 -10
- package/dist/code-intelligence/parser/extractors/BaseExtractor.d.ts.map +1 -1
- package/dist/code-intelligence/parser/extractors/BaseExtractor.js +7 -3
- package/dist/code-intelligence/parser/extractors/BaseExtractor.js.map +1 -1
- package/dist/code-intelligence/parser/extractors/GoExtractor.d.ts +7 -5
- package/dist/code-intelligence/parser/extractors/GoExtractor.d.ts.map +1 -1
- package/dist/code-intelligence/parser/extractors/GoExtractor.js +2 -2
- package/dist/code-intelligence/parser/extractors/GoExtractor.js.map +1 -1
- package/dist/code-intelligence/parser/extractors/JavaScriptExtractor.d.ts +7 -5
- package/dist/code-intelligence/parser/extractors/JavaScriptExtractor.d.ts.map +1 -1
- package/dist/code-intelligence/parser/extractors/JavaScriptExtractor.js +2 -2
- package/dist/code-intelligence/parser/extractors/JavaScriptExtractor.js.map +1 -1
- package/dist/code-intelligence/parser/extractors/PythonExtractor.d.ts +7 -5
- package/dist/code-intelligence/parser/extractors/PythonExtractor.d.ts.map +1 -1
- package/dist/code-intelligence/parser/extractors/PythonExtractor.js +2 -2
- package/dist/code-intelligence/parser/extractors/PythonExtractor.js.map +1 -1
- package/dist/code-intelligence/parser/extractors/RustExtractor.d.ts +7 -5
- package/dist/code-intelligence/parser/extractors/RustExtractor.d.ts.map +1 -1
- package/dist/code-intelligence/parser/extractors/RustExtractor.js +2 -2
- package/dist/code-intelligence/parser/extractors/RustExtractor.js.map +1 -1
- package/dist/code-intelligence/parser/extractors/TypeScriptExtractor.d.ts +7 -5
- package/dist/code-intelligence/parser/extractors/TypeScriptExtractor.d.ts.map +1 -1
- package/dist/code-intelligence/parser/extractors/TypeScriptExtractor.js +2 -2
- package/dist/code-intelligence/parser/extractors/TypeScriptExtractor.js.map +1 -1
- package/dist/code-intelligence/parser/index.d.ts +7 -1
- package/dist/code-intelligence/parser/index.d.ts.map +1 -1
- package/dist/code-intelligence/parser/index.js +11 -3
- package/dist/code-intelligence/parser/index.js.map +1 -1
- package/dist/code-intelligence/service/CodeIntelligenceService.d.ts.map +1 -1
- package/dist/code-intelligence/service/CodeIntelligenceService.js +7 -5
- package/dist/code-intelligence/service/CodeIntelligenceService.js.map +1 -1
- package/dist/core/ArtifactWorkflow.d.ts.map +1 -1
- package/dist/core/ArtifactWorkflow.js +130 -43
- package/dist/core/ArtifactWorkflow.js.map +1 -1
- package/dist/core/MemoryManager.d.ts +5 -5
- package/dist/core/MemoryManager.d.ts.map +1 -1
- package/dist/core/MemoryManager.js +4 -3
- package/dist/core/MemoryManager.js.map +1 -1
- package/dist/core/PatternDatabaseAdapter.d.ts +1 -1
- package/dist/core/PatternDatabaseAdapter.d.ts.map +1 -1
- package/dist/core/PatternDatabaseAdapter.js +12 -12
- package/dist/core/PatternDatabaseAdapter.js.map +1 -1
- package/dist/core/coordination/BlackboardCoordination.d.ts +2 -2
- package/dist/core/coordination/BlackboardCoordination.d.ts.map +1 -1
- package/dist/core/coordination/ConsensusGating.d.ts.map +1 -1
- package/dist/core/coordination/ConsensusGating.js +50 -9
- package/dist/core/coordination/ConsensusGating.js.map +1 -1
- package/dist/core/coordination/GOAPCoordination.d.ts +1 -1
- package/dist/core/coordination/GOAPCoordination.d.ts.map +1 -1
- package/dist/core/coordination/GOAPCoordination.js +70 -8
- package/dist/core/coordination/GOAPCoordination.js.map +1 -1
- package/dist/core/coordination/OODACoordination.d.ts +10 -10
- package/dist/core/coordination/OODACoordination.d.ts.map +1 -1
- package/dist/core/coordination/OODACoordination.js +48 -9
- package/dist/core/coordination/OODACoordination.js.map +1 -1
- package/dist/core/hooks/RollbackManager.d.ts +2 -2
- package/dist/core/hooks/RollbackManager.d.ts.map +1 -1
- package/dist/core/hooks/RollbackManager.js +41 -4
- package/dist/core/hooks/RollbackManager.js.map +1 -1
- package/dist/core/hooks/VerificationHookManager.d.ts +8 -8
- package/dist/core/hooks/VerificationHookManager.d.ts.map +1 -1
- package/dist/core/hooks/VerificationHookManager.js +12 -2
- package/dist/core/hooks/VerificationHookManager.js.map +1 -1
- package/dist/core/hooks/checkers/ConfigurationChecker.d.ts +1 -1
- package/dist/core/hooks/checkers/ConfigurationChecker.d.ts.map +1 -1
- package/dist/core/hooks/checkers/ConfigurationChecker.js.map +1 -1
- package/dist/core/hooks/validators/OutputValidator.d.ts +2 -2
- package/dist/core/hooks/validators/OutputValidator.d.ts.map +1 -1
- package/dist/core/hooks/validators/QualityValidator.d.ts +1 -1
- package/dist/core/hooks/validators/QualityValidator.d.ts.map +1 -1
- package/dist/core/memory/HNSWVectorMemory.js +1 -1
- package/dist/core/memory/SwarmMemoryManager.d.ts +143 -37
- package/dist/core/memory/SwarmMemoryManager.d.ts.map +1 -1
- package/dist/core/memory/SwarmMemoryManager.js +28 -25
- package/dist/core/memory/SwarmMemoryManager.js.map +1 -1
- package/dist/core/memory/VersionHistory.d.ts +5 -5
- package/dist/core/memory/VersionHistory.d.ts.map +1 -1
- package/dist/core/memory/VersionHistory.js +37 -4
- package/dist/core/memory/VersionHistory.js.map +1 -1
- package/dist/core/neural/NeuralTrainer.d.ts +12 -0
- package/dist/core/neural/NeuralTrainer.d.ts.map +1 -1
- package/dist/core/neural/NeuralTrainer.js +162 -18
- package/dist/core/neural/NeuralTrainer.js.map +1 -1
- package/dist/core/optimization/SwarmOptimizer.d.ts.map +1 -1
- package/dist/core/optimization/SwarmOptimizer.js +198 -26
- package/dist/core/optimization/SwarmOptimizer.js.map +1 -1
- package/dist/core/orchestration/WorkflowOrchestrator.d.ts +5 -1
- package/dist/core/orchestration/WorkflowOrchestrator.d.ts.map +1 -1
- package/dist/core/orchestration/WorkflowOrchestrator.js +58 -12
- package/dist/core/orchestration/WorkflowOrchestrator.js.map +1 -1
- package/dist/core/orchestration/types.d.ts +8 -8
- package/dist/core/orchestration/types.d.ts.map +1 -1
- package/dist/core/routing/AdaptiveModelRouter.d.ts +3 -3
- package/dist/core/routing/AdaptiveModelRouter.d.ts.map +1 -1
- package/dist/core/routing/AdaptiveModelRouter.js.map +1 -1
- package/dist/core/routing/CostTracker.d.ts +10 -2
- package/dist/core/routing/CostTracker.d.ts.map +1 -1
- package/dist/core/routing/CostTracker.js +36 -4
- package/dist/core/routing/CostTracker.js.map +1 -1
- package/dist/core/routing/FleetManagerIntegration.d.ts +1 -1
- package/dist/core/routing/types.d.ts +41 -4
- package/dist/core/routing/types.d.ts.map +1 -1
- package/dist/core/strategies/DefaultMemoryStrategy.d.ts.map +1 -1
- package/dist/core/strategies/DefaultMemoryStrategy.js +33 -1
- package/dist/core/strategies/DefaultMemoryStrategy.js.map +1 -1
- package/dist/coverage/CriticalPathDetector.d.ts +240 -0
- package/dist/coverage/CriticalPathDetector.d.ts.map +1 -0
- package/dist/coverage/CriticalPathDetector.js +388 -0
- package/dist/coverage/CriticalPathDetector.js.map +1 -0
- package/dist/coverage/index.d.ts +13 -0
- package/dist/coverage/index.d.ts.map +1 -0
- package/dist/coverage/index.js +16 -0
- package/dist/coverage/index.js.map +1 -0
- package/dist/fleet/topology/SPOFMonitor.d.ts +181 -0
- package/dist/fleet/topology/SPOFMonitor.d.ts.map +1 -0
- package/dist/fleet/topology/SPOFMonitor.js +286 -0
- package/dist/fleet/topology/SPOFMonitor.js.map +1 -0
- package/dist/fleet/topology/TopologyMinCutAnalyzer.d.ts +87 -0
- package/dist/fleet/topology/TopologyMinCutAnalyzer.d.ts.map +1 -0
- package/dist/fleet/topology/TopologyMinCutAnalyzer.js +472 -0
- package/dist/fleet/topology/TopologyMinCutAnalyzer.js.map +1 -0
- package/dist/fleet/topology/index.d.ts +13 -0
- package/dist/fleet/topology/index.d.ts.map +1 -0
- package/dist/fleet/topology/index.js +20 -0
- package/dist/fleet/topology/index.js.map +1 -0
- package/dist/fleet/topology/types.d.ts +139 -0
- package/dist/fleet/topology/types.d.ts.map +1 -0
- package/dist/fleet/topology/types.js +19 -0
- package/dist/fleet/topology/types.js.map +1 -0
- package/dist/learning/ImprovementLoop.d.ts +4 -4
- package/dist/learning/ImprovementLoop.d.ts.map +1 -1
- package/dist/learning/ImprovementLoop.js +108 -9
- package/dist/learning/ImprovementLoop.js.map +1 -1
- package/dist/learning/LearningEngine.d.ts +2 -2
- package/dist/learning/LearningEngine.d.ts.map +1 -1
- package/dist/learning/LearningEngine.js +72 -30
- package/dist/learning/LearningEngine.js.map +1 -1
- package/dist/learning/PerformanceTracker.d.ts.map +1 -1
- package/dist/learning/PerformanceTracker.js +40 -4
- package/dist/learning/PerformanceTracker.js.map +1 -1
- package/dist/learning/TransferLearningManager.d.ts +1 -1
- package/dist/learning/TransferLearningManager.d.ts.map +1 -1
- package/dist/learning/TransferLearningManager.js +143 -9
- package/dist/learning/TransferLearningManager.js.map +1 -1
- package/dist/learning/metrics/AlertManager.d.ts.map +1 -1
- package/dist/learning/metrics/AlertManager.js +20 -9
- package/dist/learning/metrics/AlertManager.js.map +1 -1
- package/dist/learning/metrics/LearningMetrics.d.ts.map +1 -1
- package/dist/learning/metrics/LearningMetrics.js +21 -21
- package/dist/learning/metrics/LearningMetrics.js.map +1 -1
- package/dist/learning/metrics/MetricsCollector.d.ts.map +1 -1
- package/dist/learning/metrics/MetricsCollector.js +20 -7
- package/dist/learning/metrics/MetricsCollector.js.map +1 -1
- package/dist/learning/metrics/MetricsStore.js +6 -6
- package/dist/learning/metrics/MetricsStore.js.map +1 -1
- package/dist/mcp/handlers/base-handler.d.ts +8 -8
- package/dist/mcp/handlers/base-handler.d.ts.map +1 -1
- package/dist/mcp/handlers/base-handler.js +5 -4
- package/dist/mcp/handlers/base-handler.js.map +1 -1
- package/dist/mcp/handlers/coordination/event-emit.d.ts +2 -2
- package/dist/mcp/handlers/coordination/event-emit.d.ts.map +1 -1
- package/dist/mcp/handlers/coordination/event-emit.js.map +1 -1
- package/dist/mcp/handlers/coordination/event-subscribe.d.ts +2 -2
- package/dist/mcp/handlers/coordination/event-subscribe.d.ts.map +1 -1
- package/dist/mcp/handlers/coordination/event-subscribe.js +2 -1
- package/dist/mcp/handlers/coordination/event-subscribe.js.map +1 -1
- package/dist/mcp/handlers/coordination/task-status.d.ts.map +1 -1
- package/dist/mcp/handlers/coordination/task-status.js +40 -18
- package/dist/mcp/handlers/coordination/task-status.js.map +1 -1
- package/dist/mcp/handlers/coordination/workflow-checkpoint.d.ts +5 -5
- package/dist/mcp/handlers/coordination/workflow-checkpoint.d.ts.map +1 -1
- package/dist/mcp/handlers/coordination/workflow-checkpoint.js +64 -16
- package/dist/mcp/handlers/coordination/workflow-checkpoint.js.map +1 -1
- package/dist/mcp/handlers/coordination/workflow-create.d.ts +3 -3
- package/dist/mcp/handlers/coordination/workflow-create.d.ts.map +1 -1
- package/dist/mcp/handlers/coordination/workflow-execute.d.ts +3 -3
- package/dist/mcp/handlers/coordination/workflow-execute.d.ts.map +1 -1
- package/dist/mcp/handlers/coordination/workflow-execute.js +2 -2
- package/dist/mcp/handlers/coordination/workflow-execute.js.map +1 -1
- package/dist/mcp/handlers/coordination/workflow-resume.d.ts +2 -2
- package/dist/mcp/handlers/coordination/workflow-resume.d.ts.map +1 -1
- package/dist/mcp/handlers/coordination/workflow-resume.js +26 -6
- package/dist/mcp/handlers/coordination/workflow-resume.js.map +1 -1
- package/dist/mcp/handlers/learning/learning-query.d.ts.map +1 -1
- package/dist/mcp/handlers/learning/learning-query.js +1 -1
- package/dist/mcp/handlers/learning/learning-query.js.map +1 -1
- package/dist/mcp/handlers/phase2/Phase2Tools.d.ts +5 -4
- package/dist/mcp/handlers/phase2/Phase2Tools.d.ts.map +1 -1
- package/dist/mcp/handlers/phase2/Phase2Tools.js +6 -4
- package/dist/mcp/handlers/phase2/Phase2Tools.js.map +1 -1
- package/dist/mcp/handlers/phase3/Phase3DomainTools.d.ts +247 -31
- package/dist/mcp/handlers/phase3/Phase3DomainTools.d.ts.map +1 -1
- package/dist/mcp/handlers/phase3/Phase3DomainTools.js +3 -3
- package/dist/mcp/handlers/phase3/Phase3DomainTools.js.map +1 -1
- package/dist/mcp/handlers/task-orchestrate.d.ts +3 -3
- package/dist/mcp/handlers/task-orchestrate.d.ts.map +1 -1
- package/dist/mcp/handlers/task-orchestrate.js +3 -2
- package/dist/mcp/handlers/task-orchestrate.js.map +1 -1
- package/dist/mcp/handlers/test/generate-integration-tests.d.ts +15 -3
- package/dist/mcp/handlers/test/generate-integration-tests.d.ts.map +1 -1
- package/dist/mcp/handlers/test/generate-integration-tests.js +5 -5
- package/dist/mcp/handlers/test/generate-integration-tests.js.map +1 -1
- package/dist/mcp/handlers/test/generate-unit-tests.js.map +1 -1
- package/dist/mcp/handlers/test/test-coverage-detailed.d.ts.map +1 -1
- package/dist/mcp/handlers/test/test-coverage-detailed.js +1 -1
- package/dist/mcp/handlers/test/test-coverage-detailed.js.map +1 -1
- package/dist/mcp/handlers/test/test-execute-parallel.d.ts +34 -3
- package/dist/mcp/handlers/test/test-execute-parallel.d.ts.map +1 -1
- package/dist/mcp/handlers/test/test-execute-parallel.js +128 -11
- package/dist/mcp/handlers/test/test-execute-parallel.js.map +1 -1
- package/dist/mcp/handlers/test/test-optimize-sublinear.d.ts +8 -1
- package/dist/mcp/handlers/test/test-optimize-sublinear.d.ts.map +1 -1
- package/dist/mcp/handlers/test/test-optimize-sublinear.js +1 -1
- package/dist/mcp/handlers/test/test-optimize-sublinear.js.map +1 -1
- package/dist/mcp/handlers/test/test-report-comprehensive.d.ts +14 -2
- package/dist/mcp/handlers/test/test-report-comprehensive.d.ts.map +1 -1
- package/dist/mcp/handlers/test/test-report-comprehensive.js.map +1 -1
- package/dist/mcp/server-instructions.d.ts +2 -2
- package/dist/mcp/server-instructions.d.ts.map +1 -1
- package/dist/mcp/server-instructions.js +2 -2
- package/dist/mcp/server.d.ts +1 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +11 -10
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/tools/qe/test-data/mask-sensitive-data.d.ts +2 -6
- package/dist/mcp/tools/qe/test-data/mask-sensitive-data.d.ts.map +1 -1
- package/dist/mcp/tools/qe/test-data/mask-sensitive-data.js.map +1 -1
- package/dist/reasoning/CodeSignatureGenerator.d.ts +37 -1
- package/dist/reasoning/CodeSignatureGenerator.d.ts.map +1 -1
- package/dist/reasoning/CodeSignatureGenerator.js +113 -53
- package/dist/reasoning/CodeSignatureGenerator.js.map +1 -1
- package/dist/reasoning/PatternExtractor.d.ts +91 -10
- package/dist/reasoning/PatternExtractor.d.ts.map +1 -1
- package/dist/reasoning/PatternExtractor.js +104 -26
- package/dist/reasoning/PatternExtractor.js.map +1 -1
- package/dist/test/partition/MinCutPartitioner.d.ts +97 -0
- package/dist/test/partition/MinCutPartitioner.d.ts.map +1 -0
- package/dist/test/partition/MinCutPartitioner.js +459 -0
- package/dist/test/partition/MinCutPartitioner.js.map +1 -0
- package/dist/test/partition/RealTestExecutor.d.ts +86 -0
- package/dist/test/partition/RealTestExecutor.d.ts.map +1 -0
- package/dist/test/partition/RealTestExecutor.js +279 -0
- package/dist/test/partition/RealTestExecutor.js.map +1 -0
- package/dist/test/partition/TestDependencyAnalyzer.d.ts +75 -0
- package/dist/test/partition/TestDependencyAnalyzer.d.ts.map +1 -0
- package/dist/test/partition/TestDependencyAnalyzer.js +297 -0
- package/dist/test/partition/TestDependencyAnalyzer.js.map +1 -0
- package/dist/test/partition/index.d.ts +10 -0
- package/dist/test/partition/index.d.ts.map +1 -0
- package/dist/test/partition/index.js +26 -0
- package/dist/test/partition/index.js.map +1 -0
- package/dist/test/partition/types.d.ts +120 -0
- package/dist/test/partition/types.d.ts.map +1 -0
- package/dist/test/partition/types.js +21 -0
- package/dist/test/partition/types.js.map +1 -0
- package/dist/types/hook.types.d.ts +628 -70
- package/dist/types/hook.types.d.ts.map +1 -1
- package/dist/utils/Config.d.ts +1 -1
- package/dist/utils/Config.d.ts.map +1 -1
- package/dist/utils/Database.d.ts +187 -44
- package/dist/utils/Database.d.ts.map +1 -1
- package/dist/utils/Database.js +24 -15
- package/dist/utils/Database.js.map +1 -1
- package/dist/utils/FakerDataGenerator.d.ts +28 -4
- package/dist/utils/FakerDataGenerator.d.ts.map +1 -1
- package/dist/utils/FakerDataGenerator.js +2 -2
- package/dist/utils/FakerDataGenerator.js.map +1 -1
- package/dist/utils/Logger.d.ts +6 -6
- package/dist/utils/Logger.d.ts.map +1 -1
- package/dist/utils/Logger.js +5 -5
- package/dist/utils/Logger.js.map +1 -1
- package/dist/utils/SecureValidation.d.ts +4 -4
- package/dist/utils/SecureValidation.d.ts.map +1 -1
- package/dist/utils/SecureValidation.js.map +1 -1
- package/dist/utils/SeededRandom.d.ts +297 -0
- package/dist/utils/SeededRandom.d.ts.map +1 -0
- package/dist/utils/SeededRandom.js +389 -0
- package/dist/utils/SeededRandom.js.map +1 -0
- package/dist/utils/TestFrameworkExecutor.d.ts.map +1 -1
- package/dist/utils/TestFrameworkExecutor.js +3 -3
- package/dist/utils/TestFrameworkExecutor.js.map +1 -1
- package/dist/utils/batch-operations.d.ts +2 -2
- package/dist/utils/batch-operations.d.ts.map +1 -1
- package/dist/utils/batch-operations.js.map +1 -1
- package/dist/utils/filtering.d.ts +1 -1
- package/dist/utils/filtering.d.ts.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +5 -1
- package/dist/utils/index.js.map +1 -1
- package/package.json +4 -7
- package/dist/code-intelligence/parser/TreeSitterParser.d.ts.map +0 -1
- package/dist/code-intelligence/parser/TreeSitterParser.js.map +0 -1
|
@@ -3,77 +3,535 @@
|
|
|
3
3
|
* Provides type safety for verification hooks and task lifecycle
|
|
4
4
|
*/
|
|
5
5
|
import { TaskAssignment } from './index';
|
|
6
|
+
/**
|
|
7
|
+
* Base interface for all task execution results
|
|
8
|
+
*/
|
|
9
|
+
export interface TaskResultBase {
|
|
10
|
+
/** Whether the task completed successfully */
|
|
11
|
+
success: boolean;
|
|
12
|
+
/** Execution duration in milliseconds */
|
|
13
|
+
duration?: number;
|
|
14
|
+
/** Timestamp when the result was produced */
|
|
15
|
+
timestamp?: Date | number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Test generation task result
|
|
19
|
+
*/
|
|
20
|
+
export interface TestGenerationResult extends TaskResultBase {
|
|
21
|
+
/** Number of tests generated */
|
|
22
|
+
testsGenerated: number;
|
|
23
|
+
/** Generated test files */
|
|
24
|
+
testFiles?: string[];
|
|
25
|
+
/** Code coverage achieved */
|
|
26
|
+
coverage?: number;
|
|
27
|
+
/** Test framework used */
|
|
28
|
+
framework?: string;
|
|
29
|
+
/** Quality score (0-1) */
|
|
30
|
+
qualityScore?: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Coverage analysis task result
|
|
34
|
+
*/
|
|
35
|
+
export interface CoverageAnalysisResult extends TaskResultBase {
|
|
36
|
+
/** Overall coverage percentage */
|
|
37
|
+
coverage: number;
|
|
38
|
+
/** Line coverage percentage */
|
|
39
|
+
lineCoverage?: number;
|
|
40
|
+
/** Branch coverage percentage */
|
|
41
|
+
branchCoverage?: number;
|
|
42
|
+
/** Function coverage percentage */
|
|
43
|
+
functionCoverage?: number;
|
|
44
|
+
/** Uncovered lines */
|
|
45
|
+
uncoveredLines?: number[];
|
|
46
|
+
/** Coverage gaps identified */
|
|
47
|
+
gaps?: CoverageGap[];
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Coverage gap information
|
|
51
|
+
*/
|
|
52
|
+
export interface CoverageGap {
|
|
53
|
+
file: string;
|
|
54
|
+
startLine: number;
|
|
55
|
+
endLine: number;
|
|
56
|
+
reason?: string;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Security scan task result
|
|
60
|
+
*/
|
|
61
|
+
export interface SecurityScanResult extends TaskResultBase {
|
|
62
|
+
/** Number of issues found */
|
|
63
|
+
issuesFound: number;
|
|
64
|
+
/** Issues by severity */
|
|
65
|
+
bySeverity?: {
|
|
66
|
+
critical?: number;
|
|
67
|
+
high?: number;
|
|
68
|
+
medium?: number;
|
|
69
|
+
low?: number;
|
|
70
|
+
info?: number;
|
|
71
|
+
};
|
|
72
|
+
/** Detailed vulnerability findings */
|
|
73
|
+
vulnerabilities?: SecurityVulnerability[];
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Security vulnerability finding
|
|
77
|
+
*/
|
|
78
|
+
export interface SecurityVulnerability {
|
|
79
|
+
id: string;
|
|
80
|
+
title: string;
|
|
81
|
+
severity: 'critical' | 'high' | 'medium' | 'low' | 'info';
|
|
82
|
+
file?: string;
|
|
83
|
+
line?: number;
|
|
84
|
+
description?: string;
|
|
85
|
+
remediation?: string;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Performance test result
|
|
89
|
+
*/
|
|
90
|
+
export interface PerformanceTestResult extends TaskResultBase {
|
|
91
|
+
/** Average response time in ms */
|
|
92
|
+
avgResponseTime?: number;
|
|
93
|
+
/** P95 response time in ms */
|
|
94
|
+
p95ResponseTime?: number;
|
|
95
|
+
/** P99 response time in ms */
|
|
96
|
+
p99ResponseTime?: number;
|
|
97
|
+
/** Throughput (requests per second) */
|
|
98
|
+
throughput?: number;
|
|
99
|
+
/** Error rate percentage */
|
|
100
|
+
errorRate?: number;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Quality gate evaluation result
|
|
104
|
+
*/
|
|
105
|
+
export interface QualityGateResult extends TaskResultBase {
|
|
106
|
+
/** Whether the quality gate passed */
|
|
107
|
+
passed: boolean;
|
|
108
|
+
/** Overall quality score (0-1) */
|
|
109
|
+
score?: number;
|
|
110
|
+
/** Individual gate results */
|
|
111
|
+
gates?: QualityGateCheck[];
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Individual quality gate check
|
|
115
|
+
*/
|
|
116
|
+
export interface QualityGateCheck {
|
|
117
|
+
name: string;
|
|
118
|
+
passed: boolean;
|
|
119
|
+
threshold: number;
|
|
120
|
+
actual: number;
|
|
121
|
+
message?: string;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Union type for common task results
|
|
125
|
+
* Note: Agents may define their own specific result types that extend TaskResultBase
|
|
126
|
+
*/
|
|
127
|
+
export type TaskResult = TaskResultBase | TestGenerationResult | CoverageAnalysisResult | SecurityScanResult | PerformanceTestResult | QualityGateResult;
|
|
128
|
+
/**
|
|
129
|
+
* Flexible task result type that accepts any result structure
|
|
130
|
+
* Used in hook data interfaces where result type varies by agent
|
|
131
|
+
*/
|
|
132
|
+
export type FlexibleTaskResult = TaskResult | Record<string, unknown> | unknown;
|
|
133
|
+
/**
|
|
134
|
+
* Represents a single line change in a file
|
|
135
|
+
*/
|
|
136
|
+
export interface LineChange {
|
|
137
|
+
/** Line number */
|
|
138
|
+
line: number;
|
|
139
|
+
/** Original content (if update/delete) */
|
|
140
|
+
oldContent?: string;
|
|
141
|
+
/** New content (if create/update) */
|
|
142
|
+
newContent?: string;
|
|
143
|
+
/** Type of change */
|
|
144
|
+
type: 'insert' | 'delete' | 'modify';
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Represents changes to a file
|
|
148
|
+
*/
|
|
149
|
+
export interface FileChanges {
|
|
150
|
+
/** Changed lines */
|
|
151
|
+
lines?: LineChange[];
|
|
152
|
+
/** Range of changes (start line) */
|
|
153
|
+
startLine?: number;
|
|
154
|
+
/** Range of changes (end line) */
|
|
155
|
+
endLine?: number;
|
|
156
|
+
/** Content before changes */
|
|
157
|
+
before?: string;
|
|
158
|
+
/** Content after changes */
|
|
159
|
+
after?: string;
|
|
160
|
+
/** Diff in unified format */
|
|
161
|
+
diff?: string;
|
|
162
|
+
/** Number of insertions */
|
|
163
|
+
insertions?: number;
|
|
164
|
+
/** Number of deletions */
|
|
165
|
+
deletions?: number;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* JSON Schema definition for configuration validation
|
|
169
|
+
*/
|
|
170
|
+
export interface JsonSchema {
|
|
171
|
+
type?: 'object' | 'array' | 'string' | 'number' | 'boolean' | 'null';
|
|
172
|
+
properties?: Record<string, JsonSchema>;
|
|
173
|
+
required?: string[];
|
|
174
|
+
items?: JsonSchema;
|
|
175
|
+
additionalProperties?: boolean | JsonSchema;
|
|
176
|
+
description?: string;
|
|
177
|
+
default?: unknown;
|
|
178
|
+
enum?: unknown[];
|
|
179
|
+
minimum?: number;
|
|
180
|
+
maximum?: number;
|
|
181
|
+
minLength?: number;
|
|
182
|
+
maxLength?: number;
|
|
183
|
+
pattern?: string;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Configuration object for hook context
|
|
187
|
+
*/
|
|
188
|
+
export interface HookConfigContext {
|
|
189
|
+
/** Configuration key-value pairs */
|
|
190
|
+
[key: string]: string | number | boolean | null | HookConfigContext | unknown[];
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Task execution metrics
|
|
194
|
+
*/
|
|
195
|
+
export interface TaskMetrics {
|
|
196
|
+
/** CPU usage percentage */
|
|
197
|
+
cpuUsage?: number;
|
|
198
|
+
/** Memory usage in bytes */
|
|
199
|
+
memoryUsage?: number;
|
|
200
|
+
/** Execution duration in ms */
|
|
201
|
+
executionTime?: number;
|
|
202
|
+
/** Number of retries */
|
|
203
|
+
retryCount?: number;
|
|
204
|
+
/** Queue wait time in ms */
|
|
205
|
+
queueWaitTime?: number;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Quality metrics for post-task validation
|
|
209
|
+
*/
|
|
210
|
+
export interface QualityMetrics {
|
|
211
|
+
/** Cyclomatic complexity */
|
|
212
|
+
complexity?: number;
|
|
213
|
+
/** Maintainability index */
|
|
214
|
+
maintainability?: number;
|
|
215
|
+
/** Code duplication percentage */
|
|
216
|
+
duplication?: number;
|
|
217
|
+
/** Test coverage percentage */
|
|
218
|
+
coverage?: number;
|
|
219
|
+
/** Technical debt (hours) */
|
|
220
|
+
technicalDebt?: number;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Coverage metrics for post-task validation
|
|
224
|
+
*/
|
|
225
|
+
export interface CoverageMetrics {
|
|
226
|
+
/** Total lines */
|
|
227
|
+
total: number;
|
|
228
|
+
/** Covered lines */
|
|
229
|
+
covered: number;
|
|
230
|
+
/** Coverage percentage */
|
|
231
|
+
percentage: number;
|
|
232
|
+
/** By file breakdown */
|
|
233
|
+
byFile?: Record<string, {
|
|
234
|
+
covered: number;
|
|
235
|
+
total: number;
|
|
236
|
+
percentage: number;
|
|
237
|
+
}>;
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Performance metrics for post-task validation
|
|
241
|
+
*/
|
|
242
|
+
export interface PerformanceMetrics {
|
|
243
|
+
/** Average response time in ms */
|
|
244
|
+
avgResponseTime: number;
|
|
245
|
+
/** P50 (median) response time */
|
|
246
|
+
p50?: number;
|
|
247
|
+
/** P95 response time */
|
|
248
|
+
p95?: number;
|
|
249
|
+
/** P99 response time */
|
|
250
|
+
p99?: number;
|
|
251
|
+
/** Throughput (requests/sec) */
|
|
252
|
+
throughput?: number;
|
|
253
|
+
/** Error rate percentage */
|
|
254
|
+
errorRate?: number;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Session metrics for session-end hooks
|
|
258
|
+
*/
|
|
259
|
+
export interface SessionMetrics {
|
|
260
|
+
/** Total tasks executed */
|
|
261
|
+
tasksExecuted: number;
|
|
262
|
+
/** Successful tasks */
|
|
263
|
+
tasksSucceeded: number;
|
|
264
|
+
/** Failed tasks */
|
|
265
|
+
tasksFailed: number;
|
|
266
|
+
/** Total execution time in ms */
|
|
267
|
+
totalExecutionTime: number;
|
|
268
|
+
/** Average task duration in ms */
|
|
269
|
+
avgTaskDuration?: number;
|
|
270
|
+
/** Memory usage statistics */
|
|
271
|
+
memoryStats?: {
|
|
272
|
+
peak: number;
|
|
273
|
+
average: number;
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* Environment validation context for pre-task hooks
|
|
278
|
+
*/
|
|
279
|
+
export interface EnvironmentValidationContext {
|
|
280
|
+
/** Required environment variables */
|
|
281
|
+
requiredVars?: string[];
|
|
282
|
+
/** Minimum Node.js version */
|
|
283
|
+
minNodeVersion?: string;
|
|
284
|
+
/** Required modules */
|
|
285
|
+
requiredModules?: string[];
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Resource validation context for pre-task hooks
|
|
289
|
+
*/
|
|
290
|
+
export interface ResourceValidationContext {
|
|
291
|
+
/** Minimum memory in MB */
|
|
292
|
+
minMemoryMB?: number;
|
|
293
|
+
/** Minimum CPU cores */
|
|
294
|
+
minCPUCores?: number;
|
|
295
|
+
/** Minimum disk space in MB */
|
|
296
|
+
minDiskSpaceMB?: number;
|
|
297
|
+
/** Path to check for disk space */
|
|
298
|
+
checkPath?: string;
|
|
299
|
+
/** Maximum load average */
|
|
300
|
+
maxLoadAverage?: number;
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* File system validation context for pre-task hooks
|
|
304
|
+
*/
|
|
305
|
+
export interface FileSystemValidationContext {
|
|
306
|
+
/** Files that must exist */
|
|
307
|
+
files?: string[];
|
|
308
|
+
/** Directories that must exist */
|
|
309
|
+
directories?: string[];
|
|
310
|
+
/** Required permissions */
|
|
311
|
+
requiredPermissions?: string[];
|
|
312
|
+
/** Required access levels */
|
|
313
|
+
requiredAccess?: ('read' | 'write' | 'execute')[];
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* Configuration validation context for pre-task hooks
|
|
317
|
+
*/
|
|
318
|
+
export interface ConfigValidationContext {
|
|
319
|
+
/** Configuration to validate */
|
|
320
|
+
config?: HookConfigContext;
|
|
321
|
+
/** JSON Schema for validation */
|
|
322
|
+
schema?: JsonSchema;
|
|
323
|
+
/** Required configuration keys */
|
|
324
|
+
requiredKeys?: string[];
|
|
325
|
+
/** Validate against stored configuration */
|
|
326
|
+
validateAgainstStored?: boolean;
|
|
327
|
+
/** Key for stored configuration */
|
|
328
|
+
storedKey?: string;
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Combined pre-task validation context
|
|
332
|
+
*/
|
|
333
|
+
export interface PreTaskValidationContext extends EnvironmentValidationContext, ResourceValidationContext, FileSystemValidationContext, ConfigValidationContext {
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* Base task structure that all tasks must have
|
|
337
|
+
*/
|
|
338
|
+
export interface TaskBase {
|
|
339
|
+
/** Task type identifier */
|
|
340
|
+
type: string;
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* Base task assignment properties that all task assignments must have
|
|
344
|
+
*/
|
|
345
|
+
export interface TaskAssignmentBase {
|
|
346
|
+
/** Unique identifier for the assignment */
|
|
347
|
+
id: string;
|
|
348
|
+
/** The task to be executed */
|
|
349
|
+
task: TaskBase;
|
|
350
|
+
}
|
|
6
351
|
/**
|
|
7
352
|
* Data passed to pre-task hooks
|
|
353
|
+
* @template TAssignment - The type of the task assignment (defaults to TaskAssignment for strict typing)
|
|
8
354
|
*/
|
|
9
|
-
export interface PreTaskData {
|
|
355
|
+
export interface PreTaskData<TAssignment extends TaskAssignmentBase = TaskAssignment> {
|
|
10
356
|
/** The task assignment being executed */
|
|
11
|
-
assignment:
|
|
357
|
+
assignment: TAssignment;
|
|
12
358
|
/** Optional context for environment/resource validation */
|
|
13
|
-
context?:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
schema?: any;
|
|
28
|
-
requiredKeys?: string[];
|
|
29
|
-
validateAgainstStored?: boolean;
|
|
30
|
-
storedKey?: string;
|
|
359
|
+
context?: PreTaskValidationContext;
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Output structure for post-task validation
|
|
363
|
+
*/
|
|
364
|
+
export interface TaskOutputStructure {
|
|
365
|
+
/** Expected output type */
|
|
366
|
+
type?: string;
|
|
367
|
+
/** Expected output format */
|
|
368
|
+
format?: 'json' | 'xml' | 'text' | 'binary';
|
|
369
|
+
/** Expected output size range */
|
|
370
|
+
sizeRange?: {
|
|
371
|
+
min?: number;
|
|
372
|
+
max?: number;
|
|
31
373
|
};
|
|
32
374
|
}
|
|
375
|
+
/**
|
|
376
|
+
* Threshold configuration for quality validation
|
|
377
|
+
*/
|
|
378
|
+
export interface QualityThresholds {
|
|
379
|
+
/** Maximum cyclomatic complexity */
|
|
380
|
+
maxComplexity?: number;
|
|
381
|
+
/** Minimum maintainability index (0-100) */
|
|
382
|
+
minMaintainability?: number;
|
|
383
|
+
/** Maximum code duplication percentage */
|
|
384
|
+
maxDuplication?: number;
|
|
385
|
+
/** Minimum test coverage percentage */
|
|
386
|
+
minCoverage?: number;
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* Threshold configuration for coverage validation
|
|
390
|
+
*/
|
|
391
|
+
export interface CoverageThresholds {
|
|
392
|
+
/** Minimum overall coverage */
|
|
393
|
+
minOverall?: number;
|
|
394
|
+
/** Minimum line coverage */
|
|
395
|
+
minLine?: number;
|
|
396
|
+
/** Minimum branch coverage */
|
|
397
|
+
minBranch?: number;
|
|
398
|
+
/** Minimum function coverage */
|
|
399
|
+
minFunction?: number;
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* Threshold configuration for performance validation
|
|
403
|
+
*/
|
|
404
|
+
export interface PerformanceThresholds {
|
|
405
|
+
/** Maximum average response time in ms */
|
|
406
|
+
maxAvgResponseTime?: number;
|
|
407
|
+
/** Maximum P95 response time in ms */
|
|
408
|
+
maxP95?: number;
|
|
409
|
+
/** Maximum P99 response time in ms */
|
|
410
|
+
maxP99?: number;
|
|
411
|
+
/** Minimum throughput (requests/sec) */
|
|
412
|
+
minThroughput?: number;
|
|
413
|
+
/** Maximum error rate percentage */
|
|
414
|
+
maxErrorRate?: number;
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* Baseline for coverage comparison
|
|
418
|
+
*/
|
|
419
|
+
export interface CoverageBaseline {
|
|
420
|
+
/** Baseline overall coverage */
|
|
421
|
+
overall: number;
|
|
422
|
+
/** Baseline line coverage */
|
|
423
|
+
line?: number;
|
|
424
|
+
/** Baseline branch coverage */
|
|
425
|
+
branch?: number;
|
|
426
|
+
/** Baseline function coverage */
|
|
427
|
+
function?: number;
|
|
428
|
+
/** Baseline timestamp */
|
|
429
|
+
timestamp?: Date | number;
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* Baseline for performance comparison
|
|
433
|
+
*/
|
|
434
|
+
export interface PerformanceBaseline {
|
|
435
|
+
/** Baseline average response time */
|
|
436
|
+
avgResponseTime: number;
|
|
437
|
+
/** Baseline P95 */
|
|
438
|
+
p95?: number;
|
|
439
|
+
/** Baseline P99 */
|
|
440
|
+
p99?: number;
|
|
441
|
+
/** Baseline throughput */
|
|
442
|
+
throughput?: number;
|
|
443
|
+
/** Baseline timestamp */
|
|
444
|
+
timestamp?: Date | number;
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* Post-task validation context
|
|
448
|
+
*/
|
|
449
|
+
export interface PostTaskValidationContext {
|
|
450
|
+
/** Output to validate */
|
|
451
|
+
output?: FlexibleTaskResult;
|
|
452
|
+
/** Expected output structure */
|
|
453
|
+
expectedStructure?: TaskOutputStructure;
|
|
454
|
+
/** Expected types for output fields */
|
|
455
|
+
expectedTypes?: Record<string, string>;
|
|
456
|
+
/** Required fields in output */
|
|
457
|
+
requiredFields?: string[];
|
|
458
|
+
/** Quality metrics */
|
|
459
|
+
metrics?: QualityMetrics | TaskMetrics;
|
|
460
|
+
/** Quality thresholds */
|
|
461
|
+
qualityThresholds?: QualityThresholds;
|
|
462
|
+
/** Coverage metrics */
|
|
463
|
+
coverage?: CoverageMetrics;
|
|
464
|
+
/** Coverage thresholds */
|
|
465
|
+
coverageThresholds?: CoverageThresholds;
|
|
466
|
+
/** Coverage baseline for comparison */
|
|
467
|
+
coverageBaseline?: CoverageBaseline;
|
|
468
|
+
/** Performance metrics */
|
|
469
|
+
performance?: PerformanceMetrics;
|
|
470
|
+
/** Performance thresholds */
|
|
471
|
+
performanceThresholds?: PerformanceThresholds;
|
|
472
|
+
/** Performance baseline for comparison */
|
|
473
|
+
performanceBaseline?: PerformanceBaseline;
|
|
474
|
+
/** Regression threshold percentage */
|
|
475
|
+
regressionThreshold?: number;
|
|
476
|
+
}
|
|
33
477
|
/**
|
|
34
478
|
* Data passed to post-task hooks
|
|
479
|
+
* @template TResult - The type of the task result (defaults to FlexibleTaskResult for backwards compatibility)
|
|
480
|
+
* @template TAssignment - The type of the task assignment (defaults to TaskAssignment)
|
|
35
481
|
*/
|
|
36
|
-
export interface PostTaskData {
|
|
482
|
+
export interface PostTaskData<TResult = FlexibleTaskResult, TAssignment extends TaskAssignmentBase = TaskAssignment> {
|
|
37
483
|
/** The task assignment that was executed */
|
|
38
|
-
assignment:
|
|
484
|
+
assignment: TAssignment;
|
|
39
485
|
/** The result of the task execution */
|
|
40
|
-
result:
|
|
486
|
+
result: TResult;
|
|
41
487
|
/** Optional validation context */
|
|
42
|
-
context?:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
};
|
|
488
|
+
context?: PostTaskValidationContext;
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
* Error context for task failure hooks
|
|
492
|
+
*/
|
|
493
|
+
export interface TaskErrorContext {
|
|
494
|
+
/** Stage where error occurred */
|
|
495
|
+
stage?: 'initialization' | 'execution' | 'validation' | 'cleanup' | string;
|
|
496
|
+
/** Attempt number (for retries) */
|
|
497
|
+
attemptNumber?: number;
|
|
498
|
+
/** Whether the task can be retried */
|
|
499
|
+
canRetry?: boolean;
|
|
500
|
+
/** Available recovery options */
|
|
501
|
+
recoveryOptions?: string[];
|
|
502
|
+
/** Stack trace */
|
|
503
|
+
stackTrace?: string;
|
|
504
|
+
/** Related error codes */
|
|
505
|
+
errorCodes?: string[];
|
|
61
506
|
}
|
|
62
507
|
/**
|
|
63
508
|
* Data passed to task error hooks
|
|
509
|
+
* @template TAssignment - The type of the task assignment (defaults to TaskAssignment)
|
|
64
510
|
*/
|
|
65
|
-
export interface TaskErrorData {
|
|
511
|
+
export interface TaskErrorData<TAssignment extends TaskAssignmentBase = TaskAssignment> {
|
|
66
512
|
/** The task assignment that failed */
|
|
67
|
-
assignment:
|
|
513
|
+
assignment: TAssignment;
|
|
68
514
|
/** The error that occurred */
|
|
69
515
|
error: Error;
|
|
70
516
|
/** Optional error context */
|
|
71
|
-
context?:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
517
|
+
context?: TaskErrorContext;
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* Pre-edit validation context
|
|
521
|
+
*/
|
|
522
|
+
export interface PreEditContext {
|
|
523
|
+
/** Type of edit operation */
|
|
524
|
+
editType?: 'create' | 'update' | 'delete';
|
|
525
|
+
/** Expected file format */
|
|
526
|
+
expectedFormat?: string;
|
|
527
|
+
/** Validate syntax before edit */
|
|
528
|
+
validateSyntax?: boolean;
|
|
529
|
+
/** Check for file locks */
|
|
530
|
+
checkLocks?: boolean;
|
|
531
|
+
/** Validate file size limits */
|
|
532
|
+
maxFileSize?: number;
|
|
533
|
+
/** Required permissions for edit */
|
|
534
|
+
requiredPermissions?: ('read' | 'write' | 'execute')[];
|
|
77
535
|
}
|
|
78
536
|
/**
|
|
79
537
|
* Data passed to pre-edit hooks
|
|
@@ -82,13 +540,29 @@ export interface PreEditData {
|
|
|
82
540
|
/** File path being edited */
|
|
83
541
|
file: string;
|
|
84
542
|
/** Changes being applied */
|
|
85
|
-
changes:
|
|
543
|
+
changes: FileChanges;
|
|
86
544
|
/** Optional edit context */
|
|
87
|
-
context?:
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
545
|
+
context?: PreEditContext;
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* Post-edit result context
|
|
549
|
+
*/
|
|
550
|
+
export interface PostEditContext {
|
|
551
|
+
/** Whether the edit succeeded */
|
|
552
|
+
success?: boolean;
|
|
553
|
+
/** Artifact ID if created */
|
|
554
|
+
artifactId?: string;
|
|
555
|
+
/** Whether to update dependencies */
|
|
556
|
+
updateDependencies?: boolean;
|
|
557
|
+
/** Whether to notify other agents */
|
|
558
|
+
notifyAgents?: boolean;
|
|
559
|
+
/** Files affected by the edit */
|
|
560
|
+
affectedFiles?: string[];
|
|
561
|
+
/** Validation results */
|
|
562
|
+
validationResult?: {
|
|
563
|
+
syntaxValid: boolean;
|
|
564
|
+
lintPassed: boolean;
|
|
565
|
+
errors?: string[];
|
|
92
566
|
};
|
|
93
567
|
}
|
|
94
568
|
/**
|
|
@@ -98,13 +572,28 @@ export interface PostEditData {
|
|
|
98
572
|
/** File path that was edited */
|
|
99
573
|
file: string;
|
|
100
574
|
/** Changes that were applied */
|
|
101
|
-
changes:
|
|
575
|
+
changes: FileChanges;
|
|
102
576
|
/** Optional edit result context */
|
|
103
|
-
context?:
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
577
|
+
context?: PostEditContext;
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* Session end context
|
|
581
|
+
*/
|
|
582
|
+
export interface SessionEndContext {
|
|
583
|
+
/** Final session metrics */
|
|
584
|
+
finalMetrics?: SessionMetrics;
|
|
585
|
+
/** Path to export session data */
|
|
586
|
+
exportPath?: string;
|
|
587
|
+
/** Whether cleanup is required */
|
|
588
|
+
cleanupRequired?: boolean;
|
|
589
|
+
/** Whether to persist state */
|
|
590
|
+
persistState?: boolean;
|
|
591
|
+
/** Session summary */
|
|
592
|
+
summary?: {
|
|
593
|
+
totalDuration: number;
|
|
594
|
+
tasksCompleted: number;
|
|
595
|
+
tasksFailed: number;
|
|
596
|
+
errorsEncountered: number;
|
|
108
597
|
};
|
|
109
598
|
}
|
|
110
599
|
/**
|
|
@@ -118,17 +607,56 @@ export interface SessionEndData {
|
|
|
118
607
|
/** Number of tasks completed */
|
|
119
608
|
tasksCompleted: number;
|
|
120
609
|
/** Optional session context */
|
|
121
|
-
context?:
|
|
122
|
-
finalMetrics?: any;
|
|
123
|
-
exportPath?: string;
|
|
124
|
-
cleanupRequired?: boolean;
|
|
125
|
-
persistState?: boolean;
|
|
126
|
-
};
|
|
610
|
+
context?: SessionEndContext;
|
|
127
611
|
}
|
|
612
|
+
/**
|
|
613
|
+
* All possible hook data types
|
|
614
|
+
*/
|
|
615
|
+
export type HookData = PreTaskData | PostTaskData | TaskErrorData | PreEditData | PostEditData | SessionEndData;
|
|
616
|
+
/**
|
|
617
|
+
* Hook type identifiers
|
|
618
|
+
*/
|
|
619
|
+
export type HookType = 'pre-task' | 'post-task' | 'task-error' | 'pre-edit' | 'post-edit' | 'session-start' | 'session-end' | 'pre-initialization' | 'post-initialization' | 'pre-termination' | 'post-termination';
|
|
128
620
|
/**
|
|
129
621
|
* Generic hook handler function type
|
|
622
|
+
* @template T - The type of data the handler receives
|
|
623
|
+
* @template R - The return type (defaults to void)
|
|
130
624
|
*/
|
|
131
|
-
export type HookHandler<T =
|
|
625
|
+
export type HookHandler<T extends HookData = HookData, R = void> = (data: T) => Promise<R> | R;
|
|
626
|
+
/**
|
|
627
|
+
* Typed hook handlers for specific hook types
|
|
628
|
+
*/
|
|
629
|
+
export type PreTaskHookHandler = HookHandler<PreTaskData>;
|
|
630
|
+
export type PostTaskHookHandler = HookHandler<PostTaskData>;
|
|
631
|
+
export type TaskErrorHookHandler = HookHandler<TaskErrorData>;
|
|
632
|
+
export type PreEditHookHandler = HookHandler<PreEditData>;
|
|
633
|
+
export type PostEditHookHandler = HookHandler<PostEditData>;
|
|
634
|
+
export type SessionEndHookHandler = HookHandler<SessionEndData>;
|
|
635
|
+
/**
|
|
636
|
+
* Hook execution result data
|
|
637
|
+
*/
|
|
638
|
+
export interface HookResultData {
|
|
639
|
+
/** Verification results */
|
|
640
|
+
verification?: {
|
|
641
|
+
passed: boolean;
|
|
642
|
+
score: number;
|
|
643
|
+
checks: Array<{
|
|
644
|
+
name: string;
|
|
645
|
+
passed: boolean;
|
|
646
|
+
message?: string;
|
|
647
|
+
}>;
|
|
648
|
+
};
|
|
649
|
+
/** Validation results */
|
|
650
|
+
validation?: {
|
|
651
|
+
valid: boolean;
|
|
652
|
+
accuracy: number;
|
|
653
|
+
issues?: string[];
|
|
654
|
+
};
|
|
655
|
+
/** Transformed data */
|
|
656
|
+
transformed?: Record<string, unknown>;
|
|
657
|
+
/** Metadata */
|
|
658
|
+
metadata?: Record<string, unknown>;
|
|
659
|
+
}
|
|
132
660
|
/**
|
|
133
661
|
* Hook execution result
|
|
134
662
|
*/
|
|
@@ -142,6 +670,36 @@ export interface HookExecutionResult {
|
|
|
142
670
|
/** Optional error if hook failed */
|
|
143
671
|
error?: Error;
|
|
144
672
|
/** Optional result data */
|
|
145
|
-
data?:
|
|
673
|
+
data?: HookResultData;
|
|
674
|
+
}
|
|
675
|
+
/**
|
|
676
|
+
* Hook registration entry
|
|
677
|
+
*/
|
|
678
|
+
export interface HookRegistration<T extends HookData = HookData> {
|
|
679
|
+
/** Unique identifier for the registration */
|
|
680
|
+
id: string;
|
|
681
|
+
/** Hook type */
|
|
682
|
+
type: HookType;
|
|
683
|
+
/** Handler function */
|
|
684
|
+
handler: HookHandler<T>;
|
|
685
|
+
/** Priority (higher = runs first) */
|
|
686
|
+
priority?: number;
|
|
687
|
+
/** Whether the hook is enabled */
|
|
688
|
+
enabled?: boolean;
|
|
689
|
+
/** Optional filter function */
|
|
690
|
+
filter?: (data: T) => boolean;
|
|
691
|
+
}
|
|
692
|
+
/**
|
|
693
|
+
* Hook registry interface
|
|
694
|
+
*/
|
|
695
|
+
export interface IHookRegistry {
|
|
696
|
+
/** Register a hook handler */
|
|
697
|
+
register<T extends HookData>(registration: HookRegistration<T>): void;
|
|
698
|
+
/** Unregister a hook handler */
|
|
699
|
+
unregister(id: string): void;
|
|
700
|
+
/** Execute all handlers for a hook type */
|
|
701
|
+
execute<T extends HookData>(type: HookType, data: T): Promise<HookExecutionResult[]>;
|
|
702
|
+
/** Get all registered handlers for a type */
|
|
703
|
+
getHandlers(type: HookType): HookRegistration[];
|
|
146
704
|
}
|
|
147
705
|
//# sourceMappingURL=hook.types.d.ts.map
|