erosolar-cli 2.1.248 → 2.1.252
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/agents/general.rules.json +10 -133
- package/agents/general.rules.json.bak +278 -0
- package/agents/general.rules.json.bak2 +306 -0
- package/dist/bin/erosolar.js +9 -5
- package/dist/bin/erosolar.js.map +1 -1
- package/dist/capabilities/bidirectionalAuditCapability.d.ts +26 -0
- package/dist/capabilities/bidirectionalAuditCapability.d.ts.map +1 -0
- package/dist/capabilities/bidirectionalAuditCapability.js +44 -0
- package/dist/capabilities/bidirectionalAuditCapability.js.map +1 -0
- package/dist/capabilities/globCapability.d.ts +3 -6
- package/dist/capabilities/globCapability.d.ts.map +1 -1
- package/dist/capabilities/globCapability.js +6 -10
- package/dist/capabilities/globCapability.js.map +1 -1
- package/dist/capabilities/index.d.ts +1 -18
- package/dist/capabilities/index.d.ts.map +1 -1
- package/dist/capabilities/index.js +1 -18
- package/dist/capabilities/index.js.map +1 -1
- package/dist/capabilities/orchestrationCapability.d.ts +177 -3
- package/dist/capabilities/orchestrationCapability.d.ts.map +1 -1
- package/dist/capabilities/orchestrationCapability.js +1592 -85
- package/dist/capabilities/orchestrationCapability.js.map +1 -1
- package/dist/capabilities/searchCapability.d.ts +8 -2
- package/dist/capabilities/searchCapability.d.ts.map +1 -1
- package/dist/capabilities/searchCapability.js +11 -6
- package/dist/capabilities/searchCapability.js.map +1 -1
- package/dist/contracts/tools.schema.json +9 -133
- package/dist/core/agentOrchestrator.d.ts.map +1 -1
- package/dist/core/agentOrchestrator.js +18 -1
- package/dist/core/agentOrchestrator.js.map +1 -1
- package/dist/core/aiErrorFixer.d.ts +1 -14
- package/dist/core/aiErrorFixer.d.ts.map +1 -1
- package/dist/core/aiErrorFixer.js +51 -239
- package/dist/core/aiErrorFixer.js.map +1 -1
- package/dist/core/alphaZeroEngine.d.ts +16 -256
- package/dist/core/alphaZeroEngine.d.ts.map +1 -1
- package/dist/core/alphaZeroEngine.js +22 -513
- package/dist/core/alphaZeroEngine.js.map +1 -1
- package/dist/core/completeAttackOrchestrator.d.ts +102 -0
- package/dist/core/completeAttackOrchestrator.d.ts.map +1 -0
- package/dist/core/completeAttackOrchestrator.js +293 -0
- package/dist/core/completeAttackOrchestrator.js.map +1 -0
- package/dist/core/defensiveSecurityToolkit.d.ts +373 -0
- package/dist/core/defensiveSecurityToolkit.d.ts.map +1 -0
- package/dist/core/defensiveSecurityToolkit.js +1304 -0
- package/dist/core/defensiveSecurityToolkit.js.map +1 -0
- package/dist/core/errors/errorTypes.d.ts +30 -57
- package/dist/core/errors/errorTypes.d.ts.map +1 -1
- package/dist/core/errors/errorTypes.js +51 -228
- package/dist/core/errors/errorTypes.js.map +1 -1
- package/dist/core/errors/safetyValidator.d.ts +19 -3
- package/dist/core/errors/safetyValidator.d.ts.map +1 -1
- package/dist/core/errors/safetyValidator.js +33 -71
- package/dist/core/errors/safetyValidator.js.map +1 -1
- package/dist/core/failureRecovery.d.ts +4 -100
- package/dist/core/failureRecovery.d.ts.map +1 -1
- package/dist/core/failureRecovery.js +16 -440
- package/dist/core/failureRecovery.js.map +1 -1
- package/dist/core/intelligentTargetResearcher.d.ts +142 -0
- package/dist/core/intelligentTargetResearcher.d.ts.map +1 -0
- package/dist/core/intelligentTargetResearcher.js +367 -0
- package/dist/core/intelligentTargetResearcher.js.map +1 -0
- package/dist/core/intelligentTestFlows.d.ts +26 -107
- package/dist/core/intelligentTestFlows.d.ts.map +1 -1
- package/dist/core/intelligentTestFlows.js +15 -659
- package/dist/core/intelligentTestFlows.js.map +1 -1
- package/dist/core/learningPersistence.d.ts +45 -132
- package/dist/core/learningPersistence.d.ts.map +1 -1
- package/dist/core/learningPersistence.js +32 -463
- package/dist/core/learningPersistence.js.map +1 -1
- package/dist/core/metricsTracker.d.ts +22 -139
- package/dist/core/metricsTracker.d.ts.map +1 -1
- package/dist/core/metricsTracker.js +51 -241
- package/dist/core/metricsTracker.js.map +1 -1
- package/dist/core/performanceMonitor.d.ts +15 -109
- package/dist/core/performanceMonitor.d.ts.map +1 -1
- package/dist/core/performanceMonitor.js +27 -184
- package/dist/core/performanceMonitor.js.map +1 -1
- package/dist/core/resultVerification.d.ts +6 -100
- package/dist/core/resultVerification.d.ts.map +1 -1
- package/dist/core/resultVerification.js +31 -400
- package/dist/core/resultVerification.js.map +1 -1
- package/dist/core/selfEvolution.d.ts +32 -126
- package/dist/core/selfEvolution.d.ts.map +1 -1
- package/dist/core/selfEvolution.js +24 -967
- package/dist/core/selfEvolution.js.map +1 -1
- package/dist/core/selfImprovement.d.ts +50 -109
- package/dist/core/selfImprovement.d.ts.map +1 -1
- package/dist/core/selfImprovement.js +14 -689
- package/dist/core/selfImprovement.js.map +1 -1
- package/dist/core/sourceCodeManager.d.ts +89 -0
- package/dist/core/sourceCodeManager.d.ts.map +1 -0
- package/dist/core/sourceCodeManager.js +332 -0
- package/dist/core/sourceCodeManager.js.map +1 -0
- package/dist/core/unifiedOrchestrator.d.ts +88 -0
- package/dist/core/unifiedOrchestrator.d.ts.map +1 -0
- package/dist/core/unifiedOrchestrator.js +284 -0
- package/dist/core/unifiedOrchestrator.js.map +1 -0
- package/dist/core/userDefenseOrchestrator.d.ts +202 -0
- package/dist/core/userDefenseOrchestrator.d.ts.map +1 -0
- package/dist/core/userDefenseOrchestrator.js +1006 -0
- package/dist/core/userDefenseOrchestrator.js.map +1 -0
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/index.js +36 -26
- package/dist/plugins/index.js.map +1 -1
- package/dist/plugins/tools/bidirectionalAudit/bidirectionalAuditPlugin.d.ts +8 -0
- package/dist/plugins/tools/bidirectionalAudit/bidirectionalAuditPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/bidirectionalAudit/bidirectionalAuditPlugin.js +17 -0
- package/dist/plugins/tools/bidirectionalAudit/bidirectionalAuditPlugin.js.map +1 -0
- package/dist/plugins/tools/nodeDefaults.d.ts +14 -0
- package/dist/plugins/tools/nodeDefaults.d.ts.map +1 -1
- package/dist/plugins/tools/nodeDefaults.js +17 -54
- package/dist/plugins/tools/nodeDefaults.js.map +1 -1
- package/dist/plugins/tools/orchestration/orchestrationPlugin.d.ts +9 -0
- package/dist/plugins/tools/orchestration/orchestrationPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/orchestration/orchestrationPlugin.js +18 -0
- package/dist/plugins/tools/orchestration/orchestrationPlugin.js.map +1 -0
- package/dist/shell/interactiveShell.d.ts +101 -2
- package/dist/shell/interactiveShell.d.ts.map +1 -1
- package/dist/shell/interactiveShell.js +1041 -25
- package/dist/shell/interactiveShell.js.map +1 -1
- package/dist/tools/appleExposureTools.d.ts +108 -0
- package/dist/tools/appleExposureTools.d.ts.map +1 -0
- package/dist/tools/appleExposureTools.js +850 -0
- package/dist/tools/appleExposureTools.js.map +1 -0
- package/dist/tools/bidirectionalAuditTools.d.ts +104 -0
- package/dist/tools/bidirectionalAuditTools.d.ts.map +1 -0
- package/dist/tools/bidirectionalAuditTools.js +1280 -0
- package/dist/tools/bidirectionalAuditTools.js.map +1 -0
- package/dist/tools/defensiveSecurityTools.d.ts +152 -0
- package/dist/tools/defensiveSecurityTools.d.ts.map +1 -0
- package/dist/tools/defensiveSecurityTools.js +576 -0
- package/dist/tools/defensiveSecurityTools.js.map +1 -0
- package/dist/tools/forwardAttackChainTracer.d.ts +73 -0
- package/dist/tools/forwardAttackChainTracer.d.ts.map +1 -0
- package/dist/tools/forwardAttackChainTracer.js +604 -0
- package/dist/tools/forwardAttackChainTracer.js.map +1 -0
- package/dist/tools/localExplore.d.ts +12 -199
- package/dist/tools/localExplore.d.ts.map +1 -1
- package/dist/tools/localExplore.js +18 -1352
- package/dist/tools/localExplore.js.map +1 -1
- package/dist/tools/offensiveTransparencyTools.d.ts +188 -0
- package/dist/tools/offensiveTransparencyTools.d.ts.map +1 -0
- package/dist/tools/offensiveTransparencyTools.js +890 -0
- package/dist/tools/offensiveTransparencyTools.js.map +1 -0
- package/dist/tools/planningTools.d.ts +8 -17
- package/dist/tools/planningTools.d.ts.map +1 -1
- package/dist/tools/planningTools.js +31 -141
- package/dist/tools/planningTools.js.map +1 -1
- package/dist/tools/searchTools.d.ts +9 -0
- package/dist/tools/searchTools.d.ts.map +1 -1
- package/dist/tools/searchTools.js +305 -189
- package/dist/tools/searchTools.js.map +1 -1
- package/dist/tools/skillTools.d.ts +7 -5
- package/dist/tools/skillTools.d.ts.map +1 -1
- package/dist/tools/skillTools.js +13 -155
- package/dist/tools/skillTools.js.map +1 -1
- package/dist/tools/threatIntelligenceTools.d.ts +128 -0
- package/dist/tools/threatIntelligenceTools.d.ts.map +1 -0
- package/dist/tools/threatIntelligenceTools.js +712 -0
- package/dist/tools/threatIntelligenceTools.js.map +1 -0
- package/dist/ui/PromptController.d.ts +4 -0
- package/dist/ui/PromptController.d.ts.map +1 -1
- package/dist/ui/PromptController.js +32 -11
- package/dist/ui/PromptController.js.map +1 -1
- package/dist/ui/UnifiedUIRenderer.d.ts +36 -0
- package/dist/ui/UnifiedUIRenderer.d.ts.map +1 -1
- package/dist/ui/UnifiedUIRenderer.js +308 -43
- package/dist/ui/UnifiedUIRenderer.js.map +1 -1
- package/dist/ui/animatedStatus.d.ts +2 -0
- package/dist/ui/animatedStatus.d.ts.map +1 -1
- package/dist/ui/animatedStatus.js +36 -2
- package/dist/ui/animatedStatus.js.map +1 -1
- package/dist/ui/orchestration/StatusOrchestrator.d.ts +10 -0
- package/dist/ui/orchestration/StatusOrchestrator.d.ts.map +1 -1
- package/dist/ui/orchestration/StatusOrchestrator.js +36 -4
- package/dist/ui/orchestration/StatusOrchestrator.js.map +1 -1
- package/package.json +2 -2
- package/dist/capabilities/advancedTestGenerationCapability.d.ts +0 -17
- package/dist/capabilities/advancedTestGenerationCapability.d.ts.map +0 -1
- package/dist/capabilities/advancedTestGenerationCapability.js +0 -28
- package/dist/capabilities/advancedTestGenerationCapability.js.map +0 -1
- package/dist/capabilities/browserAutomationCapability.d.ts +0 -37
- package/dist/capabilities/browserAutomationCapability.d.ts.map +0 -1
- package/dist/capabilities/browserAutomationCapability.js +0 -49
- package/dist/capabilities/browserAutomationCapability.js.map +0 -1
- package/dist/capabilities/buildCapability.d.ts +0 -24
- package/dist/capabilities/buildCapability.d.ts.map +0 -1
- package/dist/capabilities/buildCapability.js +0 -25
- package/dist/capabilities/buildCapability.js.map +0 -1
- package/dist/capabilities/cloudCapability.d.ts +0 -13
- package/dist/capabilities/cloudCapability.d.ts.map +0 -1
- package/dist/capabilities/cloudCapability.js +0 -38
- package/dist/capabilities/cloudCapability.js.map +0 -1
- package/dist/capabilities/codeAnalysisCapability.d.ts +0 -13
- package/dist/capabilities/codeAnalysisCapability.d.ts.map +0 -1
- package/dist/capabilities/codeAnalysisCapability.js +0 -24
- package/dist/capabilities/codeAnalysisCapability.js.map +0 -1
- package/dist/capabilities/codeQualityCapability.d.ts +0 -13
- package/dist/capabilities/codeQualityCapability.d.ts.map +0 -1
- package/dist/capabilities/codeQualityCapability.js +0 -25
- package/dist/capabilities/codeQualityCapability.js.map +0 -1
- package/dist/capabilities/dependencySecurityCapability.d.ts +0 -13
- package/dist/capabilities/dependencySecurityCapability.d.ts.map +0 -1
- package/dist/capabilities/dependencySecurityCapability.js +0 -24
- package/dist/capabilities/dependencySecurityCapability.js.map +0 -1
- package/dist/capabilities/devCapability.d.ts +0 -13
- package/dist/capabilities/devCapability.d.ts.map +0 -1
- package/dist/capabilities/devCapability.js +0 -24
- package/dist/capabilities/devCapability.js.map +0 -1
- package/dist/capabilities/emailCapability.d.ts +0 -12
- package/dist/capabilities/emailCapability.d.ts.map +0 -1
- package/dist/capabilities/emailCapability.js +0 -22
- package/dist/capabilities/emailCapability.js.map +0 -1
- package/dist/capabilities/enhancedAnalysisCapability.d.ts +0 -13
- package/dist/capabilities/enhancedAnalysisCapability.d.ts.map +0 -1
- package/dist/capabilities/enhancedAnalysisCapability.js +0 -20
- package/dist/capabilities/enhancedAnalysisCapability.js.map +0 -1
- package/dist/capabilities/enhancedCodeIntelligenceCapability.d.ts +0 -17
- package/dist/capabilities/enhancedCodeIntelligenceCapability.d.ts.map +0 -1
- package/dist/capabilities/enhancedCodeIntelligenceCapability.js +0 -28
- package/dist/capabilities/enhancedCodeIntelligenceCapability.js.map +0 -1
- package/dist/capabilities/enhancedDevWorkflowCapability.d.ts +0 -17
- package/dist/capabilities/enhancedDevWorkflowCapability.d.ts.map +0 -1
- package/dist/capabilities/enhancedDevWorkflowCapability.js +0 -28
- package/dist/capabilities/enhancedDevWorkflowCapability.js.map +0 -1
- package/dist/capabilities/frontendTestingCapability.d.ts +0 -13
- package/dist/capabilities/frontendTestingCapability.d.ts.map +0 -1
- package/dist/capabilities/frontendTestingCapability.js +0 -28
- package/dist/capabilities/frontendTestingCapability.js.map +0 -1
- package/dist/capabilities/interactionCapability.d.ts +0 -12
- package/dist/capabilities/interactionCapability.d.ts.map +0 -1
- package/dist/capabilities/interactionCapability.js +0 -22
- package/dist/capabilities/interactionCapability.js.map +0 -1
- package/dist/capabilities/learnCapability.d.ts +0 -22
- package/dist/capabilities/learnCapability.d.ts.map +0 -1
- package/dist/capabilities/learnCapability.js +0 -37
- package/dist/capabilities/learnCapability.js.map +0 -1
- package/dist/capabilities/notebookCapability.d.ts +0 -17
- package/dist/capabilities/notebookCapability.d.ts.map +0 -1
- package/dist/capabilities/notebookCapability.js +0 -27
- package/dist/capabilities/notebookCapability.js.map +0 -1
- package/dist/capabilities/planningCapability.d.ts +0 -16
- package/dist/capabilities/planningCapability.d.ts.map +0 -1
- package/dist/capabilities/planningCapability.js +0 -26
- package/dist/capabilities/planningCapability.js.map +0 -1
- package/dist/capabilities/refactoringCapability.d.ts +0 -13
- package/dist/capabilities/refactoringCapability.d.ts.map +0 -1
- package/dist/capabilities/refactoringCapability.js +0 -25
- package/dist/capabilities/refactoringCapability.js.map +0 -1
- package/dist/capabilities/repoChecksCapability.d.ts +0 -10
- package/dist/capabilities/repoChecksCapability.d.ts.map +0 -1
- package/dist/capabilities/repoChecksCapability.js +0 -24
- package/dist/capabilities/repoChecksCapability.js.map +0 -1
- package/dist/capabilities/taskManagementCapability.d.ts +0 -12
- package/dist/capabilities/taskManagementCapability.d.ts.map +0 -1
- package/dist/capabilities/taskManagementCapability.js +0 -22
- package/dist/capabilities/taskManagementCapability.js.map +0 -1
- package/dist/capabilities/testingCapability.d.ts +0 -13
- package/dist/capabilities/testingCapability.d.ts.map +0 -1
- package/dist/capabilities/testingCapability.js +0 -25
- package/dist/capabilities/testingCapability.js.map +0 -1
- package/dist/capabilities/validationCapability.d.ts +0 -13
- package/dist/capabilities/validationCapability.d.ts.map +0 -1
- package/dist/capabilities/validationCapability.js +0 -24
- package/dist/capabilities/validationCapability.js.map +0 -1
- package/dist/capabilities/webCapability.d.ts +0 -12
- package/dist/capabilities/webCapability.d.ts.map +0 -1
- package/dist/capabilities/webCapability.js +0 -22
- package/dist/capabilities/webCapability.js.map +0 -1
- package/dist/core/deepBugAnalyzer.d.ts +0 -128
- package/dist/core/deepBugAnalyzer.d.ts.map +0 -1
- package/dist/core/deepBugAnalyzer.js +0 -406
- package/dist/core/deepBugAnalyzer.js.map +0 -1
- package/dist/core/hypothesisEngine.d.ts +0 -113
- package/dist/core/hypothesisEngine.d.ts.map +0 -1
- package/dist/core/hypothesisEngine.js +0 -264
- package/dist/core/hypothesisEngine.js.map +0 -1
- package/dist/core/productTestHarness.d.ts +0 -113
- package/dist/core/productTestHarness.d.ts.map +0 -1
- package/dist/core/productTestHarness.js +0 -351
- package/dist/core/productTestHarness.js.map +0 -1
- package/dist/core/validationRunner.d.ts +0 -106
- package/dist/core/validationRunner.d.ts.map +0 -1
- package/dist/core/validationRunner.js +0 -892
- package/dist/core/validationRunner.js.map +0 -1
- package/dist/plugins/tools/browser/browserAutomationPlugin.d.ts +0 -14
- package/dist/plugins/tools/browser/browserAutomationPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/browser/browserAutomationPlugin.js +0 -26
- package/dist/plugins/tools/browser/browserAutomationPlugin.js.map +0 -1
- package/dist/plugins/tools/checks/localRepoChecksPlugin.d.ts +0 -3
- package/dist/plugins/tools/checks/localRepoChecksPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/checks/localRepoChecksPlugin.js +0 -14
- package/dist/plugins/tools/checks/localRepoChecksPlugin.js.map +0 -1
- package/dist/plugins/tools/cloud/cloudPlugin.d.ts +0 -3
- package/dist/plugins/tools/cloud/cloudPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/cloud/cloudPlugin.js +0 -14
- package/dist/plugins/tools/cloud/cloudPlugin.js.map +0 -1
- package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.d.ts +0 -3
- package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.js +0 -14
- package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.js.map +0 -1
- package/dist/plugins/tools/codeQuality/codeQualityPlugin.d.ts +0 -3
- package/dist/plugins/tools/codeQuality/codeQualityPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/codeQuality/codeQualityPlugin.js +0 -14
- package/dist/plugins/tools/codeQuality/codeQualityPlugin.js.map +0 -1
- package/dist/plugins/tools/dependency/dependencyPlugin.d.ts +0 -3
- package/dist/plugins/tools/dependency/dependencyPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/dependency/dependencyPlugin.js +0 -12
- package/dist/plugins/tools/dependency/dependencyPlugin.js.map +0 -1
- package/dist/plugins/tools/development/devPlugin.d.ts +0 -3
- package/dist/plugins/tools/development/devPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/development/devPlugin.js +0 -14
- package/dist/plugins/tools/development/devPlugin.js.map +0 -1
- package/dist/plugins/tools/email/emailPlugin.d.ts +0 -3
- package/dist/plugins/tools/email/emailPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/email/emailPlugin.js +0 -12
- package/dist/plugins/tools/email/emailPlugin.js.map +0 -1
- package/dist/plugins/tools/enhancedAnalysis/enhancedAnalysisPlugin.d.ts +0 -3
- package/dist/plugins/tools/enhancedAnalysis/enhancedAnalysisPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/enhancedAnalysis/enhancedAnalysisPlugin.js +0 -14
- package/dist/plugins/tools/enhancedAnalysis/enhancedAnalysisPlugin.js.map +0 -1
- package/dist/plugins/tools/enhancedCodeIntelligence/enhancedCodeIntelligencePlugin.d.ts +0 -3
- package/dist/plugins/tools/enhancedCodeIntelligence/enhancedCodeIntelligencePlugin.d.ts.map +0 -1
- package/dist/plugins/tools/enhancedCodeIntelligence/enhancedCodeIntelligencePlugin.js +0 -12
- package/dist/plugins/tools/enhancedCodeIntelligence/enhancedCodeIntelligencePlugin.js.map +0 -1
- package/dist/plugins/tools/enhancedDevWorkflow/enhancedDevWorkflowPlugin.d.ts +0 -3
- package/dist/plugins/tools/enhancedDevWorkflow/enhancedDevWorkflowPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/enhancedDevWorkflow/enhancedDevWorkflowPlugin.js +0 -12
- package/dist/plugins/tools/enhancedDevWorkflow/enhancedDevWorkflowPlugin.js.map +0 -1
- package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.d.ts +0 -3
- package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.js +0 -14
- package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.js.map +0 -1
- package/dist/plugins/tools/interaction/interactionPlugin.d.ts +0 -3
- package/dist/plugins/tools/interaction/interactionPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/interaction/interactionPlugin.js +0 -12
- package/dist/plugins/tools/interaction/interactionPlugin.js.map +0 -1
- package/dist/plugins/tools/learn/learnPlugin.d.ts +0 -3
- package/dist/plugins/tools/learn/learnPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/learn/learnPlugin.js +0 -14
- package/dist/plugins/tools/learn/learnPlugin.js.map +0 -1
- package/dist/plugins/tools/notebook/notebookPlugin.d.ts +0 -9
- package/dist/plugins/tools/notebook/notebookPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/notebook/notebookPlugin.js +0 -15
- package/dist/plugins/tools/notebook/notebookPlugin.js.map +0 -1
- package/dist/plugins/tools/planning/planningPlugin.d.ts +0 -9
- package/dist/plugins/tools/planning/planningPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/planning/planningPlugin.js +0 -15
- package/dist/plugins/tools/planning/planningPlugin.js.map +0 -1
- package/dist/plugins/tools/refactoring/refactoringPlugin.d.ts +0 -3
- package/dist/plugins/tools/refactoring/refactoringPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/refactoring/refactoringPlugin.js +0 -12
- package/dist/plugins/tools/refactoring/refactoringPlugin.js.map +0 -1
- package/dist/plugins/tools/taskManagement/taskManagementPlugin.d.ts +0 -3
- package/dist/plugins/tools/taskManagement/taskManagementPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/taskManagement/taskManagementPlugin.js +0 -12
- package/dist/plugins/tools/taskManagement/taskManagementPlugin.js.map +0 -1
- package/dist/plugins/tools/testing/testingPlugin.d.ts +0 -3
- package/dist/plugins/tools/testing/testingPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/testing/testingPlugin.js +0 -12
- package/dist/plugins/tools/testing/testingPlugin.js.map +0 -1
- package/dist/plugins/tools/validation/validationPlugin.d.ts +0 -3
- package/dist/plugins/tools/validation/validationPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/validation/validationPlugin.js +0 -14
- package/dist/plugins/tools/validation/validationPlugin.js.map +0 -1
- package/dist/plugins/tools/web/webPlugin.d.ts +0 -3
- package/dist/plugins/tools/web/webPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/web/webPlugin.js +0 -12
- package/dist/plugins/tools/web/webPlugin.js.map +0 -1
- package/dist/tools/advancedTestGenerationTools.d.ts +0 -21
- package/dist/tools/advancedTestGenerationTools.d.ts.map +0 -1
- package/dist/tools/advancedTestGenerationTools.js +0 -304
- package/dist/tools/advancedTestGenerationTools.js.map +0 -1
- package/dist/tools/browserAutomationTools.d.ts +0 -23
- package/dist/tools/browserAutomationTools.d.ts.map +0 -1
- package/dist/tools/browserAutomationTools.js +0 -916
- package/dist/tools/browserAutomationTools.js.map +0 -1
- package/dist/tools/buildTools.d.ts +0 -9
- package/dist/tools/buildTools.d.ts.map +0 -1
- package/dist/tools/buildTools.js +0 -346
- package/dist/tools/buildTools.js.map +0 -1
- package/dist/tools/cloudTools.d.ts +0 -49
- package/dist/tools/cloudTools.d.ts.map +0 -1
- package/dist/tools/cloudTools.js +0 -1258
- package/dist/tools/cloudTools.js.map +0 -1
- package/dist/tools/codeAnalysisTools.d.ts +0 -74
- package/dist/tools/codeAnalysisTools.d.ts.map +0 -1
- package/dist/tools/codeAnalysisTools.js +0 -664
- package/dist/tools/codeAnalysisTools.js.map +0 -1
- package/dist/tools/codeGenerationTools.d.ts +0 -3
- package/dist/tools/codeGenerationTools.d.ts.map +0 -1
- package/dist/tools/codeGenerationTools.js +0 -439
- package/dist/tools/codeGenerationTools.js.map +0 -1
- package/dist/tools/codeQualityTools.d.ts +0 -3
- package/dist/tools/codeQualityTools.d.ts.map +0 -1
- package/dist/tools/codeQualityTools.js +0 -297
- package/dist/tools/codeQualityTools.js.map +0 -1
- package/dist/tools/dependencyTools.d.ts +0 -3
- package/dist/tools/dependencyTools.d.ts.map +0 -1
- package/dist/tools/dependencyTools.js +0 -284
- package/dist/tools/dependencyTools.js.map +0 -1
- package/dist/tools/devTools.d.ts +0 -10
- package/dist/tools/devTools.d.ts.map +0 -1
- package/dist/tools/devTools.js +0 -2126
- package/dist/tools/devTools.js.map +0 -1
- package/dist/tools/emailTools.d.ts +0 -21
- package/dist/tools/emailTools.d.ts.map +0 -1
- package/dist/tools/emailTools.js +0 -449
- package/dist/tools/emailTools.js.map +0 -1
- package/dist/tools/enhancedAnalysisTools.d.ts +0 -9
- package/dist/tools/enhancedAnalysisTools.d.ts.map +0 -1
- package/dist/tools/enhancedAnalysisTools.js +0 -370
- package/dist/tools/enhancedAnalysisTools.js.map +0 -1
- package/dist/tools/enhancedCodeIntelligenceTools.d.ts +0 -7
- package/dist/tools/enhancedCodeIntelligenceTools.d.ts.map +0 -1
- package/dist/tools/enhancedCodeIntelligenceTools.js +0 -540
- package/dist/tools/enhancedCodeIntelligenceTools.js.map +0 -1
- package/dist/tools/enhancedDevWorkflowTools.d.ts +0 -7
- package/dist/tools/enhancedDevWorkflowTools.d.ts.map +0 -1
- package/dist/tools/enhancedDevWorkflowTools.js +0 -432
- package/dist/tools/enhancedDevWorkflowTools.js.map +0 -1
- package/dist/tools/frontendTestingTools.d.ts +0 -35
- package/dist/tools/frontendTestingTools.d.ts.map +0 -1
- package/dist/tools/frontendTestingTools.js +0 -1258
- package/dist/tools/frontendTestingTools.js.map +0 -1
- package/dist/tools/globTools.d.ts +0 -15
- package/dist/tools/globTools.d.ts.map +0 -1
- package/dist/tools/globTools.js +0 -174
- package/dist/tools/globTools.js.map +0 -1
- package/dist/tools/grepTools.d.ts +0 -19
- package/dist/tools/grepTools.d.ts.map +0 -1
- package/dist/tools/grepTools.js +0 -411
- package/dist/tools/grepTools.js.map +0 -1
- package/dist/tools/interactionTools.d.ts +0 -6
- package/dist/tools/interactionTools.d.ts.map +0 -1
- package/dist/tools/interactionTools.js +0 -209
- package/dist/tools/interactionTools.js.map +0 -1
- package/dist/tools/learnTools.d.ts +0 -164
- package/dist/tools/learnTools.d.ts.map +0 -1
- package/dist/tools/learnTools.js +0 -2098
- package/dist/tools/learnTools.js.map +0 -1
- package/dist/tools/notebookEditTools.d.ts +0 -15
- package/dist/tools/notebookEditTools.d.ts.map +0 -1
- package/dist/tools/notebookEditTools.js +0 -197
- package/dist/tools/notebookEditTools.js.map +0 -1
- package/dist/tools/refactoringTools.d.ts +0 -3
- package/dist/tools/refactoringTools.d.ts.map +0 -1
- package/dist/tools/refactoringTools.js +0 -294
- package/dist/tools/refactoringTools.js.map +0 -1
- package/dist/tools/repoChecksTools.d.ts +0 -3
- package/dist/tools/repoChecksTools.d.ts.map +0 -1
- package/dist/tools/repoChecksTools.js +0 -276
- package/dist/tools/repoChecksTools.js.map +0 -1
- package/dist/tools/taskManagementTools.d.ts +0 -10
- package/dist/tools/taskManagementTools.d.ts.map +0 -1
- package/dist/tools/taskManagementTools.js +0 -133
- package/dist/tools/taskManagementTools.js.map +0 -1
- package/dist/tools/testingTools.d.ts +0 -3
- package/dist/tools/testingTools.d.ts.map +0 -1
- package/dist/tools/testingTools.js +0 -237
- package/dist/tools/testingTools.js.map +0 -1
- package/dist/tools/validationTools.d.ts +0 -7
- package/dist/tools/validationTools.d.ts.map +0 -1
- package/dist/tools/validationTools.js +0 -344
- package/dist/tools/validationTools.js.map +0 -1
- package/dist/tools/webTools.d.ts +0 -3
- package/dist/tools/webTools.d.ts.map +0 -1
- package/dist/tools/webTools.js +0 -502
- package/dist/tools/webTools.js.map +0 -1
|
@@ -1,351 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Comprehensive Product Test Harness
|
|
3
|
-
*
|
|
4
|
-
* This module provides extensive testing capabilities similar to human product testing,
|
|
5
|
-
* including runtime creation, execution, and validation of code.
|
|
6
|
-
*/
|
|
7
|
-
import { spawn } from 'node:child_process';
|
|
8
|
-
import { writeFileSync, readFileSync, mkdirSync, existsSync, rmSync } from 'node:fs';
|
|
9
|
-
import { join } from 'node:path';
|
|
10
|
-
import { tmpdir } from 'node:os';
|
|
11
|
-
/**
|
|
12
|
-
* Product Test Harness - Comprehensive testing like a human QA engineer
|
|
13
|
-
*/
|
|
14
|
-
export class ProductTestHarness {
|
|
15
|
-
scenarios = [];
|
|
16
|
-
results = [];
|
|
17
|
-
/**
|
|
18
|
-
* Add a test scenario
|
|
19
|
-
*/
|
|
20
|
-
addScenario(scenario) {
|
|
21
|
-
this.scenarios.push(scenario);
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Add multiple scenarios
|
|
25
|
-
*/
|
|
26
|
-
addScenarios(scenarios) {
|
|
27
|
-
this.scenarios.push(...scenarios);
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Run all test scenarios
|
|
31
|
-
*/
|
|
32
|
-
async runAll() {
|
|
33
|
-
this.results = [];
|
|
34
|
-
for (const scenario of this.scenarios) {
|
|
35
|
-
const result = await this.runScenario(scenario);
|
|
36
|
-
this.results.push(result);
|
|
37
|
-
}
|
|
38
|
-
const passed = this.results.filter(r => r.passed).length;
|
|
39
|
-
const failed = this.results.length - passed;
|
|
40
|
-
return {
|
|
41
|
-
passed,
|
|
42
|
-
failed,
|
|
43
|
-
total: this.results.length,
|
|
44
|
-
results: this.results,
|
|
45
|
-
summary: this.generateSummary(),
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Run a single test scenario
|
|
50
|
-
*/
|
|
51
|
-
async runScenario(scenario) {
|
|
52
|
-
const startTime = Date.now();
|
|
53
|
-
let result;
|
|
54
|
-
let timeoutId;
|
|
55
|
-
try {
|
|
56
|
-
// Setup
|
|
57
|
-
if (scenario.setup) {
|
|
58
|
-
await scenario.setup();
|
|
59
|
-
}
|
|
60
|
-
// Execute with timeout
|
|
61
|
-
const timeout = scenario.timeout ?? 30000; // 30s default
|
|
62
|
-
const executePromise = scenario.execute();
|
|
63
|
-
// Prevent unhandled rejection if the timeout wins the race
|
|
64
|
-
void executePromise.catch(() => { });
|
|
65
|
-
const timeoutPromise = new Promise((_, reject) => {
|
|
66
|
-
timeoutId = setTimeout(() => reject(new Error('Test timeout exceeded')), timeout);
|
|
67
|
-
});
|
|
68
|
-
result = await Promise.race([executePromise, timeoutPromise]);
|
|
69
|
-
}
|
|
70
|
-
catch (error) {
|
|
71
|
-
result = {
|
|
72
|
-
scenario: scenario.name,
|
|
73
|
-
passed: false,
|
|
74
|
-
duration: Date.now() - startTime,
|
|
75
|
-
output: '',
|
|
76
|
-
error: error instanceof Error ? error.message : String(error),
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
finally {
|
|
80
|
-
if (timeoutId) {
|
|
81
|
-
clearTimeout(timeoutId);
|
|
82
|
-
}
|
|
83
|
-
// Teardown
|
|
84
|
-
if (scenario.teardown) {
|
|
85
|
-
try {
|
|
86
|
-
await scenario.teardown();
|
|
87
|
-
}
|
|
88
|
-
catch (error) {
|
|
89
|
-
// Log teardown errors but don't fail the test
|
|
90
|
-
console.error(`Teardown error for ${scenario.name}:`, error);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
return result;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Generate test summary
|
|
98
|
-
*/
|
|
99
|
-
generateSummary() {
|
|
100
|
-
const passed = this.results.filter(r => r.passed).length;
|
|
101
|
-
const failed = this.results.length - passed;
|
|
102
|
-
const totalDuration = this.results.reduce((sum, r) => sum + r.duration, 0);
|
|
103
|
-
let summary = `\n${'='.repeat(60)}\n`;
|
|
104
|
-
summary += `TEST SUMMARY\n`;
|
|
105
|
-
summary += `${'='.repeat(60)}\n`;
|
|
106
|
-
summary += `Total Tests: ${this.results.length}\n`;
|
|
107
|
-
summary += `Passed: ${passed} ✓\n`;
|
|
108
|
-
summary += `Failed: ${failed} ✗\n`;
|
|
109
|
-
summary += `Success Rate: ${((passed / this.results.length) * 100).toFixed(1)}%\n`;
|
|
110
|
-
summary += `Total Duration: ${totalDuration}ms\n`;
|
|
111
|
-
summary += `${'='.repeat(60)}\n`;
|
|
112
|
-
if (failed > 0) {
|
|
113
|
-
summary += `\nFailed Tests:\n`;
|
|
114
|
-
this.results.filter(r => !r.passed).forEach(r => {
|
|
115
|
-
summary += ` ✗ ${r.scenario}\n`;
|
|
116
|
-
if (r.error) {
|
|
117
|
-
summary += ` Error: ${r.error}\n`;
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
return summary;
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Clear all scenarios and results
|
|
125
|
-
*/
|
|
126
|
-
clear() {
|
|
127
|
-
this.scenarios = [];
|
|
128
|
-
this.results = [];
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* Create an isolated runtime environment for testing
|
|
133
|
-
*/
|
|
134
|
-
export function createRuntimeEnvironment(id) {
|
|
135
|
-
const envId = id ?? `test_${Date.now()}_${Math.random().toString(36).substring(7)}`;
|
|
136
|
-
const workDir = join(tmpdir(), 'erosolar-test-env', envId);
|
|
137
|
-
// Create work directory
|
|
138
|
-
if (!existsSync(workDir)) {
|
|
139
|
-
mkdirSync(workDir, { recursive: true });
|
|
140
|
-
}
|
|
141
|
-
const env = {
|
|
142
|
-
workDir,
|
|
143
|
-
cleanup: () => {
|
|
144
|
-
try {
|
|
145
|
-
if (existsSync(workDir)) {
|
|
146
|
-
rmSync(workDir, { recursive: true, force: true });
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
catch (error) {
|
|
150
|
-
console.error(`Failed to cleanup runtime environment ${envId}:`, error);
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
execute: async (code, language) => {
|
|
154
|
-
const startTime = Date.now();
|
|
155
|
-
// Prepare execution based on language
|
|
156
|
-
let command;
|
|
157
|
-
let args;
|
|
158
|
-
let scriptPath;
|
|
159
|
-
if (language === 'typescript') {
|
|
160
|
-
// For TypeScript, write to file and use ts-node
|
|
161
|
-
scriptPath = join(workDir, 'script.ts');
|
|
162
|
-
writeFileSync(scriptPath, code);
|
|
163
|
-
command = 'npx';
|
|
164
|
-
args = ['ts-node', scriptPath];
|
|
165
|
-
}
|
|
166
|
-
else if (language === 'node') {
|
|
167
|
-
scriptPath = join(workDir, 'script.js');
|
|
168
|
-
writeFileSync(scriptPath, code);
|
|
169
|
-
command = 'node';
|
|
170
|
-
args = [scriptPath];
|
|
171
|
-
}
|
|
172
|
-
else {
|
|
173
|
-
// bash
|
|
174
|
-
scriptPath = join(workDir, 'script.sh');
|
|
175
|
-
writeFileSync(scriptPath, code);
|
|
176
|
-
command = 'bash';
|
|
177
|
-
args = [scriptPath];
|
|
178
|
-
}
|
|
179
|
-
return new Promise((resolve) => {
|
|
180
|
-
let stdout = '';
|
|
181
|
-
let stderr = '';
|
|
182
|
-
const proc = spawn(command, args, {
|
|
183
|
-
cwd: workDir,
|
|
184
|
-
env: { ...process.env },
|
|
185
|
-
});
|
|
186
|
-
proc.stdout?.on('data', (data) => {
|
|
187
|
-
stdout += data.toString();
|
|
188
|
-
});
|
|
189
|
-
proc.stderr?.on('data', (data) => {
|
|
190
|
-
stderr += data.toString();
|
|
191
|
-
});
|
|
192
|
-
proc.on('error', (error) => {
|
|
193
|
-
resolve({
|
|
194
|
-
stdout,
|
|
195
|
-
stderr,
|
|
196
|
-
exitCode: 1,
|
|
197
|
-
duration: Date.now() - startTime,
|
|
198
|
-
error,
|
|
199
|
-
});
|
|
200
|
-
});
|
|
201
|
-
proc.on('close', (exitCode) => {
|
|
202
|
-
resolve({
|
|
203
|
-
stdout,
|
|
204
|
-
stderr,
|
|
205
|
-
exitCode: exitCode ?? 0,
|
|
206
|
-
duration: Date.now() - startTime,
|
|
207
|
-
});
|
|
208
|
-
});
|
|
209
|
-
});
|
|
210
|
-
},
|
|
211
|
-
writeFile: (path, content) => {
|
|
212
|
-
const fullPath = join(workDir, path);
|
|
213
|
-
const dir = join(fullPath, '..');
|
|
214
|
-
if (!existsSync(dir)) {
|
|
215
|
-
mkdirSync(dir, { recursive: true });
|
|
216
|
-
}
|
|
217
|
-
writeFileSync(fullPath, content);
|
|
218
|
-
},
|
|
219
|
-
readFile: (path) => {
|
|
220
|
-
const fullPath = join(workDir, path);
|
|
221
|
-
return readFileSync(fullPath, 'utf-8');
|
|
222
|
-
},
|
|
223
|
-
fileExists: (path) => {
|
|
224
|
-
const fullPath = join(workDir, path);
|
|
225
|
-
return existsSync(fullPath);
|
|
226
|
-
},
|
|
227
|
-
};
|
|
228
|
-
return env;
|
|
229
|
-
}
|
|
230
|
-
/**
|
|
231
|
-
* Common test scenarios generator
|
|
232
|
-
*/
|
|
233
|
-
export class TestScenarioGenerator {
|
|
234
|
-
/**
|
|
235
|
-
* Generate basic functionality tests
|
|
236
|
-
*/
|
|
237
|
-
static generateBasicTests(functionName, testCases) {
|
|
238
|
-
return testCases.map((testCase, index) => ({
|
|
239
|
-
name: `${functionName}_test_${index + 1}`,
|
|
240
|
-
description: testCase.description,
|
|
241
|
-
execute: async () => {
|
|
242
|
-
const passed = testCase.input === testCase.expected;
|
|
243
|
-
return {
|
|
244
|
-
scenario: testCase.description,
|
|
245
|
-
passed,
|
|
246
|
-
duration: 0,
|
|
247
|
-
output: `Expected: ${testCase.expected}, Got: ${testCase.input}`,
|
|
248
|
-
metrics: {
|
|
249
|
-
assertions: [{
|
|
250
|
-
name: 'equality_check',
|
|
251
|
-
passed,
|
|
252
|
-
expected: testCase.expected,
|
|
253
|
-
actual: testCase.input,
|
|
254
|
-
}],
|
|
255
|
-
},
|
|
256
|
-
};
|
|
257
|
-
},
|
|
258
|
-
}));
|
|
259
|
-
}
|
|
260
|
-
/**
|
|
261
|
-
* Generate edge case tests
|
|
262
|
-
*/
|
|
263
|
-
static generateEdgeCaseTests(functionCode) {
|
|
264
|
-
const scenarios = [];
|
|
265
|
-
// Test with null/undefined
|
|
266
|
-
scenarios.push({
|
|
267
|
-
name: 'null_input_test',
|
|
268
|
-
description: 'Test function behavior with null input',
|
|
269
|
-
execute: async () => {
|
|
270
|
-
const env = createRuntimeEnvironment();
|
|
271
|
-
try {
|
|
272
|
-
const testCode = `
|
|
273
|
-
${functionCode}
|
|
274
|
-
const result = testFunction(null);
|
|
275
|
-
console.log(JSON.stringify(result));
|
|
276
|
-
`;
|
|
277
|
-
const result = await env.execute(testCode, 'node');
|
|
278
|
-
return {
|
|
279
|
-
scenario: 'null_input_test',
|
|
280
|
-
passed: result.exitCode === 0,
|
|
281
|
-
duration: result.duration,
|
|
282
|
-
output: result.stdout,
|
|
283
|
-
error: result.stderr,
|
|
284
|
-
};
|
|
285
|
-
}
|
|
286
|
-
finally {
|
|
287
|
-
env.cleanup();
|
|
288
|
-
}
|
|
289
|
-
},
|
|
290
|
-
});
|
|
291
|
-
// Test with empty values
|
|
292
|
-
scenarios.push({
|
|
293
|
-
name: 'empty_input_test',
|
|
294
|
-
description: 'Test function behavior with empty input',
|
|
295
|
-
execute: async () => {
|
|
296
|
-
const env = createRuntimeEnvironment();
|
|
297
|
-
try {
|
|
298
|
-
const testCode = `
|
|
299
|
-
${functionCode}
|
|
300
|
-
const result = testFunction('');
|
|
301
|
-
console.log(JSON.stringify(result));
|
|
302
|
-
`;
|
|
303
|
-
const result = await env.execute(testCode, 'node');
|
|
304
|
-
return {
|
|
305
|
-
scenario: 'empty_input_test',
|
|
306
|
-
passed: result.exitCode === 0,
|
|
307
|
-
duration: result.duration,
|
|
308
|
-
output: result.stdout,
|
|
309
|
-
error: result.stderr,
|
|
310
|
-
};
|
|
311
|
-
}
|
|
312
|
-
finally {
|
|
313
|
-
env.cleanup();
|
|
314
|
-
}
|
|
315
|
-
},
|
|
316
|
-
});
|
|
317
|
-
return scenarios;
|
|
318
|
-
}
|
|
319
|
-
/**
|
|
320
|
-
* Generate performance tests
|
|
321
|
-
*/
|
|
322
|
-
static generatePerformanceTest(name, code, maxDurationMs) {
|
|
323
|
-
return {
|
|
324
|
-
name: `${name}_performance`,
|
|
325
|
-
description: `Performance test: should complete within ${maxDurationMs}ms`,
|
|
326
|
-
execute: async () => {
|
|
327
|
-
const env = createRuntimeEnvironment();
|
|
328
|
-
try {
|
|
329
|
-
const result = await env.execute(code, 'node');
|
|
330
|
-
const passed = result.duration < maxDurationMs && result.exitCode === 0;
|
|
331
|
-
return {
|
|
332
|
-
scenario: `${name}_performance`,
|
|
333
|
-
passed,
|
|
334
|
-
duration: result.duration,
|
|
335
|
-
output: result.stdout,
|
|
336
|
-
error: passed ? undefined : `Exceeded ${maxDurationMs}ms (took ${result.duration}ms)`,
|
|
337
|
-
metrics: {
|
|
338
|
-
cpuTime: result.duration,
|
|
339
|
-
exitCode: result.exitCode,
|
|
340
|
-
},
|
|
341
|
-
};
|
|
342
|
-
}
|
|
343
|
-
finally {
|
|
344
|
-
env.cleanup();
|
|
345
|
-
}
|
|
346
|
-
},
|
|
347
|
-
timeout: maxDurationMs * 2,
|
|
348
|
-
};
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
//# sourceMappingURL=productTestHarness.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"productTestHarness.js","sourceRoot":"","sources":["../../src/core/productTestHarness.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,EAAqB,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACrF,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAoDjC;;GAEG;AACH,MAAM,OAAO,kBAAkB;IACrB,SAAS,GAAmB,EAAE,CAAC;IAC/B,OAAO,GAAiB,EAAE,CAAC;IAEnC;;OAEG;IACH,WAAW,CAAC,QAAsB;QAChC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAChC,CAAC;IAED;;OAEG;IACH,YAAY,CAAC,SAAyB;QACpC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,CAAC;IACpC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM;QAOV,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAElB,KAAK,MAAM,QAAQ,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YACtC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;YAChD,IAAI,CA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C,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;oBAC/C,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,GAAG,aAAa,IAAI,MAAM,CAAC,QAAQ,KAAK,CAAC,CAAC;oBACxE,OAAO;wBACL,QAAQ,EAAE,GAAG,IAAI,cAAc;wBAC/B,MAAM;wBACN,QAAQ,EAAE,MAAM,CAAC,QAAQ;wBACzB,MAAM,EAAE,MAAM,CAAC,MAAM;wBACrB,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,aAAa,YAAY,MAAM,CAAC,QAAQ,KAAK;wBACrF,OAAO,EAAE;4BACP,OAAO,EAAE,MAAM,CAAC,QAAQ;4BACxB,QAAQ,EAAE,MAAM,CAAC,QAAQ;yBAC1B;qBACF,CAAC;gBACJ,CAAC;wBAAS,CAAC;oBACT,GAAG,CAAC,OAAO,EAAE,CAAC;gBAChB,CAAC;YACH,CAAC;YACD,OAAO,EAAE,aAAa,GAAG,CAAC;SAC3B,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Comprehensive validation runner for AI software engineering.
|
|
3
|
-
* Validates all changes (TypeScript, tests, lint) and provides intelligent error parsing
|
|
4
|
-
* with actionable fix suggestions - similar to Erosolar-CLI's validation flow.
|
|
5
|
-
*/
|
|
6
|
-
export interface ValidationError {
|
|
7
|
-
type: 'typescript' | 'test' | 'lint' | 'build';
|
|
8
|
-
file?: string;
|
|
9
|
-
line?: number;
|
|
10
|
-
column?: number;
|
|
11
|
-
code?: string;
|
|
12
|
-
message: string;
|
|
13
|
-
severity: 'error' | 'warning';
|
|
14
|
-
rawOutput?: string;
|
|
15
|
-
suggestedFix?: SuggestedFix;
|
|
16
|
-
}
|
|
17
|
-
export interface SuggestedFix {
|
|
18
|
-
description: string;
|
|
19
|
-
autoFixable: boolean;
|
|
20
|
-
fixType: 'edit' | 'command' | 'manual';
|
|
21
|
-
fixDetails: {
|
|
22
|
-
file?: string;
|
|
23
|
-
oldContent?: string;
|
|
24
|
-
newContent?: string;
|
|
25
|
-
command?: string;
|
|
26
|
-
manualSteps?: string[];
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
export interface ValidationResult {
|
|
30
|
-
success: boolean;
|
|
31
|
-
phase: 'typescript' | 'build' | 'test' | 'lint' | 'all';
|
|
32
|
-
errors: ValidationError[];
|
|
33
|
-
warnings: ValidationError[];
|
|
34
|
-
summary: string;
|
|
35
|
-
durationMs: number;
|
|
36
|
-
autoFixableCount: number;
|
|
37
|
-
insights?: ValidationInsights;
|
|
38
|
-
}
|
|
39
|
-
export interface ValidationConfig {
|
|
40
|
-
workingDir: string;
|
|
41
|
-
phases?: ('typescript' | 'build' | 'test' | 'lint')[];
|
|
42
|
-
stopOnFirstFailure?: boolean;
|
|
43
|
-
timeout?: number;
|
|
44
|
-
verbose?: boolean;
|
|
45
|
-
}
|
|
46
|
-
export interface ValidationInsights {
|
|
47
|
-
rootCauseHints: string[];
|
|
48
|
-
recoveryPlan: string[];
|
|
49
|
-
dominantErrorCodes: {
|
|
50
|
-
code: string;
|
|
51
|
-
count: number;
|
|
52
|
-
}[];
|
|
53
|
-
topFiles: {
|
|
54
|
-
file: string;
|
|
55
|
-
count: number;
|
|
56
|
-
}[];
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Parse TypeScript compiler errors into structured format
|
|
60
|
-
*/
|
|
61
|
-
export declare function parseTypeScriptErrors(output: string): ValidationError[];
|
|
62
|
-
/**
|
|
63
|
-
* Parse Jest/test runner errors into structured format
|
|
64
|
-
*/
|
|
65
|
-
export declare function parseTestErrors(output: string): ValidationError[];
|
|
66
|
-
/**
|
|
67
|
-
* Parse ESLint errors into structured format
|
|
68
|
-
*/
|
|
69
|
-
export declare function parseLintErrors(output: string): ValidationError[];
|
|
70
|
-
export declare class ValidationRunner {
|
|
71
|
-
private config;
|
|
72
|
-
constructor(config: ValidationConfig);
|
|
73
|
-
/**
|
|
74
|
-
* Run all validation phases
|
|
75
|
-
*/
|
|
76
|
-
runAll(): Promise<ValidationResult>;
|
|
77
|
-
/**
|
|
78
|
-
* Run a specific validation phase
|
|
79
|
-
*/
|
|
80
|
-
runPhase(phase: 'typescript' | 'build' | 'test' | 'lint'): Promise<ValidationResult>;
|
|
81
|
-
/**
|
|
82
|
-
* Run TypeScript type checking
|
|
83
|
-
*/
|
|
84
|
-
private runTypeScriptValidation;
|
|
85
|
-
/**
|
|
86
|
-
* Run build validation
|
|
87
|
-
*/
|
|
88
|
-
private runBuildValidation;
|
|
89
|
-
/**
|
|
90
|
-
* Run test validation
|
|
91
|
-
*/
|
|
92
|
-
private runTestValidation;
|
|
93
|
-
/**
|
|
94
|
-
* Run lint validation
|
|
95
|
-
*/
|
|
96
|
-
private runLintValidation;
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Format validation result for display
|
|
100
|
-
*/
|
|
101
|
-
export declare function formatValidationResult(result: ValidationResult): string;
|
|
102
|
-
/**
|
|
103
|
-
* Format errors for AI consumption (structured for intelligent fixing)
|
|
104
|
-
*/
|
|
105
|
-
export declare function formatErrorsForAI(errors: ValidationError[], insights?: ValidationInsights): string;
|
|
106
|
-
//# sourceMappingURL=validationRunner.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validationRunner.d.ts","sourceRoot":"","sources":["../../src/core/validationRunner.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAaH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IAC/C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,GAAG,S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