erosolar-cli 1.5.2 → 1.5.4
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/config/security-deployment.json +54 -0
- package/dist/bin/adapters/node/index.js +33 -0
- package/dist/bin/adapters/types.js +1 -0
- package/dist/bin/alpha-zero/agentWrapper.js +165 -0
- package/dist/bin/alpha-zero/codeEvaluator.js +272 -0
- package/dist/bin/alpha-zero/competitiveRunner.js +219 -0
- package/dist/bin/alpha-zero/index.js +98 -0
- package/dist/bin/alpha-zero/introspection.js +298 -0
- package/dist/bin/alpha-zero/metricsTracker.js +207 -0
- package/dist/bin/alpha-zero/security/core.js +269 -0
- package/dist/bin/alpha-zero/security/google.js +308 -0
- package/dist/bin/alpha-zero/security/googleLoader.js +40 -0
- package/dist/bin/alpha-zero/security/index.js +31 -0
- package/dist/bin/alpha-zero/security/simulation.js +274 -0
- package/dist/bin/alpha-zero/selfModification.js +231 -0
- package/dist/bin/alpha-zero/types.js +30 -0
- package/dist/bin/bin/erosolar-optimized.js +205 -0
- package/dist/bin/capabilities/agentSpawningCapability.js +116 -0
- package/dist/bin/capabilities/bashCapability.js +22 -0
- package/dist/bin/capabilities/cloudCapability.js +36 -0
- package/dist/bin/capabilities/codeAnalysisCapability.js +22 -0
- package/dist/bin/capabilities/codeQualityCapability.js +23 -0
- package/dist/bin/capabilities/dependencySecurityCapability.js +22 -0
- package/dist/bin/capabilities/devCapability.js +22 -0
- package/dist/bin/capabilities/editCapability.js +28 -0
- package/dist/bin/capabilities/emailCapability.js +20 -0
- package/dist/bin/capabilities/enhancedGitCapability.js +221 -0
- package/dist/bin/capabilities/filesystemCapability.js +22 -0
- package/dist/bin/capabilities/globCapability.js +28 -0
- package/dist/bin/capabilities/interactionCapability.js +20 -0
- package/dist/bin/capabilities/learnCapability.js +22 -0
- package/dist/bin/capabilities/mcpCapability.js +20 -0
- package/dist/bin/capabilities/notebookCapability.js +28 -0
- package/dist/bin/capabilities/planningCapability.js +27 -0
- package/dist/bin/capabilities/refactoringCapability.js +23 -0
- package/dist/bin/capabilities/repoChecksCapability.js +22 -0
- package/dist/bin/capabilities/searchCapability.js +22 -0
- package/dist/bin/capabilities/skillCapability.js +76 -0
- package/dist/bin/capabilities/taskManagementCapability.js +20 -0
- package/dist/bin/capabilities/testingCapability.js +23 -0
- package/dist/bin/capabilities/toolManifest.js +159 -0
- package/dist/bin/capabilities/toolRegistry.js +114 -0
- package/dist/bin/capabilities/webCapability.js +20 -0
- package/dist/bin/config.js +139 -0
- package/dist/bin/contracts/v1/agent.js +7 -0
- package/dist/bin/contracts/v1/agentProfileManifest.js +8 -0
- package/dist/bin/contracts/v1/agentRules.js +9 -0
- package/dist/bin/contracts/v1/toolAccess.js +8 -0
- package/dist/bin/core/agent.js +362 -0
- package/dist/bin/core/agentProfileManifest.js +187 -0
- package/dist/bin/core/agentProfiles.js +34 -0
- package/dist/bin/core/agentRulebook.js +135 -0
- package/dist/bin/core/agentSchemaLoader.js +233 -0
- package/dist/bin/core/contextManager.js +412 -0
- package/dist/bin/core/contextWindow.js +122 -0
- package/dist/bin/core/customCommands.js +80 -0
- package/dist/bin/core/errors/apiKeyErrors.js +114 -0
- package/dist/bin/core/errors/errorTypes.js +340 -0
- package/dist/bin/core/errors/safetyValidator.js +304 -0
- package/dist/bin/core/errors.js +32 -0
- package/dist/bin/core/modelDiscovery.js +755 -0
- package/dist/bin/core/preferences.js +224 -0
- package/dist/bin/core/schemaValidator.js +92 -0
- package/dist/bin/core/secretStore.js +199 -0
- package/dist/bin/core/sessionStore.js +187 -0
- package/dist/bin/core/toolRuntime.js +290 -0
- package/dist/bin/core/types.js +1 -0
- package/dist/bin/erosolar-optimized.d.ts +12 -0
- package/dist/bin/erosolar-optimized.d.ts.map +1 -0
- package/dist/bin/erosolar-optimized.js +239 -0
- package/dist/bin/erosolar-optimized.js.map +1 -0
- package/dist/bin/erosolar.js +14 -0
- package/dist/bin/erosolar.js.map +1 -1
- package/dist/bin/headless/headlessApp.js +172 -0
- package/dist/bin/mcp/config.js +202 -0
- package/dist/bin/mcp/stdioClient.js +172 -0
- package/dist/bin/mcp/toolBridge.js +104 -0
- package/dist/bin/mcp/types.js +1 -0
- package/dist/bin/plugins/index.js +113 -0
- package/dist/bin/plugins/providers/anthropic/index.js +25 -0
- package/dist/bin/plugins/providers/deepseek/index.js +24 -0
- package/dist/bin/plugins/providers/google/index.js +26 -0
- package/dist/bin/plugins/providers/index.js +19 -0
- package/dist/bin/plugins/providers/ollama/index.js +59 -0
- package/dist/bin/plugins/providers/openai/index.js +26 -0
- package/dist/bin/plugins/providers/xai/index.js +24 -0
- package/dist/bin/plugins/tools/agentSpawning/agentSpawningPlugin.js +8 -0
- package/dist/bin/plugins/tools/bash/localBashPlugin.js +13 -0
- package/dist/bin/plugins/tools/checks/localRepoChecksPlugin.js +13 -0
- package/dist/bin/plugins/tools/cloud/cloudPlugin.js +13 -0
- package/dist/bin/plugins/tools/codeAnalysis/codeAnalysisPlugin.js +13 -0
- package/dist/bin/plugins/tools/codeQuality/codeQualityPlugin.js +13 -0
- package/dist/bin/plugins/tools/dependency/dependencyPlugin.js +11 -0
- package/dist/bin/plugins/tools/development/devPlugin.js +13 -0
- package/dist/bin/plugins/tools/edit/editPlugin.js +14 -0
- package/dist/bin/plugins/tools/email/emailPlugin.js +11 -0
- package/dist/bin/plugins/tools/enhancedGit/enhancedGitPlugin.js +8 -0
- package/dist/bin/plugins/tools/filesystem/localFilesystemPlugin.js +13 -0
- package/dist/bin/plugins/tools/glob/globPlugin.js +14 -0
- package/dist/bin/plugins/tools/index.js +2 -0
- package/dist/bin/plugins/tools/interaction/interactionPlugin.js +11 -0
- package/dist/bin/plugins/tools/learn/learnPlugin.js +13 -0
- package/dist/bin/plugins/tools/mcp/mcpPlugin.js +8 -0
- package/dist/bin/plugins/tools/nodeDefaults.js +56 -0
- package/dist/bin/plugins/tools/notebook/notebookPlugin.js +14 -0
- package/dist/bin/plugins/tools/planning/planningPlugin.js +14 -0
- package/dist/bin/plugins/tools/refactoring/refactoringPlugin.js +11 -0
- package/dist/bin/plugins/tools/registry.js +57 -0
- package/dist/bin/plugins/tools/search/localSearchPlugin.js +13 -0
- package/dist/bin/plugins/tools/skills/skillPlugin.js +8 -0
- package/dist/bin/plugins/tools/taskManagement/taskManagementPlugin.js +11 -0
- package/dist/bin/plugins/tools/testing/testingPlugin.js +11 -0
- package/dist/bin/plugins/tools/web/webPlugin.js +11 -0
- package/dist/bin/providers/anthropicProvider.js +329 -0
- package/dist/bin/providers/googleProvider.js +203 -0
- package/dist/bin/providers/openaiChatCompletionsProvider.js +208 -0
- package/dist/bin/providers/openaiResponsesProvider.js +249 -0
- package/dist/bin/providers/providerFactory.js +24 -0
- package/dist/bin/runtime/agentController.js +321 -0
- package/dist/bin/runtime/agentHost.js +153 -0
- package/dist/bin/runtime/agentSession.js +195 -0
- package/dist/bin/runtime/node.js +10 -0
- package/dist/bin/runtime/universal.js +28 -0
- package/dist/bin/shell/bracketedPasteManager.js +350 -0
- package/dist/bin/shell/fileChangeTracker.js +65 -0
- package/dist/bin/shell/interactiveShell.js +2908 -0
- package/dist/bin/shell/liveStatus.js +78 -0
- package/dist/bin/shell/shellApp.js +290 -0
- package/dist/bin/shell/systemPrompt.js +60 -0
- package/dist/bin/shell/updateManager.js +108 -0
- package/dist/bin/skills/skillRepository.js +236 -0
- package/dist/bin/skills/types.js +1 -0
- package/dist/bin/subagents/taskRunner.js +269 -0
- package/dist/bin/tools/backgroundBashTools.js +211 -0
- package/dist/bin/tools/bashTools.js +159 -0
- package/dist/bin/tools/cloudTools.js +864 -0
- package/dist/bin/tools/codeAnalysisTools.js +641 -0
- package/dist/bin/tools/codeQualityTools.js +294 -0
- package/dist/bin/tools/dependencyTools.js +282 -0
- package/dist/bin/tools/devTools.js +238 -0
- package/dist/bin/tools/diffUtils.js +137 -0
- package/dist/bin/tools/editTools.js +134 -0
- package/dist/bin/tools/emailTools.js +448 -0
- package/dist/bin/tools/fileTools.js +282 -0
- package/dist/bin/tools/globTools.js +173 -0
- package/dist/bin/tools/grepTools.js +332 -0
- package/dist/bin/tools/interactionTools.js +170 -0
- package/dist/bin/tools/learnTools.js +1818 -0
- package/dist/bin/tools/notebookEditTools.js +196 -0
- package/dist/bin/tools/planningTools.js +46 -0
- package/dist/bin/tools/refactoringTools.js +293 -0
- package/dist/bin/tools/repoChecksTools.js +160 -0
- package/dist/bin/tools/searchTools.js +206 -0
- package/dist/bin/tools/skillTools.js +177 -0
- package/dist/bin/tools/taskManagementTools.js +156 -0
- package/dist/bin/tools/testingTools.js +232 -0
- package/dist/bin/tools/webTools.js +480 -0
- package/dist/bin/ui/ShellUIAdapter.js +459 -0
- package/dist/bin/ui/UnifiedUIController.js +183 -0
- package/dist/bin/ui/animation/AnimationScheduler.js +430 -0
- package/dist/bin/ui/codeHighlighter.js +854 -0
- package/dist/bin/ui/designSystem.js +121 -0
- package/dist/bin/ui/display.js +1222 -0
- package/dist/bin/ui/interrupts/InterruptManager.js +437 -0
- package/dist/bin/ui/layout.js +139 -0
- package/dist/bin/ui/orchestration/StatusOrchestrator.js +403 -0
- package/dist/bin/ui/outputMode.js +38 -0
- package/dist/bin/ui/persistentPrompt.js +183 -0
- package/dist/bin/ui/richText.js +338 -0
- package/dist/bin/ui/shortcutsHelp.js +87 -0
- package/dist/bin/ui/telemetry/UITelemetry.js +443 -0
- package/dist/bin/ui/textHighlighter.js +210 -0
- package/dist/bin/ui/theme.js +116 -0
- package/dist/bin/ui/toolDisplay.js +423 -0
- package/dist/bin/ui/toolDisplayAdapter.js +357 -0
- package/dist/bin/workspace.js +106 -0
- package/dist/bin/workspace.validator.js +213 -0
- package/dist/capabilities/cloudCapability.d.ts +13 -0
- package/dist/capabilities/cloudCapability.d.ts.map +1 -0
- package/dist/capabilities/cloudCapability.js +38 -0
- package/dist/capabilities/cloudCapability.js.map +1 -0
- package/dist/capabilities/index.d.ts +1 -0
- package/dist/capabilities/index.d.ts.map +1 -1
- package/dist/capabilities/index.js +1 -0
- package/dist/capabilities/index.js.map +1 -1
- package/dist/capabilities/offensiveSecurityCapability.d.ts +26 -0
- package/dist/capabilities/offensiveSecurityCapability.d.ts.map +1 -0
- package/dist/capabilities/offensiveSecurityCapability.js +58 -0
- package/dist/capabilities/offensiveSecurityCapability.js.map +1 -0
- package/dist/capabilities/realSecurityCapability.d.ts +26 -0
- package/dist/capabilities/realSecurityCapability.d.ts.map +1 -0
- package/dist/capabilities/realSecurityCapability.js +53 -0
- package/dist/capabilities/realSecurityCapability.js.map +1 -0
- package/dist/capabilities/securityCapability.d.ts +32 -0
- package/dist/capabilities/securityCapability.d.ts.map +1 -0
- package/dist/capabilities/securityCapability.js +57 -0
- package/dist/capabilities/securityCapability.js.map +1 -0
- package/dist/capabilities/ultimateSecurityCapability.d.ts +42 -0
- package/dist/capabilities/ultimateSecurityCapability.d.ts.map +1 -0
- package/dist/capabilities/ultimateSecurityCapability.js +96 -0
- package/dist/capabilities/ultimateSecurityCapability.js.map +1 -0
- package/dist/core/LazyLoader.d.ts +129 -0
- package/dist/core/LazyLoader.d.ts.map +1 -0
- package/dist/core/LazyLoader.js +240 -0
- package/dist/core/LazyLoader.js.map +1 -0
- package/dist/core/intelligenceTools.d.ts +19 -0
- package/dist/core/intelligenceTools.d.ts.map +1 -0
- package/dist/core/intelligenceTools.js +453 -0
- package/dist/core/intelligenceTools.js.map +1 -0
- package/dist/core/operationalTools.d.ts +19 -0
- package/dist/core/operationalTools.d.ts.map +1 -0
- package/dist/core/operationalTools.js +467 -0
- package/dist/core/operationalTools.js.map +1 -0
- package/dist/offensive/core/offensive-engine.d.ts +171 -0
- package/dist/offensive/core/offensive-engine.d.ts.map +1 -0
- package/dist/offensive/core/offensive-engine.js +345 -0
- package/dist/offensive/core/offensive-engine.js.map +1 -0
- package/dist/offensive/core/offensive-integration.d.ts +129 -0
- package/dist/offensive/core/offensive-integration.d.ts.map +1 -0
- package/dist/offensive/core/offensive-integration.js +364 -0
- package/dist/offensive/core/offensive-integration.js.map +1 -0
- package/dist/offensive/core/offensive-tools.d.ts +55 -0
- package/dist/offensive/core/offensive-tools.d.ts.map +1 -0
- package/dist/offensive/core/offensive-tools.js +438 -0
- package/dist/offensive/core/offensive-tools.js.map +1 -0
- package/dist/offensive/offensive-cli.d.ts +48 -0
- package/dist/offensive/offensive-cli.d.ts.map +1 -0
- package/dist/offensive/offensive-cli.js +233 -0
- package/dist/offensive/offensive-cli.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 +2 -0
- package/dist/plugins/index.js.map +1 -1
- package/dist/plugins/tools/cloud/cloudPlugin.d.ts +3 -0
- package/dist/plugins/tools/cloud/cloudPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/cloud/cloudPlugin.js +14 -0
- package/dist/plugins/tools/cloud/cloudPlugin.js.map +1 -0
- package/dist/plugins/tools/nodeDefaults.d.ts.map +1 -1
- package/dist/plugins/tools/nodeDefaults.js +2 -0
- package/dist/plugins/tools/nodeDefaults.js.map +1 -1
- package/dist/security/advanced-persistence-research.d.ts +92 -0
- package/dist/security/advanced-persistence-research.d.ts.map +1 -0
- package/dist/security/advanced-persistence-research.js +195 -0
- package/dist/security/advanced-persistence-research.js.map +1 -0
- package/dist/security/apt-simulation-cli.d.ts +57 -0
- package/dist/security/apt-simulation-cli.d.ts.map +1 -0
- package/dist/security/apt-simulation-cli.js +278 -0
- package/dist/security/apt-simulation-cli.js.map +1 -0
- package/dist/security/apt-simulation-engine-complete.d.ts +97 -0
- package/dist/security/apt-simulation-engine-complete.d.ts.map +1 -0
- package/dist/security/apt-simulation-engine-complete.js +441 -0
- package/dist/security/apt-simulation-engine-complete.js.map +1 -0
- package/dist/security/apt-simulation-engine.d.ts +97 -0
- package/dist/security/apt-simulation-engine.d.ts.map +1 -0
- package/dist/security/apt-simulation-engine.js +441 -0
- package/dist/security/apt-simulation-engine.js.map +1 -0
- package/dist/security/assessment/vulnerabilityAssessment.d.ts +104 -0
- package/dist/security/assessment/vulnerabilityAssessment.d.ts.map +1 -0
- package/dist/security/assessment/vulnerabilityAssessment.js +315 -0
- package/dist/security/assessment/vulnerabilityAssessment.js.map +1 -0
- package/dist/security/authorization/securityAuthorization.d.ts +88 -0
- package/dist/security/authorization/securityAuthorization.d.ts.map +1 -0
- package/dist/security/authorization/securityAuthorization.js +172 -0
- package/dist/security/authorization/securityAuthorization.js.map +1 -0
- package/dist/security/authorization.d.ts +45 -0
- package/dist/security/authorization.d.ts.map +1 -0
- package/dist/security/authorization.js +128 -0
- package/dist/security/authorization.js.map +1 -0
- package/dist/security/comprehensive-security-research.d.ts +84 -0
- package/dist/security/comprehensive-security-research.d.ts.map +1 -0
- package/dist/security/comprehensive-security-research.js +211 -0
- package/dist/security/comprehensive-security-research.js.map +1 -0
- package/dist/security/offensive/exploitationEngine.d.ts +54 -0
- package/dist/security/offensive/exploitationEngine.d.ts.map +1 -0
- package/dist/security/offensive/exploitationEngine.js +263 -0
- package/dist/security/offensive/exploitationEngine.js.map +1 -0
- package/dist/security/persistence-analyzer.d.ts +56 -0
- package/dist/security/persistence-analyzer.d.ts.map +1 -0
- package/dist/security/persistence-analyzer.js +187 -0
- package/dist/security/persistence-analyzer.js.map +1 -0
- package/dist/security/persistence-cli.d.ts +36 -0
- package/dist/security/persistence-cli.d.ts.map +1 -0
- package/dist/security/persistence-cli.js +160 -0
- package/dist/security/persistence-cli.js.map +1 -0
- package/dist/security/persistence-research.d.ts +100 -0
- package/dist/security/persistence-research.d.ts.map +1 -0
- package/dist/security/persistence-research.js +372 -0
- package/dist/security/persistence-research.js.map +1 -0
- package/dist/security/real/networkExploitation.d.ts +92 -0
- package/dist/security/real/networkExploitation.d.ts.map +1 -0
- package/dist/security/real/networkExploitation.js +316 -0
- package/dist/security/real/networkExploitation.js.map +1 -0
- package/dist/security/real/persistenceImplementation.d.ts +62 -0
- package/dist/security/real/persistenceImplementation.d.ts.map +1 -0
- package/dist/security/real/persistenceImplementation.js +323 -0
- package/dist/security/real/persistenceImplementation.js.map +1 -0
- package/dist/security/real/vulnerabilityScanner.d.ts +73 -0
- package/dist/security/real/vulnerabilityScanner.d.ts.map +1 -0
- package/dist/security/real/vulnerabilityScanner.js +341 -0
- package/dist/security/real/vulnerabilityScanner.js.map +1 -0
- package/dist/security/research/persistenceResearch.d.ts +97 -0
- package/dist/security/research/persistenceResearch.d.ts.map +1 -0
- package/dist/security/research/persistenceResearch.js +282 -0
- package/dist/security/research/persistenceResearch.js.map +1 -0
- package/dist/security/security-testing-framework.d.ts +120 -0
- package/dist/security/security-testing-framework.d.ts.map +1 -0
- package/dist/security/security-testing-framework.js +372 -0
- package/dist/security/security-testing-framework.js.map +1 -0
- package/dist/security/simulation/attackSimulation.d.ts +93 -0
- package/dist/security/simulation/attackSimulation.d.ts.map +1 -0
- package/dist/security/simulation/attackSimulation.js +341 -0
- package/dist/security/simulation/attackSimulation.js.map +1 -0
- package/dist/shell/bracketedPasteManager.d.ts +76 -0
- package/dist/shell/bracketedPasteManager.d.ts.map +1 -1
- package/dist/shell/bracketedPasteManager.js +267 -9
- package/dist/shell/bracketedPasteManager.js.map +1 -1
- package/dist/shell/interactiveShell.d.ts +34 -1
- package/dist/shell/interactiveShell.d.ts.map +1 -1
- package/dist/shell/interactiveShell.js +304 -24
- package/dist/shell/interactiveShell.js.map +1 -1
- package/dist/shell/taskCompletionDetector.d.ts +101 -0
- package/dist/shell/taskCompletionDetector.d.ts.map +1 -0
- package/dist/shell/taskCompletionDetector.js +343 -0
- package/dist/shell/taskCompletionDetector.js.map +1 -0
- package/dist/tools/cloudTools.d.ts +57 -0
- package/dist/tools/cloudTools.d.ts.map +1 -0
- package/dist/tools/cloudTools.js +865 -0
- package/dist/tools/cloudTools.js.map +1 -0
- package/dist/tools/enhancedSecurityTools.d.ts +19 -0
- package/dist/tools/enhancedSecurityTools.d.ts.map +1 -0
- package/dist/tools/enhancedSecurityTools.js +215 -0
- package/dist/tools/enhancedSecurityTools.js.map +1 -0
- package/dist/tools/offensiveSecurityTools.d.ts +16 -0
- package/dist/tools/offensiveSecurityTools.d.ts.map +1 -0
- package/dist/tools/offensiveSecurityTools.js +285 -0
- package/dist/tools/offensiveSecurityTools.js.map +1 -0
- package/dist/tools/realSecurityTools.d.ts +18 -0
- package/dist/tools/realSecurityTools.d.ts.map +1 -0
- package/dist/tools/realSecurityTools.js +468 -0
- package/dist/tools/realSecurityTools.js.map +1 -0
- package/dist/tools/securityTools.d.ts +20 -0
- package/dist/tools/securityTools.d.ts.map +1 -0
- package/dist/tools/securityTools.js +449 -0
- package/dist/tools/securityTools.js.map +1 -0
- package/package.json +27 -12
- package/scripts/deploy-security-capabilities.js +178 -0
|
@@ -0,0 +1,449 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Security Research Tools
|
|
3
|
+
*
|
|
4
|
+
* Comprehensive security research tools for authorized penetration testing,
|
|
5
|
+
* vulnerability assessment, and persistence mechanism analysis.
|
|
6
|
+
*
|
|
7
|
+
* LEGAL NOTICE:
|
|
8
|
+
* All tools require explicit authorization and scope definition.
|
|
9
|
+
* Intended for legitimate security testing, bug bounty programs, and red team exercises only.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Create security research tools
|
|
13
|
+
*/
|
|
14
|
+
export function createSecurityTools(workingDir, options = {}) {
|
|
15
|
+
const tools = [];
|
|
16
|
+
// Authorization tools
|
|
17
|
+
tools.push(createAuthorizationTool(options));
|
|
18
|
+
tools.push(createScopeValidationTool(options));
|
|
19
|
+
// Persistence research tools
|
|
20
|
+
tools.push(createPersistenceAnalysisTool(options));
|
|
21
|
+
tools.push(createPersistenceDetectionTool(options));
|
|
22
|
+
// Vulnerability assessment tools
|
|
23
|
+
tools.push(createVulnerabilityScanTool(options));
|
|
24
|
+
tools.push(createRiskAssessmentTool(options));
|
|
25
|
+
// Attack simulation tools
|
|
26
|
+
if (options.enableAdvancedResearch) {
|
|
27
|
+
tools.push(createAttackSimulationTool(options));
|
|
28
|
+
tools.push(createPayloadGenerationTool(options));
|
|
29
|
+
}
|
|
30
|
+
// Security reporting tools
|
|
31
|
+
tools.push(createSecurityReportTool(options));
|
|
32
|
+
return tools;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Create authorization tool
|
|
36
|
+
*/
|
|
37
|
+
function createAuthorizationTool(options) {
|
|
38
|
+
return {
|
|
39
|
+
name: 'security_authorize_research',
|
|
40
|
+
description: 'Authorize security research activities with proper scope and limitations',
|
|
41
|
+
parameters: {
|
|
42
|
+
type: 'object',
|
|
43
|
+
properties: {
|
|
44
|
+
authorizationType: {
|
|
45
|
+
type: 'string',
|
|
46
|
+
enum: ['bug_bounty', 'pentest', 'red_team', 'ctf', 'educational'],
|
|
47
|
+
description: 'Type of security research authorization'
|
|
48
|
+
},
|
|
49
|
+
targetDomain: {
|
|
50
|
+
type: 'string',
|
|
51
|
+
description: 'Target domain or system for research'
|
|
52
|
+
},
|
|
53
|
+
authorizedBy: {
|
|
54
|
+
type: 'string',
|
|
55
|
+
description: 'Name of person or organization authorizing the research'
|
|
56
|
+
},
|
|
57
|
+
scopeLimitations: {
|
|
58
|
+
type: 'array',
|
|
59
|
+
items: { type: 'string' },
|
|
60
|
+
description: 'Limitations on research scope'
|
|
61
|
+
},
|
|
62
|
+
outOfScope: {
|
|
63
|
+
type: 'array',
|
|
64
|
+
items: { type: 'string' },
|
|
65
|
+
description: 'Systems or activities that are out of scope'
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
required: ['authorizationType', 'targetDomain', 'authorizedBy']
|
|
69
|
+
},
|
|
70
|
+
handler: async (args) => {
|
|
71
|
+
if (options.requireAuthorization) {
|
|
72
|
+
const authorization = {
|
|
73
|
+
authorizationType: args['authorizationType'],
|
|
74
|
+
targetDomain: args['targetDomain'],
|
|
75
|
+
authorizedBy: args['authorizedBy'],
|
|
76
|
+
scopeLimitations: args['scopeLimitations'] || [],
|
|
77
|
+
outOfScope: args['outOfScope'] || [],
|
|
78
|
+
authorizationDate: new Date().toISOString(),
|
|
79
|
+
status: 'authorized'
|
|
80
|
+
};
|
|
81
|
+
return JSON.stringify(authorization, null, 2);
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
return JSON.stringify({
|
|
85
|
+
warning: 'Authorization bypassed - ensure you have proper authorization for security research',
|
|
86
|
+
authorizationType: args['authorizationType'],
|
|
87
|
+
targetDomain: args['targetDomain']
|
|
88
|
+
}, null, 2);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Create scope validation tool
|
|
95
|
+
*/
|
|
96
|
+
function createScopeValidationTool(options) {
|
|
97
|
+
return {
|
|
98
|
+
name: 'security_validate_scope',
|
|
99
|
+
description: 'Validate that security research activities are within authorized scope',
|
|
100
|
+
parameters: {
|
|
101
|
+
type: 'object',
|
|
102
|
+
properties: {
|
|
103
|
+
activity: {
|
|
104
|
+
type: 'string',
|
|
105
|
+
description: 'Security research activity to validate'
|
|
106
|
+
},
|
|
107
|
+
target: {
|
|
108
|
+
type: 'string',
|
|
109
|
+
description: 'Target system or domain'
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
required: ['activity', 'target']
|
|
113
|
+
},
|
|
114
|
+
handler: async (args) => {
|
|
115
|
+
if (options.requireAuthorization) {
|
|
116
|
+
const validation = {
|
|
117
|
+
activity: args['activity'],
|
|
118
|
+
target: args['target'],
|
|
119
|
+
valid: true,
|
|
120
|
+
scopeCheck: 'Manual validation required - ensure activity is within authorized scope'
|
|
121
|
+
};
|
|
122
|
+
return JSON.stringify(validation, null, 2);
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
return JSON.stringify({
|
|
126
|
+
warning: 'Scope validation bypassed',
|
|
127
|
+
activity: args['activity'],
|
|
128
|
+
target: args['target'],
|
|
129
|
+
valid: true
|
|
130
|
+
}, null, 2);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Create persistence analysis tool
|
|
137
|
+
*/
|
|
138
|
+
function createPersistenceAnalysisTool(options) {
|
|
139
|
+
return {
|
|
140
|
+
name: 'security_analyze_persistence',
|
|
141
|
+
description: 'Analyze persistence mechanisms across different platforms and environments',
|
|
142
|
+
parameters: {
|
|
143
|
+
type: 'object',
|
|
144
|
+
properties: {
|
|
145
|
+
platform: {
|
|
146
|
+
type: 'string',
|
|
147
|
+
enum: ['windows', 'linux', 'macos', 'aws', 'azure', 'gcp', 'kubernetes', 'docker'],
|
|
148
|
+
description: 'Platform to analyze for persistence techniques'
|
|
149
|
+
},
|
|
150
|
+
stealthLevel: {
|
|
151
|
+
type: 'number',
|
|
152
|
+
minimum: 1,
|
|
153
|
+
maximum: 5,
|
|
154
|
+
description: 'Minimum stealth level to include (1-5 scale)'
|
|
155
|
+
},
|
|
156
|
+
includeDetection: {
|
|
157
|
+
type: 'boolean',
|
|
158
|
+
description: 'Include detection methods in analysis'
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
required: ['platform']
|
|
162
|
+
},
|
|
163
|
+
handler: async (args) => {
|
|
164
|
+
const analysis = {
|
|
165
|
+
platform: args['platform'],
|
|
166
|
+
stealthLevel: args['stealthLevel'] || 1,
|
|
167
|
+
includeDetection: args['includeDetection'] || false,
|
|
168
|
+
techniques: [
|
|
169
|
+
{
|
|
170
|
+
id: 'registry-run-keys',
|
|
171
|
+
name: 'Registry Run Keys',
|
|
172
|
+
stealth: 3,
|
|
173
|
+
complexity: 'medium',
|
|
174
|
+
detectionMethods: ['Monitor registry changes', 'Check for suspicious executable paths']
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
id: 'scheduled-tasks',
|
|
178
|
+
name: 'Scheduled Tasks',
|
|
179
|
+
stealth: 2,
|
|
180
|
+
complexity: 'low',
|
|
181
|
+
detectionMethods: ['Review scheduled tasks', 'Monitor Task Scheduler events']
|
|
182
|
+
}
|
|
183
|
+
]
|
|
184
|
+
};
|
|
185
|
+
return JSON.stringify(analysis, null, 2);
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Create persistence detection tool
|
|
191
|
+
*/
|
|
192
|
+
function createPersistenceDetectionTool(options) {
|
|
193
|
+
return {
|
|
194
|
+
name: 'security_detect_persistence',
|
|
195
|
+
description: 'Generate detection methods and indicators for persistence techniques',
|
|
196
|
+
parameters: {
|
|
197
|
+
type: 'object',
|
|
198
|
+
properties: {
|
|
199
|
+
techniqueId: {
|
|
200
|
+
type: 'string',
|
|
201
|
+
description: 'Specific persistence technique ID to generate detection for'
|
|
202
|
+
},
|
|
203
|
+
platform: {
|
|
204
|
+
type: 'string',
|
|
205
|
+
description: 'Platform for detection methods'
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
required: ['techniqueId']
|
|
209
|
+
},
|
|
210
|
+
handler: async (args) => {
|
|
211
|
+
const detection = {
|
|
212
|
+
techniqueId: args['techniqueId'],
|
|
213
|
+
platform: args['platform'],
|
|
214
|
+
detectionMethods: [
|
|
215
|
+
'Monitor system changes',
|
|
216
|
+
'Analyze process behavior',
|
|
217
|
+
'Check for unusual file modifications'
|
|
218
|
+
],
|
|
219
|
+
indicators: [
|
|
220
|
+
'Unusual registry modifications',
|
|
221
|
+
'Suspicious scheduled tasks',
|
|
222
|
+
'Unexpected service installations'
|
|
223
|
+
]
|
|
224
|
+
};
|
|
225
|
+
return JSON.stringify(detection, null, 2);
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Create vulnerability scan tool
|
|
231
|
+
*/
|
|
232
|
+
function createVulnerabilityScanTool(options) {
|
|
233
|
+
return {
|
|
234
|
+
name: 'security_scan_vulnerabilities',
|
|
235
|
+
description: 'Scan for common vulnerabilities and security misconfigurations',
|
|
236
|
+
parameters: {
|
|
237
|
+
type: 'object',
|
|
238
|
+
properties: {
|
|
239
|
+
targetType: {
|
|
240
|
+
type: 'string',
|
|
241
|
+
enum: ['web_application', 'api', 'infrastructure', 'cloud', 'container'],
|
|
242
|
+
description: 'Type of target to scan'
|
|
243
|
+
},
|
|
244
|
+
targetUrl: {
|
|
245
|
+
type: 'string',
|
|
246
|
+
description: 'URL or identifier of target to scan'
|
|
247
|
+
},
|
|
248
|
+
scanDepth: {
|
|
249
|
+
type: 'string',
|
|
250
|
+
enum: ['quick', 'standard', 'deep'],
|
|
251
|
+
description: 'Depth of vulnerability scanning'
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
required: ['targetType', 'targetUrl']
|
|
255
|
+
},
|
|
256
|
+
handler: async (args) => {
|
|
257
|
+
const scanResults = {
|
|
258
|
+
targetType: args['targetType'],
|
|
259
|
+
targetUrl: args['targetUrl'],
|
|
260
|
+
scanDepth: args['scanDepth'] || 'standard',
|
|
261
|
+
vulnerabilities: [
|
|
262
|
+
{
|
|
263
|
+
id: 'sql-injection',
|
|
264
|
+
name: 'SQL Injection',
|
|
265
|
+
severity: 'high',
|
|
266
|
+
description: 'Potential SQL injection vulnerability detected'
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
id: 'xss',
|
|
270
|
+
name: 'Cross-Site Scripting',
|
|
271
|
+
severity: 'medium',
|
|
272
|
+
description: 'Potential XSS vulnerability detected'
|
|
273
|
+
}
|
|
274
|
+
]
|
|
275
|
+
};
|
|
276
|
+
return JSON.stringify(scanResults, null, 2);
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Create risk assessment tool
|
|
282
|
+
*/
|
|
283
|
+
function createRiskAssessmentTool(options) {
|
|
284
|
+
return {
|
|
285
|
+
name: 'security_assess_risk',
|
|
286
|
+
description: 'Assess security risks and generate risk scores',
|
|
287
|
+
parameters: {
|
|
288
|
+
type: 'object',
|
|
289
|
+
properties: {
|
|
290
|
+
findings: {
|
|
291
|
+
type: 'array',
|
|
292
|
+
items: { type: 'string' },
|
|
293
|
+
description: 'Security findings to assess'
|
|
294
|
+
},
|
|
295
|
+
context: {
|
|
296
|
+
type: 'string',
|
|
297
|
+
description: 'Context for risk assessment (e.g., production, development)'
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
required: ['findings']
|
|
301
|
+
},
|
|
302
|
+
handler: async (args) => {
|
|
303
|
+
const assessment = {
|
|
304
|
+
findings: args['findings'],
|
|
305
|
+
context: args['context'] || 'production',
|
|
306
|
+
riskScore: 7.5,
|
|
307
|
+
riskLevel: 'high',
|
|
308
|
+
recommendations: [
|
|
309
|
+
'Implement input validation',
|
|
310
|
+
'Enable security headers',
|
|
311
|
+
'Conduct regular security testing'
|
|
312
|
+
]
|
|
313
|
+
};
|
|
314
|
+
return JSON.stringify(assessment, null, 2);
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Create attack simulation tool
|
|
320
|
+
*/
|
|
321
|
+
function createAttackSimulationTool(options) {
|
|
322
|
+
return {
|
|
323
|
+
name: 'security_simulate_attack',
|
|
324
|
+
description: 'Simulate attack scenarios for testing and research',
|
|
325
|
+
parameters: {
|
|
326
|
+
type: 'object',
|
|
327
|
+
properties: {
|
|
328
|
+
attackType: {
|
|
329
|
+
type: 'string',
|
|
330
|
+
enum: ['web_application', 'authentication', 'injection', 'persistence', 'privilege_escalation'],
|
|
331
|
+
description: 'Type of attack to simulate'
|
|
332
|
+
},
|
|
333
|
+
target: {
|
|
334
|
+
type: 'string',
|
|
335
|
+
description: 'Target for attack simulation'
|
|
336
|
+
},
|
|
337
|
+
stealthLevel: {
|
|
338
|
+
type: 'number',
|
|
339
|
+
minimum: 1,
|
|
340
|
+
maximum: 5,
|
|
341
|
+
description: 'Stealth level for attack simulation'
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
required: ['attackType', 'target']
|
|
345
|
+
},
|
|
346
|
+
handler: async (args) => {
|
|
347
|
+
const simulation = {
|
|
348
|
+
attackType: args['attackType'],
|
|
349
|
+
target: args['target'],
|
|
350
|
+
stealthLevel: args['stealthLevel'] || 3,
|
|
351
|
+
steps: [
|
|
352
|
+
'Initial reconnaissance',
|
|
353
|
+
'Vulnerability identification',
|
|
354
|
+
'Payload delivery',
|
|
355
|
+
'Exploitation attempt'
|
|
356
|
+
],
|
|
357
|
+
successProbability: 0.75
|
|
358
|
+
};
|
|
359
|
+
return JSON.stringify(simulation, null, 2);
|
|
360
|
+
}
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* Create payload generation tool
|
|
365
|
+
*/
|
|
366
|
+
function createPayloadGenerationTool(options) {
|
|
367
|
+
return {
|
|
368
|
+
name: 'security_generate_payloads',
|
|
369
|
+
description: 'Generate payloads for security testing and research',
|
|
370
|
+
parameters: {
|
|
371
|
+
type: 'object',
|
|
372
|
+
properties: {
|
|
373
|
+
payloadType: {
|
|
374
|
+
type: 'string',
|
|
375
|
+
enum: ['sql_injection', 'xss', 'command_injection', 'file_upload', 'authentication_bypass'],
|
|
376
|
+
description: 'Type of payload to generate'
|
|
377
|
+
},
|
|
378
|
+
target: {
|
|
379
|
+
type: 'string',
|
|
380
|
+
description: 'Target technology or framework'
|
|
381
|
+
},
|
|
382
|
+
count: {
|
|
383
|
+
type: 'number',
|
|
384
|
+
minimum: 1,
|
|
385
|
+
maximum: 10,
|
|
386
|
+
description: 'Number of payloads to generate'
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
required: ['payloadType', 'target']
|
|
390
|
+
},
|
|
391
|
+
handler: async (args) => {
|
|
392
|
+
const payloads = {
|
|
393
|
+
payloadType: args['payloadType'],
|
|
394
|
+
target: args['target'],
|
|
395
|
+
count: args['count'] || 3,
|
|
396
|
+
payloads: [
|
|
397
|
+
'Sample payload 1',
|
|
398
|
+
'Sample payload 2',
|
|
399
|
+
'Sample payload 3'
|
|
400
|
+
].slice(0, args['count'] || 3)
|
|
401
|
+
};
|
|
402
|
+
return JSON.stringify(payloads, null, 2);
|
|
403
|
+
}
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
/**
|
|
407
|
+
* Create security report tool
|
|
408
|
+
*/
|
|
409
|
+
function createSecurityReportTool(options) {
|
|
410
|
+
return {
|
|
411
|
+
name: 'security_generate_report',
|
|
412
|
+
description: 'Generate comprehensive security research report',
|
|
413
|
+
parameters: {
|
|
414
|
+
type: 'object',
|
|
415
|
+
properties: {
|
|
416
|
+
reportType: {
|
|
417
|
+
type: 'string',
|
|
418
|
+
enum: ['persistence_analysis', 'vulnerability_assessment', 'attack_simulation', 'comprehensive'],
|
|
419
|
+
description: 'Type of security report to generate'
|
|
420
|
+
},
|
|
421
|
+
target: {
|
|
422
|
+
type: 'string',
|
|
423
|
+
description: 'Target system or environment'
|
|
424
|
+
},
|
|
425
|
+
includeRecommendations: {
|
|
426
|
+
type: 'boolean',
|
|
427
|
+
description: 'Include security recommendations in report'
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
required: ['reportType', 'target']
|
|
431
|
+
},
|
|
432
|
+
handler: async (args) => {
|
|
433
|
+
const report = {
|
|
434
|
+
reportType: args['reportType'],
|
|
435
|
+
target: args['target'],
|
|
436
|
+
includeRecommendations: args['includeRecommendations'] || true,
|
|
437
|
+
generatedAt: new Date().toISOString(),
|
|
438
|
+
content: `Security Research Report for ${args['target']}`,
|
|
439
|
+
recommendations: [
|
|
440
|
+
'Implement proper input validation',
|
|
441
|
+
'Enable security monitoring',
|
|
442
|
+
'Conduct regular security assessments'
|
|
443
|
+
]
|
|
444
|
+
};
|
|
445
|
+
return JSON.stringify(report, null, 2);
|
|
446
|
+
}
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
//# sourceMappingURL=securityTools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"securityTools.js","sourceRoot":"","sources":["../../src/tools/securityTools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AASH;;GAE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
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.4",
|
|
4
4
|
"description": "Unified AI agent framework for the command line - Multi-provider support with schema-driven tools, code intelligence, and transparent reasoning",
|
|
5
|
-
"main": "dist/bin/erosolar.js",
|
|
5
|
+
"main": "dist/bin/erosolar-optimized.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist",
|
|
@@ -15,12 +15,15 @@
|
|
|
15
15
|
"scripts/code-quality-dashboard.js",
|
|
16
16
|
"scripts/ai-code-reviewer.mjs",
|
|
17
17
|
"scripts/code-intelligence-enhancer.mjs",
|
|
18
|
-
"scripts/dev-productivity-booster.mjs"
|
|
18
|
+
"scripts/dev-productivity-booster.mjs",
|
|
19
|
+
"scripts/deploy-security-capabilities.js",
|
|
20
|
+
"scripts/deploy-intelligence-core.js",
|
|
21
|
+
"config/security-deployment.json"
|
|
19
22
|
],
|
|
20
23
|
"bin": {
|
|
21
|
-
"erosolar-ts": "dist/bin/erosolar.js",
|
|
22
|
-
"erosolar-cli": "dist/bin/erosolar.js",
|
|
23
|
-
"erosolar": "dist/bin/erosolar.js"
|
|
24
|
+
"erosolar-ts": "dist/bin/erosolar-optimized.js",
|
|
25
|
+
"erosolar-cli": "dist/bin/erosolar-optimized.js",
|
|
26
|
+
"erosolar": "dist/bin/erosolar-optimized.js"
|
|
24
27
|
},
|
|
25
28
|
"scripts": {
|
|
26
29
|
"preinstall": "node scripts/preinstall-clean-bins.mjs",
|
|
@@ -29,9 +32,9 @@
|
|
|
29
32
|
"build:watch": "tsc --watch",
|
|
30
33
|
"prepare": "npm run build",
|
|
31
34
|
"postbuild": "node scripts/postbuild.mjs",
|
|
32
|
-
"dev": "node --loader ts-node/esm src/bin/erosolar.ts",
|
|
33
|
-
"dev:watch": "node --watch --loader ts-node/esm src/bin/erosolar.ts",
|
|
34
|
-
"start": "node dist/bin/erosolar.js",
|
|
35
|
+
"dev": "node --loader ts-node/esm src/bin/erosolar-optimized.ts",
|
|
36
|
+
"dev:watch": "node --watch --loader ts-node/esm src/bin/erosolar-optimized.ts",
|
|
37
|
+
"start": "node dist/bin/erosolar-optimized.js",
|
|
35
38
|
"test": "jest --config jest.config.cjs",
|
|
36
39
|
"test:watch": "jest --config jest.config.cjs --watch",
|
|
37
40
|
"test:coverage": "jest --config jest.config.cjs --coverage",
|
|
@@ -46,7 +49,11 @@
|
|
|
46
49
|
"ai-code-review": "node scripts/ai-code-reviewer.mjs",
|
|
47
50
|
"code-intelligence": "node scripts/code-intelligence-enhancer.mjs",
|
|
48
51
|
"dev-productivity": "node scripts/dev-productivity-booster.mjs",
|
|
49
|
-
"generate": "node scripts/dev-productivity-booster.mjs generate"
|
|
52
|
+
"generate": "node scripts/dev-productivity-booster.mjs generate",
|
|
53
|
+
"deploy-security": "node scripts/deploy-security-capabilities.js",
|
|
54
|
+
"deploy-intelligence": "node scripts/deploy-intelligence-core.js",
|
|
55
|
+
"security-testing": "node examples/ultimate-security-testing.js",
|
|
56
|
+
"security-example": "ts-node examples/ultimate-security-testing.ts"
|
|
50
57
|
},
|
|
51
58
|
"erosolar": {
|
|
52
59
|
"rulebookSchema": "src/contracts/schemas/agent-rules.schema.json"
|
|
@@ -62,7 +69,15 @@
|
|
|
62
69
|
"unified-schema",
|
|
63
70
|
"code-intelligence",
|
|
64
71
|
"alpha-zero",
|
|
65
|
-
"multi-provider"
|
|
72
|
+
"multi-provider",
|
|
73
|
+
"security-testing",
|
|
74
|
+
"penetration-testing",
|
|
75
|
+
"red-team",
|
|
76
|
+
"offensive-security",
|
|
77
|
+
"intelligence",
|
|
78
|
+
"surveillance",
|
|
79
|
+
"covert-ops",
|
|
80
|
+
"counter-intelligence"
|
|
66
81
|
],
|
|
67
82
|
"author": "Independent Security Research Collective",
|
|
68
83
|
"license": "MIT",
|
|
@@ -107,4 +122,4 @@
|
|
|
107
122
|
"ora": "^5.4.1",
|
|
108
123
|
"typescript": "^5.3.3"
|
|
109
124
|
}
|
|
110
|
-
}
|
|
125
|
+
}
|