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,38 @@
|
|
|
1
|
+
import { createCloudTools } from '../tools/cloudTools.js';
|
|
2
|
+
export class CloudCapabilityModule {
|
|
3
|
+
id = 'capability.cloud';
|
|
4
|
+
options;
|
|
5
|
+
constructor(options = {}) {
|
|
6
|
+
this.options = options;
|
|
7
|
+
}
|
|
8
|
+
async create(context) {
|
|
9
|
+
const workingDir = this.options.workingDir ?? context.workingDir;
|
|
10
|
+
return {
|
|
11
|
+
id: this.options.id ?? 'cloud.tools.deployment',
|
|
12
|
+
description: this.options.description ??
|
|
13
|
+
'Cloud deployment tools with automatic CLI detection, configuration checking, and auto-fixing for Firebase, Aliyun, AWS, GCP, Azure, Vercel, Netlify, and more.',
|
|
14
|
+
toolSuite: {
|
|
15
|
+
id: 'cloud',
|
|
16
|
+
description: 'Multi-cloud deployment and management tools',
|
|
17
|
+
tools: createCloudTools(workingDir),
|
|
18
|
+
},
|
|
19
|
+
metadata: {
|
|
20
|
+
workingDir,
|
|
21
|
+
supportedProviders: [
|
|
22
|
+
'firebase',
|
|
23
|
+
'aliyun',
|
|
24
|
+
'aws',
|
|
25
|
+
'gcloud',
|
|
26
|
+
'azure',
|
|
27
|
+
'vercel',
|
|
28
|
+
'netlify',
|
|
29
|
+
'cloudflare',
|
|
30
|
+
'fly',
|
|
31
|
+
'railway',
|
|
32
|
+
'supabase',
|
|
33
|
+
],
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=cloudCapability.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloudCapability.js","sourceRoot":"","sources":["../../src/capabilities/cloudCapability.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAQ1D,MAAM,OAAO,qBAAqB;IACvB,EAAE,GAAG,kBAAkB,CAAC;IAChB,OAAO,CAAyB;IAEjD,YAAY,UAAkC,EAAE;QAC9C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,OAA0B;QACrC,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,IAAI,OAAO,CAAC,UAAU,CAAC;QACjE,OAAO;YACL,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,wBAAwB;YAC/C,WAAW,EACT,IAAI,CAAC,OAAO,CAAC,WAAW;gBACxB,gKAAgK;YAClK,SAAS,EAAE;gBACT,EAAE,EAAE,OAAO;gBACX,WAAW,EAAE,6CAA6C;gBAC1D,KAAK,EAAE,gBAAgB,CAAC,UAAU,CAAC;aACpC;YACD,QAAQ,EAAE;gBACR,UAAU;gBACV,kBAAkB,EAAE;oBAClB,UAAU;oBACV,QAAQ;oBACR,KAAK;oBACL,QAAQ;oBACR,OAAO;oBACP,QAAQ;oBACR,SAAS;oBACT,YAAY;oBACZ,KAAK;oBACL,SAAS;oBACT,UAAU;iBACX;aACF;SACF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -18,4 +18,5 @@ export { AdvancedTestGenerationCapabilityModule, type AdvancedTestGenerationCapa
|
|
|
18
18
|
export { EnhancedDevWorkflowCapabilityModule, type EnhancedDevWorkflowCapabilityOptions, } from './enhancedDevWorkflowCapability.js';
|
|
19
19
|
export { EmailCapabilityModule, type EmailCapabilityOptions, } from './emailCapability.js';
|
|
20
20
|
export { WebCapabilityModule, type WebCapabilityOptions, } from './webCapability.js';
|
|
21
|
+
export { CloudCapabilityModule, type CloudCapabilityOptions, } from './cloudCapability.js';
|
|
21
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/capabilities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,KAAK,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AACzG,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,KAAK,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACvF,OAAO,EAAE,sBAAsB,EAAE,KAAK,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAC7F,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EACL,4BAA4B,EAC5B,KAAK,6BAA6B,GACnC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,mBAAmB,EACnB,KAAK,oBAAoB,GAC1B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,2BAA2B,EAC3B,KAAK,4BAA4B,GAClC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,2BAA2B,EAC3B,KAAK,4BAA4B,GAClC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,kCAAkC,EAClC,KAAK,mCAAmC,GACzC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,uBAAuB,EACvB,KAAK,wBAAwB,GAC9B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE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ClC,KAAK,mCAAmC,GACzC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,uBAAuB,EACvB,KAAK,wBAAwB,GAC9B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EACL,wCAAwC,EACxC,KAAK,yCAAyC,GAC/C,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACL,sCAAsC,EACtC,KAAK,uCAAuC,GAC7C,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,mCAAmC,EACnC,KAAK,oCAAoC,GAC1C,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,qBAAqB,EACrB,KAAK,sBAAsB,GAC5B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,mBAAmB,EACnB,KAAK,oBAAoB,GAC1B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,qBAAqB,EACrB,KAAK,sBAAsB,GAC5B,MAAM,sBAAsB,CAAC"}
|
|
@@ -18,4 +18,5 @@ export { AdvancedTestGenerationCapabilityModule, } from './advancedTestGeneratio
|
|
|
18
18
|
export { EnhancedDevWorkflowCapabilityModule, } from './enhancedDevWorkflowCapability.js';
|
|
19
19
|
export { EmailCapabilityModule, } from './emailCapability.js';
|
|
20
20
|
export { WebCapabilityModule, } from './webCapability.js';
|
|
21
|
+
export { CloudCapabilityModule, } from './cloudCapability.js';
|
|
21
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/capabilities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAoC,MAAM,2BAA2B,CAAC;AACzG,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,E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B,CAAC;AACvF,OAAO,EAAE,sBAAsB,EAAgC,MAAM,uBAAuB,CAAC;AAC7F,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EACL,4BAA4B,GAE7B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,mBAAmB,GAEpB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,2BAA2B,GAE5B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,2BAA2B,GAE5B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,kCAAkC,GAEnC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,uBAAuB,GAExB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EACL,wCAAwC,GAEzC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACL,sCAAsC,GAEvC,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,mCAAmC,GAEpC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,qBAAqB,GAEtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,mBAAmB,GAEpB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,qBAAqB,GAEtB,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Offensive Security Capability Module
|
|
3
|
+
*
|
|
4
|
+
* Provides advanced offensive security capabilities for authorized testing.
|
|
5
|
+
* These tools include reverse shells, fileless persistence, web shells, and more.
|
|
6
|
+
*
|
|
7
|
+
* LEGAL NOTICE:
|
|
8
|
+
* All offensive security tools require explicit authorization and scope definition.
|
|
9
|
+
* Intended for legitimate security testing, red team exercises, and authorized penetration testing only.
|
|
10
|
+
*/
|
|
11
|
+
import type { CapabilityContribution, CapabilityContext, CapabilityModule } from '../runtime/agentHost.js';
|
|
12
|
+
export interface OffensiveSecurityCapabilityOptions {
|
|
13
|
+
workingDir?: string;
|
|
14
|
+
id?: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
enableAdvancedExploitation?: boolean;
|
|
17
|
+
requireAuthorization?: boolean;
|
|
18
|
+
enablePayloadGeneration?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare class OffensiveSecurityCapabilityModule implements CapabilityModule {
|
|
21
|
+
readonly id = "capability.offensive.security";
|
|
22
|
+
private readonly options;
|
|
23
|
+
constructor(options?: OffensiveSecurityCapabilityOptions);
|
|
24
|
+
create(context: CapabilityContext): Promise<CapabilityContribution>;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=offensiveSecurityCapability.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offensiveSecurityCapability.d.ts","sourceRoot":"","sources":["../../src/capabilities/offensiveSecurityCapability.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAG3G,MAAM,WAAW,kCAAkC;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC;AAED,qBAAa,iCAAkC,YAAW,gBAAgB;IACxE,QAAQ,CAAC,EAAE,mCAAmC;IAC9C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAqC;gBAEjD,OAAO,GAAE,kCAAuC;IAStD,MAAM,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,sBAAsB,CAAC;CAoC1E"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Offensive Security Capability Module
|
|
3
|
+
*
|
|
4
|
+
* Provides advanced offensive security capabilities for authorized testing.
|
|
5
|
+
* These tools include reverse shells, fileless persistence, web shells, and more.
|
|
6
|
+
*
|
|
7
|
+
* LEGAL NOTICE:
|
|
8
|
+
* All offensive security tools require explicit authorization and scope definition.
|
|
9
|
+
* Intended for legitimate security testing, red team exercises, and authorized penetration testing only.
|
|
10
|
+
*/
|
|
11
|
+
import { createOffensiveSecurityTools } from '../tools/offensiveSecurityTools.js';
|
|
12
|
+
export class OffensiveSecurityCapabilityModule {
|
|
13
|
+
id = 'capability.offensive.security';
|
|
14
|
+
options;
|
|
15
|
+
constructor(options = {}) {
|
|
16
|
+
this.options = {
|
|
17
|
+
requireAuthorization: true,
|
|
18
|
+
enableAdvancedExploitation: false,
|
|
19
|
+
enablePayloadGeneration: false,
|
|
20
|
+
...options
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
async create(context) {
|
|
24
|
+
const workingDir = this.options.workingDir ?? context.workingDir;
|
|
25
|
+
return {
|
|
26
|
+
id: this.options.id ?? 'offensive.security.research.tools',
|
|
27
|
+
description: this.options.description ??
|
|
28
|
+
'Advanced offensive security testing tools with reverse shells, fileless persistence, web shells, and exploitation capabilities.',
|
|
29
|
+
toolSuite: {
|
|
30
|
+
id: 'offensive.security',
|
|
31
|
+
description: 'Advanced offensive security testing tools',
|
|
32
|
+
tools: createOffensiveSecurityTools(workingDir, {
|
|
33
|
+
enableAdvancedExploitation: this.options.enableAdvancedExploitation,
|
|
34
|
+
requireAuthorization: this.options.requireAuthorization,
|
|
35
|
+
enablePayloadGeneration: this.options.enablePayloadGeneration
|
|
36
|
+
}),
|
|
37
|
+
},
|
|
38
|
+
metadata: {
|
|
39
|
+
workingDir,
|
|
40
|
+
requireAuthorization: this.options.requireAuthorization,
|
|
41
|
+
enableAdvancedExploitation: this.options.enableAdvancedExploitation,
|
|
42
|
+
enablePayloadGeneration: this.options.enablePayloadGeneration,
|
|
43
|
+
supportedOperations: [
|
|
44
|
+
'reverse_shell_generation',
|
|
45
|
+
'fileless_persistence',
|
|
46
|
+
'web_shell_deployment',
|
|
47
|
+
'scheduled_persistence',
|
|
48
|
+
'obfuscated_payloads',
|
|
49
|
+
'dns_tunneling',
|
|
50
|
+
'phishing_templates',
|
|
51
|
+
'backdoor_user_creation'
|
|
52
|
+
],
|
|
53
|
+
legalNotice: 'For authorized security research and testing only. All activities must be properly authorized and scoped. Unauthorized use is illegal.'
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=offensiveSecurityCapability.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offensiveSecurityCapability.js","sourceRoot":"","sources":["../../src/capabilities/offensiveSecurityCapability.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAWlF,MAAM,OAAO,iCAAiC;IACnC,EAAE,GAAG,+BAA+B,CAAC;IAC7B,OAAO,CAAqC;IAE7D,YAAY,UAA8C,EAAE;QAC1D,IAAI,CAAC,OAAO,GAAG;YACb,oBAAoB,EAAE,IAAI;YAC1B,0BAA0B,EAAE,KAAK;YACjC,uBAAuB,EAAE,KAAK;YAC9B,GAAG,OAAO;SACX,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,OAA0B;QACrC,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,IAAI,OAAO,CAAC,UAAU,CAAC;QAEjE,OAAO;YACL,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,mCAAmC;YAC1D,WAAW,EACT,IAAI,CAAC,OAAO,CAAC,WAAW;gBACxB,iIAAiI;YACnI,SAAS,EAAE;gBACT,EAAE,EAAE,oBAAoB;gBACxB,WAAW,EAAE,2CAA2C;gBACxD,KAAK,EAAE,4BAA4B,CAAC,UAAU,EAAE;oBAC9C,0BAA0B,EAAE,IAAI,CAAC,OAAO,CAAC,0BAA0B;oBACnE,oBAAoB,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB;oBACvD,uBAAuB,EAAE,IAAI,CAAC,OAAO,CAAC,uBAAuB;iBAC9D,CAAC;aACH;YACD,QAAQ,EAAE;gBACR,UAAU;gBACV,oBAAoB,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB;gBACvD,0BAA0B,EAAE,IAAI,CAAC,OAAO,CAAC,0BAA0B;gBACnE,uBAAuB,EAAE,IAAI,CAAC,OAAO,CAAC,uBAAuB;gBAC7D,mBAAmB,EAAE;oBACnB,0BAA0B;oBAC1B,sBAAsB;oBACtB,sBAAsB;oBACtB,uBAAuB;oBACvB,qBAAqB;oBACrB,eAAe;oBACf,oBAAoB;oBACpB,wBAAwB;iBACzB;gBACD,WAAW,EAAE,wIAAwI;aACtJ;SACF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Real Security Capability Module
|
|
3
|
+
*
|
|
4
|
+
* Provides actual security testing capabilities with real implementations.
|
|
5
|
+
* These tools perform real persistence, scanning, and exploitation.
|
|
6
|
+
*
|
|
7
|
+
* LEGAL NOTICE:
|
|
8
|
+
* All security testing tools require explicit authorization and scope definition.
|
|
9
|
+
* Intended for legitimate security testing, bug bounty programs, and red team exercises only.
|
|
10
|
+
*/
|
|
11
|
+
import type { CapabilityContribution, CapabilityContext, CapabilityModule } from '../runtime/agentHost.js';
|
|
12
|
+
export interface RealSecurityCapabilityOptions {
|
|
13
|
+
workingDir?: string;
|
|
14
|
+
id?: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
enableExploitation?: boolean;
|
|
17
|
+
requireAuthorization?: boolean;
|
|
18
|
+
enableAdvancedTechniques?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare class RealSecurityCapabilityModule implements CapabilityModule {
|
|
21
|
+
readonly id = "capability.real.security";
|
|
22
|
+
private readonly options;
|
|
23
|
+
constructor(options?: RealSecurityCapabilityOptions);
|
|
24
|
+
create(context: CapabilityContext): Promise<CapabilityContribution>;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=realSecurityCapability.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realSecurityCapability.d.ts","sourceRoot":"","sources":["../../src/capabilities/realSecurityCapability.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAG3G,MAAM,WAAW,6BAA6B;IAC5C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AAED,qBAAa,4BAA6B,YAAW,gBAAgB;IACnE,QAAQ,CAAC,EAAE,8BAA8B;IACzC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAgC;gBAE5C,OAAO,GAAE,6BAAkC;IASjD,MAAM,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,sBAAsB,CAAC;CA+B1E"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Real Security Capability Module
|
|
3
|
+
*
|
|
4
|
+
* Provides actual security testing capabilities with real implementations.
|
|
5
|
+
* These tools perform real persistence, scanning, and exploitation.
|
|
6
|
+
*
|
|
7
|
+
* LEGAL NOTICE:
|
|
8
|
+
* All security testing tools require explicit authorization and scope definition.
|
|
9
|
+
* Intended for legitimate security testing, bug bounty programs, and red team exercises only.
|
|
10
|
+
*/
|
|
11
|
+
import { createRealSecurityTools } from '../tools/realSecurityTools.js';
|
|
12
|
+
export class RealSecurityCapabilityModule {
|
|
13
|
+
id = 'capability.real.security';
|
|
14
|
+
options;
|
|
15
|
+
constructor(options = {}) {
|
|
16
|
+
this.options = {
|
|
17
|
+
requireAuthorization: true,
|
|
18
|
+
enableExploitation: false,
|
|
19
|
+
enableAdvancedTechniques: false,
|
|
20
|
+
...options
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
async create(context) {
|
|
24
|
+
const workingDir = this.options.workingDir ?? context.workingDir;
|
|
25
|
+
return {
|
|
26
|
+
id: this.options.id ?? 'real.security.research.tools',
|
|
27
|
+
description: this.options.description ??
|
|
28
|
+
'Real security testing tools with actual implementations for persistence, scanning, and exploitation.',
|
|
29
|
+
toolSuite: {
|
|
30
|
+
id: 'real.security',
|
|
31
|
+
description: 'Real security testing and research tools',
|
|
32
|
+
tools: createRealSecurityTools(workingDir, {
|
|
33
|
+
enableExploitation: this.options.enableExploitation,
|
|
34
|
+
requireAuthorization: this.options.requireAuthorization
|
|
35
|
+
}),
|
|
36
|
+
},
|
|
37
|
+
metadata: {
|
|
38
|
+
workingDir,
|
|
39
|
+
requireAuthorization: this.options.requireAuthorization,
|
|
40
|
+
enableExploitation: this.options.enableExploitation,
|
|
41
|
+
enableAdvancedTechniques: this.options.enableAdvancedTechniques,
|
|
42
|
+
supportedOperations: [
|
|
43
|
+
'real_persistence_implementation',
|
|
44
|
+
'real_vulnerability_scanning',
|
|
45
|
+
'real_network_exploitation',
|
|
46
|
+
'real_security_reporting'
|
|
47
|
+
],
|
|
48
|
+
legalNotice: 'For authorized security research and testing only. All activities must be properly authorized and scoped.'
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=realSecurityCapability.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realSecurityCapability.js","sourceRoot":"","sources":["../../src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1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Security Research Capability Module
|
|
3
|
+
*
|
|
4
|
+
* Provides comprehensive security research tools for authorized penetration testing,
|
|
5
|
+
* vulnerability assessment, and persistence mechanism analysis.
|
|
6
|
+
*
|
|
7
|
+
* This module integrates with the core capability system and provides:
|
|
8
|
+
* - Authorization framework for security testing
|
|
9
|
+
* - Persistence research tools
|
|
10
|
+
* - Vulnerability assessment capabilities
|
|
11
|
+
* - Attack simulation framework
|
|
12
|
+
* - Security reporting and analysis
|
|
13
|
+
*
|
|
14
|
+
* LEGAL NOTICE:
|
|
15
|
+
* All security research tools require explicit authorization and scope definition.
|
|
16
|
+
* Intended for legitimate security testing, bug bounty programs, and red team exercises only.
|
|
17
|
+
*/
|
|
18
|
+
import type { CapabilityContribution, CapabilityContext, CapabilityModule } from '../runtime/agentHost.js';
|
|
19
|
+
export interface SecurityCapabilityOptions {
|
|
20
|
+
workingDir?: string;
|
|
21
|
+
id?: string;
|
|
22
|
+
description?: string;
|
|
23
|
+
enableAdvancedResearch?: boolean;
|
|
24
|
+
requireAuthorization?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export declare class SecurityCapabilityModule implements CapabilityModule {
|
|
27
|
+
readonly id = "capability.security";
|
|
28
|
+
private readonly options;
|
|
29
|
+
constructor(options?: SecurityCapabilityOptions);
|
|
30
|
+
create(context: CapabilityContext): Promise<CapabilityContribution>;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=securityCapability.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"securityCapability.d.ts","sourceRoot":"","sources":["../../src/capabilities/securityCapability.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAG3G,MAAM,WAAW,yBAAyB;IACxC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,qBAAa,wBAAyB,YAAW,gBAAgB;IAC/D,QAAQ,CAAC,EAAE,yBAAyB;IACpC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA4B;gBAExC,OAAO,GAAE,yBAA8B;IAQ7C,MAAM,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,sBAAsB,CAAC;CA6B1E"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Security Research Capability Module
|
|
3
|
+
*
|
|
4
|
+
* Provides comprehensive security research tools for authorized penetration testing,
|
|
5
|
+
* vulnerability assessment, and persistence mechanism analysis.
|
|
6
|
+
*
|
|
7
|
+
* This module integrates with the core capability system and provides:
|
|
8
|
+
* - Authorization framework for security testing
|
|
9
|
+
* - Persistence research tools
|
|
10
|
+
* - Vulnerability assessment capabilities
|
|
11
|
+
* - Attack simulation framework
|
|
12
|
+
* - Security reporting and analysis
|
|
13
|
+
*
|
|
14
|
+
* LEGAL NOTICE:
|
|
15
|
+
* All security research tools require explicit authorization and scope definition.
|
|
16
|
+
* Intended for legitimate security testing, bug bounty programs, and red team exercises only.
|
|
17
|
+
*/
|
|
18
|
+
import { createSecurityTools } from '../tools/securityTools.js';
|
|
19
|
+
export class SecurityCapabilityModule {
|
|
20
|
+
id = 'capability.security';
|
|
21
|
+
options;
|
|
22
|
+
constructor(options = {}) {
|
|
23
|
+
this.options = {
|
|
24
|
+
requireAuthorization: true,
|
|
25
|
+
enableAdvancedResearch: false,
|
|
26
|
+
...options
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
async create(context) {
|
|
30
|
+
const workingDir = this.options.workingDir ?? context.workingDir;
|
|
31
|
+
return {
|
|
32
|
+
id: this.options.id ?? 'security.research.tools',
|
|
33
|
+
description: this.options.description ??
|
|
34
|
+
'Comprehensive security research tools for authorized penetration testing, vulnerability assessment, and persistence mechanism analysis.',
|
|
35
|
+
toolSuite: {
|
|
36
|
+
id: 'security',
|
|
37
|
+
description: 'Security research and testing tools',
|
|
38
|
+
tools: createSecurityTools(workingDir, {
|
|
39
|
+
enableAdvancedResearch: this.options.enableAdvancedResearch,
|
|
40
|
+
requireAuthorization: this.options.requireAuthorization
|
|
41
|
+
}),
|
|
42
|
+
},
|
|
43
|
+
metadata: {
|
|
44
|
+
workingDir,
|
|
45
|
+
requireAuthorization: this.options.requireAuthorization,
|
|
46
|
+
enableAdvancedResearch: this.options.enableAdvancedResearch,
|
|
47
|
+
supportedResearchAreas: [
|
|
48
|
+
'persistence_analysis',
|
|
49
|
+
'vulnerability_assessment',
|
|
50
|
+
'attack_simulation',
|
|
51
|
+
'security_reporting'
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=securityCapability.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"securityCapability.js","sourceRoot":"","sources":["../../src/capabilities/securityCapability.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAUhE,MAAM,OAAO,wBAAwB;IAC1B,EAAE,GAAG,qBAAqB,CAAC;IACnB,OAAO,CAA4B;IAEpD,YAAY,UAAqC,EAAE;QACjD,IAAI,CAAC,OAAO,GAAG;YACb,oBAAoB,EAAE,IAAI;YAC1B,sBAAsB,EAAE,KAAK;YAC7B,GAAG,OAAO;SACX,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,OAA0B;QACrC,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,IAAI,OAAO,CAAC,UAAU,CAAC;QAEjE,OAAO;YACL,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,yBAAyB;YAChD,WAAW,EACT,IAAI,CAAC,OAAO,CAAC,WAAW;gBACxB,yIAAyI;YAC3I,SAAS,EAAE;gBACT,EAAE,EAAE,UAAU;gBACd,WAAW,EAAE,qCAAqC;gBAClD,KAAK,EAAE,mBAAmB,CAAC,UAAU,EAAE;oBACrC,sBAAsB,EAAE,IAAI,CAAC,OAAO,CAAC,sBAAsB;oBAC3D,oBAAoB,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB;iBACxD,CAAC;aACH;YACD,QAAQ,EAAE;gBACR,UAAU;gBACV,oBAAoB,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB;gBACvD,sBAAsB,EAAE,IAAI,CAAC,OAAO,CAAC,sBAAsB;gBAC3D,sBAAsB,EAAE;oBACtB,sBAAsB;oBACtB,0BAA0B;oBAC1B,mBAAmB;oBACnB,oBAAoB;iBACrB;aACF;SACF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ultimate Security Capability Module
|
|
3
|
+
*
|
|
4
|
+
* Provides complete security testing capabilities with authorization framework.
|
|
5
|
+
* Combines real security testing, offensive security, and authorization management.
|
|
6
|
+
*
|
|
7
|
+
* LEGAL NOTICE:
|
|
8
|
+
* All security testing tools require explicit authorization and scope definition.
|
|
9
|
+
* Intended for legitimate security testing, red team exercises, and authorized penetration testing only.
|
|
10
|
+
*/
|
|
11
|
+
import type { CapabilityContribution, CapabilityContext, CapabilityModule } from '../runtime/agentHost.js';
|
|
12
|
+
import { AuthorizationManager } from '../security/authorization.js';
|
|
13
|
+
export interface UltimateSecurityCapabilityOptions {
|
|
14
|
+
workingDir?: string;
|
|
15
|
+
id?: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
enableExploitation?: boolean;
|
|
18
|
+
enableAdvancedExploitation?: boolean;
|
|
19
|
+
enablePayloadGeneration?: boolean;
|
|
20
|
+
requireAuthorization?: boolean;
|
|
21
|
+
authorizationManager?: AuthorizationManager;
|
|
22
|
+
}
|
|
23
|
+
export declare class UltimateSecurityCapabilityModule implements CapabilityModule {
|
|
24
|
+
readonly id = "capability.ultimate.security";
|
|
25
|
+
private readonly options;
|
|
26
|
+
private readonly authorizationManager;
|
|
27
|
+
constructor(options?: UltimateSecurityCapabilityOptions);
|
|
28
|
+
create(context: CapabilityContext): Promise<CapabilityContribution>;
|
|
29
|
+
/**
|
|
30
|
+
* Get the authorization manager instance
|
|
31
|
+
*/
|
|
32
|
+
getAuthorizationManager(): AuthorizationManager;
|
|
33
|
+
/**
|
|
34
|
+
* Get current authorization status
|
|
35
|
+
*/
|
|
36
|
+
getAuthorizationStatus(): any;
|
|
37
|
+
/**
|
|
38
|
+
* Generate authorization report
|
|
39
|
+
*/
|
|
40
|
+
generateAuthorizationReport(): string;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=ultimateSecurityCapability.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ultimateSecurityCapability.d.ts","sourceRoot":"","sources":["../../src/capabilities/ultimateSecurityCapability.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3G,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAGpE,MAAM,WAAW,iCAAiC;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;CAC7C;AAED,qBAAa,gCAAiC,YAAW,gBAAgB;IACvE,QAAQ,CAAC,EAAE,kCAAkC;IAC7C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoC;IAC5D,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAuB;gBAEhD,OAAO,GAAE,iCAAsC;IAYrD,MAAM,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAqDzE;;OAEG;IACH,uBAAuB,IAAI,oBAAoB;IAI/C;;OAEG;IACH,sBAAsB;IAItB;;OAEG;IACH,2BAA2B,IAAI,MAAM;CAGtC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ultimate Security Capability Module
|
|
3
|
+
*
|
|
4
|
+
* Provides complete security testing capabilities with authorization framework.
|
|
5
|
+
* Combines real security testing, offensive security, and authorization management.
|
|
6
|
+
*
|
|
7
|
+
* LEGAL NOTICE:
|
|
8
|
+
* All security testing tools require explicit authorization and scope definition.
|
|
9
|
+
* Intended for legitimate security testing, red team exercises, and authorized penetration testing only.
|
|
10
|
+
*/
|
|
11
|
+
import { AuthorizationManager } from '../security/authorization.js';
|
|
12
|
+
import { createEnhancedSecurityTools } from '../tools/enhancedSecurityTools.js';
|
|
13
|
+
export class UltimateSecurityCapabilityModule {
|
|
14
|
+
id = 'capability.ultimate.security';
|
|
15
|
+
options;
|
|
16
|
+
authorizationManager;
|
|
17
|
+
constructor(options = {}) {
|
|
18
|
+
this.options = {
|
|
19
|
+
requireAuthorization: true,
|
|
20
|
+
enableExploitation: false,
|
|
21
|
+
enableAdvancedExploitation: false,
|
|
22
|
+
enablePayloadGeneration: false,
|
|
23
|
+
...options
|
|
24
|
+
};
|
|
25
|
+
this.authorizationManager = options.authorizationManager || new AuthorizationManager();
|
|
26
|
+
}
|
|
27
|
+
async create(context) {
|
|
28
|
+
const workingDir = this.options.workingDir ?? context.workingDir;
|
|
29
|
+
return {
|
|
30
|
+
id: this.options.id ?? 'ultimate.security.research.tools',
|
|
31
|
+
description: this.options.description ??
|
|
32
|
+
'Complete security testing capabilities with authorization framework, real security testing, offensive security, and advanced exploitation tools.',
|
|
33
|
+
toolSuite: {
|
|
34
|
+
id: 'ultimate.security',
|
|
35
|
+
description: 'Complete security testing and research tools with authorization',
|
|
36
|
+
tools: createEnhancedSecurityTools(workingDir, {
|
|
37
|
+
enableExploitation: this.options.enableExploitation,
|
|
38
|
+
enableAdvancedExploitation: this.options.enableAdvancedExploitation,
|
|
39
|
+
enablePayloadGeneration: this.options.enablePayloadGeneration,
|
|
40
|
+
requireAuthorization: this.options.requireAuthorization,
|
|
41
|
+
authorizationManager: this.authorizationManager
|
|
42
|
+
}),
|
|
43
|
+
},
|
|
44
|
+
metadata: {
|
|
45
|
+
workingDir,
|
|
46
|
+
requireAuthorization: this.options.requireAuthorization,
|
|
47
|
+
enableExploitation: this.options.enableExploitation,
|
|
48
|
+
enableAdvancedExploitation: this.options.enableAdvancedExploitation,
|
|
49
|
+
enablePayloadGeneration: this.options.enablePayloadGeneration,
|
|
50
|
+
authorizationManager: this.authorizationManager ? 'custom' : 'default',
|
|
51
|
+
supportedOperations: [
|
|
52
|
+
'authorization_management',
|
|
53
|
+
'real_persistence_implementation',
|
|
54
|
+
'real_vulnerability_scanning',
|
|
55
|
+
'real_network_exploitation',
|
|
56
|
+
'real_security_reporting',
|
|
57
|
+
'reverse_shell_generation',
|
|
58
|
+
'fileless_persistence',
|
|
59
|
+
'web_shell_deployment',
|
|
60
|
+
'scheduled_persistence',
|
|
61
|
+
'obfuscated_payloads',
|
|
62
|
+
'dns_tunneling',
|
|
63
|
+
'phishing_templates',
|
|
64
|
+
'backdoor_user_creation'
|
|
65
|
+
],
|
|
66
|
+
totalTools: 22, // 3 auth tools + 10 real security + 8 offensive security + 1 report
|
|
67
|
+
legalNotice: 'For authorized security research and testing only. All activities must be properly authorized and scoped. Unauthorized use is illegal.',
|
|
68
|
+
version: '1.0.0',
|
|
69
|
+
capabilities: {
|
|
70
|
+
authorization: ['request', 'status', 'report'],
|
|
71
|
+
realSecurity: ['persistence', 'vulnerability', 'network', 'reporting'],
|
|
72
|
+
offensiveSecurity: ['payloads', 'persistence', 'exploitation', 'evasion']
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Get the authorization manager instance
|
|
79
|
+
*/
|
|
80
|
+
getAuthorizationManager() {
|
|
81
|
+
return this.authorizationManager;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Get current authorization status
|
|
85
|
+
*/
|
|
86
|
+
getAuthorizationStatus() {
|
|
87
|
+
return this.authorizationManager.getAuthorizationStatus();
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Generate authorization report
|
|
91
|
+
*/
|
|
92
|
+
generateAuthorizationReport() {
|
|
93
|
+
return this.authorizationManager.generateAuthorizationReport();
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=ultimateSecurityCapability.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ultimateSecurityCapability.js","sourceRoot":"","sources":["../../src/capabilities/ultimateSecurityCapability.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAahF,MAAM,OAAO,gCAAgC;IAClC,EAAE,GAAG,8BAA8B,CAAC;IAC5B,OAAO,CAAoC;IAC3C,oBAAoB,CAAuB;IAE5D,YAAY,UAA6C,EAAE;QACzD,IAAI,CAAC,OAAO,GAAG;YACb,oBAAoB,EAAE,IAAI;YAC1B,kBAAkB,EAAE,KAAK;YACzB,0BAA0B,EAAE,KAAK;YACjC,uBAAuB,EAAE,KAAK;YAC9B,GAAG,OAAO;SACX,CAAC;QAEF,IAAI,CAAC,oBAAoB,GAAG,OAAO,C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AqB;oBACrB,eAAe;oBACf,oBAAoB;oBACpB,wBAAwB;iBACzB;gBACD,UAAU,EAAE,EAAE,EAAE,oEAAoE;gBACpF,WAAW,EAAE,wIAAwI;gBACrJ,OAAO,EAAE,OAAO;gBAChB,YAAY,EAAE;oBACZ,aAAa,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,CAAC;oBAC9C,YAAY,EAAE,CAAC,aAAa,EAAE,eAAe,EAAE,SAAS,EAAE,WAAW,CAAC;oBACtE,iBAAiB,EAAE,CAAC,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,SAAS,CAAC;iBAC1E;aACF;SACF,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,uBAAuB;QACrB,OAAO,IAAI,CAAC,oBAAoB,CAAC;IACnC,CAAC;IAED;;OAEG;IACH,sBAAsB;QACpB,OAAO,IAAI,CAAC,oBAAoB,CAAC,sBAAsB,EAAE,CAAC;IAC5D,CAAC;IAED;;OAEG;IACH,2BAA2B;QACzB,OAAO,IAAI,CAAC,oBAAoB,CAAC,2BAA2B,EAAE,CAAC;IACjE,CAAC;CACF"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lazy Loading System for Erosolar CLI
|
|
3
|
+
*
|
|
4
|
+
* Optimizes performance by deferring expensive operations until needed.
|
|
5
|
+
* This prevents slow startup times for simple commands.
|
|
6
|
+
*/
|
|
7
|
+
export interface LazyLoaderOptions<T> {
|
|
8
|
+
name: string;
|
|
9
|
+
loader: () => Promise<T>;
|
|
10
|
+
timeoutMs?: number;
|
|
11
|
+
onLoad?: (result: T) => void;
|
|
12
|
+
onError?: (error: Error) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare class LazyLoader<T> {
|
|
15
|
+
private readonly name;
|
|
16
|
+
private readonly loader;
|
|
17
|
+
private readonly timeoutMs;
|
|
18
|
+
private readonly onLoad?;
|
|
19
|
+
private readonly onError?;
|
|
20
|
+
private value;
|
|
21
|
+
private loading;
|
|
22
|
+
private loadPromise;
|
|
23
|
+
private lastLoadTime;
|
|
24
|
+
private loadCount;
|
|
25
|
+
constructor(options: LazyLoaderOptions<T>);
|
|
26
|
+
/**
|
|
27
|
+
* Get the value, loading it if necessary
|
|
28
|
+
*/
|
|
29
|
+
get(): Promise<T>;
|
|
30
|
+
/**
|
|
31
|
+
* Check if the value is loaded
|
|
32
|
+
*/
|
|
33
|
+
isLoaded(): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Check if currently loading
|
|
36
|
+
*/
|
|
37
|
+
isLoading(): boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Get the cached value without loading
|
|
40
|
+
*/
|
|
41
|
+
getCached(): T | null;
|
|
42
|
+
/**
|
|
43
|
+
* Force reload the value
|
|
44
|
+
*/
|
|
45
|
+
reload(): Promise<T>;
|
|
46
|
+
/**
|
|
47
|
+
* Clear the cached value
|
|
48
|
+
*/
|
|
49
|
+
clear(): void;
|
|
50
|
+
/**
|
|
51
|
+
* Get loader statistics
|
|
52
|
+
*/
|
|
53
|
+
getStats(): {
|
|
54
|
+
name: string;
|
|
55
|
+
isLoaded: boolean;
|
|
56
|
+
isLoading: boolean;
|
|
57
|
+
loadCount: number;
|
|
58
|
+
lastLoadTime: number;
|
|
59
|
+
};
|
|
60
|
+
private loadWithTimeout;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Global lazy loader registry
|
|
64
|
+
*/
|
|
65
|
+
export declare class LazyLoaderRegistry {
|
|
66
|
+
private static instance;
|
|
67
|
+
private loaders;
|
|
68
|
+
private constructor();
|
|
69
|
+
static getInstance(): LazyLoaderRegistry;
|
|
70
|
+
/**
|
|
71
|
+
* Register a lazy loader
|
|
72
|
+
*/
|
|
73
|
+
register<T>(name: string, loader: LazyLoader<T>): void;
|
|
74
|
+
/**
|
|
75
|
+
* Get a lazy loader
|
|
76
|
+
*/
|
|
77
|
+
get<T>(name: string): LazyLoader<T> | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Get all loader statistics
|
|
80
|
+
*/
|
|
81
|
+
getStats(): Record<string, {
|
|
82
|
+
name: string;
|
|
83
|
+
isLoaded: boolean;
|
|
84
|
+
isLoading: boolean;
|
|
85
|
+
loadCount: number;
|
|
86
|
+
lastLoadTime: number;
|
|
87
|
+
}>;
|
|
88
|
+
/**
|
|
89
|
+
* Preload specific loaders
|
|
90
|
+
*/
|
|
91
|
+
preload(names: string[]): Promise<void>;
|
|
92
|
+
/**
|
|
93
|
+
* Clear all loaders
|
|
94
|
+
*/
|
|
95
|
+
clearAll(): void;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Convenience function to create a lazy loader
|
|
99
|
+
*/
|
|
100
|
+
export declare function createLazyLoader<T>(options: LazyLoaderOptions<T>): LazyLoader<T>;
|
|
101
|
+
/**
|
|
102
|
+
* Pre-configured lazy loaders for common Erosolar components
|
|
103
|
+
*/
|
|
104
|
+
export declare const ErosolarLazyLoaders: {
|
|
105
|
+
/**
|
|
106
|
+
* Create lazy loader for tool capabilities
|
|
107
|
+
*/
|
|
108
|
+
tools: () => LazyLoader<{
|
|
109
|
+
manifest: import("../contracts/v1/toolAccess.js").ToolSelectionManifest;
|
|
110
|
+
enabledTools: Set<string>;
|
|
111
|
+
}>;
|
|
112
|
+
/**
|
|
113
|
+
* Create lazy loader for AI providers
|
|
114
|
+
*/
|
|
115
|
+
providers: () => LazyLoader<import("./modelDiscovery.js").QuickProviderStatus[]>;
|
|
116
|
+
/**
|
|
117
|
+
* Create lazy loader for workspace context
|
|
118
|
+
*/
|
|
119
|
+
workspace: (root?: string) => LazyLoader<string | null>;
|
|
120
|
+
/**
|
|
121
|
+
* Create lazy loader for agent profiles
|
|
122
|
+
*/
|
|
123
|
+
profiles: () => LazyLoader<import("./agentProfiles.js").AgentProfileBlueprint[]>;
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* Initialize the global lazy loader registry with common components
|
|
127
|
+
*/
|
|
128
|
+
export declare function initializeLazyLo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