erosolar-cli 1.7.438 → 1.7.439
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/package.json +2 -1
- package/dist/StringUtils.d.ts +0 -8
- package/dist/StringUtils.d.ts.map +0 -1
- package/dist/StringUtils.js +0 -11
- package/dist/StringUtils.js.map +0 -1
- package/dist/adapters/browser/index.d.ts +0 -12
- package/dist/adapters/browser/index.d.ts.map +0 -1
- package/dist/adapters/browser/index.js +0 -11
- package/dist/adapters/browser/index.js.map +0 -1
- package/dist/adapters/node/index.d.ts +0 -17
- package/dist/adapters/node/index.d.ts.map +0 -1
- package/dist/adapters/node/index.js +0 -35
- package/dist/adapters/node/index.js.map +0 -1
- package/dist/adapters/remote/index.d.ts +0 -13
- package/dist/adapters/remote/index.d.ts.map +0 -1
- package/dist/adapters/remote/index.js +0 -20
- package/dist/adapters/remote/index.js.map +0 -1
- package/dist/adapters/types.d.ts +0 -14
- package/dist/adapters/types.d.ts.map +0 -1
- package/dist/adapters/types.js +0 -2
- package/dist/adapters/types.js.map +0 -1
- package/dist/bin/erosolar.d.ts +0 -9
- package/dist/bin/erosolar.d.ts.map +0 -1
- package/dist/bin/erosolar.js +0 -93
- package/dist/bin/erosolar.js.map +0 -1
- package/dist/bin/selfTest.d.ts +0 -14
- package/dist/bin/selfTest.d.ts.map +0 -1
- package/dist/bin/selfTest.js +0 -304
- package/dist/bin/selfTest.js.map +0 -1
- package/dist/browser/BrowserSessionManager.d.ts +0 -307
- package/dist/browser/BrowserSessionManager.d.ts.map +0 -1
- package/dist/browser/BrowserSessionManager.js +0 -713
- package/dist/browser/BrowserSessionManager.js.map +0 -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/agentSpawningCapability.d.ts +0 -6
- package/dist/capabilities/agentSpawningCapability.d.ts.map +0 -1
- package/dist/capabilities/agentSpawningCapability.js +0 -168
- package/dist/capabilities/agentSpawningCapability.js.map +0 -1
- package/dist/capabilities/askUserCapability.d.ts +0 -21
- package/dist/capabilities/askUserCapability.d.ts.map +0 -1
- package/dist/capabilities/askUserCapability.js +0 -155
- package/dist/capabilities/askUserCapability.js.map +0 -1
- package/dist/capabilities/bashCapability.d.ts +0 -13
- package/dist/capabilities/bashCapability.d.ts.map +0 -1
- package/dist/capabilities/bashCapability.js +0 -24
- package/dist/capabilities/bashCapability.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/codeGenerationCapability.d.ts +0 -13
- package/dist/capabilities/codeGenerationCapability.d.ts.map +0 -1
- package/dist/capabilities/codeGenerationCapability.js +0 -25
- package/dist/capabilities/codeGenerationCapability.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/editCapability.d.ts +0 -17
- package/dist/capabilities/editCapability.d.ts.map +0 -1
- package/dist/capabilities/editCapability.js +0 -27
- package/dist/capabilities/editCapability.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/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/enhancedGitCapability.d.ts +0 -7
- package/dist/capabilities/enhancedGitCapability.d.ts.map +0 -1
- package/dist/capabilities/enhancedGitCapability.js +0 -220
- package/dist/capabilities/enhancedGitCapability.js.map +0 -1
- package/dist/capabilities/filesystemCapability.d.ts +0 -13
- package/dist/capabilities/filesystemCapability.d.ts.map +0 -1
- package/dist/capabilities/filesystemCapability.js +0 -24
- package/dist/capabilities/filesystemCapability.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/globCapability.d.ts +0 -17
- package/dist/capabilities/globCapability.d.ts.map +0 -1
- package/dist/capabilities/globCapability.js +0 -27
- package/dist/capabilities/globCapability.js.map +0 -1
- package/dist/capabilities/index.d.ts +0 -26
- package/dist/capabilities/index.d.ts.map +0 -1
- package/dist/capabilities/index.js +0 -26
- package/dist/capabilities/index.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/mcpCapability.d.ts +0 -6
- package/dist/capabilities/mcpCapability.d.ts.map +0 -1
- package/dist/capabilities/mcpCapability.js +0 -19
- package/dist/capabilities/mcpCapability.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/performanceMonitoringCapability.d.ts +0 -108
- package/dist/capabilities/performanceMonitoringCapability.d.ts.map +0 -1
- package/dist/capabilities/performanceMonitoringCapability.js +0 -176
- package/dist/capabilities/performanceMonitoringCapability.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/searchCapability.d.ts +0 -13
- package/dist/capabilities/searchCapability.d.ts.map +0 -1
- package/dist/capabilities/searchCapability.js +0 -24
- package/dist/capabilities/searchCapability.js.map +0 -1
- package/dist/capabilities/skillCapability.d.ts +0 -3
- package/dist/capabilities/skillCapability.d.ts.map +0 -1
- package/dist/capabilities/skillCapability.js +0 -77
- package/dist/capabilities/skillCapability.js.map +0 -1
- package/dist/capabilities/statusCapability.d.ts +0 -4
- package/dist/capabilities/statusCapability.d.ts.map +0 -1
- package/dist/capabilities/statusCapability.js +0 -92
- package/dist/capabilities/statusCapability.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/todoCapability.d.ts +0 -19
- package/dist/capabilities/todoCapability.d.ts.map +0 -1
- package/dist/capabilities/todoCapability.js +0 -169
- package/dist/capabilities/todoCapability.js.map +0 -1
- package/dist/capabilities/toolManifest.d.ts +0 -3
- package/dist/capabilities/toolManifest.d.ts.map +0 -1
- package/dist/capabilities/toolManifest.js +0 -160
- package/dist/capabilities/toolManifest.js.map +0 -1
- package/dist/capabilities/toolRegistry.d.ts +0 -24
- package/dist/capabilities/toolRegistry.d.ts.map +0 -1
- package/dist/capabilities/toolRegistry.js +0 -150
- package/dist/capabilities/toolRegistry.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/config.d.ts +0 -25
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -140
- package/dist/config.js.map +0 -1
- package/dist/contracts/v1/agent.d.ts +0 -147
- package/dist/contracts/v1/agent.d.ts.map +0 -1
- package/dist/contracts/v1/agent.js +0 -8
- package/dist/contracts/v1/agent.js.map +0 -1
- package/dist/contracts/v1/agentProfileManifest.d.ts +0 -60
- package/dist/contracts/v1/agentProfileManifest.d.ts.map +0 -1
- package/dist/contracts/v1/agentProfileManifest.js +0 -9
- package/dist/contracts/v1/agentProfileManifest.js.map +0 -1
- package/dist/contracts/v1/agentRules.d.ts +0 -60
- package/dist/contracts/v1/agentRules.d.ts.map +0 -1
- package/dist/contracts/v1/agentRules.js +0 -10
- package/dist/contracts/v1/agentRules.js.map +0 -1
- package/dist/contracts/v1/provider.d.ts +0 -149
- package/dist/contracts/v1/provider.d.ts.map +0 -1
- package/dist/contracts/v1/provider.js +0 -7
- package/dist/contracts/v1/provider.js.map +0 -1
- package/dist/contracts/v1/tool.d.ts +0 -136
- package/dist/contracts/v1/tool.d.ts.map +0 -1
- package/dist/contracts/v1/tool.js +0 -7
- package/dist/contracts/v1/tool.js.map +0 -1
- package/dist/contracts/v1/toolAccess.d.ts +0 -43
- package/dist/contracts/v1/toolAccess.d.ts.map +0 -1
- package/dist/contracts/v1/toolAccess.js +0 -9
- package/dist/contracts/v1/toolAccess.js.map +0 -1
- package/dist/core/LazyLoader.d.ts +0 -129
- package/dist/core/LazyLoader.d.ts.map +0 -1
- package/dist/core/LazyLoader.js +0 -240
- package/dist/core/LazyLoader.js.map +0 -1
- package/dist/core/agent.d.ts +0 -153
- package/dist/core/agent.d.ts.map +0 -1
- package/dist/core/agent.js +0 -889
- package/dist/core/agent.js.map +0 -1
- package/dist/core/agentProfileManifest.d.ts +0 -3
- package/dist/core/agentProfileManifest.d.ts.map +0 -1
- package/dist/core/agentProfileManifest.js +0 -188
- package/dist/core/agentProfileManifest.js.map +0 -1
- package/dist/core/agentProfiles.d.ts +0 -22
- package/dist/core/agentProfiles.d.ts.map +0 -1
- package/dist/core/agentProfiles.js +0 -35
- package/dist/core/agentProfiles.js.map +0 -1
- package/dist/core/agentRulebook.d.ts +0 -11
- package/dist/core/agentRulebook.d.ts.map +0 -1
- package/dist/core/agentRulebook.js +0 -136
- package/dist/core/agentRulebook.js.map +0 -1
- package/dist/core/agentSchemaLoader.d.ts +0 -131
- package/dist/core/agentSchemaLoader.d.ts.map +0 -1
- package/dist/core/agentSchemaLoader.js +0 -234
- package/dist/core/agentSchemaLoader.js.map +0 -1
- package/dist/core/aiErrorFixer.d.ts +0 -70
- package/dist/core/aiErrorFixer.d.ts.map +0 -1
- package/dist/core/aiErrorFixer.js +0 -402
- package/dist/core/aiErrorFixer.js.map +0 -1
- package/dist/core/alphaZeroEngine.d.ts +0 -269
- package/dist/core/alphaZeroEngine.d.ts.map +0 -1
- package/dist/core/alphaZeroEngine.js +0 -523
- package/dist/core/alphaZeroEngine.js.map +0 -1
- package/dist/core/alphaZeroModular.d.ts +0 -186
- package/dist/core/alphaZeroModular.d.ts.map +0 -1
- package/dist/core/alphaZeroModular.js +0 -755
- package/dist/core/alphaZeroModular.js.map +0 -1
- package/dist/core/alphaZeroOrchestrator.d.ts +0 -140
- package/dist/core/alphaZeroOrchestrator.d.ts.map +0 -1
- package/dist/core/alphaZeroOrchestrator.js +0 -418
- package/dist/core/alphaZeroOrchestrator.js.map +0 -1
- package/dist/core/bashCommandGuidance.d.ts +0 -16
- package/dist/core/bashCommandGuidance.d.ts.map +0 -1
- package/dist/core/bashCommandGuidance.js +0 -40
- package/dist/core/bashCommandGuidance.js.map +0 -1
- package/dist/core/checkpoint.d.ts +0 -76
- package/dist/core/checkpoint.d.ts.map +0 -1
- package/dist/core/checkpoint.js +0 -278
- package/dist/core/checkpoint.js.map +0 -1
- package/dist/core/cliTestHarness.d.ts +0 -200
- package/dist/core/cliTestHarness.d.ts.map +0 -1
- package/dist/core/cliTestHarness.js +0 -549
- package/dist/core/cliTestHarness.js.map +0 -1
- package/dist/core/contextManager.d.ts +0 -265
- package/dist/core/contextManager.d.ts.map +0 -1
- package/dist/core/contextManager.js +0 -1060
- package/dist/core/contextManager.js.map +0 -1
- package/dist/core/contextWindow.d.ts +0 -42
- package/dist/core/contextWindow.d.ts.map +0 -1
- package/dist/core/contextWindow.js +0 -123
- package/dist/core/contextWindow.js.map +0 -1
- package/dist/core/costTracker.d.ts +0 -87
- package/dist/core/costTracker.d.ts.map +0 -1
- package/dist/core/costTracker.js +0 -285
- package/dist/core/costTracker.js.map +0 -1
- package/dist/core/customCommands.d.ts +0 -19
- package/dist/core/customCommands.d.ts.map +0 -1
- package/dist/core/customCommands.js +0 -84
- package/dist/core/customCommands.js.map +0 -1
- package/dist/core/errors/apiKeyErrors.d.ts +0 -11
- package/dist/core/errors/apiKeyErrors.d.ts.map +0 -1
- package/dist/core/errors/apiKeyErrors.js +0 -159
- package/dist/core/errors/apiKeyErrors.js.map +0 -1
- package/dist/core/errors/errorTypes.d.ts +0 -111
- package/dist/core/errors/errorTypes.d.ts.map +0 -1
- package/dist/core/errors/errorTypes.js +0 -348
- package/dist/core/errors/errorTypes.js.map +0 -1
- package/dist/core/errors/errorUtils.d.ts +0 -87
- package/dist/core/errors/errorUtils.d.ts.map +0 -1
- package/dist/core/errors/errorUtils.js +0 -158
- package/dist/core/errors/errorUtils.js.map +0 -1
- package/dist/core/errors/safetyValidator.d.ts +0 -71
- package/dist/core/errors/safetyValidator.d.ts.map +0 -1
- package/dist/core/errors/safetyValidator.js +0 -302
- package/dist/core/errors/safetyValidator.js.map +0 -1
- package/dist/core/errors.d.ts +0 -4
- package/dist/core/errors.d.ts.map +0 -1
- package/dist/core/errors.js +0 -33
- package/dist/core/errors.js.map +0 -1
- package/dist/core/failureRecovery.d.ts +0 -122
- package/dist/core/failureRecovery.d.ts.map +0 -1
- package/dist/core/failureRecovery.js +0 -477
- package/dist/core/failureRecovery.js.map +0 -1
- package/dist/core/hooks.d.ts +0 -113
- package/dist/core/hooks.d.ts.map +0 -1
- package/dist/core/hooks.js +0 -267
- package/dist/core/hooks.js.map +0 -1
- package/dist/core/intelligentTestFlows.d.ts +0 -126
- package/dist/core/intelligentTestFlows.d.ts.map +0 -1
- package/dist/core/intelligentTestFlows.js +0 -678
- package/dist/core/intelligentTestFlows.js.map +0 -1
- package/dist/core/isolatedVerifier.d.ts +0 -40
- package/dist/core/isolatedVerifier.d.ts.map +0 -1
- package/dist/core/isolatedVerifier.js +0 -129
- package/dist/core/isolatedVerifier.js.map +0 -1
- package/dist/core/learningPersistence.d.ts +0 -145
- package/dist/core/learningPersistence.d.ts.map +0 -1
- package/dist/core/learningPersistence.js +0 -477
- package/dist/core/learningPersistence.js.map +0 -1
- package/dist/core/memorySystem.d.ts +0 -67
- package/dist/core/memorySystem.d.ts.map +0 -1
- package/dist/core/memorySystem.js +0 -334
- package/dist/core/memorySystem.js.map +0 -1
- package/dist/core/metricsTracker.d.ts +0 -157
- package/dist/core/metricsTracker.d.ts.map +0 -1
- package/dist/core/metricsTracker.js +0 -273
- package/dist/core/metricsTracker.js.map +0 -1
- package/dist/core/modelDiscovery.d.ts +0 -101
- package/dist/core/modelDiscovery.d.ts.map +0 -1
- package/dist/core/modelDiscovery.js +0 -780
- package/dist/core/modelDiscovery.js.map +0 -1
- package/dist/core/multilinePasteHandler.d.ts +0 -35
- package/dist/core/multilinePasteHandler.d.ts.map +0 -1
- package/dist/core/multilinePasteHandler.js +0 -80
- package/dist/core/multilinePasteHandler.js.map +0 -1
- package/dist/core/offsecAlphaZero.d.ts +0 -56
- package/dist/core/offsecAlphaZero.d.ts.map +0 -1
- package/dist/core/offsecAlphaZero.js +0 -395
- package/dist/core/offsecAlphaZero.js.map +0 -1
- package/dist/core/outputStyles.d.ts +0 -48
- package/dist/core/outputStyles.d.ts.map +0 -1
- package/dist/core/outputStyles.js +0 -270
- package/dist/core/outputStyles.js.map +0 -1
- package/dist/core/performanceMonitor.d.ts +0 -124
- package/dist/core/performanceMonitor.d.ts.map +0 -1
- package/dist/core/performanceMonitor.js +0 -192
- package/dist/core/performanceMonitor.js.map +0 -1
- package/dist/core/preferences.d.ts +0 -69
- package/dist/core/preferences.d.ts.map +0 -1
- package/dist/core/preferences.js +0 -316
- package/dist/core/preferences.js.map +0 -1
- package/dist/core/responseVerifier.d.ts +0 -98
- package/dist/core/responseVerifier.d.ts.map +0 -1
- package/dist/core/responseVerifier.js +0 -509
- package/dist/core/responseVerifier.js.map +0 -1
- package/dist/core/resultVerification.d.ts +0 -141
- package/dist/core/resultVerification.d.ts.map +0 -1
- package/dist/core/resultVerification.js +0 -482
- package/dist/core/resultVerification.js.map +0 -1
- package/dist/core/schemaValidator.d.ts +0 -44
- package/dist/core/schemaValidator.d.ts.map +0 -1
- package/dist/core/schemaValidator.js +0 -155
- package/dist/core/schemaValidator.js.map +0 -1
- package/dist/core/secretStore.d.ts +0 -48
- package/dist/core/secretStore.d.ts.map +0 -1
- package/dist/core/secretStore.js +0 -367
- package/dist/core/secretStore.js.map +0 -1
- package/dist/core/securityAssessment.d.ts +0 -91
- package/dist/core/securityAssessment.d.ts.map +0 -1
- package/dist/core/securityAssessment.js +0 -580
- package/dist/core/securityAssessment.js.map +0 -1
- package/dist/core/selfEvolution.d.ts +0 -155
- package/dist/core/selfEvolution.d.ts.map +0 -1
- package/dist/core/selfEvolution.js +0 -1000
- package/dist/core/selfEvolution.js.map +0 -1
- package/dist/core/selfImprovement.d.ts +0 -141
- package/dist/core/selfImprovement.d.ts.map +0 -1
- package/dist/core/selfImprovement.js +0 -700
- package/dist/core/selfImprovement.js.map +0 -1
- package/dist/core/sessionStore.d.ts +0 -35
- package/dist/core/sessionStore.d.ts.map +0 -1
- package/dist/core/sessionStore.js +0 -189
- package/dist/core/sessionStore.js.map +0 -1
- package/dist/core/testUtils.d.ts +0 -121
- package/dist/core/testUtils.d.ts.map +0 -1
- package/dist/core/testUtils.js +0 -235
- package/dist/core/testUtils.js.map +0 -1
- package/dist/core/toolPreconditions.d.ts +0 -42
- package/dist/core/toolPreconditions.d.ts.map +0 -1
- package/dist/core/toolPreconditions.js +0 -347
- package/dist/core/toolPreconditions.js.map +0 -1
- package/dist/core/toolRuntime.d.ts +0 -163
- package/dist/core/toolRuntime.d.ts.map +0 -1
- package/dist/core/toolRuntime.js +0 -439
- package/dist/core/toolRuntime.js.map +0 -1
- package/dist/core/toolValidation.d.ts +0 -116
- package/dist/core/toolValidation.d.ts.map +0 -1
- package/dist/core/toolValidation.js +0 -282
- package/dist/core/toolValidation.js.map +0 -1
- package/dist/core/types/utilityTypes.d.ts +0 -192
- package/dist/core/types/utilityTypes.d.ts.map +0 -1
- package/dist/core/types/utilityTypes.js +0 -272
- package/dist/core/types/utilityTypes.js.map +0 -1
- package/dist/core/types.d.ts +0 -306
- package/dist/core/types.d.ts.map +0 -1
- package/dist/core/types.js +0 -76
- package/dist/core/types.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 -888
- package/dist/core/validationRunner.js.map +0 -1
- package/dist/core/verification.d.ts +0 -137
- package/dist/core/verification.d.ts.map +0 -1
- package/dist/core/verification.js +0 -323
- package/dist/core/verification.js.map +0 -1
- package/dist/headless/headlessApp.d.ts +0 -5
- package/dist/headless/headlessApp.d.ts.map +0 -1
- package/dist/headless/headlessApp.js +0 -210
- package/dist/headless/headlessApp.js.map +0 -1
- package/dist/intelligence/codeIntelligence.d.ts +0 -118
- package/dist/intelligence/codeIntelligence.d.ts.map +0 -1
- package/dist/intelligence/codeIntelligence.js +0 -552
- package/dist/intelligence/codeIntelligence.js.map +0 -1
- package/dist/intelligence/docGenerator.d.ts +0 -86
- package/dist/intelligence/docGenerator.d.ts.map +0 -1
- package/dist/intelligence/docGenerator.js +0 -564
- package/dist/intelligence/docGenerator.js.map +0 -1
- package/dist/intelligence/index.d.ts +0 -51
- package/dist/intelligence/index.d.ts.map +0 -1
- package/dist/intelligence/index.js +0 -253
- package/dist/intelligence/index.js.map +0 -1
- package/dist/intelligence/refactoring.d.ts +0 -50
- package/dist/intelligence/refactoring.d.ts.map +0 -1
- package/dist/intelligence/refactoring.js +0 -354
- package/dist/intelligence/refactoring.js.map +0 -1
- package/dist/intelligence/testGenerator.d.ts +0 -74
- package/dist/intelligence/testGenerator.d.ts.map +0 -1
- package/dist/intelligence/testGenerator.js +0 -483
- package/dist/intelligence/testGenerator.js.map +0 -1
- package/dist/mcp/config.d.ts +0 -8
- package/dist/mcp/config.d.ts.map +0 -1
- package/dist/mcp/config.js +0 -252
- package/dist/mcp/config.js.map +0 -1
- package/dist/mcp/sseClient.d.ts +0 -34
- package/dist/mcp/sseClient.d.ts.map +0 -1
- package/dist/mcp/sseClient.js +0 -327
- package/dist/mcp/sseClient.js.map +0 -1
- package/dist/mcp/stdioClient.d.ts +0 -24
- package/dist/mcp/stdioClient.d.ts.map +0 -1
- package/dist/mcp/stdioClient.js +0 -179
- package/dist/mcp/stdioClient.js.map +0 -1
- package/dist/mcp/toolBridge.d.ts +0 -12
- package/dist/mcp/toolBridge.d.ts.map +0 -1
- package/dist/mcp/toolBridge.js +0 -117
- package/dist/mcp/toolBridge.js.map +0 -1
- package/dist/mcp/types.d.ts +0 -60
- package/dist/mcp/types.d.ts.map +0 -1
- package/dist/mcp/types.js +0 -2
- package/dist/mcp/types.js.map +0 -1
- package/dist/plugins/index.d.ts +0 -49
- package/dist/plugins/index.d.ts.map +0 -1
- package/dist/plugins/index.js +0 -114
- package/dist/plugins/index.js.map +0 -1
- package/dist/plugins/providers/anthropic/index.d.ts +0 -11
- package/dist/plugins/providers/anthropic/index.d.ts.map +0 -1
- package/dist/plugins/providers/anthropic/index.js +0 -38
- package/dist/plugins/providers/anthropic/index.js.map +0 -1
- package/dist/plugins/providers/deepseek/index.d.ts +0 -11
- package/dist/plugins/providers/deepseek/index.d.ts.map +0 -1
- package/dist/plugins/providers/deepseek/index.js +0 -52
- package/dist/plugins/providers/deepseek/index.js.map +0 -1
- package/dist/plugins/providers/google/index.d.ts +0 -11
- package/dist/plugins/providers/google/index.d.ts.map +0 -1
- package/dist/plugins/providers/google/index.js +0 -40
- package/dist/plugins/providers/google/index.js.map +0 -1
- package/dist/plugins/providers/index.d.ts +0 -2
- package/dist/plugins/providers/index.d.ts.map +0 -1
- package/dist/plugins/providers/index.js +0 -20
- package/dist/plugins/providers/index.js.map +0 -1
- package/dist/plugins/providers/ollama/index.d.ts +0 -21
- package/dist/plugins/providers/ollama/index.d.ts.map +0 -1
- package/dist/plugins/providers/ollama/index.js +0 -69
- package/dist/plugins/providers/ollama/index.js.map +0 -1
- package/dist/plugins/providers/openai/index.d.ts +0 -12
- package/dist/plugins/providers/openai/index.d.ts.map +0 -1
- package/dist/plugins/providers/openai/index.js +0 -39
- package/dist/plugins/providers/openai/index.js.map +0 -1
- package/dist/plugins/providers/xai/index.d.ts +0 -11
- package/dist/plugins/providers/xai/index.d.ts.map +0 -1
- package/dist/plugins/providers/xai/index.js +0 -39
- package/dist/plugins/providers/xai/index.js.map +0 -1
- package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.d.ts +0 -3
- package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.js +0 -9
- package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.js.map +0 -1
- package/dist/plugins/tools/bash/localBashPlugin.d.ts +0 -3
- package/dist/plugins/tools/bash/localBashPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/bash/localBashPlugin.js +0 -14
- package/dist/plugins/tools/bash/localBashPlugin.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/edit/editPlugin.d.ts +0 -9
- package/dist/plugins/tools/edit/editPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/edit/editPlugin.js +0 -15
- package/dist/plugins/tools/edit/editPlugin.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/enhancedGit/enhancedGitPlugin.d.ts +0 -3
- package/dist/plugins/tools/enhancedGit/enhancedGitPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/enhancedGit/enhancedGitPlugin.js +0 -9
- package/dist/plugins/tools/enhancedGit/enhancedGitPlugin.js.map +0 -1
- package/dist/plugins/tools/filesystem/localFilesystemPlugin.d.ts +0 -3
- package/dist/plugins/tools/filesystem/localFilesystemPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/filesystem/localFilesystemPlugin.js +0 -14
- package/dist/plugins/tools/filesystem/localFilesystemPlugin.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/glob/globPlugin.d.ts +0 -9
- package/dist/plugins/tools/glob/globPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/glob/globPlugin.js +0 -15
- package/dist/plugins/tools/glob/globPlugin.js.map +0 -1
- package/dist/plugins/tools/index.d.ts +0 -3
- package/dist/plugins/tools/index.d.ts.map +0 -1
- package/dist/plugins/tools/index.js +0 -3
- package/dist/plugins/tools/index.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/mcp/mcpPlugin.d.ts +0 -3
- package/dist/plugins/tools/mcp/mcpPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/mcp/mcpPlugin.js +0 -9
- package/dist/plugins/tools/mcp/mcpPlugin.js.map +0 -1
- package/dist/plugins/tools/nodeDefaults.d.ts +0 -2
- package/dist/plugins/tools/nodeDefaults.d.ts.map +0 -1
- package/dist/plugins/tools/nodeDefaults.js +0 -65
- package/dist/plugins/tools/nodeDefaults.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/registry.d.ts +0 -22
- package/dist/plugins/tools/registry.d.ts.map +0 -1
- package/dist/plugins/tools/registry.js +0 -58
- package/dist/plugins/tools/registry.js.map +0 -1
- package/dist/plugins/tools/search/localSearchPlugin.d.ts +0 -3
- package/dist/plugins/tools/search/localSearchPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/search/localSearchPlugin.js +0 -14
- package/dist/plugins/tools/search/localSearchPlugin.js.map +0 -1
- package/dist/plugins/tools/skills/skillPlugin.d.ts +0 -3
- package/dist/plugins/tools/skills/skillPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/skills/skillPlugin.js +0 -9
- package/dist/plugins/tools/skills/skillPlugin.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/providers/anthropicProvider.d.ts +0 -41
- package/dist/providers/anthropicProvider.d.ts.map +0 -1
- package/dist/providers/anthropicProvider.js +0 -446
- package/dist/providers/anthropicProvider.js.map +0 -1
- package/dist/providers/googleProvider.d.ts +0 -36
- package/dist/providers/googleProvider.d.ts.map +0 -1
- package/dist/providers/googleProvider.js +0 -312
- package/dist/providers/googleProvider.js.map +0 -1
- package/dist/providers/openaiChatCompletionsProvider.d.ts +0 -43
- package/dist/providers/openaiChatCompletionsProvider.d.ts.map +0 -1
- package/dist/providers/openaiChatCompletionsProvider.js +0 -516
- package/dist/providers/openaiChatCompletionsProvider.js.map +0 -1
- package/dist/providers/openaiResponsesProvider.d.ts +0 -38
- package/dist/providers/openaiResponsesProvider.d.ts.map +0 -1
- package/dist/providers/openaiResponsesProvider.js +0 -364
- package/dist/providers/openaiResponsesProvider.js.map +0 -1
- package/dist/providers/providerFactory.d.ts +0 -18
- package/dist/providers/providerFactory.d.ts.map +0 -1
- package/dist/providers/providerFactory.js +0 -25
- package/dist/providers/providerFactory.js.map +0 -1
- package/dist/providers/resilientProvider.d.ts +0 -94
- package/dist/providers/resilientProvider.d.ts.map +0 -1
- package/dist/providers/resilientProvider.js +0 -370
- package/dist/providers/resilientProvider.js.map +0 -1
- package/dist/runtime/agentController.d.ts +0 -65
- package/dist/runtime/agentController.d.ts.map +0 -1
- package/dist/runtime/agentController.js +0 -353
- package/dist/runtime/agentController.js.map +0 -1
- package/dist/runtime/agentHost.d.ts +0 -61
- package/dist/runtime/agentHost.d.ts.map +0 -1
- package/dist/runtime/agentHost.js +0 -156
- package/dist/runtime/agentHost.js.map +0 -1
- package/dist/runtime/agentSession.d.ts +0 -40
- package/dist/runtime/agentSession.d.ts.map +0 -1
- package/dist/runtime/agentSession.js +0 -205
- package/dist/runtime/agentSession.js.map +0 -1
- package/dist/runtime/browser.d.ts +0 -7
- package/dist/runtime/browser.d.ts.map +0 -1
- package/dist/runtime/browser.js +0 -10
- package/dist/runtime/browser.js.map +0 -1
- package/dist/runtime/cloud.d.ts +0 -7
- package/dist/runtime/cloud.d.ts.map +0 -1
- package/dist/runtime/cloud.js +0 -10
- package/dist/runtime/cloud.js.map +0 -1
- package/dist/runtime/node.d.ts +0 -8
- package/dist/runtime/node.d.ts.map +0 -1
- package/dist/runtime/node.js +0 -11
- package/dist/runtime/node.js.map +0 -1
- package/dist/runtime/universal.d.ts +0 -21
- package/dist/runtime/universal.d.ts.map +0 -1
- package/dist/runtime/universal.js +0 -29
- package/dist/runtime/universal.js.map +0 -1
- package/dist/shell/autoExecutor.d.ts +0 -70
- package/dist/shell/autoExecutor.d.ts.map +0 -1
- package/dist/shell/autoExecutor.js +0 -288
- package/dist/shell/autoExecutor.js.map +0 -1
- package/dist/shell/composableMessage.d.ts +0 -183
- package/dist/shell/composableMessage.d.ts.map +0 -1
- package/dist/shell/composableMessage.js +0 -420
- package/dist/shell/composableMessage.js.map +0 -1
- package/dist/shell/fileChangeTracker.d.ts +0 -39
- package/dist/shell/fileChangeTracker.d.ts.map +0 -1
- package/dist/shell/fileChangeTracker.js +0 -64
- package/dist/shell/fileChangeTracker.js.map +0 -1
- package/dist/shell/interactiveShell.d.ts +0 -517
- package/dist/shell/interactiveShell.d.ts.map +0 -1
- package/dist/shell/interactiveShell.js +0 -6646
- package/dist/shell/interactiveShell.js.map +0 -1
- package/dist/shell/liveStatus.d.ts +0 -30
- package/dist/shell/liveStatus.d.ts.map +0 -1
- package/dist/shell/liveStatus.js +0 -102
- package/dist/shell/liveStatus.js.map +0 -1
- package/dist/shell/shellApp.d.ts +0 -19
- package/dist/shell/shellApp.d.ts.map +0 -1
- package/dist/shell/shellApp.js +0 -411
- package/dist/shell/shellApp.js.map +0 -1
- package/dist/shell/systemPrompt.d.ts +0 -3
- package/dist/shell/systemPrompt.d.ts.map +0 -1
- package/dist/shell/systemPrompt.js +0 -64
- package/dist/shell/systemPrompt.js.map +0 -1
- package/dist/shell/taskCompletionDetector.d.ts +0 -106
- package/dist/shell/taskCompletionDetector.d.ts.map +0 -1
- package/dist/shell/taskCompletionDetector.js +0 -402
- package/dist/shell/taskCompletionDetector.js.map +0 -1
- package/dist/shell/terminalInputAdapter.d.ts +0 -262
- package/dist/shell/terminalInputAdapter.d.ts.map +0 -1
- package/dist/shell/terminalInputAdapter.js +0 -346
- package/dist/shell/terminalInputAdapter.js.map +0 -1
- package/dist/shell/vimMode.d.ts +0 -66
- package/dist/shell/vimMode.d.ts.map +0 -1
- package/dist/shell/vimMode.js +0 -434
- package/dist/shell/vimMode.js.map +0 -1
- package/dist/skills/skillRepository.d.ts +0 -103
- package/dist/skills/skillRepository.d.ts.map +0 -1
- package/dist/skills/skillRepository.js +0 -237
- package/dist/skills/skillRepository.js.map +0 -1
- package/dist/skills/types.d.ts +0 -37
- package/dist/skills/types.d.ts.map +0 -1
- package/dist/skills/types.js +0 -2
- package/dist/skills/types.js.map +0 -1
- package/dist/subagents/agentConfig.d.ts +0 -27
- package/dist/subagents/agentConfig.d.ts.map +0 -1
- package/dist/subagents/agentConfig.js +0 -89
- package/dist/subagents/agentConfig.js.map +0 -1
- package/dist/subagents/agentRegistry.d.ts +0 -33
- package/dist/subagents/agentRegistry.d.ts.map +0 -1
- package/dist/subagents/agentRegistry.js +0 -162
- package/dist/subagents/agentRegistry.js.map +0 -1
- package/dist/subagents/parallelAgentManager.d.ts +0 -99
- package/dist/subagents/parallelAgentManager.d.ts.map +0 -1
- package/dist/subagents/parallelAgentManager.js +0 -248
- package/dist/subagents/parallelAgentManager.js.map +0 -1
- package/dist/subagents/taskRunner.d.ts +0 -34
- package/dist/subagents/taskRunner.d.ts.map +0 -1
- package/dist/subagents/taskRunner.js +0 -459
- package/dist/subagents/taskRunner.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 -301
- package/dist/tools/advancedTestGenerationTools.js.map +0 -1
- package/dist/tools/backgroundBashTools.d.ts +0 -21
- package/dist/tools/backgroundBashTools.d.ts.map +0 -1
- package/dist/tools/backgroundBashTools.js +0 -215
- package/dist/tools/backgroundBashTools.js.map +0 -1
- package/dist/tools/bashTools.d.ts +0 -8
- package/dist/tools/bashTools.d.ts.map +0 -1
- package/dist/tools/bashTools.js +0 -240
- package/dist/tools/bashTools.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 -344
- 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/code-quality-dashboard.d.ts +0 -57
- package/dist/tools/code-quality-dashboard.d.ts.map +0 -1
- package/dist/tools/code-quality-dashboard.js +0 -218
- package/dist/tools/code-quality-dashboard.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 -296
- 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 -283
- 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 -2125
- package/dist/tools/devTools.js.map +0 -1
- package/dist/tools/diffUtils.d.ts +0 -36
- package/dist/tools/diffUtils.d.ts.map +0 -1
- package/dist/tools/diffUtils.js +0 -528
- package/dist/tools/diffUtils.js.map +0 -1
- package/dist/tools/editTools.d.ts +0 -29
- package/dist/tools/editTools.d.ts.map +0 -1
- package/dist/tools/editTools.js +0 -419
- package/dist/tools/editTools.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/enhancedCodeIntelligenceTools.d.ts +0 -27
- package/dist/tools/enhancedCodeIntelligenceTools.d.ts.map +0 -1
- package/dist/tools/enhancedCodeIntelligenceTools.js +0 -418
- package/dist/tools/enhancedCodeIntelligenceTools.js.map +0 -1
- package/dist/tools/enhancedDevWorkflowTools.d.ts +0 -15
- package/dist/tools/enhancedDevWorkflowTools.d.ts.map +0 -1
- package/dist/tools/enhancedDevWorkflowTools.js +0 -303
- package/dist/tools/enhancedDevWorkflowTools.js.map +0 -1
- package/dist/tools/fileTools.d.ts +0 -3
- package/dist/tools/fileTools.d.ts.map +0 -1
- package/dist/tools/fileTools.js +0 -334
- package/dist/tools/fileTools.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 -1254
- 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 -358
- package/dist/tools/grepTools.js.map +0 -1
- package/dist/tools/interactionTools.d.ts +0 -13
- package/dist/tools/interactionTools.d.ts.map +0 -1
- package/dist/tools/interactionTools.js +0 -171
- 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 -2104
- package/dist/tools/learnTools.js.map +0 -1
- package/dist/tools/localExplore.d.ts +0 -225
- package/dist/tools/localExplore.d.ts.map +0 -1
- package/dist/tools/localExplore.js +0 -1365
- package/dist/tools/localExplore.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/planningTools.d.ts +0 -21
- package/dist/tools/planningTools.d.ts.map +0 -1
- package/dist/tools/planningTools.js +0 -185
- package/dist/tools/planningTools.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 -161
- package/dist/tools/repoChecksTools.js.map +0 -1
- package/dist/tools/searchTools.d.ts +0 -3
- package/dist/tools/searchTools.d.ts.map +0 -1
- package/dist/tools/searchTools.js +0 -241
- package/dist/tools/searchTools.js.map +0 -1
- package/dist/tools/skillTools.d.ts +0 -8
- package/dist/tools/skillTools.d.ts.map +0 -1
- package/dist/tools/skillTools.js +0 -178
- package/dist/tools/skillTools.js.map +0 -1
- package/dist/tools/softwareEngineeringTools.d.ts +0 -7
- package/dist/tools/softwareEngineeringTools.d.ts.map +0 -1
- package/dist/tools/softwareEngineeringTools.js +0 -338
- package/dist/tools/softwareEngineeringTools.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 -157
- 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 -233
- 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
- package/dist/ui/DisplayEventQueue.d.ts +0 -99
- package/dist/ui/DisplayEventQueue.d.ts.map +0 -1
- package/dist/ui/DisplayEventQueue.js +0 -167
- package/dist/ui/DisplayEventQueue.js.map +0 -1
- package/dist/ui/PromptController.d.ts +0 -103
- package/dist/ui/PromptController.d.ts.map +0 -1
- package/dist/ui/PromptController.js +0 -171
- package/dist/ui/PromptController.js.map +0 -1
- package/dist/ui/SequentialRenderer.d.ts +0 -69
- package/dist/ui/SequentialRenderer.d.ts.map +0 -1
- package/dist/ui/SequentialRenderer.js +0 -137
- package/dist/ui/SequentialRenderer.js.map +0 -1
- package/dist/ui/ShellUIAdapter.d.ts +0 -207
- package/dist/ui/ShellUIAdapter.d.ts.map +0 -1
- package/dist/ui/ShellUIAdapter.js +0 -1163
- package/dist/ui/ShellUIAdapter.js.map +0 -1
- package/dist/ui/UnifiedUIController.d.ts +0 -82
- package/dist/ui/UnifiedUIController.d.ts.map +0 -1
- package/dist/ui/UnifiedUIController.js +0 -207
- package/dist/ui/UnifiedUIController.js.map +0 -1
- package/dist/ui/UnifiedUIRenderer.d.ts +0 -188
- package/dist/ui/UnifiedUIRenderer.d.ts.map +0 -1
- package/dist/ui/UnifiedUIRenderer.js +0 -579
- package/dist/ui/UnifiedUIRenderer.js.map +0 -1
- package/dist/ui/animation/AnimationScheduler.d.ts +0 -192
- package/dist/ui/animation/AnimationScheduler.d.ts.map +0 -1
- package/dist/ui/animation/AnimationScheduler.js +0 -432
- package/dist/ui/animation/AnimationScheduler.js.map +0 -1
- package/dist/ui/codeHighlighter.d.ts +0 -6
- package/dist/ui/codeHighlighter.d.ts.map +0 -1
- package/dist/ui/codeHighlighter.js +0 -855
- package/dist/ui/codeHighlighter.js.map +0 -1
- package/dist/ui/compactRenderer.d.ts +0 -139
- package/dist/ui/compactRenderer.d.ts.map +0 -1
- package/dist/ui/compactRenderer.js +0 -398
- package/dist/ui/compactRenderer.js.map +0 -1
- package/dist/ui/designSystem.d.ts +0 -26
- package/dist/ui/designSystem.d.ts.map +0 -1
- package/dist/ui/designSystem.js +0 -122
- package/dist/ui/designSystem.js.map +0 -1
- package/dist/ui/display.d.ts +0 -229
- package/dist/ui/display.d.ts.map +0 -1
- package/dist/ui/display.js +0 -756
- package/dist/ui/display.js.map +0 -1
- package/dist/ui/errorFormatter.d.ts +0 -54
- package/dist/ui/errorFormatter.d.ts.map +0 -1
- package/dist/ui/errorFormatter.js +0 -251
- package/dist/ui/errorFormatter.js.map +0 -1
- package/dist/ui/globalWriteLock.d.ts +0 -38
- package/dist/ui/globalWriteLock.d.ts.map +0 -1
- package/dist/ui/globalWriteLock.js +0 -54
- package/dist/ui/globalWriteLock.js.map +0 -1
- package/dist/ui/inPlaceUpdater.d.ts +0 -181
- package/dist/ui/inPlaceUpdater.d.ts.map +0 -1
- package/dist/ui/inPlaceUpdater.js +0 -515
- package/dist/ui/inPlaceUpdater.js.map +0 -1
- package/dist/ui/interrupts/InterruptManager.d.ts +0 -142
- package/dist/ui/interrupts/InterruptManager.d.ts.map +0 -1
- package/dist/ui/interrupts/InterruptManager.js +0 -439
- package/dist/ui/interrupts/InterruptManager.js.map +0 -1
- package/dist/ui/layout.d.ts +0 -17
- package/dist/ui/layout.d.ts.map +0 -1
- package/dist/ui/layout.js +0 -140
- package/dist/ui/layout.js.map +0 -1
- package/dist/ui/orchestration/StatusOrchestrator.d.ts +0 -156
- package/dist/ui/orchestration/StatusOrchestrator.d.ts.map +0 -1
- package/dist/ui/orchestration/StatusOrchestrator.js +0 -406
- package/dist/ui/orchestration/StatusOrchestrator.js.map +0 -1
- package/dist/ui/orchestration/UIUpdateCoordinator.d.ts +0 -77
- package/dist/ui/orchestration/UIUpdateCoordinator.d.ts.map +0 -1
- package/dist/ui/orchestration/UIUpdateCoordinator.js +0 -265
- package/dist/ui/orchestration/UIUpdateCoordinator.js.map +0 -1
- package/dist/ui/outputMode.d.ts +0 -22
- package/dist/ui/outputMode.d.ts.map +0 -1
- package/dist/ui/outputMode.js +0 -40
- package/dist/ui/outputMode.js.map +0 -1
- package/dist/ui/richText.d.ts +0 -6
- package/dist/ui/richText.d.ts.map +0 -1
- package/dist/ui/richText.js +0 -391
- package/dist/ui/richText.js.map +0 -1
- package/dist/ui/shortcutsHelp.d.ts +0 -39
- package/dist/ui/shortcutsHelp.d.ts.map +0 -1
- package/dist/ui/shortcutsHelp.js +0 -152
- package/dist/ui/shortcutsHelp.js.map +0 -1
- package/dist/ui/streamingFormatter.d.ts +0 -19
- package/dist/ui/streamingFormatter.d.ts.map +0 -1
- package/dist/ui/streamingFormatter.js +0 -65
- package/dist/ui/streamingFormatter.js.map +0 -1
- package/dist/ui/telemetry/ResponseTracker.d.ts +0 -22
- package/dist/ui/telemetry/ResponseTracker.d.ts.map +0 -1
- package/dist/ui/telemetry/ResponseTracker.js +0 -60
- package/dist/ui/telemetry/ResponseTracker.js.map +0 -1
- package/dist/ui/telemetry/UITelemetry.d.ts +0 -181
- package/dist/ui/telemetry/UITelemetry.d.ts.map +0 -1
- package/dist/ui/telemetry/UITelemetry.js +0 -446
- package/dist/ui/telemetry/UITelemetry.js.map +0 -1
- package/dist/ui/textHighlighter.d.ts +0 -83
- package/dist/ui/textHighlighter.d.ts.map +0 -1
- package/dist/ui/textHighlighter.js +0 -267
- package/dist/ui/textHighlighter.js.map +0 -1
- package/dist/ui/theme.d.ts +0 -208
- package/dist/ui/theme.d.ts.map +0 -1
- package/dist/ui/theme.js +0 -249
- package/dist/ui/theme.js.map +0 -1
- package/dist/ui/toolDisplay.d.ts +0 -195
- package/dist/ui/toolDisplay.d.ts.map +0 -1
- package/dist/ui/toolDisplay.js +0 -1526
- package/dist/ui/toolDisplay.js.map +0 -1
- package/dist/ui/unified/index.d.ts +0 -50
- package/dist/ui/unified/index.d.ts.map +0 -1
- package/dist/ui/unified/index.js +0 -77
- package/dist/ui/unified/index.js.map +0 -1
- package/dist/ui/unified/layout.d.ts +0 -12
- package/dist/ui/unified/layout.d.ts.map +0 -1
- package/dist/ui/unified/layout.js +0 -96
- package/dist/ui/unified/layout.js.map +0 -1
- package/dist/ui/writeLock.d.ts +0 -65
- package/dist/ui/writeLock.d.ts.map +0 -1
- package/dist/ui/writeLock.js +0 -114
- package/dist/ui/writeLock.js.map +0 -1
- package/dist/utils/asyncUtils.d.ts +0 -95
- package/dist/utils/asyncUtils.d.ts.map +0 -1
- package/dist/utils/asyncUtils.js +0 -286
- package/dist/utils/asyncUtils.js.map +0 -1
- package/dist/utils/errorUtils.d.ts +0 -16
- package/dist/utils/errorUtils.d.ts.map +0 -1
- package/dist/utils/errorUtils.js +0 -66
- package/dist/utils/errorUtils.js.map +0 -1
- package/dist/utils/frontmatter.d.ts +0 -10
- package/dist/utils/frontmatter.d.ts.map +0 -1
- package/dist/utils/frontmatter.js +0 -78
- package/dist/utils/frontmatter.js.map +0 -1
- package/dist/utils/planFormatter.d.ts +0 -34
- package/dist/utils/planFormatter.d.ts.map +0 -1
- package/dist/utils/planFormatter.js +0 -140
- package/dist/utils/planFormatter.js.map +0 -1
- package/dist/workspace.d.ts +0 -8
- package/dist/workspace.d.ts.map +0 -1
- package/dist/workspace.js +0 -107
- package/dist/workspace.js.map +0 -1
- package/dist/workspace.validator.d.ts +0 -49
- package/dist/workspace.validator.d.ts.map +0 -1
- package/dist/workspace.validator.js +0 -214
- package/dist/workspace.validator.js.map +0 -1
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Authorized Security Assessment Framework
|
|
3
|
-
*
|
|
4
|
-
* Ethical security testing that requires explicit authorization.
|
|
5
|
-
* Focuses on defensive assessment and remediation guidance.
|
|
6
|
-
*
|
|
7
|
-
* Use cases:
|
|
8
|
-
* - Scanning YOUR OWN code for vulnerabilities
|
|
9
|
-
* - OWASP-style security checklists
|
|
10
|
-
* - Dependency vulnerability analysis
|
|
11
|
-
* - Secret detection in codebases you own
|
|
12
|
-
* - CTF challenge assistance
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* Authorization context for security testing
|
|
16
|
-
*/
|
|
17
|
-
export interface SecurityAuthorizationContext {
|
|
18
|
-
/** User explicitly confirms they own/have permission to test this target */
|
|
19
|
-
ownershipConfirmed: boolean;
|
|
20
|
-
/** Target scope (paths, URLs) they're authorized to test */
|
|
21
|
-
authorizedScope: string[];
|
|
22
|
-
/** Authorization timestamp */
|
|
23
|
-
authorizedAt: Date;
|
|
24
|
-
/** Type of testing authorized */
|
|
25
|
-
testingType: 'code-review' | 'dependency-scan' | 'secret-detection' | 'ctf' | 'full-assessment';
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Vulnerability finding
|
|
29
|
-
*/
|
|
30
|
-
export interface VulnerabilityFinding {
|
|
31
|
-
id: string;
|
|
32
|
-
severity: 'critical' | 'high' | 'medium' | 'low' | 'info';
|
|
33
|
-
category: string;
|
|
34
|
-
title: string;
|
|
35
|
-
description: string;
|
|
36
|
-
location: {
|
|
37
|
-
file?: string;
|
|
38
|
-
line?: number;
|
|
39
|
-
snippet?: string;
|
|
40
|
-
};
|
|
41
|
-
remediation: string;
|
|
42
|
-
references: string[];
|
|
43
|
-
cwe?: string;
|
|
44
|
-
owasp?: string;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Security assessment result
|
|
48
|
-
*/
|
|
49
|
-
export interface SecurityAssessmentResult {
|
|
50
|
-
success: boolean;
|
|
51
|
-
scanType: string;
|
|
52
|
-
scope: string[];
|
|
53
|
-
timestamp: Date;
|
|
54
|
-
findings: VulnerabilityFinding[];
|
|
55
|
-
summary: {
|
|
56
|
-
critical: number;
|
|
57
|
-
high: number;
|
|
58
|
-
medium: number;
|
|
59
|
-
low: number;
|
|
60
|
-
info: number;
|
|
61
|
-
};
|
|
62
|
-
recommendations: string[];
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Verify authorization before any security testing
|
|
66
|
-
*/
|
|
67
|
-
export declare function verifyAuthorization(context: SecurityAuthorizationContext, targetPath: string): {
|
|
68
|
-
authorized: boolean;
|
|
69
|
-
reason?: string;
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* Scan source code for vulnerabilities
|
|
73
|
-
*/
|
|
74
|
-
export declare function scanSourceCode(directory: string, context: SecurityAuthorizationContext): SecurityAssessmentResult;
|
|
75
|
-
/**
|
|
76
|
-
* Scan for hardcoded secrets
|
|
77
|
-
*/
|
|
78
|
-
export declare function scanSecrets(directory: string, context: SecurityAuthorizationContext): SecurityAssessmentResult;
|
|
79
|
-
/**
|
|
80
|
-
* Scan npm dependencies for vulnerabilities
|
|
81
|
-
*/
|
|
82
|
-
export declare function scanDependencies(directory: string, context: SecurityAuthorizationContext): SecurityAssessmentResult;
|
|
83
|
-
/**
|
|
84
|
-
* Format assessment results for display
|
|
85
|
-
*/
|
|
86
|
-
export declare function formatAssessmentReport(result: SecurityAssessmentResult): string;
|
|
87
|
-
/**
|
|
88
|
-
* Create authorization context (requires user confirmation)
|
|
89
|
-
*/
|
|
90
|
-
export declare function createAuthorizationContext(scope: string[], testingType: SecurityAuthorizationContext['testingType']): SecurityAuthorizationContext;
|
|
91
|
-
//# sourceMappingURL=securityAssessment.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"securityAssessment.d.ts","sourceRoot":"","sources":["../../src/core/securityAssessment.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAMH;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,4EAA4E;IAC5E,kBAAkB,EAAE,OAAO,CAAC;IAC5B,4DAA4D;IAC5D,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,8BAA8B;IAC9B,YAAY,EAAE,IAAI,CAAC;IACnB,iCAAiC;IACjC,WAAW,EAAE,aAAa,GAAG,iBAAiB,GAAG,kBAAkB,GAAG,KAAK,GAAG,iBAAiB,CAAC;CACjG;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,CAAC;IAC1D,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE;QACR,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,QAAQ,EAAE,oBAAoB,EAAE,CAAC;IACjC,OAAO,EAAE;QACP,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,GAAG,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,eAAe,EAAE,MAAM,EAAE,CAAC;CAC3B;AA+JD;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,4BAA4B,EACrC,UAAU,EAAE,MAAM,GACjB;IAAE,UAAU,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAiC1C;AAED;;GAEG;AACH,wBAAgB,cAAc,CAC5B,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,4BAA4B,GACpC,wBAAwB,CA6F1B;AAED;;GAEG;AACH,wBAAgB,WAAW,CACzB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,4BAA4B,GACpC,wBAAwB,CAoG1B;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,4BAA4B,GACpC,wBAAwB,CAqG1B;AAuCD;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,wBAAwB,GAAG,MAAM,CAuD/E;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,MAAM,EAAE,EACf,WAAW,EAAE,4BAA4B,CAAC,aAAa,CAAC,GACvD,4BAA4B,CAO9B"}
|
|
@@ -1,580 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Authorized Security Assessment Framework
|
|
3
|
-
*
|
|
4
|
-
* Ethical security testing that requires explicit authorization.
|
|
5
|
-
* Focuses on defensive assessment and remediation guidance.
|
|
6
|
-
*
|
|
7
|
-
* Use cases:
|
|
8
|
-
* - Scanning YOUR OWN code for vulnerabilities
|
|
9
|
-
* - OWASP-style security checklists
|
|
10
|
-
* - Dependency vulnerability analysis
|
|
11
|
-
* - Secret detection in codebases you own
|
|
12
|
-
* - CTF challenge assistance
|
|
13
|
-
*/
|
|
14
|
-
import { readFileSync, readdirSync, statSync } from 'node:fs';
|
|
15
|
-
import { join, extname, relative } from 'node:path';
|
|
16
|
-
import { execSync } from 'node:child_process';
|
|
17
|
-
// Common vulnerability patterns for static analysis
|
|
18
|
-
const VULNERABILITY_PATTERNS = {
|
|
19
|
-
// Injection vulnerabilities
|
|
20
|
-
sqlInjection: {
|
|
21
|
-
patterns: [
|
|
22
|
-
/`.*\$\{.*\}.*`.*(?:SELECT|INSERT|UPDATE|DELETE|FROM|WHERE)/gi,
|
|
23
|
-
/(?:execute|query|prepare)\s*\(\s*[`'"].*\+/gi,
|
|
24
|
-
/\.(?:raw|unsafeRaw)\s*\(/gi,
|
|
25
|
-
],
|
|
26
|
-
severity: 'critical',
|
|
27
|
-
category: 'Injection',
|
|
28
|
-
title: 'Potential SQL Injection',
|
|
29
|
-
cwe: 'CWE-89',
|
|
30
|
-
owasp: 'A03:2021 Injection',
|
|
31
|
-
remediation: 'Use parameterized queries or prepared statements. Never concatenate user input into SQL strings.',
|
|
32
|
-
},
|
|
33
|
-
commandInjection: {
|
|
34
|
-
patterns: [
|
|
35
|
-
/exec(?:Sync)?\s*\(\s*[`'"].*\$\{/gi,
|
|
36
|
-
/spawn(?:Sync)?\s*\(\s*[`'"].*\$\{/gi,
|
|
37
|
-
/child_process.*exec.*\+/gi,
|
|
38
|
-
],
|
|
39
|
-
severity: 'critical',
|
|
40
|
-
category: 'Injection',
|
|
41
|
-
title: 'Potential Command Injection',
|
|
42
|
-
cwe: 'CWE-78',
|
|
43
|
-
owasp: 'A03:2021 Injection',
|
|
44
|
-
remediation: 'Avoid shell commands with user input. Use parameterized APIs or strict input validation.',
|
|
45
|
-
},
|
|
46
|
-
xss: {
|
|
47
|
-
patterns: [
|
|
48
|
-
/innerHTML\s*=\s*[^;]*\$/gi,
|
|
49
|
-
/dangerouslySetInnerHTML/gi,
|
|
50
|
-
/document\.write\s*\(/gi,
|
|
51
|
-
/\.html\s*\(\s*[^)]*\$/gi,
|
|
52
|
-
],
|
|
53
|
-
severity: 'high',
|
|
54
|
-
category: 'XSS',
|
|
55
|
-
title: 'Potential Cross-Site Scripting',
|
|
56
|
-
cwe: 'CWE-79',
|
|
57
|
-
owasp: 'A03:2021 Injection',
|
|
58
|
-
remediation: 'Use safe DOM manipulation methods. Sanitize all user input before rendering.',
|
|
59
|
-
},
|
|
60
|
-
pathTraversal: {
|
|
61
|
-
patterns: [
|
|
62
|
-
/(?:readFile|writeFile|unlink|rmdir).*\+.*(?:req\.|params\.|query\.)/gi,
|
|
63
|
-
/\.\.\/.*\$\{/gi,
|
|
64
|
-
/path\.join\s*\([^)]*(?:req\.|params\.|query\.)/gi,
|
|
65
|
-
],
|
|
66
|
-
severity: 'high',
|
|
67
|
-
category: 'Path Traversal',
|
|
68
|
-
title: 'Potential Path Traversal',
|
|
69
|
-
cwe: 'CWE-22',
|
|
70
|
-
owasp: 'A01:2021 Broken Access Control',
|
|
71
|
-
remediation: 'Validate and sanitize file paths. Use path.resolve() and verify paths stay within expected directories.',
|
|
72
|
-
},
|
|
73
|
-
// Authentication/Authorization
|
|
74
|
-
hardcodedCredentials: {
|
|
75
|
-
patterns: [
|
|
76
|
-
/(?:password|passwd|pwd|secret|api_key|apikey|token)\s*[:=]\s*['"]\w{8,}['"]/gi,
|
|
77
|
-
/(?:BEGIN\s+(?:RSA\s+)?PRIVATE\s+KEY)/gi,
|
|
78
|
-
/(?:aws_access_key_id|aws_secret_access_key)\s*[:=]/gi,
|
|
79
|
-
],
|
|
80
|
-
severity: 'critical',
|
|
81
|
-
category: 'Secrets',
|
|
82
|
-
title: 'Hardcoded Credentials',
|
|
83
|
-
cwe: 'CWE-798',
|
|
84
|
-
owasp: 'A07:2021 Identification and Authentication Failures',
|
|
85
|
-
remediation: 'Use environment variables or secure secret management. Never commit secrets to version control.',
|
|
86
|
-
},
|
|
87
|
-
weakCrypto: {
|
|
88
|
-
patterns: [
|
|
89
|
-
/createHash\s*\(\s*['"](?:md5|sha1)['"]\s*\)/gi,
|
|
90
|
-
/crypto\.(?:createCipher|createDecipher)\s*\(/gi,
|
|
91
|
-
/DES|RC4|Blowfish/gi,
|
|
92
|
-
],
|
|
93
|
-
severity: 'medium',
|
|
94
|
-
category: 'Cryptography',
|
|
95
|
-
title: 'Weak Cryptographic Algorithm',
|
|
96
|
-
cwe: 'CWE-327',
|
|
97
|
-
owasp: 'A02:2021 Cryptographic Failures',
|
|
98
|
-
remediation: 'Use strong algorithms: SHA-256+, AES-256-GCM, bcrypt/argon2 for passwords.',
|
|
99
|
-
},
|
|
100
|
-
// Insecure configuration
|
|
101
|
-
debugEnabled: {
|
|
102
|
-
patterns: [
|
|
103
|
-
/DEBUG\s*[:=]\s*['"]?true['"]?/gi,
|
|
104
|
-
/NODE_ENV\s*[:=]\s*['"]development['"]/gi,
|
|
105
|
-
/console\.(?:log|debug|trace)\s*\([^)]*(?:password|token|secret|key)/gi,
|
|
106
|
-
],
|
|
107
|
-
severity: 'medium',
|
|
108
|
-
category: 'Configuration',
|
|
109
|
-
title: 'Debug Mode / Sensitive Logging',
|
|
110
|
-
cwe: 'CWE-489',
|
|
111
|
-
owasp: 'A05:2021 Security Misconfiguration',
|
|
112
|
-
remediation: 'Disable debug mode in production. Never log sensitive data.',
|
|
113
|
-
},
|
|
114
|
-
corsWildcard: {
|
|
115
|
-
patterns: [
|
|
116
|
-
/Access-Control-Allow-Origin.*\*/gi,
|
|
117
|
-
/cors\s*\(\s*\{[^}]*origin\s*:\s*['"]\*['"]/gi,
|
|
118
|
-
/cors\s*\(\s*\)/gi,
|
|
119
|
-
],
|
|
120
|
-
severity: 'medium',
|
|
121
|
-
category: 'Configuration',
|
|
122
|
-
title: 'Overly Permissive CORS',
|
|
123
|
-
cwe: 'CWE-942',
|
|
124
|
-
owasp: 'A05:2021 Security Misconfiguration',
|
|
125
|
-
remediation: 'Restrict CORS to specific trusted origins. Avoid wildcard (*) in production.',
|
|
126
|
-
},
|
|
127
|
-
// Unsafe patterns
|
|
128
|
-
evalUsage: {
|
|
129
|
-
patterns: [
|
|
130
|
-
/\beval\s*\(/gi,
|
|
131
|
-
/new\s+Function\s*\(/gi,
|
|
132
|
-
/setTimeout\s*\(\s*['"]/gi,
|
|
133
|
-
/setInterval\s*\(\s*['"]/gi,
|
|
134
|
-
],
|
|
135
|
-
severity: 'high',
|
|
136
|
-
category: 'Code Execution',
|
|
137
|
-
title: 'Dynamic Code Execution',
|
|
138
|
-
cwe: 'CWE-95',
|
|
139
|
-
owasp: 'A03:2021 Injection',
|
|
140
|
-
remediation: 'Avoid eval() and new Function(). Use safe alternatives like JSON.parse() for data.',
|
|
141
|
-
},
|
|
142
|
-
prototypePollutiion: {
|
|
143
|
-
patterns: [
|
|
144
|
-
/Object\.assign\s*\([^,]+,\s*(?:req\.|params\.|query\.|body\.)/gi,
|
|
145
|
-
/\[.*\]\s*=.*(?:req\.|params\.|query\.|body\.)/gi,
|
|
146
|
-
/__proto__|constructor\.prototype/gi,
|
|
147
|
-
],
|
|
148
|
-
severity: 'high',
|
|
149
|
-
category: 'Object Manipulation',
|
|
150
|
-
title: 'Potential Prototype Pollution',
|
|
151
|
-
cwe: 'CWE-1321',
|
|
152
|
-
owasp: 'A03:2021 Injection',
|
|
153
|
-
remediation: 'Use Object.create(null) for dictionaries. Validate object keys before assignment.',
|
|
154
|
-
},
|
|
155
|
-
};
|
|
156
|
-
// Secret patterns for detection
|
|
157
|
-
const SECRET_PATTERNS = [
|
|
158
|
-
{ name: 'AWS Access Key', pattern: /AKIA[0-9A-Z]{16}/g },
|
|
159
|
-
{ name: 'AWS Secret Key', pattern: /[A-Za-z0-9/+=]{40}/g },
|
|
160
|
-
{ name: 'GitHub Token', pattern: /gh[pousr]_[A-Za-z0-9_]{36,}/g },
|
|
161
|
-
{ name: 'Slack Token', pattern: /xox[baprs]-[0-9]{10,13}-[0-9]{10,13}-[a-zA-Z0-9]{24}/g },
|
|
162
|
-
{ name: 'Stripe Key', pattern: /sk_live_[0-9a-zA-Z]{24}/g },
|
|
163
|
-
{ name: 'RSA Private Key', pattern: /-----BEGIN RSA PRIVATE KEY-----/g },
|
|
164
|
-
{ name: 'Generic API Key', pattern: /(?:api[_-]?key|apikey)\s*[:=]\s*['"][A-Za-z0-9_\-]{20,}['"]/gi },
|
|
165
|
-
{ name: 'Generic Secret', pattern: /(?:secret|password|passwd)\s*[:=]\s*['"][^'"]{8,}['"]/gi },
|
|
166
|
-
{ name: 'JWT Token', pattern: /eyJ[A-Za-z0-9_-]*\.eyJ[A-Za-z0-9_-]*\.[A-Za-z0-9_-]*/g },
|
|
167
|
-
{ name: 'NPM Token', pattern: /npm_[A-Za-z0-9]{36}/g },
|
|
168
|
-
];
|
|
169
|
-
/**
|
|
170
|
-
* Verify authorization before any security testing
|
|
171
|
-
*/
|
|
172
|
-
export function verifyAuthorization(context, targetPath) {
|
|
173
|
-
if (!context.ownershipConfirmed) {
|
|
174
|
-
return {
|
|
175
|
-
authorized: false,
|
|
176
|
-
reason: 'You must confirm ownership/permission before security testing.',
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
// Check if target is within authorized scope
|
|
180
|
-
const isInScope = context.authorizedScope.some((scope) => {
|
|
181
|
-
if (scope.startsWith('/')) {
|
|
182
|
-
return targetPath.startsWith(scope);
|
|
183
|
-
}
|
|
184
|
-
return targetPath.includes(scope);
|
|
185
|
-
});
|
|
186
|
-
if (!isInScope) {
|
|
187
|
-
return {
|
|
188
|
-
authorized: false,
|
|
189
|
-
reason: `Target "${targetPath}" is not within authorized scope: ${context.authorizedScope.join(', ')}`,
|
|
190
|
-
};
|
|
191
|
-
}
|
|
192
|
-
// Check authorization is recent (within 24 hours)
|
|
193
|
-
const hoursSinceAuth = (Date.now() - context.authorizedAt.getTime()) / (1000 * 60 * 60);
|
|
194
|
-
if (hoursSinceAuth > 24) {
|
|
195
|
-
return {
|
|
196
|
-
authorized: false,
|
|
197
|
-
reason: 'Authorization expired. Please re-authorize (valid for 24 hours).',
|
|
198
|
-
};
|
|
199
|
-
}
|
|
200
|
-
return { authorized: true };
|
|
201
|
-
}
|
|
202
|
-
/**
|
|
203
|
-
* Scan source code for vulnerabilities
|
|
204
|
-
*/
|
|
205
|
-
export function scanSourceCode(directory, context) {
|
|
206
|
-
const authCheck = verifyAuthorization(context, directory);
|
|
207
|
-
if (!authCheck.authorized) {
|
|
208
|
-
return {
|
|
209
|
-
success: false,
|
|
210
|
-
scanType: 'source-code',
|
|
211
|
-
scope: [directory],
|
|
212
|
-
timestamp: new Date(),
|
|
213
|
-
findings: [],
|
|
214
|
-
summary: { critical: 0, high: 0, medium: 0, low: 0, info: 0 },
|
|
215
|
-
recommendations: [authCheck.reason ?? 'Authorization failed'],
|
|
216
|
-
};
|
|
217
|
-
}
|
|
218
|
-
const findings = [];
|
|
219
|
-
const extensions = ['.js', '.ts', '.jsx', '.tsx', '.mjs', '.cjs'];
|
|
220
|
-
function scanFile(filePath) {
|
|
221
|
-
const ext = extname(filePath);
|
|
222
|
-
if (!extensions.includes(ext))
|
|
223
|
-
return;
|
|
224
|
-
let content;
|
|
225
|
-
try {
|
|
226
|
-
content = readFileSync(filePath, 'utf-8');
|
|
227
|
-
}
|
|
228
|
-
catch {
|
|
229
|
-
return;
|
|
230
|
-
}
|
|
231
|
-
const lines = content.split('\n');
|
|
232
|
-
for (const [vulnName, vulnConfig] of Object.entries(VULNERABILITY_PATTERNS)) {
|
|
233
|
-
for (const pattern of vulnConfig.patterns) {
|
|
234
|
-
const matches = content.matchAll(new RegExp(pattern.source, pattern.flags));
|
|
235
|
-
for (const match of matches) {
|
|
236
|
-
const lineNumber = content.substring(0, match.index ?? 0).split('\n').length;
|
|
237
|
-
const snippetLine = lines[lineNumber - 1] ?? '';
|
|
238
|
-
findings.push({
|
|
239
|
-
id: `${vulnName}-${filePath}-${lineNumber}`,
|
|
240
|
-
severity: vulnConfig.severity,
|
|
241
|
-
category: vulnConfig.category,
|
|
242
|
-
title: vulnConfig.title,
|
|
243
|
-
description: `Found pattern matching potential ${vulnConfig.title.toLowerCase()}.`,
|
|
244
|
-
location: {
|
|
245
|
-
file: relative(directory, filePath),
|
|
246
|
-
line: lineNumber,
|
|
247
|
-
snippet: snippetLine.trim().substring(0, 100),
|
|
248
|
-
},
|
|
249
|
-
remediation: vulnConfig.remediation,
|
|
250
|
-
references: [
|
|
251
|
-
`https://cwe.mitre.org/data/definitions/${vulnConfig.cwe?.replace('CWE-', '')}.html`,
|
|
252
|
-
],
|
|
253
|
-
cwe: vulnConfig.cwe,
|
|
254
|
-
owasp: vulnConfig.owasp,
|
|
255
|
-
});
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
function scanDirectory(dir) {
|
|
261
|
-
const entries = readdirSync(dir);
|
|
262
|
-
for (const entry of entries) {
|
|
263
|
-
if (entry === 'node_modules' || entry === '.git' || entry === 'dist')
|
|
264
|
-
continue;
|
|
265
|
-
const fullPath = join(dir, entry);
|
|
266
|
-
const stat = statSync(fullPath);
|
|
267
|
-
if (stat.isDirectory()) {
|
|
268
|
-
scanDirectory(fullPath);
|
|
269
|
-
}
|
|
270
|
-
else {
|
|
271
|
-
scanFile(fullPath);
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
scanDirectory(directory);
|
|
276
|
-
const summary = {
|
|
277
|
-
critical: findings.filter((f) => f.severity === 'critical').length,
|
|
278
|
-
high: findings.filter((f) => f.severity === 'high').length,
|
|
279
|
-
medium: findings.filter((f) => f.severity === 'medium').length,
|
|
280
|
-
low: findings.filter((f) => f.severity === 'low').length,
|
|
281
|
-
info: findings.filter((f) => f.severity === 'info').length,
|
|
282
|
-
};
|
|
283
|
-
return {
|
|
284
|
-
success: true,
|
|
285
|
-
scanType: 'source-code',
|
|
286
|
-
scope: [directory],
|
|
287
|
-
timestamp: new Date(),
|
|
288
|
-
findings,
|
|
289
|
-
summary,
|
|
290
|
-
recommendations: generateRecommendations(findings),
|
|
291
|
-
};
|
|
292
|
-
}
|
|
293
|
-
/**
|
|
294
|
-
* Scan for hardcoded secrets
|
|
295
|
-
*/
|
|
296
|
-
export function scanSecrets(directory, context) {
|
|
297
|
-
const authCheck = verifyAuthorization(context, directory);
|
|
298
|
-
if (!authCheck.authorized) {
|
|
299
|
-
return {
|
|
300
|
-
success: false,
|
|
301
|
-
scanType: 'secret-detection',
|
|
302
|
-
scope: [directory],
|
|
303
|
-
timestamp: new Date(),
|
|
304
|
-
findings: [],
|
|
305
|
-
summary: { critical: 0, high: 0, medium: 0, low: 0, info: 0 },
|
|
306
|
-
recommendations: [authCheck.reason ?? 'Authorization failed'],
|
|
307
|
-
};
|
|
308
|
-
}
|
|
309
|
-
const findings = [];
|
|
310
|
-
const extensions = ['.js', '.ts', '.jsx', '.tsx', '.json', '.env', '.yml', '.yaml', '.conf', '.config'];
|
|
311
|
-
function scanFile(filePath) {
|
|
312
|
-
const ext = extname(filePath);
|
|
313
|
-
const basename = filePath.split('/').pop() ?? '';
|
|
314
|
-
// Include .env files and config files
|
|
315
|
-
if (!extensions.includes(ext) && !basename.startsWith('.env') && !basename.includes('config')) {
|
|
316
|
-
return;
|
|
317
|
-
}
|
|
318
|
-
let content;
|
|
319
|
-
try {
|
|
320
|
-
content = readFileSync(filePath, 'utf-8');
|
|
321
|
-
}
|
|
322
|
-
catch {
|
|
323
|
-
return;
|
|
324
|
-
}
|
|
325
|
-
const lines = content.split('\n');
|
|
326
|
-
for (const secretPattern of SECRET_PATTERNS) {
|
|
327
|
-
const matches = content.matchAll(new RegExp(secretPattern.pattern.source, secretPattern.pattern.flags));
|
|
328
|
-
for (const match of matches) {
|
|
329
|
-
const lineNumber = content.substring(0, match.index ?? 0).split('\n').length;
|
|
330
|
-
const snippetLine = lines[lineNumber - 1] ?? '';
|
|
331
|
-
// Mask the secret in the output
|
|
332
|
-
const masked = match[0].substring(0, 8) + '...[REDACTED]';
|
|
333
|
-
findings.push({
|
|
334
|
-
id: `secret-${filePath}-${lineNumber}`,
|
|
335
|
-
severity: 'critical',
|
|
336
|
-
category: 'Secrets',
|
|
337
|
-
title: `Potential ${secretPattern.name}`,
|
|
338
|
-
description: `Found what appears to be a ${secretPattern.name} in source code.`,
|
|
339
|
-
location: {
|
|
340
|
-
file: relative(directory, filePath),
|
|
341
|
-
line: lineNumber,
|
|
342
|
-
snippet: snippetLine.replace(match[0], masked).trim().substring(0, 100),
|
|
343
|
-
},
|
|
344
|
-
remediation: 'Remove secret from source code. Use environment variables or a secret management service.',
|
|
345
|
-
references: [
|
|
346
|
-
'https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures/',
|
|
347
|
-
],
|
|
348
|
-
cwe: 'CWE-798',
|
|
349
|
-
owasp: 'A07:2021',
|
|
350
|
-
});
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
function scanDirectory(dir) {
|
|
355
|
-
const entries = readdirSync(dir);
|
|
356
|
-
for (const entry of entries) {
|
|
357
|
-
if (entry === 'node_modules' || entry === '.git')
|
|
358
|
-
continue;
|
|
359
|
-
const fullPath = join(dir, entry);
|
|
360
|
-
const stat = statSync(fullPath);
|
|
361
|
-
if (stat.isDirectory()) {
|
|
362
|
-
scanDirectory(fullPath);
|
|
363
|
-
}
|
|
364
|
-
else {
|
|
365
|
-
scanFile(fullPath);
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
scanDirectory(directory);
|
|
370
|
-
const summary = {
|
|
371
|
-
critical: findings.filter((f) => f.severity === 'critical').length,
|
|
372
|
-
high: findings.filter((f) => f.severity === 'high').length,
|
|
373
|
-
medium: findings.filter((f) => f.severity === 'medium').length,
|
|
374
|
-
low: findings.filter((f) => f.severity === 'low').length,
|
|
375
|
-
info: findings.filter((f) => f.severity === 'info').length,
|
|
376
|
-
};
|
|
377
|
-
return {
|
|
378
|
-
success: true,
|
|
379
|
-
scanType: 'secret-detection',
|
|
380
|
-
scope: [directory],
|
|
381
|
-
timestamp: new Date(),
|
|
382
|
-
findings,
|
|
383
|
-
summary,
|
|
384
|
-
recommendations: generateRecommendations(findings),
|
|
385
|
-
};
|
|
386
|
-
}
|
|
387
|
-
/**
|
|
388
|
-
* Scan npm dependencies for vulnerabilities
|
|
389
|
-
*/
|
|
390
|
-
export function scanDependencies(directory, context) {
|
|
391
|
-
const authCheck = verifyAuthorization(context, directory);
|
|
392
|
-
if (!authCheck.authorized) {
|
|
393
|
-
return {
|
|
394
|
-
success: false,
|
|
395
|
-
scanType: 'dependency-scan',
|
|
396
|
-
scope: [directory],
|
|
397
|
-
timestamp: new Date(),
|
|
398
|
-
findings: [],
|
|
399
|
-
summary: { critical: 0, high: 0, medium: 0, low: 0, info: 0 },
|
|
400
|
-
recommendations: [authCheck.reason ?? 'Authorization failed'],
|
|
401
|
-
};
|
|
402
|
-
}
|
|
403
|
-
const findings = [];
|
|
404
|
-
try {
|
|
405
|
-
const auditOutput = execSync('npm audit --json', {
|
|
406
|
-
cwd: directory,
|
|
407
|
-
encoding: 'utf-8',
|
|
408
|
-
stdio: ['pipe', 'pipe', 'pipe'],
|
|
409
|
-
});
|
|
410
|
-
const audit = JSON.parse(auditOutput);
|
|
411
|
-
if (audit.vulnerabilities) {
|
|
412
|
-
for (const [pkgName, vuln] of Object.entries(audit.vulnerabilities)) {
|
|
413
|
-
const v = vuln;
|
|
414
|
-
findings.push({
|
|
415
|
-
id: `dep-${pkgName}`,
|
|
416
|
-
severity: v.severity,
|
|
417
|
-
category: 'Dependencies',
|
|
418
|
-
title: `Vulnerable Dependency: ${pkgName}`,
|
|
419
|
-
description: v.via
|
|
420
|
-
.filter((x) => typeof x === 'object' && 'title' in x)
|
|
421
|
-
.map((x) => x.title)
|
|
422
|
-
.join(', '),
|
|
423
|
-
location: { file: 'package.json' },
|
|
424
|
-
remediation: v.fixAvailable
|
|
425
|
-
? typeof v.fixAvailable === 'object'
|
|
426
|
-
? `Update to ${v.fixAvailable.name}@${v.fixAvailable.version}`
|
|
427
|
-
: 'Run npm audit fix'
|
|
428
|
-
: 'No fix available - consider finding alternative package',
|
|
429
|
-
references: v.via
|
|
430
|
-
.filter((x) => typeof x === 'object' && 'url' in x)
|
|
431
|
-
.map((x) => x.url),
|
|
432
|
-
cwe: v.via
|
|
433
|
-
.filter((x) => typeof x === 'object' && 'cwe' in x)
|
|
434
|
-
.flatMap((x) => x.cwe)
|
|
435
|
-
.join(', '),
|
|
436
|
-
});
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
catch (error) {
|
|
441
|
-
// npm audit returns non-zero if vulnerabilities found
|
|
442
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
443
|
-
if (message.includes('ENOENT') || message.includes('package.json')) {
|
|
444
|
-
return {
|
|
445
|
-
success: false,
|
|
446
|
-
scanType: 'dependency-scan',
|
|
447
|
-
scope: [directory],
|
|
448
|
-
timestamp: new Date(),
|
|
449
|
-
findings: [],
|
|
450
|
-
summary: { critical: 0, high: 0, medium: 0, low: 0, info: 0 },
|
|
451
|
-
recommendations: ['No package.json found in directory'],
|
|
452
|
-
};
|
|
453
|
-
}
|
|
454
|
-
// Try to parse the output anyway
|
|
455
|
-
try {
|
|
456
|
-
const stdout = error.stdout;
|
|
457
|
-
if (stdout) {
|
|
458
|
-
const audit = JSON.parse(stdout);
|
|
459
|
-
// Process audit output...
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
catch {
|
|
463
|
-
// Ignore parse errors
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
const summary = {
|
|
467
|
-
critical: findings.filter((f) => f.severity === 'critical').length,
|
|
468
|
-
high: findings.filter((f) => f.severity === 'high').length,
|
|
469
|
-
medium: findings.filter((f) => f.severity === 'medium').length,
|
|
470
|
-
low: findings.filter((f) => f.severity === 'low').length,
|
|
471
|
-
info: findings.filter((f) => f.severity === 'info').length,
|
|
472
|
-
};
|
|
473
|
-
return {
|
|
474
|
-
success: true,
|
|
475
|
-
scanType: 'dependency-scan',
|
|
476
|
-
scope: [directory],
|
|
477
|
-
timestamp: new Date(),
|
|
478
|
-
findings,
|
|
479
|
-
summary,
|
|
480
|
-
recommendations: generateRecommendations(findings),
|
|
481
|
-
};
|
|
482
|
-
}
|
|
483
|
-
/**
|
|
484
|
-
* Generate remediation recommendations
|
|
485
|
-
*/
|
|
486
|
-
function generateRecommendations(findings) {
|
|
487
|
-
const recommendations = [];
|
|
488
|
-
if (findings.some((f) => f.category === 'Secrets')) {
|
|
489
|
-
recommendations.push('Immediately rotate all exposed secrets and remove from source code.');
|
|
490
|
-
recommendations.push('Use environment variables or a secret management service (e.g., AWS Secrets Manager, HashiCorp Vault).');
|
|
491
|
-
recommendations.push('Add .env files to .gitignore to prevent future commits.');
|
|
492
|
-
}
|
|
493
|
-
if (findings.some((f) => f.category === 'Injection')) {
|
|
494
|
-
recommendations.push('Review all database queries and use parameterized queries exclusively.');
|
|
495
|
-
recommendations.push('Implement input validation on all user-controlled data.');
|
|
496
|
-
recommendations.push('Use ORMs with built-in SQL injection protection.');
|
|
497
|
-
}
|
|
498
|
-
if (findings.some((f) => f.category === 'XSS')) {
|
|
499
|
-
recommendations.push('Implement Content Security Policy (CSP) headers.');
|
|
500
|
-
recommendations.push('Use templating engines with automatic escaping.');
|
|
501
|
-
recommendations.push('Sanitize all user input before rendering in the DOM.');
|
|
502
|
-
}
|
|
503
|
-
if (findings.some((f) => f.category === 'Dependencies')) {
|
|
504
|
-
recommendations.push('Run npm audit fix to automatically fix vulnerabilities.');
|
|
505
|
-
recommendations.push('Update outdated dependencies regularly.');
|
|
506
|
-
recommendations.push('Consider using npm ci in CI/CD pipelines for reproducible builds.');
|
|
507
|
-
}
|
|
508
|
-
if (recommendations.length === 0) {
|
|
509
|
-
recommendations.push('No immediate actions required. Continue regular security reviews.');
|
|
510
|
-
}
|
|
511
|
-
return recommendations;
|
|
512
|
-
}
|
|
513
|
-
/**
|
|
514
|
-
* Format assessment results for display
|
|
515
|
-
*/
|
|
516
|
-
export function formatAssessmentReport(result) {
|
|
517
|
-
const lines = [];
|
|
518
|
-
lines.push('');
|
|
519
|
-
lines.push('='.repeat(60));
|
|
520
|
-
lines.push(' SECURITY ASSESSMENT REPORT');
|
|
521
|
-
lines.push('='.repeat(60));
|
|
522
|
-
lines.push('');
|
|
523
|
-
lines.push(`Scan Type: ${result.scanType}`);
|
|
524
|
-
lines.push(`Scope: ${result.scope.join(', ')}`);
|
|
525
|
-
lines.push(`Timestamp: ${result.timestamp.toISOString()}`);
|
|
526
|
-
lines.push('');
|
|
527
|
-
lines.push('-'.repeat(60));
|
|
528
|
-
lines.push(' SUMMARY');
|
|
529
|
-
lines.push('-'.repeat(60));
|
|
530
|
-
lines.push(` Critical: ${result.summary.critical}`);
|
|
531
|
-
lines.push(` High: ${result.summary.high}`);
|
|
532
|
-
lines.push(` Medium: ${result.summary.medium}`);
|
|
533
|
-
lines.push(` Low: ${result.summary.low}`);
|
|
534
|
-
lines.push(` Info: ${result.summary.info}`);
|
|
535
|
-
lines.push('');
|
|
536
|
-
if (result.findings.length > 0) {
|
|
537
|
-
lines.push('-'.repeat(60));
|
|
538
|
-
lines.push(' FINDINGS');
|
|
539
|
-
lines.push('-'.repeat(60));
|
|
540
|
-
for (const finding of result.findings) {
|
|
541
|
-
lines.push('');
|
|
542
|
-
lines.push(` [${finding.severity.toUpperCase()}] ${finding.title}`);
|
|
543
|
-
lines.push(` Category: ${finding.category}`);
|
|
544
|
-
if (finding.location.file) {
|
|
545
|
-
lines.push(` Location: ${finding.location.file}:${finding.location.line}`);
|
|
546
|
-
}
|
|
547
|
-
if (finding.location.snippet) {
|
|
548
|
-
lines.push(` Snippet: ${finding.location.snippet}`);
|
|
549
|
-
}
|
|
550
|
-
lines.push(` ${finding.description}`);
|
|
551
|
-
lines.push(` Remediation: ${finding.remediation}`);
|
|
552
|
-
if (finding.cwe)
|
|
553
|
-
lines.push(` CWE: ${finding.cwe}`);
|
|
554
|
-
if (finding.owasp)
|
|
555
|
-
lines.push(` OWASP: ${finding.owasp}`);
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
lines.push('');
|
|
559
|
-
lines.push('-'.repeat(60));
|
|
560
|
-
lines.push(' RECOMMENDATIONS');
|
|
561
|
-
lines.push('-'.repeat(60));
|
|
562
|
-
for (const rec of result.recommendations) {
|
|
563
|
-
lines.push(` * ${rec}`);
|
|
564
|
-
}
|
|
565
|
-
lines.push('');
|
|
566
|
-
lines.push('='.repeat(60));
|
|
567
|
-
return lines.join('\n');
|
|
568
|
-
}
|
|
569
|
-
/**
|
|
570
|
-
* Create authorization context (requires user confirmation)
|
|
571
|
-
*/
|
|
572
|
-
export function createAuthorizationContext(scope, testingType) {
|
|
573
|
-
return {
|
|
574
|
-
ownershipConfirmed: true, // User must explicitly call this
|
|
575
|
-
authorizedScope: scope,
|
|
576
|
-
authorizedAt: new Date(),
|
|
577
|
-
testingType,
|
|
578
|
-
};
|
|
579
|
-
}
|
|
580
|
-
//# sourceMappingURL=securityAssessment.js.map
|