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,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Orchestration Module Index
|
|
3
|
+
*
|
|
4
|
+
* Exports orchestration runners for AGI Core operations including
|
|
5
|
+
* repository upgrades and security audits.
|
|
6
|
+
*/
|
|
7
|
+
export { runRepoUpgradeFlow, } from './repoUpgradeRunner.js';
|
|
8
|
+
export { SecurityAuditRunner, runSecurityAuditWithDualTournamentRL, } from './securityAuditRunner.js';
|
|
9
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
10
|
+
// Universal Security Audit (DEFAULT for all providers)
|
|
11
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
12
|
+
export { runUniversalSecurityAudit, runMultiProviderAudit, runDefaultSecurityAudit, runSecurityAuditWithRemediation, remediateFindings, } from '../core/universalSecurityAudit.js';
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/orchestration/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,kBAAkB,GAGnB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,mBAAmB,EACnB,oCAAoC,GAOrC,MAAM,0BAA0B,CAAC;AAElC,kFAAkF;AAClF,uDAAuD;AACvD,kFAAkF;AAElF,OAAO,EACL,yBAAyB,EACzB,qBAAqB,EACrB,uBAAuB,EACvB,+BAA+B,EAC/B,iBAAiB,GAUlB,MAAM,mCAAmC,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { AgentController } from '../runtime/agentController.js';
|
|
2
|
+
import { type RepoUpgradeMode, type RepoUpgradeReport, type UpgradeVariant } from '../core/repoUpgradeOrchestrator.js';
|
|
3
|
+
import { type CrossVariantComparison } from '../core/gitWorktreeManager.js';
|
|
4
|
+
export interface RepoUpgradeFlowOptions {
|
|
5
|
+
controller: AgentController;
|
|
6
|
+
workingDir: string;
|
|
7
|
+
mode: RepoUpgradeMode;
|
|
8
|
+
continueOnFailure?: boolean;
|
|
9
|
+
additionalScopes?: string[];
|
|
10
|
+
objective?: string;
|
|
11
|
+
onEvent?: (event: {
|
|
12
|
+
type: string;
|
|
13
|
+
data?: Record<string, unknown>;
|
|
14
|
+
}) => void;
|
|
15
|
+
/** Callback to receive raw agent events (tool calls, streaming, thinking) for UI display. */
|
|
16
|
+
onAgentEvent?: (event: import('../contracts/v1/agent.js').AgentEventUnion) => void;
|
|
17
|
+
validationMode?: 'auto' | 'ask' | 'skip';
|
|
18
|
+
confirmValidation?: (moduleId: string, commands: string[]) => Promise<boolean>;
|
|
19
|
+
/** Create separate variant workspaces (git worktrees or copies) for dual RL. */
|
|
20
|
+
enableVariantWorktrees?: boolean;
|
|
21
|
+
/** Optional explicit variant workspace roots (overrides automatic creation). */
|
|
22
|
+
variantWorkspaceRoots?: Partial<Record<UpgradeVariant, string>>;
|
|
23
|
+
/** Optional upgrade/change-management policy to display in prompts and reports. */
|
|
24
|
+
repoPolicy?: string;
|
|
25
|
+
/** Enable parallel variant execution in dual-RL modes. */
|
|
26
|
+
parallelVariants?: boolean;
|
|
27
|
+
/** Apply winning variant's changes to primary workspace after completion. Defaults to true for tournament mode. */
|
|
28
|
+
applyWinnerChanges?: boolean;
|
|
29
|
+
/** Custom reward weights for scoring (uses defaults if not provided). */
|
|
30
|
+
rewardWeights?: import('../core/repoUpgradeOrchestrator.js').RewardWeights;
|
|
31
|
+
/** Optional factory to create variant-specific controllers for parallel execution. */
|
|
32
|
+
createVariantController?: (variant: UpgradeVariant, workspaceRoot: string) => Promise<AgentController>;
|
|
33
|
+
}
|
|
34
|
+
/** Extended report with cross-variant comparison data */
|
|
35
|
+
export interface EnhancedRepoUpgradeReport extends RepoUpgradeReport {
|
|
36
|
+
/** Comparison of changes between variants */
|
|
37
|
+
variantComparison?: CrossVariantComparison;
|
|
38
|
+
/** Whether winner's changes were applied to primary */
|
|
39
|
+
winnerChangesApplied?: boolean;
|
|
40
|
+
/** Which variant won overall (most step wins) */
|
|
41
|
+
overallWinner?: UpgradeVariant;
|
|
42
|
+
}
|
|
43
|
+
export declare function runRepoUpgradeFlow(options: RepoUpgradeFlowOptions): Promise<EnhancedRepoUpgradeReport>;
|
|
44
|
+
//# sourceMappingURL=repoUpgradeRunner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repoUpgradeRunner.d.ts","sourceRoot":"","sources":["../../src/orchestration/repoUpgradeRunner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eA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oCAAoC,EAAE,aAAa,CAAC;IAC3E,sFAAsF;IACtF,uBAAuB,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,KAAK,OAAO,CAAC,eAAe,CAAC,CAAC;CACxG;AAED,yDAAyD;AACzD,MAAM,WAAW,yBAA0B,SAAQ,iBAAiB;IAClE,6CAA6C;IAC7C,iBAAiB,CAAC,EAAE,sBAAsB,CAAC;IAC3C,uDAAuD;IACvD,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,iDAAiD;IACjD,aAAa,CAAC,EAAE,cAAc,CAAC;CAChC;AAED,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CA8J5G"}
|
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
import { RepoUpgradeOrchestrator, buildRepoWidePlan, REPO_UPGRADE_MODE_DEFINITIONS, extractRewardSignals, calculateRewardScore, } from '../core/repoUpgradeOrchestrator.js';
|
|
2
|
+
import { GitWorktreeManager } from '../core/gitWorktreeManager.js';
|
|
3
|
+
import { exec as execCallback } from 'node:child_process';
|
|
4
|
+
import { promisify } from 'node:util';
|
|
5
|
+
const exec = promisify(execCallback);
|
|
6
|
+
export async function runRepoUpgradeFlow(options) {
|
|
7
|
+
const plan = buildRepoWidePlan(options.workingDir, options.additionalScopes);
|
|
8
|
+
const modeDefinition = REPO_UPGRADE_MODE_DEFINITIONS[options.mode];
|
|
9
|
+
const isDualMode = modeDefinition.variants.includes('refiner');
|
|
10
|
+
const isTournamentMode = options.mode === 'dual-rl-tournament';
|
|
11
|
+
// Initialize GitWorktreeManager for dual-RL modes with worktree support
|
|
12
|
+
let worktreeManager = null;
|
|
13
|
+
let variantWorkspaceRoots = options.variantWorkspaceRoots;
|
|
14
|
+
if (isDualMode && options.enableVariantWorktrees && !variantWorkspaceRoots) {
|
|
15
|
+
worktreeManager = new GitWorktreeManager({
|
|
16
|
+
baseDir: options.workingDir,
|
|
17
|
+
sessionId: `upgrade-${Date.now()}`,
|
|
18
|
+
createBranches: true,
|
|
19
|
+
branchPrefix: 'agi-upgrade',
|
|
20
|
+
});
|
|
21
|
+
await worktreeManager.initialize();
|
|
22
|
+
// Create refiner workspace and wait for completion
|
|
23
|
+
await worktreeManager.createVariantWorkspace('refiner');
|
|
24
|
+
// Get workspace roots after creation is complete
|
|
25
|
+
variantWorkspaceRoots = worktreeManager.getWorkspaceRoots();
|
|
26
|
+
options.onEvent?.({
|
|
27
|
+
type: 'upgrade.worktrees.created',
|
|
28
|
+
data: {
|
|
29
|
+
roots: variantWorkspaceRoots,
|
|
30
|
+
supportsWorktrees: worktreeManager.supportsWorktrees,
|
|
31
|
+
baseCommit: worktreeManager.baseCommitHash,
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
// Cache for variant-specific controllers (for parallel execution)
|
|
36
|
+
const variantControllers = new Map();
|
|
37
|
+
variantControllers.set('primary', options.controller);
|
|
38
|
+
// Get or create controller for a specific variant
|
|
39
|
+
const getVariantController = async (variant, workspaceRoot) => {
|
|
40
|
+
// Use cached controller if available
|
|
41
|
+
if (variantControllers.has(variant)) {
|
|
42
|
+
return variantControllers.get(variant);
|
|
43
|
+
}
|
|
44
|
+
// For refiner in parallel mode, create a new controller if factory is provided
|
|
45
|
+
if (variant === 'refiner' && options.createVariantController && workspaceRoot) {
|
|
46
|
+
const controller = await options.createVariantController(variant, workspaceRoot);
|
|
47
|
+
variantControllers.set(variant, controller);
|
|
48
|
+
return controller;
|
|
49
|
+
}
|
|
50
|
+
// Fallback to primary controller (sequential mode)
|
|
51
|
+
return options.controller;
|
|
52
|
+
};
|
|
53
|
+
// Create orchestrator with variant-aware executor
|
|
54
|
+
const orchestrator = new RepoUpgradeOrchestrator(async (input) => {
|
|
55
|
+
const controller = await getVariantController(input.variant, input.workspaceRoot);
|
|
56
|
+
return executeUpgradeStep(controller, input, options.onAgentEvent, options.rewardWeights);
|
|
57
|
+
});
|
|
58
|
+
if (options.onEvent) {
|
|
59
|
+
orchestrator.onEvent((event) => options.onEvent?.(event));
|
|
60
|
+
}
|
|
61
|
+
// Determine parallel variant execution
|
|
62
|
+
const parallelVariants = options.parallelVariants ?? modeDefinition.parallelVariants ?? false;
|
|
63
|
+
const report = await orchestrator.run(plan, {
|
|
64
|
+
mode: options.mode,
|
|
65
|
+
continueOnFailure: options.continueOnFailure,
|
|
66
|
+
objective: options.objective,
|
|
67
|
+
variantWorkspaceRoots,
|
|
68
|
+
repoPolicy: options.repoPolicy,
|
|
69
|
+
parallelVariants,
|
|
70
|
+
});
|
|
71
|
+
// Build enhanced report
|
|
72
|
+
const enhancedReport = {
|
|
73
|
+
...report,
|
|
74
|
+
validationsExecuted: false,
|
|
75
|
+
};
|
|
76
|
+
// Compute cross-variant comparison if we have a worktree manager
|
|
77
|
+
if (worktreeManager && isDualMode) {
|
|
78
|
+
try {
|
|
79
|
+
const comparison = await worktreeManager.compareVariants();
|
|
80
|
+
if (comparison) {
|
|
81
|
+
enhancedReport.variantComparison = comparison;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
catch {
|
|
85
|
+
// Comparison is optional, continue without it
|
|
86
|
+
}
|
|
87
|
+
// Determine overall winner and apply changes
|
|
88
|
+
const overallWinner = determineOverallWinner(report);
|
|
89
|
+
enhancedReport.overallWinner = overallWinner;
|
|
90
|
+
// Default applyWinnerChanges to true for tournament mode
|
|
91
|
+
const shouldApplyWinner = options.applyWinnerChanges ?? isTournamentMode;
|
|
92
|
+
if (shouldApplyWinner && overallWinner === 'refiner') {
|
|
93
|
+
try {
|
|
94
|
+
const applied = await worktreeManager.applyWinnerChanges('refiner');
|
|
95
|
+
enhancedReport.winnerChangesApplied = applied;
|
|
96
|
+
options.onEvent?.({
|
|
97
|
+
type: 'upgrade.winner.applied',
|
|
98
|
+
data: { winner: 'refiner', applied },
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
catch {
|
|
102
|
+
enhancedReport.winnerChangesApplied = false;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
else if (shouldApplyWinner && overallWinner === 'primary') {
|
|
106
|
+
// Primary is already in the main workspace, nothing to apply
|
|
107
|
+
enhancedReport.winnerChangesApplied = true;
|
|
108
|
+
}
|
|
109
|
+
// Cleanup worktrees
|
|
110
|
+
try {
|
|
111
|
+
await worktreeManager.cleanup();
|
|
112
|
+
options.onEvent?.({
|
|
113
|
+
type: 'upgrade.worktrees.cleaned',
|
|
114
|
+
data: {},
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
catch {
|
|
118
|
+
// Best effort cleanup
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
// Run validations
|
|
122
|
+
const validationMode = options.validationMode ?? 'ask';
|
|
123
|
+
if (validationMode === 'skip') {
|
|
124
|
+
return enhancedReport;
|
|
125
|
+
}
|
|
126
|
+
const enrichedModules = [];
|
|
127
|
+
const validationArtifacts = [];
|
|
128
|
+
for (const module of report.modules) {
|
|
129
|
+
const validations = await runValidationsForModule(module, options.workingDir, validationMode, options.confirmValidation);
|
|
130
|
+
validationArtifacts.push(...validations);
|
|
131
|
+
enrichedModules.push({ ...module, validations });
|
|
132
|
+
}
|
|
133
|
+
return {
|
|
134
|
+
...enhancedReport,
|
|
135
|
+
modules: enrichedModules,
|
|
136
|
+
validationArtifacts,
|
|
137
|
+
validationsExecuted: validationMode === 'auto',
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Determine which variant won overall based on step wins.
|
|
142
|
+
*/
|
|
143
|
+
function determineOverallWinner(report) {
|
|
144
|
+
const stats = report.variantStats;
|
|
145
|
+
if (stats.refinerWins > stats.primaryWins) {
|
|
146
|
+
return 'refiner';
|
|
147
|
+
}
|
|
148
|
+
return 'primary';
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Build the prompt for a repo upgrade step. Tailored to primary vs refiner variants.
|
|
152
|
+
*/
|
|
153
|
+
function buildStepPrompt(input) {
|
|
154
|
+
const lines = [];
|
|
155
|
+
const modeDefinition = REPO_UPGRADE_MODE_DEFINITIONS[input.mode];
|
|
156
|
+
const variantLabel = input.variant === 'refiner' ? 'Refiner pass' : 'Primary pass';
|
|
157
|
+
const variantGuidance = modeDefinition?.variantGuidance?.[input.variant];
|
|
158
|
+
lines.push(`Repository upgrade (${modeDefinition?.label ?? input.mode})`);
|
|
159
|
+
if (modeDefinition?.description) {
|
|
160
|
+
lines.push(modeDefinition.description);
|
|
161
|
+
}
|
|
162
|
+
lines.push(variantGuidance ? `${variantLabel}: ${variantGuidance}` : variantLabel);
|
|
163
|
+
if (input.repoPolicy) {
|
|
164
|
+
lines.push(`Policy: ${input.repoPolicy}`);
|
|
165
|
+
}
|
|
166
|
+
if (input.workspaceRoot) {
|
|
167
|
+
lines.push(`Workspace: ${input.workspaceRoot}`);
|
|
168
|
+
}
|
|
169
|
+
lines.push(`Module: ${input.module.label}`);
|
|
170
|
+
lines.push(`Scope: ${formatScope(input.module.scope)}`);
|
|
171
|
+
lines.push(`Step: [${input.step.intent}] ${input.step.description}`);
|
|
172
|
+
if (input.step.prompt) {
|
|
173
|
+
lines.push(`Guidance: ${input.step.prompt}`);
|
|
174
|
+
}
|
|
175
|
+
if (input.module.codemodCommands?.length) {
|
|
176
|
+
lines.push(`Suggested codemods: ${input.module.codemodCommands.join(' | ')}`);
|
|
177
|
+
}
|
|
178
|
+
if (input.module.validationCommands?.length) {
|
|
179
|
+
lines.push(`Suggested checks: ${input.module.validationCommands.join(' | ')}`);
|
|
180
|
+
}
|
|
181
|
+
if (input.previousResult?.summary) {
|
|
182
|
+
lines.push(`Previous summary: ${truncate(input.previousResult.summary, 240)}`);
|
|
183
|
+
}
|
|
184
|
+
if (input.variant === 'refiner' && input.previousResult?.detail) {
|
|
185
|
+
lines.push(`Previous detail: ${truncate(input.previousResult.detail, 320)}`);
|
|
186
|
+
}
|
|
187
|
+
lines.push('Deliver a concise summary of actions taken and highlight remaining risks. Keep edits within the module scope and prefer commands/tests that run quickly and locally.');
|
|
188
|
+
return lines.join('\n');
|
|
189
|
+
}
|
|
190
|
+
async function executeUpgradeStep(controller, input, onAgentEvent, rewardWeights) {
|
|
191
|
+
const prompt = buildStepPrompt(input);
|
|
192
|
+
const start = Date.now();
|
|
193
|
+
let content = '';
|
|
194
|
+
let success = true;
|
|
195
|
+
let errorText;
|
|
196
|
+
const toolOutputs = [];
|
|
197
|
+
try {
|
|
198
|
+
for await (const event of controller.send(prompt)) {
|
|
199
|
+
// Forward all events to UI callback for display (thoughts, tools, streaming)
|
|
200
|
+
onAgentEvent?.(event);
|
|
201
|
+
if (event.type === 'message.delta') {
|
|
202
|
+
content += event.content;
|
|
203
|
+
}
|
|
204
|
+
else if (event.type === 'message.complete') {
|
|
205
|
+
content += event.content;
|
|
206
|
+
}
|
|
207
|
+
else if (event.type === 'tool.complete') {
|
|
208
|
+
// Collect tool outputs for enhanced scoring
|
|
209
|
+
if (typeof event.result === 'string') {
|
|
210
|
+
toolOutputs.push(event.result);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
else if (event.type === 'error') {
|
|
214
|
+
success = false;
|
|
215
|
+
errorText = typeof event.error === 'string' ? event.error : 'unknown error';
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
catch (error) {
|
|
220
|
+
success = false;
|
|
221
|
+
errorText = error instanceof Error ? error.message : String(error);
|
|
222
|
+
}
|
|
223
|
+
const durationMs = Date.now() - start;
|
|
224
|
+
const summary = summarizeResult(content || errorText || '');
|
|
225
|
+
const detail = content?.trim() || errorText || summary;
|
|
226
|
+
// Enhanced scoring using multi-signal reward system
|
|
227
|
+
const allOutput = [content, ...toolOutputs].join('\n');
|
|
228
|
+
const noOutput = !content.trim() && toolOutputs.length === 0;
|
|
229
|
+
const signals = noOutput ? { executionSuccess: 0, testsPassed: 0, staticAnalysis: 0, codeQuality: 0 } : extractRewardSignals(allOutput, durationMs);
|
|
230
|
+
// Override execution success based on actual success
|
|
231
|
+
signals.executionSuccess = success && !noOutput ? 1 : 0;
|
|
232
|
+
// Calculate composite score
|
|
233
|
+
const score = success && !noOutput ? calculateRewardScore(signals, rewardWeights) : 0;
|
|
234
|
+
return {
|
|
235
|
+
success,
|
|
236
|
+
summary,
|
|
237
|
+
detail,
|
|
238
|
+
score,
|
|
239
|
+
rewardSignals: signals,
|
|
240
|
+
durationMs,
|
|
241
|
+
execution: {
|
|
242
|
+
success,
|
|
243
|
+
output: summary,
|
|
244
|
+
duration: durationMs,
|
|
245
|
+
command: `upgrade:${input.module.id}:${input.step.id}:${input.variant}`,
|
|
246
|
+
error: success ? undefined : (errorText || summary),
|
|
247
|
+
},
|
|
248
|
+
findings: extractFindings(allOutput, input),
|
|
249
|
+
notes: buildNotes(input.step, success, summary),
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Extract findings (warnings, errors, recommendations) from execution output.
|
|
254
|
+
*/
|
|
255
|
+
function extractFindings(output, input) {
|
|
256
|
+
const findings = [];
|
|
257
|
+
// Look for deprecation warnings
|
|
258
|
+
const deprecationMatches = output.matchAll(/deprecat(?:ed|ion)[:\s]+([^\n]+)/gi);
|
|
259
|
+
for (const match of deprecationMatches) {
|
|
260
|
+
findings.push({
|
|
261
|
+
severity: 'medium',
|
|
262
|
+
category: 'deprecation',
|
|
263
|
+
title: `Deprecation in ${input.module.id}`,
|
|
264
|
+
description: match[1]?.trim(),
|
|
265
|
+
recommendation: 'Update to non-deprecated API',
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
// Look for security warnings
|
|
269
|
+
const securityMatches = output.matchAll(/(?:security|vulnerability|CVE)[:\s]+([^\n]+)/gi);
|
|
270
|
+
for (const match of securityMatches) {
|
|
271
|
+
findings.push({
|
|
272
|
+
severity: 'high',
|
|
273
|
+
category: 'security',
|
|
274
|
+
title: `Security concern in ${input.module.id}`,
|
|
275
|
+
description: match[1]?.trim(),
|
|
276
|
+
recommendation: 'Review and address security issue',
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
// Look for breaking changes
|
|
280
|
+
if (/breaking\s*change/i.test(output)) {
|
|
281
|
+
findings.push({
|
|
282
|
+
severity: 'high',
|
|
283
|
+
category: 'breaking-change',
|
|
284
|
+
title: `Breaking change detected in ${input.module.id}`,
|
|
285
|
+
recommendation: 'Verify compatibility and update dependents',
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
return findings;
|
|
289
|
+
}
|
|
290
|
+
function summarizeResult(text) {
|
|
291
|
+
if (!text.trim())
|
|
292
|
+
return 'No output';
|
|
293
|
+
const sanitized = text.replace(/\s+/g, ' ').trim();
|
|
294
|
+
return truncate(sanitized, 320);
|
|
295
|
+
}
|
|
296
|
+
function truncate(text, limit) {
|
|
297
|
+
if (text.length <= limit)
|
|
298
|
+
return text;
|
|
299
|
+
return `${text.slice(0, limit - 3)}...`;
|
|
300
|
+
}
|
|
301
|
+
function formatScope(scopes) {
|
|
302
|
+
if (!scopes.length)
|
|
303
|
+
return '(no scope)';
|
|
304
|
+
if (scopes.length === 1)
|
|
305
|
+
return scopes[0] ?? '(no scope)';
|
|
306
|
+
return scopes.slice(0, 3).join(' | ') + (scopes.length > 3 ? ' …' : '');
|
|
307
|
+
}
|
|
308
|
+
function buildNotes(step, success, summary) {
|
|
309
|
+
const notes = [];
|
|
310
|
+
if (!success) {
|
|
311
|
+
notes.push('Step failed');
|
|
312
|
+
}
|
|
313
|
+
if (step.intent === 'verify' && !/test|verify|lint/i.test(summary)) {
|
|
314
|
+
notes.push('Verification step did not mention tests/lint');
|
|
315
|
+
}
|
|
316
|
+
return notes;
|
|
317
|
+
}
|
|
318
|
+
async function runValidationsForModule(module, workingDir, mode, confirm) {
|
|
319
|
+
const commands = module.validationCommands || [];
|
|
320
|
+
if (commands.length === 0) {
|
|
321
|
+
return [];
|
|
322
|
+
}
|
|
323
|
+
if (module.status === 'skipped') {
|
|
324
|
+
return commands.map((command) => ({
|
|
325
|
+
command,
|
|
326
|
+
success: false,
|
|
327
|
+
output: '',
|
|
328
|
+
error: 'Skipped (module skipped)',
|
|
329
|
+
durationMs: 0,
|
|
330
|
+
skipped: true,
|
|
331
|
+
reason: 'module-skipped',
|
|
332
|
+
}));
|
|
333
|
+
}
|
|
334
|
+
if (mode === 'ask') {
|
|
335
|
+
const approved = confirm ? await confirm(module.id, commands) : false;
|
|
336
|
+
if (!approved) {
|
|
337
|
+
return commands.map((command) => ({
|
|
338
|
+
command,
|
|
339
|
+
success: false,
|
|
340
|
+
output: '',
|
|
341
|
+
error: 'Skipped (confirmation required)',
|
|
342
|
+
durationMs: 0,
|
|
343
|
+
skipped: true,
|
|
344
|
+
reason: 'confirmation-required',
|
|
345
|
+
}));
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
const results = [];
|
|
349
|
+
for (const command of commands) {
|
|
350
|
+
const start = Date.now();
|
|
351
|
+
try {
|
|
352
|
+
const { stdout, stderr } = await exec(command, { cwd: workingDir, maxBuffer: 2 * 1024 * 1024 });
|
|
353
|
+
const output = [stdout, stderr].filter(Boolean).join('\n').trim();
|
|
354
|
+
results.push({
|
|
355
|
+
command,
|
|
356
|
+
success: true,
|
|
357
|
+
output,
|
|
358
|
+
durationMs: Date.now() - start,
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
catch (error) {
|
|
362
|
+
const err = error;
|
|
363
|
+
const output = [err.stdout, err.stderr].filter(Boolean).join('\n').trim();
|
|
364
|
+
results.push({
|
|
365
|
+
command,
|
|
366
|
+
success: false,
|
|
367
|
+
output,
|
|
368
|
+
error: err.message ?? 'Validation failed',
|
|
369
|
+
durationMs: Date.now() - start,
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
return results;
|
|
374
|
+
}
|
|
375
|
+
//# sourceMappingURL=repoUpgradeRunner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repoUpgradeRunner.js","s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D,CAAC;YAC5E,MAAM,MAAM,GAAG,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC;YAC1E,OAAO,CAAC,IAAI,CAAC;gBACX,OAAO;gBACP,OAAO,EAAE,KAAK;gBACd,MAAM;gBACN,KAAK,EAAE,GAAG,CAAC,OAAO,IAAI,mBAAmB;gBACzC,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK;aAC/B,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Security Audit Runner with Dual Tournament RL Validation
|
|
3
|
+
*
|
|
4
|
+
* Provides continuous dual tournament RL-based security audit execution
|
|
5
|
+
* for Apple products and services with comprehensive validation.
|
|
6
|
+
*/
|
|
7
|
+
import { type AppleSecurityFinding } from '../core/appleSecurityIntegration.js';
|
|
8
|
+
import { type AppleSecurityAuditOptions } from '../core/appleSecurityAudit.js';
|
|
9
|
+
import { type TournamentOutcome } from '../core/dualTournament.js';
|
|
10
|
+
export interface SecurityAuditRunnerOptions {
|
|
11
|
+
/** Enable continuous mode - run until completion without user prompts */
|
|
12
|
+
continuous: boolean;
|
|
13
|
+
/** Enable dual tournament RL validation */
|
|
14
|
+
dualTournamentRL: boolean;
|
|
15
|
+
/** Enable validation of security fixes */
|
|
16
|
+
validationEnabled: boolean;
|
|
17
|
+
/** Apple security audit configuration */
|
|
18
|
+
auditConfig?: Partial<AppleSecurityAuditOptions>;
|
|
19
|
+
/** Callback for progress updates */
|
|
20
|
+
onProgress?: (progress: SecurityAuditProgress) => void;
|
|
21
|
+
/** Callback for tournament results */
|
|
22
|
+
onTournamentResult?: (result: TournamentOutcome) => void;
|
|
23
|
+
/** Maximum iterations for continuous mode */
|
|
24
|
+
maxIterations?: number;
|
|
25
|
+
/** Target scope for Apple products/services */
|
|
26
|
+
targetScope?: 'services' | 'devices' | 'network' | 'all';
|
|
27
|
+
}
|
|
28
|
+
export interface SecurityAuditProgress {
|
|
29
|
+
phase: string;
|
|
30
|
+
iteration: number;
|
|
31
|
+
totalIterations: number;
|
|
32
|
+
currentPhase: number;
|
|
33
|
+
totalPhases: number;
|
|
34
|
+
status: 'running' | 'completed' | 'failed';
|
|
35
|
+
message: string;
|
|
36
|
+
findings: AppleSecurityFinding[];
|
|
37
|
+
tournamentStats: TournamentStats;
|
|
38
|
+
}
|
|
39
|
+
export interface TournamentStats {
|
|
40
|
+
primaryWins: number;
|
|
41
|
+
refinerWins: number;
|
|
42
|
+
ties: number;
|
|
43
|
+
totalRounds: number;
|
|
44
|
+
averageScore: number;
|
|
45
|
+
humanAccuracyScore: number;
|
|
46
|
+
}
|
|
47
|
+
export interface SecurityAuditResult {
|
|
48
|
+
success: boolean;
|
|
49
|
+
findings: AppleSecurityFinding[];
|
|
50
|
+
fixes: SecurityFix[];
|
|
51
|
+
tournamentOutcomes: TournamentOutcome[];
|
|
52
|
+
metrics: SecurityAuditMetrics;
|
|
53
|
+
report: any;
|
|
54
|
+
}
|
|
55
|
+
export interface SecurityFix {
|
|
56
|
+
id: string;
|
|
57
|
+
findingId: string;
|
|
58
|
+
type: 'patch' | 'configuration' | 'hardening' | 'mitigation';
|
|
59
|
+
description: string;
|
|
60
|
+
applied: boolean;
|
|
61
|
+
validated: boolean;
|
|
62
|
+
validationScore: number;
|
|
63
|
+
}
|
|
64
|
+
export interface SecurityAuditMetrics {
|
|
65
|
+
totalFindings: number;
|
|
66
|
+
criticalFindings: number;
|
|
67
|
+
highFindings: number;
|
|
68
|
+
mediumFindings: number;
|
|
69
|
+
lowFindings: number;
|
|
70
|
+
fixesApplied: number;
|
|
71
|
+
fixesValidated: number;
|
|
72
|
+
validationSuccessRate: number;
|
|
73
|
+
tournamentRounds: number;
|
|
74
|
+
primaryWinRate: number;
|
|
75
|
+
refinerWinRate: number;
|
|
76
|
+
durationMs: number;
|
|
77
|
+
}
|
|
78
|
+
export declare class SecurityAuditRunner {
|
|
79
|
+
private options;
|
|
80
|
+
private audit;
|
|
81
|
+
private tournamentStats;
|
|
82
|
+
private tournamentOutcomes;
|
|
83
|
+
private fixes;
|
|
84
|
+
private startTime;
|
|
85
|
+
constructor(options: SecurityAuditRunnerOptions);
|
|
86
|
+
/**
|
|
87
|
+
* Run the full security audit with dual tournament RL validation
|
|
88
|
+
*/
|
|
89
|
+
run(): Promise<SecurityAuditResult>;
|
|
90
|
+
/**
|
|
91
|
+
* Run initial security audit
|
|
92
|
+
*/
|
|
93
|
+
private runInitialAudit;
|
|
94
|
+
/**
|
|
95
|
+
* Analyze vulnerabilities using dual tournament RL
|
|
96
|
+
*/
|
|
97
|
+
private runVulnerabilityAnalysis;
|
|
98
|
+
/**
|
|
99
|
+
* Run a tournament for a specific finding
|
|
100
|
+
*/
|
|
101
|
+
private runFindingTournament;
|
|
102
|
+
/**
|
|
103
|
+
* Generate security fixes based on findings
|
|
104
|
+
*/
|
|
105
|
+
private generateSecurityFixes;
|
|
106
|
+
/**
|
|
107
|
+
* Determine the type of fix based on finding
|
|
108
|
+
*/
|
|
109
|
+
private determineFixType;
|
|
110
|
+
/**
|
|
111
|
+
* Validate security fixes using dual tournament RL
|
|
112
|
+
*/
|
|
113
|
+
private validateFixes;
|
|
114
|
+
/**
|
|
115
|
+
* Run a validation tournament for a fix
|
|
116
|
+
*/
|
|
117
|
+
private runValidationTournament;
|
|
118
|
+
/**
|
|
119
|
+
* Run continuous improvement loop
|
|
120
|
+
*/
|
|
121
|
+
private runContinuousImprovement;
|
|
122
|
+
/**
|
|
123
|
+
* Update tournament statistics
|
|
124
|
+
*/
|
|
125
|
+
private updateTournamentStats;
|
|
126
|
+
/**
|
|
127
|
+
* Calculate final metrics
|
|
128
|
+
*/
|
|
129
|
+
private calculateMetrics;
|
|
130
|
+
/**
|
|
131
|
+
* Generate final report
|
|
132
|
+
*/
|
|
133
|
+
private generateFinalReport;
|
|
134
|
+
/**
|
|
135
|
+
* Emit progress update
|
|
136
|
+
*/
|
|
137
|
+
private emitProgress;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Run a complete security audit with dual tournament RL validation
|
|
141
|
+
*/
|
|
142
|
+
export declare function runSecurityAuditWithDualTournamentRL(options?: Partial<SecurityAuditRunnerOptions>): Promise<SecurityAuditResult>;
|
|
143
|
+
export default SecurityAuditRunner;
|
|
144
|
+
//# sourceMappingURL=securityAuditRunner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"securityAuditRunner.d.ts","sourceRoot":"","sources":["../../src/orchestration/securityAuditRunner.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAsD,KAAK,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AACpI,OAAO,EAAsB,KAAK,yBAAyB,EAAsB,MAAM,+BAA+B,CAAC;AAQvH,OAAO,EAIL,KAAK,iBAAiB,EAGvB,MAAM,2BAA2B,CAAC;AAOnC,MAAM,WAAW,0BAA0B;IACzC,yEAAyE;IACzE,UAAU,EAAE,OAAO,CAAC;IACpB,2CAA2C;IAC3C,gBAAgB,EAAE,OAAO,CAAC;IAC1B,0CAA0C;IAC1C,iBAAiB,EAAE,OAAO,CAAC;IAC3B,yCAAyC;IACzC,WAAW,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAC;IACjD,oCAAoC;IACpC,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACvD,sCAAsC;IACtC,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACzD,6CAA6C;IAC7C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,+CAA+C;IAC/C,WAAW,CAAC,EAAE,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,KAAK,C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