agentic-qe 2.7.3 → 2.8.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 +130 -0
- package/README.md +67 -2
- package/dist/agents/AccessibilityAllyAgent.d.ts +0 -7
- package/dist/agents/AccessibilityAllyAgent.d.ts.map +1 -1
- package/dist/agents/AccessibilityAllyAgent.js +0 -15
- package/dist/agents/AccessibilityAllyAgent.js.map +1 -1
- package/dist/agents/ApiContractValidatorAgent.js +4 -4
- package/dist/agents/ApiContractValidatorAgent.js.map +1 -1
- package/dist/agents/BaseAgent.d.ts +2 -0
- package/dist/agents/BaseAgent.d.ts.map +1 -1
- package/dist/agents/BaseAgent.js +43 -41
- package/dist/agents/BaseAgent.js.map +1 -1
- package/dist/agents/CodeComplexityAnalyzerAgent.d.ts +0 -8
- package/dist/agents/CodeComplexityAnalyzerAgent.d.ts.map +1 -1
- package/dist/agents/CodeComplexityAnalyzerAgent.js +0 -15
- package/dist/agents/CodeComplexityAnalyzerAgent.js.map +1 -1
- package/dist/agents/CodeIntelligenceAgent.d.ts +0 -1
- package/dist/agents/CodeIntelligenceAgent.d.ts.map +1 -1
- package/dist/agents/CodeIntelligenceAgent.js +0 -2
- package/dist/agents/CodeIntelligenceAgent.js.map +1 -1
- 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 +0 -10
- package/dist/agents/FlakyTestHunterAgent.d.ts.map +1 -1
- package/dist/agents/FlakyTestHunterAgent.js +10 -20
- package/dist/agents/FlakyTestHunterAgent.js.map +1 -1
- package/dist/agents/FleetCommanderAgent.d.ts.map +1 -1
- package/dist/agents/FleetCommanderAgent.js +28 -28
- package/dist/agents/FleetCommanderAgent.js.map +1 -1
- package/dist/agents/LearningAgent.js +1 -1
- package/dist/agents/LearningAgent.js.map +1 -1
- package/dist/agents/PerformanceTesterAgent.d.ts.map +1 -1
- package/dist/agents/PerformanceTesterAgent.js +25 -25
- package/dist/agents/PerformanceTesterAgent.js.map +1 -1
- package/dist/agents/ProductionIntelligenceAgent.d.ts.map +1 -1
- package/dist/agents/ProductionIntelligenceAgent.js +20 -20
- package/dist/agents/ProductionIntelligenceAgent.js.map +1 -1
- package/dist/agents/QXPartnerAgent.d.ts +0 -8
- package/dist/agents/QXPartnerAgent.d.ts.map +1 -1
- package/dist/agents/QXPartnerAgent.js +0 -15
- package/dist/agents/QXPartnerAgent.js.map +1 -1
- package/dist/agents/QualityAnalyzerAgent.d.ts +0 -7
- package/dist/agents/QualityAnalyzerAgent.d.ts.map +1 -1
- package/dist/agents/QualityAnalyzerAgent.js +0 -16
- package/dist/agents/QualityAnalyzerAgent.js.map +1 -1
- package/dist/agents/RegressionRiskAnalyzerAgent.d.ts.map +1 -1
- package/dist/agents/RegressionRiskAnalyzerAgent.js +18 -18
- package/dist/agents/RegressionRiskAnalyzerAgent.js.map +1 -1
- package/dist/agents/RequirementsValidatorAgent.d.ts.map +1 -1
- package/dist/agents/RequirementsValidatorAgent.js +21 -21
- package/dist/agents/RequirementsValidatorAgent.js.map +1 -1
- package/dist/agents/SecurityScannerAgent.d.ts.map +1 -1
- package/dist/agents/SecurityScannerAgent.js +38 -38
- package/dist/agents/SecurityScannerAgent.js.map +1 -1
- package/dist/agents/TestDataArchitectAgent.d.ts.map +1 -1
- package/dist/agents/TestDataArchitectAgent.js +29 -29
- package/dist/agents/TestDataArchitectAgent.js.map +1 -1
- package/dist/agents/TestExecutorAgent.d.ts +0 -7
- package/dist/agents/TestExecutorAgent.d.ts.map +1 -1
- package/dist/agents/TestExecutorAgent.js +35 -51
- package/dist/agents/TestExecutorAgent.js.map +1 -1
- package/dist/agents/TestGeneratorAgent.d.ts +0 -7
- package/dist/agents/TestGeneratorAgent.d.ts.map +1 -1
- package/dist/agents/TestGeneratorAgent.js +0 -16
- package/dist/agents/TestGeneratorAgent.js.map +1 -1
- package/dist/agents/adapters/AgentLLMAdapter.d.ts.map +1 -1
- package/dist/agents/adapters/AgentLLMAdapter.js +5 -4
- package/dist/agents/adapters/AgentLLMAdapter.js.map +1 -1
- package/dist/agents/adapters/CoordinatorAdapter.d.ts.map +1 -1
- package/dist/agents/adapters/CoordinatorAdapter.js +2 -1
- package/dist/agents/adapters/CoordinatorAdapter.js.map +1 -1
- package/dist/agents/n8n/N8nAPIClient.d.ts.map +1 -1
- package/dist/agents/n8n/N8nAPIClient.js +3 -2
- package/dist/agents/n8n/N8nAPIClient.js.map +1 -1
- package/dist/agents/n8n/N8nAuditPersistence.d.ts.map +1 -1
- package/dist/agents/n8n/N8nAuditPersistence.js +2 -1
- package/dist/agents/n8n/N8nAuditPersistence.js.map +1 -1
- package/dist/agents/n8n/N8nBaseAgent.js +1 -1
- package/dist/agents/n8n/N8nBaseAgent.js.map +1 -1
- package/dist/agents/n8n/N8nComplianceValidatorAgent.js +1 -1
- package/dist/agents/n8n/N8nComplianceValidatorAgent.js.map +1 -1
- package/dist/agents/n8n/N8nMonitoringValidatorAgent.js +1 -1
- package/dist/agents/n8n/N8nMonitoringValidatorAgent.js.map +1 -1
- package/dist/agents/n8n/N8nReplayabilityTesterAgent.js +1 -1
- package/dist/agents/n8n/N8nReplayabilityTesterAgent.js.map +1 -1
- package/dist/agents/n8n/N8nSecurityAuditorAgent.js +1 -1
- package/dist/agents/n8n/N8nSecurityAuditorAgent.js.map +1 -1
- package/dist/agents/pool/AgentPool.d.ts.map +1 -1
- package/dist/agents/pool/AgentPool.js +2 -1
- package/dist/agents/pool/AgentPool.js.map +1 -1
- package/dist/agents/pool/QEAgentPoolFactory.d.ts.map +1 -1
- package/dist/agents/pool/QEAgentPoolFactory.js +2 -1
- package/dist/agents/pool/QEAgentPoolFactory.js.map +1 -1
- package/dist/cli/commands/agent/spawn.d.ts +12 -1
- package/dist/cli/commands/agent/spawn.d.ts.map +1 -1
- package/dist/cli/commands/agent/spawn.js +95 -8
- package/dist/cli/commands/agent/spawn.js.map +1 -1
- package/dist/cli/index.js +91 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/core/memory/HNSWVectorMemory.js +1 -1
- package/dist/edge/adapters/BrowserHNSWAdapter.d.ts +134 -0
- package/dist/edge/adapters/BrowserHNSWAdapter.d.ts.map +1 -0
- package/dist/edge/adapters/BrowserHNSWAdapter.js +484 -0
- package/dist/edge/adapters/BrowserHNSWAdapter.js.map +1 -0
- package/dist/edge/adapters/IndexedDBStorage.d.ts +114 -0
- package/dist/edge/adapters/IndexedDBStorage.d.ts.map +1 -0
- package/dist/edge/adapters/IndexedDBStorage.js +478 -0
- package/dist/edge/adapters/IndexedDBStorage.js.map +1 -0
- package/dist/edge/adapters/index.d.ts +12 -0
- package/dist/edge/adapters/index.d.ts.map +1 -0
- package/dist/edge/adapters/index.js +22 -0
- package/dist/edge/adapters/index.js.map +1 -0
- package/dist/edge/browser/BrowserAgent.d.ts +241 -0
- package/dist/edge/browser/BrowserAgent.d.ts.map +1 -0
- package/dist/edge/browser/BrowserAgent.js +743 -0
- package/dist/edge/browser/BrowserAgent.js.map +1 -0
- package/dist/edge/index.d.ts +34 -0
- package/dist/edge/index.d.ts.map +1 -0
- package/dist/edge/index.js +114 -0
- package/dist/edge/index.js.map +1 -0
- package/dist/edge/p2p/coordination/CoordinationManager.d.ts +181 -0
- package/dist/edge/p2p/coordination/CoordinationManager.d.ts.map +1 -0
- package/dist/edge/p2p/coordination/CoordinationManager.js +851 -0
- package/dist/edge/p2p/coordination/CoordinationManager.js.map +1 -0
- package/dist/edge/p2p/coordination/HealthMonitor.d.ts +143 -0
- package/dist/edge/p2p/coordination/HealthMonitor.d.ts.map +1 -0
- package/dist/edge/p2p/coordination/HealthMonitor.js +432 -0
- package/dist/edge/p2p/coordination/HealthMonitor.js.map +1 -0
- package/dist/edge/p2p/coordination/SyncOrchestrator.d.ts +146 -0
- package/dist/edge/p2p/coordination/SyncOrchestrator.d.ts.map +1 -0
- package/dist/edge/p2p/coordination/SyncOrchestrator.js +783 -0
- package/dist/edge/p2p/coordination/SyncOrchestrator.js.map +1 -0
- package/dist/edge/p2p/coordination/index.d.ts +70 -0
- package/dist/edge/p2p/coordination/index.d.ts.map +1 -0
- package/dist/edge/p2p/coordination/index.js +107 -0
- package/dist/edge/p2p/coordination/index.js.map +1 -0
- package/dist/edge/p2p/coordination/types.d.ts +572 -0
- package/dist/edge/p2p/coordination/types.d.ts.map +1 -0
- package/dist/edge/p2p/coordination/types.js +366 -0
- package/dist/edge/p2p/coordination/types.js.map +1 -0
- package/dist/edge/p2p/crdt/CRDTStore.d.ts +324 -0
- package/dist/edge/p2p/crdt/CRDTStore.d.ts.map +1 -0
- package/dist/edge/p2p/crdt/CRDTStore.js +839 -0
- package/dist/edge/p2p/crdt/CRDTStore.js.map +1 -0
- package/dist/edge/p2p/crdt/GCounter.d.ts +173 -0
- package/dist/edge/p2p/crdt/GCounter.d.ts.map +1 -0
- package/dist/edge/p2p/crdt/GCounter.js +394 -0
- package/dist/edge/p2p/crdt/GCounter.js.map +1 -0
- package/dist/edge/p2p/crdt/LWWRegister.d.ts +200 -0
- package/dist/edge/p2p/crdt/LWWRegister.d.ts.map +1 -0
- package/dist/edge/p2p/crdt/LWWRegister.js +456 -0
- package/dist/edge/p2p/crdt/LWWRegister.js.map +1 -0
- package/dist/edge/p2p/crdt/ORSet.d.ts +232 -0
- package/dist/edge/p2p/crdt/ORSet.d.ts.map +1 -0
- package/dist/edge/p2p/crdt/ORSet.js +723 -0
- package/dist/edge/p2p/crdt/ORSet.js.map +1 -0
- package/dist/edge/p2p/crdt/PatternCRDT.d.ts +366 -0
- package/dist/edge/p2p/crdt/PatternCRDT.d.ts.map +1 -0
- package/dist/edge/p2p/crdt/PatternCRDT.js +838 -0
- package/dist/edge/p2p/crdt/PatternCRDT.js.map +1 -0
- package/dist/edge/p2p/crdt/VectorClock.d.ts +274 -0
- package/dist/edge/p2p/crdt/VectorClock.d.ts.map +1 -0
- package/dist/edge/p2p/crdt/VectorClock.js +499 -0
- package/dist/edge/p2p/crdt/VectorClock.js.map +1 -0
- package/dist/edge/p2p/crdt/index.d.ts +87 -0
- package/dist/edge/p2p/crdt/index.d.ts.map +1 -0
- package/dist/edge/p2p/crdt/index.js +120 -0
- package/dist/edge/p2p/crdt/index.js.map +1 -0
- package/dist/edge/p2p/crdt/types.d.ts +667 -0
- package/dist/edge/p2p/crdt/types.d.ts.map +1 -0
- package/dist/edge/p2p/crdt/types.js +208 -0
- package/dist/edge/p2p/crdt/types.js.map +1 -0
- package/dist/edge/p2p/crypto/Identity.d.ts +139 -0
- package/dist/edge/p2p/crypto/Identity.d.ts.map +1 -0
- package/dist/edge/p2p/crypto/Identity.js +449 -0
- package/dist/edge/p2p/crypto/Identity.js.map +1 -0
- package/dist/edge/p2p/crypto/KeyManager.d.ts +196 -0
- package/dist/edge/p2p/crypto/KeyManager.d.ts.map +1 -0
- package/dist/edge/p2p/crypto/KeyManager.js +576 -0
- package/dist/edge/p2p/crypto/KeyManager.js.map +1 -0
- package/dist/edge/p2p/crypto/Signer.d.ts +164 -0
- package/dist/edge/p2p/crypto/Signer.d.ts.map +1 -0
- package/dist/edge/p2p/crypto/Signer.js +357 -0
- package/dist/edge/p2p/crypto/Signer.js.map +1 -0
- package/dist/edge/p2p/crypto/index.d.ts +90 -0
- package/dist/edge/p2p/crypto/index.d.ts.map +1 -0
- package/dist/edge/p2p/crypto/index.js +158 -0
- package/dist/edge/p2p/crypto/index.js.map +1 -0
- package/dist/edge/p2p/crypto/types.d.ts +217 -0
- package/dist/edge/p2p/crypto/types.d.ts.map +1 -0
- package/dist/edge/p2p/crypto/types.js +42 -0
- package/dist/edge/p2p/crypto/types.js.map +1 -0
- package/dist/edge/p2p/federated/FederatedCoordinator.d.ts +270 -0
- package/dist/edge/p2p/federated/FederatedCoordinator.d.ts.map +1 -0
- package/dist/edge/p2p/federated/FederatedCoordinator.js +824 -0
- package/dist/edge/p2p/federated/FederatedCoordinator.js.map +1 -0
- package/dist/edge/p2p/federated/FederatedRound.d.ts +295 -0
- package/dist/edge/p2p/federated/FederatedRound.d.ts.map +1 -0
- package/dist/edge/p2p/federated/FederatedRound.js +819 -0
- package/dist/edge/p2p/federated/FederatedRound.js.map +1 -0
- package/dist/edge/p2p/federated/GradientAggregator.d.ts +226 -0
- package/dist/edge/p2p/federated/GradientAggregator.d.ts.map +1 -0
- package/dist/edge/p2p/federated/GradientAggregator.js +826 -0
- package/dist/edge/p2p/federated/GradientAggregator.js.map +1 -0
- package/dist/edge/p2p/federated/ModelManager.d.ts +248 -0
- package/dist/edge/p2p/federated/ModelManager.d.ts.map +1 -0
- package/dist/edge/p2p/federated/ModelManager.js +724 -0
- package/dist/edge/p2p/federated/ModelManager.js.map +1 -0
- package/dist/edge/p2p/federated/index.d.ts +65 -0
- package/dist/edge/p2p/federated/index.d.ts.map +1 -0
- package/dist/edge/p2p/federated/index.js +110 -0
- package/dist/edge/p2p/federated/index.js.map +1 -0
- package/dist/edge/p2p/federated/types.d.ts +905 -0
- package/dist/edge/p2p/federated/types.d.ts.map +1 -0
- package/dist/edge/p2p/federated/types.js +339 -0
- package/dist/edge/p2p/federated/types.js.map +1 -0
- package/dist/edge/p2p/index.d.ts +156 -0
- package/dist/edge/p2p/index.d.ts.map +1 -0
- package/dist/edge/p2p/index.js +242 -0
- package/dist/edge/p2p/index.js.map +1 -0
- package/dist/edge/p2p/nat/ConnectivityTester.d.ts +128 -0
- package/dist/edge/p2p/nat/ConnectivityTester.d.ts.map +1 -0
- package/dist/edge/p2p/nat/ConnectivityTester.js +560 -0
- package/dist/edge/p2p/nat/ConnectivityTester.js.map +1 -0
- package/dist/edge/p2p/nat/HolePuncher.d.ts +159 -0
- package/dist/edge/p2p/nat/HolePuncher.d.ts.map +1 -0
- package/dist/edge/p2p/nat/HolePuncher.js +569 -0
- package/dist/edge/p2p/nat/HolePuncher.js.map +1 -0
- package/dist/edge/p2p/nat/NATDetector.d.ts +109 -0
- package/dist/edge/p2p/nat/NATDetector.d.ts.map +1 -0
- package/dist/edge/p2p/nat/NATDetector.js +472 -0
- package/dist/edge/p2p/nat/NATDetector.js.map +1 -0
- package/dist/edge/p2p/nat/TURNManager.d.ts +158 -0
- package/dist/edge/p2p/nat/TURNManager.d.ts.map +1 -0
- package/dist/edge/p2p/nat/TURNManager.js +547 -0
- package/dist/edge/p2p/nat/TURNManager.js.map +1 -0
- package/dist/edge/p2p/nat/index.d.ts +74 -0
- package/dist/edge/p2p/nat/index.d.ts.map +1 -0
- package/dist/edge/p2p/nat/index.js +104 -0
- package/dist/edge/p2p/nat/index.js.map +1 -0
- package/dist/edge/p2p/nat/types.d.ts +583 -0
- package/dist/edge/p2p/nat/types.d.ts.map +1 -0
- package/dist/edge/p2p/nat/types.js +267 -0
- package/dist/edge/p2p/nat/types.js.map +1 -0
- package/dist/edge/p2p/protocol/AgentChannel.d.ts +333 -0
- package/dist/edge/p2p/protocol/AgentChannel.d.ts.map +1 -0
- package/dist/edge/p2p/protocol/AgentChannel.js +914 -0
- package/dist/edge/p2p/protocol/AgentChannel.js.map +1 -0
- package/dist/edge/p2p/protocol/MessageEncoder.d.ts +147 -0
- package/dist/edge/p2p/protocol/MessageEncoder.d.ts.map +1 -0
- package/dist/edge/p2p/protocol/MessageEncoder.js +738 -0
- package/dist/edge/p2p/protocol/MessageEncoder.js.map +1 -0
- package/dist/edge/p2p/protocol/MessageRouter.d.ts +266 -0
- package/dist/edge/p2p/protocol/MessageRouter.d.ts.map +1 -0
- package/dist/edge/p2p/protocol/MessageRouter.js +808 -0
- package/dist/edge/p2p/protocol/MessageRouter.js.map +1 -0
- package/dist/edge/p2p/protocol/ProtocolHandler.d.ts +309 -0
- package/dist/edge/p2p/protocol/ProtocolHandler.d.ts.map +1 -0
- package/dist/edge/p2p/protocol/ProtocolHandler.js +930 -0
- package/dist/edge/p2p/protocol/ProtocolHandler.js.map +1 -0
- package/dist/edge/p2p/protocol/index.d.ts +114 -0
- package/dist/edge/p2p/protocol/index.d.ts.map +1 -0
- package/dist/edge/p2p/protocol/index.js +206 -0
- package/dist/edge/p2p/protocol/index.js.map +1 -0
- package/dist/edge/p2p/protocol/types.d.ts +737 -0
- package/dist/edge/p2p/protocol/types.d.ts.map +1 -0
- package/dist/edge/p2p/protocol/types.js +490 -0
- package/dist/edge/p2p/protocol/types.js.map +1 -0
- package/dist/edge/p2p/sharing/PatternBroadcaster.d.ts +284 -0
- package/dist/edge/p2p/sharing/PatternBroadcaster.d.ts.map +1 -0
- package/dist/edge/p2p/sharing/PatternBroadcaster.js +644 -0
- package/dist/edge/p2p/sharing/PatternBroadcaster.js.map +1 -0
- package/dist/edge/p2p/sharing/PatternIndex.d.ts +168 -0
- package/dist/edge/p2p/sharing/PatternIndex.d.ts.map +1 -0
- package/dist/edge/p2p/sharing/PatternIndex.js +781 -0
- package/dist/edge/p2p/sharing/PatternIndex.js.map +1 -0
- package/dist/edge/p2p/sharing/PatternSerializer.d.ts +163 -0
- package/dist/edge/p2p/sharing/PatternSerializer.d.ts.map +1 -0
- package/dist/edge/p2p/sharing/PatternSerializer.js +696 -0
- package/dist/edge/p2p/sharing/PatternSerializer.js.map +1 -0
- package/dist/edge/p2p/sharing/PatternSyncManager.d.ts +242 -0
- package/dist/edge/p2p/sharing/PatternSyncManager.d.ts.map +1 -0
- package/dist/edge/p2p/sharing/PatternSyncManager.js +859 -0
- package/dist/edge/p2p/sharing/PatternSyncManager.js.map +1 -0
- package/dist/edge/p2p/sharing/index.d.ts +90 -0
- package/dist/edge/p2p/sharing/index.d.ts.map +1 -0
- package/dist/edge/p2p/sharing/index.js +152 -0
- package/dist/edge/p2p/sharing/index.js.map +1 -0
- package/dist/edge/p2p/sharing/types.d.ts +796 -0
- package/dist/edge/p2p/sharing/types.d.ts.map +1 -0
- package/dist/edge/p2p/sharing/types.js +264 -0
- package/dist/edge/p2p/sharing/types.js.map +1 -0
- package/dist/edge/p2p/webrtc/ConnectionPool.d.ts +218 -0
- package/dist/edge/p2p/webrtc/ConnectionPool.d.ts.map +1 -0
- package/dist/edge/p2p/webrtc/ConnectionPool.js +562 -0
- package/dist/edge/p2p/webrtc/ConnectionPool.js.map +1 -0
- package/dist/edge/p2p/webrtc/ICEManager.d.ts +171 -0
- package/dist/edge/p2p/webrtc/ICEManager.d.ts.map +1 -0
- package/dist/edge/p2p/webrtc/ICEManager.js +490 -0
- package/dist/edge/p2p/webrtc/ICEManager.js.map +1 -0
- package/dist/edge/p2p/webrtc/PeerConnectionManager.d.ts +159 -0
- package/dist/edge/p2p/webrtc/PeerConnectionManager.d.ts.map +1 -0
- package/dist/edge/p2p/webrtc/PeerConnectionManager.js +735 -0
- package/dist/edge/p2p/webrtc/PeerConnectionManager.js.map +1 -0
- package/dist/edge/p2p/webrtc/SignalingClient.d.ts +191 -0
- package/dist/edge/p2p/webrtc/SignalingClient.d.ts.map +1 -0
- package/dist/edge/p2p/webrtc/SignalingClient.js +608 -0
- package/dist/edge/p2p/webrtc/SignalingClient.js.map +1 -0
- package/dist/edge/p2p/webrtc/index.d.ts +158 -0
- package/dist/edge/p2p/webrtc/index.d.ts.map +1 -0
- package/dist/edge/p2p/webrtc/index.js +164 -0
- package/dist/edge/p2p/webrtc/index.js.map +1 -0
- package/dist/edge/p2p/webrtc/types.d.ts +665 -0
- package/dist/edge/p2p/webrtc/types.d.ts.map +1 -0
- package/dist/edge/p2p/webrtc/types.js +245 -0
- package/dist/edge/p2p/webrtc/types.js.map +1 -0
- package/dist/edge/server/AgentSpawnAPI.d.ts +98 -0
- package/dist/edge/server/AgentSpawnAPI.d.ts.map +1 -0
- package/dist/edge/server/AgentSpawnAPI.js +264 -0
- package/dist/edge/server/AgentSpawnAPI.js.map +1 -0
- package/dist/edge/server/SignalingServer.d.ts +71 -0
- package/dist/edge/server/SignalingServer.d.ts.map +1 -0
- package/dist/edge/server/SignalingServer.js +429 -0
- package/dist/edge/server/SignalingServer.js.map +1 -0
- package/dist/edge/server/index.d.ts +64 -0
- package/dist/edge/server/index.d.ts.map +1 -0
- package/dist/edge/server/index.js +318 -0
- package/dist/edge/server/index.js.map +1 -0
- package/dist/edge/types/browser-agent.types.d.ts +455 -0
- package/dist/edge/types/browser-agent.types.d.ts.map +1 -0
- package/dist/edge/types/browser-agent.types.js +116 -0
- package/dist/edge/types/browser-agent.types.js.map +1 -0
- package/dist/edge/types/index.d.ts +11 -0
- package/dist/edge/types/index.d.ts.map +1 -0
- package/dist/edge/types/index.js +17 -0
- package/dist/edge/types/index.js.map +1 -0
- package/dist/edge/types/storage.types.d.ts +207 -0
- package/dist/edge/types/storage.types.d.ts.map +1 -0
- package/dist/edge/types/storage.types.js +47 -0
- package/dist/edge/types/storage.types.js.map +1 -0
- package/dist/edge/wasm/shims.d.ts +224 -0
- package/dist/edge/wasm/shims.d.ts.map +1 -0
- package/dist/edge/wasm/shims.js +667 -0
- package/dist/edge/wasm/shims.js.map +1 -0
- package/dist/mcp/handlers/NewDomainToolsHandler.d.ts +33 -0
- package/dist/mcp/handlers/NewDomainToolsHandler.d.ts.map +1 -0
- package/dist/mcp/handlers/NewDomainToolsHandler.js +305 -0
- package/dist/mcp/handlers/NewDomainToolsHandler.js.map +1 -0
- package/dist/mcp/handlers/filtered/index.d.ts +15 -19
- package/dist/mcp/handlers/filtered/index.d.ts.map +1 -1
- package/dist/mcp/handlers/filtered/index.js +16 -27
- package/dist/mcp/handlers/filtered/index.js.map +1 -1
- package/dist/mcp/handlers/integration/index.d.ts +5 -4
- package/dist/mcp/handlers/integration/index.d.ts.map +1 -1
- package/dist/mcp/handlers/integration/index.js +7 -7
- package/dist/mcp/handlers/integration/index.js.map +1 -1
- package/dist/mcp/server-instructions.d.ts +1 -1
- package/dist/mcp/server-instructions.js +1 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +14 -0
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/tools.d.ts +8 -0
- package/dist/mcp/tools.d.ts.map +1 -1
- package/dist/mcp/tools.js +412 -1
- package/dist/mcp/tools.js.map +1 -1
- package/dist/persistence/migrations/all-migrations.d.ts.map +1 -1
- package/dist/persistence/migrations/all-migrations.js +44 -1
- package/dist/persistence/migrations/all-migrations.js.map +1 -1
- package/dist/planning/GOAPPlanner.d.ts +1 -0
- package/dist/planning/GOAPPlanner.d.ts.map +1 -1
- package/dist/planning/GOAPPlanner.js +15 -2
- package/dist/planning/GOAPPlanner.js.map +1 -1
- package/dist/planning/PlanLearning.d.ts.map +1 -1
- package/dist/planning/PlanLearning.js +2 -1
- package/dist/planning/PlanLearning.js.map +1 -1
- package/dist/planning/PlanSimilarity.d.ts.map +1 -1
- package/dist/planning/PlanSimilarity.js +2 -1
- package/dist/planning/PlanSimilarity.js.map +1 -1
- package/package.json +29 -8
- package/dist/alerting/AlertManager.d.ts +0 -120
- package/dist/alerting/AlertManager.d.ts.map +0 -1
- package/dist/alerting/AlertManager.js +0 -345
- package/dist/alerting/AlertManager.js.map +0 -1
- package/dist/alerting/FeedbackRouter.d.ts +0 -98
- package/dist/alerting/FeedbackRouter.d.ts.map +0 -1
- package/dist/alerting/FeedbackRouter.js +0 -331
- package/dist/alerting/FeedbackRouter.js.map +0 -1
- package/dist/alerting/StrategyApplicator.d.ts +0 -120
- package/dist/alerting/StrategyApplicator.d.ts.map +0 -1
- package/dist/alerting/StrategyApplicator.js +0 -299
- package/dist/alerting/StrategyApplicator.js.map +0 -1
- package/dist/alerting/index.d.ts +0 -68
- package/dist/alerting/index.d.ts.map +0 -1
- package/dist/alerting/index.js +0 -112
- package/dist/alerting/index.js.map +0 -1
- package/dist/alerting/types.d.ts +0 -118
- package/dist/alerting/types.d.ts.map +0 -1
- package/dist/alerting/types.js +0 -11
- package/dist/alerting/types.js.map +0 -1
- package/dist/cli/commands/fleet/backup.d.ts +0 -49
- package/dist/cli/commands/fleet/backup.d.ts.map +0 -1
- package/dist/cli/commands/fleet/backup.js +0 -88
- package/dist/cli/commands/fleet/backup.js.map +0 -1
- package/dist/cli/commands/fleet/health.d.ts +0 -154
- package/dist/cli/commands/fleet/health.d.ts.map +0 -1
- package/dist/cli/commands/fleet/health.js +0 -483
- package/dist/cli/commands/fleet/health.js.map +0 -1
- package/dist/cli/commands/fleet/init.d.ts +0 -11
- package/dist/cli/commands/fleet/init.d.ts.map +0 -1
- package/dist/cli/commands/fleet/init.js +0 -91
- package/dist/cli/commands/fleet/init.js.map +0 -1
- package/dist/cli/commands/fleet/logs.d.ts +0 -21
- package/dist/cli/commands/fleet/logs.d.ts.map +0 -1
- package/dist/cli/commands/fleet/logs.js +0 -267
- package/dist/cli/commands/fleet/logs.js.map +0 -1
- package/dist/cli/commands/fleet/metrics.d.ts +0 -27
- package/dist/cli/commands/fleet/metrics.d.ts.map +0 -1
- package/dist/cli/commands/fleet/metrics.js +0 -369
- package/dist/cli/commands/fleet/metrics.js.map +0 -1
- package/dist/cli/commands/fleet/monitor.d.ts +0 -18
- package/dist/cli/commands/fleet/monitor.d.ts.map +0 -1
- package/dist/cli/commands/fleet/monitor.js +0 -237
- package/dist/cli/commands/fleet/monitor.js.map +0 -1
- package/dist/cli/commands/fleet/optimize.d.ts +0 -42
- package/dist/cli/commands/fleet/optimize.d.ts.map +0 -1
- package/dist/cli/commands/fleet/optimize.js +0 -135
- package/dist/cli/commands/fleet/optimize.js.map +0 -1
- package/dist/cli/commands/fleet/recover.d.ts +0 -22
- package/dist/cli/commands/fleet/recover.d.ts.map +0 -1
- package/dist/cli/commands/fleet/recover.js +0 -99
- package/dist/cli/commands/fleet/recover.js.map +0 -1
- package/dist/cli/commands/fleet/restart.d.ts +0 -18
- package/dist/cli/commands/fleet/restart.d.ts.map +0 -1
- package/dist/cli/commands/fleet/restart.js +0 -290
- package/dist/cli/commands/fleet/restart.js.map +0 -1
- package/dist/cli/commands/fleet/scale.d.ts +0 -9
- package/dist/cli/commands/fleet/scale.d.ts.map +0 -1
- package/dist/cli/commands/fleet/scale.js +0 -77
- package/dist/cli/commands/fleet/scale.js.map +0 -1
- package/dist/cli/commands/fleet/shutdown.d.ts +0 -19
- package/dist/cli/commands/fleet/shutdown.d.ts.map +0 -1
- package/dist/cli/commands/fleet/shutdown.js +0 -307
- package/dist/cli/commands/fleet/shutdown.js.map +0 -1
- package/dist/cli/commands/fleet/status.d.ts +0 -10
- package/dist/cli/commands/fleet/status.d.ts.map +0 -1
- package/dist/cli/commands/fleet/status.js +0 -97
- package/dist/cli/commands/fleet/status.js.map +0 -1
- package/dist/cli/commands/fleet/topology.d.ts +0 -23
- package/dist/cli/commands/fleet/topology.d.ts.map +0 -1
- package/dist/cli/commands/fleet/topology.js +0 -376
- package/dist/cli/commands/fleet/topology.js.map +0 -1
- package/dist/cli/commands/monitor/alerts.d.ts +0 -45
- package/dist/cli/commands/monitor/alerts.d.ts.map +0 -1
- package/dist/cli/commands/monitor/alerts.js +0 -168
- package/dist/cli/commands/monitor/alerts.js.map +0 -1
- package/dist/cli/commands/monitor/analyze.d.ts +0 -49
- package/dist/cli/commands/monitor/analyze.d.ts.map +0 -1
- package/dist/cli/commands/monitor/analyze.js +0 -209
- package/dist/cli/commands/monitor/analyze.js.map +0 -1
- package/dist/cli/commands/monitor/compare.d.ts +0 -38
- package/dist/cli/commands/monitor/compare.d.ts.map +0 -1
- package/dist/cli/commands/monitor/compare.js +0 -177
- package/dist/cli/commands/monitor/compare.js.map +0 -1
- package/dist/cli/commands/monitor/dashboard.d.ts +0 -34
- package/dist/cli/commands/monitor/dashboard.d.ts.map +0 -1
- package/dist/cli/commands/monitor/dashboard.js +0 -157
- package/dist/cli/commands/monitor/dashboard.js.map +0 -1
- package/dist/cli/commands/monitor/export.d.ts +0 -36
- package/dist/cli/commands/monitor/export.d.ts.map +0 -1
- package/dist/cli/commands/monitor/export.js +0 -157
- package/dist/cli/commands/monitor/export.js.map +0 -1
- package/dist/cli/commands/monitor/index.d.ts +0 -11
- package/dist/cli/commands/monitor/index.d.ts.map +0 -1
- package/dist/cli/commands/monitor/index.js +0 -14
- package/dist/cli/commands/monitor/index.js.map +0 -1
- package/dist/cli/commands/quality/baseline.d.ts +0 -27
- package/dist/cli/commands/quality/baseline.d.ts.map +0 -1
- package/dist/cli/commands/quality/baseline.js +0 -124
- package/dist/cli/commands/quality/baseline.js.map +0 -1
- package/dist/cli/commands/quality/compare.d.ts +0 -36
- package/dist/cli/commands/quality/compare.d.ts.map +0 -1
- package/dist/cli/commands/quality/compare.js +0 -136
- package/dist/cli/commands/quality/compare.js.map +0 -1
- package/dist/cli/commands/quality/decision.d.ts +0 -81
- package/dist/cli/commands/quality/decision.d.ts.map +0 -1
- package/dist/cli/commands/quality/decision.js +0 -319
- package/dist/cli/commands/quality/decision.js.map +0 -1
- package/dist/cli/commands/quality/gate.d.ts +0 -47
- package/dist/cli/commands/quality/gate.d.ts.map +0 -1
- package/dist/cli/commands/quality/gate.js +0 -205
- package/dist/cli/commands/quality/gate.js.map +0 -1
- package/dist/cli/commands/quality/index.d.ts +0 -17
- package/dist/cli/commands/quality/index.d.ts.map +0 -1
- package/dist/cli/commands/quality/index.js +0 -41
- package/dist/cli/commands/quality/index.js.map +0 -1
- package/dist/cli/commands/quality/policy.d.ts +0 -57
- package/dist/cli/commands/quality/policy.d.ts.map +0 -1
- package/dist/cli/commands/quality/policy.js +0 -359
- package/dist/cli/commands/quality/policy.js.map +0 -1
- package/dist/cli/commands/quality/risk.d.ts +0 -41
- package/dist/cli/commands/quality/risk.d.ts.map +0 -1
- package/dist/cli/commands/quality/risk.js +0 -255
- package/dist/cli/commands/quality/risk.js.map +0 -1
- package/dist/cli/commands/quality/trends.d.ts +0 -40
- package/dist/cli/commands/quality/trends.d.ts.map +0 -1
- package/dist/cli/commands/quality/trends.js +0 -122
- package/dist/cli/commands/quality/trends.js.map +0 -1
- package/dist/cli/commands/quality/validate.d.ts +0 -44
- package/dist/cli/commands/quality/validate.d.ts.map +0 -1
- package/dist/cli/commands/quality/validate.js +0 -234
- package/dist/cli/commands/quality/validate.js.map +0 -1
- package/dist/cli/commands/test/analyze-failures.d.ts +0 -39
- package/dist/cli/commands/test/analyze-failures.d.ts.map +0 -1
- package/dist/cli/commands/test/analyze-failures.js +0 -113
- package/dist/cli/commands/test/analyze-failures.js.map +0 -1
- package/dist/cli/commands/test/clean.d.ts +0 -3
- package/dist/cli/commands/test/clean.d.ts.map +0 -1
- package/dist/cli/commands/test/clean.js +0 -148
- package/dist/cli/commands/test/clean.js.map +0 -1
- package/dist/cli/commands/test/debug.d.ts +0 -3
- package/dist/cli/commands/test/debug.d.ts.map +0 -1
- package/dist/cli/commands/test/debug.js +0 -167
- package/dist/cli/commands/test/debug.js.map +0 -1
- package/dist/cli/commands/test/diff.d.ts +0 -3
- package/dist/cli/commands/test/diff.d.ts.map +0 -1
- package/dist/cli/commands/test/diff.js +0 -195
- package/dist/cli/commands/test/diff.js.map +0 -1
- package/dist/cli/commands/test/flakiness.d.ts +0 -32
- package/dist/cli/commands/test/flakiness.d.ts.map +0 -1
- package/dist/cli/commands/test/flakiness.js +0 -121
- package/dist/cli/commands/test/flakiness.js.map +0 -1
- package/dist/cli/commands/test/index.d.ts +0 -17
- package/dist/cli/commands/test/index.d.ts.map +0 -1
- package/dist/cli/commands/test/index.js +0 -45
- package/dist/cli/commands/test/index.js.map +0 -1
- package/dist/cli/commands/test/mutate.d.ts +0 -29
- package/dist/cli/commands/test/mutate.d.ts.map +0 -1
- package/dist/cli/commands/test/mutate.js +0 -163
- package/dist/cli/commands/test/mutate.js.map +0 -1
- package/dist/cli/commands/test/parallel.d.ts +0 -3
- package/dist/cli/commands/test/parallel.d.ts.map +0 -1
- package/dist/cli/commands/test/parallel.js +0 -117
- package/dist/cli/commands/test/parallel.js.map +0 -1
- package/dist/cli/commands/test/profile.d.ts +0 -3
- package/dist/cli/commands/test/profile.d.ts.map +0 -1
- package/dist/cli/commands/test/profile.js +0 -156
- package/dist/cli/commands/test/profile.js.map +0 -1
- package/dist/cli/commands/test/queue.d.ts +0 -3
- package/dist/cli/commands/test/queue.d.ts.map +0 -1
- package/dist/cli/commands/test/queue.js +0 -140
- package/dist/cli/commands/test/queue.js.map +0 -1
- package/dist/cli/commands/test/retry.d.ts +0 -3
- package/dist/cli/commands/test/retry.d.ts.map +0 -1
- package/dist/cli/commands/test/retry.js +0 -105
- package/dist/cli/commands/test/retry.js.map +0 -1
- package/dist/cli/commands/test/snapshot.d.ts +0 -3
- package/dist/cli/commands/test/snapshot.d.ts.map +0 -1
- package/dist/cli/commands/test/snapshot.js +0 -176
- package/dist/cli/commands/test/snapshot.js.map +0 -1
- package/dist/cli/commands/test/trace.d.ts +0 -3
- package/dist/cli/commands/test/trace.d.ts.map +0 -1
- package/dist/cli/commands/test/trace.js +0 -137
- package/dist/cli/commands/test/trace.js.map +0 -1
- package/dist/cli/commands/test/watch.d.ts +0 -3
- package/dist/cli/commands/test/watch.d.ts.map +0 -1
- package/dist/cli/commands/test/watch.js +0 -130
- package/dist/cli/commands/test/watch.js.map +0 -1
- package/dist/cli/index-spec.d.ts +0 -3
- package/dist/cli/index-spec.d.ts.map +0 -1
- package/dist/cli/index-spec.js +0 -154
- package/dist/cli/index-spec.js.map +0 -1
- package/dist/cli/index-working.d.ts +0 -7
- package/dist/cli/index-working.d.ts.map +0 -1
- package/dist/cli/index-working.js +0 -617
- package/dist/cli/index-working.js.map +0 -1
- package/dist/mcp/handlers/filtered/coverage-analyzer-filtered.d.ts +0 -83
- package/dist/mcp/handlers/filtered/coverage-analyzer-filtered.d.ts.map +0 -1
- package/dist/mcp/handlers/filtered/coverage-analyzer-filtered.js +0 -130
- package/dist/mcp/handlers/filtered/coverage-analyzer-filtered.js.map +0 -1
- package/dist/mcp/handlers/filtered/flaky-detector-filtered.d.ts +0 -58
- package/dist/mcp/handlers/filtered/flaky-detector-filtered.d.ts.map +0 -1
- package/dist/mcp/handlers/filtered/flaky-detector-filtered.js +0 -84
- package/dist/mcp/handlers/filtered/flaky-detector-filtered.js.map +0 -1
- package/dist/mcp/handlers/filtered/security-scanner-filtered.d.ts +0 -54
- package/dist/mcp/handlers/filtered/security-scanner-filtered.d.ts.map +0 -1
- package/dist/mcp/handlers/filtered/security-scanner-filtered.js +0 -73
- package/dist/mcp/handlers/filtered/security-scanner-filtered.js.map +0 -1
- package/dist/mcp/handlers/integration/contract-validate.d.ts +0 -10
- package/dist/mcp/handlers/integration/contract-validate.d.ts.map +0 -1
- package/dist/mcp/handlers/integration/contract-validate.js +0 -348
- package/dist/mcp/handlers/integration/contract-validate.js.map +0 -1
- package/dist/reporting/ResultAggregator.d.ts +0 -107
- package/dist/reporting/ResultAggregator.d.ts.map +0 -1
- package/dist/reporting/ResultAggregator.js +0 -435
- package/dist/reporting/ResultAggregator.js.map +0 -1
- package/dist/reporting/index.d.ts +0 -48
- package/dist/reporting/index.d.ts.map +0 -1
- package/dist/reporting/index.js +0 -154
- package/dist/reporting/index.js.map +0 -1
- package/dist/reporting/reporters/ControlLoopReporter.d.ts +0 -128
- package/dist/reporting/reporters/ControlLoopReporter.d.ts.map +0 -1
- package/dist/reporting/reporters/ControlLoopReporter.js +0 -417
- package/dist/reporting/reporters/ControlLoopReporter.js.map +0 -1
- package/dist/reporting/reporters/HumanReadableReporter.d.ts +0 -140
- package/dist/reporting/reporters/HumanReadableReporter.d.ts.map +0 -1
- package/dist/reporting/reporters/HumanReadableReporter.js +0 -524
- package/dist/reporting/reporters/HumanReadableReporter.js.map +0 -1
- package/dist/reporting/reporters/JSONReporter.d.ts +0 -251
- package/dist/reporting/reporters/JSONReporter.d.ts.map +0 -1
- package/dist/reporting/reporters/JSONReporter.js +0 -325
- package/dist/reporting/reporters/JSONReporter.js.map +0 -1
- package/dist/reporting/reporters/index.d.ts +0 -14
- package/dist/reporting/reporters/index.d.ts.map +0 -1
- package/dist/reporting/reporters/index.js +0 -19
- package/dist/reporting/reporters/index.js.map +0 -1
- package/dist/reporting/types.d.ts +0 -427
- package/dist/reporting/types.d.ts.map +0 -1
- package/dist/reporting/types.js +0 -12
- package/dist/reporting/types.js.map +0 -1
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Human-Readable Reporter
|
|
3
|
-
*
|
|
4
|
-
* Generates human-friendly console output with colors, formatting,
|
|
5
|
-
* and clear visual hierarchy for quality check results.
|
|
6
|
-
*
|
|
7
|
-
* @module reporting/reporters/HumanReadableReporter
|
|
8
|
-
* @version 1.0.0
|
|
9
|
-
*/
|
|
10
|
-
import { Reporter, ReporterConfig, ReportFormat, ReporterOutput, AggregatedResults } from '../types';
|
|
11
|
-
/**
|
|
12
|
-
* Human-Readable Reporter
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```typescript
|
|
16
|
-
* const reporter = new HumanReadableReporter({ useColors: true });
|
|
17
|
-
* const output = reporter.report(aggregatedResults);
|
|
18
|
-
* console.log(output.content);
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
export declare class HumanReadableReporter implements Reporter {
|
|
22
|
-
private config;
|
|
23
|
-
private useColors;
|
|
24
|
-
constructor(config?: Partial<ReporterConfig>);
|
|
25
|
-
/**
|
|
26
|
-
* Generate human-readable report
|
|
27
|
-
*/
|
|
28
|
-
report(results: AggregatedResults): ReporterOutput;
|
|
29
|
-
/**
|
|
30
|
-
* Generate header
|
|
31
|
-
*/
|
|
32
|
-
private generateHeader;
|
|
33
|
-
/**
|
|
34
|
-
* Generate summary section
|
|
35
|
-
*/
|
|
36
|
-
private generateSummary;
|
|
37
|
-
/**
|
|
38
|
-
* Generate test results section
|
|
39
|
-
*/
|
|
40
|
-
private generateTestResults;
|
|
41
|
-
/**
|
|
42
|
-
* Generate coverage section
|
|
43
|
-
*/
|
|
44
|
-
private generateCoverage;
|
|
45
|
-
/**
|
|
46
|
-
* Generate quality metrics section
|
|
47
|
-
*/
|
|
48
|
-
private generateQualityMetrics;
|
|
49
|
-
/**
|
|
50
|
-
* Generate security section
|
|
51
|
-
*/
|
|
52
|
-
private generateSecurity;
|
|
53
|
-
/**
|
|
54
|
-
* Generate performance section
|
|
55
|
-
*/
|
|
56
|
-
private generatePerformance;
|
|
57
|
-
/**
|
|
58
|
-
* Generate recommendations section
|
|
59
|
-
*/
|
|
60
|
-
private generateRecommendations;
|
|
61
|
-
/**
|
|
62
|
-
* Generate footer
|
|
63
|
-
*/
|
|
64
|
-
private generateFooter;
|
|
65
|
-
getFormat(): ReportFormat;
|
|
66
|
-
validateConfig(config: ReporterConfig): boolean;
|
|
67
|
-
/**
|
|
68
|
-
* Horizontal rule
|
|
69
|
-
*/
|
|
70
|
-
private hr;
|
|
71
|
-
/**
|
|
72
|
-
* Center text
|
|
73
|
-
*/
|
|
74
|
-
private center;
|
|
75
|
-
/**
|
|
76
|
-
* Section title
|
|
77
|
-
*/
|
|
78
|
-
private sectionTitle;
|
|
79
|
-
/**
|
|
80
|
-
* Format key-value pairs
|
|
81
|
-
*/
|
|
82
|
-
private formatKeyValue;
|
|
83
|
-
/**
|
|
84
|
-
* Progress bar
|
|
85
|
-
*/
|
|
86
|
-
private progressBar;
|
|
87
|
-
/**
|
|
88
|
-
* Coverage bar
|
|
89
|
-
*/
|
|
90
|
-
private getCoverageBar;
|
|
91
|
-
/**
|
|
92
|
-
* Truncate text
|
|
93
|
-
*/
|
|
94
|
-
private truncate;
|
|
95
|
-
/**
|
|
96
|
-
* Colorize text
|
|
97
|
-
*/
|
|
98
|
-
private colorize;
|
|
99
|
-
/**
|
|
100
|
-
* Bold text
|
|
101
|
-
*/
|
|
102
|
-
private bold;
|
|
103
|
-
/**
|
|
104
|
-
* Dim text
|
|
105
|
-
*/
|
|
106
|
-
private dim;
|
|
107
|
-
/**
|
|
108
|
-
* Get status icon
|
|
109
|
-
*/
|
|
110
|
-
private getStatusIcon;
|
|
111
|
-
/**
|
|
112
|
-
* Get status color
|
|
113
|
-
*/
|
|
114
|
-
private getStatusColor;
|
|
115
|
-
/**
|
|
116
|
-
* Get test status color
|
|
117
|
-
*/
|
|
118
|
-
private getTestStatusColor;
|
|
119
|
-
/**
|
|
120
|
-
* Get coverage color
|
|
121
|
-
*/
|
|
122
|
-
private getCoverageColor;
|
|
123
|
-
/**
|
|
124
|
-
* Get quality color
|
|
125
|
-
*/
|
|
126
|
-
private getQualityColor;
|
|
127
|
-
/**
|
|
128
|
-
* Get security color
|
|
129
|
-
*/
|
|
130
|
-
private getSecurityColor;
|
|
131
|
-
/**
|
|
132
|
-
* Get progress color
|
|
133
|
-
*/
|
|
134
|
-
private getProgressColor;
|
|
135
|
-
/**
|
|
136
|
-
* Check if terminal supports color
|
|
137
|
-
*/
|
|
138
|
-
private supportsColor;
|
|
139
|
-
}
|
|
140
|
-
//# sourceMappingURL=HumanReadableReporter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HumanReadableReporter.d.ts","sourceRoot":"","sources":["../../../src/reporting/reporters/HumanReadableReporter.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EACL,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,cAAc,EACd,iBAAiB,EAElB,MAAM,UAAU,CAAC;AAiBlB;;;;;;;;;GASG;AACH,qBAAa,qBAAsB,YAAW,QAAQ;IACpD,OAAO,CAAC,MAAM,CAAiB;IAC/B,OAAO,CAAC,SAAS,CAAU;gBAEf,MAAM,GAAE,OAAO,CAAC,cAAc,CAAM;IAWhD;;OAEG;IACH,MAAM,CAAC,OAAO,EAAE,iBAAiB,GAAG,cAAc;IA6DlD;;OAEG;IACH,OAAO,CAAC,cAAc;IAoBtB;;OAEG;IACH,OAAO,CAAC,eAAe;IA8CvB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAqD3B;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAmCxB;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAsC9B;;OAEG;IACH,OAAO,CAAC,gBAAgB;IA2CxB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IA2B3B;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAa/B;;OAEG;IACH,OAAO,CAAC,cAAc;IAmBtB,SAAS,IAAI,YAAY;IAIzB,cAAc,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO;IAI/C;;OAEG;IACH,OAAO,CAAC,EAAE;IAIV;;OAEG;IACH,OAAO,CAAC,MAAM;IAOd;;OAEG;IACH,OAAO,CAAC,YAAY;IAIpB;;OAEG;IACH,OAAO,CAAC,cAAc;IAQtB;;OAEG;IACH,OAAO,CAAC,WAAW;IASnB;;OAEG;IACH,OAAO,CAAC,cAAc;IAItB;;OAEG;IACH,OAAO,CAAC,QAAQ;IAKhB;;OAEG;IACH,OAAO,CAAC,QAAQ;IAOhB;;OAEG;IACH,OAAO,CAAC,IAAI;IAKZ;;OAEG;IACH,OAAO,CAAC,GAAG;IAKX;;OAEG;IACH,OAAO,CAAC,aAAa;IAUrB;;OAEG;IACH,OAAO,CAAC,cAAc;IAUtB;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAM1B;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAMxB;;OAEG;IACH,OAAO,CAAC,eAAe;IAMvB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAMxB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAMxB;;OAEG;IACH,OAAO,CAAC,aAAa;CAQtB"}
|
|
@@ -1,524 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Human-Readable Reporter
|
|
4
|
-
*
|
|
5
|
-
* Generates human-friendly console output with colors, formatting,
|
|
6
|
-
* and clear visual hierarchy for quality check results.
|
|
7
|
-
*
|
|
8
|
-
* @module reporting/reporters/HumanReadableReporter
|
|
9
|
-
* @version 1.0.0
|
|
10
|
-
*/
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.HumanReadableReporter = void 0;
|
|
13
|
-
/**
|
|
14
|
-
* ANSI color utilities (fallback if chalk is not available)
|
|
15
|
-
*/
|
|
16
|
-
const colors = {
|
|
17
|
-
reset: '\x1b[0m',
|
|
18
|
-
bold: '\x1b[1m',
|
|
19
|
-
dim: '\x1b[2m',
|
|
20
|
-
green: '\x1b[32m',
|
|
21
|
-
yellow: '\x1b[33m',
|
|
22
|
-
red: '\x1b[31m',
|
|
23
|
-
blue: '\x1b[34m',
|
|
24
|
-
cyan: '\x1b[36m',
|
|
25
|
-
gray: '\x1b[90m'
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Human-Readable Reporter
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```typescript
|
|
32
|
-
* const reporter = new HumanReadableReporter({ useColors: true });
|
|
33
|
-
* const output = reporter.report(aggregatedResults);
|
|
34
|
-
* console.log(output.content);
|
|
35
|
-
* ```
|
|
36
|
-
*/
|
|
37
|
-
class HumanReadableReporter {
|
|
38
|
-
constructor(config = {}) {
|
|
39
|
-
this.config = {
|
|
40
|
-
format: 'human',
|
|
41
|
-
detailLevel: config.detailLevel || 'detailed',
|
|
42
|
-
useColors: config.useColors !== undefined ? config.useColors : true,
|
|
43
|
-
includeTimestamps: config.includeTimestamps !== undefined ? config.includeTimestamps : true,
|
|
44
|
-
includeMetadata: config.includeMetadata !== undefined ? config.includeMetadata : true
|
|
45
|
-
};
|
|
46
|
-
this.useColors = (this.config.useColors ?? true) && this.supportsColor();
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Generate human-readable report
|
|
50
|
-
*/
|
|
51
|
-
report(results) {
|
|
52
|
-
const startTime = Date.now();
|
|
53
|
-
const lines = [];
|
|
54
|
-
// Header
|
|
55
|
-
lines.push(...this.generateHeader(results));
|
|
56
|
-
lines.push('');
|
|
57
|
-
// Summary
|
|
58
|
-
lines.push(...this.generateSummary(results));
|
|
59
|
-
lines.push('');
|
|
60
|
-
// Test Results
|
|
61
|
-
lines.push(...this.generateTestResults(results));
|
|
62
|
-
lines.push('');
|
|
63
|
-
// Coverage (if available)
|
|
64
|
-
if (results.coverage) {
|
|
65
|
-
lines.push(...this.generateCoverage(results));
|
|
66
|
-
lines.push('');
|
|
67
|
-
}
|
|
68
|
-
// Quality Metrics (if available)
|
|
69
|
-
if (results.qualityMetrics) {
|
|
70
|
-
lines.push(...this.generateQualityMetrics(results));
|
|
71
|
-
lines.push('');
|
|
72
|
-
}
|
|
73
|
-
// Security (if available)
|
|
74
|
-
if (results.security) {
|
|
75
|
-
lines.push(...this.generateSecurity(results));
|
|
76
|
-
lines.push('');
|
|
77
|
-
}
|
|
78
|
-
// Performance (if available)
|
|
79
|
-
if (results.performance && this.config.detailLevel !== 'summary') {
|
|
80
|
-
lines.push(...this.generatePerformance(results));
|
|
81
|
-
lines.push('');
|
|
82
|
-
}
|
|
83
|
-
// Recommendations
|
|
84
|
-
if (results.summary.recommendations.length > 0) {
|
|
85
|
-
lines.push(...this.generateRecommendations(results));
|
|
86
|
-
lines.push('');
|
|
87
|
-
}
|
|
88
|
-
// Footer
|
|
89
|
-
lines.push(...this.generateFooter(results));
|
|
90
|
-
const content = lines.join('\n');
|
|
91
|
-
const generationDuration = Date.now() - startTime;
|
|
92
|
-
return {
|
|
93
|
-
format: 'human',
|
|
94
|
-
content,
|
|
95
|
-
timestamp: new Date().toISOString(),
|
|
96
|
-
size: Buffer.byteLength(content, 'utf8'),
|
|
97
|
-
generationDuration
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Generate header
|
|
102
|
-
*/
|
|
103
|
-
generateHeader(results) {
|
|
104
|
-
const lines = [];
|
|
105
|
-
const width = 80;
|
|
106
|
-
lines.push(this.hr('=', width));
|
|
107
|
-
lines.push(this.center('QUALITY CHECK REPORT', width));
|
|
108
|
-
if (results.project.name) {
|
|
109
|
-
lines.push(this.center(results.project.name, width));
|
|
110
|
-
}
|
|
111
|
-
if (this.config.includeTimestamps) {
|
|
112
|
-
lines.push(this.center(new Date(results.timestamp).toLocaleString(), width));
|
|
113
|
-
}
|
|
114
|
-
lines.push(this.hr('=', width));
|
|
115
|
-
return lines;
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Generate summary section
|
|
119
|
-
*/
|
|
120
|
-
generateSummary(results) {
|
|
121
|
-
const lines = [];
|
|
122
|
-
lines.push(this.sectionTitle('SUMMARY'));
|
|
123
|
-
lines.push('');
|
|
124
|
-
// Overall Status
|
|
125
|
-
const statusIcon = this.getStatusIcon(results.status);
|
|
126
|
-
const statusColor = this.getStatusColor(results.status);
|
|
127
|
-
lines.push(` ${statusIcon} Overall Status: ${this.colorize(results.status.toUpperCase(), statusColor)}`);
|
|
128
|
-
lines.push(` ${this.dim(results.summary.message)}`);
|
|
129
|
-
lines.push('');
|
|
130
|
-
// Key Metrics
|
|
131
|
-
const metrics = [
|
|
132
|
-
['Tests Passed', `${results.testResults.passed}/${results.testResults.total}`, this.getTestStatusColor(results.testResults.passRate)],
|
|
133
|
-
['Pass Rate', `${(results.testResults.passRate * 100).toFixed(1)}%`, this.getTestStatusColor(results.testResults.passRate)],
|
|
134
|
-
['Coverage', results.coverage ? `${results.coverage.overall.toFixed(1)}%` : 'N/A', results.coverage ? this.getCoverageColor(results.coverage.overall) : 'gray'],
|
|
135
|
-
['Quality Score', results.qualityMetrics ? `${results.qualityMetrics.score} (${results.qualityMetrics.grade})` : 'N/A', results.qualityMetrics ? this.getQualityColor(results.qualityMetrics.score) : 'gray'],
|
|
136
|
-
['Security Score', results.security ? `${results.security.score}` : 'N/A', results.security ? this.getSecurityColor(results.security.score) : 'gray']
|
|
137
|
-
];
|
|
138
|
-
const maxLabelWidth = Math.max(...metrics.map(m => m[0].length));
|
|
139
|
-
for (const [label, value, color] of metrics) {
|
|
140
|
-
const paddedLabel = label.padEnd(maxLabelWidth);
|
|
141
|
-
lines.push(` ${this.dim(paddedLabel)} : ${this.colorize(value, color)}`);
|
|
142
|
-
}
|
|
143
|
-
// Deployment Ready
|
|
144
|
-
lines.push('');
|
|
145
|
-
const deployIcon = results.summary.deploymentReady ? '✓' : '✗';
|
|
146
|
-
const deployColor = results.summary.deploymentReady ? 'green' : 'red';
|
|
147
|
-
const deployText = results.summary.deploymentReady ? 'READY' : 'BLOCKED';
|
|
148
|
-
lines.push(` ${deployIcon} Deployment: ${this.colorize(deployText, deployColor)}`);
|
|
149
|
-
return lines;
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* Generate test results section
|
|
153
|
-
*/
|
|
154
|
-
generateTestResults(results) {
|
|
155
|
-
const lines = [];
|
|
156
|
-
lines.push(this.sectionTitle('TEST RESULTS'));
|
|
157
|
-
lines.push('');
|
|
158
|
-
const { testResults } = results;
|
|
159
|
-
// Test counts
|
|
160
|
-
const data = [
|
|
161
|
-
['Total', testResults.total.toString()],
|
|
162
|
-
['Passed', this.colorize(testResults.passed.toString(), 'green')],
|
|
163
|
-
['Failed', testResults.failed > 0 ? this.colorize(testResults.failed.toString(), 'red') : '0'],
|
|
164
|
-
['Skipped', testResults.skipped.toString()],
|
|
165
|
-
];
|
|
166
|
-
if (testResults.flaky !== undefined && testResults.flaky > 0) {
|
|
167
|
-
data.push(['Flaky', this.colorize(testResults.flaky.toString(), 'yellow')]);
|
|
168
|
-
}
|
|
169
|
-
data.push(['Duration', `${(testResults.duration / 1000).toFixed(2)}s`]);
|
|
170
|
-
lines.push(...this.formatKeyValue(data));
|
|
171
|
-
// Progress bar
|
|
172
|
-
if (testResults.total > 0) {
|
|
173
|
-
lines.push('');
|
|
174
|
-
lines.push(' ' + this.progressBar(testResults.passRate, 40));
|
|
175
|
-
}
|
|
176
|
-
// Failed tests detail
|
|
177
|
-
if (this.config.detailLevel !== 'summary' && testResults.failed > 0) {
|
|
178
|
-
lines.push('');
|
|
179
|
-
lines.push(this.bold(' Failed Tests:'));
|
|
180
|
-
const failedTests = testResults.tests
|
|
181
|
-
.filter(t => t.status === 'failed')
|
|
182
|
-
.slice(0, 10);
|
|
183
|
-
for (const test of failedTests) {
|
|
184
|
-
lines.push(` ${this.colorize('✗', 'red')} ${test.name}`);
|
|
185
|
-
if (test.error) {
|
|
186
|
-
lines.push(` ${this.dim(this.truncate(test.error, 80))}`);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
if (testResults.failed > 10) {
|
|
190
|
-
lines.push(` ${this.dim(`... and ${testResults.failed - 10} more`)}`);
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
return lines;
|
|
194
|
-
}
|
|
195
|
-
/**
|
|
196
|
-
* Generate coverage section
|
|
197
|
-
*/
|
|
198
|
-
generateCoverage(results) {
|
|
199
|
-
const lines = [];
|
|
200
|
-
if (!results.coverage) {
|
|
201
|
-
return lines;
|
|
202
|
-
}
|
|
203
|
-
lines.push(this.sectionTitle('CODE COVERAGE'));
|
|
204
|
-
lines.push('');
|
|
205
|
-
const { coverage } = results;
|
|
206
|
-
const data = [
|
|
207
|
-
['Overall', `${coverage.overall.toFixed(1)}%`, this.getCoverageBar(coverage.overall)],
|
|
208
|
-
['Lines', `${coverage.lines.percentage.toFixed(1)}%`, this.getCoverageBar(coverage.lines.percentage)],
|
|
209
|
-
['Branches', `${coverage.branches.percentage.toFixed(1)}%`, this.getCoverageBar(coverage.branches.percentage)],
|
|
210
|
-
['Functions', `${coverage.functions.percentage.toFixed(1)}%`, this.getCoverageBar(coverage.functions.percentage)],
|
|
211
|
-
['Statements', `${coverage.statements.percentage.toFixed(1)}%`, this.getCoverageBar(coverage.statements.percentage)]
|
|
212
|
-
];
|
|
213
|
-
for (const [label, value, bar] of data) {
|
|
214
|
-
lines.push(` ${label.padEnd(12)} ${value.padStart(7)} ${bar}`);
|
|
215
|
-
}
|
|
216
|
-
// Coverage trend
|
|
217
|
-
if (coverage.trend) {
|
|
218
|
-
lines.push('');
|
|
219
|
-
const trendIcon = coverage.trend === 'improving' ? '↗' : coverage.trend === 'degrading' ? '↘' : '→';
|
|
220
|
-
const trendColor = coverage.trend === 'improving' ? 'green' : coverage.trend === 'degrading' ? 'red' : 'gray';
|
|
221
|
-
lines.push(` Trend: ${this.colorize(trendIcon + ' ' + coverage.trend, trendColor)}`);
|
|
222
|
-
}
|
|
223
|
-
return lines;
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
* Generate quality metrics section
|
|
227
|
-
*/
|
|
228
|
-
generateQualityMetrics(results) {
|
|
229
|
-
const lines = [];
|
|
230
|
-
if (!results.qualityMetrics) {
|
|
231
|
-
return lines;
|
|
232
|
-
}
|
|
233
|
-
lines.push(this.sectionTitle('QUALITY METRICS'));
|
|
234
|
-
lines.push('');
|
|
235
|
-
const { qualityMetrics } = results;
|
|
236
|
-
lines.push(` Overall Score: ${this.colorize(qualityMetrics.score.toString(), this.getQualityColor(qualityMetrics.score))} / 100 (Grade ${this.bold(qualityMetrics.grade)})`);
|
|
237
|
-
lines.push('');
|
|
238
|
-
const data = [
|
|
239
|
-
['Maintainability', qualityMetrics.codeQuality.maintainabilityIndex.toString()],
|
|
240
|
-
['Complexity', qualityMetrics.codeQuality.cyclomaticComplexity.toString()],
|
|
241
|
-
['Technical Debt', `${qualityMetrics.codeQuality.technicalDebt}h`],
|
|
242
|
-
['Code Smells', qualityMetrics.codeQuality.codeSmells.toString()],
|
|
243
|
-
['Duplications', `${qualityMetrics.codeQuality.duplications.toFixed(1)}%`]
|
|
244
|
-
];
|
|
245
|
-
lines.push(...this.formatKeyValue(data));
|
|
246
|
-
if (qualityMetrics.gates) {
|
|
247
|
-
lines.push('');
|
|
248
|
-
lines.push(this.bold(' Quality Gates:'));
|
|
249
|
-
for (const gate of qualityMetrics.gates.slice(0, 5)) {
|
|
250
|
-
const icon = gate.status === 'passed' ? '✓' : '✗';
|
|
251
|
-
const color = gate.status === 'passed' ? 'green' : 'red';
|
|
252
|
-
lines.push(` ${this.colorize(icon, color)} ${gate.name}: ${gate.message}`);
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
return lines;
|
|
256
|
-
}
|
|
257
|
-
/**
|
|
258
|
-
* Generate security section
|
|
259
|
-
*/
|
|
260
|
-
generateSecurity(results) {
|
|
261
|
-
const lines = [];
|
|
262
|
-
if (!results.security) {
|
|
263
|
-
return lines;
|
|
264
|
-
}
|
|
265
|
-
lines.push(this.sectionTitle('SECURITY'));
|
|
266
|
-
lines.push('');
|
|
267
|
-
const { security } = results;
|
|
268
|
-
lines.push(` Security Score: ${this.colorize(security.score.toString(), this.getSecurityColor(security.score))} / 100`);
|
|
269
|
-
lines.push('');
|
|
270
|
-
const data = [
|
|
271
|
-
['Critical', security.summary.critical > 0 ? this.colorize(security.summary.critical.toString(), 'red') : '0'],
|
|
272
|
-
['High', security.summary.high > 0 ? this.colorize(security.summary.high.toString(), 'yellow') : '0'],
|
|
273
|
-
['Medium', security.summary.medium.toString()],
|
|
274
|
-
['Low', security.summary.low.toString()],
|
|
275
|
-
['Info', security.summary.info.toString()],
|
|
276
|
-
['Total', security.total.toString()]
|
|
277
|
-
];
|
|
278
|
-
lines.push(...this.formatKeyValue(data));
|
|
279
|
-
// Show critical vulnerabilities
|
|
280
|
-
if (security.summary.critical > 0 && security.vulnerabilities) {
|
|
281
|
-
lines.push('');
|
|
282
|
-
lines.push(this.colorize(' CRITICAL VULNERABILITIES:', 'red'));
|
|
283
|
-
const critical = security.vulnerabilities.filter(v => v.severity === 'critical').slice(0, 5);
|
|
284
|
-
for (const vuln of critical) {
|
|
285
|
-
lines.push(` • ${this.bold(vuln.title)}`);
|
|
286
|
-
lines.push(` ${this.dim(this.truncate(vuln.description, 80))}`);
|
|
287
|
-
if (vuln.file) {
|
|
288
|
-
lines.push(` ${this.dim(`File: ${vuln.file}`)}`);
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
return lines;
|
|
293
|
-
}
|
|
294
|
-
/**
|
|
295
|
-
* Generate performance section
|
|
296
|
-
*/
|
|
297
|
-
generatePerformance(results) {
|
|
298
|
-
const lines = [];
|
|
299
|
-
if (!results.performance) {
|
|
300
|
-
return lines;
|
|
301
|
-
}
|
|
302
|
-
lines.push(this.sectionTitle('PERFORMANCE'));
|
|
303
|
-
lines.push('');
|
|
304
|
-
const { performance } = results;
|
|
305
|
-
const data = [
|
|
306
|
-
['Response Time (P50)', `${performance.responseTime.median.toFixed(2)}ms`],
|
|
307
|
-
['Response Time (P95)', `${performance.responseTime.p95.toFixed(2)}ms`],
|
|
308
|
-
['Response Time (P99)', `${performance.responseTime.p99.toFixed(2)}ms`],
|
|
309
|
-
['Throughput', `${performance.throughput.toFixed(2)} req/s`],
|
|
310
|
-
['Error Rate', `${(performance.errorRate * 100).toFixed(2)}%`],
|
|
311
|
-
['CPU Usage', `${performance.resources.cpu.toFixed(1)}%`],
|
|
312
|
-
['Memory Usage', `${performance.resources.memory.toFixed(1)}MB`]
|
|
313
|
-
];
|
|
314
|
-
lines.push(...this.formatKeyValue(data));
|
|
315
|
-
return lines;
|
|
316
|
-
}
|
|
317
|
-
/**
|
|
318
|
-
* Generate recommendations section
|
|
319
|
-
*/
|
|
320
|
-
generateRecommendations(results) {
|
|
321
|
-
const lines = [];
|
|
322
|
-
lines.push(this.sectionTitle('RECOMMENDATIONS'));
|
|
323
|
-
lines.push('');
|
|
324
|
-
for (let i = 0; i < results.summary.recommendations.length; i++) {
|
|
325
|
-
lines.push(` ${i + 1}. ${results.summary.recommendations[i]}`);
|
|
326
|
-
}
|
|
327
|
-
return lines;
|
|
328
|
-
}
|
|
329
|
-
/**
|
|
330
|
-
* Generate footer
|
|
331
|
-
*/
|
|
332
|
-
generateFooter(results) {
|
|
333
|
-
const lines = [];
|
|
334
|
-
const width = 80;
|
|
335
|
-
lines.push(this.hr('-', width));
|
|
336
|
-
if (this.config.includeMetadata) {
|
|
337
|
-
const duration = (results.metadata.duration / 1000).toFixed(2);
|
|
338
|
-
lines.push(this.dim(this.center(`Execution ID: ${results.executionId}`, width)));
|
|
339
|
-
lines.push(this.dim(this.center(`Completed in ${duration}s`, width)));
|
|
340
|
-
}
|
|
341
|
-
lines.push(this.hr('=', width));
|
|
342
|
-
return lines;
|
|
343
|
-
}
|
|
344
|
-
// ==================== Utility Methods ====================
|
|
345
|
-
getFormat() {
|
|
346
|
-
return 'human';
|
|
347
|
-
}
|
|
348
|
-
validateConfig(config) {
|
|
349
|
-
return config.format === 'human';
|
|
350
|
-
}
|
|
351
|
-
/**
|
|
352
|
-
* Horizontal rule
|
|
353
|
-
*/
|
|
354
|
-
hr(char, width) {
|
|
355
|
-
return char.repeat(width);
|
|
356
|
-
}
|
|
357
|
-
/**
|
|
358
|
-
* Center text
|
|
359
|
-
*/
|
|
360
|
-
center(text, width) {
|
|
361
|
-
const padding = Math.max(0, width - text.length);
|
|
362
|
-
const leftPad = Math.floor(padding / 2);
|
|
363
|
-
const rightPad = padding - leftPad;
|
|
364
|
-
return ' '.repeat(leftPad) + text + ' '.repeat(rightPad);
|
|
365
|
-
}
|
|
366
|
-
/**
|
|
367
|
-
* Section title
|
|
368
|
-
*/
|
|
369
|
-
sectionTitle(title) {
|
|
370
|
-
return this.bold(this.colorize(`── ${title} `, 'cyan')) + this.dim('─'.repeat(80 - title.length - 4));
|
|
371
|
-
}
|
|
372
|
-
/**
|
|
373
|
-
* Format key-value pairs
|
|
374
|
-
*/
|
|
375
|
-
formatKeyValue(data) {
|
|
376
|
-
const maxKeyWidth = Math.max(...data.map(([key]) => key.length));
|
|
377
|
-
return data.map(([key, value]) => {
|
|
378
|
-
const paddedKey = key.padEnd(maxKeyWidth);
|
|
379
|
-
return ` ${this.dim(paddedKey)} : ${value}`;
|
|
380
|
-
});
|
|
381
|
-
}
|
|
382
|
-
/**
|
|
383
|
-
* Progress bar
|
|
384
|
-
*/
|
|
385
|
-
progressBar(progress, width) {
|
|
386
|
-
const filled = Math.round(progress * width);
|
|
387
|
-
const empty = width - filled;
|
|
388
|
-
const bar = '█'.repeat(filled) + '░'.repeat(empty);
|
|
389
|
-
const percentage = (progress * 100).toFixed(1);
|
|
390
|
-
const color = this.getProgressColor(progress);
|
|
391
|
-
return `${this.colorize(bar, color)} ${percentage}%`;
|
|
392
|
-
}
|
|
393
|
-
/**
|
|
394
|
-
* Coverage bar
|
|
395
|
-
*/
|
|
396
|
-
getCoverageBar(percentage) {
|
|
397
|
-
return this.progressBar(percentage / 100, 20);
|
|
398
|
-
}
|
|
399
|
-
/**
|
|
400
|
-
* Truncate text
|
|
401
|
-
*/
|
|
402
|
-
truncate(text, maxLength) {
|
|
403
|
-
if (text.length <= maxLength)
|
|
404
|
-
return text;
|
|
405
|
-
return text.substring(0, maxLength - 3) + '...';
|
|
406
|
-
}
|
|
407
|
-
/**
|
|
408
|
-
* Colorize text
|
|
409
|
-
*/
|
|
410
|
-
colorize(text, color) {
|
|
411
|
-
if (!this.useColors)
|
|
412
|
-
return text;
|
|
413
|
-
const colorCode = colors[color] || colors.reset;
|
|
414
|
-
return `${colorCode}${text}${colors.reset}`;
|
|
415
|
-
}
|
|
416
|
-
/**
|
|
417
|
-
* Bold text
|
|
418
|
-
*/
|
|
419
|
-
bold(text) {
|
|
420
|
-
if (!this.useColors)
|
|
421
|
-
return text;
|
|
422
|
-
return `${colors.bold}${text}${colors.reset}`;
|
|
423
|
-
}
|
|
424
|
-
/**
|
|
425
|
-
* Dim text
|
|
426
|
-
*/
|
|
427
|
-
dim(text) {
|
|
428
|
-
if (!this.useColors)
|
|
429
|
-
return text;
|
|
430
|
-
return `${colors.dim}${text}${colors.reset}`;
|
|
431
|
-
}
|
|
432
|
-
/**
|
|
433
|
-
* Get status icon
|
|
434
|
-
*/
|
|
435
|
-
getStatusIcon(status) {
|
|
436
|
-
const icons = {
|
|
437
|
-
success: '✓',
|
|
438
|
-
warning: '⚠',
|
|
439
|
-
failure: '✗',
|
|
440
|
-
error: '⚠'
|
|
441
|
-
};
|
|
442
|
-
return icons[status];
|
|
443
|
-
}
|
|
444
|
-
/**
|
|
445
|
-
* Get status color
|
|
446
|
-
*/
|
|
447
|
-
getStatusColor(status) {
|
|
448
|
-
const colors = {
|
|
449
|
-
success: 'green',
|
|
450
|
-
warning: 'yellow',
|
|
451
|
-
failure: 'red',
|
|
452
|
-
error: 'red'
|
|
453
|
-
};
|
|
454
|
-
return colors[status];
|
|
455
|
-
}
|
|
456
|
-
/**
|
|
457
|
-
* Get test status color
|
|
458
|
-
*/
|
|
459
|
-
getTestStatusColor(passRate) {
|
|
460
|
-
if (passRate >= 0.95)
|
|
461
|
-
return 'green';
|
|
462
|
-
if (passRate >= 0.85)
|
|
463
|
-
return 'yellow';
|
|
464
|
-
return 'red';
|
|
465
|
-
}
|
|
466
|
-
/**
|
|
467
|
-
* Get coverage color
|
|
468
|
-
*/
|
|
469
|
-
getCoverageColor(percentage) {
|
|
470
|
-
if (percentage >= 80)
|
|
471
|
-
return 'green';
|
|
472
|
-
if (percentage >= 60)
|
|
473
|
-
return 'yellow';
|
|
474
|
-
return 'red';
|
|
475
|
-
}
|
|
476
|
-
/**
|
|
477
|
-
* Get quality color
|
|
478
|
-
*/
|
|
479
|
-
getQualityColor(score) {
|
|
480
|
-
if (score >= 85)
|
|
481
|
-
return 'green';
|
|
482
|
-
if (score >= 70)
|
|
483
|
-
return 'yellow';
|
|
484
|
-
return 'red';
|
|
485
|
-
}
|
|
486
|
-
/**
|
|
487
|
-
* Get security color
|
|
488
|
-
*/
|
|
489
|
-
getSecurityColor(score) {
|
|
490
|
-
if (score >= 90)
|
|
491
|
-
return 'green';
|
|
492
|
-
if (score >= 70)
|
|
493
|
-
return 'yellow';
|
|
494
|
-
return 'red';
|
|
495
|
-
}
|
|
496
|
-
/**
|
|
497
|
-
* Get progress color
|
|
498
|
-
*/
|
|
499
|
-
getProgressColor(progress) {
|
|
500
|
-
if (progress >= 0.8)
|
|
501
|
-
return 'green';
|
|
502
|
-
if (progress >= 0.6)
|
|
503
|
-
return 'yellow';
|
|
504
|
-
return 'red';
|
|
505
|
-
}
|
|
506
|
-
/**
|
|
507
|
-
* Check if terminal supports color
|
|
508
|
-
*/
|
|
509
|
-
supportsColor() {
|
|
510
|
-
if (typeof process === 'undefined')
|
|
511
|
-
return false;
|
|
512
|
-
if (process.env.NO_COLOR)
|
|
513
|
-
return false;
|
|
514
|
-
if (process.env.FORCE_COLOR)
|
|
515
|
-
return true;
|
|
516
|
-
if (process.platform === 'win32')
|
|
517
|
-
return true;
|
|
518
|
-
if (process.stdout && !process.stdout.isTTY)
|
|
519
|
-
return false;
|
|
520
|
-
return true;
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
exports.HumanReadableReporter = HumanReadableReporter;
|
|
524
|
-
//# sourceMappingURL=HumanReadableReporter.js.map
|