erosolar-cli 2.1.249 → 2.1.253
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 +2 -0
- package/dist/capabilities/orchestrationCapability.d.ts.map +1 -1
- package/dist/capabilities/orchestrationCapability.js +980 -2
- 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/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/reliabilityPrompt.d.ts.map +1 -1
- package/dist/core/reliabilityPrompt.js +14 -0
- package/dist/core/reliabilityPrompt.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 +97 -2
- package/dist/shell/interactiveShell.d.ts.map +1 -1
- package/dist/shell/interactiveShell.js +1001 -6
- 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 +20 -0
- package/dist/ui/UnifiedUIRenderer.d.ts.map +1 -1
- package/dist/ui/UnifiedUIRenderer.js +235 -28
- 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 +1 -1
- 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,540 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Enhanced Code Intelligence Tools
|
|
3
|
-
* Production-ready code analysis, refactoring, and automation helpers.
|
|
4
|
-
*/
|
|
5
|
-
import { existsSync, readFileSync, readdirSync, statSync, writeFileSync } from 'node:fs';
|
|
6
|
-
import { join, relative, resolve } from 'node:path';
|
|
7
|
-
import { performAdvancedAstAnalysis } from './codeAnalysisTools.js';
|
|
8
|
-
import { CodeIntelligenceEngine } from '../intelligence/codeIntelligence.js';
|
|
9
|
-
import { RefactoringEngine } from '../intelligence/refactoring.js';
|
|
10
|
-
import { CodeIntelligenceSuite } from '../intelligence/index.js';
|
|
11
|
-
const SUPPORTED_EXTENSIONS = ['.ts', '.tsx', '.js', '.jsx', '.mjs', '.cjs'];
|
|
12
|
-
const IGNORED_DIRECTORIES = new Set(['node_modules', '.git', 'dist', 'build', '.next', '.turbo']);
|
|
13
|
-
export function createEnhancedCodeIntelligenceTools(workingDir) {
|
|
14
|
-
return [
|
|
15
|
-
{
|
|
16
|
-
name: 'analyze_code_complexity',
|
|
17
|
-
description: 'Analyze code complexity across files, highlighting hotspots and risky symbols.',
|
|
18
|
-
parameters: {
|
|
19
|
-
type: 'object',
|
|
20
|
-
properties: {
|
|
21
|
-
path: {
|
|
22
|
-
type: 'string',
|
|
23
|
-
description: 'File or directory path to analyze (default: working directory).',
|
|
24
|
-
},
|
|
25
|
-
maxFiles: {
|
|
26
|
-
type: 'number',
|
|
27
|
-
description: 'Maximum number of files to scan (default: 50).',
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
additionalProperties: false,
|
|
31
|
-
},
|
|
32
|
-
handler: async (args) => {
|
|
33
|
-
const target = resolveTargetPath(workingDir, args['path'] ?? workingDir);
|
|
34
|
-
const maxFiles = args['maxFiles'] ?? 50;
|
|
35
|
-
return analyzeCodeComplexity(target, workingDir, maxFiles);
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
name: 'suggest_refactoring',
|
|
40
|
-
description: 'Generate refactoring suggestions with previews from the refactoring engine.',
|
|
41
|
-
parameters: {
|
|
42
|
-
type: 'object',
|
|
43
|
-
properties: {
|
|
44
|
-
path: {
|
|
45
|
-
type: 'string',
|
|
46
|
-
description: 'File or directory to scan (default: working directory).',
|
|
47
|
-
},
|
|
48
|
-
priority: {
|
|
49
|
-
type: 'string',
|
|
50
|
-
enum: ['low', 'medium', 'high'],
|
|
51
|
-
description: 'Filter suggestions by impact priority.',
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
additionalProperties: false,
|
|
55
|
-
},
|
|
56
|
-
handler: async (args) => {
|
|
57
|
-
const target = resolveTargetPath(workingDir, args['path'] ?? workingDir);
|
|
58
|
-
const priority = args['priority'];
|
|
59
|
-
return suggestRefactoring(target, workingDir, priority);
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
name: 'auto_refactor_complexity',
|
|
64
|
-
description: 'Apply safe refactorings for complex code paths. Uses previews by default.',
|
|
65
|
-
parameters: {
|
|
66
|
-
type: 'object',
|
|
67
|
-
properties: {
|
|
68
|
-
path: {
|
|
69
|
-
type: 'string',
|
|
70
|
-
description: 'File or directory to refactor.',
|
|
71
|
-
},
|
|
72
|
-
preview: {
|
|
73
|
-
type: 'boolean',
|
|
74
|
-
description: 'If true, only show planned changes without writing files (default: true).',
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
required: ['path'],
|
|
78
|
-
additionalProperties: false,
|
|
79
|
-
},
|
|
80
|
-
handler: async (args) => {
|
|
81
|
-
const target = resolveTargetPath(workingDir, args['path']);
|
|
82
|
-
const preview = args['preview'] ?? true;
|
|
83
|
-
return autoRefactorComplexity(target, workingDir, preview);
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
name: 'improve_type_safety',
|
|
88
|
-
description: 'Find and optionally replace unsafe `any` usage with safer defaults.',
|
|
89
|
-
parameters: {
|
|
90
|
-
type: 'object',
|
|
91
|
-
properties: {
|
|
92
|
-
path: {
|
|
93
|
-
type: 'string',
|
|
94
|
-
description: 'File path to analyze for unsafe types.',
|
|
95
|
-
},
|
|
96
|
-
preview: {
|
|
97
|
-
type: 'boolean',
|
|
98
|
-
description: 'If true, only report findings; if false, applies safer replacements (default: true).',
|
|
99
|
-
},
|
|
100
|
-
},
|
|
101
|
-
required: ['path'],
|
|
102
|
-
additionalProperties: false,
|
|
103
|
-
},
|
|
104
|
-
handler: async (args) => {
|
|
105
|
-
const target = resolveTargetPath(workingDir, args['path']);
|
|
106
|
-
const preview = args['preview'] ?? true;
|
|
107
|
-
return improveTypeSafety(target, workingDir, preview);
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
name: 'detect_code_smells',
|
|
112
|
-
description: 'Detect common code smells and anti-patterns using the intelligence engine.',
|
|
113
|
-
parameters: {
|
|
114
|
-
type: 'object',
|
|
115
|
-
properties: {
|
|
116
|
-
path: {
|
|
117
|
-
type: 'string',
|
|
118
|
-
description: 'File or directory to scan (default: working directory).',
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
additionalProperties: false,
|
|
122
|
-
},
|
|
123
|
-
handler: async (args) => {
|
|
124
|
-
const target = resolveTargetPath(workingDir, args['path'] ?? workingDir);
|
|
125
|
-
return detectCodeSmells(target, workingDir);
|
|
126
|
-
},
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
name: 'generate_code_quality_report',
|
|
130
|
-
description: 'Generate a quality report (issues, metrics, refactor hotspots) and return a condensed summary.',
|
|
131
|
-
parameters: {
|
|
132
|
-
type: 'object',
|
|
133
|
-
properties: {
|
|
134
|
-
path: {
|
|
135
|
-
type: 'string',
|
|
136
|
-
description: 'File or directory to analyze (default: working directory).',
|
|
137
|
-
},
|
|
138
|
-
},
|
|
139
|
-
additionalProperties: false,
|
|
140
|
-
},
|
|
141
|
-
handler: async (args) => {
|
|
142
|
-
const target = resolveTargetPath(workingDir, args['path'] ?? workingDir);
|
|
143
|
-
return generateQualityReport(target, workingDir);
|
|
144
|
-
},
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
name: 'run_code_intelligence_suite',
|
|
148
|
-
description: 'Run the full code intelligence suite (analysis, safe auto-fixes, refactor suggestions, docs/tests generation).',
|
|
149
|
-
parameters: {
|
|
150
|
-
type: 'object',
|
|
151
|
-
properties: {
|
|
152
|
-
enableAutoFix: {
|
|
153
|
-
type: 'boolean',
|
|
154
|
-
description: 'Apply safe auto-fixes and refactorings (default: false).',
|
|
155
|
-
},
|
|
156
|
-
generateTests: {
|
|
157
|
-
type: 'boolean',
|
|
158
|
-
description: 'Generate test plans/files (default: true).',
|
|
159
|
-
},
|
|
160
|
-
generateDocs: {
|
|
161
|
-
type: 'boolean',
|
|
162
|
-
description: 'Generate documentation summaries (default: true).',
|
|
163
|
-
},
|
|
164
|
-
outputDir: {
|
|
165
|
-
type: 'string',
|
|
166
|
-
description: 'Custom output directory for reports (default: .intelligence under workingDir).',
|
|
167
|
-
},
|
|
168
|
-
},
|
|
169
|
-
additionalProperties: false,
|
|
170
|
-
},
|
|
171
|
-
handler: async (args) => {
|
|
172
|
-
const enableAutoFix = args['enableAutoFix'] === true;
|
|
173
|
-
const generateTests = args['generateTests'] !== false;
|
|
174
|
-
const generateDocs = args['generateDocs'] !== false;
|
|
175
|
-
const outputDir = typeof args['outputDir'] === 'string'
|
|
176
|
-
? resolveTargetPath(workingDir, args['outputDir'])
|
|
177
|
-
: undefined;
|
|
178
|
-
return runCodeIntelligenceSuite({
|
|
179
|
-
workingDir,
|
|
180
|
-
enableAutoFix,
|
|
181
|
-
generateTests,
|
|
182
|
-
generateDocs,
|
|
183
|
-
outputDir,
|
|
184
|
-
});
|
|
185
|
-
},
|
|
186
|
-
},
|
|
187
|
-
];
|
|
188
|
-
}
|
|
189
|
-
function resolveTargetPath(workingDir, targetPath) {
|
|
190
|
-
return targetPath.startsWith('/') ? targetPath : resolve(workingDir, targetPath);
|
|
191
|
-
}
|
|
192
|
-
function collectSourceFiles(target, maxFiles) {
|
|
193
|
-
const files = [];
|
|
194
|
-
const visit = (current) => {
|
|
195
|
-
if (files.length >= maxFiles) {
|
|
196
|
-
return;
|
|
197
|
-
}
|
|
198
|
-
const stats = statSync(current);
|
|
199
|
-
if (stats.isFile()) {
|
|
200
|
-
if (SUPPORTED_EXTENSIONS.some((ext) => current.endsWith(ext))) {
|
|
201
|
-
files.push(current);
|
|
202
|
-
}
|
|
203
|
-
return;
|
|
204
|
-
}
|
|
205
|
-
if (!stats.isDirectory()) {
|
|
206
|
-
return;
|
|
207
|
-
}
|
|
208
|
-
const entries = readdirSync(current, { withFileTypes: true });
|
|
209
|
-
for (const entry of entries) {
|
|
210
|
-
if (files.length >= maxFiles) {
|
|
211
|
-
break;
|
|
212
|
-
}
|
|
213
|
-
if (entry.isDirectory() && IGNORED_DIRECTORIES.has(entry.name)) {
|
|
214
|
-
continue;
|
|
215
|
-
}
|
|
216
|
-
visit(join(current, entry.name));
|
|
217
|
-
}
|
|
218
|
-
};
|
|
219
|
-
if (existsSync(target)) {
|
|
220
|
-
visit(target);
|
|
221
|
-
}
|
|
222
|
-
return files;
|
|
223
|
-
}
|
|
224
|
-
function analyzeCodeComplexity(target, workingDir, maxFiles) {
|
|
225
|
-
if (!existsSync(target)) {
|
|
226
|
-
return `Error: path not found: ${target}`;
|
|
227
|
-
}
|
|
228
|
-
const files = collectSourceFiles(target, Math.max(1, maxFiles));
|
|
229
|
-
if (files.length === 0) {
|
|
230
|
-
return `No TypeScript/JavaScript files found under ${target}.`;
|
|
231
|
-
}
|
|
232
|
-
const hotspots = [];
|
|
233
|
-
let totalLines = 0;
|
|
234
|
-
let totalSymbols = 0;
|
|
235
|
-
let totalCyclomatic = 0;
|
|
236
|
-
for (const file of files) {
|
|
237
|
-
const content = readFileSync(file, 'utf-8');
|
|
238
|
-
const lines = content.split(/\r?\n/).length;
|
|
239
|
-
totalLines += lines;
|
|
240
|
-
const analysis = performAdvancedAstAnalysis(content, file);
|
|
241
|
-
totalSymbols += analysis.symbols.length;
|
|
242
|
-
totalCyclomatic += analysis.totalCyclomaticComplexity;
|
|
243
|
-
const worst = selectWorstSymbol(analysis.symbols);
|
|
244
|
-
if (worst) {
|
|
245
|
-
const span = worst.endLine - worst.startLine + 1;
|
|
246
|
-
const reasons = [];
|
|
247
|
-
if (worst.cyclomaticComplexity > 10) {
|
|
248
|
-
reasons.push(`high complexity (${worst.cyclomaticComplexity})`);
|
|
249
|
-
}
|
|
250
|
-
if (worst.statementCount > 50) {
|
|
251
|
-
reasons.push(`long body (${worst.statementCount} statements)`);
|
|
252
|
-
}
|
|
253
|
-
if (span > 120) {
|
|
254
|
-
reasons.push(`spans ${span} lines`);
|
|
255
|
-
}
|
|
256
|
-
hotspots.push({ file, symbol: worst, span, reasons });
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
hotspots.sort((a, b) => {
|
|
260
|
-
if (b.symbol.cyclomaticComplexity !== a.symbol.cyclomaticComplexity) {
|
|
261
|
-
return b.symbol.cyclomaticComplexity - a.symbol.cyclomaticComplexity;
|
|
262
|
-
}
|
|
263
|
-
return b.symbol.statementCount - a.symbol.statementCount;
|
|
264
|
-
});
|
|
265
|
-
const averageCyclomatic = totalSymbols === 0 ? 0 : Math.round((totalCyclomatic / totalSymbols) * 10) / 10;
|
|
266
|
-
const output = [];
|
|
267
|
-
output.push('# Code Complexity Analysis');
|
|
268
|
-
output.push(`Files scanned: ${files.length} (limit ${maxFiles})`);
|
|
269
|
-
output.push(`Lines of code: ${totalLines.toLocaleString()}`);
|
|
270
|
-
output.push(`Average cyclomatic complexity per symbol: ${averageCyclomatic}`);
|
|
271
|
-
output.push('');
|
|
272
|
-
output.push('## Top Complexity Hotspots');
|
|
273
|
-
const topHotspots = hotspots.slice(0, 10);
|
|
274
|
-
if (topHotspots.length === 0) {
|
|
275
|
-
output.push('No complex symbols detected.');
|
|
276
|
-
}
|
|
277
|
-
else {
|
|
278
|
-
topHotspots.forEach((hotspot, index) => {
|
|
279
|
-
output.push(`${index + 1}. ${relative(workingDir, hotspot.file)} :: ${hotspot.symbol.name} (lines ${hotspot.symbol.startLine}-${hotspot.symbol.endLine})`);
|
|
280
|
-
output.push(` - CC: ${hotspot.symbol.cyclomaticComplexity}, statements: ${hotspot.symbol.statementCount}, span: ${hotspot.span} lines`);
|
|
281
|
-
if (hotspot.reasons.length > 0) {
|
|
282
|
-
output.push(` - Reasons: ${hotspot.reasons.join(', ')}`);
|
|
283
|
-
}
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
output.push('');
|
|
287
|
-
output.push('Use `suggest_refactoring` to get concrete improvement steps or `auto_refactor_complexity` to apply safe changes.');
|
|
288
|
-
return output.join('\n');
|
|
289
|
-
}
|
|
290
|
-
function selectWorstSymbol(symbols) {
|
|
291
|
-
if (!symbols.length) {
|
|
292
|
-
return null;
|
|
293
|
-
}
|
|
294
|
-
const initial = symbols[0];
|
|
295
|
-
return symbols.reduce((worst, current) => {
|
|
296
|
-
const score = current.cyclomaticComplexity * 2 + current.statementCount;
|
|
297
|
-
const worstScore = worst.cyclomaticComplexity * 2 + worst.statementCount;
|
|
298
|
-
return score > worstScore ? current : worst;
|
|
299
|
-
}, initial);
|
|
300
|
-
}
|
|
301
|
-
function suggestRefactoring(target, workingDir, priority) {
|
|
302
|
-
const engine = new RefactoringEngine(workingDir);
|
|
303
|
-
const opportunities = engine.findOpportunities(target);
|
|
304
|
-
const filtered = priority ? opportunities.filter((o) => mapImpactToPriority(o.impact) === priority) : opportunities;
|
|
305
|
-
if (filtered.length === 0) {
|
|
306
|
-
return 'No refactoring opportunities detected for the specified scope.';
|
|
307
|
-
}
|
|
308
|
-
const output = [];
|
|
309
|
-
output.push('# Refactoring Suggestions');
|
|
310
|
-
if (priority) {
|
|
311
|
-
output.push(`Filtered by priority: ${priority}`);
|
|
312
|
-
}
|
|
313
|
-
output.push('');
|
|
314
|
-
filtered.slice(0, 20).forEach((opp, index) => {
|
|
315
|
-
const preview = opp.preview
|
|
316
|
-
? `${opp.preview.before.trim().slice(0, 80)} → ${opp.preview.after.trim().slice(0, 80)}`
|
|
317
|
-
: 'Preview unavailable';
|
|
318
|
-
output.push(`${index + 1}. ${opp.type} (${opp.impact}/${opp.risk}) - ${opp.description}`);
|
|
319
|
-
output.push(` • ${opp.file}:${opp.line}`);
|
|
320
|
-
output.push(` • ${preview}`);
|
|
321
|
-
});
|
|
322
|
-
if (filtered.length > 20) {
|
|
323
|
-
output.push('');
|
|
324
|
-
output.push(`…${filtered.length - 20} additional opportunities not shown.`);
|
|
325
|
-
}
|
|
326
|
-
output.push('');
|
|
327
|
-
output.push('Run `auto_refactor_complexity` to apply safe changes automatically.');
|
|
328
|
-
return output.join('\n');
|
|
329
|
-
}
|
|
330
|
-
function mapImpactToPriority(impact) {
|
|
331
|
-
return impact;
|
|
332
|
-
}
|
|
333
|
-
function autoRefactorComplexity(target, workingDir, preview) {
|
|
334
|
-
if (!existsSync(target)) {
|
|
335
|
-
return `Error: path not found: ${target}`;
|
|
336
|
-
}
|
|
337
|
-
const engine = new RefactoringEngine(workingDir);
|
|
338
|
-
const opportunities = engine.findOpportunities(target);
|
|
339
|
-
const safe = opportunities.filter((o) => o.risk === 'safe');
|
|
340
|
-
if (safe.length === 0) {
|
|
341
|
-
return 'No safe refactorings available to apply.';
|
|
342
|
-
}
|
|
343
|
-
if (preview) {
|
|
344
|
-
const output = [];
|
|
345
|
-
output.push('# Preview: Safe Refactorings');
|
|
346
|
-
safe.slice(0, 15).forEach((opp, index) => {
|
|
347
|
-
output.push(`${index + 1}. ${opp.type} :: ${opp.file}:${opp.line} (${opp.description})`);
|
|
348
|
-
});
|
|
349
|
-
if (safe.length > 15) {
|
|
350
|
-
output.push(`…${safe.length - 15} additional safe refactorings not shown.`);
|
|
351
|
-
}
|
|
352
|
-
output.push('');
|
|
353
|
-
output.push('Run again with `preview: false` to apply these changes.');
|
|
354
|
-
return output.join('\n');
|
|
355
|
-
}
|
|
356
|
-
const result = engine.applySafeRefactorings(safe);
|
|
357
|
-
const output = [];
|
|
358
|
-
output.push('# Applied Safe Refactorings');
|
|
359
|
-
output.push(`Files modified: ${result.filesModified.length}`);
|
|
360
|
-
result.changes.forEach((change, index) => {
|
|
361
|
-
output.push(`${index + 1}. ${change.file} - ${change.description} (${change.linesChanged} lines changed)`);
|
|
362
|
-
});
|
|
363
|
-
if (result.errors.length > 0) {
|
|
364
|
-
output.push('');
|
|
365
|
-
output.push('Errors:');
|
|
366
|
-
result.errors.forEach((err) => output.push(`- ${err}`));
|
|
367
|
-
}
|
|
368
|
-
return output.join('\n');
|
|
369
|
-
}
|
|
370
|
-
function improveTypeSafety(target, workingDir, preview) {
|
|
371
|
-
if (!existsSync(target)) {
|
|
372
|
-
return `Error: file not found: ${target}`;
|
|
373
|
-
}
|
|
374
|
-
const content = readFileSync(target, 'utf-8');
|
|
375
|
-
const occurrences = findAnyOccurrences(content);
|
|
376
|
-
if (occurrences.length === 0) {
|
|
377
|
-
return 'No unsafe `any` usage detected.';
|
|
378
|
-
}
|
|
379
|
-
if (preview) {
|
|
380
|
-
const output = [];
|
|
381
|
-
output.push('# Type Safety Findings');
|
|
382
|
-
occurrences.slice(0, 20).forEach((occurrence, index) => {
|
|
383
|
-
output.push(`${index + 1}. line ${occurrence.line} → ${occurrence.snippet}`);
|
|
384
|
-
});
|
|
385
|
-
if (occurrences.length > 20) {
|
|
386
|
-
output.push(`…${occurrences.length - 20} additional occurrences not shown.`);
|
|
387
|
-
}
|
|
388
|
-
output.push('');
|
|
389
|
-
output.push('Run with `preview: false` to replace `any` with `unknown` in-place.');
|
|
390
|
-
return output.join('\n');
|
|
391
|
-
}
|
|
392
|
-
let updated = content;
|
|
393
|
-
const replacements = [
|
|
394
|
-
{ pattern: /:\s*any\b/g, replacement: ': unknown' },
|
|
395
|
-
{ pattern: /\bas any\b/g, replacement: ' as unknown' },
|
|
396
|
-
{ pattern: /<any>/g, replacement: '<unknown>' },
|
|
397
|
-
];
|
|
398
|
-
replacements.forEach(({ pattern, replacement }) => {
|
|
399
|
-
updated = updated.replace(pattern, replacement);
|
|
400
|
-
});
|
|
401
|
-
if (updated === content) {
|
|
402
|
-
return 'No replaceable `any` tokens found after analysis.';
|
|
403
|
-
}
|
|
404
|
-
writeFileSync(target, updated, 'utf-8');
|
|
405
|
-
const output = [];
|
|
406
|
-
output.push('# Type Safety Applied');
|
|
407
|
-
output.push(`File updated: ${relative(workingDir, target)}`);
|
|
408
|
-
output.push(`Occurrences replaced: ${occurrences.length}`);
|
|
409
|
-
output.push('Re-run type checking to validate changes.');
|
|
410
|
-
return output.join('\n');
|
|
411
|
-
}
|
|
412
|
-
function findAnyOccurrences(content) {
|
|
413
|
-
const regex = /\bany\b/g;
|
|
414
|
-
const occurrences = [];
|
|
415
|
-
let match;
|
|
416
|
-
while ((match = regex.exec(content))) {
|
|
417
|
-
const before = content.slice(0, match.index);
|
|
418
|
-
const line = before.split(/\r?\n/).length;
|
|
419
|
-
const lineText = content.split(/\r?\n/)[line - 1] ?? '';
|
|
420
|
-
occurrences.push({ line, snippet: lineText.trim().slice(0, 120) });
|
|
421
|
-
}
|
|
422
|
-
return occurrences;
|
|
423
|
-
}
|
|
424
|
-
async function detectCodeSmells(target, workingDir) {
|
|
425
|
-
if (!existsSync(target)) {
|
|
426
|
-
return `Error: path not found: ${target}`;
|
|
427
|
-
}
|
|
428
|
-
const engine = new CodeIntelligenceEngine(workingDir);
|
|
429
|
-
const result = await engine.analyze(target);
|
|
430
|
-
const smells = result.issues.filter((issue) => ['complexity', 'duplication', 'maintainability', 'bug', 'performance'].includes(issue.type));
|
|
431
|
-
if (smells.length === 0) {
|
|
432
|
-
return 'No code smells detected.';
|
|
433
|
-
}
|
|
434
|
-
const severityOrder = { critical: 0, high: 1, medium: 2, low: 3, info: 4 };
|
|
435
|
-
smells.sort((a, b) => (severityOrder[a.severity] ?? 5) - (severityOrder[b.severity] ?? 5));
|
|
436
|
-
const output = [];
|
|
437
|
-
output.push('# Code Smells');
|
|
438
|
-
output.push(`Total smells: ${smells.length}`);
|
|
439
|
-
output.push('');
|
|
440
|
-
smells.slice(0, 20).forEach((issue, index) => {
|
|
441
|
-
output.push(`${index + 1}. [${issue.severity}] ${issue.file}:${issue.line ?? '?'} - ${issue.message}`);
|
|
442
|
-
if (issue.suggestion) {
|
|
443
|
-
output.push(` → ${issue.suggestion}`);
|
|
444
|
-
}
|
|
445
|
-
});
|
|
446
|
-
if (smells.length > 20) {
|
|
447
|
-
output.push(`…${smells.length - 20} additional smells not shown.`);
|
|
448
|
-
}
|
|
449
|
-
return output.join('\n');
|
|
450
|
-
}
|
|
451
|
-
async function generateQualityReport(target, workingDir) {
|
|
452
|
-
const engine = new CodeIntelligenceEngine(workingDir);
|
|
453
|
-
const result = await engine.analyze(target);
|
|
454
|
-
const refEngine = new RefactoringEngine(workingDir);
|
|
455
|
-
const refOps = refEngine.findOpportunities(target).slice(0, 5);
|
|
456
|
-
const output = [];
|
|
457
|
-
output.push('# Code Quality Report');
|
|
458
|
-
output.push(`Files analyzed: ${result.files}`);
|
|
459
|
-
output.push(`Lines of code: ${result.linesOfCode.toLocaleString()}`);
|
|
460
|
-
output.push('');
|
|
461
|
-
output.push('## Metrics (0-100, higher is better)');
|
|
462
|
-
output.push(`- Complexity: ${Math.round(result.metrics.complexity)}`);
|
|
463
|
-
output.push(`- Maintainability: ${Math.round(result.metrics.maintainability)}`);
|
|
464
|
-
output.push(`- Testability: ${Math.round(result.metrics.testability)}`);
|
|
465
|
-
output.push(`- Duplication: ${Math.round(result.metrics.duplication)}`);
|
|
466
|
-
output.push(`- Documentation: ${Math.round(result.metrics.documentation)}`);
|
|
467
|
-
output.push('');
|
|
468
|
-
output.push('## Top Issues');
|
|
469
|
-
const topIssues = result.issues
|
|
470
|
-
.slice()
|
|
471
|
-
.sort((a, b) => {
|
|
472
|
-
const order = { critical: 0, high: 1, medium: 2, low: 3, info: 4 };
|
|
473
|
-
return (order[a.severity] ?? 5) - (order[b.severity] ?? 5);
|
|
474
|
-
})
|
|
475
|
-
.slice(0, 10);
|
|
476
|
-
if (topIssues.length === 0) {
|
|
477
|
-
output.push('No issues detected.');
|
|
478
|
-
}
|
|
479
|
-
else {
|
|
480
|
-
topIssues.forEach((issue, index) => {
|
|
481
|
-
output.push(`${index + 1}. [${issue.severity}] ${issue.file}:${issue.line ?? '?'} - ${issue.message}`);
|
|
482
|
-
if (issue.suggestion) {
|
|
483
|
-
output.push(` → ${issue.suggestion}`);
|
|
484
|
-
}
|
|
485
|
-
});
|
|
486
|
-
}
|
|
487
|
-
output.push('');
|
|
488
|
-
output.push('## Refactor Hotspots');
|
|
489
|
-
if (refOps.length === 0) {
|
|
490
|
-
output.push('No refactor hotspots identified.');
|
|
491
|
-
}
|
|
492
|
-
else {
|
|
493
|
-
refOps.forEach((opp, index) => {
|
|
494
|
-
output.push(`${index + 1}. ${opp.file}:${opp.line} - ${opp.description} (${opp.impact}/${opp.risk})`);
|
|
495
|
-
});
|
|
496
|
-
}
|
|
497
|
-
output.push('');
|
|
498
|
-
output.push('Use `run_code_intelligence_suite` for a full analysis + optional auto-fixes and documentation generation.');
|
|
499
|
-
return output.join('\n');
|
|
500
|
-
}
|
|
501
|
-
async function runCodeIntelligenceSuite(options) {
|
|
502
|
-
const suite = new CodeIntelligenceSuite({
|
|
503
|
-
workingDir: options.workingDir,
|
|
504
|
-
enableAutoFix: options.enableAutoFix,
|
|
505
|
-
generateTests: options.generateTests,
|
|
506
|
-
generateDocs: options.generateDocs,
|
|
507
|
-
outputDir: options.outputDir ?? join(options.workingDir, '.intelligence'),
|
|
508
|
-
});
|
|
509
|
-
const report = await suite.runFullAnalysis();
|
|
510
|
-
const output = [];
|
|
511
|
-
output.push('# Code Intelligence Suite');
|
|
512
|
-
output.push(`Analysis completed at ${report.timestamp}`);
|
|
513
|
-
output.push(`Issues found: ${report.analysis.issues.length}`);
|
|
514
|
-
output.push(`Refactoring opportunities: ${report.refactoring.length}`);
|
|
515
|
-
output.push(`Auto-fix enabled: ${options.enableAutoFix ? 'yes' : 'no'}`);
|
|
516
|
-
output.push('');
|
|
517
|
-
const actions = report.actions ?? [];
|
|
518
|
-
if (actions.length > 0) {
|
|
519
|
-
output.push('## Actions Taken');
|
|
520
|
-
actions.forEach((action, index) => {
|
|
521
|
-
output.push(`${index + 1}. [${action.type}] ${action.description} (${action.success ? 'success' : 'partial'})`);
|
|
522
|
-
if (action.filesAffected.length > 0) {
|
|
523
|
-
output.push(` Files: ${action.filesAffected.join(', ')}`);
|
|
524
|
-
}
|
|
525
|
-
});
|
|
526
|
-
output.push('');
|
|
527
|
-
}
|
|
528
|
-
if (report.documentation) {
|
|
529
|
-
output.push('Documentation generated: API.md and API-reference.md');
|
|
530
|
-
}
|
|
531
|
-
if (report.tests) {
|
|
532
|
-
output.push('Tests generated: see .intelligence/generated-tests');
|
|
533
|
-
}
|
|
534
|
-
const dest = options.outputDir ?? join(options.workingDir, '.intelligence');
|
|
535
|
-
output.push('');
|
|
536
|
-
output.push(`Artifacts written to: ${dest}`);
|
|
537
|
-
output.push('Re-run this tool to keep reports fresh after additional edits.');
|
|
538
|
-
return output.join('\n');
|
|
539
|
-
}
|
|
540
|
-
//# sourceMappingURL=enhancedCodeIntelligenceTools.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enhancedCodeIntelligenceTools.js","sourceRoot":"","sources":["../../src/tools/enhancedCodeIntelligenceTools.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACzF,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpD,OAAO,EAAE,0BAA0B,EAAyB,MAAM,wBAAwB,CAAC;AAC3F,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEjE,MAAM,oBAAoB,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAC5E,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAAC,CAAC,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;AAElG,MAAM,UAAU,mCAAmC,CAAC,UAAkB;IACpE,OAAO;QACL;YACE,IAAI,EAAE,yBAAyB;YAC/B,WAAW,EAAE,gFAAgF;YAC7F,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,IAAI,EAAE;wBACJ,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,iEAAiE;qBAC/E;oBACD,QAAQ,EAAE;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I,CAAC,oDAAoD,CAAC,CAAC;IACpE,CAAC;IAED,MAAM,IAAI,GAAG,OAAO,CAAC,SAAS,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;IAC5E,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAChB,MAAM,CAAC,IAAI,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;IAC7C,MAAM,CAAC,IAAI,CAAC,gEAAgE,CAAC,CAAC;IAC9E,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC3B,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Enhanced Development Workflow Tools
|
|
3
|
-
* Real workflow runners that measure build/test/lint quality gates and scaffold CI.
|
|
4
|
-
*/
|
|
5
|
-
import type { ToolDefinition } from '../core/toolRuntime.js';
|
|
6
|
-
export declare function createEnhancedDevWorkflowTools(workingDir: string): ToolDefinition[];
|
|
7
|
-
//# sourceMappingURL=enhancedDevWorkflowTools.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enhancedDevWorkflowTools.d.ts","sourceRoot":"","sources":["../../src/tools/enhancedDevWorkflowTools.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAOH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAmB7D,wBAAgB,8BAA8B,CAAC,UAAU,EAAE,MAAM,GAAG,cAAc,EAAE,CAqInF"}
|