erosolar-cli 1.7.195 → 1.7.196
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/dist/StringUtils.d.ts +8 -0
- package/dist/StringUtils.d.ts.map +1 -0
- package/dist/StringUtils.js +11 -0
- package/dist/StringUtils.js.map +1 -0
- package/dist/adapters/browser/index.d.ts +12 -0
- package/dist/adapters/browser/index.d.ts.map +1 -0
- package/dist/adapters/browser/index.js +11 -0
- package/dist/adapters/browser/index.js.map +1 -0
- package/dist/adapters/node/index.d.ts +17 -0
- package/dist/adapters/node/index.d.ts.map +1 -0
- package/dist/adapters/node/index.js +35 -0
- package/dist/adapters/node/index.js.map +1 -0
- package/dist/adapters/remote/index.d.ts +13 -0
- package/dist/adapters/remote/index.d.ts.map +1 -0
- package/dist/adapters/remote/index.js +20 -0
- package/dist/adapters/remote/index.js.map +1 -0
- package/dist/adapters/types.d.ts +14 -0
- package/dist/adapters/types.d.ts.map +1 -0
- package/dist/adapters/types.js +2 -0
- package/dist/adapters/types.js.map +1 -0
- package/dist/alpha-zero/agentWrapper.d.ts +84 -0
- package/dist/alpha-zero/agentWrapper.d.ts.map +1 -0
- package/dist/alpha-zero/agentWrapper.js +171 -0
- package/dist/alpha-zero/agentWrapper.js.map +1 -0
- package/dist/alpha-zero/codeEvaluator.d.ts +25 -0
- package/dist/alpha-zero/codeEvaluator.d.ts.map +1 -0
- package/dist/alpha-zero/codeEvaluator.js +273 -0
- package/dist/alpha-zero/codeEvaluator.js.map +1 -0
- package/dist/alpha-zero/competitiveRunner.d.ts +66 -0
- package/dist/alpha-zero/competitiveRunner.d.ts.map +1 -0
- package/dist/alpha-zero/competitiveRunner.js +224 -0
- package/dist/alpha-zero/competitiveRunner.js.map +1 -0
- package/dist/alpha-zero/index.d.ts +67 -0
- package/dist/alpha-zero/index.d.ts.map +1 -0
- package/dist/alpha-zero/index.js +99 -0
- package/dist/alpha-zero/index.js.map +1 -0
- package/dist/alpha-zero/introspection.d.ts +128 -0
- package/dist/alpha-zero/introspection.d.ts.map +1 -0
- package/dist/alpha-zero/introspection.js +300 -0
- package/dist/alpha-zero/introspection.js.map +1 -0
- package/dist/alpha-zero/metricsTracker.d.ts +71 -0
- package/dist/alpha-zero/metricsTracker.d.ts.map +1 -0
- package/dist/alpha-zero/metricsTracker.js +209 -0
- package/dist/alpha-zero/metricsTracker.js.map +1 -0
- package/dist/alpha-zero/security/core.d.ts +125 -0
- package/dist/alpha-zero/security/core.d.ts.map +1 -0
- package/dist/alpha-zero/security/core.js +271 -0
- package/dist/alpha-zero/security/core.js.map +1 -0
- package/dist/alpha-zero/security/google.d.ts +125 -0
- package/dist/alpha-zero/security/google.d.ts.map +1 -0
- package/dist/alpha-zero/security/google.js +311 -0
- package/dist/alpha-zero/security/google.js.map +1 -0
- package/dist/alpha-zero/security/googleLoader.d.ts +17 -0
- package/dist/alpha-zero/security/googleLoader.d.ts.map +1 -0
- package/dist/alpha-zero/security/googleLoader.js +41 -0
- package/dist/alpha-zero/security/googleLoader.js.map +1 -0
- package/dist/alpha-zero/security/index.d.ts +29 -0
- package/dist/alpha-zero/security/index.d.ts.map +1 -0
- package/dist/alpha-zero/security/index.js +32 -0
- package/dist/alpha-zero/security/index.js.map +1 -0
- package/dist/alpha-zero/security/simulation.d.ts +124 -0
- package/dist/alpha-zero/security/simulation.d.ts.map +1 -0
- package/dist/alpha-zero/security/simulation.js +277 -0
- package/dist/alpha-zero/security/simulation.js.map +1 -0
- package/dist/alpha-zero/selfModification.d.ts +109 -0
- package/dist/alpha-zero/selfModification.d.ts.map +1 -0
- package/dist/alpha-zero/selfModification.js +233 -0
- package/dist/alpha-zero/selfModification.js.map +1 -0
- package/dist/alpha-zero/types.d.ts +170 -0
- package/dist/alpha-zero/types.d.ts.map +1 -0
- package/dist/alpha-zero/types.js +31 -0
- package/dist/alpha-zero/types.js.map +1 -0
- package/dist/bin/erosolar.d.ts +9 -0
- package/dist/bin/erosolar.d.ts.map +1 -0
- package/dist/bin/erosolar.js +88 -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/browser/BrowserSessionManager.d.ts +307 -0
- package/dist/browser/BrowserSessionManager.d.ts.map +1 -0
- package/dist/browser/BrowserSessionManager.js +713 -0
- package/dist/browser/BrowserSessionManager.js.map +1 -0
- package/dist/capabilities/advancedTestGenerationCapability.d.ts +17 -0
- package/dist/capabilities/advancedTestGenerationCapability.d.ts.map +1 -0
- package/dist/capabilities/advancedTestGenerationCapability.js +28 -0
- package/dist/capabilities/advancedTestGenerationCapability.js.map +1 -0
- package/dist/capabilities/agentSpawningCapability.d.ts +6 -0
- package/dist/capabilities/agentSpawningCapability.d.ts.map +1 -0
- package/dist/capabilities/agentSpawningCapability.js +115 -0
- package/dist/capabilities/agentSpawningCapability.js.map +1 -0
- package/dist/capabilities/askUserCapability.d.ts +21 -0
- package/dist/capabilities/askUserCapability.d.ts.map +1 -0
- package/dist/capabilities/askUserCapability.js +155 -0
- package/dist/capabilities/askUserCapability.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/browserAutomationCapability.d.ts +37 -0
- package/dist/capabilities/browserAutomationCapability.d.ts.map +1 -0
- package/dist/capabilities/browserAutomationCapability.js +49 -0
- package/dist/capabilities/browserAutomationCapability.js.map +1 -0
- package/dist/capabilities/cloudCapability.d.ts +13 -0
- package/dist/capabilities/cloudCapability.d.ts.map +1 -0
- package/dist/capabilities/cloudCapability.js +38 -0
- package/dist/capabilities/cloudCapability.js.map +1 -0
- package/dist/capabilities/codeAnalysisCapability.d.ts +13 -0
- package/dist/capabilities/codeAnalysisCapability.d.ts.map +1 -0
- package/dist/capabilities/codeAnalysisCapability.js +24 -0
- package/dist/capabilities/codeAnalysisCapability.js.map +1 -0
- package/dist/capabilities/codeGenerationCapability.d.ts +13 -0
- package/dist/capabilities/codeGenerationCapability.d.ts.map +1 -0
- package/dist/capabilities/codeGenerationCapability.js +25 -0
- package/dist/capabilities/codeGenerationCapability.js.map +1 -0
- package/dist/capabilities/codeQualityCapability.d.ts +13 -0
- package/dist/capabilities/codeQualityCapability.d.ts.map +1 -0
- package/dist/capabilities/codeQualityCapability.js +25 -0
- package/dist/capabilities/codeQualityCapability.js.map +1 -0
- package/dist/capabilities/dependencySecurityCapability.d.ts +13 -0
- package/dist/capabilities/dependencySecurityCapability.d.ts.map +1 -0
- package/dist/capabilities/dependencySecurityCapability.js +24 -0
- package/dist/capabilities/dependencySecurityCapability.js.map +1 -0
- package/dist/capabilities/devCapability.d.ts +13 -0
- package/dist/capabilities/devCapability.d.ts.map +1 -0
- package/dist/capabilities/devCapability.js +24 -0
- package/dist/capabilities/devCapability.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/emailCapability.d.ts +12 -0
- package/dist/capabilities/emailCapability.d.ts.map +1 -0
- package/dist/capabilities/emailCapability.js +22 -0
- package/dist/capabilities/emailCapability.js.map +1 -0
- package/dist/capabilities/enhancedCodeIntelligenceCapability.d.ts +17 -0
- package/dist/capabilities/enhancedCodeIntelligenceCapability.d.ts.map +1 -0
- package/dist/capabilities/enhancedCodeIntelligenceCapability.js +28 -0
- package/dist/capabilities/enhancedCodeIntelligenceCapability.js.map +1 -0
- package/dist/capabilities/enhancedDevWorkflowCapability.d.ts +17 -0
- package/dist/capabilities/enhancedDevWorkflowCapability.d.ts.map +1 -0
- package/dist/capabilities/enhancedDevWorkflowCapability.js +28 -0
- package/dist/capabilities/enhancedDevWorkflowCapability.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/frontendTestingCapability.d.ts +13 -0
- package/dist/capabilities/frontendTestingCapability.d.ts.map +1 -0
- package/dist/capabilities/frontendTestingCapability.js +28 -0
- package/dist/capabilities/frontendTestingCapability.js.map +1 -0
- package/dist/capabilities/globCapability.d.ts +17 -0
- package/dist/capabilities/globCapability.d.ts.map +1 -0
- package/dist/capabilities/globCapability.js +27 -0
- package/dist/capabilities/globCapability.js.map +1 -0
- package/dist/capabilities/index.d.ts +25 -0
- package/dist/capabilities/index.d.ts.map +1 -0
- package/dist/capabilities/index.js +25 -0
- package/dist/capabilities/index.js.map +1 -0
- package/dist/capabilities/interactionCapability.d.ts +12 -0
- package/dist/capabilities/interactionCapability.d.ts.map +1 -0
- package/dist/capabilities/interactionCapability.js +22 -0
- package/dist/capabilities/interactionCapability.js.map +1 -0
- package/dist/capabilities/learnCapability.d.ts +13 -0
- package/dist/capabilities/learnCapability.d.ts.map +1 -0
- package/dist/capabilities/learnCapability.js +24 -0
- package/dist/capabilities/learnCapability.js.map +1 -0
- package/dist/capabilities/mcpCapability.d.ts +6 -0
- package/dist/capabilities/mcpCapability.d.ts.map +1 -0
- package/dist/capabilities/mcpCapability.js +19 -0
- package/dist/capabilities/mcpCapability.js.map +1 -0
- package/dist/capabilities/notebookCapability.d.ts +17 -0
- package/dist/capabilities/notebookCapability.d.ts.map +1 -0
- package/dist/capabilities/notebookCapability.js +27 -0
- package/dist/capabilities/notebookCapability.js.map +1 -0
- package/dist/capabilities/performanceMonitoringCapability.d.ts +108 -0
- package/dist/capabilities/performanceMonitoringCapability.d.ts.map +1 -0
- package/dist/capabilities/performanceMonitoringCapability.js +176 -0
- package/dist/capabilities/performanceMonitoringCapability.js.map +1 -0
- package/dist/capabilities/planningCapability.d.ts +16 -0
- package/dist/capabilities/planningCapability.d.ts.map +1 -0
- package/dist/capabilities/planningCapability.js +26 -0
- package/dist/capabilities/planningCapability.js.map +1 -0
- package/dist/capabilities/refactoringCapability.d.ts +13 -0
- package/dist/capabilities/refactoringCapability.d.ts.map +1 -0
- package/dist/capabilities/refactoringCapability.js +25 -0
- package/dist/capabilities/refactoringCapability.js.map +1 -0
- package/dist/capabilities/repoChecksCapability.d.ts +10 -0
- package/dist/capabilities/repoChecksCapability.d.ts.map +1 -0
- package/dist/capabilities/repoChecksCapability.js +24 -0
- package/dist/capabilities/repoChecksCapability.js.map +1 -0
- package/dist/capabilities/searchCapability.d.ts +13 -0
- package/dist/capabilities/searchCapability.d.ts.map +1 -0
- package/dist/capabilities/searchCapability.js +24 -0
- package/dist/capabilities/searchCapability.js.map +1 -0
- package/dist/capabilities/skillCapability.d.ts +3 -0
- package/dist/capabilities/skillCapability.d.ts.map +1 -0
- package/dist/capabilities/skillCapability.js +77 -0
- package/dist/capabilities/skillCapability.js.map +1 -0
- package/dist/capabilities/taskManagementCapability.d.ts +12 -0
- package/dist/capabilities/taskManagementCapability.d.ts.map +1 -0
- package/dist/capabilities/taskManagementCapability.js +22 -0
- package/dist/capabilities/taskManagementCapability.js.map +1 -0
- package/dist/capabilities/testingCapability.d.ts +13 -0
- package/dist/capabilities/testingCapability.d.ts.map +1 -0
- package/dist/capabilities/testingCapability.js +25 -0
- package/dist/capabilities/testingCapability.js.map +1 -0
- package/dist/capabilities/todoCapability.d.ts +19 -0
- package/dist/capabilities/todoCapability.d.ts.map +1 -0
- package/dist/capabilities/todoCapability.js +169 -0
- package/dist/capabilities/todoCapability.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 +160 -0
- package/dist/capabilities/toolManifest.js.map +1 -0
- package/dist/capabilities/toolRegistry.d.ts +22 -0
- package/dist/capabilities/toolRegistry.d.ts.map +1 -0
- package/dist/capabilities/toolRegistry.js +115 -0
- package/dist/capabilities/toolRegistry.js.map +1 -0
- package/dist/capabilities/validationCapability.d.ts +13 -0
- package/dist/capabilities/validationCapability.d.ts.map +1 -0
- package/dist/capabilities/validationCapability.js +24 -0
- package/dist/capabilities/validationCapability.js.map +1 -0
- package/dist/capabilities/webCapability.d.ts +12 -0
- package/dist/capabilities/webCapability.d.ts.map +1 -0
- package/dist/capabilities/webCapability.js +22 -0
- package/dist/capabilities/webCapability.js.map +1 -0
- package/dist/config.d.ts +25 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +140 -0
- package/dist/config.js.map +1 -0
- package/dist/contracts/v1/agent.d.ts +147 -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/LazyLoader.d.ts +129 -0
- package/dist/core/LazyLoader.d.ts.map +1 -0
- package/dist/core/LazyLoader.js +240 -0
- package/dist/core/LazyLoader.js.map +1 -0
- package/dist/core/agent.d.ts +150 -0
- package/dist/core/agent.d.ts.map +1 -0
- package/dist/core/agent.js +789 -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 +234 -0
- package/dist/core/agentSchemaLoader.js.map +1 -0
- package/dist/core/cliTestHarness.d.ts +200 -0
- package/dist/core/cliTestHarness.d.ts.map +1 -0
- package/dist/core/cliTestHarness.js +549 -0
- package/dist/core/cliTestHarness.js.map +1 -0
- package/dist/core/contextManager.d.ts +259 -0
- package/dist/core/contextManager.d.ts.map +1 -0
- package/dist/core/contextManager.js +1057 -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 +18 -0
- package/dist/core/customCommands.d.ts.map +1 -0
- package/dist/core/customCommands.js +81 -0
- package/dist/core/customCommands.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 +348 -0
- package/dist/core/errors/errorTypes.js.map +1 -0
- package/dist/core/errors/errorUtils.d.ts +87 -0
- package/dist/core/errors/errorUtils.d.ts.map +1 -0
- package/dist/core/errors/errorUtils.js +158 -0
- package/dist/core/errors/errorUtils.js.map +1 -0
- package/dist/core/errors/safetyValidator.d.ts +71 -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/isolatedVerifier.d.ts +40 -0
- package/dist/core/isolatedVerifier.d.ts.map +1 -0
- package/dist/core/isolatedVerifier.js +129 -0
- package/dist/core/isolatedVerifier.js.map +1 -0
- package/dist/core/modelDiscovery.d.ts +101 -0
- package/dist/core/modelDiscovery.d.ts.map +1 -0
- package/dist/core/modelDiscovery.js +780 -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/performanceMonitor.d.ts +124 -0
- package/dist/core/performanceMonitor.d.ts.map +1 -0
- package/dist/core/performanceMonitor.js +195 -0
- package/dist/core/performanceMonitor.js.map +1 -0
- package/dist/core/preferences.d.ts +31 -0
- package/dist/core/preferences.d.ts.map +1 -0
- package/dist/core/preferences.js +232 -0
- package/dist/core/preferences.js.map +1 -0
- package/dist/core/responseVerifier.d.ts +98 -0
- package/dist/core/responseVerifier.d.ts.map +1 -0
- package/dist/core/responseVerifier.js +509 -0
- package/dist/core/responseVerifier.js.map +1 -0
- package/dist/core/resultVerification.d.ts +141 -0
- package/dist/core/resultVerification.d.ts.map +1 -0
- package/dist/core/resultVerification.js +482 -0
- package/dist/core/resultVerification.js.map +1 -0
- package/dist/core/schemaValidator.d.ts +44 -0
- package/dist/core/schemaValidator.d.ts.map +1 -0
- package/dist/core/schemaValidator.js +155 -0
- package/dist/core/schemaValidator.js.map +1 -0
- package/dist/core/secretStore.d.ts +47 -0
- package/dist/core/secretStore.d.ts.map +1 -0
- package/dist/core/secretStore.js +364 -0
- package/dist/core/secretStore.js.map +1 -0
- package/dist/core/sessionStore.d.ts +33 -0
- package/dist/core/sessionStore.d.ts.map +1 -0
- package/dist/core/sessionStore.js +188 -0
- package/dist/core/sessionStore.js.map +1 -0
- package/dist/core/testUtils.d.ts +121 -0
- package/dist/core/testUtils.d.ts.map +1 -0
- package/dist/core/testUtils.js +235 -0
- package/dist/core/testUtils.js.map +1 -0
- package/dist/core/toolPreconditions.d.ts +41 -0
- package/dist/core/toolPreconditions.d.ts.map +1 -0
- package/dist/core/toolPreconditions.js +319 -0
- package/dist/core/toolPreconditions.js.map +1 -0
- package/dist/core/toolRuntime.d.ts +137 -0
- package/dist/core/toolRuntime.d.ts.map +1 -0
- package/dist/core/toolRuntime.js +375 -0
- package/dist/core/toolRuntime.js.map +1 -0
- package/dist/core/toolValidation.d.ts +117 -0
- package/dist/core/toolValidation.d.ts.map +1 -0
- package/dist/core/toolValidation.js +282 -0
- package/dist/core/toolValidation.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 +306 -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/unified/errors.d.ts +189 -0
- package/dist/core/unified/errors.d.ts.map +1 -0
- package/dist/core/unified/errors.js +497 -0
- package/dist/core/unified/errors.js.map +1 -0
- package/dist/core/unified/index.d.ts +19 -0
- package/dist/core/unified/index.d.ts.map +1 -0
- package/dist/core/unified/index.js +68 -0
- package/dist/core/unified/index.js.map +1 -0
- package/dist/core/unified/schema.d.ts +101 -0
- package/dist/core/unified/schema.d.ts.map +1 -0
- package/dist/core/unified/schema.js +350 -0
- package/dist/core/unified/schema.js.map +1 -0
- package/dist/core/unified/toolRuntime.d.ts +179 -0
- package/dist/core/unified/toolRuntime.d.ts.map +1 -0
- package/dist/core/unified/toolRuntime.js +517 -0
- package/dist/core/unified/toolRuntime.js.map +1 -0
- package/dist/core/unified/tools.d.ts +127 -0
- package/dist/core/unified/tools.d.ts.map +1 -0
- package/dist/core/unified/tools.js +1333 -0
- package/dist/core/unified/tools.js.map +1 -0
- package/dist/core/unified/types.d.ts +352 -0
- package/dist/core/unified/types.d.ts.map +1 -0
- package/dist/core/unified/types.js +12 -0
- package/dist/core/unified/types.js.map +1 -0
- package/dist/core/unified/version.d.ts +209 -0
- package/dist/core/unified/version.d.ts.map +1 -0
- package/dist/core/unified/version.js +454 -0
- package/dist/core/unified/version.js.map +1 -0
- package/dist/core/validationRunner.d.ts +93 -0
- package/dist/core/validationRunner.d.ts.map +1 -0
- package/dist/core/validationRunner.js +740 -0
- package/dist/core/validationRunner.js.map +1 -0
- package/dist/headless/headlessApp.d.ts +5 -0
- package/dist/headless/headlessApp.d.ts.map +1 -0
- package/dist/headless/headlessApp.js +189 -0
- package/dist/headless/headlessApp.js.map +1 -0
- package/dist/intelligence/codeIntelligence.d.ts +84 -0
- package/dist/intelligence/codeIntelligence.d.ts.map +1 -0
- package/dist/intelligence/codeIntelligence.js +493 -0
- package/dist/intelligence/codeIntelligence.js.map +1 -0
- package/dist/intelligence/docGenerator.d.ts +86 -0
- package/dist/intelligence/docGenerator.d.ts.map +1 -0
- package/dist/intelligence/docGenerator.js +564 -0
- package/dist/intelligence/docGenerator.js.map +1 -0
- package/dist/intelligence/index.d.ts +51 -0
- package/dist/intelligence/index.d.ts.map +1 -0
- package/dist/intelligence/index.js +253 -0
- package/dist/intelligence/index.js.map +1 -0
- package/dist/intelligence/refactoring.d.ts +50 -0
- package/dist/intelligence/refactoring.d.ts.map +1 -0
- package/dist/intelligence/refactoring.js +354 -0
- package/dist/intelligence/refactoring.js.map +1 -0
- package/dist/intelligence/testGenerator.d.ts +74 -0
- package/dist/intelligence/testGenerator.d.ts.map +1 -0
- package/dist/intelligence/testGenerator.js +483 -0
- package/dist/intelligence/testGenerator.js.map +1 -0
- package/dist/mcp/config.d.ts +8 -0
- package/dist/mcp/config.d.ts.map +1 -0
- package/dist/mcp/config.js +252 -0
- package/dist/mcp/config.js.map +1 -0
- package/dist/mcp/sseClient.d.ts +34 -0
- package/dist/mcp/sseClient.d.ts.map +1 -0
- package/dist/mcp/sseClient.js +299 -0
- package/dist/mcp/sseClient.js.map +1 -0
- package/dist/mcp/stdioClient.d.ts +24 -0
- package/dist/mcp/stdioClient.d.ts.map +1 -0
- package/dist/mcp/stdioClient.js +179 -0
- package/dist/mcp/stdioClient.js.map +1 -0
- package/dist/mcp/toolBridge.d.ts +12 -0
- package/dist/mcp/toolBridge.d.ts.map +1 -0
- package/dist/mcp/toolBridge.js +117 -0
- package/dist/mcp/toolBridge.js.map +1 -0
- package/dist/mcp/types.d.ts +60 -0
- package/dist/mcp/types.d.ts.map +1 -0
- package/dist/mcp/types.js +2 -0
- package/dist/mcp/types.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 +114 -0
- package/dist/plugins/index.js.map +1 -0
- package/dist/plugins/providers/anthropic/index.d.ts +11 -0
- package/dist/plugins/providers/anthropic/index.d.ts.map +1 -0
- package/dist/plugins/providers/anthropic/index.js +38 -0
- package/dist/plugins/providers/anthropic/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 +52 -0
- package/dist/plugins/providers/deepseek/index.js.map +1 -0
- package/dist/plugins/providers/google/index.d.ts +11 -0
- package/dist/plugins/providers/google/index.d.ts.map +1 -0
- package/dist/plugins/providers/google/index.js +40 -0
- package/dist/plugins/providers/google/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 +20 -0
- package/dist/plugins/providers/index.js.map +1 -0
- package/dist/plugins/providers/ollama/index.d.ts +21 -0
- package/dist/plugins/providers/ollama/index.d.ts.map +1 -0
- package/dist/plugins/providers/ollama/index.js +69 -0
- package/dist/plugins/providers/ollama/index.js.map +1 -0
- package/dist/plugins/providers/openai/index.d.ts +12 -0
- package/dist/plugins/providers/openai/index.d.ts.map +1 -0
- package/dist/plugins/providers/openai/index.js +39 -0
- package/dist/plugins/providers/openai/index.js.map +1 -0
- package/dist/plugins/providers/xai/index.d.ts +11 -0
- package/dist/plugins/providers/xai/index.d.ts.map +1 -0
- package/dist/plugins/providers/xai/index.js +39 -0
- package/dist/plugins/providers/xai/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 +9 -0
- package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.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/browser/browserAutomationPlugin.d.ts +14 -0
- package/dist/plugins/tools/browser/browserAutomationPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/browser/browserAutomationPlugin.js +26 -0
- package/dist/plugins/tools/browser/browserAutomationPlugin.js.map +1 -0
- package/dist/plugins/tools/checks/localRepoChecksPlugin.d.ts +3 -0
- package/dist/plugins/tools/checks/localRepoChecksPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/checks/localRepoChecksPlugin.js +14 -0
- package/dist/plugins/tools/checks/localRepoChecksPlugin.js.map +1 -0
- package/dist/plugins/tools/cloud/cloudPlugin.d.ts +3 -0
- package/dist/plugins/tools/cloud/cloudPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/cloud/cloudPlugin.js +14 -0
- package/dist/plugins/tools/cloud/cloudPlugin.js.map +1 -0
- package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.d.ts +3 -0
- package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.js +14 -0
- package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.js.map +1 -0
- package/dist/plugins/tools/codeQuality/codeQualityPlugin.d.ts +3 -0
- package/dist/plugins/tools/codeQuality/codeQualityPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/codeQuality/codeQualityPlugin.js +14 -0
- package/dist/plugins/tools/codeQuality/codeQualityPlugin.js.map +1 -0
- package/dist/plugins/tools/dependency/dependencyPlugin.d.ts +3 -0
- package/dist/plugins/tools/dependency/dependencyPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/dependency/dependencyPlugin.js +12 -0
- package/dist/plugins/tools/dependency/dependencyPlugin.js.map +1 -0
- package/dist/plugins/tools/development/devPlugin.d.ts +3 -0
- package/dist/plugins/tools/development/devPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/development/devPlugin.js +14 -0
- package/dist/plugins/tools/development/devPlugin.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/email/emailPlugin.d.ts +3 -0
- package/dist/plugins/tools/email/emailPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/email/emailPlugin.js +12 -0
- package/dist/plugins/tools/email/emailPlugin.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/frontendTesting/frontendTestingPlugin.d.ts +3 -0
- package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.js +14 -0
- package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.js.map +1 -0
- package/dist/plugins/tools/glob/globPlugin.d.ts +9 -0
- package/dist/plugins/tools/glob/globPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/glob/globPlugin.js +15 -0
- package/dist/plugins/tools/glob/globPlugin.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/interaction/interactionPlugin.d.ts +3 -0
- package/dist/plugins/tools/interaction/interactionPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/interaction/interactionPlugin.js +12 -0
- package/dist/plugins/tools/interaction/interactionPlugin.js.map +1 -0
- package/dist/plugins/tools/learn/learnPlugin.d.ts +3 -0
- package/dist/plugins/tools/learn/learnPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/learn/learnPlugin.js +14 -0
- package/dist/plugins/tools/learn/learnPlugin.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 +9 -0
- package/dist/plugins/tools/mcp/mcpPlugin.js.map +1 -0
- package/dist/plugins/tools/nodeDefaults.d.ts +2 -0
- package/dist/plugins/tools/nodeDefaults.d.ts.map +1 -0
- package/dist/plugins/tools/nodeDefaults.js +63 -0
- package/dist/plugins/tools/nodeDefaults.js.map +1 -0
- package/dist/plugins/tools/notebook/notebookPlugin.d.ts +9 -0
- package/dist/plugins/tools/notebook/notebookPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/notebook/notebookPlugin.js +15 -0
- package/dist/plugins/tools/notebook/notebookPlugin.js.map +1 -0
- package/dist/plugins/tools/planning/planningPlugin.d.ts +9 -0
- package/dist/plugins/tools/planning/planningPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/planning/planningPlugin.js +15 -0
- package/dist/plugins/tools/planning/planningPlugin.js.map +1 -0
- package/dist/plugins/tools/refactoring/refactoringPlugin.d.ts +3 -0
- package/dist/plugins/tools/refactoring/refactoringPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/refactoring/refactoringPlugin.js +12 -0
- package/dist/plugins/tools/refactoring/refactoringPlugin.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 +9 -0
- package/dist/plugins/tools/skills/skillPlugin.js.map +1 -0
- package/dist/plugins/tools/taskManagement/taskManagementPlugin.d.ts +3 -0
- package/dist/plugins/tools/taskManagement/taskManagementPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/taskManagement/taskManagementPlugin.js +12 -0
- package/dist/plugins/tools/taskManagement/taskManagementPlugin.js.map +1 -0
- package/dist/plugins/tools/testing/testingPlugin.d.ts +3 -0
- package/dist/plugins/tools/testing/testingPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/testing/testingPlugin.js +12 -0
- package/dist/plugins/tools/testing/testingPlugin.js.map +1 -0
- package/dist/plugins/tools/validation/validationPlugin.d.ts +3 -0
- package/dist/plugins/tools/validation/validationPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/validation/validationPlugin.js +14 -0
- package/dist/plugins/tools/validation/validationPlugin.js.map +1 -0
- package/dist/plugins/tools/web/webPlugin.d.ts +3 -0
- package/dist/plugins/tools/web/webPlugin.d.ts.map +1 -0
- package/dist/plugins/tools/web/webPlugin.js +12 -0
- package/dist/plugins/tools/web/webPlugin.js.map +1 -0
- package/dist/providers/anthropicProvider.d.ts +41 -0
- package/dist/providers/anthropicProvider.d.ts.map +1 -0
- package/dist/providers/anthropicProvider.js +446 -0
- package/dist/providers/anthropicProvider.js.map +1 -0
- package/dist/providers/googleProvider.d.ts +36 -0
- package/dist/providers/googleProvider.d.ts.map +1 -0
- package/dist/providers/googleProvider.js +312 -0
- package/dist/providers/googleProvider.js.map +1 -0
- package/dist/providers/openaiChatCompletionsProvider.d.ts +43 -0
- package/dist/providers/openaiChatCompletionsProvider.d.ts.map +1 -0
- package/dist/providers/openaiChatCompletionsProvider.js +468 -0
- package/dist/providers/openaiChatCompletionsProvider.js.map +1 -0
- package/dist/providers/openaiResponsesProvider.d.ts +38 -0
- package/dist/providers/openaiResponsesProvider.d.ts.map +1 -0
- package/dist/providers/openaiResponsesProvider.js +364 -0
- package/dist/providers/openaiResponsesProvider.js.map +1 -0
- package/dist/providers/providerFactory.d.ts +18 -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 +94 -0
- package/dist/providers/resilientProvider.d.ts.map +1 -0
- package/dist/providers/resilientProvider.js +370 -0
- package/dist/providers/resilientProvider.js.map +1 -0
- package/dist/runtime/agentController.d.ts +65 -0
- package/dist/runtime/agentController.d.ts.map +1 -0
- package/dist/runtime/agentController.js +353 -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 +156 -0
- package/dist/runtime/agentHost.js.map +1 -0
- package/dist/runtime/agentSession.d.ts +40 -0
- package/dist/runtime/agentSession.d.ts.map +1 -0
- package/dist/runtime/agentSession.js +206 -0
- package/dist/runtime/agentSession.js.map +1 -0
- package/dist/runtime/browser.d.ts +7 -0
- package/dist/runtime/browser.d.ts.map +1 -0
- package/dist/runtime/browser.js +10 -0
- package/dist/runtime/browser.js.map +1 -0
- package/dist/runtime/cloud.d.ts +7 -0
- package/dist/runtime/cloud.d.ts.map +1 -0
- package/dist/runtime/cloud.js +10 -0
- package/dist/runtime/cloud.js.map +1 -0
- package/dist/runtime/node.d.ts +8 -0
- package/dist/runtime/node.d.ts.map +1 -0
- package/dist/runtime/node.js +11 -0
- package/dist/runtime/node.js.map +1 -0
- package/dist/runtime/universal.d.ts +21 -0
- package/dist/runtime/universal.d.ts.map +1 -0
- package/dist/runtime/universal.js +29 -0
- package/dist/runtime/universal.js.map +1 -0
- package/dist/security/active-stack-security.d.ts +112 -0
- package/dist/security/active-stack-security.d.ts.map +1 -0
- package/dist/security/active-stack-security.js +296 -0
- package/dist/security/active-stack-security.js.map +1 -0
- package/dist/security/advanced-persistence-research.d.ts +92 -0
- package/dist/security/advanced-persistence-research.d.ts.map +1 -0
- package/dist/security/advanced-persistence-research.js +195 -0
- package/dist/security/advanced-persistence-research.js.map +1 -0
- package/dist/security/advanced-targeting.d.ts +119 -0
- package/dist/security/advanced-targeting.d.ts.map +1 -0
- package/dist/security/advanced-targeting.js +233 -0
- package/dist/security/advanced-targeting.js.map +1 -0
- package/dist/security/assessment/vulnerabilityAssessment.d.ts +104 -0
- package/dist/security/assessment/vulnerabilityAssessment.d.ts.map +1 -0
- package/dist/security/assessment/vulnerabilityAssessment.js +315 -0
- package/dist/security/assessment/vulnerabilityAssessment.js.map +1 -0
- package/dist/security/authorization/securityAuthorization.d.ts +88 -0
- package/dist/security/authorization/securityAuthorization.d.ts.map +1 -0
- package/dist/security/authorization/securityAuthorization.js +172 -0
- package/dist/security/authorization/securityAuthorization.js.map +1 -0
- package/dist/security/comprehensive-targeting.d.ts +85 -0
- package/dist/security/comprehensive-targeting.d.ts.map +1 -0
- package/dist/security/comprehensive-targeting.js +438 -0
- package/dist/security/comprehensive-targeting.js.map +1 -0
- package/dist/security/global-security-integration.d.ts +91 -0
- package/dist/security/global-security-integration.d.ts.map +1 -0
- package/dist/security/global-security-integration.js +218 -0
- package/dist/security/global-security-integration.js.map +1 -0
- package/dist/security/index.d.ts +38 -0
- package/dist/security/index.d.ts.map +1 -0
- package/dist/security/index.js +47 -0
- package/dist/security/index.js.map +1 -0
- package/dist/security/persistence-analyzer.d.ts +56 -0
- package/dist/security/persistence-analyzer.d.ts.map +1 -0
- package/dist/security/persistence-analyzer.js +187 -0
- package/dist/security/persistence-analyzer.js.map +1 -0
- package/dist/security/persistence-cli.d.ts +36 -0
- package/dist/security/persistence-cli.d.ts.map +1 -0
- package/dist/security/persistence-cli.js +160 -0
- package/dist/security/persistence-cli.js.map +1 -0
- package/dist/security/persistence-research.d.ts +92 -0
- package/dist/security/persistence-research.d.ts.map +1 -0
- package/dist/security/persistence-research.js +364 -0
- package/dist/security/persistence-research.js.map +1 -0
- package/dist/security/research/persistenceResearch.d.ts +97 -0
- package/dist/security/research/persistenceResearch.d.ts.map +1 -0
- package/dist/security/research/persistenceResearch.js +282 -0
- package/dist/security/research/persistenceResearch.js.map +1 -0
- package/dist/security/security-integration.d.ts +74 -0
- package/dist/security/security-integration.d.ts.map +1 -0
- package/dist/security/security-integration.js +137 -0
- package/dist/security/security-integration.js.map +1 -0
- package/dist/security/security-testing-framework.d.ts +112 -0
- package/dist/security/security-testing-framework.d.ts.map +1 -0
- package/dist/security/security-testing-framework.js +364 -0
- package/dist/security/security-testing-framework.js.map +1 -0
- package/dist/security/simulation/attackSimulation.d.ts +93 -0
- package/dist/security/simulation/attackSimulation.d.ts.map +1 -0
- package/dist/security/simulation/attackSimulation.js +341 -0
- package/dist/security/simulation/attackSimulation.js.map +1 -0
- package/dist/security/strategic-operations.d.ts +100 -0
- package/dist/security/strategic-operations.d.ts.map +1 -0
- package/dist/security/strategic-operations.js +276 -0
- package/dist/security/strategic-operations.js.map +1 -0
- package/dist/security/tool-security-wrapper.d.ts +58 -0
- package/dist/security/tool-security-wrapper.d.ts.map +1 -0
- package/dist/security/tool-security-wrapper.js +156 -0
- package/dist/security/tool-security-wrapper.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 +288 -0
- package/dist/shell/autoExecutor.js.map +1 -0
- package/dist/shell/claudeCodeStreamHandler.d.ts +145 -0
- package/dist/shell/claudeCodeStreamHandler.d.ts.map +1 -0
- package/dist/shell/claudeCodeStreamHandler.js +312 -0
- package/dist/shell/claudeCodeStreamHandler.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/fileChangeTracker.d.ts +39 -0
- package/dist/shell/fileChangeTracker.d.ts.map +1 -0
- package/dist/shell/fileChangeTracker.js +64 -0
- package/dist/shell/fileChangeTracker.js.map +1 -0
- package/dist/shell/inputQueueManager.d.ts +144 -0
- package/dist/shell/inputQueueManager.d.ts.map +1 -0
- package/dist/shell/inputQueueManager.js +290 -0
- package/dist/shell/inputQueueManager.js.map +1 -0
- package/dist/shell/interactiveShell.d.ts +321 -0
- package/dist/shell/interactiveShell.d.ts.map +1 -0
- package/dist/shell/interactiveShell.js +3339 -0
- package/dist/shell/interactiveShell.js.map +1 -0
- package/dist/shell/liveStatus.d.ts +29 -0
- package/dist/shell/liveStatus.d.ts.map +1 -0
- package/dist/shell/liveStatus.js +77 -0
- package/dist/shell/liveStatus.js.map +1 -0
- package/dist/shell/shellApp.d.ts +19 -0
- package/dist/shell/shellApp.d.ts.map +1 -0
- package/dist/shell/shellApp.js +364 -0
- package/dist/shell/shellApp.js.map +1 -0
- package/dist/shell/streamingOutputManager.d.ts +114 -0
- package/dist/shell/streamingOutputManager.d.ts.map +1 -0
- package/dist/shell/streamingOutputManager.js +213 -0
- package/dist/shell/streamingOutputManager.js.map +1 -0
- package/dist/shell/systemPrompt.d.ts +3 -0
- package/dist/shell/systemPrompt.d.ts.map +1 -0
- package/dist/shell/systemPrompt.js +78 -0
- package/dist/shell/systemPrompt.js.map +1 -0
- package/dist/shell/taskCompletionDetector.d.ts +106 -0
- package/dist/shell/taskCompletionDetector.d.ts.map +1 -0
- package/dist/shell/taskCompletionDetector.js +402 -0
- package/dist/shell/taskCompletionDetector.js.map +1 -0
- package/dist/shell/terminalInput.d.ts +222 -0
- package/dist/shell/terminalInput.d.ts.map +1 -0
- package/dist/shell/terminalInput.js +1089 -0
- package/dist/shell/terminalInput.js.map +1 -0
- package/dist/shell/terminalInputAdapter.d.ts +121 -0
- package/dist/shell/terminalInputAdapter.d.ts.map +1 -0
- package/dist/shell/terminalInputAdapter.js +223 -0
- package/dist/shell/terminalInputAdapter.js.map +1 -0
- package/dist/shell/updateManager.d.ts +2 -0
- package/dist/shell/updateManager.d.ts.map +1 -0
- package/dist/shell/updateManager.js +111 -0
- package/dist/shell/updateManager.js.map +1 -0
- package/dist/skills/skillRepository.d.ts +103 -0
- package/dist/skills/skillRepository.d.ts.map +1 -0
- package/dist/skills/skillRepository.js +237 -0
- package/dist/skills/skillRepository.js.map +1 -0
- package/dist/skills/types.d.ts +37 -0
- package/dist/skills/types.d.ts.map +1 -0
- package/dist/skills/types.js +2 -0
- package/dist/skills/types.js.map +1 -0
- package/dist/subagents/taskRunner.d.ts +23 -0
- package/dist/subagents/taskRunner.d.ts.map +1 -0
- package/dist/subagents/taskRunner.js +271 -0
- package/dist/subagents/taskRunner.js.map +1 -0
- package/dist/tools/advancedTestGenerationTools.d.ts +21 -0
- package/dist/tools/advancedTestGenerationTools.d.ts.map +1 -0
- package/dist/tools/advancedTestGenerationTools.js +301 -0
- package/dist/tools/advancedTestGenerationTools.js.map +1 -0
- package/dist/tools/backgroundBashTools.d.ts +21 -0
- package/dist/tools/backgroundBashTools.d.ts.map +1 -0
- package/dist/tools/backgroundBashTools.js +215 -0
- package/dist/tools/backgroundBashTools.js.map +1 -0
- package/dist/tools/bashTools.d.ts +8 -0
- package/dist/tools/bashTools.d.ts.map +1 -0
- package/dist/tools/bashTools.js +227 -0
- package/dist/tools/bashTools.js.map +1 -0
- package/dist/tools/browserAutomationTools.d.ts +23 -0
- package/dist/tools/browserAutomationTools.d.ts.map +1 -0
- package/dist/tools/browserAutomationTools.js +916 -0
- package/dist/tools/browserAutomationTools.js.map +1 -0
- package/dist/tools/cloudTools.d.ts +49 -0
- package/dist/tools/cloudTools.d.ts.map +1 -0
- package/dist/tools/cloudTools.js +1258 -0
- package/dist/tools/cloudTools.js.map +1 -0
- package/dist/tools/code-quality-dashboard.d.ts +57 -0
- package/dist/tools/code-quality-dashboard.d.ts.map +1 -0
- package/dist/tools/code-quality-dashboard.js +218 -0
- package/dist/tools/code-quality-dashboard.js.map +1 -0
- package/dist/tools/codeAnalysisTools.d.ts +74 -0
- package/dist/tools/codeAnalysisTools.d.ts.map +1 -0
- package/dist/tools/codeAnalysisTools.js +664 -0
- package/dist/tools/codeAnalysisTools.js.map +1 -0
- package/dist/tools/codeGenerationTools.d.ts +3 -0
- package/dist/tools/codeGenerationTools.d.ts.map +1 -0
- package/dist/tools/codeGenerationTools.js +439 -0
- package/dist/tools/codeGenerationTools.js.map +1 -0
- package/dist/tools/codeQualityTools.d.ts +3 -0
- package/dist/tools/codeQualityTools.d.ts.map +1 -0
- package/dist/tools/codeQualityTools.js +296 -0
- package/dist/tools/codeQualityTools.js.map +1 -0
- package/dist/tools/dependencyTools.d.ts +3 -0
- package/dist/tools/dependencyTools.d.ts.map +1 -0
- package/dist/tools/dependencyTools.js +283 -0
- package/dist/tools/dependencyTools.js.map +1 -0
- package/dist/tools/devTools.d.ts +10 -0
- package/dist/tools/devTools.d.ts.map +1 -0
- package/dist/tools/devTools.js +2305 -0
- package/dist/tools/devTools.js.map +1 -0
- package/dist/tools/diffUtils.d.ts +36 -0
- package/dist/tools/diffUtils.d.ts.map +1 -0
- package/dist/tools/diffUtils.js +528 -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 +419 -0
- package/dist/tools/editTools.js.map +1 -0
- package/dist/tools/emailTools.d.ts +21 -0
- package/dist/tools/emailTools.d.ts.map +1 -0
- package/dist/tools/emailTools.js +449 -0
- package/dist/tools/emailTools.js.map +1 -0
- package/dist/tools/enhancedCodeIntelligenceTools.d.ts +27 -0
- package/dist/tools/enhancedCodeIntelligenceTools.d.ts.map +1 -0
- package/dist/tools/enhancedCodeIntelligenceTools.js +418 -0
- package/dist/tools/enhancedCodeIntelligenceTools.js.map +1 -0
- package/dist/tools/enhancedDevWorkflowTools.d.ts +15 -0
- package/dist/tools/enhancedDevWorkflowTools.d.ts.map +1 -0
- package/dist/tools/enhancedDevWorkflowTools.js +303 -0
- package/dist/tools/enhancedDevWorkflowTools.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 +252 -0
- package/dist/tools/fileTools.js.map +1 -0
- package/dist/tools/frontendTestingTools.d.ts +35 -0
- package/dist/tools/frontendTestingTools.d.ts.map +1 -0
- package/dist/tools/frontendTestingTools.js +1254 -0
- package/dist/tools/frontendTestingTools.js.map +1 -0
- package/dist/tools/globTools.d.ts +15 -0
- package/dist/tools/globTools.d.ts.map +1 -0
- package/dist/tools/globTools.js +174 -0
- package/dist/tools/globTools.js.map +1 -0
- package/dist/tools/grepTools.d.ts +19 -0
- package/dist/tools/grepTools.d.ts.map +1 -0
- package/dist/tools/grepTools.js +339 -0
- package/dist/tools/grepTools.js.map +1 -0
- package/dist/tools/interactionTools.d.ts +13 -0
- package/dist/tools/interactionTools.d.ts.map +1 -0
- package/dist/tools/interactionTools.js +171 -0
- package/dist/tools/interactionTools.js.map +1 -0
- package/dist/tools/learnTools.d.ts +152 -0
- package/dist/tools/learnTools.d.ts.map +1 -0
- package/dist/tools/learnTools.js +1819 -0
- package/dist/tools/learnTools.js.map +1 -0
- package/dist/tools/notebookEditTools.d.ts +15 -0
- package/dist/tools/notebookEditTools.d.ts.map +1 -0
- package/dist/tools/notebookEditTools.js +197 -0
- package/dist/tools/notebookEditTools.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 +95 -0
- package/dist/tools/planningTools.js.map +1 -0
- package/dist/tools/refactoringTools.d.ts +3 -0
- package/dist/tools/refactoringTools.d.ts.map +1 -0
- package/dist/tools/refactoringTools.js +294 -0
- package/dist/tools/refactoringTools.js.map +1 -0
- package/dist/tools/repoChecksTools.d.ts +3 -0
- package/dist/tools/repoChecksTools.d.ts.map +1 -0
- package/dist/tools/repoChecksTools.js +161 -0
- package/dist/tools/repoChecksTools.js.map +1 -0
- package/dist/tools/searchTools.d.ts +3 -0
- package/dist/tools/searchTools.d.ts.map +1 -0
- package/dist/tools/searchTools.js +207 -0
- package/dist/tools/searchTools.js.map +1 -0
- package/dist/tools/skillTools.d.ts +8 -0
- package/dist/tools/skillTools.d.ts.map +1 -0
- package/dist/tools/skillTools.js +178 -0
- package/dist/tools/skillTools.js.map +1 -0
- package/dist/tools/softwareEngineeringTools.d.ts +7 -0
- package/dist/tools/softwareEngineeringTools.d.ts.map +1 -0
- package/dist/tools/softwareEngineeringTools.js +338 -0
- package/dist/tools/softwareEngineeringTools.js.map +1 -0
- package/dist/tools/taskManagementTools.d.ts +10 -0
- package/dist/tools/taskManagementTools.d.ts.map +1 -0
- package/dist/tools/taskManagementTools.js +157 -0
- package/dist/tools/taskManagementTools.js.map +1 -0
- package/dist/tools/testingTools.d.ts +3 -0
- package/dist/tools/testingTools.d.ts.map +1 -0
- package/dist/tools/testingTools.js +233 -0
- package/dist/tools/testingTools.js.map +1 -0
- package/dist/tools/validationTools.d.ts +7 -0
- package/dist/tools/validationTools.d.ts.map +1 -0
- package/dist/tools/validationTools.js +278 -0
- package/dist/tools/validationTools.js.map +1 -0
- package/dist/tools/webTools.d.ts +3 -0
- package/dist/tools/webTools.d.ts.map +1 -0
- package/dist/tools/webTools.js +495 -0
- package/dist/tools/webTools.js.map +1 -0
- package/dist/ui/FixedInputArea.d.ts +108 -0
- package/dist/ui/FixedInputArea.d.ts.map +1 -0
- package/dist/ui/FixedInputArea.js +312 -0
- package/dist/ui/FixedInputArea.js.map +1 -0
- package/dist/ui/ShellUIAdapter.d.ts +141 -0
- package/dist/ui/ShellUIAdapter.d.ts.map +1 -0
- package/dist/ui/ShellUIAdapter.js +680 -0
- package/dist/ui/ShellUIAdapter.js.map +1 -0
- package/dist/ui/UnifiedUIController.d.ts +70 -0
- package/dist/ui/UnifiedUIController.d.ts.map +1 -0
- package/dist/ui/UnifiedUIController.js +190 -0
- package/dist/ui/UnifiedUIController.js.map +1 -0
- package/dist/ui/advancedTheme.d.ts +246 -0
- package/dist/ui/advancedTheme.d.ts.map +1 -0
- package/dist/ui/advancedTheme.js +478 -0
- package/dist/ui/advancedTheme.js.map +1 -0
- package/dist/ui/animation/AnimationScheduler.d.ts +192 -0
- package/dist/ui/animation/AnimationScheduler.d.ts.map +1 -0
- package/dist/ui/animation/AnimationScheduler.js +432 -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/collapsibleContent.d.ts +57 -0
- package/dist/ui/collapsibleContent.d.ts.map +1 -0
- package/dist/ui/collapsibleContent.js +106 -0
- package/dist/ui/collapsibleContent.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 +122 -0
- package/dist/ui/designSystem.js.map +1 -0
- package/dist/ui/diffViewer.d.ts +42 -0
- package/dist/ui/diffViewer.d.ts.map +1 -0
- package/dist/ui/diffViewer.js +343 -0
- package/dist/ui/diffViewer.js.map +1 -0
- package/dist/ui/display.d.ts +251 -0
- package/dist/ui/display.d.ts.map +1 -0
- package/dist/ui/display.js +1170 -0
- package/dist/ui/display.js.map +1 -0
- package/dist/ui/errorFormatter.d.ts +54 -0
- package/dist/ui/errorFormatter.d.ts.map +1 -0
- package/dist/ui/errorFormatter.js +251 -0
- package/dist/ui/errorFormatter.js.map +1 -0
- package/dist/ui/gitDisplay.d.ts +45 -0
- package/dist/ui/gitDisplay.d.ts.map +1 -0
- package/dist/ui/gitDisplay.js +215 -0
- package/dist/ui/gitDisplay.js.map +1 -0
- package/dist/ui/gitFormatter.d.ts +29 -0
- package/dist/ui/gitFormatter.d.ts.map +1 -0
- package/dist/ui/gitFormatter.js +203 -0
- package/dist/ui/gitFormatter.js.map +1 -0
- package/dist/ui/interrupts/InterruptManager.d.ts +142 -0
- package/dist/ui/interrupts/InterruptManager.d.ts.map +1 -0
- package/dist/ui/interrupts/InterruptManager.js +439 -0
- package/dist/ui/interrupts/InterruptManager.js.map +1 -0
- package/dist/ui/keyboardShortcuts.d.ts +49 -0
- package/dist/ui/keyboardShortcuts.d.ts.map +1 -0
- package/dist/ui/keyboardShortcuts.js +128 -0
- package/dist/ui/keyboardShortcuts.js.map +1 -0
- package/dist/ui/layout.d.ts +17 -0
- package/dist/ui/layout.d.ts.map +1 -0
- package/dist/ui/layout.js +140 -0
- package/dist/ui/layout.js.map +1 -0
- package/dist/ui/logFormatter.d.ts +70 -0
- package/dist/ui/logFormatter.d.ts.map +1 -0
- package/dist/ui/logFormatter.js +323 -0
- package/dist/ui/logFormatter.js.map +1 -0
- package/dist/ui/orchestration/StatusOrchestrator.d.ts +156 -0
- package/dist/ui/orchestration/StatusOrchestrator.d.ts.map +1 -0
- package/dist/ui/orchestration/StatusOrchestrator.js +406 -0
- package/dist/ui/orchestration/StatusOrchestrator.js.map +1 -0
- package/dist/ui/outputMode.d.ts +22 -0
- package/dist/ui/outputMode.d.ts.map +1 -0
- package/dist/ui/outputMode.js +40 -0
- package/dist/ui/outputMode.js.map +1 -0
- package/dist/ui/outputSummarizer.d.ts +52 -0
- package/dist/ui/outputSummarizer.d.ts.map +1 -0
- package/dist/ui/outputSummarizer.js +242 -0
- package/dist/ui/outputSummarizer.js.map +1 -0
- package/dist/ui/progressBar.d.ts +51 -0
- package/dist/ui/progressBar.d.ts.map +1 -0
- package/dist/ui/progressBar.js +153 -0
- package/dist/ui/progressBar.js.map +1 -0
- package/dist/ui/progressIndicator.d.ts +69 -0
- package/dist/ui/progressIndicator.d.ts.map +1 -0
- package/dist/ui/progressIndicator.js +145 -0
- package/dist/ui/progressIndicator.js.map +1 -0
- package/dist/ui/richText.d.ts +6 -0
- package/dist/ui/richText.d.ts.map +1 -0
- package/dist/ui/richText.js +391 -0
- package/dist/ui/richText.js.map +1 -0
- package/dist/ui/shortcutsHelp.d.ts +23 -0
- package/dist/ui/shortcutsHelp.d.ts.map +1 -0
- package/dist/ui/shortcutsHelp.js +89 -0
- package/dist/ui/shortcutsHelp.js.map +1 -0
- package/dist/ui/streamingIndicators.d.ts +42 -0
- package/dist/ui/streamingIndicators.d.ts.map +1 -0
- package/dist/ui/streamingIndicators.js +155 -0
- package/dist/ui/streamingIndicators.js.map +1 -0
- package/dist/ui/tableFormatter.d.ts +31 -0
- package/dist/ui/tableFormatter.d.ts.map +1 -0
- package/dist/ui/tableFormatter.js +186 -0
- package/dist/ui/tableFormatter.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 +103 -0
- package/dist/ui/theme.d.ts.map +1 -0
- package/dist/ui/theme.js +128 -0
- package/dist/ui/theme.js.map +1 -0
- package/dist/ui/thinkingTracker.d.ts +51 -0
- package/dist/ui/thinkingTracker.d.ts.map +1 -0
- package/dist/ui/thinkingTracker.js +115 -0
- package/dist/ui/thinkingTracker.js.map +1 -0
- package/dist/ui/toolDisplay.d.ts +151 -0
- package/dist/ui/toolDisplay.d.ts.map +1 -0
- package/dist/ui/toolDisplay.js +1355 -0
- package/dist/ui/toolDisplay.js.map +1 -0
- package/dist/ui/toolDisplayAdapter.d.ts +66 -0
- package/dist/ui/toolDisplayAdapter.d.ts.map +1 -0
- package/dist/ui/toolDisplayAdapter.js +356 -0
- package/dist/ui/toolDisplayAdapter.js.map +1 -0
- package/dist/ui/treeVisualizer.d.ts +56 -0
- package/dist/ui/treeVisualizer.d.ts.map +1 -0
- package/dist/ui/treeVisualizer.js +247 -0
- package/dist/ui/treeVisualizer.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/errorUtils.d.ts +16 -0
- package/dist/utils/errorUtils.d.ts.map +1 -0
- package/dist/utils/errorUtils.js +66 -0
- package/dist/utils/errorUtils.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 +140 -0
- package/dist/utils/planFormatter.js.map +1 -0
- package/dist/workspace.d.ts +8 -0
- package/dist/workspace.d.ts.map +1 -0
- package/dist/workspace.js +107 -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 +214 -0
- package/dist/workspace.validator.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Alpha Zero 2 - Multi-Agent Competitive RL Framework
|
|
3
|
+
*
|
|
4
|
+
* A competitive reinforcement learning framework where two autonomous erosolar-cli
|
|
5
|
+
* agents compete on code optimization tasks while recursively improving their own
|
|
6
|
+
* implementations.
|
|
7
|
+
*
|
|
8
|
+
* Principal Investigator: Bo Shang
|
|
9
|
+
* Framework: erosolar-cli
|
|
10
|
+
* Status: Active Development
|
|
11
|
+
*
|
|
12
|
+
* Core Innovations:
|
|
13
|
+
* - Recursive Self-Modification Engine: Agents modify their own tool source code
|
|
14
|
+
* - Competitive Multi-Agent Framework: Tournament system with parallel execution
|
|
15
|
+
* - Version-Controlled Self-Improvement: SHA-256 checkpoints with automatic rollback
|
|
16
|
+
* - AST-Based Code Quality Metrics: Comprehensive evaluation across 10+ dimensions
|
|
17
|
+
*
|
|
18
|
+
* Structure:
|
|
19
|
+
* - Core: Types, metrics tracking, code evaluation
|
|
20
|
+
* - Self-Modification: Version-controlled code self-improvement
|
|
21
|
+
* - Introspection: Runtime analysis and self-awareness
|
|
22
|
+
* - Competitive: Multi-agent tournament framework
|
|
23
|
+
* - Security: Optional security research module (lazy loaded)
|
|
24
|
+
*
|
|
25
|
+
* Tech Stack (erosolar-cli):
|
|
26
|
+
* - Python: typer, rich, prompt-toolkit, pydantic, aiohttp, tiktoken
|
|
27
|
+
* - TypeScript: chalk, ora, gradient-string, boxen, nanospinner
|
|
28
|
+
* - AI Providers: anthropic, openai, google-generativeai
|
|
29
|
+
* - Testing: pytest, pytest-asyncio, mypy, ruff, eslint
|
|
30
|
+
*
|
|
31
|
+
* Research Contributions:
|
|
32
|
+
* - Demonstrated practical recursive self-improvement in autonomous agents
|
|
33
|
+
* - Proved competitive dynamics accelerate capability development
|
|
34
|
+
* - Established version control patterns for safe code self-modification
|
|
35
|
+
* - Created comprehensive metrics for evaluating code generation quality
|
|
36
|
+
*
|
|
37
|
+
* Citation:
|
|
38
|
+
* @software{alpha_zero_2,
|
|
39
|
+
* title={Alpha Zero 2: Recursive Self-Improvement in Competitive Multi-Agent Systems},
|
|
40
|
+
* author={Bo Shang},
|
|
41
|
+
* year={2024},
|
|
42
|
+
* framework={erosolar-cli},
|
|
43
|
+
* url={https://github.com/ErosolarAI/erosolar-by-bo}
|
|
44
|
+
* }
|
|
45
|
+
*/
|
|
46
|
+
export { ALPHA_ZERO_2_METADATA } from './types.js';
|
|
47
|
+
// Metrics Tracker
|
|
48
|
+
export { MetricsTracker, createDefaultMetrics } from './metricsTracker.js';
|
|
49
|
+
// Code Evaluator
|
|
50
|
+
export { extractCodeBlocks, evaluateCodeQuality, calculateRewardScore, } from './codeEvaluator.js';
|
|
51
|
+
// Agent Wrapper
|
|
52
|
+
export { AlphaZeroAgentWrapper } from './agentWrapper.js';
|
|
53
|
+
// Competitive Runner
|
|
54
|
+
export { CompetitiveAgentRunner, TournamentRunner, formatTournamentSummary, } from './competitiveRunner.js';
|
|
55
|
+
// Self-Modification Engine
|
|
56
|
+
export { SelfModificationEngine, createSelfModificationEngine, } from './selfModification.js';
|
|
57
|
+
// Introspection Engine
|
|
58
|
+
export { IntrospectionEngine, createIntrospectionEngine, } from './introspection.js';
|
|
59
|
+
// Security Module (optional, lazy loaded)
|
|
60
|
+
export { isGoogleEnabled, getGoogleModule } from './security/googleLoader.js';
|
|
61
|
+
export * from './security/index.js';
|
|
62
|
+
/**
|
|
63
|
+
* Version information
|
|
64
|
+
*/
|
|
65
|
+
export const ALPHA_ZERO_VERSION = '1.0.0';
|
|
66
|
+
export const ALPHA_ZERO_AUTHOR = 'Bo Shang';
|
|
67
|
+
export const ALPHA_ZERO_FRAMEWORK = 'erosolar-cli';
|
|
68
|
+
/**
|
|
69
|
+
* Check if security research module is available
|
|
70
|
+
*/
|
|
71
|
+
let _securityModule = null;
|
|
72
|
+
export function isSecurityEnabled() {
|
|
73
|
+
if (_securityModule !== null) {
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
try {
|
|
77
|
+
// Module exists, can be loaded
|
|
78
|
+
return true;
|
|
79
|
+
}
|
|
80
|
+
catch {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Get security module (lazy load)
|
|
86
|
+
*/
|
|
87
|
+
export async function getSecurityModule() {
|
|
88
|
+
if (_securityModule === null) {
|
|
89
|
+
try {
|
|
90
|
+
_securityModule = await import('./security/index.js');
|
|
91
|
+
}
|
|
92
|
+
catch (error) {
|
|
93
|
+
throw new Error('Security research module not available. ' +
|
|
94
|
+
'Ensure security modules are built and available.');
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
return _securityModule;
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,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C;AACH,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB;IACrC,IAAI,eAAe,KAAK,IAAI,EAAE,CAAC;QAC7B,IAAI,CAAC;YACH,eAAe,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC,CAAC;QACxD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,IAAI,KAAK,CACb,0CAA0C;gBAC1C,kDAAkD,CACnD,CAAC;QACJ,CAAC;IACH,CAAC;IACD,OAAO,eAAe,CAAC;AACzB,CAAC"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Introspection Engine for Alpha Zero 2
|
|
3
|
+
*
|
|
4
|
+
* Provides runtime analysis and self-awareness capabilities for agents.
|
|
5
|
+
* Tracks execution patterns and suggests improvements.
|
|
6
|
+
*
|
|
7
|
+
* Principal Investigator: Bo Shang
|
|
8
|
+
* Framework: erosolar-cli
|
|
9
|
+
*/
|
|
10
|
+
import type { ExecutionTrace, ImprovementSuggestion } from './types.js';
|
|
11
|
+
/**
|
|
12
|
+
* Internal trace representation with additional metrics
|
|
13
|
+
*/
|
|
14
|
+
interface InternalTrace {
|
|
15
|
+
traceId: string;
|
|
16
|
+
timestamp: number;
|
|
17
|
+
durationMs: number;
|
|
18
|
+
success: boolean;
|
|
19
|
+
error?: string;
|
|
20
|
+
originalTrace?: ExecutionTrace;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Performance profile for a tool or agent
|
|
24
|
+
*/
|
|
25
|
+
export interface PerformanceProfile {
|
|
26
|
+
toolId: string;
|
|
27
|
+
executionCount: number;
|
|
28
|
+
averageExecutionTimeMs: number;
|
|
29
|
+
successRate: number;
|
|
30
|
+
errorCount: number;
|
|
31
|
+
lastExecution?: number;
|
|
32
|
+
traces: InternalTrace[];
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Code analysis result
|
|
36
|
+
*/
|
|
37
|
+
export interface CodeAnalysis {
|
|
38
|
+
filePath: string;
|
|
39
|
+
lineCount: number;
|
|
40
|
+
functionCount: number;
|
|
41
|
+
cyclomaticComplexity: number;
|
|
42
|
+
hasDocstrings: boolean;
|
|
43
|
+
hasTypeAnnotations: boolean;
|
|
44
|
+
imports: string[];
|
|
45
|
+
exports: string[];
|
|
46
|
+
issues: string[];
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Introspection configuration
|
|
50
|
+
*/
|
|
51
|
+
export interface IntrospectionConfig {
|
|
52
|
+
maxTraces: number;
|
|
53
|
+
enableProfiling: boolean;
|
|
54
|
+
suggestionThreshold: number;
|
|
55
|
+
verbose: boolean;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Introspection Engine
|
|
59
|
+
*
|
|
60
|
+
* Provides self-awareness and analysis capabilities for agents.
|
|
61
|
+
*/
|
|
62
|
+
export declare class IntrospectionEngine {
|
|
63
|
+
private config;
|
|
64
|
+
private profiles;
|
|
65
|
+
private codeAnalyses;
|
|
66
|
+
constructor(config?: Partial<IntrospectionConfig>);
|
|
67
|
+
/**
|
|
68
|
+
* Record an execution trace
|
|
69
|
+
*/
|
|
70
|
+
recordExecution(toolId: string, trace: {
|
|
71
|
+
traceId: string;
|
|
72
|
+
durationMs: number;
|
|
73
|
+
success: boolean;
|
|
74
|
+
error?: string;
|
|
75
|
+
originalTrace?: ExecutionTrace;
|
|
76
|
+
}): void;
|
|
77
|
+
/**
|
|
78
|
+
* Get performance profile for a tool
|
|
79
|
+
*/
|
|
80
|
+
getProfile(toolId: string): PerformanceProfile | null;
|
|
81
|
+
/**
|
|
82
|
+
* Get all performance profiles
|
|
83
|
+
*/
|
|
84
|
+
getAllProfiles(): PerformanceProfile[];
|
|
85
|
+
/**
|
|
86
|
+
* Analyze code and return analysis result
|
|
87
|
+
*/
|
|
88
|
+
analyzeCode(filePath: string, code: string): CodeAnalysis;
|
|
89
|
+
/**
|
|
90
|
+
* Generate improvement suggestions based on execution history
|
|
91
|
+
*/
|
|
92
|
+
generateSuggestions(toolId: string): ImprovementSuggestion[];
|
|
93
|
+
/**
|
|
94
|
+
* Get aggregated metrics across all tools
|
|
95
|
+
*/
|
|
96
|
+
getAggregatedMetrics(): {
|
|
97
|
+
totalExecutions: number;
|
|
98
|
+
averageSuccessRate: number;
|
|
99
|
+
averageExecutionTime: number;
|
|
100
|
+
toolCount: number;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* Identify bottlenecks in execution
|
|
104
|
+
*/
|
|
105
|
+
identifyBottlenecks(): {
|
|
106
|
+
toolId: string;
|
|
107
|
+
issue: string;
|
|
108
|
+
severity: number;
|
|
109
|
+
}[];
|
|
110
|
+
/**
|
|
111
|
+
* Clear all recorded data
|
|
112
|
+
*/
|
|
113
|
+
clear(): void;
|
|
114
|
+
private getOrCreateProfile;
|
|
115
|
+
private countFunctions;
|
|
116
|
+
private calculateComplexity;
|
|
117
|
+
private hasDocstrings;
|
|
118
|
+
private hasTypeAnnotations;
|
|
119
|
+
private extractImports;
|
|
120
|
+
private extractExports;
|
|
121
|
+
private findIssues;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Create a default introspection engine
|
|
125
|
+
*/
|
|
126
|
+
export declare function createIntrospectionEngine(config?: Partial<IntrospectionConfig>): IntrospectionEngine;
|
|
127
|
+
export {};
|
|
128
|
+
//# sourceMappingURL=introspection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"introspection.d.ts","sourceRoot":"","sources":["../../src/alpha-zero/introspection.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAExE;;GAEG;AACH,UAAU,aAAa;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK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AE,cAAc,CAAA;KAAE,GAC/G,IAAI;IAiCP;;OAEG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,kBAAkB,GAAG,IAAI;IAIrD;;OAEG;IACH,cAAc,IAAI,kBAAkB,EAAE;IAItC;;OAEG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,YAAY;IAkBzD;;OAEG;IACH,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,qBAAqB,EAAE;IA4C5D;;OAEG;IACH,oBAAoB,IAAI;QACtB,eAAe,EAAE,MAAM,CAAC;QACxB,kBAAkB,EAAE,MAAM,CAAC;QAC3B,oBAAoB,EAAE,MAAM,CAAC;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;IAwBD;;OAEG;IACH,mBAAmB,IAAI;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,EAAE;IAuC5E;;OAEG;IACH,KAAK,IAAI,IAAI;IAOb,OAAO,CAAC,kBAAkB;IAgB1B,OAAO,CAAC,cAAc;IAgBtB,OAAO,CAAC,mBAAmB;IAiB3B,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,kBAAkB;IAU1B,OAAO,CAAC,cAAc;IAUtB,OAAO,CAAC,cAAc;IAUtB,OAAO,CAAC,UAAU;CA0BnB;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,GACpC,mBAAmB,CAErB"}
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Introspection Engine for Alpha Zero 2
|
|
3
|
+
*
|
|
4
|
+
* Provides runtime analysis and self-awareness capabilities for agents.
|
|
5
|
+
* Tracks execution patterns and suggests improvements.
|
|
6
|
+
*
|
|
7
|
+
* Principal Investigator: Bo Shang
|
|
8
|
+
* Framework: erosolar-cli
|
|
9
|
+
*/
|
|
10
|
+
const DEFAULT_CONFIG = {
|
|
11
|
+
maxTraces: 1000,
|
|
12
|
+
enableProfiling: true,
|
|
13
|
+
suggestionThreshold: 0.3,
|
|
14
|
+
verbose: false,
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Introspection Engine
|
|
18
|
+
*
|
|
19
|
+
* Provides self-awareness and analysis capabilities for agents.
|
|
20
|
+
*/
|
|
21
|
+
export class IntrospectionEngine {
|
|
22
|
+
config;
|
|
23
|
+
profiles = new Map();
|
|
24
|
+
codeAnalyses = new Map();
|
|
25
|
+
constructor(config = {}) {
|
|
26
|
+
this.config = { ...DEFAULT_CONFIG, ...config };
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Record an execution trace
|
|
30
|
+
*/
|
|
31
|
+
recordExecution(toolId, trace) {
|
|
32
|
+
const profile = this.getOrCreateProfile(toolId);
|
|
33
|
+
const fullTrace = {
|
|
34
|
+
...trace,
|
|
35
|
+
timestamp: Date.now(),
|
|
36
|
+
};
|
|
37
|
+
profile.traces.push(fullTrace);
|
|
38
|
+
profile.executionCount++;
|
|
39
|
+
profile.lastExecution = Date.now();
|
|
40
|
+
// Update averages
|
|
41
|
+
const totalTime = profile.traces.reduce((sum, t) => sum + (t.durationMs || 0), 0);
|
|
42
|
+
profile.averageExecutionTimeMs = totalTime / profile.executionCount;
|
|
43
|
+
// Update success rate
|
|
44
|
+
const successes = profile.traces.filter(t => t.success).length;
|
|
45
|
+
profile.successRate = successes / profile.executionCount;
|
|
46
|
+
// Trim old traces
|
|
47
|
+
if (profile.traces.length > this.config.maxTraces) {
|
|
48
|
+
profile.traces = profile.traces.slice(-this.config.maxTraces);
|
|
49
|
+
}
|
|
50
|
+
if (this.config.verbose) {
|
|
51
|
+
console.log(`[Introspection] Recorded execution for ${toolId}`);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Get performance profile for a tool
|
|
56
|
+
*/
|
|
57
|
+
getProfile(toolId) {
|
|
58
|
+
return this.profiles.get(toolId) || null;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Get all performance profiles
|
|
62
|
+
*/
|
|
63
|
+
getAllProfiles() {
|
|
64
|
+
return Array.from(this.profiles.values());
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Analyze code and return analysis result
|
|
68
|
+
*/
|
|
69
|
+
analyzeCode(filePath, code) {
|
|
70
|
+
const lines = code.split('\n');
|
|
71
|
+
const analysis = {
|
|
72
|
+
filePath,
|
|
73
|
+
lineCount: lines.length,
|
|
74
|
+
functionCount: this.countFunctions(code),
|
|
75
|
+
cyclomaticComplexity: this.calculateComplexity(code),
|
|
76
|
+
hasDocstrings: this.hasDocstrings(code),
|
|
77
|
+
hasTypeAnnotations: this.hasTypeAnnotations(code),
|
|
78
|
+
imports: this.extractImports(code),
|
|
79
|
+
exports: this.extractExports(code),
|
|
80
|
+
issues: this.findIssues(code),
|
|
81
|
+
};
|
|
82
|
+
this.codeAnalyses.set(filePath, analysis);
|
|
83
|
+
return analysis;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Generate improvement suggestions based on execution history
|
|
87
|
+
*/
|
|
88
|
+
generateSuggestions(toolId) {
|
|
89
|
+
const profile = this.profiles.get(toolId);
|
|
90
|
+
if (!profile)
|
|
91
|
+
return [];
|
|
92
|
+
const suggestions = [];
|
|
93
|
+
// Check success rate
|
|
94
|
+
if (profile.successRate < this.config.suggestionThreshold) {
|
|
95
|
+
suggestions.push({
|
|
96
|
+
category: 'error-handling',
|
|
97
|
+
severity: 'high',
|
|
98
|
+
message: `Tool ${toolId} has low success rate (${(profile.successRate * 100).toFixed(1)}%)`,
|
|
99
|
+
suggestedAction: 'Add error handling and input validation',
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
// Check execution time
|
|
103
|
+
if (profile.averageExecutionTimeMs > 5000) {
|
|
104
|
+
suggestions.push({
|
|
105
|
+
category: 'performance',
|
|
106
|
+
severity: 'medium',
|
|
107
|
+
message: `Tool ${toolId} has high average execution time (${profile.averageExecutionTimeMs.toFixed(0)}ms)`,
|
|
108
|
+
suggestedAction: 'Consider caching, async operations, or algorithmic improvements',
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
// Check error patterns
|
|
112
|
+
const recentErrors = profile.traces
|
|
113
|
+
.filter(t => !t.success && t.timestamp > Date.now() - 3600000)
|
|
114
|
+
.map(t => t.error);
|
|
115
|
+
if (recentErrors.length > 5) {
|
|
116
|
+
const errorTypes = Array.from(new Set(recentErrors));
|
|
117
|
+
suggestions.push({
|
|
118
|
+
category: 'quality',
|
|
119
|
+
severity: 'high',
|
|
120
|
+
message: `Tool ${toolId} has ${recentErrors.length} recent errors`,
|
|
121
|
+
suggestedAction: `Address error types: ${errorTypes.slice(0, 3).join(', ')}`,
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
return suggestions;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Get aggregated metrics across all tools
|
|
128
|
+
*/
|
|
129
|
+
getAggregatedMetrics() {
|
|
130
|
+
const profiles = this.getAllProfiles();
|
|
131
|
+
if (profiles.length === 0) {
|
|
132
|
+
return {
|
|
133
|
+
totalExecutions: 0,
|
|
134
|
+
averageSuccessRate: 0,
|
|
135
|
+
averageExecutionTime: 0,
|
|
136
|
+
toolCount: 0,
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
const totalExecutions = profiles.reduce((sum, p) => sum + p.executionCount, 0);
|
|
140
|
+
const avgSuccessRate = profiles.reduce((sum, p) => sum + p.successRate, 0) / profiles.length;
|
|
141
|
+
const avgTime = profiles.reduce((sum, p) => sum + p.averageExecutionTimeMs, 0) / profiles.length;
|
|
142
|
+
return {
|
|
143
|
+
totalExecutions,
|
|
144
|
+
averageSuccessRate: avgSuccessRate,
|
|
145
|
+
averageExecutionTime: avgTime,
|
|
146
|
+
toolCount: profiles.length,
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Identify bottlenecks in execution
|
|
151
|
+
*/
|
|
152
|
+
identifyBottlenecks() {
|
|
153
|
+
const bottlenecks = [];
|
|
154
|
+
for (const profile of Array.from(this.profiles.values())) {
|
|
155
|
+
// Slow tools
|
|
156
|
+
if (profile.averageExecutionTimeMs > 10000) {
|
|
157
|
+
bottlenecks.push({
|
|
158
|
+
toolId: profile.toolId,
|
|
159
|
+
issue: 'Very slow execution',
|
|
160
|
+
severity: 0.8,
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
else if (profile.averageExecutionTimeMs > 5000) {
|
|
164
|
+
bottlenecks.push({
|
|
165
|
+
toolId: profile.toolId,
|
|
166
|
+
issue: 'Slow execution',
|
|
167
|
+
severity: 0.5,
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
// Unreliable tools
|
|
171
|
+
if (profile.successRate < 0.5) {
|
|
172
|
+
bottlenecks.push({
|
|
173
|
+
toolId: profile.toolId,
|
|
174
|
+
issue: 'High failure rate',
|
|
175
|
+
severity: 0.9,
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
else if (profile.successRate < 0.8) {
|
|
179
|
+
bottlenecks.push({
|
|
180
|
+
toolId: profile.toolId,
|
|
181
|
+
issue: 'Moderate failure rate',
|
|
182
|
+
severity: 0.6,
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
// Sort by severity
|
|
187
|
+
return bottlenecks.sort((a, b) => b.severity - a.severity);
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Clear all recorded data
|
|
191
|
+
*/
|
|
192
|
+
clear() {
|
|
193
|
+
this.profiles.clear();
|
|
194
|
+
this.codeAnalyses.clear();
|
|
195
|
+
}
|
|
196
|
+
// Private helper methods
|
|
197
|
+
getOrCreateProfile(toolId) {
|
|
198
|
+
let profile = this.profiles.get(toolId);
|
|
199
|
+
if (!profile) {
|
|
200
|
+
profile = {
|
|
201
|
+
toolId,
|
|
202
|
+
executionCount: 0,
|
|
203
|
+
averageExecutionTimeMs: 0,
|
|
204
|
+
successRate: 1,
|
|
205
|
+
errorCount: 0,
|
|
206
|
+
traces: [],
|
|
207
|
+
};
|
|
208
|
+
this.profiles.set(toolId, profile);
|
|
209
|
+
}
|
|
210
|
+
return profile;
|
|
211
|
+
}
|
|
212
|
+
countFunctions(code) {
|
|
213
|
+
const functionPatterns = [
|
|
214
|
+
/function\s+\w+/g,
|
|
215
|
+
/\w+\s*=\s*(?:async\s+)?function/g,
|
|
216
|
+
/(?:async\s+)?(?:\w+|\(\w*\))\s*=>/g,
|
|
217
|
+
/\w+\s*\([^)]*\)\s*\{/g,
|
|
218
|
+
];
|
|
219
|
+
let count = 0;
|
|
220
|
+
for (const pattern of functionPatterns) {
|
|
221
|
+
const matches = code.match(pattern);
|
|
222
|
+
if (matches)
|
|
223
|
+
count += matches.length;
|
|
224
|
+
}
|
|
225
|
+
return count;
|
|
226
|
+
}
|
|
227
|
+
calculateComplexity(code) {
|
|
228
|
+
// Simple cyclomatic complexity approximation
|
|
229
|
+
const controlFlowKeywords = [
|
|
230
|
+
'if', 'else', 'for', 'while', 'switch', 'case',
|
|
231
|
+
'try', 'catch', '&&', '\\|\\|', '\\?',
|
|
232
|
+
];
|
|
233
|
+
let complexity = 1;
|
|
234
|
+
for (const keyword of controlFlowKeywords) {
|
|
235
|
+
const regex = new RegExp(`\\b${keyword}\\b`, 'g');
|
|
236
|
+
const matches = code.match(regex);
|
|
237
|
+
if (matches)
|
|
238
|
+
complexity += matches.length;
|
|
239
|
+
}
|
|
240
|
+
return complexity;
|
|
241
|
+
}
|
|
242
|
+
hasDocstrings(code) {
|
|
243
|
+
return code.includes('/**') || code.includes('///') || code.includes('/*');
|
|
244
|
+
}
|
|
245
|
+
hasTypeAnnotations(code) {
|
|
246
|
+
return (code.includes(': string') ||
|
|
247
|
+
code.includes(': number') ||
|
|
248
|
+
code.includes(': boolean') ||
|
|
249
|
+
code.includes(': void') ||
|
|
250
|
+
code.includes('<') && code.includes('>'));
|
|
251
|
+
}
|
|
252
|
+
extractImports(code) {
|
|
253
|
+
const importRegex = /import\s+.*?from\s+['"]([^'"]+)['"]/g;
|
|
254
|
+
const imports = [];
|
|
255
|
+
let match;
|
|
256
|
+
while ((match = importRegex.exec(code)) !== null) {
|
|
257
|
+
if (match[1])
|
|
258
|
+
imports.push(match[1]);
|
|
259
|
+
}
|
|
260
|
+
return imports;
|
|
261
|
+
}
|
|
262
|
+
extractExports(code) {
|
|
263
|
+
const exportRegex = /export\s+(?:const|function|class|type|interface)\s+(\w+)/g;
|
|
264
|
+
const exports = [];
|
|
265
|
+
let match;
|
|
266
|
+
while ((match = exportRegex.exec(code)) !== null) {
|
|
267
|
+
if (match[1])
|
|
268
|
+
exports.push(match[1]);
|
|
269
|
+
}
|
|
270
|
+
return exports;
|
|
271
|
+
}
|
|
272
|
+
findIssues(code) {
|
|
273
|
+
const issues = [];
|
|
274
|
+
// Check for console.log in production code
|
|
275
|
+
if (code.includes('console.log')) {
|
|
276
|
+
issues.push('Contains console.log statements');
|
|
277
|
+
}
|
|
278
|
+
// Check for TODO/FIXME comments
|
|
279
|
+
if (code.includes('TODO') || code.includes('FIXME')) {
|
|
280
|
+
issues.push('Contains TODO/FIXME comments');
|
|
281
|
+
}
|
|
282
|
+
// Check for any type
|
|
283
|
+
if (code.includes(': any')) {
|
|
284
|
+
issues.push('Uses any type');
|
|
285
|
+
}
|
|
286
|
+
// Check for very long lines
|
|
287
|
+
const longLines = code.split('\n').filter(line => line.length > 120);
|
|
288
|
+
if (longLines.length > 0) {
|
|
289
|
+
issues.push(`Has ${longLines.length} lines over 120 characters`);
|
|
290
|
+
}
|
|
291
|
+
return issues;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Create a default introspection engine
|
|
296
|
+
*/
|
|
297
|
+
export function createIntrospectionEngine(config) {
|
|
298
|
+
return new IntrospectionEngine(config);
|
|
299
|
+
}
|
|
300
|
+
//# sourceMappingURL=introspection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"introspection.js","sourceRoot":"","sources":["../../src/alpha-zero/introspection.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAsDH,MAAM,cAAc,GAAwB;IAC1C,SAAS,EAAE,IAAI;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,GAAG;IACxB,OAAO,EAAE,KAAK;CACf,CAAC;AAEF;;;;GAIG;AACH,MAAM,OAAO,mBAAmB;IACtB,MAAM,CAAsB;IAC5B,QAAQ,GAAoC,IAAI,GAAG,EAAE,CAAC;IACtD,YAAY,GAA8B,IAAI,GAAG,EAAE,CAAC;IAE5D,YAAY,SAAuC,EAAE;QACnD,IAAI,CAAC,MAAM,GAAG,EAAE,GAAG,cAAc,EAAE,GAAG,MAAM,EAAE,CAAC;IACjD,CAAC;IAED;;OAEG;IACH,eAAe,CACb,MAAc,EACd,KAAgH;QAEhH,MAAM,OAAO,GAAG,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;QAEhD,MAAM,SAAS,GAAkB;YAC/B,GAAG,KAAK;YACR,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;SACtB,CAAC;QAEF,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC/B,OAAO,CAAC,cAAc,EAAE,CAAC;QACzB,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAEnC,kBAAkB;QAClB,MAAM,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,CACrC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,EACrC,CAAC,CACF,CAAC;QACF,OAAO,CAAC,sBAAsB,GAAG,SAAS,GAAG,OAAO,CAAC,cAAc,CAAC;QAEpE,sBAAsB;QACtB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AE,CAAC,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC;QACrE,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACzB,MAAM,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC,MAAM,4BAA4B,CAAC,CAAC;QACnE,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;CACF;AAED;;GAEG;AACH,MAAM,UAAU,yBAAyB,CACvC,MAAqC;IAErC,OAAO,IAAI,mBAAmB,CAAC,MAAM,CAAC,CAAC;AACzC,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Alpha Zero 2 - Metrics Tracker
|
|
3
|
+
*
|
|
4
|
+
* Performance metrics tracking for agent sessions.
|
|
5
|
+
*
|
|
6
|
+
* Principal Investigator: Bo Shang
|
|
7
|
+
* Framework: erosolar-cli
|
|
8
|
+
*/
|
|
9
|
+
import type { AgentPerformanceMetrics, CodeQualityMetrics, ExecutionTrace, ImprovementSuggestion } from './types.js';
|
|
10
|
+
import type { ProviderUsage } from '../core/types.js';
|
|
11
|
+
/**
|
|
12
|
+
* Creates default performance metrics.
|
|
13
|
+
*/
|
|
14
|
+
export declare function createDefaultMetrics(sessionId: string): AgentPerformanceMetrics;
|
|
15
|
+
/**
|
|
16
|
+
* Tracks performance metrics for an agent session.
|
|
17
|
+
*/
|
|
18
|
+
export declare class MetricsTracker {
|
|
19
|
+
private metrics;
|
|
20
|
+
private responseTimes;
|
|
21
|
+
private codeQualityScores;
|
|
22
|
+
private efficiencyScores;
|
|
23
|
+
private errorHandlingScores;
|
|
24
|
+
private traces;
|
|
25
|
+
constructor(sessionId: string);
|
|
26
|
+
/**
|
|
27
|
+
* Record a message exchange.
|
|
28
|
+
*/
|
|
29
|
+
recordMessage(elapsedMs: number, usage?: ProviderUsage | null): void;
|
|
30
|
+
/**
|
|
31
|
+
* Record a tool call.
|
|
32
|
+
*/
|
|
33
|
+
recordToolCall(success: boolean): void;
|
|
34
|
+
/**
|
|
35
|
+
* Record code generation.
|
|
36
|
+
*/
|
|
37
|
+
recordCodeGeneration(codeBlockCount: number): void;
|
|
38
|
+
/**
|
|
39
|
+
* Record code quality evaluation.
|
|
40
|
+
*/
|
|
41
|
+
recordCodeQuality(quality: CodeQualityMetrics): void;
|
|
42
|
+
/**
|
|
43
|
+
* Add an execution trace.
|
|
44
|
+
*/
|
|
45
|
+
addTrace(trace: ExecutionTrace): void;
|
|
46
|
+
/**
|
|
47
|
+
* Update running averages.
|
|
48
|
+
*/
|
|
49
|
+
private updateAverages;
|
|
50
|
+
/**
|
|
51
|
+
* Get current metrics.
|
|
52
|
+
*/
|
|
53
|
+
getMetrics(): AgentPerformanceMetrics;
|
|
54
|
+
/**
|
|
55
|
+
* Get execution traces.
|
|
56
|
+
*/
|
|
57
|
+
getTraces(): ExecutionTrace[];
|
|
58
|
+
/**
|
|
59
|
+
* Get human-readable performance summary.
|
|
60
|
+
*/
|
|
61
|
+
getPerformanceSummary(): string;
|
|
62
|
+
/**
|
|
63
|
+
* Get improvement suggestions based on metrics.
|
|
64
|
+
*/
|
|
65
|
+
getImprovementSuggestions(): ImprovementSuggestion[];
|
|
66
|
+
/**
|
|
67
|
+
* Reset all metrics.
|
|
68
|
+
*/
|
|
69
|
+
reset(): void;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=metricsTracker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metricsTracker.d.ts","sourceRoot":"","sources":["../../src/alpha-zero/metricsTracker.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EACV,uBAAuB,EACvB,kBAAkB,EAClB,cAAc,EACd,qBAAqB,EACtB,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,uBAAuB,CAe/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