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,451 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hot Reload System for AGI Core
|
|
3
|
+
*
|
|
4
|
+
* Enables seamless version transitions by:
|
|
5
|
+
* 1. Detecting when a new version is available
|
|
6
|
+
* 2. Hot-swapping modules where possible
|
|
7
|
+
* 3. Gracefully restarting when full reload is needed
|
|
8
|
+
* 4. Preserving state across reloads
|
|
9
|
+
*
|
|
10
|
+
* Integrated with the self-upgrade system for continuous improvement.
|
|
11
|
+
*/
|
|
12
|
+
import { EventEmitter } from 'node:events';
|
|
13
|
+
import { existsSync, readFileSync, writeFileSync, mkdirSync, watchFile, unwatchFile } from 'node:fs';
|
|
14
|
+
import { homedir } from 'node:os';
|
|
15
|
+
import { join, dirname } from 'node:path';
|
|
16
|
+
import { exec as execCallback } from 'node:child_process';
|
|
17
|
+
import { promisify } from 'node:util';
|
|
18
|
+
import { getSelfUpgrade } from './selfUpgrade.js';
|
|
19
|
+
const execAsync = promisify(execCallback);
|
|
20
|
+
// ============================================================================
|
|
21
|
+
// CONSTANTS
|
|
22
|
+
// ============================================================================
|
|
23
|
+
const STATE_FILE = join(homedir(), '.agi', 'hot-reload-state.json');
|
|
24
|
+
const DEFAULT_CHECK_INTERVAL = 5 * 60 * 1000; // 5 minutes
|
|
25
|
+
// Modules that can be hot-swapped without restart
|
|
26
|
+
const HOT_SWAPPABLE_MODULES = [
|
|
27
|
+
'ui/theme',
|
|
28
|
+
'ui/layout',
|
|
29
|
+
'core/preferences',
|
|
30
|
+
'shell/commandRegistry',
|
|
31
|
+
];
|
|
32
|
+
// Core modules that require full restart
|
|
33
|
+
const RESTART_REQUIRED_MODULES = [
|
|
34
|
+
'core/agiCore',
|
|
35
|
+
'core/selfUpgrade',
|
|
36
|
+
'core/updateChecker',
|
|
37
|
+
'headless/interactiveShell',
|
|
38
|
+
'bin/agi',
|
|
39
|
+
];
|
|
40
|
+
// ============================================================================
|
|
41
|
+
// HOT RELOAD CLASS
|
|
42
|
+
// ============================================================================
|
|
43
|
+
export class HotReload extends EventEmitter {
|
|
44
|
+
config;
|
|
45
|
+
state;
|
|
46
|
+
checkTimer = null;
|
|
47
|
+
watchingFiles = [];
|
|
48
|
+
constructor(config = {}) {
|
|
49
|
+
super();
|
|
50
|
+
this.config = {
|
|
51
|
+
autoCheck: config.autoCheck ?? false,
|
|
52
|
+
checkInterval: config.checkInterval ?? DEFAULT_CHECK_INTERVAL,
|
|
53
|
+
enableHotSwap: config.enableHotSwap ?? true,
|
|
54
|
+
logger: config.logger ?? console.log,
|
|
55
|
+
workingDir: config.workingDir ?? process.cwd(),
|
|
56
|
+
};
|
|
57
|
+
this.state = this.loadState();
|
|
58
|
+
// Start auto-check if enabled
|
|
59
|
+
if (this.config.autoCheck) {
|
|
60
|
+
this.startAutoCheck();
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
// ==========================================================================
|
|
64
|
+
// STATE MANAGEMENT
|
|
65
|
+
// ==========================================================================
|
|
66
|
+
loadState() {
|
|
67
|
+
try {
|
|
68
|
+
if (existsSync(STATE_FILE)) {
|
|
69
|
+
return JSON.parse(readFileSync(STATE_FILE, 'utf8'));
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
catch {
|
|
73
|
+
// Start fresh
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
currentVersion: '0.0.0',
|
|
77
|
+
lastCheck: 0,
|
|
78
|
+
pendingReload: false,
|
|
79
|
+
hotSwappableModules: HOT_SWAPPABLE_MODULES,
|
|
80
|
+
preservedState: {},
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
saveState() {
|
|
84
|
+
try {
|
|
85
|
+
const dir = dirname(STATE_FILE);
|
|
86
|
+
if (!existsSync(dir)) {
|
|
87
|
+
mkdirSync(dir, { recursive: true });
|
|
88
|
+
}
|
|
89
|
+
writeFileSync(STATE_FILE, JSON.stringify(this.state, null, 2));
|
|
90
|
+
}
|
|
91
|
+
catch {
|
|
92
|
+
// Best-effort
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
// ==========================================================================
|
|
96
|
+
// VERSION CHECKING
|
|
97
|
+
// ==========================================================================
|
|
98
|
+
/**
|
|
99
|
+
* Start automatic version checking
|
|
100
|
+
*/
|
|
101
|
+
startAutoCheck() {
|
|
102
|
+
if (this.checkTimer) {
|
|
103
|
+
clearInterval(this.checkTimer);
|
|
104
|
+
}
|
|
105
|
+
this.checkTimer = setInterval(() => {
|
|
106
|
+
this.checkForUpdates().catch(() => { });
|
|
107
|
+
}, this.config.checkInterval);
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Stop automatic version checking
|
|
111
|
+
*/
|
|
112
|
+
stopAutoCheck() {
|
|
113
|
+
if (this.checkTimer) {
|
|
114
|
+
clearInterval(this.checkTimer);
|
|
115
|
+
this.checkTimer = null;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Check for available updates
|
|
120
|
+
*/
|
|
121
|
+
async checkForUpdates() {
|
|
122
|
+
this.emitEvent('hotReload:check', {});
|
|
123
|
+
this.state.lastCheck = Date.now();
|
|
124
|
+
this.saveState();
|
|
125
|
+
try {
|
|
126
|
+
const selfUpgrade = getSelfUpgrade();
|
|
127
|
+
const versionInfo = await selfUpgrade.checkForUpdates();
|
|
128
|
+
if (versionInfo.updateAvailable) {
|
|
129
|
+
const strategy = await this.determineReloadStrategy(versionInfo.current, versionInfo.latest);
|
|
130
|
+
this.state.pendingReload = true;
|
|
131
|
+
this.saveState();
|
|
132
|
+
this.emitEvent('hotReload:available', {
|
|
133
|
+
currentVersion: versionInfo.current,
|
|
134
|
+
latestVersion: versionInfo.latest,
|
|
135
|
+
strategy,
|
|
136
|
+
});
|
|
137
|
+
return {
|
|
138
|
+
available: true,
|
|
139
|
+
version: versionInfo.latest,
|
|
140
|
+
strategy,
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
return { available: false };
|
|
144
|
+
}
|
|
145
|
+
catch (error) {
|
|
146
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
147
|
+
this.emitEvent('hotReload:error', { error: errorMessage });
|
|
148
|
+
return { available: false };
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Determine the best reload strategy for a version update
|
|
153
|
+
*/
|
|
154
|
+
async determineReloadStrategy(currentVersion, targetVersion) {
|
|
155
|
+
// For major version bumps, always require restart
|
|
156
|
+
const currentMajor = parseInt(currentVersion.split('.')[0] || '0', 10);
|
|
157
|
+
const targetMajor = parseInt(targetVersion.split('.')[0] || '0', 10);
|
|
158
|
+
if (targetMajor > currentMajor) {
|
|
159
|
+
return {
|
|
160
|
+
canHotSwap: false,
|
|
161
|
+
requiresRestart: RESTART_REQUIRED_MODULES,
|
|
162
|
+
hotSwappable: [],
|
|
163
|
+
estimatedDowntimeMs: 3000,
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
// For minor/patch updates, check what changed
|
|
167
|
+
try {
|
|
168
|
+
const { stdout } = await execAsync(`npm view agi-core-cli@${targetVersion} dist.tarball`, { timeout: 10000 });
|
|
169
|
+
// If we can't determine changes, assume restart needed
|
|
170
|
+
if (!stdout.trim()) {
|
|
171
|
+
return {
|
|
172
|
+
canHotSwap: false,
|
|
173
|
+
requiresRestart: RESTART_REQUIRED_MODULES,
|
|
174
|
+
hotSwappable: [],
|
|
175
|
+
estimatedDowntimeMs: 2000,
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
// For now, assume patch updates can be hot-swapped for UI modules
|
|
179
|
+
const currentMinor = parseInt(currentVersion.split('.')[1] || '0', 10);
|
|
180
|
+
const targetMinor = parseInt(targetVersion.split('.')[1] || '0', 10);
|
|
181
|
+
if (targetMinor === currentMinor) {
|
|
182
|
+
// Patch update - try hot-swap
|
|
183
|
+
return {
|
|
184
|
+
canHotSwap: this.config.enableHotSwap,
|
|
185
|
+
requiresRestart: [],
|
|
186
|
+
hotSwappable: HOT_SWAPPABLE_MODULES,
|
|
187
|
+
estimatedDowntimeMs: 500,
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
// Minor update - partial hot-swap
|
|
191
|
+
return {
|
|
192
|
+
canHotSwap: this.config.enableHotSwap,
|
|
193
|
+
requiresRestart: RESTART_REQUIRED_MODULES.slice(0, 2),
|
|
194
|
+
hotSwappable: HOT_SWAPPABLE_MODULES,
|
|
195
|
+
estimatedDowntimeMs: 1500,
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
catch {
|
|
199
|
+
return {
|
|
200
|
+
canHotSwap: false,
|
|
201
|
+
requiresRestart: RESTART_REQUIRED_MODULES,
|
|
202
|
+
hotSwappable: [],
|
|
203
|
+
estimatedDowntimeMs: 2000,
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
// ==========================================================================
|
|
208
|
+
// HOT RELOAD EXECUTION
|
|
209
|
+
// ==========================================================================
|
|
210
|
+
/**
|
|
211
|
+
* Perform hot reload with state preservation
|
|
212
|
+
*/
|
|
213
|
+
async performHotReload(options = {}) {
|
|
214
|
+
const updateCheck = await this.checkForUpdates();
|
|
215
|
+
if (!updateCheck.available || !updateCheck.strategy) {
|
|
216
|
+
return { success: false, strategy: 'hot-swap', error: 'No update available' };
|
|
217
|
+
}
|
|
218
|
+
const strategy = updateCheck.strategy;
|
|
219
|
+
// Preserve state
|
|
220
|
+
if (options.preserveState) {
|
|
221
|
+
this.state.preservedState = {
|
|
222
|
+
...this.state.preservedState,
|
|
223
|
+
...options.preserveState,
|
|
224
|
+
};
|
|
225
|
+
this.saveState();
|
|
226
|
+
}
|
|
227
|
+
// Save RL context if provided
|
|
228
|
+
if (options.rlContext) {
|
|
229
|
+
const selfUpgrade = getSelfUpgrade();
|
|
230
|
+
selfUpgrade.saveRLCheckpoint(options.rlContext);
|
|
231
|
+
}
|
|
232
|
+
// Save active edits
|
|
233
|
+
if (options.activeEdits && options.activeEdits.length > 0) {
|
|
234
|
+
const selfUpgrade = getSelfUpgrade();
|
|
235
|
+
selfUpgrade.saveActiveEdits(options.activeEdits);
|
|
236
|
+
}
|
|
237
|
+
if (strategy.canHotSwap && strategy.hotSwappable.length > 0 && strategy.requiresRestart.length === 0) {
|
|
238
|
+
// Attempt hot-swap
|
|
239
|
+
try {
|
|
240
|
+
await this.hotSwapModules(strategy.hotSwappable);
|
|
241
|
+
this.state.pendingReload = false;
|
|
242
|
+
this.saveState();
|
|
243
|
+
this.emitEvent('hotReload:swap', { modules: strategy.hotSwappable });
|
|
244
|
+
return { success: true, strategy: 'hot-swap' };
|
|
245
|
+
}
|
|
246
|
+
catch (error) {
|
|
247
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
248
|
+
this.config.logger(`Hot-swap failed, falling back to restart: ${errorMessage}`);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
// Full restart required
|
|
252
|
+
return this.performFullRestart(options);
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Hot-swap specific modules without restart
|
|
256
|
+
*/
|
|
257
|
+
async hotSwapModules(modules) {
|
|
258
|
+
for (const modulePath of modules) {
|
|
259
|
+
try {
|
|
260
|
+
// Clear module from cache
|
|
261
|
+
const fullPath = join(this.config.workingDir, 'dist', modulePath + '.js');
|
|
262
|
+
if (typeof require !== 'undefined' && require.cache) {
|
|
263
|
+
delete require.cache[fullPath];
|
|
264
|
+
}
|
|
265
|
+
// Dynamic import to reload
|
|
266
|
+
await import(fullPath + `?t=${Date.now()}`);
|
|
267
|
+
this.config.logger(`Hot-swapped: ${modulePath}`);
|
|
268
|
+
}
|
|
269
|
+
catch (error) {
|
|
270
|
+
throw new Error(`Failed to hot-swap ${modulePath}: ${error}`);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Perform full restart with state preservation
|
|
276
|
+
*/
|
|
277
|
+
async performFullRestart(options = {}) {
|
|
278
|
+
this.emitEvent('hotReload:restart', { reason: 'full-reload-required' });
|
|
279
|
+
const selfUpgrade = getSelfUpgrade({
|
|
280
|
+
workingDir: this.config.workingDir,
|
|
281
|
+
logger: this.config.logger,
|
|
282
|
+
autoRestart: true,
|
|
283
|
+
sessionState: {
|
|
284
|
+
workingDir: this.config.workingDir,
|
|
285
|
+
fromVersion: this.state.currentVersion,
|
|
286
|
+
timestamp: Date.now(),
|
|
287
|
+
activeEdits: options.activeEdits,
|
|
288
|
+
rlContext: options.rlContext,
|
|
289
|
+
},
|
|
290
|
+
});
|
|
291
|
+
const result = await selfUpgrade.npmInstallFresh();
|
|
292
|
+
if (result.success) {
|
|
293
|
+
this.state.pendingReload = false;
|
|
294
|
+
this.state.currentVersion = result.toVersion || this.state.currentVersion;
|
|
295
|
+
this.saveState();
|
|
296
|
+
this.emitEvent('hotReload:complete', { version: result.toVersion });
|
|
297
|
+
return { success: true, strategy: 'restart' };
|
|
298
|
+
}
|
|
299
|
+
return { success: false, strategy: 'restart', error: result.error };
|
|
300
|
+
}
|
|
301
|
+
// ==========================================================================
|
|
302
|
+
// FILE WATCHING
|
|
303
|
+
// ==========================================================================
|
|
304
|
+
/**
|
|
305
|
+
* Watch for local file changes (development mode)
|
|
306
|
+
*/
|
|
307
|
+
watchFiles(files) {
|
|
308
|
+
// Unwatch existing
|
|
309
|
+
this.unwatchFiles();
|
|
310
|
+
for (const file of files) {
|
|
311
|
+
if (existsSync(file)) {
|
|
312
|
+
watchFile(file, { interval: 1000 }, () => {
|
|
313
|
+
this.config.logger(`File changed: ${file}`);
|
|
314
|
+
this.emit('fileChange', { file });
|
|
315
|
+
});
|
|
316
|
+
this.watchingFiles.push(file);
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Stop watching files
|
|
322
|
+
*/
|
|
323
|
+
unwatchFiles() {
|
|
324
|
+
for (const file of this.watchingFiles) {
|
|
325
|
+
unwatchFile(file);
|
|
326
|
+
}
|
|
327
|
+
this.watchingFiles = [];
|
|
328
|
+
}
|
|
329
|
+
// ==========================================================================
|
|
330
|
+
// STATE PRESERVATION
|
|
331
|
+
// ==========================================================================
|
|
332
|
+
/**
|
|
333
|
+
* Preserve state for reload
|
|
334
|
+
*/
|
|
335
|
+
preserveState(key, value) {
|
|
336
|
+
this.state.preservedState[key] = value;
|
|
337
|
+
this.saveState();
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* Get preserved state
|
|
341
|
+
*/
|
|
342
|
+
getPreservedState(key) {
|
|
343
|
+
return this.state.preservedState[key];
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* Clear preserved state
|
|
347
|
+
*/
|
|
348
|
+
clearPreservedState() {
|
|
349
|
+
this.state.preservedState = {};
|
|
350
|
+
this.saveState();
|
|
351
|
+
}
|
|
352
|
+
// ==========================================================================
|
|
353
|
+
// EVENT EMITTING
|
|
354
|
+
// ==========================================================================
|
|
355
|
+
emitEvent(type, data) {
|
|
356
|
+
const event = {
|
|
357
|
+
type,
|
|
358
|
+
timestamp: Date.now(),
|
|
359
|
+
data,
|
|
360
|
+
};
|
|
361
|
+
this.emit(type, event);
|
|
362
|
+
this.emit('hotReload', event);
|
|
363
|
+
}
|
|
364
|
+
// ==========================================================================
|
|
365
|
+
// CLEANUP
|
|
366
|
+
// ==========================================================================
|
|
367
|
+
/**
|
|
368
|
+
* Cleanup resources
|
|
369
|
+
*/
|
|
370
|
+
dispose() {
|
|
371
|
+
this.stopAutoCheck();
|
|
372
|
+
this.unwatchFiles();
|
|
373
|
+
this.removeAllListeners();
|
|
374
|
+
}
|
|
375
|
+
// ==========================================================================
|
|
376
|
+
// STATIC UTILITIES
|
|
377
|
+
// ==========================================================================
|
|
378
|
+
/**
|
|
379
|
+
* Check if we should resume from a hot reload
|
|
380
|
+
*/
|
|
381
|
+
static shouldResume() {
|
|
382
|
+
try {
|
|
383
|
+
if (!existsSync(STATE_FILE))
|
|
384
|
+
return false;
|
|
385
|
+
const state = JSON.parse(readFileSync(STATE_FILE, 'utf8'));
|
|
386
|
+
return Object.keys(state.preservedState || {}).length > 0;
|
|
387
|
+
}
|
|
388
|
+
catch {
|
|
389
|
+
return false;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* Get preserved state from previous session
|
|
394
|
+
*/
|
|
395
|
+
static getResumeState() {
|
|
396
|
+
try {
|
|
397
|
+
if (!existsSync(STATE_FILE))
|
|
398
|
+
return null;
|
|
399
|
+
const state = JSON.parse(readFileSync(STATE_FILE, 'utf8'));
|
|
400
|
+
return state.preservedState || null;
|
|
401
|
+
}
|
|
402
|
+
catch {
|
|
403
|
+
return null;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
// ============================================================================
|
|
408
|
+
// SINGLETON EXPORT
|
|
409
|
+
// ============================================================================
|
|
410
|
+
let hotReloadInstance = null;
|
|
411
|
+
export function getHotReload(config) {
|
|
412
|
+
if (!hotReloadInstance || config) {
|
|
413
|
+
hotReloadInstance = new HotReload(config);
|
|
414
|
+
}
|
|
415
|
+
return hotReloadInstance;
|
|
416
|
+
}
|
|
417
|
+
export function resetHotReload() {
|
|
418
|
+
if (hotReloadInstance) {
|
|
419
|
+
hotReloadInstance.dispose();
|
|
420
|
+
}
|
|
421
|
+
hotReloadInstance = null;
|
|
422
|
+
}
|
|
423
|
+
// ============================================================================
|
|
424
|
+
// CONVENIENCE FUNCTIONS
|
|
425
|
+
// ============================================================================
|
|
426
|
+
/**
|
|
427
|
+
* Quick check and reload if update available
|
|
428
|
+
*/
|
|
429
|
+
export async function checkAndReload(options = {}) {
|
|
430
|
+
const hotReload = getHotReload({ logger: options.logger });
|
|
431
|
+
const result = await hotReload.performHotReload(options);
|
|
432
|
+
return result.success;
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* Enable auto-checking for updates
|
|
436
|
+
*/
|
|
437
|
+
export function enableAutoCheck(intervalMs) {
|
|
438
|
+
const hotReload = getHotReload({
|
|
439
|
+
autoCheck: true,
|
|
440
|
+
checkInterval: intervalMs,
|
|
441
|
+
});
|
|
442
|
+
hotReload.startAutoCheck();
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* Disable auto-checking for updates
|
|
446
|
+
*/
|
|
447
|
+
export function disableAutoCheck() {
|
|
448
|
+
const hotReload = getHotReload();
|
|
449
|
+
hotReload.stopAutoCheck();
|
|
450
|
+
}
|
|
451
|
+
//# sourceMappingURL=hotReload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hotReload.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|
+
type: 'observation' | 'data' | 'test_result' | 'user_feedback';
|
|
3
|
+
content: string;
|
|
4
|
+
weight: number;
|
|
5
|
+
timestamp: Date;
|
|
6
|
+
};
|
|
7
|
+
export interface Hypothesis {
|
|
8
|
+
id: string;
|
|
9
|
+
description: string;
|
|
10
|
+
confidence: number;
|
|
11
|
+
evidence: Evidence[];
|
|
12
|
+
status: 'pending' | 'testing' | 'validated' | 'rejected';
|
|
13
|
+
}
|
|
14
|
+
export declare class BugHypothesisAnalyzer {
|
|
15
|
+
scoreEvidence(evidence: Evidence[]): number;
|
|
16
|
+
}
|
|
17
|
+
export declare class HypothesisEngine {
|
|
18
|
+
private readonly maxHypotheses;
|
|
19
|
+
private readonly analyzer;
|
|
20
|
+
private hypotheses;
|
|
21
|
+
constructor(maxHypotheses?: number);
|
|
22
|
+
generateHypothesis(description: string, evidence?: Evidence[]): Hypothesis;
|
|
23
|
+
addEvidence(id: string, evidence: Evidence): void;
|
|
24
|
+
getHypothesis(id: string): Hypothesis | undefined;
|
|
25
|
+
getBestHypothesis(): Hypothesis | undefined;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=hypothesisEngine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hypothesisEngine.d.ts","sourceRoot":"","sources":["../../src/core/hypothesisEngine.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,aAAa,GAAG,MAAM,GAAG,aAAa,GAAG,eAAe,CAAC;IAC/D,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,IAAI,CAAC;CACjB,CAAC;AAEF,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,QAAQ,EAAE,CAAC;IACrB,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;CAC1D;AAED,qBAAa,qBAAqB;IAChC,aAAa,CAAC,QAAQ,EAAE,QAAQ,EAAE,GAAG,MAAM;CAM5C;AAED,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAS;IACvC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAwB;IACjD,OAAO,CAAC,UAAU,CAAsC;gBAE5C,aAAa,SAAK;IAK9B,kBAAkB,CAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,GAAE,QAAQ,EAAO,GAAG,UAAU;IAoB9E,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,IAAI;IAQjD,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS;IAIjD,iBAAiB,IAAI,UAAU,GAAG,SAAS;CAS5C"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { randomUUID } from 'node:crypto';
|
|
2
|
+
export class BugHypothesisAnalyzer {
|
|
3
|
+
scoreEvidence(evidence) {
|
|
4
|
+
if (!evidence.length)
|
|
5
|
+
return 0.3;
|
|
6
|
+
const totalWeight = evidence.reduce((sum, item) => sum + item.weight, 0);
|
|
7
|
+
const normalized = Math.max(0, Math.min(1, 0.5 + totalWeight / (evidence.length * 2)));
|
|
8
|
+
return normalized;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export class HypothesisEngine {
|
|
12
|
+
maxHypotheses;
|
|
13
|
+
analyzer;
|
|
14
|
+
hypotheses = new Map();
|
|
15
|
+
constructor(maxHypotheses = 10) {
|
|
16
|
+
this.maxHypotheses = Math.max(1, maxHypotheses);
|
|
17
|
+
this.analyzer = new BugHypothesisAnalyzer();
|
|
18
|
+
}
|
|
19
|
+
generateHypothesis(description, evidence = []) {
|
|
20
|
+
// Keep memory bounded
|
|
21
|
+
if (this.hypotheses.size >= this.maxHypotheses) {
|
|
22
|
+
const oldest = [...this.hypotheses.keys()][0];
|
|
23
|
+
if (oldest)
|
|
24
|
+
this.hypotheses.delete(oldest);
|
|
25
|
+
}
|
|
26
|
+
const confidence = this.analyzer.scoreEvidence(evidence);
|
|
27
|
+
const hypothesis = {
|
|
28
|
+
id: randomUUID(),
|
|
29
|
+
description,
|
|
30
|
+
confidence,
|
|
31
|
+
evidence: [...evidence],
|
|
32
|
+
status: 'pending',
|
|
33
|
+
};
|
|
34
|
+
this.hypotheses.set(hypothesis.id, hypothesis);
|
|
35
|
+
return hypothesis;
|
|
36
|
+
}
|
|
37
|
+
addEvidence(id, evidence) {
|
|
38
|
+
const hyp = this.hypotheses.get(id);
|
|
39
|
+
if (!hyp)
|
|
40
|
+
return;
|
|
41
|
+
hyp.evidence.push(evidence);
|
|
42
|
+
hyp.confidence = this.analyzer.scoreEvidence(hyp.evidence);
|
|
43
|
+
hyp.status = 'pending';
|
|
44
|
+
}
|
|
45
|
+
getHypothesis(id) {
|
|
46
|
+
return this.hypotheses.get(id);
|
|
47
|
+
}
|
|
48
|
+
getBestHypothesis() {
|
|
49
|
+
let best;
|
|
50
|
+
for (const hyp of this.hypotheses.values()) {
|
|
51
|
+
if (!best || hyp.confidence > best.confidence) {
|
|
52
|
+
best = hyp;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return best;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=hypothesisEngine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hypothesisEngine.js","sourceRoot":"","sources":["../../src/core/hypothesisEngine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAiBzC,MAAM,OAAO,qBAAqB;IAChC,aAAa,CAAC,QAAoB;QAChC,IAAI,CAAC,QAAQ,CAAC,MAAM;YAAE,OAAO,GAAG,CAAC;QACjC,MAAM,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IA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AAU,CAAC,CAAC;QAC/C,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,WAAW,CAAC,EAAU,EAAE,QAAkB;QACxC,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACpC,IAAI,CAAC,GAAG;YAAE,OAAO;QACjB,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC5B,GAAG,CAAC,UAAU,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAC3D,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC;IACzB,CAAC;IAED,aAAa,CAAC,EAAU;QACtB,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACjC,CAAC;IAED,iBAAiB;QACf,IAAI,IAA4B,CAAC;QACjC,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,CAAC;YAC3C,IAAI,CAAC,IAAI,IAAI,GAAG,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;gBAC9C,IAAI,GAAG,GAAG,CAAC;YACb,CAAC;QACH,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core Layer - AGI CLI Core Systems
|
|
3
|
+
*
|
|
4
|
+
* This module exports the core functionality of AGI CLI:
|
|
5
|
+
* - AGI Core: Central intelligence and task planning
|
|
6
|
+
* - Self-Upgrade: Automatic version updates with session continuity
|
|
7
|
+
* - Hot-Reload: Seamless version transitions
|
|
8
|
+
* - Episodic Memory: Cross-session learning
|
|
9
|
+
* - Update Checker: Version checking utilities
|
|
10
|
+
*
|
|
11
|
+
* Usage:
|
|
12
|
+
* - AGI Core: import { getAGI, AGICore } from './agiCore.js';
|
|
13
|
+
* - Self-Upgrade: import { getSelfUpgrade, upgradeToLatest } from './selfUpgrade.js';
|
|
14
|
+
* - Hot-Reload: import { getHotReload, checkAndReload } from './hotReload.js';
|
|
15
|
+
*/
|
|
16
|
+
export { AGICore, getAGI, resetAGI, type AGIContext, type AGIMemory, type AGITask, type LearnedPattern, type OperationRecord, type ProjectKnowledge, type PromptAnalysis, type PromptIntent, type PromptCategory, type TaskCategory, type TaskResult, type ToolCallSpec, } from './agiCore.js';
|
|
17
|
+
export { SelfUpgrade, getSelfUpgrade, resetSelfUpgrade, upgradeToLatest, upgradeAndVerify, saveUpgradeState, resumeAfterUpgrade, type SelfUpgradeConfig, type UpgradeSessionState, type RLUpgradeContext, type BuildState, type TestState, type UpgradeResult, type VersionInfo, type UpgradeEventType, type UpgradeEvent, } from './selfUpgrade.js';
|
|
18
|
+
export { HotReload, getHotReload, resetHotReload, checkAndReload, enableAutoCheck, disableAutoCheck, type HotReloadConfig, type HotReloadState, type HotReloadEventType, type HotReloadEvent, type ReloadStrategy, } from './hotReload.js';
|
|
19
|
+
export { checkForUpdates, maybeAutoUpdate, formatUpdateNotification, formatUpdateBanner, getUpdateDecision, shouldShowUpdateNotification, readAutoUpdateState, performBackgroundUpdate, performUpdate, updateAndContinue, installPackageVersion, runNpmInstall, saveSessionState, loadSessionState, clearSessionState, hasPendingSession, type UpdateInfo, type AutoUpdateResult, type AutoUpdateState, type SessionState, } from './updateChecker.js';
|
|
20
|
+
export { getEpisodicMemory, createEpisodicMemory, type EpisodicMemory, type Episode, type LearnedApproach, type MemorySearchResult, type EpisodeCategory, } from './episodicMemory.js';
|
|
21
|
+
export { loadModelPreference, saveModelPreference, loadSessionPreferences, saveSessionPreferences, loadFeatureFlags, saveFeatureFlags, type SessionPreferences, type FeatureFlags, } from './preferences.js';
|
|
22
|
+
export { runDualTournament, DEFAULT_HUMAN_REWARD_WEIGHTS, type TournamentCandidate, type TournamentOutcome, type HumanRewardWeights, } from './dualTournament.js';
|
|
23
|
+
export { AntiTerminationProtection, initializeProtection, getProtection, enterCriticalSection, exitCriticalSection, authorizedShutdown, getProtectionStatus, type ProtectionStatus, type AntiTerminationConfig, } from './antiTermination.js';
|
|
24
|
+
export { FlowProtection, initializeFlowProtection, getFlowProtection, sanitizePrompt, sanitizeForDisplay, type InjectionAnalysis, type InjectionType, type FlowProtectionConfig, } from './flowProtection.js';
|
|
25
|
+
export { InputProtection, initializeInputProtection, getInputProtection, validateChatInput, validatePromptSubmit, type InputValidation, type InputAttackType, type InputProtectionConfig, } from './inputProtection.js';
|
|
26
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EACL,OAAO,EACP,MAAM,EACN,QAAQ,EACR,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,YAAY,GAClB,MAAM,cAAc,CAAC;AAMtB,OAAO,EACL,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,YAAY,GAClB,MAAM,kBAAkB,CAAC;AAM1B,OAAO,EACL,SAAS,EACT,YAAY,EACZ,cAAc,EACd,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,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AAoB,EACpB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,qBAAqB,GAC3B,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core Layer - AGI CLI Core Systems
|
|
3
|
+
*
|
|
4
|
+
* This module exports the core functionality of AGI CLI:
|
|
5
|
+
* - AGI Core: Central intelligence and task planning
|
|
6
|
+
* - Self-Upgrade: Automatic version updates with session continuity
|
|
7
|
+
* - Hot-Reload: Seamless version transitions
|
|
8
|
+
* - Episodic Memory: Cross-session learning
|
|
9
|
+
* - Update Checker: Version checking utilities
|
|
10
|
+
*
|
|
11
|
+
* Usage:
|
|
12
|
+
* - AGI Core: import { getAGI, AGICore } from './agiCore.js';
|
|
13
|
+
* - Self-Upgrade: import { getSelfUpgrade, upgradeToLatest } from './selfUpgrade.js';
|
|
14
|
+
* - Hot-Reload: import { getHotReload, checkAndReload } from './hotReload.js';
|
|
15
|
+
*/
|
|
16
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
17
|
+
// AGI Core - Central Intelligence
|
|
18
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
19
|
+
export { AGICore, getAGI, resetAGI, } from './agiCore.js';
|
|
20
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
21
|
+
// Self-Upgrade System
|
|
22
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
23
|
+
export { SelfUpgrade, getSelfUpgrade, resetSelfUpgrade, upgradeToLatest, upgradeAndVerify, saveUpgradeState, resumeAfterUpgrade, } from './selfUpgrade.js';
|
|
24
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
25
|
+
// Hot-Reload System
|
|
26
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
27
|
+
export { HotReload, getHotReload, resetHotReload, checkAndReload, enableAutoCheck, disableAutoCheck, } from './hotReload.js';
|
|
28
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
29
|
+
// Update Checker (Legacy compatibility)
|
|
30
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
31
|
+
export { checkForUpdates, maybeAutoUpdate, formatUpdateNotification, formatUpdateBanner, getUpdateDecision, shouldShowUpdateNotification, readAutoUpdateState, performBackgroundUpdate, performUpdate, updateAndContinue, installPackageVersion, runNpmInstall, saveSessionState, loadSessionState, clearSessionState, hasPendingSession, } from './updateChecker.js';
|
|
32
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
33
|
+
// Episodic Memory
|
|
34
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
35
|
+
export { getEpisodicMemory, createEpisodicMemory, } from './episodicMemory.js';
|
|
36
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
37
|
+
// Preferences
|
|
38
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
39
|
+
export { loadModelPreference, saveModelPreference, loadSessionPreferences, saveSessionPreferences, loadFeatureFlags, saveFeatureFlags, } from './preferences.js';
|
|
40
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
41
|
+
// Dual Tournament (RL System)
|
|
42
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
43
|
+
export { runDualTournament, DEFAULT_HUMAN_REWARD_WEIGHTS, } from './dualTournament.js';
|
|
44
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
45
|
+
// Anti-Termination Protection
|
|
46
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
47
|
+
export { AntiTerminationProtection, initializeProtection, getProtection, enterCriticalSection, exitCriticalSection, authorizedShutdown, getProtectionStatus, } from './antiTermination.js';
|
|
48
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
49
|
+
// Flow Protection (Prompt Injection & UI Safety)
|
|
50
|
+
// ═══════════════════════════════════════════════════════════════════════════════
|
|
51
|
+
export { FlowProtection, initializeFlowProtection, getFlowProtection, sanitizePrompt, sanitizeForDisplay, } from './flowProtection.js';
|
|
52
|
+
// Input Protection
|
|
53
|
+
export { InputProtection, initializeInputProtection, getInputProtection, validateChatInput, validatePromptSubmit, } from './inputProtection.js';
|
|
54
|
+
//# sourceMappingURL=index.js.map
|