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,131 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Centralized agent schema loader.
|
|
3
|
+
*
|
|
4
|
+
* This module provides type-safe loading and validation of the centralized
|
|
5
|
+
* agent configuration schema from src/contracts/agent-schemas.json.
|
|
6
|
+
* All agent-related configuration should be loaded through this module
|
|
7
|
+
* to ensure consistency across the application.
|
|
8
|
+
*/
|
|
9
|
+
import type { ProviderId } from './types.js';
|
|
10
|
+
import type { AgentProfileEntry } from '../contracts/v1/agentProfileManifest.js';
|
|
11
|
+
/**
|
|
12
|
+
* Provider configuration from centralized schema
|
|
13
|
+
*/
|
|
14
|
+
export interface ProviderConfig {
|
|
15
|
+
id: ProviderId;
|
|
16
|
+
label: string;
|
|
17
|
+
description?: string;
|
|
18
|
+
envVars?: {
|
|
19
|
+
apiKey?: string;
|
|
20
|
+
};
|
|
21
|
+
capabilities?: string[];
|
|
22
|
+
metadata?: Record<string, unknown>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Model configuration from centralized schema
|
|
26
|
+
*/
|
|
27
|
+
export interface ModelConfig {
|
|
28
|
+
id: string;
|
|
29
|
+
label: string;
|
|
30
|
+
provider: ProviderId;
|
|
31
|
+
description?: string;
|
|
32
|
+
reasoningEffort?: 'low' | 'medium' | 'high';
|
|
33
|
+
temperature?: number;
|
|
34
|
+
maxTokens?: number;
|
|
35
|
+
capabilities?: string[];
|
|
36
|
+
metadata?: Record<string, unknown>;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Slash command configuration
|
|
40
|
+
*/
|
|
41
|
+
export interface SlashCommandConfig {
|
|
42
|
+
command: string;
|
|
43
|
+
description: string;
|
|
44
|
+
category?: 'configuration' | 'diagnostics' | 'workspace' | 'other';
|
|
45
|
+
metadata?: Record<string, unknown>;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Capability definition
|
|
49
|
+
*/
|
|
50
|
+
export interface CapabilityConfig {
|
|
51
|
+
id: string;
|
|
52
|
+
label: string;
|
|
53
|
+
description?: string;
|
|
54
|
+
metadata?: Record<string, unknown>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* The complete centralized agent schema
|
|
58
|
+
*/
|
|
59
|
+
export interface AgentSchemasManifest {
|
|
60
|
+
contractVersion: string;
|
|
61
|
+
version: string;
|
|
62
|
+
label?: string;
|
|
63
|
+
description?: string;
|
|
64
|
+
providers: ProviderConfig[];
|
|
65
|
+
models: ModelConfig[];
|
|
66
|
+
profiles: AgentProfileEntry[];
|
|
67
|
+
slashCommands?: SlashCommandConfig[];
|
|
68
|
+
capabilities?: CapabilityConfig[];
|
|
69
|
+
metadata?: Record<string, unknown>;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Load the centralized agent schemas manifest.
|
|
73
|
+
* Results are cached for performance.
|
|
74
|
+
*
|
|
75
|
+
* @returns The complete agent schemas manifest
|
|
76
|
+
* @throws Error if the schema file cannot be read or parsed
|
|
77
|
+
*/
|
|
78
|
+
export declare function getAgentSchemas(): AgentSchemasManifest;
|
|
79
|
+
/**
|
|
80
|
+
* Get all provider configurations
|
|
81
|
+
*/
|
|
82
|
+
export declare function getProviders(): ProviderConfig[];
|
|
83
|
+
/**
|
|
84
|
+
* Get a specific provider by ID
|
|
85
|
+
*/
|
|
86
|
+
export declare function getProvider(providerId: ProviderId): ProviderConfig | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* Get all model configurations (includes both static and discovered models)
|
|
89
|
+
*/
|
|
90
|
+
export declare function getModels(): Promise<ModelConfig[]>;
|
|
91
|
+
/**
|
|
92
|
+
* Get models for a specific provider
|
|
93
|
+
*/
|
|
94
|
+
export declare function getModelsByProvider(providerId: ProviderId): Promise<ModelConfig[]>;
|
|
95
|
+
/**
|
|
96
|
+
* Get a specific model by ID
|
|
97
|
+
*/
|
|
98
|
+
export declare function getModel(modelId: string): Promise<ModelConfig | undefined>;
|
|
99
|
+
/**
|
|
100
|
+
* Get all agent profiles
|
|
101
|
+
*/
|
|
102
|
+
export declare function getProfiles(): AgentProfileEntry[];
|
|
103
|
+
/**
|
|
104
|
+
* Get a specific profile by name
|
|
105
|
+
*/
|
|
106
|
+
export declare function getProfile(profileName: string): AgentProfileEntry | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* Get all slash commands
|
|
109
|
+
*/
|
|
110
|
+
export declare function getSlashCommands(): SlashCommandConfig[];
|
|
111
|
+
/**
|
|
112
|
+
* Get all capabilities
|
|
113
|
+
*/
|
|
114
|
+
export declare function getCapabilities(): CapabilityConfig[];
|
|
115
|
+
/**
|
|
116
|
+
* Clear the cached schema (useful for testing)
|
|
117
|
+
*/
|
|
118
|
+
export declare function clearSchemaCache(): void;
|
|
119
|
+
/**
|
|
120
|
+
* Validate that a provider ID exists in the schema
|
|
121
|
+
*/
|
|
122
|
+
export declare function isValidProvider(providerId: string): providerId is ProviderId;
|
|
123
|
+
/**
|
|
124
|
+
* Validate that a model ID exists in the schema
|
|
125
|
+
*/
|
|
126
|
+
export declare function isValidModel(modelId: string): Promise<boolean>;
|
|
127
|
+
/**
|
|
128
|
+
* Validate that a profile name exists in the schema
|
|
129
|
+
*/
|
|
130
|
+
export declare function isValidProfile(profileName: string): boolean;
|
|
131
|
+
//# sourceMappingURL=agentSchemaLoader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentSchemaLoader.d.ts","sourceRoot":"","sources":["../../src/core/agentSchemaLoader.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAOH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAKjF;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,UAAU,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE;QACR,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,UAAU,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,KAAK,GAAG,QA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EG;AACH,wBAAgB,WAAW,CAAC,UAAU,EAAE,UAAU,GAAG,cAAc,GAAG,SAAS,CAG9E;AAED;;GAEG;AACH,wBAAsB,SAAS,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,CAmBxD;AAED;;GAEG;AACH,wBAAsB,mBAAmB,CAAC,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CAGxF;AAED;;GAEG;AACH,wBAAsB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC,CAGhF;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,iBAAiB,EAAE,CAGjD;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS,CAG7E;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,kBAAkB,EAAE,CAGvD;AAED;;GAEG;AACH,wBAAgB,eAAe,IAAI,gBAAgB,EAAE,CAGpD;AAiGD;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,IAAI,CAEvC;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,IAAI,UAAU,CAG5E;AAED;;GAEG;AACH,wBAAsB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAGpE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAG3D"}
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Centralized agent schema loader.
|
|
3
|
+
*
|
|
4
|
+
* This module provides type-safe loading and validation of the centralized
|
|
5
|
+
* agent configuration schema from src/contracts/agent-schemas.json.
|
|
6
|
+
* All agent-related configuration should be loaded through this module
|
|
7
|
+
* to ensure consistency across the application.
|
|
8
|
+
*/
|
|
9
|
+
import { readFileSync } from 'node:fs';
|
|
10
|
+
import { join, dirname } from 'node:path';
|
|
11
|
+
import { fileURLToPath } from 'node:url';
|
|
12
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
13
|
+
const __dirname = dirname(__filename);
|
|
14
|
+
/**
|
|
15
|
+
* Cached schema instance
|
|
16
|
+
*/
|
|
17
|
+
let cachedSchema = null;
|
|
18
|
+
/**
|
|
19
|
+
* Load the centralized agent schemas manifest.
|
|
20
|
+
* Results are cached for performance.
|
|
21
|
+
*
|
|
22
|
+
* @returns The complete agent schemas manifest
|
|
23
|
+
* @throws Error if the schema file cannot be read or parsed
|
|
24
|
+
*/
|
|
25
|
+
export function getAgentSchemas() {
|
|
26
|
+
if (cachedSchema) {
|
|
27
|
+
return cachedSchema;
|
|
28
|
+
}
|
|
29
|
+
try {
|
|
30
|
+
const schemaPath = join(__dirname, '..', 'contracts', 'agent-schemas.json');
|
|
31
|
+
const raw = readFileSync(schemaPath, 'utf-8');
|
|
32
|
+
const parsed = JSON.parse(raw);
|
|
33
|
+
// Basic validation
|
|
34
|
+
validateAgentSchemas(parsed);
|
|
35
|
+
cachedSchema = parsed;
|
|
36
|
+
return cachedSchema;
|
|
37
|
+
}
|
|
38
|
+
catch (error) {
|
|
39
|
+
throw new Error(`Failed to load agent schemas: ${error instanceof Error ? error.message : String(error)}`);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Get all provider configurations
|
|
44
|
+
*/
|
|
45
|
+
export function getProviders() {
|
|
46
|
+
const schemas = getAgentSchemas();
|
|
47
|
+
return schemas.providers;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Get a specific provider by ID
|
|
51
|
+
*/
|
|
52
|
+
export function getProvider(providerId) {
|
|
53
|
+
const providers = getProviders();
|
|
54
|
+
return providers.find((p) => p.id === providerId);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Get all model configurations (includes both static and discovered models)
|
|
58
|
+
*/
|
|
59
|
+
export async function getModels() {
|
|
60
|
+
const schemas = getAgentSchemas();
|
|
61
|
+
const staticModels = schemas.models;
|
|
62
|
+
// Try to load discovered models
|
|
63
|
+
try {
|
|
64
|
+
// Use dynamic import for ESM compatibility
|
|
65
|
+
const modelDiscoveryModule = await import('./modelDiscovery.js');
|
|
66
|
+
const discoveredModels = modelDiscoveryModule.getCachedDiscoveredModels();
|
|
67
|
+
// Merge models, preferring static definitions over discovered ones
|
|
68
|
+
const staticIds = new Set(staticModels.map((m) => m.id));
|
|
69
|
+
const uniqueDiscovered = discoveredModels.filter((m) => !staticIds.has(m.id));
|
|
70
|
+
return [...staticModels, ...uniqueDiscovered];
|
|
71
|
+
}
|
|
72
|
+
catch (error) {
|
|
73
|
+
// If discovery module fails, just return static models
|
|
74
|
+
return staticModels;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Get models for a specific provider
|
|
79
|
+
*/
|
|
80
|
+
export async function getModelsByProvider(providerId) {
|
|
81
|
+
const models = await getModels();
|
|
82
|
+
return models.filter((m) => m.provider === providerId);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Get a specific model by ID
|
|
86
|
+
*/
|
|
87
|
+
export async function getModel(modelId) {
|
|
88
|
+
const models = await getModels();
|
|
89
|
+
return models.find((m) => m.id === modelId);
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Get all agent profiles
|
|
93
|
+
*/
|
|
94
|
+
export function getProfiles() {
|
|
95
|
+
const schemas = getAgentSchemas();
|
|
96
|
+
return schemas.profiles;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Get a specific profile by name
|
|
100
|
+
*/
|
|
101
|
+
export function getProfile(profileName) {
|
|
102
|
+
const profiles = getProfiles();
|
|
103
|
+
return profiles.find((p) => p.name === profileName);
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Get all slash commands
|
|
107
|
+
*/
|
|
108
|
+
export function getSlashCommands() {
|
|
109
|
+
const schemas = getAgentSchemas();
|
|
110
|
+
return schemas.slashCommands ?? [];
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Get all capabilities
|
|
114
|
+
*/
|
|
115
|
+
export function getCapabilities() {
|
|
116
|
+
const schemas = getAgentSchemas();
|
|
117
|
+
return schemas.capabilities ?? [];
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Validate the agent schemas manifest structure
|
|
121
|
+
*/
|
|
122
|
+
function validateAgentSchemas(manifest) {
|
|
123
|
+
// Check required fields
|
|
124
|
+
if (!manifest.contractVersion) {
|
|
125
|
+
throw new Error('Missing required field: contractVersion');
|
|
126
|
+
}
|
|
127
|
+
if (!manifest.version) {
|
|
128
|
+
throw new Error('Missing required field: version');
|
|
129
|
+
}
|
|
130
|
+
if (!Array.isArray(manifest.providers) || manifest.providers.length === 0) {
|
|
131
|
+
throw new Error('Missing or empty required field: providers');
|
|
132
|
+
}
|
|
133
|
+
if (!Array.isArray(manifest.models) || manifest.models.length === 0) {
|
|
134
|
+
throw new Error('Missing or empty required field: models');
|
|
135
|
+
}
|
|
136
|
+
if (!Array.isArray(manifest.profiles) || manifest.profiles.length === 0) {
|
|
137
|
+
throw new Error('Missing or empty required field: profiles');
|
|
138
|
+
}
|
|
139
|
+
// Validate provider uniqueness
|
|
140
|
+
const providerIds = new Set();
|
|
141
|
+
for (const provider of manifest.providers) {
|
|
142
|
+
if (!provider.id || !provider.label) {
|
|
143
|
+
throw new Error('Provider missing required fields: id, label');
|
|
144
|
+
}
|
|
145
|
+
if (providerIds.has(provider.id)) {
|
|
146
|
+
throw new Error(`Duplicate provider ID: ${provider.id}`);
|
|
147
|
+
}
|
|
148
|
+
providerIds.add(provider.id);
|
|
149
|
+
}
|
|
150
|
+
// Validate model uniqueness and provider references
|
|
151
|
+
const modelIds = new Set();
|
|
152
|
+
for (const model of manifest.models) {
|
|
153
|
+
if (!model.id || !model.label || !model.provider) {
|
|
154
|
+
throw new Error('Model missing required fields: id, label, provider');
|
|
155
|
+
}
|
|
156
|
+
if (modelIds.has(model.id)) {
|
|
157
|
+
throw new Error(`Duplicate model ID: ${model.id}`);
|
|
158
|
+
}
|
|
159
|
+
if (!providerIds.has(model.provider)) {
|
|
160
|
+
throw new Error(`Model "${model.id}" references unknown provider: ${model.provider}`);
|
|
161
|
+
}
|
|
162
|
+
modelIds.add(model.id);
|
|
163
|
+
}
|
|
164
|
+
// Validate profile uniqueness and references
|
|
165
|
+
const profileNames = new Set();
|
|
166
|
+
for (const profile of manifest.profiles) {
|
|
167
|
+
if (!profile.name || !profile.label || !profile.defaultProvider || !profile.defaultModel) {
|
|
168
|
+
throw new Error('Profile missing required fields: name, label, defaultProvider, defaultModel');
|
|
169
|
+
}
|
|
170
|
+
if (profileNames.has(profile.name)) {
|
|
171
|
+
throw new Error(`Duplicate profile name: ${profile.name}`);
|
|
172
|
+
}
|
|
173
|
+
if (!providerIds.has(profile.defaultProvider)) {
|
|
174
|
+
throw new Error(`Profile "${profile.name}" references unknown provider: ${profile.defaultProvider}`);
|
|
175
|
+
}
|
|
176
|
+
if (!modelIds.has(profile.defaultModel)) {
|
|
177
|
+
throw new Error(`Profile "${profile.name}" references unknown model: ${profile.defaultModel}`);
|
|
178
|
+
}
|
|
179
|
+
profileNames.add(profile.name);
|
|
180
|
+
}
|
|
181
|
+
// Validate slash commands uniqueness
|
|
182
|
+
if (manifest.slashCommands) {
|
|
183
|
+
const commands = new Set();
|
|
184
|
+
for (const cmd of manifest.slashCommands) {
|
|
185
|
+
if (!cmd.command || !cmd.description) {
|
|
186
|
+
throw new Error('Slash command missing required fields: command, description');
|
|
187
|
+
}
|
|
188
|
+
if (commands.has(cmd.command)) {
|
|
189
|
+
throw new Error(`Duplicate slash command: ${cmd.command}`);
|
|
190
|
+
}
|
|
191
|
+
commands.add(cmd.command);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
// Validate capabilities uniqueness
|
|
195
|
+
if (manifest.capabilities) {
|
|
196
|
+
const capabilities = new Set();
|
|
197
|
+
for (const cap of manifest.capabilities) {
|
|
198
|
+
if (!cap.id || !cap.label) {
|
|
199
|
+
throw new Error('Capability missing required fields: id, label');
|
|
200
|
+
}
|
|
201
|
+
if (capabilities.has(cap.id)) {
|
|
202
|
+
throw new Error(`Duplicate capability ID: ${cap.id}`);
|
|
203
|
+
}
|
|
204
|
+
capabilities.add(cap.id);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Clear the cached schema (useful for testing)
|
|
210
|
+
*/
|
|
211
|
+
export function clearSchemaCache() {
|
|
212
|
+
cachedSchema = null;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Validate that a provider ID exists in the schema
|
|
216
|
+
*/
|
|
217
|
+
export function isValidProvider(providerId) {
|
|
218
|
+
const provider = getProvider(providerId);
|
|
219
|
+
return provider !== undefined;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Validate that a model ID exists in the schema
|
|
223
|
+
*/
|
|
224
|
+
export async function isValidModel(modelId) {
|
|
225
|
+
const model = await getModel(modelId);
|
|
226
|
+
return model !== undefined;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Validate that a profile name exists in the schema
|
|
230
|
+
*/
|
|
231
|
+
export function isValidProfile(profileName) {
|
|
232
|
+
const profile = getProfile(profileName);
|
|
233
|
+
return profile !== undefined;
|
|
234
|
+
}
|
|
235
|
+
//# sourceMappingURL=agentSchemaLoader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentSchemaLoader.js","sourceRoot":"","sources":["../../src/core/agentSchemaLoader.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAMzC,MAAM,UAAU,GAA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AAS,CAAC;AAChC,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,OAAe;IAChD,MAAM,KAAK,GAAG,MAAM,QAAQ,CAAC,OAAO,CAAC,CAAC;IACtC,OAAO,KAAK,KAAK,SAAS,CAAC;AAC7B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,WAAmB;IAChD,MAAM,OAAO,GAAG,UAAU,CAAC,WAAW,CAAC,CAAC;IACxC,OAAO,OAAO,KAAK,SAAS,CAAC;AAC/B,CAAC"}
|
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AGI Core - Unified Autonomous General Intelligence for Software Engineering
|
|
3
|
+
*
|
|
4
|
+
* This is the central intelligence module that provides:
|
|
5
|
+
* 1. Unified prompt understanding and routing
|
|
6
|
+
* 2. Real task decomposition and planning
|
|
7
|
+
* 3. Persistent learning and memory
|
|
8
|
+
* 4. Autonomous execution with verification
|
|
9
|
+
*
|
|
10
|
+
* NO SIMULATIONS - All operations execute real tools
|
|
11
|
+
*/
|
|
12
|
+
import { EventEmitter } from 'events';
|
|
13
|
+
import { type EpisodicMemory, type Episode, type MemorySearchResult } from './episodicMemory.js';
|
|
14
|
+
import { SelfUpgrade, type UpgradeSessionState } from './selfUpgrade.js';
|
|
15
|
+
import { HotReload } from './hotReload.js';
|
|
16
|
+
export interface AGIContext {
|
|
17
|
+
workingDir: string;
|
|
18
|
+
sessionId: string;
|
|
19
|
+
startTime: number;
|
|
20
|
+
memory: AGIMemory;
|
|
21
|
+
}
|
|
22
|
+
export interface AGIMemory {
|
|
23
|
+
/** Learned patterns from successful operations */
|
|
24
|
+
patterns: LearnedPattern[];
|
|
25
|
+
/** Recent operations for context */
|
|
26
|
+
recentOps: OperationRecord[];
|
|
27
|
+
/** Project-specific knowledge */
|
|
28
|
+
projectKnowledge: ProjectKnowledge;
|
|
29
|
+
}
|
|
30
|
+
export interface LearnedPattern {
|
|
31
|
+
id: string;
|
|
32
|
+
trigger: string;
|
|
33
|
+
successfulApproach: string;
|
|
34
|
+
tools: string[];
|
|
35
|
+
successCount: number;
|
|
36
|
+
lastUsed: number;
|
|
37
|
+
}
|
|
38
|
+
export interface OperationRecord {
|
|
39
|
+
id: string;
|
|
40
|
+
prompt: string;
|
|
41
|
+
interpretation: string;
|
|
42
|
+
tasks: string[];
|
|
43
|
+
success: boolean;
|
|
44
|
+
timestamp: number;
|
|
45
|
+
duration: number;
|
|
46
|
+
toolsUsed: string[];
|
|
47
|
+
errors?: string[];
|
|
48
|
+
}
|
|
49
|
+
export interface ProjectKnowledge {
|
|
50
|
+
type: 'node' | 'python' | 'rust' | 'go' | 'java' | 'unknown';
|
|
51
|
+
buildSystem: string | null;
|
|
52
|
+
testCommand: string | null;
|
|
53
|
+
lintCommand: string | null;
|
|
54
|
+
entryPoints: string[];
|
|
55
|
+
dependencies: Record<string, string>;
|
|
56
|
+
lastAnalyzed: number;
|
|
57
|
+
}
|
|
58
|
+
export interface AGITask {
|
|
59
|
+
id: string;
|
|
60
|
+
description: string;
|
|
61
|
+
category: TaskCategory;
|
|
62
|
+
tools: string[];
|
|
63
|
+
dependencies: string[];
|
|
64
|
+
status: 'pending' | 'in_progress' | 'completed' | 'failed' | 'skipped';
|
|
65
|
+
result?: TaskResult;
|
|
66
|
+
}
|
|
67
|
+
export type TaskCategory = 'analysis' | 'search' | 'execution' | 'modification' | 'verification' | 'communication' | 'research' | 'generation' | 'computation' | 'automation';
|
|
68
|
+
export interface TaskResult {
|
|
69
|
+
success: boolean;
|
|
70
|
+
output: string;
|
|
71
|
+
duration: number;
|
|
72
|
+
artifacts?: string[];
|
|
73
|
+
errors?: string[];
|
|
74
|
+
}
|
|
75
|
+
export interface PromptAnalysis {
|
|
76
|
+
originalPrompt: string;
|
|
77
|
+
interpretation: string;
|
|
78
|
+
intent: PromptIntent;
|
|
79
|
+
category: PromptCategory;
|
|
80
|
+
confidence: number;
|
|
81
|
+
tasks: AGITask[];
|
|
82
|
+
clarificationNeeded: string[];
|
|
83
|
+
}
|
|
84
|
+
export type PromptIntent = 'fix_bugs' | 'add_feature' | 'refactor' | 'test' | 'document' | 'deploy' | 'analyze' | 'explain' | 'optimize' | 'security_audit' | 'setup' | 'migrate' | 'research' | 'data_analysis' | 'scientific_computing' | 'legal_research' | 'business_analysis' | 'financial_analysis' | 'automate' | 'monitor' | 'generic_task';
|
|
85
|
+
export type PromptCategory = 'code_modification' | 'code_analysis' | 'infrastructure' | 'testing' | 'documentation' | 'research' | 'automation' | 'scientific' | 'business' | 'legal' | 'financial' | 'operations' | 'general_coding';
|
|
86
|
+
export declare class AGICore extends EventEmitter {
|
|
87
|
+
private context;
|
|
88
|
+
private memoryPath;
|
|
89
|
+
private episodicMemory;
|
|
90
|
+
private currentEpisodeId;
|
|
91
|
+
private selfUpgrade;
|
|
92
|
+
private hotReload;
|
|
93
|
+
private upgradeCheckPromise;
|
|
94
|
+
constructor(workingDir?: string);
|
|
95
|
+
/**
|
|
96
|
+
* Non-blocking upgrade check on startup
|
|
97
|
+
*/
|
|
98
|
+
private checkForUpgradeOnStart;
|
|
99
|
+
private loadMemory;
|
|
100
|
+
private createEmptyMemory;
|
|
101
|
+
private saveMemory;
|
|
102
|
+
/**
|
|
103
|
+
* Learn from a successful operation
|
|
104
|
+
*/
|
|
105
|
+
learnFromSuccess(prompt: string, approach: string, tools: string[]): void;
|
|
106
|
+
/**
|
|
107
|
+
* Record an operation for context
|
|
108
|
+
*/
|
|
109
|
+
recordOperation(op: OperationRecord): void;
|
|
110
|
+
/**
|
|
111
|
+
* Get learned approach for similar prompts
|
|
112
|
+
*/
|
|
113
|
+
getLearnedApproach(prompt: string): LearnedPattern | null;
|
|
114
|
+
private normalizePrompt;
|
|
115
|
+
private promptSimilarity;
|
|
116
|
+
private analyzeProject;
|
|
117
|
+
/**
|
|
118
|
+
* Analyze a user prompt and produce a comprehensive execution plan
|
|
119
|
+
*/
|
|
120
|
+
analyzePrompt(prompt: string): PromptAnalysis;
|
|
121
|
+
private determineIntent;
|
|
122
|
+
private determineCategory;
|
|
123
|
+
private generateInterpretation;
|
|
124
|
+
private generateTasks;
|
|
125
|
+
private checkAmbiguity;
|
|
126
|
+
private createFromLearnedPattern;
|
|
127
|
+
/**
|
|
128
|
+
* Generate tool calls for a given analysis
|
|
129
|
+
* Returns explicit tool call specifications ready for execution
|
|
130
|
+
*/
|
|
131
|
+
generateToolCalls(analysis: PromptAnalysis): ToolCallSpec[];
|
|
132
|
+
/**
|
|
133
|
+
* Get the current AGI context
|
|
134
|
+
*/
|
|
135
|
+
getContext(): AGIContext;
|
|
136
|
+
/**
|
|
137
|
+
* Get project knowledge
|
|
138
|
+
*/
|
|
139
|
+
getProjectKnowledge(): ProjectKnowledge;
|
|
140
|
+
/**
|
|
141
|
+
* Get recent operations
|
|
142
|
+
*/
|
|
143
|
+
getRecentOperations(limit?: number): OperationRecord[];
|
|
144
|
+
/**
|
|
145
|
+
* Get learned patterns
|
|
146
|
+
*/
|
|
147
|
+
getLearnedPatterns(): LearnedPattern[];
|
|
148
|
+
/**
|
|
149
|
+
* Force project re-analysis
|
|
150
|
+
*/
|
|
151
|
+
refreshProjectKnowledge(): ProjectKnowledge;
|
|
152
|
+
/**
|
|
153
|
+
* Start tracking a new episode (task/conversation unit)
|
|
154
|
+
*/
|
|
155
|
+
startEpisode(intent: string): string;
|
|
156
|
+
/**
|
|
157
|
+
* Record tool usage within the current episode
|
|
158
|
+
*/
|
|
159
|
+
recordEpisodeToolUse(toolName: string): void;
|
|
160
|
+
/**
|
|
161
|
+
* Record file modification within the current episode
|
|
162
|
+
*/
|
|
163
|
+
recordEpisodeFileModification(filePath: string): void;
|
|
164
|
+
/**
|
|
165
|
+
* End the current episode and save to memory
|
|
166
|
+
*/
|
|
167
|
+
endEpisode(success: boolean, summary: string): Promise<Episode | null>;
|
|
168
|
+
/**
|
|
169
|
+
* Abort the current episode without saving
|
|
170
|
+
*/
|
|
171
|
+
abortEpisode(): void;
|
|
172
|
+
/**
|
|
173
|
+
* Search episodic memory for similar past work
|
|
174
|
+
*/
|
|
175
|
+
searchMemory(query: string, options?: {
|
|
176
|
+
limit?: number;
|
|
177
|
+
successOnly?: boolean;
|
|
178
|
+
since?: number;
|
|
179
|
+
}): Promise<MemorySearchResult[]>;
|
|
180
|
+
/**
|
|
181
|
+
* Get learned approach from episodic memory
|
|
182
|
+
*/
|
|
183
|
+
getEpisodicApproach(intent: string): Promise<{
|
|
184
|
+
approach: string[];
|
|
185
|
+
tools: string[];
|
|
186
|
+
successRate: number;
|
|
187
|
+
} | null>;
|
|
188
|
+
/**
|
|
189
|
+
* Get recent episodes for context
|
|
190
|
+
*/
|
|
191
|
+
getRecentEpisodes(limit?: number): Episode[];
|
|
192
|
+
/**
|
|
193
|
+
* Get episodic memory statistics
|
|
194
|
+
*/
|
|
195
|
+
getEpisodicMemoryStats(): {
|
|
196
|
+
totalEpisodes: number;
|
|
197
|
+
successfulEpisodes: number;
|
|
198
|
+
totalApproaches: number;
|
|
199
|
+
categoryCounts: Record<string, number>;
|
|
200
|
+
topTags: string[];
|
|
201
|
+
};
|
|
202
|
+
/**
|
|
203
|
+
* Get the episodic memory instance for direct access
|
|
204
|
+
*/
|
|
205
|
+
getEpisodicMemory(): EpisodicMemory;
|
|
206
|
+
/**
|
|
207
|
+
* Check if there's an active episode
|
|
208
|
+
*/
|
|
209
|
+
hasActiveEpisode(): boolean;
|
|
210
|
+
/**
|
|
211
|
+
* Get current episode ID
|
|
212
|
+
*/
|
|
213
|
+
getCurrentEpisodeId(): string | null;
|
|
214
|
+
/**
|
|
215
|
+
* Check for available updates
|
|
216
|
+
*/
|
|
217
|
+
checkForUpdates(): Promise<{
|
|
218
|
+
available: boolean;
|
|
219
|
+
current: string;
|
|
220
|
+
latest: string;
|
|
221
|
+
}>;
|
|
222
|
+
/**
|
|
223
|
+
* Perform self-upgrade to latest version
|
|
224
|
+
* Saves session state and restarts CLI automatically
|
|
225
|
+
*/
|
|
226
|
+
performSelfUpgrade(options?: {
|
|
227
|
+
version?: string;
|
|
228
|
+
preserveSession?: boolean;
|
|
229
|
+
}): Promise<{
|
|
230
|
+
success: boolean;
|
|
231
|
+
fromVersion: string;
|
|
232
|
+
toVersion?: string;
|
|
233
|
+
error?: string;
|
|
234
|
+
}>;
|
|
235
|
+
/**
|
|
236
|
+
* Perform self-upgrade with build and test verification
|
|
237
|
+
*/
|
|
238
|
+
performVerifiedUpgrade(options?: {
|
|
239
|
+
version?: string;
|
|
240
|
+
buildCommand?: string;
|
|
241
|
+
testCommand?: string;
|
|
242
|
+
}): Promise<{
|
|
243
|
+
success: boolean;
|
|
244
|
+
buildSuccess: boolean;
|
|
245
|
+
testsPassed: number;
|
|
246
|
+
testsFailed: number;
|
|
247
|
+
fromVersion: string;
|
|
248
|
+
toVersion?: string;
|
|
249
|
+
}>;
|
|
250
|
+
/**
|
|
251
|
+
* Trigger hot-reload if update is available
|
|
252
|
+
*/
|
|
253
|
+
triggerHotReload(options?: {
|
|
254
|
+
preserveState?: Record<string, unknown>;
|
|
255
|
+
activeEdits?: string[];
|
|
256
|
+
}): Promise<{
|
|
257
|
+
success: boolean;
|
|
258
|
+
strategy: 'hot-swap' | 'restart';
|
|
259
|
+
error?: string;
|
|
260
|
+
}>;
|
|
261
|
+
/**
|
|
262
|
+
* Resume from previous upgrade session
|
|
263
|
+
*/
|
|
264
|
+
resumeFromUpgrade(): UpgradeSessionState | null;
|
|
265
|
+
/**
|
|
266
|
+
* Get the self-upgrade instance for direct access
|
|
267
|
+
*/
|
|
268
|
+
getSelfUpgrade(): SelfUpgrade;
|
|
269
|
+
/**
|
|
270
|
+
* Get the hot-reload instance for direct access
|
|
271
|
+
*/
|
|
272
|
+
getHotReload(): HotReload;
|
|
273
|
+
/**
|
|
274
|
+
* Check if this session was started after an upgrade
|
|
275
|
+
*/
|
|
276
|
+
wasUpgraded(): boolean;
|
|
277
|
+
/**
|
|
278
|
+
* Get version we upgraded from (if applicable)
|
|
279
|
+
*/
|
|
280
|
+
getUpgradeFromVersion(): string | null;
|
|
281
|
+
}
|
|
282
|
+
export interface ToolCallSpec {
|
|
283
|
+
tool: string;
|
|
284
|
+
args: Record<string, unknown>;
|
|
285
|
+
description: string;
|
|
286
|
+
taskId: string;
|
|
287
|
+
}
|
|
288
|
+
export declare function getAGI(workingDir?: string): AGICore;
|
|
289
|
+
export declare function resetAGI(): void;
|
|
290
|
+
//# sourceMappingURL=agiCore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agiCore.d.ts","sourceRoot":"","sources":["../../src/core/agiCore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAqB,KAAK,cAAc,EAAE,KAAK,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACpH,OAAO,EAAkB,WAAW,EAAE,KAAK,mBAAmB,EAAyB,MAAM,kBAAkB,CAAC;AAChH,OAAO,EAAgB,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAMzD,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,SAAS,CAAC;CACnB;AAED,MAAM,WAAW,SAAS;IACxB,kDAAkD;IAClD,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,oCAAoC;IACpC,SAAS,EAAE,eAAe,EAAE,CAAC;IAC7B,iCAAiC;IACjC,gBAAgB,EAAE,gBAAgB,CAAC;CACpC;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;CACl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