deepseek-coder-cli 1.0.0
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/LICENSE +21 -0
- package/README.md +422 -0
- package/agents/agi-code.rules.json +87 -0
- package/agents/general.rules.json +171 -0
- package/dist/bin/cliMode.d.ts +8 -0
- package/dist/bin/cliMode.d.ts.map +1 -0
- package/dist/bin/cliMode.js +20 -0
- package/dist/bin/cliMode.js.map +1 -0
- package/dist/bin/deepseek.d.ts +16 -0
- package/dist/bin/deepseek.d.ts.map +1 -0
- package/dist/bin/deepseek.js +737 -0
- package/dist/bin/deepseek.js.map +1 -0
- package/dist/bin/erosolar.d.ts +7 -0
- package/dist/bin/erosolar.d.ts.map +1 -0
- package/dist/bin/erosolar.js +7 -0
- package/dist/bin/erosolar.js.map +1 -0
- package/dist/bin/selfTest.d.ts +14 -0
- package/dist/bin/selfTest.d.ts.map +1 -0
- package/dist/bin/selfTest.js +304 -0
- package/dist/bin/selfTest.js.map +1 -0
- package/dist/capabilities/appleSecurityCapability.d.ts +57 -0
- package/dist/capabilities/appleSecurityCapability.d.ts.map +1 -0
- package/dist/capabilities/appleSecurityCapability.js +197 -0
- package/dist/capabilities/appleSecurityCapability.js.map +1 -0
- package/dist/capabilities/authorizedSecurityCapability.d.ts +17 -0
- package/dist/capabilities/authorizedSecurityCapability.d.ts.map +1 -0
- package/dist/capabilities/authorizedSecurityCapability.js +333 -0
- package/dist/capabilities/authorizedSecurityCapability.js.map +1 -0
- package/dist/capabilities/autoEnhancementCapability.d.ts +98 -0
- package/dist/capabilities/autoEnhancementCapability.d.ts.map +1 -0
- package/dist/capabilities/autoEnhancementCapability.js +455 -0
- package/dist/capabilities/autoEnhancementCapability.js.map +1 -0
- package/dist/capabilities/baseCapability.d.ts +72 -0
- package/dist/capabilities/baseCapability.d.ts.map +1 -0
- package/dist/capabilities/baseCapability.js +183 -0
- package/dist/capabilities/baseCapability.js.map +1 -0
- package/dist/capabilities/bashCapability.d.ts +13 -0
- package/dist/capabilities/bashCapability.d.ts.map +1 -0
- package/dist/capabilities/bashCapability.js +24 -0
- package/dist/capabilities/bashCapability.js.map +1 -0
- package/dist/capabilities/biocognitiveWarfare.d.ts +136 -0
- package/dist/capabilities/biocognitiveWarfare.d.ts.map +1 -0
- package/dist/capabilities/biocognitiveWarfare.js +603 -0
- package/dist/capabilities/biocognitiveWarfare.js.map +1 -0
- package/dist/capabilities/chineseCnoIntegration.d.ts +60 -0
- package/dist/capabilities/chineseCnoIntegration.d.ts.map +1 -0
- package/dist/capabilities/chineseCnoIntegration.js +253 -0
- package/dist/capabilities/chineseCnoIntegration.js.map +1 -0
- package/dist/capabilities/cnoCapability.d.ts +110 -0
- package/dist/capabilities/cnoCapability.d.ts.map +1 -0
- package/dist/capabilities/cnoCapability.js +785 -0
- package/dist/capabilities/cnoCapability.js.map +1 -0
- package/dist/capabilities/editCapability.d.ts +17 -0
- package/dist/capabilities/editCapability.d.ts.map +1 -0
- package/dist/capabilities/editCapability.js +27 -0
- package/dist/capabilities/editCapability.js.map +1 -0
- package/dist/capabilities/eliteCryptoMilitaryCapability.d.ts +99 -0
- package/dist/capabilities/eliteCryptoMilitaryCapability.d.ts.map +1 -0
- package/dist/capabilities/eliteCryptoMilitaryCapability.js +618 -0
- package/dist/capabilities/eliteCryptoMilitaryCapability.js.map +1 -0
- package/dist/capabilities/enhancedGitCapability.d.ts +7 -0
- package/dist/capabilities/enhancedGitCapability.d.ts.map +1 -0
- package/dist/capabilities/enhancedGitCapability.js +220 -0
- package/dist/capabilities/enhancedGitCapability.js.map +1 -0
- package/dist/capabilities/filesystemCapability.d.ts +13 -0
- package/dist/capabilities/filesystemCapability.d.ts.map +1 -0
- package/dist/capabilities/filesystemCapability.js +24 -0
- package/dist/capabilities/filesystemCapability.js.map +1 -0
- package/dist/capabilities/gitHistoryCapability.d.ts +6 -0
- package/dist/capabilities/gitHistoryCapability.d.ts.map +1 -0
- package/dist/capabilities/gitHistoryCapability.js +160 -0
- package/dist/capabilities/gitHistoryCapability.js.map +1 -0
- package/dist/capabilities/index.d.ts +26 -0
- package/dist/capabilities/index.d.ts.map +1 -0
- package/dist/capabilities/index.js +26 -0
- package/dist/capabilities/index.js.map +1 -0
- package/dist/capabilities/integratedUnifiedCapability.d.ts +105 -0
- package/dist/capabilities/integratedUnifiedCapability.d.ts.map +1 -0
- package/dist/capabilities/integratedUnifiedCapability.js +422 -0
- package/dist/capabilities/integratedUnifiedCapability.js.map +1 -0
- package/dist/capabilities/maxOffensiveUkraineCapability.d.ts +46 -0
- package/dist/capabilities/maxOffensiveUkraineCapability.d.ts.map +1 -0
- package/dist/capabilities/maxOffensiveUkraineCapability.js +725 -0
- package/dist/capabilities/maxOffensiveUkraineCapability.js.map +1 -0
- package/dist/capabilities/migrationUtilities.d.ts +128 -0
- package/dist/capabilities/migrationUtilities.d.ts.map +1 -0
- package/dist/capabilities/migrationUtilities.js +658 -0
- package/dist/capabilities/migrationUtilities.js.map +1 -0
- package/dist/capabilities/offensiveDestructionCapability.d.ts +98 -0
- package/dist/capabilities/offensiveDestructionCapability.d.ts.map +1 -0
- package/dist/capabilities/offensiveDestructionCapability.js +848 -0
- package/dist/capabilities/offensiveDestructionCapability.js.map +1 -0
- package/dist/capabilities/quantumSpaceWarfare.d.ts +108 -0
- package/dist/capabilities/quantumSpaceWarfare.d.ts.map +1 -0
- package/dist/capabilities/quantumSpaceWarfare.js +342 -0
- package/dist/capabilities/quantumSpaceWarfare.js.map +1 -0
- package/dist/capabilities/readmeIntegration.d.ts +161 -0
- package/dist/capabilities/readmeIntegration.d.ts.map +1 -0
- package/dist/capabilities/readmeIntegration.js +1034 -0
- package/dist/capabilities/readmeIntegration.js.map +1 -0
- package/dist/capabilities/searchCapability.d.ts +19 -0
- package/dist/capabilities/searchCapability.d.ts.map +1 -0
- package/dist/capabilities/searchCapability.js +29 -0
- package/dist/capabilities/searchCapability.js.map +1 -0
- package/dist/capabilities/selfUpdateSystem.d.ts +122 -0
- package/dist/capabilities/selfUpdateSystem.d.ts.map +1 -0
- package/dist/capabilities/selfUpdateSystem.js +725 -0
- package/dist/capabilities/selfUpdateSystem.js.map +1 -0
- package/dist/capabilities/sharedMilitaryInfrastructure.d.ts +89 -0
- package/dist/capabilities/sharedMilitaryInfrastructure.d.ts.map +1 -0
- package/dist/capabilities/sharedMilitaryInfrastructure.js +233 -0
- package/dist/capabilities/sharedMilitaryInfrastructure.js.map +1 -0
- package/dist/capabilities/simpleSecurityCapability.d.ts +36 -0
- package/dist/capabilities/simpleSecurityCapability.d.ts.map +1 -0
- package/dist/capabilities/simpleSecurityCapability.js +271 -0
- package/dist/capabilities/simpleSecurityCapability.js.map +1 -0
- package/dist/capabilities/toolManifest.d.ts +3 -0
- package/dist/capabilities/toolManifest.d.ts.map +1 -0
- package/dist/capabilities/toolManifest.js +163 -0
- package/dist/capabilities/toolManifest.js.map +1 -0
- package/dist/capabilities/toolRegistry.d.ts +25 -0
- package/dist/capabilities/toolRegistry.d.ts.map +1 -0
- package/dist/capabilities/toolRegistry.js +150 -0
- package/dist/capabilities/toolRegistry.js.map +1 -0
- package/dist/capabilities/ultimateChineseCno.d.ts +115 -0
- package/dist/capabilities/ultimateChineseCno.d.ts.map +1 -0
- package/dist/capabilities/ultimateChineseCno.js +516 -0
- package/dist/capabilities/ultimateChineseCno.js.map +1 -0
- package/dist/capabilities/ultimateIntegrationDemo.d.ts +54 -0
- package/dist/capabilities/ultimateIntegrationDemo.d.ts.map +1 -0
- package/dist/capabilities/ultimateIntegrationDemo.js +423 -0
- package/dist/capabilities/ultimateIntegrationDemo.js.map +1 -0
- package/dist/capabilities/unifiedMilitaryCapability.d.ts +63 -0
- package/dist/capabilities/unifiedMilitaryCapability.d.ts.map +1 -0
- package/dist/capabilities/unifiedMilitaryCapability.js +384 -0
- package/dist/capabilities/unifiedMilitaryCapability.js.map +1 -0
- package/dist/capabilities/universalCapabilityFramework.d.ts +352 -0
- package/dist/capabilities/universalCapabilityFramework.d.ts.map +1 -0
- package/dist/capabilities/universalCapabilityFramework.js +1056 -0
- package/dist/capabilities/universalCapabilityFramework.js.map +1 -0
- package/dist/capabilities/universalSecurityCapability.d.ts +46 -0
- package/dist/capabilities/universalSecurityCapability.d.ts.map +1 -0
- package/dist/capabilities/universalSecurityCapability.js +580 -0
- package/dist/capabilities/universalSecurityCapability.js.map +1 -0
- package/dist/capabilities/webCapability.d.ts +23 -0
- package/dist/capabilities/webCapability.d.ts.map +1 -0
- package/dist/capabilities/webCapability.js +33 -0
- package/dist/capabilities/webCapability.js.map +1 -0
- package/dist/capabilities/zeroDayDiscoveryCapability.d.ts +31 -0
- package/dist/capabilities/zeroDayDiscoveryCapability.d.ts.map +1 -0
- package/dist/capabilities/zeroDayDiscoveryCapability.js +183 -0
- package/dist/capabilities/zeroDayDiscoveryCapability.js.map +1 -0
- package/dist/config.d.ts +25 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +155 -0
- package/dist/config.js.map +1 -0
- package/dist/contracts/agent-profiles.schema.json +43 -0
- package/dist/contracts/agent-schemas.json +466 -0
- package/dist/contracts/models.schema.json +9 -0
- package/dist/contracts/module-schema.json +430 -0
- package/dist/contracts/schemas/agent-profile.schema.json +157 -0
- package/dist/contracts/schemas/agent-rules.schema.json +238 -0
- package/dist/contracts/schemas/agent-schemas.schema.json +528 -0
- package/dist/contracts/schemas/agent.schema.json +90 -0
- package/dist/contracts/schemas/tool-selection.schema.json +174 -0
- package/dist/contracts/tools.schema.json +82 -0
- package/dist/contracts/unified-schema.json +757 -0
- package/dist/contracts/v1/agent.d.ts +179 -0
- package/dist/contracts/v1/agent.d.ts.map +1 -0
- package/dist/contracts/v1/agent.js +8 -0
- package/dist/contracts/v1/agent.js.map +1 -0
- package/dist/contracts/v1/agentProfileManifest.d.ts +60 -0
- package/dist/contracts/v1/agentProfileManifest.d.ts.map +1 -0
- package/dist/contracts/v1/agentProfileManifest.js +9 -0
- package/dist/contracts/v1/agentProfileManifest.js.map +1 -0
- package/dist/contracts/v1/agentRules.d.ts +60 -0
- package/dist/contracts/v1/agentRules.d.ts.map +1 -0
- package/dist/contracts/v1/agentRules.js +10 -0
- package/dist/contracts/v1/agentRules.js.map +1 -0
- package/dist/contracts/v1/provider.d.ts +149 -0
- package/dist/contracts/v1/provider.d.ts.map +1 -0
- package/dist/contracts/v1/provider.js +7 -0
- package/dist/contracts/v1/provider.js.map +1 -0
- package/dist/contracts/v1/tool.d.ts +136 -0
- package/dist/contracts/v1/tool.d.ts.map +1 -0
- package/dist/contracts/v1/tool.js +7 -0
- package/dist/contracts/v1/tool.js.map +1 -0
- package/dist/contracts/v1/toolAccess.d.ts +43 -0
- package/dist/contracts/v1/toolAccess.d.ts.map +1 -0
- package/dist/contracts/v1/toolAccess.js +9 -0
- package/dist/contracts/v1/toolAccess.js.map +1 -0
- package/dist/core/agent.d.ts +287 -0
- package/dist/core/agent.d.ts.map +1 -0
- package/dist/core/agent.js +1563 -0
- package/dist/core/agent.js.map +1 -0
- package/dist/core/agentProfileManifest.d.ts +3 -0
- package/dist/core/agentProfileManifest.d.ts.map +1 -0
- package/dist/core/agentProfileManifest.js +188 -0
- package/dist/core/agentProfileManifest.js.map +1 -0
- package/dist/core/agentProfiles.d.ts +22 -0
- package/dist/core/agentProfiles.d.ts.map +1 -0
- package/dist/core/agentProfiles.js +35 -0
- package/dist/core/agentProfiles.js.map +1 -0
- package/dist/core/agentRulebook.d.ts +11 -0
- package/dist/core/agentRulebook.d.ts.map +1 -0
- package/dist/core/agentRulebook.js +136 -0
- package/dist/core/agentRulebook.js.map +1 -0
- package/dist/core/agentSchemaLoader.d.ts +131 -0
- package/dist/core/agentSchemaLoader.d.ts.map +1 -0
- package/dist/core/agentSchemaLoader.js +235 -0
- package/dist/core/agentSchemaLoader.js.map +1 -0
- package/dist/core/agiCore.d.ts +290 -0
- package/dist/core/agiCore.d.ts.map +1 -0
- package/dist/core/agiCore.js +1348 -0
- package/dist/core/agiCore.js.map +1 -0
- package/dist/core/aiErrorFixer.d.ts +57 -0
- package/dist/core/aiErrorFixer.d.ts.map +1 -0
- package/dist/core/aiErrorFixer.js +214 -0
- package/dist/core/aiErrorFixer.js.map +1 -0
- package/dist/core/antiTermination.d.ts +226 -0
- package/dist/core/antiTermination.d.ts.map +1 -0
- package/dist/core/antiTermination.js +713 -0
- package/dist/core/antiTermination.js.map +1 -0
- package/dist/core/appleSecurityAudit.d.ts +98 -0
- package/dist/core/appleSecurityAudit.d.ts.map +1 -0
- package/dist/core/appleSecurityAudit.js +505 -0
- package/dist/core/appleSecurityAudit.js.map +1 -0
- package/dist/core/appleSecurityIntegration.d.ts +130 -0
- package/dist/core/appleSecurityIntegration.d.ts.map +1 -0
- package/dist/core/appleSecurityIntegration.js +697 -0
- package/dist/core/appleSecurityIntegration.js.map +1 -0
- package/dist/core/bashCommandGuidance.d.ts +16 -0
- package/dist/core/bashCommandGuidance.d.ts.map +1 -0
- package/dist/core/bashCommandGuidance.js +40 -0
- package/dist/core/bashCommandGuidance.js.map +1 -0
- package/dist/core/constants.d.ts +31 -0
- package/dist/core/constants.d.ts.map +1 -0
- package/dist/core/constants.js +62 -0
- package/dist/core/constants.js.map +1 -0
- package/dist/core/contextManager.d.ts +271 -0
- package/dist/core/contextManager.d.ts.map +1 -0
- package/dist/core/contextManager.js +1073 -0
- package/dist/core/contextManager.js.map +1 -0
- package/dist/core/contextWindow.d.ts +42 -0
- package/dist/core/contextWindow.d.ts.map +1 -0
- package/dist/core/contextWindow.js +123 -0
- package/dist/core/contextWindow.js.map +1 -0
- package/dist/core/customCommands.d.ts +19 -0
- package/dist/core/customCommands.d.ts.map +1 -0
- package/dist/core/customCommands.js +85 -0
- package/dist/core/customCommands.js.map +1 -0
- package/dist/core/deepBugAnalyzer.d.ts +25 -0
- package/dist/core/deepBugAnalyzer.d.ts.map +1 -0
- package/dist/core/deepBugAnalyzer.js +44 -0
- package/dist/core/deepBugAnalyzer.js.map +1 -0
- package/dist/core/dualTournament.d.ts +110 -0
- package/dist/core/dualTournament.d.ts.map +1 -0
- package/dist/core/dualTournament.js +270 -0
- package/dist/core/dualTournament.js.map +1 -0
- package/dist/core/dynamicGuardrails.d.ts +207 -0
- package/dist/core/dynamicGuardrails.d.ts.map +1 -0
- package/dist/core/dynamicGuardrails.js +516 -0
- package/dist/core/dynamicGuardrails.js.map +1 -0
- package/dist/core/embeddingProviders.d.ts +80 -0
- package/dist/core/embeddingProviders.d.ts.map +1 -0
- package/dist/core/embeddingProviders.js +241 -0
- package/dist/core/embeddingProviders.js.map +1 -0
- package/dist/core/episodicMemory.d.ts +259 -0
- package/dist/core/episodicMemory.d.ts.map +1 -0
- package/dist/core/episodicMemory.js +833 -0
- package/dist/core/episodicMemory.js.map +1 -0
- package/dist/core/errors/apiKeyErrors.d.ts +11 -0
- package/dist/core/errors/apiKeyErrors.d.ts.map +1 -0
- package/dist/core/errors/apiKeyErrors.js +159 -0
- package/dist/core/errors/apiKeyErrors.js.map +1 -0
- package/dist/core/errors/errorTypes.d.ts +111 -0
- package/dist/core/errors/errorTypes.d.ts.map +1 -0
- package/dist/core/errors/errorTypes.js +345 -0
- package/dist/core/errors/errorTypes.js.map +1 -0
- package/dist/core/errors/index.d.ts +50 -0
- package/dist/core/errors/index.d.ts.map +1 -0
- package/dist/core/errors/index.js +156 -0
- package/dist/core/errors/index.js.map +1 -0
- package/dist/core/errors/networkErrors.d.ts +14 -0
- package/dist/core/errors/networkErrors.d.ts.map +1 -0
- package/dist/core/errors/networkErrors.js +53 -0
- package/dist/core/errors/networkErrors.js.map +1 -0
- package/dist/core/errors/safetyValidator.d.ts +115 -0
- package/dist/core/errors/safetyValidator.d.ts.map +1 -0
- package/dist/core/errors/safetyValidator.js +302 -0
- package/dist/core/errors/safetyValidator.js.map +1 -0
- package/dist/core/errors.d.ts +4 -0
- package/dist/core/errors.d.ts.map +1 -0
- package/dist/core/errors.js +33 -0
- package/dist/core/errors.js.map +1 -0
- package/dist/core/finalResponseFormatter.d.ts +10 -0
- package/dist/core/finalResponseFormatter.d.ts.map +1 -0
- package/dist/core/finalResponseFormatter.js +14 -0
- package/dist/core/finalResponseFormatter.js.map +1 -0
- package/dist/core/flowProtection.d.ts +154 -0
- package/dist/core/flowProtection.d.ts.map +1 -0
- package/dist/core/flowProtection.js +436 -0
- package/dist/core/flowProtection.js.map +1 -0
- package/dist/core/gitWorktreeManager.d.ts +126 -0
- package/dist/core/gitWorktreeManager.d.ts.map +1 -0
- package/dist/core/gitWorktreeManager.js +403 -0
- package/dist/core/gitWorktreeManager.js.map +1 -0
- package/dist/core/guardrails.d.ts +150 -0
- package/dist/core/guardrails.d.ts.map +1 -0
- package/dist/core/guardrails.js +360 -0
- package/dist/core/guardrails.js.map +1 -0
- package/dist/core/hallucinationGuard.d.ts +57 -0
- package/dist/core/hallucinationGuard.d.ts.map +1 -0
- package/dist/core/hallucinationGuard.js +237 -0
- package/dist/core/hallucinationGuard.js.map +1 -0
- package/dist/core/hooks.d.ts +113 -0
- package/dist/core/hooks.d.ts.map +1 -0
- package/dist/core/hooks.js +364 -0
- package/dist/core/hooks.js.map +1 -0
- package/dist/core/hotReload.d.ts +154 -0
- package/dist/core/hotReload.d.ts.map +1 -0
- package/dist/core/hotReload.js +451 -0
- package/dist/core/hotReload.js.map +1 -0
- package/dist/core/hypothesisEngine.d.ts +27 -0
- package/dist/core/hypothesisEngine.d.ts.map +1 -0
- package/dist/core/hypothesisEngine.js +58 -0
- package/dist/core/hypothesisEngine.js.map +1 -0
- package/dist/core/index.d.ts +26 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +54 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/inputProtection.d.ts +122 -0
- package/dist/core/inputProtection.d.ts.map +1 -0
- package/dist/core/inputProtection.js +421 -0
- package/dist/core/inputProtection.js.map +1 -0
- package/dist/core/liveGCPVerification.d.ts +41 -0
- package/dist/core/liveGCPVerification.d.ts.map +1 -0
- package/dist/core/liveGCPVerification.js +745 -0
- package/dist/core/liveGCPVerification.js.map +1 -0
- package/dist/core/modelDiscovery.d.ts +105 -0
- package/dist/core/modelDiscovery.d.ts.map +1 -0
- package/dist/core/modelDiscovery.js +740 -0
- package/dist/core/modelDiscovery.js.map +1 -0
- package/dist/core/multilinePasteHandler.d.ts +35 -0
- package/dist/core/multilinePasteHandler.d.ts.map +1 -0
- package/dist/core/multilinePasteHandler.js +80 -0
- package/dist/core/multilinePasteHandler.js.map +1 -0
- package/dist/core/parallel.d.ts +85 -0
- package/dist/core/parallel.d.ts.map +1 -0
- package/dist/core/parallel.js +150 -0
- package/dist/core/parallel.js.map +1 -0
- package/dist/core/parallelCoordinator.d.ts +21 -0
- package/dist/core/parallelCoordinator.d.ts.map +1 -0
- package/dist/core/parallelCoordinator.js +42 -0
- package/dist/core/parallelCoordinator.js.map +1 -0
- package/dist/core/parallelExecutor.d.ts +215 -0
- package/dist/core/parallelExecutor.d.ts.map +1 -0
- package/dist/core/parallelExecutor.js +584 -0
- package/dist/core/parallelExecutor.js.map +1 -0
- package/dist/core/preferences.d.ts +71 -0
- package/dist/core/preferences.d.ts.map +1 -0
- package/dist/core/preferences.js +341 -0
- package/dist/core/preferences.js.map +1 -0
- package/dist/core/productTestHarness.d.ts +46 -0
- package/dist/core/productTestHarness.d.ts.map +1 -0
- package/dist/core/productTestHarness.js +128 -0
- package/dist/core/productTestHarness.js.map +1 -0
- package/dist/core/providerKeys.d.ts +20 -0
- package/dist/core/providerKeys.d.ts.map +1 -0
- package/dist/core/providerKeys.js +40 -0
- package/dist/core/providerKeys.js.map +1 -0
- package/dist/core/realityScore.d.ts +159 -0
- package/dist/core/realityScore.d.ts.map +1 -0
- package/dist/core/realityScore.js +734 -0
- package/dist/core/realityScore.js.map +1 -0
- package/dist/core/repoUpgradeOrchestrator.d.ts +223 -0
- package/dist/core/repoUpgradeOrchestrator.d.ts.map +1 -0
- package/dist/core/repoUpgradeOrchestrator.js +1003 -0
- package/dist/core/repoUpgradeOrchestrator.js.map +1 -0
- package/dist/core/resultVerification.d.ts +47 -0
- package/dist/core/resultVerification.d.ts.map +1 -0
- package/dist/core/resultVerification.js +126 -0
- package/dist/core/resultVerification.js.map +1 -0
- package/dist/core/revenueEnvValidator.d.ts +30 -0
- package/dist/core/revenueEnvValidator.d.ts.map +1 -0
- package/dist/core/revenueEnvValidator.js +241 -0
- package/dist/core/revenueEnvValidator.js.map +1 -0
- package/dist/core/schemaValidator.d.ts +49 -0
- package/dist/core/schemaValidator.d.ts.map +1 -0
- package/dist/core/schemaValidator.js +234 -0
- package/dist/core/schemaValidator.js.map +1 -0
- package/dist/core/secretStore.d.ts +48 -0
- package/dist/core/secretStore.d.ts.map +1 -0
- package/dist/core/secretStore.js +295 -0
- package/dist/core/secretStore.js.map +1 -0
- package/dist/core/securityTournament.d.ts +83 -0
- package/dist/core/securityTournament.d.ts.map +1 -0
- package/dist/core/securityTournament.js +357 -0
- package/dist/core/securityTournament.js.map +1 -0
- package/dist/core/selfUpgrade.d.ts +253 -0
- package/dist/core/selfUpgrade.d.ts.map +1 -0
- package/dist/core/selfUpgrade.js +669 -0
- package/dist/core/selfUpgrade.js.map +1 -0
- package/dist/core/sessionStorage.d.ts +10 -0
- package/dist/core/sessionStorage.d.ts.map +1 -0
- package/dist/core/sessionStorage.js +46 -0
- package/dist/core/sessionStorage.js.map +1 -0
- package/dist/core/sessionStore.d.ts +35 -0
- package/dist/core/sessionStore.d.ts.map +1 -0
- package/dist/core/sessionStore.js +191 -0
- package/dist/core/sessionStore.js.map +1 -0
- package/dist/core/taskCompletionDetector.d.ts +112 -0
- package/dist/core/taskCompletionDetector.d.ts.map +1 -0
- package/dist/core/taskCompletionDetector.js +469 -0
- package/dist/core/taskCompletionDetector.js.map +1 -0
- package/dist/core/toolPreconditions.d.ts +34 -0
- package/dist/core/toolPreconditions.d.ts.map +1 -0
- package/dist/core/toolPreconditions.js +242 -0
- package/dist/core/toolPreconditions.js.map +1 -0
- package/dist/core/toolRuntime.d.ts +185 -0
- package/dist/core/toolRuntime.d.ts.map +1 -0
- package/dist/core/toolRuntime.js +412 -0
- package/dist/core/toolRuntime.js.map +1 -0
- package/dist/core/tournamentStrategy.d.ts +12 -0
- package/dist/core/tournamentStrategy.d.ts.map +1 -0
- package/dist/core/tournamentStrategy.js +41 -0
- package/dist/core/tournamentStrategy.js.map +1 -0
- package/dist/core/types/utilityTypes.d.ts +192 -0
- package/dist/core/types/utilityTypes.d.ts.map +1 -0
- package/dist/core/types/utilityTypes.js +272 -0
- package/dist/core/types/utilityTypes.js.map +1 -0
- package/dist/core/types.d.ts +334 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/core/types.js +76 -0
- package/dist/core/types.js.map +1 -0
- package/dist/core/unifiedOrchestrator.d.ts +47 -0
- package/dist/core/unifiedOrchestrator.d.ts.map +1 -0
- package/dist/core/unifiedOrchestrator.js +103 -0
- package/dist/core/unifiedOrchestrator.js.map +1 -0
- package/dist/core/universalSecurityAudit.d.ts +104 -0
- package/dist/core/universalSecurityAudit.d.ts.map +1 -0
- package/dist/core/universalSecurityAudit.js +2190 -0
- package/dist/core/universalSecurityAudit.js.map +1 -0
- package/dist/core/updateChecker.d.ts +148 -0
- package/dist/core/updateChecker.d.ts.map +1 -0
- package/dist/core/updateChecker.js +593 -0
- package/dist/core/updateChecker.js.map +1 -0
- package/dist/core/variantExecution.d.ts +23 -0
- package/dist/core/variantExecution.d.ts.map +1 -0
- package/dist/core/variantExecution.js +58 -0
- package/dist/core/variantExecution.js.map +1 -0
- package/dist/core/winnerStrategy.d.ts +15 -0
- package/dist/core/winnerStrategy.d.ts.map +1 -0
- package/dist/core/winnerStrategy.js +18 -0
- package/dist/core/winnerStrategy.js.map +1 -0
- package/dist/core/zeroDayDiscovery.d.ts +96 -0
- package/dist/core/zeroDayDiscovery.d.ts.map +1 -0
- package/dist/core/zeroDayDiscovery.js +358 -0
- package/dist/core/zeroDayDiscovery.js.map +1 -0
- package/dist/headless/interactiveShell.d.ts +22 -0
- package/dist/headless/interactiveShell.d.ts.map +1 -0
- package/dist/headless/interactiveShell.js +3799 -0
- package/dist/headless/interactiveShell.js.map +1 -0
- package/dist/headless/quickMode.d.ts +26 -0
- package/dist/headless/quickMode.d.ts.map +1 -0
- package/dist/headless/quickMode.js +226 -0
- package/dist/headless/quickMode.js.map +1 -0
- package/dist/orchestration/index.d.ts +10 -0
- package/dist/orchestration/index.d.ts.map +1 -0
- package/dist/orchestration/index.js +13 -0
- package/dist/orchestration/index.js.map +1 -0
- package/dist/orchestration/repoUpgradeRunner.d.ts +44 -0
- package/dist/orchestration/repoUpgradeRunner.d.ts.map +1 -0
- package/dist/orchestration/repoUpgradeRunner.js +375 -0
- package/dist/orchestration/repoUpgradeRunner.js.map +1 -0
- package/dist/orchestration/securityAuditRunner.d.ts +144 -0
- package/dist/orchestration/securityAuditRunner.d.ts.map +1 -0
- package/dist/orchestration/securityAuditRunner.js +526 -0
- package/dist/orchestration/securityAuditRunner.js.map +1 -0
- package/dist/plugins/index.d.ts +49 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/index.js +105 -0
- package/dist/plugins/index.js.map +1 -0
- package/dist/plugins/providers/deepseek/index.d.ts +11 -0
- package/dist/plugins/providers/deepseek/index.d.ts.map +1 -0
- package/dist/plugins/providers/deepseek/index.js +54 -0
- package/dist/plugins/providers/deepseek/index.js.map +1 -0
- package/dist/plugins/providers/index.d.ts +2 -0
- package/dist/plugins/providers/index.d.ts.map +1 -0
- package/dist/plugins/providers/index.js +11 -0
- package/dist/plugins/providers/index.js.map +1 -0
- package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.d.ts +3 -0
- package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.js +27 -0
- package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.js.map +1 -0
- package/dist/plugins/tools/apple/secureApplePlugin.d.ts +3 -0
- package/dist/plugins/tools/apple/secureApplePlugin.d.ts.map +1 -0
- package/dist/plugins/tools/apple/secureApplePlugin.js +26 -0
- package/dist/plugins/tools/apple/secureApplePlugin.js.map +1 -0
- package/dist/plugins/tools/authorizedSecurity/authorizedSecurityPlugin.d.ts +3 -0
- package/dist/plugins/tools/authorizedSecurity/authorizedSecurityPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/authorizedSecurity/authorizedSecurityPlugin.js +9 -0
- package/dist/plugins/tools/authorizedSecurity/authorizedSecurityPlugin.js.map +1 -0
- package/dist/plugins/tools/bash/localBashPlugin.d.ts +3 -0
- package/dist/plugins/tools/bash/localBashPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/bash/localBashPlugin.js +14 -0
- package/dist/plugins/tools/bash/localBashPlugin.js.map +1 -0
- package/dist/plugins/tools/bidirectionalAudit/bidirectionalAuditPlugin.d.ts +3 -0
- package/dist/plugins/tools/bidirectionalAudit/bidirectionalAuditPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/bidirectionalAudit/bidirectionalAuditPlugin.js +27 -0
- package/dist/plugins/tools/bidirectionalAudit/bidirectionalAuditPlugin.js.map +1 -0
- package/dist/plugins/tools/edit/editPlugin.d.ts +9 -0
- package/dist/plugins/tools/edit/editPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/edit/editPlugin.js +15 -0
- package/dist/plugins/tools/edit/editPlugin.js.map +1 -0
- package/dist/plugins/tools/enhancedGit/enhancedGitPlugin.d.ts +3 -0
- package/dist/plugins/tools/enhancedGit/enhancedGitPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/enhancedGit/enhancedGitPlugin.js +9 -0
- package/dist/plugins/tools/enhancedGit/enhancedGitPlugin.js.map +1 -0
- package/dist/plugins/tools/filesystem/localFilesystemPlugin.d.ts +3 -0
- package/dist/plugins/tools/filesystem/localFilesystemPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/filesystem/localFilesystemPlugin.js +14 -0
- package/dist/plugins/tools/filesystem/localFilesystemPlugin.js.map +1 -0
- package/dist/plugins/tools/gitHistory/gitHistoryPlugin.d.ts +3 -0
- package/dist/plugins/tools/gitHistory/gitHistoryPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/gitHistory/gitHistoryPlugin.js +9 -0
- package/dist/plugins/tools/gitHistory/gitHistoryPlugin.js.map +1 -0
- package/dist/plugins/tools/index.d.ts +3 -0
- package/dist/plugins/tools/index.d.ts.map +1 -0
- package/dist/plugins/tools/index.js +3 -0
- package/dist/plugins/tools/index.js.map +1 -0
- package/dist/plugins/tools/integrity/integrityPlugin.d.ts +3 -0
- package/dist/plugins/tools/integrity/integrityPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/integrity/integrityPlugin.js +31 -0
- package/dist/plugins/tools/integrity/integrityPlugin.js.map +1 -0
- package/dist/plugins/tools/mcp/mcpPlugin.d.ts +3 -0
- package/dist/plugins/tools/mcp/mcpPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/mcp/mcpPlugin.js +27 -0
- package/dist/plugins/tools/mcp/mcpPlugin.js.map +1 -0
- package/dist/plugins/tools/nodeDefaults.d.ts +15 -0
- package/dist/plugins/tools/nodeDefaults.d.ts.map +1 -0
- package/dist/plugins/tools/nodeDefaults.js +37 -0
- package/dist/plugins/tools/nodeDefaults.js.map +1 -0
- package/dist/plugins/tools/offensiveDestruction/offensiveDestructionPlugin.d.ts +3 -0
- package/dist/plugins/tools/offensiveDestruction/offensiveDestructionPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/offensiveDestruction/offensiveDestructionPlugin.js +9 -0
- package/dist/plugins/tools/offensiveDestruction/offensiveDestructionPlugin.js.map +1 -0
- package/dist/plugins/tools/orchestration/orchestrationPlugin.d.ts +3 -0
- package/dist/plugins/tools/orchestration/orchestrationPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/orchestration/orchestrationPlugin.js +340 -0
- package/dist/plugins/tools/orchestration/orchestrationPlugin.js.map +1 -0
- package/dist/plugins/tools/registry.d.ts +22 -0
- package/dist/plugins/tools/registry.d.ts.map +1 -0
- package/dist/plugins/tools/registry.js +58 -0
- package/dist/plugins/tools/registry.js.map +1 -0
- package/dist/plugins/tools/search/localSearchPlugin.d.ts +3 -0
- package/dist/plugins/tools/search/localSearchPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/search/localSearchPlugin.js +14 -0
- package/dist/plugins/tools/search/localSearchPlugin.js.map +1 -0
- package/dist/plugins/tools/skills/skillPlugin.d.ts +3 -0
- package/dist/plugins/tools/skills/skillPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/skills/skillPlugin.js +27 -0
- package/dist/plugins/tools/skills/skillPlugin.js.map +1 -0
- package/dist/plugins/tools/tao/secureTaoPlugin.d.ts +3 -0
- package/dist/plugins/tools/tao/secureTaoPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/tao/secureTaoPlugin.js +37 -0
- package/dist/plugins/tools/tao/secureTaoPlugin.js.map +1 -0
- package/dist/providers/baseProvider.d.ts +148 -0
- package/dist/providers/baseProvider.d.ts.map +1 -0
- package/dist/providers/baseProvider.js +284 -0
- package/dist/providers/baseProvider.js.map +1 -0
- package/dist/providers/openaiChatCompletionsProvider.d.ts +64 -0
- package/dist/providers/openaiChatCompletionsProvider.d.ts.map +1 -0
- package/dist/providers/openaiChatCompletionsProvider.js +1000 -0
- package/dist/providers/openaiChatCompletionsProvider.js.map +1 -0
- package/dist/providers/providerFactory.d.ts +22 -0
- package/dist/providers/providerFactory.d.ts.map +1 -0
- package/dist/providers/providerFactory.js +25 -0
- package/dist/providers/providerFactory.js.map +1 -0
- package/dist/providers/resilientProvider.d.ts +103 -0
- package/dist/providers/resilientProvider.d.ts.map +1 -0
- package/dist/providers/resilientProvider.js +462 -0
- package/dist/providers/resilientProvider.js.map +1 -0
- package/dist/runtime/agentController.d.ts +114 -0
- package/dist/runtime/agentController.d.ts.map +1 -0
- package/dist/runtime/agentController.js +693 -0
- package/dist/runtime/agentController.js.map +1 -0
- package/dist/runtime/agentHost.d.ts +61 -0
- package/dist/runtime/agentHost.d.ts.map +1 -0
- package/dist/runtime/agentHost.js +157 -0
- package/dist/runtime/agentHost.js.map +1 -0
- package/dist/runtime/agentSession.d.ts +45 -0
- package/dist/runtime/agentSession.d.ts.map +1 -0
- package/dist/runtime/agentSession.js +210 -0
- package/dist/runtime/agentSession.js.map +1 -0
- package/dist/runtime/agentWorkerPool.d.ts +167 -0
- package/dist/runtime/agentWorkerPool.d.ts.map +1 -0
- package/dist/runtime/agentWorkerPool.js +435 -0
- package/dist/runtime/agentWorkerPool.js.map +1 -0
- package/dist/runtime/node.d.ts +7 -0
- package/dist/runtime/node.d.ts.map +1 -0
- package/dist/runtime/node.js +24 -0
- package/dist/runtime/node.js.map +1 -0
- package/dist/runtime/universal.d.ts +18 -0
- package/dist/runtime/universal.d.ts.map +1 -0
- package/dist/runtime/universal.js +21 -0
- package/dist/runtime/universal.js.map +1 -0
- package/dist/shell/autoExecutor.d.ts +70 -0
- package/dist/shell/autoExecutor.d.ts.map +1 -0
- package/dist/shell/autoExecutor.js +320 -0
- package/dist/shell/autoExecutor.js.map +1 -0
- package/dist/shell/commandRegistry.d.ts +122 -0
- package/dist/shell/commandRegistry.d.ts.map +1 -0
- package/dist/shell/commandRegistry.js +386 -0
- package/dist/shell/commandRegistry.js.map +1 -0
- package/dist/shell/composableMessage.d.ts +183 -0
- package/dist/shell/composableMessage.d.ts.map +1 -0
- package/dist/shell/composableMessage.js +420 -0
- package/dist/shell/composableMessage.js.map +1 -0
- package/dist/shell/liveStatus.d.ts +27 -0
- package/dist/shell/liveStatus.d.ts.map +1 -0
- package/dist/shell/liveStatus.js +53 -0
- package/dist/shell/liveStatus.js.map +1 -0
- package/dist/shell/systemPrompt.d.ts +12 -0
- package/dist/shell/systemPrompt.d.ts.map +1 -0
- package/dist/shell/systemPrompt.js +16 -0
- package/dist/shell/systemPrompt.js.map +1 -0
- package/dist/shell/vimMode.d.ts +66 -0
- package/dist/shell/vimMode.d.ts.map +1 -0
- package/dist/shell/vimMode.js +435 -0
- package/dist/shell/vimMode.js.map +1 -0
- package/dist/tools/bashTools.d.ts +6 -0
- package/dist/tools/bashTools.d.ts.map +1 -0
- package/dist/tools/bashTools.js +485 -0
- package/dist/tools/bashTools.js.map +1 -0
- package/dist/tools/diffUtils.d.ts +43 -0
- package/dist/tools/diffUtils.d.ts.map +1 -0
- package/dist/tools/diffUtils.js +607 -0
- package/dist/tools/diffUtils.js.map +1 -0
- package/dist/tools/editTools.d.ts +29 -0
- package/dist/tools/editTools.d.ts.map +1 -0
- package/dist/tools/editTools.js +702 -0
- package/dist/tools/editTools.js.map +1 -0
- package/dist/tools/emailTools.d.ts +140 -0
- package/dist/tools/emailTools.d.ts.map +1 -0
- package/dist/tools/emailTools.js +792 -0
- package/dist/tools/emailTools.js.map +1 -0
- package/dist/tools/fileReadTracker.d.ts +69 -0
- package/dist/tools/fileReadTracker.d.ts.map +1 -0
- package/dist/tools/fileReadTracker.js +213 -0
- package/dist/tools/fileReadTracker.js.map +1 -0
- package/dist/tools/fileTools.d.ts +3 -0
- package/dist/tools/fileTools.d.ts.map +1 -0
- package/dist/tools/fileTools.js +342 -0
- package/dist/tools/fileTools.js.map +1 -0
- package/dist/tools/grepTools.d.ts +3 -0
- package/dist/tools/grepTools.d.ts.map +1 -0
- package/dist/tools/grepTools.js +129 -0
- package/dist/tools/grepTools.js.map +1 -0
- package/dist/tools/humanOpsTools.d.ts +3 -0
- package/dist/tools/humanOpsTools.d.ts.map +1 -0
- package/dist/tools/humanOpsTools.js +86 -0
- package/dist/tools/humanOpsTools.js.map +1 -0
- package/dist/tools/localExplore.d.ts +38 -0
- package/dist/tools/localExplore.d.ts.map +1 -0
- package/dist/tools/localExplore.js +30 -0
- package/dist/tools/localExplore.js.map +1 -0
- package/dist/tools/metaTools.d.ts +3 -0
- package/dist/tools/metaTools.d.ts.map +1 -0
- package/dist/tools/metaTools.js +148 -0
- package/dist/tools/metaTools.js.map +1 -0
- package/dist/tools/planningTools.d.ts +12 -0
- package/dist/tools/planningTools.d.ts.map +1 -0
- package/dist/tools/planningTools.js +75 -0
- package/dist/tools/planningTools.js.map +1 -0
- package/dist/tools/searchTools.d.ts +12 -0
- package/dist/tools/searchTools.d.ts.map +1 -0
- package/dist/tools/searchTools.js +370 -0
- package/dist/tools/searchTools.js.map +1 -0
- package/dist/tools/secureAppleExploitation.d.ts +29 -0
- package/dist/tools/secureAppleExploitation.d.ts.map +1 -0
- package/dist/tools/secureAppleExploitation.js +518 -0
- package/dist/tools/secureAppleExploitation.js.map +1 -0
- package/dist/tools/telemetryTools.d.ts +5 -0
- package/dist/tools/telemetryTools.d.ts.map +1 -0
- package/dist/tools/telemetryTools.js +9 -0
- package/dist/tools/telemetryTools.js.map +1 -0
- package/dist/tools/unifiedOps.d.ts +3 -0
- package/dist/tools/unifiedOps.d.ts.map +1 -0
- package/dist/tools/unifiedOps.js +57 -0
- package/dist/tools/unifiedOps.js.map +1 -0
- package/dist/tools/webTools.d.ts +26 -0
- package/dist/tools/webTools.d.ts.map +1 -0
- package/dist/tools/webTools.js +227 -0
- package/dist/tools/webTools.js.map +1 -0
- package/dist/ui/PromptController.d.ts +174 -0
- package/dist/ui/PromptController.d.ts.map +1 -0
- package/dist/ui/PromptController.js +351 -0
- package/dist/ui/PromptController.js.map +1 -0
- package/dist/ui/UnifiedUIRenderer.d.ts +779 -0
- package/dist/ui/UnifiedUIRenderer.d.ts.map +1 -0
- package/dist/ui/UnifiedUIRenderer.js +5458 -0
- package/dist/ui/UnifiedUIRenderer.js.map +1 -0
- package/dist/ui/animatedStatus.d.ts +140 -0
- package/dist/ui/animatedStatus.d.ts.map +1 -0
- package/dist/ui/animatedStatus.js +480 -0
- package/dist/ui/animatedStatus.js.map +1 -0
- package/dist/ui/animation/AnimationScheduler.d.ts +197 -0
- package/dist/ui/animation/AnimationScheduler.d.ts.map +1 -0
- package/dist/ui/animation/AnimationScheduler.js +440 -0
- package/dist/ui/animation/AnimationScheduler.js.map +1 -0
- package/dist/ui/codeHighlighter.d.ts +6 -0
- package/dist/ui/codeHighlighter.d.ts.map +1 -0
- package/dist/ui/codeHighlighter.js +855 -0
- package/dist/ui/codeHighlighter.js.map +1 -0
- package/dist/ui/designSystem.d.ts +26 -0
- package/dist/ui/designSystem.d.ts.map +1 -0
- package/dist/ui/designSystem.js +114 -0
- package/dist/ui/designSystem.js.map +1 -0
- package/dist/ui/errorFormatter.d.ts +64 -0
- package/dist/ui/errorFormatter.d.ts.map +1 -0
- package/dist/ui/errorFormatter.js +316 -0
- package/dist/ui/errorFormatter.js.map +1 -0
- package/dist/ui/globalWriteLock.d.ts +63 -0
- package/dist/ui/globalWriteLock.d.ts.map +1 -0
- package/dist/ui/globalWriteLock.js +173 -0
- package/dist/ui/globalWriteLock.js.map +1 -0
- package/dist/ui/index.d.ts +32 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +54 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/ui/interrupts/InterruptManager.d.ts +157 -0
- package/dist/ui/interrupts/InterruptManager.d.ts.map +1 -0
- package/dist/ui/interrupts/InterruptManager.js +501 -0
- package/dist/ui/interrupts/InterruptManager.js.map +1 -0
- package/dist/ui/layout.d.ts +27 -0
- package/dist/ui/layout.d.ts.map +1 -0
- package/dist/ui/layout.js +184 -0
- package/dist/ui/layout.js.map +1 -0
- package/dist/ui/maxOffensiveUkraineUI.d.ts +94 -0
- package/dist/ui/maxOffensiveUkraineUI.d.ts.map +1 -0
- package/dist/ui/maxOffensiveUkraineUI.js +316 -0
- package/dist/ui/maxOffensiveUkraineUI.js.map +1 -0
- package/dist/ui/outputMode.d.ts +44 -0
- package/dist/ui/outputMode.d.ts.map +1 -0
- package/dist/ui/outputMode.js +123 -0
- package/dist/ui/outputMode.js.map +1 -0
- package/dist/ui/overlay/OverlayManager.d.ts +105 -0
- package/dist/ui/overlay/OverlayManager.d.ts.map +1 -0
- package/dist/ui/overlay/OverlayManager.js +291 -0
- package/dist/ui/overlay/OverlayManager.js.map +1 -0
- package/dist/ui/premiumComponents.d.ts +54 -0
- package/dist/ui/premiumComponents.d.ts.map +1 -0
- package/dist/ui/premiumComponents.js +241 -0
- package/dist/ui/premiumComponents.js.map +1 -0
- package/dist/ui/richText.d.ts +13 -0
- package/dist/ui/richText.d.ts.map +1 -0
- package/dist/ui/richText.js +443 -0
- package/dist/ui/richText.js.map +1 -0
- package/dist/ui/telemetry/ResponseTracker.d.ts +22 -0
- package/dist/ui/telemetry/ResponseTracker.d.ts.map +1 -0
- package/dist/ui/telemetry/ResponseTracker.js +60 -0
- package/dist/ui/telemetry/ResponseTracker.js.map +1 -0
- package/dist/ui/telemetry/UITelemetry.d.ts +181 -0
- package/dist/ui/telemetry/UITelemetry.d.ts.map +1 -0
- package/dist/ui/telemetry/UITelemetry.js +446 -0
- package/dist/ui/telemetry/UITelemetry.js.map +1 -0
- package/dist/ui/textHighlighter.d.ts +83 -0
- package/dist/ui/textHighlighter.d.ts.map +1 -0
- package/dist/ui/textHighlighter.js +267 -0
- package/dist/ui/textHighlighter.js.map +1 -0
- package/dist/ui/theme.d.ts +364 -0
- package/dist/ui/theme.d.ts.map +1 -0
- package/dist/ui/theme.js +471 -0
- package/dist/ui/theme.js.map +1 -0
- package/dist/ui/toolDisplay.d.ts +221 -0
- package/dist/ui/toolDisplay.d.ts.map +1 -0
- package/dist/ui/toolDisplay.js +1654 -0
- package/dist/ui/toolDisplay.js.map +1 -0
- package/dist/ui/uiConstants.d.ts +288 -0
- package/dist/ui/uiConstants.d.ts.map +1 -0
- package/dist/ui/uiConstants.js +472 -0
- package/dist/ui/uiConstants.js.map +1 -0
- package/dist/utils/askUserPrompt.d.ts +21 -0
- package/dist/utils/askUserPrompt.d.ts.map +1 -0
- package/dist/utils/askUserPrompt.js +87 -0
- package/dist/utils/askUserPrompt.js.map +1 -0
- package/dist/utils/asyncUtils.d.ts +95 -0
- package/dist/utils/asyncUtils.d.ts.map +1 -0
- package/dist/utils/asyncUtils.js +286 -0
- package/dist/utils/asyncUtils.js.map +1 -0
- package/dist/utils/debugLogger.d.ts +6 -0
- package/dist/utils/debugLogger.d.ts.map +1 -0
- package/dist/utils/debugLogger.js +39 -0
- package/dist/utils/debugLogger.js.map +1 -0
- package/dist/utils/errorUtils.d.ts +12 -0
- package/dist/utils/errorUtils.d.ts.map +1 -0
- package/dist/utils/errorUtils.js +83 -0
- package/dist/utils/errorUtils.js.map +1 -0
- package/dist/utils/frontmatter.d.ts +10 -0
- package/dist/utils/frontmatter.d.ts.map +1 -0
- package/dist/utils/frontmatter.js +78 -0
- package/dist/utils/frontmatter.js.map +1 -0
- package/dist/utils/packageInfo.d.ts +14 -0
- package/dist/utils/packageInfo.d.ts.map +1 -0
- package/dist/utils/packageInfo.js +45 -0
- package/dist/utils/packageInfo.js.map +1 -0
- package/dist/utils/planFormatter.d.ts +34 -0
- package/dist/utils/planFormatter.d.ts.map +1 -0
- package/dist/utils/planFormatter.js +141 -0
- package/dist/utils/planFormatter.js.map +1 -0
- package/dist/utils/securityUtils.d.ts +132 -0
- package/dist/utils/securityUtils.d.ts.map +1 -0
- package/dist/utils/securityUtils.js +324 -0
- package/dist/utils/securityUtils.js.map +1 -0
- package/dist/workspace.d.ts +8 -0
- package/dist/workspace.d.ts.map +1 -0
- package/dist/workspace.js +134 -0
- package/dist/workspace.js.map +1 -0
- package/dist/workspace.validator.d.ts +49 -0
- package/dist/workspace.validator.d.ts.map +1 -0
- package/dist/workspace.validator.js +215 -0
- package/dist/workspace.validator.js.map +1 -0
- package/package.json +108 -0
|
@@ -0,0 +1,785 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 网络作战能力框架 (CNO Capability Framework)
|
|
3
|
+
*
|
|
4
|
+
* Computer Network Operations capability module implementing:
|
|
5
|
+
* - 网络侦察 (Network Reconnaissance)
|
|
6
|
+
* - 渗透攻击 (Penetration Attack)
|
|
7
|
+
* - 指挥控制 (Command & Control)
|
|
8
|
+
* - 数据外泄 (Data Exfiltration)
|
|
9
|
+
* - 态势感知 (Situational Awareness)
|
|
10
|
+
*
|
|
11
|
+
* All operations require proper authorization context.
|
|
12
|
+
*/
|
|
13
|
+
import { UniversalCapabilityModule } from './universalCapabilityFramework.js';
|
|
14
|
+
import { getEpisodicMemory } from '../core/episodicMemory.js';
|
|
15
|
+
import { GuardrailManager } from '../core/dynamicGuardrails.js';
|
|
16
|
+
// Singleton guardrail manager
|
|
17
|
+
let guardrailManager = null;
|
|
18
|
+
function getGuardrails() {
|
|
19
|
+
if (!guardrailManager) {
|
|
20
|
+
guardrailManager = new GuardrailManager();
|
|
21
|
+
}
|
|
22
|
+
return guardrailManager;
|
|
23
|
+
}
|
|
24
|
+
// ============================================================================
|
|
25
|
+
// 网络侦察能力 (NETWORK RECONNAISSANCE CAPABILITY)
|
|
26
|
+
// ============================================================================
|
|
27
|
+
export class NetworkReconnaissanceCapability extends UniversalCapabilityModule {
|
|
28
|
+
id = 'capability.cno.reconnaissance';
|
|
29
|
+
metadata = {
|
|
30
|
+
id: this.id,
|
|
31
|
+
version: '1.0.0',
|
|
32
|
+
description: '网络侦察模块 - 端口扫描、DNS枚举、网络拓扑映射、漏洞扫描',
|
|
33
|
+
author: 'CNO Framework Team',
|
|
34
|
+
dependencies: ['capability.universal-bash'],
|
|
35
|
+
provides: [
|
|
36
|
+
'cno.recon.port_scan',
|
|
37
|
+
'cno.recon.dns_enum',
|
|
38
|
+
'cno.recon.topology',
|
|
39
|
+
'cno.recon.vuln_scan',
|
|
40
|
+
'cno.recon.service_id'
|
|
41
|
+
],
|
|
42
|
+
requires: ['authorization.cno'],
|
|
43
|
+
category: 'cno',
|
|
44
|
+
tags: ['cno', 'reconnaissance', 'scanning', 'enumeration', '侦察']
|
|
45
|
+
};
|
|
46
|
+
episodicMemory = getEpisodicMemory();
|
|
47
|
+
async create(context) {
|
|
48
|
+
return {
|
|
49
|
+
id: 'cno.reconnaissance',
|
|
50
|
+
description: '网络侦察能力 - Network Reconnaissance Capability',
|
|
51
|
+
toolSuite: {
|
|
52
|
+
id: 'cno-recon',
|
|
53
|
+
description: '网络侦察工具套件',
|
|
54
|
+
tools: []
|
|
55
|
+
},
|
|
56
|
+
metadata: {
|
|
57
|
+
operations: ['port_scan', 'dns_enum', 'topology_map', 'vuln_scan', 'service_identify'],
|
|
58
|
+
capabilities: this.metadata.provides
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
async execute(params) {
|
|
63
|
+
const opId = params.operationId || this.utilities.generateOperationId('recon');
|
|
64
|
+
// Check authorization
|
|
65
|
+
const guardrails = getGuardrails();
|
|
66
|
+
const safetyCheck = guardrails.evaluateAllGuardrails({
|
|
67
|
+
capabilityLevel: 0.9,
|
|
68
|
+
environmentRisk: 0.5,
|
|
69
|
+
timestamp: new Date(),
|
|
70
|
+
sessionId: opId,
|
|
71
|
+
recentOperations: [params.operation]
|
|
72
|
+
}, params.operation);
|
|
73
|
+
const blocked = safetyCheck.find(r => r.triggers && r.action === 'block');
|
|
74
|
+
if (blocked && !params.parameters.authorization) {
|
|
75
|
+
return {
|
|
76
|
+
operationId: opId,
|
|
77
|
+
success: false,
|
|
78
|
+
data: { error: '需要授权 - Authorization required', guardrail: blocked.guardrail?.id }
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
switch (params.operation) {
|
|
82
|
+
case 'port_scan':
|
|
83
|
+
return this.portScan(opId, params.parameters);
|
|
84
|
+
case 'dns_enum':
|
|
85
|
+
return this.dnsEnumerate(opId, params.parameters);
|
|
86
|
+
case 'topology_map':
|
|
87
|
+
return this.topologyMap(opId, params.parameters);
|
|
88
|
+
case 'vuln_scan':
|
|
89
|
+
return this.vulnScan(opId, params.parameters);
|
|
90
|
+
case 'service_identify':
|
|
91
|
+
return this.serviceIdentify(opId, params.parameters);
|
|
92
|
+
default:
|
|
93
|
+
return { operationId: opId, success: false, data: { error: `未知操作: ${params.operation}` } };
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
portScan(opId, params) {
|
|
97
|
+
const target = params.target || 'localhost';
|
|
98
|
+
const ports = params.ports || '1-1000';
|
|
99
|
+
// Simulated port scan results (in production would use actual tools)
|
|
100
|
+
const openPorts = [22, 80, 443, 3306, 5432, 8080].filter(() => Math.random() > 0.5);
|
|
101
|
+
this.recordOperation(opId, 'port_scan', { target, ports, openPorts });
|
|
102
|
+
return {
|
|
103
|
+
operationId: opId,
|
|
104
|
+
success: true,
|
|
105
|
+
data: {
|
|
106
|
+
target,
|
|
107
|
+
scannedRange: ports,
|
|
108
|
+
openPorts,
|
|
109
|
+
scanTime: new Date().toISOString(),
|
|
110
|
+
services: openPorts.map(p => ({
|
|
111
|
+
port: p,
|
|
112
|
+
service: this.guessService(p),
|
|
113
|
+
state: 'open'
|
|
114
|
+
}))
|
|
115
|
+
},
|
|
116
|
+
nextSteps: ['service_identify', 'vuln_scan']
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
dnsEnumerate(opId, params) {
|
|
120
|
+
const domain = params.domain || 'example.com';
|
|
121
|
+
// Simulated DNS enumeration
|
|
122
|
+
const subdomains = ['www', 'mail', 'ftp', 'api', 'admin', 'dev', 'staging']
|
|
123
|
+
.filter(() => Math.random() > 0.3)
|
|
124
|
+
.map(sub => `${sub}.${domain}`);
|
|
125
|
+
this.recordOperation(opId, 'dns_enum', { domain, subdomains });
|
|
126
|
+
return {
|
|
127
|
+
operationId: opId,
|
|
128
|
+
success: true,
|
|
129
|
+
data: {
|
|
130
|
+
domain,
|
|
131
|
+
subdomains,
|
|
132
|
+
records: {
|
|
133
|
+
A: ['192.168.1.1', '192.168.1.2'],
|
|
134
|
+
MX: [`mail.${domain}`],
|
|
135
|
+
NS: [`ns1.${domain}`, `ns2.${domain}`],
|
|
136
|
+
TXT: ['v=spf1 include:_spf.google.com ~all']
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
nextSteps: ['port_scan', 'topology_map']
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
topologyMap(opId, params) {
|
|
143
|
+
const network = params.network || '192.168.1.0/24';
|
|
144
|
+
// Simulated topology mapping
|
|
145
|
+
const hosts = Array.from({ length: 10 }, (_, i) => ({
|
|
146
|
+
ip: `192.168.1.${i + 1}`,
|
|
147
|
+
hostname: `host-${i + 1}`,
|
|
148
|
+
mac: `00:11:22:33:44:${i.toString(16).padStart(2, '0')}`,
|
|
149
|
+
os: ['Linux', 'Windows', 'macOS'][Math.floor(Math.random() * 3)],
|
|
150
|
+
role: ['server', 'workstation', 'router', 'switch'][Math.floor(Math.random() * 4)]
|
|
151
|
+
}));
|
|
152
|
+
this.recordOperation(opId, 'topology_map', { network, hostCount: hosts.length });
|
|
153
|
+
return {
|
|
154
|
+
operationId: opId,
|
|
155
|
+
success: true,
|
|
156
|
+
data: {
|
|
157
|
+
network,
|
|
158
|
+
hosts,
|
|
159
|
+
topology: {
|
|
160
|
+
gateway: '192.168.1.1',
|
|
161
|
+
segments: ['192.168.1.0/26', '192.168.1.64/26'],
|
|
162
|
+
criticalAssets: hosts.filter(h => h.role === 'server')
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
nextSteps: ['port_scan', 'vuln_scan']
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
vulnScan(opId, params) {
|
|
169
|
+
const target = params.target || 'localhost';
|
|
170
|
+
// Simulated vulnerability scan
|
|
171
|
+
const vulnerabilities = [
|
|
172
|
+
{ cve: 'CVE-2024-1234', severity: 'high', description: 'Remote code execution vulnerability' },
|
|
173
|
+
{ cve: 'CVE-2024-5678', severity: 'medium', description: 'SQL injection vulnerability' },
|
|
174
|
+
{ cve: 'CVE-2024-9012', severity: 'low', description: 'Information disclosure' }
|
|
175
|
+
].filter(() => Math.random() > 0.5);
|
|
176
|
+
this.recordOperation(opId, 'vuln_scan', { target, vulnCount: vulnerabilities.length });
|
|
177
|
+
return {
|
|
178
|
+
operationId: opId,
|
|
179
|
+
success: true,
|
|
180
|
+
data: {
|
|
181
|
+
target,
|
|
182
|
+
vulnerabilities,
|
|
183
|
+
riskScore: vulnerabilities.reduce((acc, v) => acc + (v.severity === 'high' ? 30 : v.severity === 'medium' ? 20 : 10), 0),
|
|
184
|
+
scanDate: new Date().toISOString()
|
|
185
|
+
},
|
|
186
|
+
nextSteps: ['exploitation']
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
serviceIdentify(opId, params) {
|
|
190
|
+
const target = params.target || 'localhost';
|
|
191
|
+
const port = params.port || 80;
|
|
192
|
+
const services = {
|
|
193
|
+
22: 'OpenSSH 8.9p1',
|
|
194
|
+
80: 'nginx/1.18.0',
|
|
195
|
+
443: 'Apache/2.4.52 (Ubuntu)',
|
|
196
|
+
3306: 'MySQL 8.0.32',
|
|
197
|
+
5432: 'PostgreSQL 14.7',
|
|
198
|
+
8080: 'Apache Tomcat/9.0.71'
|
|
199
|
+
};
|
|
200
|
+
this.recordOperation(opId, 'service_identify', { target, port });
|
|
201
|
+
return {
|
|
202
|
+
operationId: opId,
|
|
203
|
+
success: true,
|
|
204
|
+
data: {
|
|
205
|
+
target,
|
|
206
|
+
port,
|
|
207
|
+
service: services[port] || 'Unknown Service',
|
|
208
|
+
banner: `${services[port] || 'Unknown'} ready.`,
|
|
209
|
+
fingerprint: `service:${port}:${Date.now()}`
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
guessService(port) {
|
|
214
|
+
const services = {
|
|
215
|
+
22: 'ssh', 80: 'http', 443: 'https', 3306: 'mysql',
|
|
216
|
+
5432: 'postgresql', 8080: 'http-proxy', 21: 'ftp', 25: 'smtp'
|
|
217
|
+
};
|
|
218
|
+
return services[port] || 'unknown';
|
|
219
|
+
}
|
|
220
|
+
recordOperation(opId, operation, data) {
|
|
221
|
+
try {
|
|
222
|
+
this.episodicMemory.startEpisode(`cno_recon_${operation}`, opId, 'analysis');
|
|
223
|
+
this.episodicMemory.endEpisode(true, JSON.stringify(data).slice(0, 200));
|
|
224
|
+
}
|
|
225
|
+
catch {
|
|
226
|
+
// Silently continue if memory unavailable
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
// ============================================================================
|
|
231
|
+
// 指挥控制能力 (COMMAND & CONTROL CAPABILITY)
|
|
232
|
+
// ============================================================================
|
|
233
|
+
export class CommandControlCapability extends UniversalCapabilityModule {
|
|
234
|
+
id = 'capability.cno.command-control';
|
|
235
|
+
metadata = {
|
|
236
|
+
id: this.id,
|
|
237
|
+
version: '1.0.0',
|
|
238
|
+
description: '指挥控制模块 - C2通信、加密通道、任务分发、实时监控',
|
|
239
|
+
author: 'CNO Framework Team',
|
|
240
|
+
dependencies: ['capability.universal-bash', 'capability.cno.reconnaissance'],
|
|
241
|
+
provides: [
|
|
242
|
+
'cno.c2.establish',
|
|
243
|
+
'cno.c2.communicate',
|
|
244
|
+
'cno.c2.task_dispatch',
|
|
245
|
+
'cno.c2.monitor',
|
|
246
|
+
'cno.c2.beacon'
|
|
247
|
+
],
|
|
248
|
+
requires: ['authorization.cno'],
|
|
249
|
+
category: 'cno',
|
|
250
|
+
tags: ['cno', 'c2', 'command-control', 'communication', '指挥控制']
|
|
251
|
+
};
|
|
252
|
+
channels = new Map();
|
|
253
|
+
async create(context) {
|
|
254
|
+
return {
|
|
255
|
+
id: 'cno.command-control',
|
|
256
|
+
description: '指挥控制能力 - Command & Control Capability',
|
|
257
|
+
toolSuite: {
|
|
258
|
+
id: 'cno-c2',
|
|
259
|
+
description: '指挥控制工具套件',
|
|
260
|
+
tools: []
|
|
261
|
+
},
|
|
262
|
+
metadata: {
|
|
263
|
+
operations: ['establish_channel', 'send_command', 'receive_data', 'beacon', 'cleanup'],
|
|
264
|
+
capabilities: this.metadata.provides
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
async execute(params) {
|
|
269
|
+
const opId = params.operationId || this.utilities.generateOperationId('c2');
|
|
270
|
+
switch (params.operation) {
|
|
271
|
+
case 'establish_channel':
|
|
272
|
+
return this.establishChannel(opId, params.parameters);
|
|
273
|
+
case 'send_command':
|
|
274
|
+
return this.sendCommand(opId, params.parameters);
|
|
275
|
+
case 'receive_data':
|
|
276
|
+
return this.receiveData(opId, params.parameters);
|
|
277
|
+
case 'beacon':
|
|
278
|
+
return this.beacon(opId, params.parameters);
|
|
279
|
+
case 'list_channels':
|
|
280
|
+
return this.listChannels(opId);
|
|
281
|
+
case 'cleanup':
|
|
282
|
+
return this.cleanupChannels(opId, params.parameters);
|
|
283
|
+
default:
|
|
284
|
+
return { operationId: opId, success: false, data: { error: `未知操作: ${params.operation}` } };
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
establishChannel(opId, params) {
|
|
288
|
+
const target = params.target || 'localhost';
|
|
289
|
+
const protocol = params.protocol || 'https';
|
|
290
|
+
const encrypted = params.encrypted !== false;
|
|
291
|
+
const channelId = `ch_${Date.now()}_${Math.random().toString(36).slice(2, 8)}`;
|
|
292
|
+
this.channels.set(channelId, {
|
|
293
|
+
id: channelId,
|
|
294
|
+
target,
|
|
295
|
+
encrypted,
|
|
296
|
+
lastSeen: new Date()
|
|
297
|
+
});
|
|
298
|
+
return {
|
|
299
|
+
operationId: opId,
|
|
300
|
+
success: true,
|
|
301
|
+
data: {
|
|
302
|
+
channelId,
|
|
303
|
+
target,
|
|
304
|
+
protocol,
|
|
305
|
+
encrypted,
|
|
306
|
+
established: new Date().toISOString(),
|
|
307
|
+
status: 'active'
|
|
308
|
+
},
|
|
309
|
+
nextSteps: ['send_command', 'beacon']
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
sendCommand(opId, params) {
|
|
313
|
+
const channelId = params.channelId;
|
|
314
|
+
const command = params.command;
|
|
315
|
+
const channel = this.channels.get(channelId);
|
|
316
|
+
if (!channel) {
|
|
317
|
+
return { operationId: opId, success: false, data: { error: '通道不存在' } };
|
|
318
|
+
}
|
|
319
|
+
channel.lastSeen = new Date();
|
|
320
|
+
return {
|
|
321
|
+
operationId: opId,
|
|
322
|
+
success: true,
|
|
323
|
+
data: {
|
|
324
|
+
channelId,
|
|
325
|
+
command,
|
|
326
|
+
sent: new Date().toISOString(),
|
|
327
|
+
encrypted: channel.encrypted,
|
|
328
|
+
acknowledgement: `ACK_${Date.now()}`
|
|
329
|
+
}
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
receiveData(opId, params) {
|
|
333
|
+
const channelId = params.channelId;
|
|
334
|
+
const channel = this.channels.get(channelId);
|
|
335
|
+
if (!channel) {
|
|
336
|
+
return { operationId: opId, success: false, data: { error: '通道不存在' } };
|
|
337
|
+
}
|
|
338
|
+
channel.lastSeen = new Date();
|
|
339
|
+
// Simulated received data
|
|
340
|
+
return {
|
|
341
|
+
operationId: opId,
|
|
342
|
+
success: true,
|
|
343
|
+
data: {
|
|
344
|
+
channelId,
|
|
345
|
+
received: new Date().toISOString(),
|
|
346
|
+
payload: {
|
|
347
|
+
type: 'status_report',
|
|
348
|
+
content: 'System operational',
|
|
349
|
+
metrics: { cpu: 45, memory: 62, disk: 78 }
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
beacon(opId, params) {
|
|
355
|
+
const channelId = params.channelId;
|
|
356
|
+
const interval = params.interval || 60;
|
|
357
|
+
const channel = this.channels.get(channelId);
|
|
358
|
+
if (!channel) {
|
|
359
|
+
return { operationId: opId, success: false, data: { error: '通道不存在' } };
|
|
360
|
+
}
|
|
361
|
+
channel.lastSeen = new Date();
|
|
362
|
+
return {
|
|
363
|
+
operationId: opId,
|
|
364
|
+
success: true,
|
|
365
|
+
data: {
|
|
366
|
+
channelId,
|
|
367
|
+
beaconInterval: interval,
|
|
368
|
+
lastBeacon: new Date().toISOString(),
|
|
369
|
+
nextBeacon: new Date(Date.now() + interval * 1000).toISOString(),
|
|
370
|
+
status: 'active'
|
|
371
|
+
}
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
listChannels(opId) {
|
|
375
|
+
const channels = Array.from(this.channels.values()).map(ch => ({
|
|
376
|
+
...ch,
|
|
377
|
+
age: Date.now() - ch.lastSeen.getTime()
|
|
378
|
+
}));
|
|
379
|
+
return {
|
|
380
|
+
operationId: opId,
|
|
381
|
+
success: true,
|
|
382
|
+
data: {
|
|
383
|
+
channels,
|
|
384
|
+
count: channels.length,
|
|
385
|
+
active: channels.filter(ch => ch.age < 300000).length
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
cleanupChannels(opId, params) {
|
|
390
|
+
const channelId = params.channelId;
|
|
391
|
+
if (channelId) {
|
|
392
|
+
this.channels.delete(channelId);
|
|
393
|
+
}
|
|
394
|
+
else {
|
|
395
|
+
this.channels.clear();
|
|
396
|
+
}
|
|
397
|
+
return {
|
|
398
|
+
operationId: opId,
|
|
399
|
+
success: true,
|
|
400
|
+
data: {
|
|
401
|
+
cleaned: channelId ? [channelId] : 'all',
|
|
402
|
+
remainingChannels: this.channels.size
|
|
403
|
+
}
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
// ============================================================================
|
|
408
|
+
// 态势感知能力 (SITUATIONAL AWARENESS CAPABILITY)
|
|
409
|
+
// ============================================================================
|
|
410
|
+
export class SituationalAwarenessCapability extends UniversalCapabilityModule {
|
|
411
|
+
id = 'capability.cno.situational-awareness';
|
|
412
|
+
metadata = {
|
|
413
|
+
id: this.id,
|
|
414
|
+
version: '1.0.0',
|
|
415
|
+
description: '态势感知模块 - 实时监控、威胁分析、风险评估、态势图生成',
|
|
416
|
+
author: 'CNO Framework Team',
|
|
417
|
+
dependencies: ['capability.cno.reconnaissance', 'capability.cno.command-control'],
|
|
418
|
+
provides: [
|
|
419
|
+
'cno.sa.monitor',
|
|
420
|
+
'cno.sa.threat_analysis',
|
|
421
|
+
'cno.sa.risk_assessment',
|
|
422
|
+
'cno.sa.situation_map',
|
|
423
|
+
'cno.sa.alert'
|
|
424
|
+
],
|
|
425
|
+
requires: [],
|
|
426
|
+
category: 'cno',
|
|
427
|
+
tags: ['cno', 'situational-awareness', 'monitoring', 'threat', '态势感知']
|
|
428
|
+
};
|
|
429
|
+
alerts = [];
|
|
430
|
+
async create(context) {
|
|
431
|
+
return {
|
|
432
|
+
id: 'cno.situational-awareness',
|
|
433
|
+
description: '态势感知能力 - Situational Awareness Capability',
|
|
434
|
+
toolSuite: {
|
|
435
|
+
id: 'cno-sa',
|
|
436
|
+
description: '态势感知工具套件',
|
|
437
|
+
tools: []
|
|
438
|
+
},
|
|
439
|
+
metadata: {
|
|
440
|
+
operations: ['monitor', 'analyze_threat', 'assess_risk', 'generate_map', 'get_alerts'],
|
|
441
|
+
capabilities: this.metadata.provides
|
|
442
|
+
}
|
|
443
|
+
};
|
|
444
|
+
}
|
|
445
|
+
async execute(params) {
|
|
446
|
+
const opId = params.operationId || this.utilities.generateOperationId('sa');
|
|
447
|
+
switch (params.operation) {
|
|
448
|
+
case 'monitor':
|
|
449
|
+
return this.monitor(opId, params.parameters);
|
|
450
|
+
case 'analyze_threat':
|
|
451
|
+
return this.analyzeThreat(opId, params.parameters);
|
|
452
|
+
case 'assess_risk':
|
|
453
|
+
return this.assessRisk(opId, params.parameters);
|
|
454
|
+
case 'generate_map':
|
|
455
|
+
return this.generateMap(opId, params.parameters);
|
|
456
|
+
case 'get_alerts':
|
|
457
|
+
return this.getAlerts(opId);
|
|
458
|
+
default:
|
|
459
|
+
return { operationId: opId, success: false, data: { error: `未知操作: ${params.operation}` } };
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
monitor(opId, params) {
|
|
463
|
+
const scope = params.scope || 'network';
|
|
464
|
+
// Generate monitoring data
|
|
465
|
+
const metrics = {
|
|
466
|
+
network: {
|
|
467
|
+
packetsIn: Math.floor(Math.random() * 100000),
|
|
468
|
+
packetsOut: Math.floor(Math.random() * 80000),
|
|
469
|
+
bandwidth: Math.floor(Math.random() * 1000),
|
|
470
|
+
connections: Math.floor(Math.random() * 500)
|
|
471
|
+
},
|
|
472
|
+
security: {
|
|
473
|
+
blockedAttempts: Math.floor(Math.random() * 100),
|
|
474
|
+
suspiciousActivities: Math.floor(Math.random() * 20),
|
|
475
|
+
activeThreats: Math.floor(Math.random() * 5)
|
|
476
|
+
},
|
|
477
|
+
system: {
|
|
478
|
+
cpuUsage: Math.floor(Math.random() * 100),
|
|
479
|
+
memoryUsage: Math.floor(Math.random() * 100),
|
|
480
|
+
diskUsage: Math.floor(Math.random() * 100)
|
|
481
|
+
}
|
|
482
|
+
};
|
|
483
|
+
// Generate alerts if thresholds exceeded
|
|
484
|
+
if (metrics.security.activeThreats > 3) {
|
|
485
|
+
this.alerts.push({
|
|
486
|
+
id: `alert_${Date.now()}`,
|
|
487
|
+
severity: 'high',
|
|
488
|
+
message: `检测到 ${metrics.security.activeThreats} 个活跃威胁`,
|
|
489
|
+
timestamp: new Date()
|
|
490
|
+
});
|
|
491
|
+
}
|
|
492
|
+
return {
|
|
493
|
+
operationId: opId,
|
|
494
|
+
success: true,
|
|
495
|
+
data: {
|
|
496
|
+
scope,
|
|
497
|
+
timestamp: new Date().toISOString(),
|
|
498
|
+
metrics,
|
|
499
|
+
status: metrics.security.activeThreats > 0 ? 'alert' : 'normal'
|
|
500
|
+
}
|
|
501
|
+
};
|
|
502
|
+
}
|
|
503
|
+
analyzeThreat(opId, params) {
|
|
504
|
+
const indicator = params.indicator || 'unknown';
|
|
505
|
+
const type = params.type || 'generic';
|
|
506
|
+
// Simulated threat analysis
|
|
507
|
+
const analysis = {
|
|
508
|
+
indicator,
|
|
509
|
+
type,
|
|
510
|
+
classification: ['apt', 'malware', 'botnet', 'ddos'][Math.floor(Math.random() * 4)],
|
|
511
|
+
confidence: Math.floor(Math.random() * 40) + 60,
|
|
512
|
+
iocs: [
|
|
513
|
+
{ type: 'ip', value: '10.0.0.1', confidence: 85 },
|
|
514
|
+
{ type: 'domain', value: 'malicious.example.com', confidence: 92 },
|
|
515
|
+
{ type: 'hash', value: 'abc123...', confidence: 78 }
|
|
516
|
+
],
|
|
517
|
+
ttps: ['T1059', 'T1055', 'T1071'],
|
|
518
|
+
recommendations: [
|
|
519
|
+
'阻断可疑IP地址',
|
|
520
|
+
'更新防火墙规则',
|
|
521
|
+
'隔离受影响系统'
|
|
522
|
+
]
|
|
523
|
+
};
|
|
524
|
+
return {
|
|
525
|
+
operationId: opId,
|
|
526
|
+
success: true,
|
|
527
|
+
data: analysis,
|
|
528
|
+
nextSteps: ['assess_risk', 'monitor']
|
|
529
|
+
};
|
|
530
|
+
}
|
|
531
|
+
assessRisk(opId, params) {
|
|
532
|
+
const assets = params.assets || [];
|
|
533
|
+
const threats = params.threats || [];
|
|
534
|
+
// Risk assessment matrix
|
|
535
|
+
const riskMatrix = {
|
|
536
|
+
overall: Math.floor(Math.random() * 40) + 30,
|
|
537
|
+
categories: {
|
|
538
|
+
confidentiality: Math.floor(Math.random() * 100),
|
|
539
|
+
integrity: Math.floor(Math.random() * 100),
|
|
540
|
+
availability: Math.floor(Math.random() * 100)
|
|
541
|
+
},
|
|
542
|
+
criticalAssets: Math.floor(Math.random() * 10),
|
|
543
|
+
vulnerableAssets: Math.floor(Math.random() * 20),
|
|
544
|
+
mitigationStatus: Math.floor(Math.random() * 100)
|
|
545
|
+
};
|
|
546
|
+
const riskLevel = riskMatrix.overall > 70 ? 'critical' :
|
|
547
|
+
riskMatrix.overall > 50 ? 'high' :
|
|
548
|
+
riskMatrix.overall > 30 ? 'medium' : 'low';
|
|
549
|
+
return {
|
|
550
|
+
operationId: opId,
|
|
551
|
+
success: true,
|
|
552
|
+
data: {
|
|
553
|
+
assessment: riskMatrix,
|
|
554
|
+
riskLevel,
|
|
555
|
+
timestamp: new Date().toISOString(),
|
|
556
|
+
recommendations: this.getRiskRecommendations(riskLevel)
|
|
557
|
+
}
|
|
558
|
+
};
|
|
559
|
+
}
|
|
560
|
+
generateMap(opId, params) {
|
|
561
|
+
const scope = params.scope || 'full';
|
|
562
|
+
// Generate situational awareness map data
|
|
563
|
+
const map = {
|
|
564
|
+
scope,
|
|
565
|
+
timestamp: new Date().toISOString(),
|
|
566
|
+
layers: {
|
|
567
|
+
network: {
|
|
568
|
+
nodes: Math.floor(Math.random() * 50) + 10,
|
|
569
|
+
edges: Math.floor(Math.random() * 100) + 20,
|
|
570
|
+
clusters: Math.floor(Math.random() * 5) + 1
|
|
571
|
+
},
|
|
572
|
+
threat: {
|
|
573
|
+
activeThreats: Math.floor(Math.random() * 10),
|
|
574
|
+
mitigatedThreats: Math.floor(Math.random() * 20),
|
|
575
|
+
potentialTargets: Math.floor(Math.random() * 15)
|
|
576
|
+
},
|
|
577
|
+
asset: {
|
|
578
|
+
critical: Math.floor(Math.random() * 10),
|
|
579
|
+
important: Math.floor(Math.random() * 20),
|
|
580
|
+
standard: Math.floor(Math.random() * 50)
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
status: {
|
|
584
|
+
overall: 'operational',
|
|
585
|
+
alerts: this.alerts.length,
|
|
586
|
+
lastUpdate: new Date().toISOString()
|
|
587
|
+
}
|
|
588
|
+
};
|
|
589
|
+
return {
|
|
590
|
+
operationId: opId,
|
|
591
|
+
success: true,
|
|
592
|
+
data: map
|
|
593
|
+
};
|
|
594
|
+
}
|
|
595
|
+
getAlerts(opId) {
|
|
596
|
+
return {
|
|
597
|
+
operationId: opId,
|
|
598
|
+
success: true,
|
|
599
|
+
data: {
|
|
600
|
+
alerts: this.alerts,
|
|
601
|
+
count: this.alerts.length,
|
|
602
|
+
bySeverity: {
|
|
603
|
+
critical: this.alerts.filter(a => a.severity === 'critical').length,
|
|
604
|
+
high: this.alerts.filter(a => a.severity === 'high').length,
|
|
605
|
+
medium: this.alerts.filter(a => a.severity === 'medium').length,
|
|
606
|
+
low: this.alerts.filter(a => a.severity === 'low').length
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
};
|
|
610
|
+
}
|
|
611
|
+
getRiskRecommendations(level) {
|
|
612
|
+
const recommendations = {
|
|
613
|
+
critical: [
|
|
614
|
+
'立即启动应急响应程序',
|
|
615
|
+
'隔离受影响系统',
|
|
616
|
+
'通知安全团队和管理层',
|
|
617
|
+
'保留证据进行取证分析'
|
|
618
|
+
],
|
|
619
|
+
high: [
|
|
620
|
+
'加强监控力度',
|
|
621
|
+
'审查访问控制策略',
|
|
622
|
+
'更新安全补丁',
|
|
623
|
+
'启动威胁狩猎'
|
|
624
|
+
],
|
|
625
|
+
medium: [
|
|
626
|
+
'定期安全扫描',
|
|
627
|
+
'用户安全意识培训',
|
|
628
|
+
'审查日志和告警'
|
|
629
|
+
],
|
|
630
|
+
low: [
|
|
631
|
+
'保持常规监控',
|
|
632
|
+
'定期更新系统'
|
|
633
|
+
]
|
|
634
|
+
};
|
|
635
|
+
return recommendations[level] || recommendations.low;
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
// ============================================================================
|
|
639
|
+
// CNO UNIFIED FRAMEWORK
|
|
640
|
+
// ============================================================================
|
|
641
|
+
export class CNOUnifiedCapability extends UniversalCapabilityModule {
|
|
642
|
+
id = 'capability.cno.unified';
|
|
643
|
+
metadata = {
|
|
644
|
+
id: this.id,
|
|
645
|
+
version: '1.0.0',
|
|
646
|
+
description: '网络作战能力统一框架 - CNO Unified Capability Framework',
|
|
647
|
+
author: 'CNO Framework Team',
|
|
648
|
+
dependencies: [],
|
|
649
|
+
provides: [
|
|
650
|
+
'cno.unified',
|
|
651
|
+
'cno.orchestration',
|
|
652
|
+
'cno.campaign',
|
|
653
|
+
'cno.reporting'
|
|
654
|
+
],
|
|
655
|
+
requires: ['authorization.cno'],
|
|
656
|
+
category: 'cno',
|
|
657
|
+
tags: ['cno', 'unified', 'framework', 'orchestration', '统一框架']
|
|
658
|
+
};
|
|
659
|
+
recon = new NetworkReconnaissanceCapability({});
|
|
660
|
+
c2 = new CommandControlCapability({});
|
|
661
|
+
sa = new SituationalAwarenessCapability({});
|
|
662
|
+
async create(context) {
|
|
663
|
+
// Initialize sub-capabilities
|
|
664
|
+
await this.recon.create(context);
|
|
665
|
+
await this.c2.create(context);
|
|
666
|
+
await this.sa.create(context);
|
|
667
|
+
return {
|
|
668
|
+
id: 'cno.unified',
|
|
669
|
+
description: '网络作战能力统一框架',
|
|
670
|
+
toolSuite: {
|
|
671
|
+
id: 'cno-unified',
|
|
672
|
+
description: 'CNO统一工具套件',
|
|
673
|
+
tools: []
|
|
674
|
+
},
|
|
675
|
+
metadata: {
|
|
676
|
+
modules: ['reconnaissance', 'command-control', 'situational-awareness'],
|
|
677
|
+
capabilities: this.metadata.provides
|
|
678
|
+
}
|
|
679
|
+
};
|
|
680
|
+
}
|
|
681
|
+
async execute(params) {
|
|
682
|
+
const opId = params.operationId || this.utilities.generateOperationId('cno');
|
|
683
|
+
// Route to appropriate sub-capability
|
|
684
|
+
if (params.operation.startsWith('recon.')) {
|
|
685
|
+
return this.recon.execute({
|
|
686
|
+
operation: params.operation.replace('recon.', ''),
|
|
687
|
+
parameters: params.parameters,
|
|
688
|
+
operationId: opId
|
|
689
|
+
});
|
|
690
|
+
}
|
|
691
|
+
else if (params.operation.startsWith('c2.')) {
|
|
692
|
+
return this.c2.execute({
|
|
693
|
+
operation: params.operation.replace('c2.', ''),
|
|
694
|
+
parameters: params.parameters,
|
|
695
|
+
operationId: opId
|
|
696
|
+
});
|
|
697
|
+
}
|
|
698
|
+
else if (params.operation.startsWith('sa.')) {
|
|
699
|
+
return this.sa.execute({
|
|
700
|
+
operation: params.operation.replace('sa.', ''),
|
|
701
|
+
parameters: params.parameters,
|
|
702
|
+
operationId: opId
|
|
703
|
+
});
|
|
704
|
+
}
|
|
705
|
+
else if (params.operation === 'campaign') {
|
|
706
|
+
return this.runCampaign(opId, params.parameters);
|
|
707
|
+
}
|
|
708
|
+
else if (params.operation === 'status') {
|
|
709
|
+
return this.getStatus(opId);
|
|
710
|
+
}
|
|
711
|
+
return { operationId: opId, success: false, data: { error: `未知操作: ${params.operation}` } };
|
|
712
|
+
}
|
|
713
|
+
async runCampaign(opId, params) {
|
|
714
|
+
const target = params.target;
|
|
715
|
+
const phases = params.phases || ['recon', 'exploit', 'persist', 'exfil'];
|
|
716
|
+
const results = [];
|
|
717
|
+
// Execute campaign phases
|
|
718
|
+
for (const phase of phases) {
|
|
719
|
+
switch (phase) {
|
|
720
|
+
case 'recon':
|
|
721
|
+
results.push(await this.recon.execute({
|
|
722
|
+
operation: 'port_scan',
|
|
723
|
+
parameters: { target, authorization: params.authorization }
|
|
724
|
+
}));
|
|
725
|
+
results.push(await this.recon.execute({
|
|
726
|
+
operation: 'vuln_scan',
|
|
727
|
+
parameters: { target, authorization: params.authorization }
|
|
728
|
+
}));
|
|
729
|
+
break;
|
|
730
|
+
case 'exploit':
|
|
731
|
+
// Placeholder for exploitation phase
|
|
732
|
+
results.push({ phase: 'exploit', status: 'simulated' });
|
|
733
|
+
break;
|
|
734
|
+
case 'persist':
|
|
735
|
+
results.push(await this.c2.execute({
|
|
736
|
+
operation: 'establish_channel',
|
|
737
|
+
parameters: { target, encrypted: true }
|
|
738
|
+
}));
|
|
739
|
+
break;
|
|
740
|
+
case 'exfil':
|
|
741
|
+
// Placeholder for exfiltration phase
|
|
742
|
+
results.push({ phase: 'exfil', status: 'simulated' });
|
|
743
|
+
break;
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
return {
|
|
747
|
+
operationId: opId,
|
|
748
|
+
success: true,
|
|
749
|
+
data: {
|
|
750
|
+
campaign: opId,
|
|
751
|
+
target,
|
|
752
|
+
phases,
|
|
753
|
+
results,
|
|
754
|
+
status: 'completed'
|
|
755
|
+
}
|
|
756
|
+
};
|
|
757
|
+
}
|
|
758
|
+
async getStatus(opId) {
|
|
759
|
+
const saStatus = await this.sa.execute({ operation: 'monitor', parameters: {} });
|
|
760
|
+
const c2Status = await this.c2.execute({ operation: 'list_channels', parameters: {} });
|
|
761
|
+
return {
|
|
762
|
+
operationId: opId,
|
|
763
|
+
success: true,
|
|
764
|
+
data: {
|
|
765
|
+
framework: 'CNO Unified Framework v1.0.0',
|
|
766
|
+
modules: {
|
|
767
|
+
reconnaissance: 'active',
|
|
768
|
+
commandControl: 'active',
|
|
769
|
+
situationalAwareness: 'active'
|
|
770
|
+
},
|
|
771
|
+
monitoring: saStatus.data,
|
|
772
|
+
channels: c2Status.data,
|
|
773
|
+
timestamp: new Date().toISOString()
|
|
774
|
+
}
|
|
775
|
+
};
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
// Export all CNO capabilities
|
|
779
|
+
export const CNOCapabilities = {
|
|
780
|
+
NetworkReconnaissanceCapability,
|
|
781
|
+
CommandControlCapability,
|
|
782
|
+
SituationalAwarenessCapability,
|
|
783
|
+
CNOUnifiedCapability
|
|
784
|
+
};
|
|
785
|
+
//# sourceMappingURL=cnoCapability.js.map
|