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,12 +0,0 @@
|
|
|
1
|
-
import { TaskManagementCapabilityModule } from '../../../capabilities/taskManagementCapability.js';
|
|
2
|
-
export function createTaskManagementToolPlugin() {
|
|
3
|
-
return {
|
|
4
|
-
id: 'tool.task-management.local',
|
|
5
|
-
description: 'Task tracking and planning tools for organizing complex multi-step work.',
|
|
6
|
-
targets: ['node', 'cloud'],
|
|
7
|
-
create: (_context) => {
|
|
8
|
-
return new TaskManagementCapabilityModule({});
|
|
9
|
-
},
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=taskManagementPlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taskManagementPlugin.js","sourceRoot":"","sources":["../../../../src/plugins/tools/taskManagement/taskManagementPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,mDAAmD,CAAC;AAGnG,MAAM,UAAU,8BAA8B;IAC5C,OAAO;QACL,EAAE,EAAE,4BAA4B;QAChC,WAAW,EAAE,0EAA0E;QACvF,OAAO,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;QAC1B,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE;YACnB,OAAO,IAAI,8BAA8B,CAAC,EAAE,CAAC,CAAC;QAChD,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"testingPlugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tools/testing/testingPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAqB,MAAM,gBAAgB,CAAC;AAGpE,wBAAgB,uBAAuB,IAAI,UAAU,CAUpD"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { TestingCapabilityModule } from '../../../capabilities/testingCapability.js';
|
|
2
|
-
export function createTestingToolPlugin() {
|
|
3
|
-
return {
|
|
4
|
-
id: 'tool.testing.coverage',
|
|
5
|
-
description: 'Test generation scaffolding plus coverage execution/reporting utilities.',
|
|
6
|
-
targets: ['node'],
|
|
7
|
-
create: async (context) => new TestingCapabilityModule({
|
|
8
|
-
workingDir: context.workingDir,
|
|
9
|
-
}),
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=testingPlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"testingPlugin.js","sourceRoot":"","sources":["../../../../src/plugins/tools/testing/testingPlugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AAErF,MAAM,UAAU,uBAAuB;IACrC,OAAO;QACL,EAAE,EAAE,uBAAuB;QAC3B,WAAW,EAAE,0EAA0E;QACvF,OAAO,EAAE,CAAC,MAAM,CAAC;QACjB,MAAM,EAAE,KAAK,EAAE,OAA0B,EAAE,EAAE,CAC3C,IAAI,uBAAuB,CAAC;YAC1B,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B,CAAC;KACL,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validationPlugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tools/validation/validationPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAqB,MAAM,gBAAgB,CAAC;AAGpE,wBAAgB,0BAA0B,IAAI,UAAU,CAWvD"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ValidationCapabilityModule } from '../../../capabilities/validationCapability.js';
|
|
2
|
-
export function createValidationToolPlugin() {
|
|
3
|
-
return {
|
|
4
|
-
id: 'tool.validation.comprehensive',
|
|
5
|
-
description: 'Comprehensive code validation with intelligent error parsing and fix suggestions.',
|
|
6
|
-
targets: ['node'],
|
|
7
|
-
create: async (context) => {
|
|
8
|
-
return new ValidationCapabilityModule({
|
|
9
|
-
workingDir: context.workingDir,
|
|
10
|
-
});
|
|
11
|
-
},
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=validationPlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validationPlugin.js","sourceRoot":"","sources":["../../../../src/plugins/tools/validation/validationPlugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAE3F,MAAM,UAAU,0BAA0B;IACxC,OAAO;QACL,EAAE,EAAE,+BAA+B;QACnC,WAAW,EAAE,mFAAmF;QAChG,OAAO,EAAE,CAAC,MAAM,CAAC;QACjB,MAAM,EAAE,KAAK,EAAE,OAA0B,EAAE,EAAE;YAC3C,OAAO,IAAI,0BAA0B,CAAC;gBACpC,UAAU,EAAE,OAAO,CAAC,UAAU;aAC/B,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webPlugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/tools/web/webPlugin.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,wBAAgB,mBAAmB,IAAI,UAAU,CAShD"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { WebCapabilityModule } from '../../../capabilities/webCapability.js';
|
|
2
|
-
export function createWebToolPlugin() {
|
|
3
|
-
return {
|
|
4
|
-
id: 'tool.web.local',
|
|
5
|
-
description: 'Web content fetching and search tools for accessing online information.',
|
|
6
|
-
targets: ['node', 'cloud'],
|
|
7
|
-
create: (_context) => {
|
|
8
|
-
return new WebCapabilityModule({});
|
|
9
|
-
},
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=webPlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webPlugin.js","sourceRoot":"","sources":["../../../../src/plugins/tools/web/webPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAG7E,MAAM,UAAU,mBAAmB;IACjC,OAAO;QACL,EAAE,EAAE,gBAAgB;QACpB,WAAW,EAAE,yEAAyE;QACtF,OAAO,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;QAC1B,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE;YACnB,OAAO,IAAI,mBAAmB,CAAC,EAAE,CAAC,CAAC;QACrC,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Advanced Test Generation Tools
|
|
3
|
-
* Enhanced test generation with coverage analysis, mock generation, and test optimization
|
|
4
|
-
*/
|
|
5
|
-
import type { ToolDefinition } from '../core/toolRuntime.js';
|
|
6
|
-
export interface TestCoverageAnalysis {
|
|
7
|
-
file: string;
|
|
8
|
-
totalFunctions: number;
|
|
9
|
-
testedFunctions: number;
|
|
10
|
-
coveragePercentage: number;
|
|
11
|
-
missingTests: string[];
|
|
12
|
-
complexFunctions: string[];
|
|
13
|
-
}
|
|
14
|
-
export interface TestGenerationOptions {
|
|
15
|
-
framework: 'jest' | 'vitest' | 'mocha';
|
|
16
|
-
style: 'unit' | 'integration' | 'e2e';
|
|
17
|
-
includeMocks: boolean;
|
|
18
|
-
includeTypes: boolean;
|
|
19
|
-
}
|
|
20
|
-
export declare function createAdvancedTestGenerationTools(workingDir: string): ToolDefinition[];
|
|
21
|
-
//# sourceMappingURL=advancedTestGenerationTools.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"advancedTestGenerationTools.d.ts","sourceRoot":"","sources":["../../src/tools/advancedTestGenerationTools.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAG7D,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACvC,KAAK,EAAE,MAAM,GAAG,aAAa,GAAG,KAAK,CAAC;IACtC,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,iCAAiC,CAAC,UAAU,EAAE,MAAM,GAAG,cAAc,EAAE,CAkKtF"}
|
|
@@ -1,304 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Advanced Test Generation Tools
|
|
3
|
-
* Enhanced test generation with coverage analysis, mock generation, and test optimization
|
|
4
|
-
*/
|
|
5
|
-
import { readFileSync, existsSync } from 'node:fs';
|
|
6
|
-
import { join, relative } from 'node:path';
|
|
7
|
-
import { performAdvancedAstAnalysis } from './codeAnalysisTools.js';
|
|
8
|
-
export function createAdvancedTestGenerationTools(workingDir) {
|
|
9
|
-
return [
|
|
10
|
-
{
|
|
11
|
-
name: 'analyze_test_coverage',
|
|
12
|
-
description: 'Analyze test coverage gaps and identify functions without tests.',
|
|
13
|
-
parameters: {
|
|
14
|
-
type: 'object',
|
|
15
|
-
properties: {
|
|
16
|
-
path: {
|
|
17
|
-
type: 'string',
|
|
18
|
-
description: 'File or directory path to analyze (default: current directory).',
|
|
19
|
-
},
|
|
20
|
-
framework: {
|
|
21
|
-
type: 'string',
|
|
22
|
-
enum: ['jest', 'vitest', 'mocha'],
|
|
23
|
-
description: 'Test framework to analyze for (default: auto-detect).',
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
additionalProperties: false,
|
|
27
|
-
},
|
|
28
|
-
handler: async (args) => {
|
|
29
|
-
const path = args['path'] ?? workingDir;
|
|
30
|
-
const framework = args['framework'];
|
|
31
|
-
return analyzeTestCoverage(path, framework);
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
name: 'generate_comprehensive_tests',
|
|
36
|
-
description: 'Generate comprehensive test suites with mocks, edge cases, and coverage.',
|
|
37
|
-
parameters: {
|
|
38
|
-
type: 'object',
|
|
39
|
-
properties: {
|
|
40
|
-
path: {
|
|
41
|
-
type: 'string',
|
|
42
|
-
description: 'File path to generate tests for.',
|
|
43
|
-
},
|
|
44
|
-
framework: {
|
|
45
|
-
type: 'string',
|
|
46
|
-
enum: ['jest', 'vitest', 'mocha'],
|
|
47
|
-
description: 'Test framework style (default: jest).',
|
|
48
|
-
},
|
|
49
|
-
style: {
|
|
50
|
-
type: 'string',
|
|
51
|
-
enum: ['unit', 'integration', 'e2e'],
|
|
52
|
-
description: 'Test style (default: unit).',
|
|
53
|
-
},
|
|
54
|
-
includeMocks: {
|
|
55
|
-
type: 'boolean',
|
|
56
|
-
description: 'Include mock generation (default: true).',
|
|
57
|
-
},
|
|
58
|
-
includeTypes: {
|
|
59
|
-
type: 'boolean',
|
|
60
|
-
description: 'Include TypeScript types (default: true).',
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
required: ['path'],
|
|
64
|
-
additionalProperties: false,
|
|
65
|
-
},
|
|
66
|
-
handler: async (args) => {
|
|
67
|
-
const filePath = resolveFilePath(workingDir, args['path']);
|
|
68
|
-
const framework = args['framework'] ?? 'jest';
|
|
69
|
-
const style = args['style'] ?? 'unit';
|
|
70
|
-
const includeMocks = args['includeMocks'] ?? true;
|
|
71
|
-
const includeTypes = args['includeTypes'] ?? true;
|
|
72
|
-
return generateComprehensiveTests(filePath, workingDir, {
|
|
73
|
-
framework,
|
|
74
|
-
style,
|
|
75
|
-
includeMocks,
|
|
76
|
-
includeTypes,
|
|
77
|
-
});
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
name: 'optimize_test_performance',
|
|
82
|
-
description: 'Analyze and optimize test performance by identifying slow tests and suggesting improvements.',
|
|
83
|
-
parameters: {
|
|
84
|
-
type: 'object',
|
|
85
|
-
properties: {
|
|
86
|
-
path: {
|
|
87
|
-
type: 'string',
|
|
88
|
-
description: 'Test file or directory to analyze.',
|
|
89
|
-
},
|
|
90
|
-
framework: {
|
|
91
|
-
type: 'string',
|
|
92
|
-
enum: ['jest', 'vitest', 'mocha'],
|
|
93
|
-
description: 'Test framework (default: auto-detect).',
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
additionalProperties: false,
|
|
97
|
-
},
|
|
98
|
-
handler: async (args) => {
|
|
99
|
-
const path = args['path'] ?? workingDir;
|
|
100
|
-
const framework = args['framework'];
|
|
101
|
-
return optimizeTestPerformance(path, framework);
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
name: 'generate_mock_data',
|
|
106
|
-
description: 'Generate realistic mock data for testing based on TypeScript interfaces.',
|
|
107
|
-
parameters: {
|
|
108
|
-
type: 'object',
|
|
109
|
-
properties: {
|
|
110
|
-
path: {
|
|
111
|
-
type: 'string',
|
|
112
|
-
description: 'File path containing interfaces to mock.',
|
|
113
|
-
},
|
|
114
|
-
interfaceName: {
|
|
115
|
-
type: 'string',
|
|
116
|
-
description: 'Specific interface name to mock (optional).',
|
|
117
|
-
},
|
|
118
|
-
count: {
|
|
119
|
-
type: 'number',
|
|
120
|
-
description: 'Number of mock instances to generate (default: 3).',
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
required: ['path'],
|
|
124
|
-
additionalProperties: false,
|
|
125
|
-
},
|
|
126
|
-
handler: async (args) => {
|
|
127
|
-
const filePath = resolveFilePath(workingDir, args['path']);
|
|
128
|
-
const interfaceName = args['interfaceName'];
|
|
129
|
-
const count = args['count'] ?? 3;
|
|
130
|
-
return generateMockData(filePath, workingDir, interfaceName, count);
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
name: 'migrate_test_framework',
|
|
135
|
-
description: 'Migrate tests between frameworks (e.g., Mocha to Jest, Jest to Vitest).',
|
|
136
|
-
parameters: {
|
|
137
|
-
type: 'object',
|
|
138
|
-
properties: {
|
|
139
|
-
path: {
|
|
140
|
-
type: 'string',
|
|
141
|
-
description: 'Test file or directory to migrate.',
|
|
142
|
-
},
|
|
143
|
-
from: {
|
|
144
|
-
type: 'string',
|
|
145
|
-
enum: ['jest', 'vitest', 'mocha'],
|
|
146
|
-
description: 'Source test framework.',
|
|
147
|
-
},
|
|
148
|
-
to: {
|
|
149
|
-
type: 'string',
|
|
150
|
-
enum: ['jest', 'vitest', 'mocha'],
|
|
151
|
-
description: 'Target test framework.',
|
|
152
|
-
},
|
|
153
|
-
preview: {
|
|
154
|
-
type: 'boolean',
|
|
155
|
-
description: 'Show preview without applying changes (default: true).',
|
|
156
|
-
},
|
|
157
|
-
},
|
|
158
|
-
required: ['path', 'from', 'to'],
|
|
159
|
-
additionalProperties: false,
|
|
160
|
-
},
|
|
161
|
-
handler: async (args) => {
|
|
162
|
-
const path = args['path'];
|
|
163
|
-
const from = args['from'];
|
|
164
|
-
const to = args['to'];
|
|
165
|
-
const preview = args['preview'] ?? true;
|
|
166
|
-
return migrateTestFramework(path, from, to, preview);
|
|
167
|
-
},
|
|
168
|
-
},
|
|
169
|
-
];
|
|
170
|
-
}
|
|
171
|
-
function resolveFilePath(workingDir, path) {
|
|
172
|
-
if (path.startsWith('/')) {
|
|
173
|
-
return path;
|
|
174
|
-
}
|
|
175
|
-
return join(workingDir, path);
|
|
176
|
-
}
|
|
177
|
-
function analyzeTestCoverage(_path, framework) {
|
|
178
|
-
const output = [];
|
|
179
|
-
output.push('# Test Coverage Analysis');
|
|
180
|
-
output.push('');
|
|
181
|
-
output.push('🔍 This analysis would:');
|
|
182
|
-
output.push('- Identify functions without tests');
|
|
183
|
-
output.push('- Calculate coverage percentages');
|
|
184
|
-
output.push('- Highlight complex functions needing tests');
|
|
185
|
-
output.push('- Suggest test generation priorities');
|
|
186
|
-
output.push('');
|
|
187
|
-
if (framework) {
|
|
188
|
-
output.push(`📋 Framework: ${framework}`);
|
|
189
|
-
}
|
|
190
|
-
else {
|
|
191
|
-
output.push('📋 Framework: Auto-detected');
|
|
192
|
-
}
|
|
193
|
-
output.push('');
|
|
194
|
-
output.push('💡 Use `generate_comprehensive_tests` to fill coverage gaps.');
|
|
195
|
-
return output.join('\n');
|
|
196
|
-
}
|
|
197
|
-
function generateComprehensiveTests(filePath, workingDir, options) {
|
|
198
|
-
if (!existsSync(filePath)) {
|
|
199
|
-
return `Error: File not found: ${filePath}`;
|
|
200
|
-
}
|
|
201
|
-
const content = readFileSync(filePath, 'utf-8');
|
|
202
|
-
const ast = performAdvancedAstAnalysis(content, filePath);
|
|
203
|
-
const output = [];
|
|
204
|
-
output.push('# Comprehensive Test Generation');
|
|
205
|
-
output.push('');
|
|
206
|
-
output.push(`📁 Source: ${relative(workingDir, filePath)}`);
|
|
207
|
-
output.push(`⚙️ Framework: ${options.framework}`);
|
|
208
|
-
output.push(`🎯 Style: ${options.style}`);
|
|
209
|
-
output.push(`🤖 Mocks: ${options.includeMocks ? 'Yes' : 'No'}`);
|
|
210
|
-
output.push(`📝 Types: ${options.includeTypes ? 'Yes' : 'No'}`);
|
|
211
|
-
output.push('');
|
|
212
|
-
// Analyze functions for test generation
|
|
213
|
-
const functions = ast.symbols.filter(symbol => symbol.kind === 'function');
|
|
214
|
-
const classes = ast.symbols.filter(symbol => symbol.kind === 'class');
|
|
215
|
-
output.push('## Functions to Test');
|
|
216
|
-
if (functions.length === 0 && classes.length === 0) {
|
|
217
|
-
output.push('No functions or classes found to test.');
|
|
218
|
-
}
|
|
219
|
-
else {
|
|
220
|
-
functions.forEach(func => {
|
|
221
|
-
output.push(`- ${func.name} (${func.statementCount} statements)`);
|
|
222
|
-
});
|
|
223
|
-
classes.forEach(cls => {
|
|
224
|
-
const methodCount = Array.isArray(cls.methods)
|
|
225
|
-
? (cls.methods?.length ?? 0)
|
|
226
|
-
: 0;
|
|
227
|
-
output.push(`- ${cls.name} (class with ${methodCount} methods)`);
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
output.push('');
|
|
231
|
-
output.push('## Test Features');
|
|
232
|
-
output.push('- Edge case coverage');
|
|
233
|
-
output.push('- Error handling tests');
|
|
234
|
-
output.push('- Input validation');
|
|
235
|
-
output.push('- Mock integration');
|
|
236
|
-
output.push('- Performance benchmarks');
|
|
237
|
-
return output.join('\n');
|
|
238
|
-
}
|
|
239
|
-
function optimizeTestPerformance(_path, framework) {
|
|
240
|
-
const output = [];
|
|
241
|
-
output.push('# Test Performance Optimization');
|
|
242
|
-
output.push('');
|
|
243
|
-
output.push('⚡ This optimization would:');
|
|
244
|
-
output.push('- Identify slow-running tests');
|
|
245
|
-
output.push('- Suggest async test improvements');
|
|
246
|
-
output.push('- Recommend mock optimization');
|
|
247
|
-
output.push('- Propose parallel test execution');
|
|
248
|
-
output.push('- Highlight memory usage issues');
|
|
249
|
-
output.push('');
|
|
250
|
-
if (framework) {
|
|
251
|
-
output.push(`📋 Framework: ${framework}`);
|
|
252
|
-
}
|
|
253
|
-
else {
|
|
254
|
-
output.push('📋 Framework: Auto-detected');
|
|
255
|
-
}
|
|
256
|
-
output.push('');
|
|
257
|
-
output.push('💡 Performance improvements can significantly reduce test execution time.');
|
|
258
|
-
return output.join('\n');
|
|
259
|
-
}
|
|
260
|
-
function generateMockData(filePath, workingDir, interfaceName, count = 3) {
|
|
261
|
-
if (!existsSync(filePath)) {
|
|
262
|
-
return `Error: File not found: ${filePath}`;
|
|
263
|
-
}
|
|
264
|
-
const output = [];
|
|
265
|
-
output.push('# Mock Data Generation');
|
|
266
|
-
output.push('');
|
|
267
|
-
output.push(`📁 Source: ${relative(workingDir, filePath)}`);
|
|
268
|
-
if (interfaceName) {
|
|
269
|
-
output.push(`🎯 Interface: ${interfaceName}`);
|
|
270
|
-
}
|
|
271
|
-
else {
|
|
272
|
-
output.push('🎯 Interface: All detected interfaces');
|
|
273
|
-
}
|
|
274
|
-
output.push(`📊 Count: ${count} instances`);
|
|
275
|
-
output.push('');
|
|
276
|
-
output.push('## Mock Data Features');
|
|
277
|
-
output.push('- Realistic test data');
|
|
278
|
-
output.push('- Type-safe mock objects');
|
|
279
|
-
output.push('- Edge case variations');
|
|
280
|
-
output.push('- Factory functions');
|
|
281
|
-
output.push('- Random data generation');
|
|
282
|
-
return output.join('\n');
|
|
283
|
-
}
|
|
284
|
-
function migrateTestFramework(path, from, to, preview) {
|
|
285
|
-
const output = [];
|
|
286
|
-
output.push('# Test Framework Migration');
|
|
287
|
-
output.push('');
|
|
288
|
-
output.push(`📁 Source: ${path}`);
|
|
289
|
-
output.push(`🔄 Migration: ${from} → ${to}`);
|
|
290
|
-
output.push(`👁️ Preview mode: ${preview ? 'ON' : 'OFF'}`);
|
|
291
|
-
output.push('');
|
|
292
|
-
output.push('## Migration Changes');
|
|
293
|
-
output.push('- Import/export statements');
|
|
294
|
-
output.push('- Test runner configuration');
|
|
295
|
-
output.push('- Assertion library syntax');
|
|
296
|
-
output.push('- Mocking framework syntax');
|
|
297
|
-
output.push('- Setup/teardown hooks');
|
|
298
|
-
if (preview) {
|
|
299
|
-
output.push('');
|
|
300
|
-
output.push('💡 Run with `preview: false` to apply migration changes.');
|
|
301
|
-
}
|
|
302
|
-
return output.join('\n');
|
|
303
|
-
}
|
|
304
|
-
//# sourceMappingURL=advancedTestGenerationTools.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"advancedTestGenerationTools.js","sourceRoot":"","sources":["../../src/tools/advancedTestGenerationTools.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAkBpE,MAAM,UAAU,iCAAiC,CAAC,UAAkB;IAClE,OAAO;QACL;YACE,IAAI,EAAE,uBAAuB;YAC7B,WAAW,EAAE,kEAAkE;YAC/E,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,IAAI,EAAE;wBACJ,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,iEAAiE;qBAC/E;oBACD,SAAS,EAAE;wBACT,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC;wBACjC,WAAW,EAAE,uDAAuD;qBACrE;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;YACD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;gBACtB,MAAM,IAAI,GAAI,IAAI,CAAC,MAAM,CAAwB,IAAI,UAAU,CAAC;gBAChE,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAA4C,CAAC;gBAC/E,OAAO,mBAAmB,CAAC,IAAI,EAAE,SAAS,CAAC,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,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC;IAC1C,MAAM,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;IAEtC,IAAI,OAAO,EAAE,CAAC;QACZ,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAChB,MAAM,CAAC,IAAI,CAAC,0DAA0D,CAAC,CAAC;IAC1E,CAAC;IAED,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC3B,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Browser Automation Tools - AI-driven browser control and automation
|
|
3
|
-
*
|
|
4
|
-
* Provides browser-use-like functionality for AI agents:
|
|
5
|
-
* - Browser session management
|
|
6
|
-
* - Navigation and interaction
|
|
7
|
-
* - Authentication helpers
|
|
8
|
-
* - Cookie/session persistence
|
|
9
|
-
* - Screenshot and content extraction
|
|
10
|
-
* - Form filling and submission
|
|
11
|
-
*
|
|
12
|
-
* @license MIT
|
|
13
|
-
* @author Bo Shang
|
|
14
|
-
*/
|
|
15
|
-
import type { ToolDefinition } from '../core/toolRuntime.js';
|
|
16
|
-
import { BrowserSessionManager } from '../browser/BrowserSessionManager.js';
|
|
17
|
-
declare function getManager(): BrowserSessionManager;
|
|
18
|
-
/**
|
|
19
|
-
* Create browser automation tools
|
|
20
|
-
*/
|
|
21
|
-
export declare function createBrowserAutomationTools(): ToolDefinition[];
|
|
22
|
-
export { getManager as getBrowserSessionManager };
|
|
23
|
-
//# sourceMappingURL=browserAutomationTools.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"browserAutomationTools.d.ts","sourceRoot":"","sources":["../../src/tools/browserAutomationTools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EACL,qBAAqB,EAItB,MAAM,qCAAqC,CAAC;AAK7C,iBAAS,UAAU,IAAI,qBAAqB,CAK3C;AAED;;GAEG;AACH,wBAAgB,4BAA4B,IAAI,cAAc,EAAE,CAq5B/D;AAED,OAAO,EAAE,UAAU,IAAI,wBAAwB,EAAE,CAAC"}
|