erosolar-cli 1.7.438 → 1.7.439
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/package.json +2 -1
- package/dist/StringUtils.d.ts +0 -8
- package/dist/StringUtils.d.ts.map +0 -1
- package/dist/StringUtils.js +0 -11
- package/dist/StringUtils.js.map +0 -1
- package/dist/adapters/browser/index.d.ts +0 -12
- package/dist/adapters/browser/index.d.ts.map +0 -1
- package/dist/adapters/browser/index.js +0 -11
- package/dist/adapters/browser/index.js.map +0 -1
- package/dist/adapters/node/index.d.ts +0 -17
- package/dist/adapters/node/index.d.ts.map +0 -1
- package/dist/adapters/node/index.js +0 -35
- package/dist/adapters/node/index.js.map +0 -1
- package/dist/adapters/remote/index.d.ts +0 -13
- package/dist/adapters/remote/index.d.ts.map +0 -1
- package/dist/adapters/remote/index.js +0 -20
- package/dist/adapters/remote/index.js.map +0 -1
- package/dist/adapters/types.d.ts +0 -14
- package/dist/adapters/types.d.ts.map +0 -1
- package/dist/adapters/types.js +0 -2
- package/dist/adapters/types.js.map +0 -1
- package/dist/bin/erosolar.d.ts +0 -9
- package/dist/bin/erosolar.d.ts.map +0 -1
- package/dist/bin/erosolar.js +0 -93
- package/dist/bin/erosolar.js.map +0 -1
- package/dist/bin/selfTest.d.ts +0 -14
- package/dist/bin/selfTest.d.ts.map +0 -1
- package/dist/bin/selfTest.js +0 -304
- package/dist/bin/selfTest.js.map +0 -1
- package/dist/browser/BrowserSessionManager.d.ts +0 -307
- package/dist/browser/BrowserSessionManager.d.ts.map +0 -1
- package/dist/browser/BrowserSessionManager.js +0 -713
- package/dist/browser/BrowserSessionManager.js.map +0 -1
- package/dist/capabilities/advancedTestGenerationCapability.d.ts +0 -17
- package/dist/capabilities/advancedTestGenerationCapability.d.ts.map +0 -1
- package/dist/capabilities/advancedTestGenerationCapability.js +0 -28
- package/dist/capabilities/advancedTestGenerationCapability.js.map +0 -1
- package/dist/capabilities/agentSpawningCapability.d.ts +0 -6
- package/dist/capabilities/agentSpawningCapability.d.ts.map +0 -1
- package/dist/capabilities/agentSpawningCapability.js +0 -168
- package/dist/capabilities/agentSpawningCapability.js.map +0 -1
- package/dist/capabilities/askUserCapability.d.ts +0 -21
- package/dist/capabilities/askUserCapability.d.ts.map +0 -1
- package/dist/capabilities/askUserCapability.js +0 -155
- package/dist/capabilities/askUserCapability.js.map +0 -1
- package/dist/capabilities/bashCapability.d.ts +0 -13
- package/dist/capabilities/bashCapability.d.ts.map +0 -1
- package/dist/capabilities/bashCapability.js +0 -24
- package/dist/capabilities/bashCapability.js.map +0 -1
- package/dist/capabilities/browserAutomationCapability.d.ts +0 -37
- package/dist/capabilities/browserAutomationCapability.d.ts.map +0 -1
- package/dist/capabilities/browserAutomationCapability.js +0 -49
- package/dist/capabilities/browserAutomationCapability.js.map +0 -1
- package/dist/capabilities/buildCapability.d.ts +0 -24
- package/dist/capabilities/buildCapability.d.ts.map +0 -1
- package/dist/capabilities/buildCapability.js +0 -25
- package/dist/capabilities/buildCapability.js.map +0 -1
- package/dist/capabilities/cloudCapability.d.ts +0 -13
- package/dist/capabilities/cloudCapability.d.ts.map +0 -1
- package/dist/capabilities/cloudCapability.js +0 -38
- package/dist/capabilities/cloudCapability.js.map +0 -1
- package/dist/capabilities/codeAnalysisCapability.d.ts +0 -13
- package/dist/capabilities/codeAnalysisCapability.d.ts.map +0 -1
- package/dist/capabilities/codeAnalysisCapability.js +0 -24
- package/dist/capabilities/codeAnalysisCapability.js.map +0 -1
- package/dist/capabilities/codeGenerationCapability.d.ts +0 -13
- package/dist/capabilities/codeGenerationCapability.d.ts.map +0 -1
- package/dist/capabilities/codeGenerationCapability.js +0 -25
- package/dist/capabilities/codeGenerationCapability.js.map +0 -1
- package/dist/capabilities/codeQualityCapability.d.ts +0 -13
- package/dist/capabilities/codeQualityCapability.d.ts.map +0 -1
- package/dist/capabilities/codeQualityCapability.js +0 -25
- package/dist/capabilities/codeQualityCapability.js.map +0 -1
- package/dist/capabilities/dependencySecurityCapability.d.ts +0 -13
- package/dist/capabilities/dependencySecurityCapability.d.ts.map +0 -1
- package/dist/capabilities/dependencySecurityCapability.js +0 -24
- package/dist/capabilities/dependencySecurityCapability.js.map +0 -1
- package/dist/capabilities/devCapability.d.ts +0 -13
- package/dist/capabilities/devCapability.d.ts.map +0 -1
- package/dist/capabilities/devCapability.js +0 -24
- package/dist/capabilities/devCapability.js.map +0 -1
- package/dist/capabilities/editCapability.d.ts +0 -17
- package/dist/capabilities/editCapability.d.ts.map +0 -1
- package/dist/capabilities/editCapability.js +0 -27
- package/dist/capabilities/editCapability.js.map +0 -1
- package/dist/capabilities/emailCapability.d.ts +0 -12
- package/dist/capabilities/emailCapability.d.ts.map +0 -1
- package/dist/capabilities/emailCapability.js +0 -22
- package/dist/capabilities/emailCapability.js.map +0 -1
- package/dist/capabilities/enhancedCodeIntelligenceCapability.d.ts +0 -17
- package/dist/capabilities/enhancedCodeIntelligenceCapability.d.ts.map +0 -1
- package/dist/capabilities/enhancedCodeIntelligenceCapability.js +0 -28
- package/dist/capabilities/enhancedCodeIntelligenceCapability.js.map +0 -1
- package/dist/capabilities/enhancedDevWorkflowCapability.d.ts +0 -17
- package/dist/capabilities/enhancedDevWorkflowCapability.d.ts.map +0 -1
- package/dist/capabilities/enhancedDevWorkflowCapability.js +0 -28
- package/dist/capabilities/enhancedDevWorkflowCapability.js.map +0 -1
- package/dist/capabilities/enhancedGitCapability.d.ts +0 -7
- package/dist/capabilities/enhancedGitCapability.d.ts.map +0 -1
- package/dist/capabilities/enhancedGitCapability.js +0 -220
- package/dist/capabilities/enhancedGitCapability.js.map +0 -1
- package/dist/capabilities/filesystemCapability.d.ts +0 -13
- package/dist/capabilities/filesystemCapability.d.ts.map +0 -1
- package/dist/capabilities/filesystemCapability.js +0 -24
- package/dist/capabilities/filesystemCapability.js.map +0 -1
- package/dist/capabilities/frontendTestingCapability.d.ts +0 -13
- package/dist/capabilities/frontendTestingCapability.d.ts.map +0 -1
- package/dist/capabilities/frontendTestingCapability.js +0 -28
- package/dist/capabilities/frontendTestingCapability.js.map +0 -1
- package/dist/capabilities/globCapability.d.ts +0 -17
- package/dist/capabilities/globCapability.d.ts.map +0 -1
- package/dist/capabilities/globCapability.js +0 -27
- package/dist/capabilities/globCapability.js.map +0 -1
- package/dist/capabilities/index.d.ts +0 -26
- package/dist/capabilities/index.d.ts.map +0 -1
- package/dist/capabilities/index.js +0 -26
- package/dist/capabilities/index.js.map +0 -1
- package/dist/capabilities/interactionCapability.d.ts +0 -12
- package/dist/capabilities/interactionCapability.d.ts.map +0 -1
- package/dist/capabilities/interactionCapability.js +0 -22
- package/dist/capabilities/interactionCapability.js.map +0 -1
- package/dist/capabilities/learnCapability.d.ts +0 -22
- package/dist/capabilities/learnCapability.d.ts.map +0 -1
- package/dist/capabilities/learnCapability.js +0 -37
- package/dist/capabilities/learnCapability.js.map +0 -1
- package/dist/capabilities/mcpCapability.d.ts +0 -6
- package/dist/capabilities/mcpCapability.d.ts.map +0 -1
- package/dist/capabilities/mcpCapability.js +0 -19
- package/dist/capabilities/mcpCapability.js.map +0 -1
- package/dist/capabilities/notebookCapability.d.ts +0 -17
- package/dist/capabilities/notebookCapability.d.ts.map +0 -1
- package/dist/capabilities/notebookCapability.js +0 -27
- package/dist/capabilities/notebookCapability.js.map +0 -1
- package/dist/capabilities/performanceMonitoringCapability.d.ts +0 -108
- package/dist/capabilities/performanceMonitoringCapability.d.ts.map +0 -1
- package/dist/capabilities/performanceMonitoringCapability.js +0 -176
- package/dist/capabilities/performanceMonitoringCapability.js.map +0 -1
- package/dist/capabilities/planningCapability.d.ts +0 -16
- package/dist/capabilities/planningCapability.d.ts.map +0 -1
- package/dist/capabilities/planningCapability.js +0 -26
- package/dist/capabilities/planningCapability.js.map +0 -1
- package/dist/capabilities/refactoringCapability.d.ts +0 -13
- package/dist/capabilities/refactoringCapability.d.ts.map +0 -1
- package/dist/capabilities/refactoringCapability.js +0 -25
- package/dist/capabilities/refactoringCapability.js.map +0 -1
- package/dist/capabilities/repoChecksCapability.d.ts +0 -10
- package/dist/capabilities/repoChecksCapability.d.ts.map +0 -1
- package/dist/capabilities/repoChecksCapability.js +0 -24
- package/dist/capabilities/repoChecksCapability.js.map +0 -1
- package/dist/capabilities/searchCapability.d.ts +0 -13
- package/dist/capabilities/searchCapability.d.ts.map +0 -1
- package/dist/capabilities/searchCapability.js +0 -24
- package/dist/capabilities/searchCapability.js.map +0 -1
- package/dist/capabilities/skillCapability.d.ts +0 -3
- package/dist/capabilities/skillCapability.d.ts.map +0 -1
- package/dist/capabilities/skillCapability.js +0 -77
- package/dist/capabilities/skillCapability.js.map +0 -1
- package/dist/capabilities/statusCapability.d.ts +0 -4
- package/dist/capabilities/statusCapability.d.ts.map +0 -1
- package/dist/capabilities/statusCapability.js +0 -92
- package/dist/capabilities/statusCapability.js.map +0 -1
- package/dist/capabilities/taskManagementCapability.d.ts +0 -12
- package/dist/capabilities/taskManagementCapability.d.ts.map +0 -1
- package/dist/capabilities/taskManagementCapability.js +0 -22
- package/dist/capabilities/taskManagementCapability.js.map +0 -1
- package/dist/capabilities/testingCapability.d.ts +0 -13
- package/dist/capabilities/testingCapability.d.ts.map +0 -1
- package/dist/capabilities/testingCapability.js +0 -25
- package/dist/capabilities/testingCapability.js.map +0 -1
- package/dist/capabilities/todoCapability.d.ts +0 -19
- package/dist/capabilities/todoCapability.d.ts.map +0 -1
- package/dist/capabilities/todoCapability.js +0 -169
- package/dist/capabilities/todoCapability.js.map +0 -1
- package/dist/capabilities/toolManifest.d.ts +0 -3
- package/dist/capabilities/toolManifest.d.ts.map +0 -1
- package/dist/capabilities/toolManifest.js +0 -160
- package/dist/capabilities/toolManifest.js.map +0 -1
- package/dist/capabilities/toolRegistry.d.ts +0 -24
- package/dist/capabilities/toolRegistry.d.ts.map +0 -1
- package/dist/capabilities/toolRegistry.js +0 -150
- package/dist/capabilities/toolRegistry.js.map +0 -1
- package/dist/capabilities/validationCapability.d.ts +0 -13
- package/dist/capabilities/validationCapability.d.ts.map +0 -1
- package/dist/capabilities/validationCapability.js +0 -24
- package/dist/capabilities/validationCapability.js.map +0 -1
- package/dist/capabilities/webCapability.d.ts +0 -12
- package/dist/capabilities/webCapability.d.ts.map +0 -1
- package/dist/capabilities/webCapability.js +0 -22
- package/dist/capabilities/webCapability.js.map +0 -1
- package/dist/config.d.ts +0 -25
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -140
- package/dist/config.js.map +0 -1
- package/dist/contracts/v1/agent.d.ts +0 -147
- package/dist/contracts/v1/agent.d.ts.map +0 -1
- package/dist/contracts/v1/agent.js +0 -8
- package/dist/contracts/v1/agent.js.map +0 -1
- package/dist/contracts/v1/agentProfileManifest.d.ts +0 -60
- package/dist/contracts/v1/agentProfileManifest.d.ts.map +0 -1
- package/dist/contracts/v1/agentProfileManifest.js +0 -9
- package/dist/contracts/v1/agentProfileManifest.js.map +0 -1
- package/dist/contracts/v1/agentRules.d.ts +0 -60
- package/dist/contracts/v1/agentRules.d.ts.map +0 -1
- package/dist/contracts/v1/agentRules.js +0 -10
- package/dist/contracts/v1/agentRules.js.map +0 -1
- package/dist/contracts/v1/provider.d.ts +0 -149
- package/dist/contracts/v1/provider.d.ts.map +0 -1
- package/dist/contracts/v1/provider.js +0 -7
- package/dist/contracts/v1/provider.js.map +0 -1
- package/dist/contracts/v1/tool.d.ts +0 -136
- package/dist/contracts/v1/tool.d.ts.map +0 -1
- package/dist/contracts/v1/tool.js +0 -7
- package/dist/contracts/v1/tool.js.map +0 -1
- package/dist/contracts/v1/toolAccess.d.ts +0 -43
- package/dist/contracts/v1/toolAccess.d.ts.map +0 -1
- package/dist/contracts/v1/toolAccess.js +0 -9
- package/dist/contracts/v1/toolAccess.js.map +0 -1
- package/dist/core/LazyLoader.d.ts +0 -129
- package/dist/core/LazyLoader.d.ts.map +0 -1
- package/dist/core/LazyLoader.js +0 -240
- package/dist/core/LazyLoader.js.map +0 -1
- package/dist/core/agent.d.ts +0 -153
- package/dist/core/agent.d.ts.map +0 -1
- package/dist/core/agent.js +0 -889
- package/dist/core/agent.js.map +0 -1
- package/dist/core/agentProfileManifest.d.ts +0 -3
- package/dist/core/agentProfileManifest.d.ts.map +0 -1
- package/dist/core/agentProfileManifest.js +0 -188
- package/dist/core/agentProfileManifest.js.map +0 -1
- package/dist/core/agentProfiles.d.ts +0 -22
- package/dist/core/agentProfiles.d.ts.map +0 -1
- package/dist/core/agentProfiles.js +0 -35
- package/dist/core/agentProfiles.js.map +0 -1
- package/dist/core/agentRulebook.d.ts +0 -11
- package/dist/core/agentRulebook.d.ts.map +0 -1
- package/dist/core/agentRulebook.js +0 -136
- package/dist/core/agentRulebook.js.map +0 -1
- package/dist/core/agentSchemaLoader.d.ts +0 -131
- package/dist/core/agentSchemaLoader.d.ts.map +0 -1
- package/dist/core/agentSchemaLoader.js +0 -234
- package/dist/core/agentSchemaLoader.js.map +0 -1
- package/dist/core/aiErrorFixer.d.ts +0 -70
- package/dist/core/aiErrorFixer.d.ts.map +0 -1
- package/dist/core/aiErrorFixer.js +0 -402
- package/dist/core/aiErrorFixer.js.map +0 -1
- package/dist/core/alphaZeroEngine.d.ts +0 -269
- package/dist/core/alphaZeroEngine.d.ts.map +0 -1
- package/dist/core/alphaZeroEngine.js +0 -523
- package/dist/core/alphaZeroEngine.js.map +0 -1
- package/dist/core/alphaZeroModular.d.ts +0 -186
- package/dist/core/alphaZeroModular.d.ts.map +0 -1
- package/dist/core/alphaZeroModular.js +0 -755
- package/dist/core/alphaZeroModular.js.map +0 -1
- package/dist/core/alphaZeroOrchestrator.d.ts +0 -140
- package/dist/core/alphaZeroOrchestrator.d.ts.map +0 -1
- package/dist/core/alphaZeroOrchestrator.js +0 -418
- package/dist/core/alphaZeroOrchestrator.js.map +0 -1
- package/dist/core/bashCommandGuidance.d.ts +0 -16
- package/dist/core/bashCommandGuidance.d.ts.map +0 -1
- package/dist/core/bashCommandGuidance.js +0 -40
- package/dist/core/bashCommandGuidance.js.map +0 -1
- package/dist/core/checkpoint.d.ts +0 -76
- package/dist/core/checkpoint.d.ts.map +0 -1
- package/dist/core/checkpoint.js +0 -278
- package/dist/core/checkpoint.js.map +0 -1
- package/dist/core/cliTestHarness.d.ts +0 -200
- package/dist/core/cliTestHarness.d.ts.map +0 -1
- package/dist/core/cliTestHarness.js +0 -549
- package/dist/core/cliTestHarness.js.map +0 -1
- package/dist/core/contextManager.d.ts +0 -265
- package/dist/core/contextManager.d.ts.map +0 -1
- package/dist/core/contextManager.js +0 -1060
- package/dist/core/contextManager.js.map +0 -1
- package/dist/core/contextWindow.d.ts +0 -42
- package/dist/core/contextWindow.d.ts.map +0 -1
- package/dist/core/contextWindow.js +0 -123
- package/dist/core/contextWindow.js.map +0 -1
- package/dist/core/costTracker.d.ts +0 -87
- package/dist/core/costTracker.d.ts.map +0 -1
- package/dist/core/costTracker.js +0 -285
- package/dist/core/costTracker.js.map +0 -1
- package/dist/core/customCommands.d.ts +0 -19
- package/dist/core/customCommands.d.ts.map +0 -1
- package/dist/core/customCommands.js +0 -84
- package/dist/core/customCommands.js.map +0 -1
- package/dist/core/errors/apiKeyErrors.d.ts +0 -11
- package/dist/core/errors/apiKeyErrors.d.ts.map +0 -1
- package/dist/core/errors/apiKeyErrors.js +0 -159
- package/dist/core/errors/apiKeyErrors.js.map +0 -1
- package/dist/core/errors/errorTypes.d.ts +0 -111
- package/dist/core/errors/errorTypes.d.ts.map +0 -1
- package/dist/core/errors/errorTypes.js +0 -348
- package/dist/core/errors/errorTypes.js.map +0 -1
- package/dist/core/errors/errorUtils.d.ts +0 -87
- package/dist/core/errors/errorUtils.d.ts.map +0 -1
- package/dist/core/errors/errorUtils.js +0 -158
- package/dist/core/errors/errorUtils.js.map +0 -1
- package/dist/core/errors/safetyValidator.d.ts +0 -71
- package/dist/core/errors/safetyValidator.d.ts.map +0 -1
- package/dist/core/errors/safetyValidator.js +0 -302
- package/dist/core/errors/safetyValidator.js.map +0 -1
- package/dist/core/errors.d.ts +0 -4
- package/dist/core/errors.d.ts.map +0 -1
- package/dist/core/errors.js +0 -33
- package/dist/core/errors.js.map +0 -1
- package/dist/core/failureRecovery.d.ts +0 -122
- package/dist/core/failureRecovery.d.ts.map +0 -1
- package/dist/core/failureRecovery.js +0 -477
- package/dist/core/failureRecovery.js.map +0 -1
- package/dist/core/hooks.d.ts +0 -113
- package/dist/core/hooks.d.ts.map +0 -1
- package/dist/core/hooks.js +0 -267
- package/dist/core/hooks.js.map +0 -1
- package/dist/core/intelligentTestFlows.d.ts +0 -126
- package/dist/core/intelligentTestFlows.d.ts.map +0 -1
- package/dist/core/intelligentTestFlows.js +0 -678
- package/dist/core/intelligentTestFlows.js.map +0 -1
- package/dist/core/isolatedVerifier.d.ts +0 -40
- package/dist/core/isolatedVerifier.d.ts.map +0 -1
- package/dist/core/isolatedVerifier.js +0 -129
- package/dist/core/isolatedVerifier.js.map +0 -1
- package/dist/core/learningPersistence.d.ts +0 -145
- package/dist/core/learningPersistence.d.ts.map +0 -1
- package/dist/core/learningPersistence.js +0 -477
- package/dist/core/learningPersistence.js.map +0 -1
- package/dist/core/memorySystem.d.ts +0 -67
- package/dist/core/memorySystem.d.ts.map +0 -1
- package/dist/core/memorySystem.js +0 -334
- package/dist/core/memorySystem.js.map +0 -1
- package/dist/core/metricsTracker.d.ts +0 -157
- package/dist/core/metricsTracker.d.ts.map +0 -1
- package/dist/core/metricsTracker.js +0 -273
- package/dist/core/metricsTracker.js.map +0 -1
- package/dist/core/modelDiscovery.d.ts +0 -101
- package/dist/core/modelDiscovery.d.ts.map +0 -1
- package/dist/core/modelDiscovery.js +0 -780
- package/dist/core/modelDiscovery.js.map +0 -1
- package/dist/core/multilinePasteHandler.d.ts +0 -35
- package/dist/core/multilinePasteHandler.d.ts.map +0 -1
- package/dist/core/multilinePasteHandler.js +0 -80
- package/dist/core/multilinePasteHandler.js.map +0 -1
- package/dist/core/offsecAlphaZero.d.ts +0 -56
- package/dist/core/offsecAlphaZero.d.ts.map +0 -1
- package/dist/core/offsecAlphaZero.js +0 -395
- package/dist/core/offsecAlphaZero.js.map +0 -1
- package/dist/core/outputStyles.d.ts +0 -48
- package/dist/core/outputStyles.d.ts.map +0 -1
- package/dist/core/outputStyles.js +0 -270
- package/dist/core/outputStyles.js.map +0 -1
- package/dist/core/performanceMonitor.d.ts +0 -124
- package/dist/core/performanceMonitor.d.ts.map +0 -1
- package/dist/core/performanceMonitor.js +0 -192
- package/dist/core/performanceMonitor.js.map +0 -1
- package/dist/core/preferences.d.ts +0 -69
- package/dist/core/preferences.d.ts.map +0 -1
- package/dist/core/preferences.js +0 -316
- package/dist/core/preferences.js.map +0 -1
- package/dist/core/responseVerifier.d.ts +0 -98
- package/dist/core/responseVerifier.d.ts.map +0 -1
- package/dist/core/responseVerifier.js +0 -509
- package/dist/core/responseVerifier.js.map +0 -1
- package/dist/core/resultVerification.d.ts +0 -141
- package/dist/core/resultVerification.d.ts.map +0 -1
- package/dist/core/resultVerification.js +0 -482
- package/dist/core/resultVerification.js.map +0 -1
- package/dist/core/schemaValidator.d.ts +0 -44
- package/dist/core/schemaValidator.d.ts.map +0 -1
- package/dist/core/schemaValidator.js +0 -155
- package/dist/core/schemaValidator.js.map +0 -1
- package/dist/core/secretStore.d.ts +0 -48
- package/dist/core/secretStore.d.ts.map +0 -1
- package/dist/core/secretStore.js +0 -367
- package/dist/core/secretStore.js.map +0 -1
- package/dist/core/securityAssessment.d.ts +0 -91
- package/dist/core/securityAssessment.d.ts.map +0 -1
- package/dist/core/securityAssessment.js +0 -580
- package/dist/core/securityAssessment.js.map +0 -1
- package/dist/core/selfEvolution.d.ts +0 -155
- package/dist/core/selfEvolution.d.ts.map +0 -1
- package/dist/core/selfEvolution.js +0 -1000
- package/dist/core/selfEvolution.js.map +0 -1
- package/dist/core/selfImprovement.d.ts +0 -141
- package/dist/core/selfImprovement.d.ts.map +0 -1
- package/dist/core/selfImprovement.js +0 -700
- package/dist/core/selfImprovement.js.map +0 -1
- package/dist/core/sessionStore.d.ts +0 -35
- package/dist/core/sessionStore.d.ts.map +0 -1
- package/dist/core/sessionStore.js +0 -189
- package/dist/core/sessionStore.js.map +0 -1
- package/dist/core/testUtils.d.ts +0 -121
- package/dist/core/testUtils.d.ts.map +0 -1
- package/dist/core/testUtils.js +0 -235
- package/dist/core/testUtils.js.map +0 -1
- package/dist/core/toolPreconditions.d.ts +0 -42
- package/dist/core/toolPreconditions.d.ts.map +0 -1
- package/dist/core/toolPreconditions.js +0 -347
- package/dist/core/toolPreconditions.js.map +0 -1
- package/dist/core/toolRuntime.d.ts +0 -163
- package/dist/core/toolRuntime.d.ts.map +0 -1
- package/dist/core/toolRuntime.js +0 -439
- package/dist/core/toolRuntime.js.map +0 -1
- package/dist/core/toolValidation.d.ts +0 -116
- package/dist/core/toolValidation.d.ts.map +0 -1
- package/dist/core/toolValidation.js +0 -282
- package/dist/core/toolValidation.js.map +0 -1
- package/dist/core/types/utilityTypes.d.ts +0 -192
- package/dist/core/types/utilityTypes.d.ts.map +0 -1
- package/dist/core/types/utilityTypes.js +0 -272
- package/dist/core/types/utilityTypes.js.map +0 -1
- package/dist/core/types.d.ts +0 -306
- package/dist/core/types.d.ts.map +0 -1
- package/dist/core/types.js +0 -76
- package/dist/core/types.js.map +0 -1
- package/dist/core/validationRunner.d.ts +0 -106
- package/dist/core/validationRunner.d.ts.map +0 -1
- package/dist/core/validationRunner.js +0 -888
- package/dist/core/validationRunner.js.map +0 -1
- package/dist/core/verification.d.ts +0 -137
- package/dist/core/verification.d.ts.map +0 -1
- package/dist/core/verification.js +0 -323
- package/dist/core/verification.js.map +0 -1
- package/dist/headless/headlessApp.d.ts +0 -5
- package/dist/headless/headlessApp.d.ts.map +0 -1
- package/dist/headless/headlessApp.js +0 -210
- package/dist/headless/headlessApp.js.map +0 -1
- package/dist/intelligence/codeIntelligence.d.ts +0 -118
- package/dist/intelligence/codeIntelligence.d.ts.map +0 -1
- package/dist/intelligence/codeIntelligence.js +0 -552
- package/dist/intelligence/codeIntelligence.js.map +0 -1
- package/dist/intelligence/docGenerator.d.ts +0 -86
- package/dist/intelligence/docGenerator.d.ts.map +0 -1
- package/dist/intelligence/docGenerator.js +0 -564
- package/dist/intelligence/docGenerator.js.map +0 -1
- package/dist/intelligence/index.d.ts +0 -51
- package/dist/intelligence/index.d.ts.map +0 -1
- package/dist/intelligence/index.js +0 -253
- package/dist/intelligence/index.js.map +0 -1
- package/dist/intelligence/refactoring.d.ts +0 -50
- package/dist/intelligence/refactoring.d.ts.map +0 -1
- package/dist/intelligence/refactoring.js +0 -354
- package/dist/intelligence/refactoring.js.map +0 -1
- package/dist/intelligence/testGenerator.d.ts +0 -74
- package/dist/intelligence/testGenerator.d.ts.map +0 -1
- package/dist/intelligence/testGenerator.js +0 -483
- package/dist/intelligence/testGenerator.js.map +0 -1
- package/dist/mcp/config.d.ts +0 -8
- package/dist/mcp/config.d.ts.map +0 -1
- package/dist/mcp/config.js +0 -252
- package/dist/mcp/config.js.map +0 -1
- package/dist/mcp/sseClient.d.ts +0 -34
- package/dist/mcp/sseClient.d.ts.map +0 -1
- package/dist/mcp/sseClient.js +0 -327
- package/dist/mcp/sseClient.js.map +0 -1
- package/dist/mcp/stdioClient.d.ts +0 -24
- package/dist/mcp/stdioClient.d.ts.map +0 -1
- package/dist/mcp/stdioClient.js +0 -179
- package/dist/mcp/stdioClient.js.map +0 -1
- package/dist/mcp/toolBridge.d.ts +0 -12
- package/dist/mcp/toolBridge.d.ts.map +0 -1
- package/dist/mcp/toolBridge.js +0 -117
- package/dist/mcp/toolBridge.js.map +0 -1
- package/dist/mcp/types.d.ts +0 -60
- package/dist/mcp/types.d.ts.map +0 -1
- package/dist/mcp/types.js +0 -2
- package/dist/mcp/types.js.map +0 -1
- package/dist/plugins/index.d.ts +0 -49
- package/dist/plugins/index.d.ts.map +0 -1
- package/dist/plugins/index.js +0 -114
- package/dist/plugins/index.js.map +0 -1
- package/dist/plugins/providers/anthropic/index.d.ts +0 -11
- package/dist/plugins/providers/anthropic/index.d.ts.map +0 -1
- package/dist/plugins/providers/anthropic/index.js +0 -38
- package/dist/plugins/providers/anthropic/index.js.map +0 -1
- package/dist/plugins/providers/deepseek/index.d.ts +0 -11
- package/dist/plugins/providers/deepseek/index.d.ts.map +0 -1
- package/dist/plugins/providers/deepseek/index.js +0 -52
- package/dist/plugins/providers/deepseek/index.js.map +0 -1
- package/dist/plugins/providers/google/index.d.ts +0 -11
- package/dist/plugins/providers/google/index.d.ts.map +0 -1
- package/dist/plugins/providers/google/index.js +0 -40
- package/dist/plugins/providers/google/index.js.map +0 -1
- package/dist/plugins/providers/index.d.ts +0 -2
- package/dist/plugins/providers/index.d.ts.map +0 -1
- package/dist/plugins/providers/index.js +0 -20
- package/dist/plugins/providers/index.js.map +0 -1
- package/dist/plugins/providers/ollama/index.d.ts +0 -21
- package/dist/plugins/providers/ollama/index.d.ts.map +0 -1
- package/dist/plugins/providers/ollama/index.js +0 -69
- package/dist/plugins/providers/ollama/index.js.map +0 -1
- package/dist/plugins/providers/openai/index.d.ts +0 -12
- package/dist/plugins/providers/openai/index.d.ts.map +0 -1
- package/dist/plugins/providers/openai/index.js +0 -39
- package/dist/plugins/providers/openai/index.js.map +0 -1
- package/dist/plugins/providers/xai/index.d.ts +0 -11
- package/dist/plugins/providers/xai/index.d.ts.map +0 -1
- package/dist/plugins/providers/xai/index.js +0 -39
- package/dist/plugins/providers/xai/index.js.map +0 -1
- package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.d.ts +0 -3
- package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.js +0 -9
- package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.js.map +0 -1
- package/dist/plugins/tools/bash/localBashPlugin.d.ts +0 -3
- package/dist/plugins/tools/bash/localBashPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/bash/localBashPlugin.js +0 -14
- package/dist/plugins/tools/bash/localBashPlugin.js.map +0 -1
- package/dist/plugins/tools/browser/browserAutomationPlugin.d.ts +0 -14
- package/dist/plugins/tools/browser/browserAutomationPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/browser/browserAutomationPlugin.js +0 -26
- package/dist/plugins/tools/browser/browserAutomationPlugin.js.map +0 -1
- package/dist/plugins/tools/checks/localRepoChecksPlugin.d.ts +0 -3
- package/dist/plugins/tools/checks/localRepoChecksPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/checks/localRepoChecksPlugin.js +0 -14
- package/dist/plugins/tools/checks/localRepoChecksPlugin.js.map +0 -1
- package/dist/plugins/tools/cloud/cloudPlugin.d.ts +0 -3
- package/dist/plugins/tools/cloud/cloudPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/cloud/cloudPlugin.js +0 -14
- package/dist/plugins/tools/cloud/cloudPlugin.js.map +0 -1
- package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.d.ts +0 -3
- package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.js +0 -14
- package/dist/plugins/tools/codeAnalysis/codeAnalysisPlugin.js.map +0 -1
- package/dist/plugins/tools/codeQuality/codeQualityPlugin.d.ts +0 -3
- package/dist/plugins/tools/codeQuality/codeQualityPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/codeQuality/codeQualityPlugin.js +0 -14
- package/dist/plugins/tools/codeQuality/codeQualityPlugin.js.map +0 -1
- package/dist/plugins/tools/dependency/dependencyPlugin.d.ts +0 -3
- package/dist/plugins/tools/dependency/dependencyPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/dependency/dependencyPlugin.js +0 -12
- package/dist/plugins/tools/dependency/dependencyPlugin.js.map +0 -1
- package/dist/plugins/tools/development/devPlugin.d.ts +0 -3
- package/dist/plugins/tools/development/devPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/development/devPlugin.js +0 -14
- package/dist/plugins/tools/development/devPlugin.js.map +0 -1
- package/dist/plugins/tools/edit/editPlugin.d.ts +0 -9
- package/dist/plugins/tools/edit/editPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/edit/editPlugin.js +0 -15
- package/dist/plugins/tools/edit/editPlugin.js.map +0 -1
- package/dist/plugins/tools/email/emailPlugin.d.ts +0 -3
- package/dist/plugins/tools/email/emailPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/email/emailPlugin.js +0 -12
- package/dist/plugins/tools/email/emailPlugin.js.map +0 -1
- package/dist/plugins/tools/enhancedGit/enhancedGitPlugin.d.ts +0 -3
- package/dist/plugins/tools/enhancedGit/enhancedGitPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/enhancedGit/enhancedGitPlugin.js +0 -9
- package/dist/plugins/tools/enhancedGit/enhancedGitPlugin.js.map +0 -1
- package/dist/plugins/tools/filesystem/localFilesystemPlugin.d.ts +0 -3
- package/dist/plugins/tools/filesystem/localFilesystemPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/filesystem/localFilesystemPlugin.js +0 -14
- package/dist/plugins/tools/filesystem/localFilesystemPlugin.js.map +0 -1
- package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.d.ts +0 -3
- package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.js +0 -14
- package/dist/plugins/tools/frontendTesting/frontendTestingPlugin.js.map +0 -1
- package/dist/plugins/tools/glob/globPlugin.d.ts +0 -9
- package/dist/plugins/tools/glob/globPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/glob/globPlugin.js +0 -15
- package/dist/plugins/tools/glob/globPlugin.js.map +0 -1
- package/dist/plugins/tools/index.d.ts +0 -3
- package/dist/plugins/tools/index.d.ts.map +0 -1
- package/dist/plugins/tools/index.js +0 -3
- package/dist/plugins/tools/index.js.map +0 -1
- package/dist/plugins/tools/interaction/interactionPlugin.d.ts +0 -3
- package/dist/plugins/tools/interaction/interactionPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/interaction/interactionPlugin.js +0 -12
- package/dist/plugins/tools/interaction/interactionPlugin.js.map +0 -1
- package/dist/plugins/tools/learn/learnPlugin.d.ts +0 -3
- package/dist/plugins/tools/learn/learnPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/learn/learnPlugin.js +0 -14
- package/dist/plugins/tools/learn/learnPlugin.js.map +0 -1
- package/dist/plugins/tools/mcp/mcpPlugin.d.ts +0 -3
- package/dist/plugins/tools/mcp/mcpPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/mcp/mcpPlugin.js +0 -9
- package/dist/plugins/tools/mcp/mcpPlugin.js.map +0 -1
- package/dist/plugins/tools/nodeDefaults.d.ts +0 -2
- package/dist/plugins/tools/nodeDefaults.d.ts.map +0 -1
- package/dist/plugins/tools/nodeDefaults.js +0 -65
- package/dist/plugins/tools/nodeDefaults.js.map +0 -1
- package/dist/plugins/tools/notebook/notebookPlugin.d.ts +0 -9
- package/dist/plugins/tools/notebook/notebookPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/notebook/notebookPlugin.js +0 -15
- package/dist/plugins/tools/notebook/notebookPlugin.js.map +0 -1
- package/dist/plugins/tools/planning/planningPlugin.d.ts +0 -9
- package/dist/plugins/tools/planning/planningPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/planning/planningPlugin.js +0 -15
- package/dist/plugins/tools/planning/planningPlugin.js.map +0 -1
- package/dist/plugins/tools/refactoring/refactoringPlugin.d.ts +0 -3
- package/dist/plugins/tools/refactoring/refactoringPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/refactoring/refactoringPlugin.js +0 -12
- package/dist/plugins/tools/refactoring/refactoringPlugin.js.map +0 -1
- package/dist/plugins/tools/registry.d.ts +0 -22
- package/dist/plugins/tools/registry.d.ts.map +0 -1
- package/dist/plugins/tools/registry.js +0 -58
- package/dist/plugins/tools/registry.js.map +0 -1
- package/dist/plugins/tools/search/localSearchPlugin.d.ts +0 -3
- package/dist/plugins/tools/search/localSearchPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/search/localSearchPlugin.js +0 -14
- package/dist/plugins/tools/search/localSearchPlugin.js.map +0 -1
- package/dist/plugins/tools/skills/skillPlugin.d.ts +0 -3
- package/dist/plugins/tools/skills/skillPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/skills/skillPlugin.js +0 -9
- package/dist/plugins/tools/skills/skillPlugin.js.map +0 -1
- package/dist/plugins/tools/taskManagement/taskManagementPlugin.d.ts +0 -3
- package/dist/plugins/tools/taskManagement/taskManagementPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/taskManagement/taskManagementPlugin.js +0 -12
- package/dist/plugins/tools/taskManagement/taskManagementPlugin.js.map +0 -1
- package/dist/plugins/tools/testing/testingPlugin.d.ts +0 -3
- package/dist/plugins/tools/testing/testingPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/testing/testingPlugin.js +0 -12
- package/dist/plugins/tools/testing/testingPlugin.js.map +0 -1
- package/dist/plugins/tools/validation/validationPlugin.d.ts +0 -3
- package/dist/plugins/tools/validation/validationPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/validation/validationPlugin.js +0 -14
- package/dist/plugins/tools/validation/validationPlugin.js.map +0 -1
- package/dist/plugins/tools/web/webPlugin.d.ts +0 -3
- package/dist/plugins/tools/web/webPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/web/webPlugin.js +0 -12
- package/dist/plugins/tools/web/webPlugin.js.map +0 -1
- package/dist/providers/anthropicProvider.d.ts +0 -41
- package/dist/providers/anthropicProvider.d.ts.map +0 -1
- package/dist/providers/anthropicProvider.js +0 -446
- package/dist/providers/anthropicProvider.js.map +0 -1
- package/dist/providers/googleProvider.d.ts +0 -36
- package/dist/providers/googleProvider.d.ts.map +0 -1
- package/dist/providers/googleProvider.js +0 -312
- package/dist/providers/googleProvider.js.map +0 -1
- package/dist/providers/openaiChatCompletionsProvider.d.ts +0 -43
- package/dist/providers/openaiChatCompletionsProvider.d.ts.map +0 -1
- package/dist/providers/openaiChatCompletionsProvider.js +0 -516
- package/dist/providers/openaiChatCompletionsProvider.js.map +0 -1
- package/dist/providers/openaiResponsesProvider.d.ts +0 -38
- package/dist/providers/openaiResponsesProvider.d.ts.map +0 -1
- package/dist/providers/openaiResponsesProvider.js +0 -364
- package/dist/providers/openaiResponsesProvider.js.map +0 -1
- package/dist/providers/providerFactory.d.ts +0 -18
- package/dist/providers/providerFactory.d.ts.map +0 -1
- package/dist/providers/providerFactory.js +0 -25
- package/dist/providers/providerFactory.js.map +0 -1
- package/dist/providers/resilientProvider.d.ts +0 -94
- package/dist/providers/resilientProvider.d.ts.map +0 -1
- package/dist/providers/resilientProvider.js +0 -370
- package/dist/providers/resilientProvider.js.map +0 -1
- package/dist/runtime/agentController.d.ts +0 -65
- package/dist/runtime/agentController.d.ts.map +0 -1
- package/dist/runtime/agentController.js +0 -353
- package/dist/runtime/agentController.js.map +0 -1
- package/dist/runtime/agentHost.d.ts +0 -61
- package/dist/runtime/agentHost.d.ts.map +0 -1
- package/dist/runtime/agentHost.js +0 -156
- package/dist/runtime/agentHost.js.map +0 -1
- package/dist/runtime/agentSession.d.ts +0 -40
- package/dist/runtime/agentSession.d.ts.map +0 -1
- package/dist/runtime/agentSession.js +0 -205
- package/dist/runtime/agentSession.js.map +0 -1
- package/dist/runtime/browser.d.ts +0 -7
- package/dist/runtime/browser.d.ts.map +0 -1
- package/dist/runtime/browser.js +0 -10
- package/dist/runtime/browser.js.map +0 -1
- package/dist/runtime/cloud.d.ts +0 -7
- package/dist/runtime/cloud.d.ts.map +0 -1
- package/dist/runtime/cloud.js +0 -10
- package/dist/runtime/cloud.js.map +0 -1
- package/dist/runtime/node.d.ts +0 -8
- package/dist/runtime/node.d.ts.map +0 -1
- package/dist/runtime/node.js +0 -11
- package/dist/runtime/node.js.map +0 -1
- package/dist/runtime/universal.d.ts +0 -21
- package/dist/runtime/universal.d.ts.map +0 -1
- package/dist/runtime/universal.js +0 -29
- package/dist/runtime/universal.js.map +0 -1
- package/dist/shell/autoExecutor.d.ts +0 -70
- package/dist/shell/autoExecutor.d.ts.map +0 -1
- package/dist/shell/autoExecutor.js +0 -288
- package/dist/shell/autoExecutor.js.map +0 -1
- package/dist/shell/composableMessage.d.ts +0 -183
- package/dist/shell/composableMessage.d.ts.map +0 -1
- package/dist/shell/composableMessage.js +0 -420
- package/dist/shell/composableMessage.js.map +0 -1
- package/dist/shell/fileChangeTracker.d.ts +0 -39
- package/dist/shell/fileChangeTracker.d.ts.map +0 -1
- package/dist/shell/fileChangeTracker.js +0 -64
- package/dist/shell/fileChangeTracker.js.map +0 -1
- package/dist/shell/interactiveShell.d.ts +0 -517
- package/dist/shell/interactiveShell.d.ts.map +0 -1
- package/dist/shell/interactiveShell.js +0 -6646
- package/dist/shell/interactiveShell.js.map +0 -1
- package/dist/shell/liveStatus.d.ts +0 -30
- package/dist/shell/liveStatus.d.ts.map +0 -1
- package/dist/shell/liveStatus.js +0 -102
- package/dist/shell/liveStatus.js.map +0 -1
- package/dist/shell/shellApp.d.ts +0 -19
- package/dist/shell/shellApp.d.ts.map +0 -1
- package/dist/shell/shellApp.js +0 -411
- package/dist/shell/shellApp.js.map +0 -1
- package/dist/shell/systemPrompt.d.ts +0 -3
- package/dist/shell/systemPrompt.d.ts.map +0 -1
- package/dist/shell/systemPrompt.js +0 -64
- package/dist/shell/systemPrompt.js.map +0 -1
- package/dist/shell/taskCompletionDetector.d.ts +0 -106
- package/dist/shell/taskCompletionDetector.d.ts.map +0 -1
- package/dist/shell/taskCompletionDetector.js +0 -402
- package/dist/shell/taskCompletionDetector.js.map +0 -1
- package/dist/shell/terminalInputAdapter.d.ts +0 -262
- package/dist/shell/terminalInputAdapter.d.ts.map +0 -1
- package/dist/shell/terminalInputAdapter.js +0 -346
- package/dist/shell/terminalInputAdapter.js.map +0 -1
- package/dist/shell/vimMode.d.ts +0 -66
- package/dist/shell/vimMode.d.ts.map +0 -1
- package/dist/shell/vimMode.js +0 -434
- package/dist/shell/vimMode.js.map +0 -1
- package/dist/skills/skillRepository.d.ts +0 -103
- package/dist/skills/skillRepository.d.ts.map +0 -1
- package/dist/skills/skillRepository.js +0 -237
- package/dist/skills/skillRepository.js.map +0 -1
- package/dist/skills/types.d.ts +0 -37
- package/dist/skills/types.d.ts.map +0 -1
- package/dist/skills/types.js +0 -2
- package/dist/skills/types.js.map +0 -1
- package/dist/subagents/agentConfig.d.ts +0 -27
- package/dist/subagents/agentConfig.d.ts.map +0 -1
- package/dist/subagents/agentConfig.js +0 -89
- package/dist/subagents/agentConfig.js.map +0 -1
- package/dist/subagents/agentRegistry.d.ts +0 -33
- package/dist/subagents/agentRegistry.d.ts.map +0 -1
- package/dist/subagents/agentRegistry.js +0 -162
- package/dist/subagents/agentRegistry.js.map +0 -1
- package/dist/subagents/parallelAgentManager.d.ts +0 -99
- package/dist/subagents/parallelAgentManager.d.ts.map +0 -1
- package/dist/subagents/parallelAgentManager.js +0 -248
- package/dist/subagents/parallelAgentManager.js.map +0 -1
- package/dist/subagents/taskRunner.d.ts +0 -34
- package/dist/subagents/taskRunner.d.ts.map +0 -1
- package/dist/subagents/taskRunner.js +0 -459
- package/dist/subagents/taskRunner.js.map +0 -1
- package/dist/tools/advancedTestGenerationTools.d.ts +0 -21
- package/dist/tools/advancedTestGenerationTools.d.ts.map +0 -1
- package/dist/tools/advancedTestGenerationTools.js +0 -301
- package/dist/tools/advancedTestGenerationTools.js.map +0 -1
- package/dist/tools/backgroundBashTools.d.ts +0 -21
- package/dist/tools/backgroundBashTools.d.ts.map +0 -1
- package/dist/tools/backgroundBashTools.js +0 -215
- package/dist/tools/backgroundBashTools.js.map +0 -1
- package/dist/tools/bashTools.d.ts +0 -8
- package/dist/tools/bashTools.d.ts.map +0 -1
- package/dist/tools/bashTools.js +0 -240
- package/dist/tools/bashTools.js.map +0 -1
- package/dist/tools/browserAutomationTools.d.ts +0 -23
- package/dist/tools/browserAutomationTools.d.ts.map +0 -1
- package/dist/tools/browserAutomationTools.js +0 -916
- package/dist/tools/browserAutomationTools.js.map +0 -1
- package/dist/tools/buildTools.d.ts +0 -9
- package/dist/tools/buildTools.d.ts.map +0 -1
- package/dist/tools/buildTools.js +0 -344
- package/dist/tools/buildTools.js.map +0 -1
- package/dist/tools/cloudTools.d.ts +0 -49
- package/dist/tools/cloudTools.d.ts.map +0 -1
- package/dist/tools/cloudTools.js +0 -1258
- package/dist/tools/cloudTools.js.map +0 -1
- package/dist/tools/code-quality-dashboard.d.ts +0 -57
- package/dist/tools/code-quality-dashboard.d.ts.map +0 -1
- package/dist/tools/code-quality-dashboard.js +0 -218
- package/dist/tools/code-quality-dashboard.js.map +0 -1
- package/dist/tools/codeAnalysisTools.d.ts +0 -74
- package/dist/tools/codeAnalysisTools.d.ts.map +0 -1
- package/dist/tools/codeAnalysisTools.js +0 -664
- package/dist/tools/codeAnalysisTools.js.map +0 -1
- package/dist/tools/codeGenerationTools.d.ts +0 -3
- package/dist/tools/codeGenerationTools.d.ts.map +0 -1
- package/dist/tools/codeGenerationTools.js +0 -439
- package/dist/tools/codeGenerationTools.js.map +0 -1
- package/dist/tools/codeQualityTools.d.ts +0 -3
- package/dist/tools/codeQualityTools.d.ts.map +0 -1
- package/dist/tools/codeQualityTools.js +0 -296
- package/dist/tools/codeQualityTools.js.map +0 -1
- package/dist/tools/dependencyTools.d.ts +0 -3
- package/dist/tools/dependencyTools.d.ts.map +0 -1
- package/dist/tools/dependencyTools.js +0 -283
- package/dist/tools/dependencyTools.js.map +0 -1
- package/dist/tools/devTools.d.ts +0 -10
- package/dist/tools/devTools.d.ts.map +0 -1
- package/dist/tools/devTools.js +0 -2125
- package/dist/tools/devTools.js.map +0 -1
- package/dist/tools/diffUtils.d.ts +0 -36
- package/dist/tools/diffUtils.d.ts.map +0 -1
- package/dist/tools/diffUtils.js +0 -528
- package/dist/tools/diffUtils.js.map +0 -1
- package/dist/tools/editTools.d.ts +0 -29
- package/dist/tools/editTools.d.ts.map +0 -1
- package/dist/tools/editTools.js +0 -419
- package/dist/tools/editTools.js.map +0 -1
- package/dist/tools/emailTools.d.ts +0 -21
- package/dist/tools/emailTools.d.ts.map +0 -1
- package/dist/tools/emailTools.js +0 -449
- package/dist/tools/emailTools.js.map +0 -1
- package/dist/tools/enhancedCodeIntelligenceTools.d.ts +0 -27
- package/dist/tools/enhancedCodeIntelligenceTools.d.ts.map +0 -1
- package/dist/tools/enhancedCodeIntelligenceTools.js +0 -418
- package/dist/tools/enhancedCodeIntelligenceTools.js.map +0 -1
- package/dist/tools/enhancedDevWorkflowTools.d.ts +0 -15
- package/dist/tools/enhancedDevWorkflowTools.d.ts.map +0 -1
- package/dist/tools/enhancedDevWorkflowTools.js +0 -303
- package/dist/tools/enhancedDevWorkflowTools.js.map +0 -1
- package/dist/tools/fileTools.d.ts +0 -3
- package/dist/tools/fileTools.d.ts.map +0 -1
- package/dist/tools/fileTools.js +0 -334
- package/dist/tools/fileTools.js.map +0 -1
- package/dist/tools/frontendTestingTools.d.ts +0 -35
- package/dist/tools/frontendTestingTools.d.ts.map +0 -1
- package/dist/tools/frontendTestingTools.js +0 -1254
- package/dist/tools/frontendTestingTools.js.map +0 -1
- package/dist/tools/globTools.d.ts +0 -15
- package/dist/tools/globTools.d.ts.map +0 -1
- package/dist/tools/globTools.js +0 -174
- package/dist/tools/globTools.js.map +0 -1
- package/dist/tools/grepTools.d.ts +0 -19
- package/dist/tools/grepTools.d.ts.map +0 -1
- package/dist/tools/grepTools.js +0 -358
- package/dist/tools/grepTools.js.map +0 -1
- package/dist/tools/interactionTools.d.ts +0 -13
- package/dist/tools/interactionTools.d.ts.map +0 -1
- package/dist/tools/interactionTools.js +0 -171
- package/dist/tools/interactionTools.js.map +0 -1
- package/dist/tools/learnTools.d.ts +0 -164
- package/dist/tools/learnTools.d.ts.map +0 -1
- package/dist/tools/learnTools.js +0 -2104
- package/dist/tools/learnTools.js.map +0 -1
- package/dist/tools/localExplore.d.ts +0 -225
- package/dist/tools/localExplore.d.ts.map +0 -1
- package/dist/tools/localExplore.js +0 -1365
- package/dist/tools/localExplore.js.map +0 -1
- package/dist/tools/notebookEditTools.d.ts +0 -15
- package/dist/tools/notebookEditTools.d.ts.map +0 -1
- package/dist/tools/notebookEditTools.js +0 -197
- package/dist/tools/notebookEditTools.js.map +0 -1
- package/dist/tools/planningTools.d.ts +0 -21
- package/dist/tools/planningTools.d.ts.map +0 -1
- package/dist/tools/planningTools.js +0 -185
- package/dist/tools/planningTools.js.map +0 -1
- package/dist/tools/refactoringTools.d.ts +0 -3
- package/dist/tools/refactoringTools.d.ts.map +0 -1
- package/dist/tools/refactoringTools.js +0 -294
- package/dist/tools/refactoringTools.js.map +0 -1
- package/dist/tools/repoChecksTools.d.ts +0 -3
- package/dist/tools/repoChecksTools.d.ts.map +0 -1
- package/dist/tools/repoChecksTools.js +0 -161
- package/dist/tools/repoChecksTools.js.map +0 -1
- package/dist/tools/searchTools.d.ts +0 -3
- package/dist/tools/searchTools.d.ts.map +0 -1
- package/dist/tools/searchTools.js +0 -241
- package/dist/tools/searchTools.js.map +0 -1
- package/dist/tools/skillTools.d.ts +0 -8
- package/dist/tools/skillTools.d.ts.map +0 -1
- package/dist/tools/skillTools.js +0 -178
- package/dist/tools/skillTools.js.map +0 -1
- package/dist/tools/softwareEngineeringTools.d.ts +0 -7
- package/dist/tools/softwareEngineeringTools.d.ts.map +0 -1
- package/dist/tools/softwareEngineeringTools.js +0 -338
- package/dist/tools/softwareEngineeringTools.js.map +0 -1
- package/dist/tools/taskManagementTools.d.ts +0 -10
- package/dist/tools/taskManagementTools.d.ts.map +0 -1
- package/dist/tools/taskManagementTools.js +0 -157
- package/dist/tools/taskManagementTools.js.map +0 -1
- package/dist/tools/testingTools.d.ts +0 -3
- package/dist/tools/testingTools.d.ts.map +0 -1
- package/dist/tools/testingTools.js +0 -233
- package/dist/tools/testingTools.js.map +0 -1
- package/dist/tools/validationTools.d.ts +0 -7
- package/dist/tools/validationTools.d.ts.map +0 -1
- package/dist/tools/validationTools.js +0 -344
- package/dist/tools/validationTools.js.map +0 -1
- package/dist/tools/webTools.d.ts +0 -3
- package/dist/tools/webTools.d.ts.map +0 -1
- package/dist/tools/webTools.js +0 -502
- package/dist/tools/webTools.js.map +0 -1
- package/dist/ui/DisplayEventQueue.d.ts +0 -99
- package/dist/ui/DisplayEventQueue.d.ts.map +0 -1
- package/dist/ui/DisplayEventQueue.js +0 -167
- package/dist/ui/DisplayEventQueue.js.map +0 -1
- package/dist/ui/PromptController.d.ts +0 -103
- package/dist/ui/PromptController.d.ts.map +0 -1
- package/dist/ui/PromptController.js +0 -171
- package/dist/ui/PromptController.js.map +0 -1
- package/dist/ui/SequentialRenderer.d.ts +0 -69
- package/dist/ui/SequentialRenderer.d.ts.map +0 -1
- package/dist/ui/SequentialRenderer.js +0 -137
- package/dist/ui/SequentialRenderer.js.map +0 -1
- package/dist/ui/ShellUIAdapter.d.ts +0 -207
- package/dist/ui/ShellUIAdapter.d.ts.map +0 -1
- package/dist/ui/ShellUIAdapter.js +0 -1163
- package/dist/ui/ShellUIAdapter.js.map +0 -1
- package/dist/ui/UnifiedUIController.d.ts +0 -82
- package/dist/ui/UnifiedUIController.d.ts.map +0 -1
- package/dist/ui/UnifiedUIController.js +0 -207
- package/dist/ui/UnifiedUIController.js.map +0 -1
- package/dist/ui/UnifiedUIRenderer.d.ts +0 -188
- package/dist/ui/UnifiedUIRenderer.d.ts.map +0 -1
- package/dist/ui/UnifiedUIRenderer.js +0 -579
- package/dist/ui/UnifiedUIRenderer.js.map +0 -1
- package/dist/ui/animation/AnimationScheduler.d.ts +0 -192
- package/dist/ui/animation/AnimationScheduler.d.ts.map +0 -1
- package/dist/ui/animation/AnimationScheduler.js +0 -432
- package/dist/ui/animation/AnimationScheduler.js.map +0 -1
- package/dist/ui/codeHighlighter.d.ts +0 -6
- package/dist/ui/codeHighlighter.d.ts.map +0 -1
- package/dist/ui/codeHighlighter.js +0 -855
- package/dist/ui/codeHighlighter.js.map +0 -1
- package/dist/ui/compactRenderer.d.ts +0 -139
- package/dist/ui/compactRenderer.d.ts.map +0 -1
- package/dist/ui/compactRenderer.js +0 -398
- package/dist/ui/compactRenderer.js.map +0 -1
- package/dist/ui/designSystem.d.ts +0 -26
- package/dist/ui/designSystem.d.ts.map +0 -1
- package/dist/ui/designSystem.js +0 -122
- package/dist/ui/designSystem.js.map +0 -1
- package/dist/ui/display.d.ts +0 -229
- package/dist/ui/display.d.ts.map +0 -1
- package/dist/ui/display.js +0 -756
- package/dist/ui/display.js.map +0 -1
- package/dist/ui/errorFormatter.d.ts +0 -54
- package/dist/ui/errorFormatter.d.ts.map +0 -1
- package/dist/ui/errorFormatter.js +0 -251
- package/dist/ui/errorFormatter.js.map +0 -1
- package/dist/ui/globalWriteLock.d.ts +0 -38
- package/dist/ui/globalWriteLock.d.ts.map +0 -1
- package/dist/ui/globalWriteLock.js +0 -54
- package/dist/ui/globalWriteLock.js.map +0 -1
- package/dist/ui/inPlaceUpdater.d.ts +0 -181
- package/dist/ui/inPlaceUpdater.d.ts.map +0 -1
- package/dist/ui/inPlaceUpdater.js +0 -515
- package/dist/ui/inPlaceUpdater.js.map +0 -1
- package/dist/ui/interrupts/InterruptManager.d.ts +0 -142
- package/dist/ui/interrupts/InterruptManager.d.ts.map +0 -1
- package/dist/ui/interrupts/InterruptManager.js +0 -439
- package/dist/ui/interrupts/InterruptManager.js.map +0 -1
- package/dist/ui/layout.d.ts +0 -17
- package/dist/ui/layout.d.ts.map +0 -1
- package/dist/ui/layout.js +0 -140
- package/dist/ui/layout.js.map +0 -1
- package/dist/ui/orchestration/StatusOrchestrator.d.ts +0 -156
- package/dist/ui/orchestration/StatusOrchestrator.d.ts.map +0 -1
- package/dist/ui/orchestration/StatusOrchestrator.js +0 -406
- package/dist/ui/orchestration/StatusOrchestrator.js.map +0 -1
- package/dist/ui/orchestration/UIUpdateCoordinator.d.ts +0 -77
- package/dist/ui/orchestration/UIUpdateCoordinator.d.ts.map +0 -1
- package/dist/ui/orchestration/UIUpdateCoordinator.js +0 -265
- package/dist/ui/orchestration/UIUpdateCoordinator.js.map +0 -1
- package/dist/ui/outputMode.d.ts +0 -22
- package/dist/ui/outputMode.d.ts.map +0 -1
- package/dist/ui/outputMode.js +0 -40
- package/dist/ui/outputMode.js.map +0 -1
- package/dist/ui/richText.d.ts +0 -6
- package/dist/ui/richText.d.ts.map +0 -1
- package/dist/ui/richText.js +0 -391
- package/dist/ui/richText.js.map +0 -1
- package/dist/ui/shortcutsHelp.d.ts +0 -39
- package/dist/ui/shortcutsHelp.d.ts.map +0 -1
- package/dist/ui/shortcutsHelp.js +0 -152
- package/dist/ui/shortcutsHelp.js.map +0 -1
- package/dist/ui/streamingFormatter.d.ts +0 -19
- package/dist/ui/streamingFormatter.d.ts.map +0 -1
- package/dist/ui/streamingFormatter.js +0 -65
- package/dist/ui/streamingFormatter.js.map +0 -1
- package/dist/ui/telemetry/ResponseTracker.d.ts +0 -22
- package/dist/ui/telemetry/ResponseTracker.d.ts.map +0 -1
- package/dist/ui/telemetry/ResponseTracker.js +0 -60
- package/dist/ui/telemetry/ResponseTracker.js.map +0 -1
- package/dist/ui/telemetry/UITelemetry.d.ts +0 -181
- package/dist/ui/telemetry/UITelemetry.d.ts.map +0 -1
- package/dist/ui/telemetry/UITelemetry.js +0 -446
- package/dist/ui/telemetry/UITelemetry.js.map +0 -1
- package/dist/ui/textHighlighter.d.ts +0 -83
- package/dist/ui/textHighlighter.d.ts.map +0 -1
- package/dist/ui/textHighlighter.js +0 -267
- package/dist/ui/textHighlighter.js.map +0 -1
- package/dist/ui/theme.d.ts +0 -208
- package/dist/ui/theme.d.ts.map +0 -1
- package/dist/ui/theme.js +0 -249
- package/dist/ui/theme.js.map +0 -1
- package/dist/ui/toolDisplay.d.ts +0 -195
- package/dist/ui/toolDisplay.d.ts.map +0 -1
- package/dist/ui/toolDisplay.js +0 -1526
- package/dist/ui/toolDisplay.js.map +0 -1
- package/dist/ui/unified/index.d.ts +0 -50
- package/dist/ui/unified/index.d.ts.map +0 -1
- package/dist/ui/unified/index.js +0 -77
- package/dist/ui/unified/index.js.map +0 -1
- package/dist/ui/unified/layout.d.ts +0 -12
- package/dist/ui/unified/layout.d.ts.map +0 -1
- package/dist/ui/unified/layout.js +0 -96
- package/dist/ui/unified/layout.js.map +0 -1
- package/dist/ui/writeLock.d.ts +0 -65
- package/dist/ui/writeLock.d.ts.map +0 -1
- package/dist/ui/writeLock.js +0 -114
- package/dist/ui/writeLock.js.map +0 -1
- package/dist/utils/asyncUtils.d.ts +0 -95
- package/dist/utils/asyncUtils.d.ts.map +0 -1
- package/dist/utils/asyncUtils.js +0 -286
- package/dist/utils/asyncUtils.js.map +0 -1
- package/dist/utils/errorUtils.d.ts +0 -16
- package/dist/utils/errorUtils.d.ts.map +0 -1
- package/dist/utils/errorUtils.js +0 -66
- package/dist/utils/errorUtils.js.map +0 -1
- package/dist/utils/frontmatter.d.ts +0 -10
- package/dist/utils/frontmatter.d.ts.map +0 -1
- package/dist/utils/frontmatter.js +0 -78
- package/dist/utils/frontmatter.js.map +0 -1
- package/dist/utils/planFormatter.d.ts +0 -34
- package/dist/utils/planFormatter.d.ts.map +0 -1
- package/dist/utils/planFormatter.js +0 -140
- package/dist/utils/planFormatter.js.map +0 -1
- package/dist/workspace.d.ts +0 -8
- package/dist/workspace.d.ts.map +0 -1
- package/dist/workspace.js +0 -107
- package/dist/workspace.js.map +0 -1
- package/dist/workspace.validator.d.ts +0 -49
- package/dist/workspace.validator.d.ts.map +0 -1
- package/dist/workspace.validator.js +0 -214
- package/dist/workspace.validator.js.map +0 -1
|
@@ -1,353 +0,0 @@
|
|
|
1
|
-
import { createNodeRuntime } from './node.js';
|
|
2
|
-
import { AGENT_CONTRACT_VERSION } from '../contracts/v1/agent.js';
|
|
3
|
-
class EventStream {
|
|
4
|
-
queue = [];
|
|
5
|
-
pending = null;
|
|
6
|
-
closed = false;
|
|
7
|
-
failure = null;
|
|
8
|
-
push(value) {
|
|
9
|
-
if (this.closed || this.failure) {
|
|
10
|
-
return;
|
|
11
|
-
}
|
|
12
|
-
if (this.pending) {
|
|
13
|
-
this.pending.resolve({ value, done: false });
|
|
14
|
-
this.pending = null;
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
this.queue.push(value);
|
|
18
|
-
}
|
|
19
|
-
close() {
|
|
20
|
-
if (this.closed || this.failure) {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
this.closed = true;
|
|
24
|
-
if (this.pending) {
|
|
25
|
-
this.pending.resolve({ value: undefined, done: true });
|
|
26
|
-
this.pending = null;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
fail(error) {
|
|
30
|
-
if (this.closed || this.failure) {
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
this.failure = error;
|
|
34
|
-
if (this.pending) {
|
|
35
|
-
this.pending.reject(error);
|
|
36
|
-
this.pending = null;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
next() {
|
|
40
|
-
if (this.queue.length) {
|
|
41
|
-
const value = this.queue.shift();
|
|
42
|
-
return Promise.resolve({ value, done: false });
|
|
43
|
-
}
|
|
44
|
-
if (this.failure) {
|
|
45
|
-
const error = this.failure;
|
|
46
|
-
this.failure = null;
|
|
47
|
-
return Promise.reject(error);
|
|
48
|
-
}
|
|
49
|
-
if (this.closed) {
|
|
50
|
-
return Promise.resolve({ value: undefined, done: true });
|
|
51
|
-
}
|
|
52
|
-
return new Promise((resolve, reject) => {
|
|
53
|
-
this.pending = { resolve, reject };
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
return() {
|
|
57
|
-
this.close();
|
|
58
|
-
return Promise.resolve({ value: undefined, done: true });
|
|
59
|
-
}
|
|
60
|
-
throw(error) {
|
|
61
|
-
const err = error instanceof Error ? error : new Error(String(error));
|
|
62
|
-
this.fail(err);
|
|
63
|
-
return Promise.reject(err);
|
|
64
|
-
}
|
|
65
|
-
[Symbol.asyncIterator]() {
|
|
66
|
-
return this;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
function mergeToolObservers(primary, secondary) {
|
|
70
|
-
if (!secondary) {
|
|
71
|
-
return primary;
|
|
72
|
-
}
|
|
73
|
-
return {
|
|
74
|
-
onToolStart(call) {
|
|
75
|
-
primary.onToolStart?.(call);
|
|
76
|
-
secondary.onToolStart?.(call);
|
|
77
|
-
},
|
|
78
|
-
onToolResult(call, output) {
|
|
79
|
-
primary.onToolResult?.(call, output);
|
|
80
|
-
secondary.onToolResult?.(call, output);
|
|
81
|
-
},
|
|
82
|
-
onToolProgress(call, progress) {
|
|
83
|
-
primary.onToolProgress?.(call, progress);
|
|
84
|
-
secondary.onToolProgress?.(call, progress);
|
|
85
|
-
},
|
|
86
|
-
onToolError(call, error) {
|
|
87
|
-
primary.onToolError?.(call, error);
|
|
88
|
-
secondary.onToolError?.(call, error);
|
|
89
|
-
},
|
|
90
|
-
onCacheHit(call) {
|
|
91
|
-
primary.onCacheHit?.(call);
|
|
92
|
-
secondary.onCacheHit?.(call);
|
|
93
|
-
},
|
|
94
|
-
onToolWarning(call, warning) {
|
|
95
|
-
primary.onToolWarning?.(call, warning);
|
|
96
|
-
secondary.onToolWarning?.(call, warning);
|
|
97
|
-
},
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
function createControllerToolObserver(ref) {
|
|
101
|
-
const emit = (event) => {
|
|
102
|
-
ref.current?.push(event);
|
|
103
|
-
};
|
|
104
|
-
const timestamp = () => Date.now();
|
|
105
|
-
return {
|
|
106
|
-
onToolStart(call) {
|
|
107
|
-
emit({
|
|
108
|
-
type: 'tool.start',
|
|
109
|
-
timestamp: timestamp(),
|
|
110
|
-
toolName: call.name,
|
|
111
|
-
toolCallId: call.id,
|
|
112
|
-
parameters: { ...call.arguments },
|
|
113
|
-
});
|
|
114
|
-
},
|
|
115
|
-
onToolResult(call, output) {
|
|
116
|
-
emit({
|
|
117
|
-
type: 'tool.complete',
|
|
118
|
-
timestamp: timestamp(),
|
|
119
|
-
toolName: call.name,
|
|
120
|
-
toolCallId: call.id,
|
|
121
|
-
result: output,
|
|
122
|
-
});
|
|
123
|
-
},
|
|
124
|
-
onToolError(call, error) {
|
|
125
|
-
emit({
|
|
126
|
-
type: 'tool.error',
|
|
127
|
-
timestamp: timestamp(),
|
|
128
|
-
toolName: call.name,
|
|
129
|
-
toolCallId: call.id,
|
|
130
|
-
error,
|
|
131
|
-
});
|
|
132
|
-
},
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
export async function createAgentController(options, additionalObserver) {
|
|
136
|
-
const sinkRef = { current: null };
|
|
137
|
-
const observer = createControllerToolObserver(sinkRef);
|
|
138
|
-
const runtime = await createNodeRuntime({
|
|
139
|
-
profile: options.profile,
|
|
140
|
-
workspaceContext: options.workspaceContext,
|
|
141
|
-
workingDir: options.workingDir,
|
|
142
|
-
env: options.env,
|
|
143
|
-
toolObserver: mergeToolObservers(observer, additionalObserver),
|
|
144
|
-
additionalModules: options.modules,
|
|
145
|
-
adapterOptions: options.adapterOptions,
|
|
146
|
-
});
|
|
147
|
-
return new AgentController({ runtime, sinkRef, externalCallbacks: options.callbacks });
|
|
148
|
-
}
|
|
149
|
-
export class AgentController {
|
|
150
|
-
session;
|
|
151
|
-
sinkRef;
|
|
152
|
-
externalCallbacks;
|
|
153
|
-
activeSink = null;
|
|
154
|
-
agent = null;
|
|
155
|
-
cachedHistory = [];
|
|
156
|
-
selection;
|
|
157
|
-
constructor(dependencies) {
|
|
158
|
-
this.session = dependencies.runtime.session;
|
|
159
|
-
this.sinkRef = dependencies.sinkRef;
|
|
160
|
-
this.externalCallbacks = dependencies.externalCallbacks;
|
|
161
|
-
this.selection = this.buildInitialSelection();
|
|
162
|
-
}
|
|
163
|
-
buildInitialSelection() {
|
|
164
|
-
const config = this.session.profileConfig;
|
|
165
|
-
return {
|
|
166
|
-
provider: config.provider,
|
|
167
|
-
model: config.model,
|
|
168
|
-
temperature: config.temperature,
|
|
169
|
-
maxTokens: config.maxTokens,
|
|
170
|
-
systemPrompt: config.systemPrompt,
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
ensureAgent() {
|
|
174
|
-
if (this.agent) {
|
|
175
|
-
return this.agent;
|
|
176
|
-
}
|
|
177
|
-
const agent = this.session.createAgent(this.selection, this.createAgentCallbacks());
|
|
178
|
-
if (this.cachedHistory.length) {
|
|
179
|
-
agent.loadHistory(this.cachedHistory);
|
|
180
|
-
}
|
|
181
|
-
this.agent = agent;
|
|
182
|
-
return agent;
|
|
183
|
-
}
|
|
184
|
-
createAgentCallbacks() {
|
|
185
|
-
return {
|
|
186
|
-
onAssistantMessage: (content, metadata) => {
|
|
187
|
-
this.handleAssistantMessage(content, metadata);
|
|
188
|
-
this.externalCallbacks?.onAssistantMessage?.(content, metadata);
|
|
189
|
-
},
|
|
190
|
-
onStreamChunk: (chunk) => {
|
|
191
|
-
this.emitDelta(chunk, false);
|
|
192
|
-
this.externalCallbacks?.onStreamChunk?.(chunk);
|
|
193
|
-
},
|
|
194
|
-
onContextPruned: (removedCount, stats) => {
|
|
195
|
-
this.externalCallbacks?.onContextPruned?.(removedCount, stats);
|
|
196
|
-
},
|
|
197
|
-
onContextSquishing: (message) => {
|
|
198
|
-
this.externalCallbacks?.onContextSquishing?.(message);
|
|
199
|
-
},
|
|
200
|
-
onContextRecovery: (attempt, maxAttempts, message) => {
|
|
201
|
-
this.externalCallbacks?.onContextRecovery?.(attempt, maxAttempts, message);
|
|
202
|
-
},
|
|
203
|
-
onContinueAfterRecovery: () => {
|
|
204
|
-
this.externalCallbacks?.onContinueAfterRecovery?.();
|
|
205
|
-
},
|
|
206
|
-
onAutoContinue: (attempt, maxAttempts, message) => {
|
|
207
|
-
this.externalCallbacks?.onAutoContinue?.(attempt, maxAttempts, message);
|
|
208
|
-
},
|
|
209
|
-
onMultilinePaste: (summary, metadata) => {
|
|
210
|
-
this.externalCallbacks?.onMultilinePaste?.(summary, metadata);
|
|
211
|
-
},
|
|
212
|
-
};
|
|
213
|
-
}
|
|
214
|
-
emitDelta(content, isFinal) {
|
|
215
|
-
if (!content?.trim()) {
|
|
216
|
-
return;
|
|
217
|
-
}
|
|
218
|
-
this.activeSink?.push({
|
|
219
|
-
type: 'message.delta',
|
|
220
|
-
timestamp: Date.now(),
|
|
221
|
-
content,
|
|
222
|
-
isFinal,
|
|
223
|
-
});
|
|
224
|
-
}
|
|
225
|
-
emitError(message) {
|
|
226
|
-
this.activeSink?.push({
|
|
227
|
-
type: 'error',
|
|
228
|
-
timestamp: Date.now(),
|
|
229
|
-
error: message,
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
emitUsage(usage) {
|
|
233
|
-
if (!usage) {
|
|
234
|
-
return;
|
|
235
|
-
}
|
|
236
|
-
this.activeSink?.push({
|
|
237
|
-
type: 'usage',
|
|
238
|
-
timestamp: Date.now(),
|
|
239
|
-
inputTokens: usage.inputTokens,
|
|
240
|
-
outputTokens: usage.outputTokens,
|
|
241
|
-
totalTokens: usage.totalTokens,
|
|
242
|
-
});
|
|
243
|
-
}
|
|
244
|
-
handleAssistantMessage(content, metadata) {
|
|
245
|
-
if (!this.activeSink) {
|
|
246
|
-
return;
|
|
247
|
-
}
|
|
248
|
-
if (!metadata.isFinal) {
|
|
249
|
-
this.emitDelta(content, false);
|
|
250
|
-
return;
|
|
251
|
-
}
|
|
252
|
-
const elapsedMs = metadata.elapsedMs ?? 0;
|
|
253
|
-
this.activeSink.push({
|
|
254
|
-
type: 'message.complete',
|
|
255
|
-
timestamp: Date.now(),
|
|
256
|
-
content,
|
|
257
|
-
elapsedMs,
|
|
258
|
-
});
|
|
259
|
-
this.emitUsage(metadata.usage ?? null);
|
|
260
|
-
}
|
|
261
|
-
updateCachedHistory() {
|
|
262
|
-
if (this.agent) {
|
|
263
|
-
this.cachedHistory = this.agent.getHistory();
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
async *send(message) {
|
|
267
|
-
if (this.activeSink) {
|
|
268
|
-
throw new Error('Agent runtime is already processing a message. Please wait for the current run to finish.');
|
|
269
|
-
}
|
|
270
|
-
const agent = this.ensureAgent();
|
|
271
|
-
const sink = new EventStream();
|
|
272
|
-
this.activeSink = sink;
|
|
273
|
-
this.sinkRef.current = sink;
|
|
274
|
-
sink.push({ type: 'message.start', timestamp: Date.now() });
|
|
275
|
-
const run = agent
|
|
276
|
-
.send(message, true)
|
|
277
|
-
.then(() => {
|
|
278
|
-
this.updateCachedHistory();
|
|
279
|
-
sink.close();
|
|
280
|
-
})
|
|
281
|
-
.catch((error) => {
|
|
282
|
-
const messageText = error instanceof Error ? error.message : String(error);
|
|
283
|
-
this.emitError(messageText);
|
|
284
|
-
sink.fail(error instanceof Error ? error : new Error(messageText));
|
|
285
|
-
})
|
|
286
|
-
.finally(() => {
|
|
287
|
-
if (this.activeSink === sink) {
|
|
288
|
-
this.activeSink = null;
|
|
289
|
-
this.sinkRef.current = null;
|
|
290
|
-
}
|
|
291
|
-
});
|
|
292
|
-
try {
|
|
293
|
-
for await (const event of sink) {
|
|
294
|
-
yield event;
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
finally {
|
|
298
|
-
await run;
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
async switchModel(config) {
|
|
302
|
-
this.updateCachedHistory();
|
|
303
|
-
this.agent = null;
|
|
304
|
-
this.selection = {
|
|
305
|
-
provider: config.provider,
|
|
306
|
-
model: config.model,
|
|
307
|
-
temperature: config.temperature,
|
|
308
|
-
maxTokens: config.maxTokens,
|
|
309
|
-
systemPrompt: this.selection.systemPrompt,
|
|
310
|
-
};
|
|
311
|
-
this.session.updateToolContext(this.selection);
|
|
312
|
-
}
|
|
313
|
-
getCapabilities() {
|
|
314
|
-
const tools = this.session.toolRuntime.listProviderTools();
|
|
315
|
-
const manifestTools = tools.map((tool) => ({
|
|
316
|
-
name: tool.name,
|
|
317
|
-
description: tool.description,
|
|
318
|
-
category: 'general',
|
|
319
|
-
}));
|
|
320
|
-
return {
|
|
321
|
-
contractVersion: AGENT_CONTRACT_VERSION,
|
|
322
|
-
profile: this.session.profile,
|
|
323
|
-
model: this.toModelConfig(this.selection),
|
|
324
|
-
tools: manifestTools,
|
|
325
|
-
features: ['streaming', 'tool-calls'],
|
|
326
|
-
};
|
|
327
|
-
}
|
|
328
|
-
registerToolSuite(suiteId, suite) {
|
|
329
|
-
this.session.toolRuntime.registerSuite({ ...suite, id: suiteId });
|
|
330
|
-
}
|
|
331
|
-
unregisterToolSuite(suiteId) {
|
|
332
|
-
this.session.toolRuntime.unregisterSuite(suiteId);
|
|
333
|
-
}
|
|
334
|
-
getHistory() {
|
|
335
|
-
if (this.agent) {
|
|
336
|
-
return this.agent.getHistory();
|
|
337
|
-
}
|
|
338
|
-
return [...this.cachedHistory];
|
|
339
|
-
}
|
|
340
|
-
clearHistory() {
|
|
341
|
-
this.cachedHistory = [];
|
|
342
|
-
this.agent?.clearHistory();
|
|
343
|
-
}
|
|
344
|
-
toModelConfig(selection) {
|
|
345
|
-
return {
|
|
346
|
-
provider: selection.provider,
|
|
347
|
-
model: selection.model,
|
|
348
|
-
temperature: selection.temperature,
|
|
349
|
-
maxTokens: selection.maxTokens,
|
|
350
|
-
};
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
//# sourceMappingURL=agentController.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agentController.js","sourceRoot":"","sources":["../../src/runtime/agentController.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAA2B,MAAM,WAAW,CAAC;AAYvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAMlE,MAAM,WAAW;IACE,KAAK,GAAQ,EAAE,CAAC;IACzB,OAAO,GAA6F,IAAI,CAAC;IACzG,MAAM,GAAG,KAAK,CAAC;IACf,OAAO,GAAiB,IAAI,CAAC;IAErC,IAAI,CAAC,KAAQ;QACX,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YAChC,OAAO;QACT,CAAC;QACD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from './agentSession.js';
|
|
3
|
-
import { type ToolRuntimeObserver, type ToolSuite } from '../core/toolRuntime.js';
|
|
4
|
-
export interface CapabilityContext {
|
|
5
|
-
profile: ProfileName;
|
|
6
|
-
workspaceContext: string | null;
|
|
7
|
-
workingDir: string;
|
|
8
|
-
env: NodeJS.ProcessEnv;
|
|
9
|
-
}
|
|
10
|
-
export interface CapabilityContribution {
|
|
11
|
-
id: string;
|
|
12
|
-
description?: string;
|
|
13
|
-
toolSuite?: ToolSuite;
|
|
14
|
-
toolSuites?: ToolSuite[];
|
|
15
|
-
metadata?: Record<string, unknown>;
|
|
16
|
-
dispose?(): void | Promise<void>;
|
|
17
|
-
}
|
|
18
|
-
export interface CapabilityModule {
|
|
19
|
-
id: string;
|
|
20
|
-
description?: string;
|
|
21
|
-
create(context: CapabilityContext): CapabilityContribution | CapabilityContribution[] | null | undefined | Promise<CapabilityContribution | CapabilityContribution[] | null | undefined>;
|
|
22
|
-
}
|
|
23
|
-
export interface CapabilityManifestEntry {
|
|
24
|
-
id: string;
|
|
25
|
-
moduleId: string;
|
|
26
|
-
description?: string;
|
|
27
|
-
metadata?: Record<string, unknown>;
|
|
28
|
-
}
|
|
29
|
-
export interface AgentHostOptions {
|
|
30
|
-
profile: ProfileName;
|
|
31
|
-
workspaceContext: string | null;
|
|
32
|
-
workingDir: string;
|
|
33
|
-
modules?: CapabilityModule[];
|
|
34
|
-
toolObserver?: ToolRuntimeObserver;
|
|
35
|
-
env?: NodeJS.ProcessEnv;
|
|
36
|
-
}
|
|
37
|
-
export declare class AgentHost {
|
|
38
|
-
private readonly context;
|
|
39
|
-
private readonly toolObserver?;
|
|
40
|
-
private readonly modules;
|
|
41
|
-
private readonly contributions;
|
|
42
|
-
private readonly contributionOwners;
|
|
43
|
-
private readonly moduleContributions;
|
|
44
|
-
private session;
|
|
45
|
-
private disposed;
|
|
46
|
-
constructor(options: AgentHostOptions);
|
|
47
|
-
get profile(): ProfileName;
|
|
48
|
-
get workspaceContext(): string | null;
|
|
49
|
-
get workingDir(): string;
|
|
50
|
-
refreshWorkspaceContext(workspaceContext: string | null): void;
|
|
51
|
-
loadModules(modules: CapabilityModule[]): Promise<void>;
|
|
52
|
-
registerModule(module: CapabilityModule): Promise<void>;
|
|
53
|
-
getSession(): Promise<AgentSession>;
|
|
54
|
-
describeCapabilities(): CapabilityManifestEntry[];
|
|
55
|
-
dispose(): Promise<void>;
|
|
56
|
-
private collectToolSuites;
|
|
57
|
-
private validateContribution;
|
|
58
|
-
private assertMutable;
|
|
59
|
-
private removeModuleContributions;
|
|
60
|
-
}
|
|
61
|
-
//# sourceMappingURL=agentHost.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agentHost.d.ts","sourceRoot":"","sources":["../../src/runtime/agentHost.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,YAAY,EAA4B,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAElF,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,WAAW,CAAC;IACrB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC,UAAU,CAAC;CACxB;AAED,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,OAAO,CAAC,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,C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gB,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAKxD,WAAW,CAAC,OAAO,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAMvD,cAAc,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IAgBvD,UAAU,IAAI,OAAO,CAAC,YAAY,CAAC;IAgBzC,oBAAoB,IAAI,uBAAuB,EAAE;IAS3C,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAiB9B,OAAO,CAAC,iBAAiB;IAmBzB,OAAO,CAAC,oBAAoB;IAe5B,OAAO,CAAC,aAAa;IASrB,OAAO,CAAC,yBAAyB;CAclC"}
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import { AgentSession } from './agentSession.js';
|
|
2
|
-
export class AgentHost {
|
|
3
|
-
context;
|
|
4
|
-
toolObserver;
|
|
5
|
-
modules = new Map();
|
|
6
|
-
contributions = [];
|
|
7
|
-
contributionOwners = new Map();
|
|
8
|
-
moduleContributions = new Map();
|
|
9
|
-
session = null;
|
|
10
|
-
disposed = false;
|
|
11
|
-
constructor(options) {
|
|
12
|
-
this.context = {
|
|
13
|
-
profile: options.profile,
|
|
14
|
-
workspaceContext: options.workspaceContext,
|
|
15
|
-
workingDir: options.workingDir,
|
|
16
|
-
env: options.env ? { ...options.env } : { ...process.env },
|
|
17
|
-
};
|
|
18
|
-
this.toolObserver = options.toolObserver;
|
|
19
|
-
}
|
|
20
|
-
get profile() {
|
|
21
|
-
return this.context.profile;
|
|
22
|
-
}
|
|
23
|
-
get workspaceContext() {
|
|
24
|
-
return this.context.workspaceContext ?? null;
|
|
25
|
-
}
|
|
26
|
-
get workingDir() {
|
|
27
|
-
return this.context.workingDir;
|
|
28
|
-
}
|
|
29
|
-
refreshWorkspaceContext(workspaceContext) {
|
|
30
|
-
this.context.workspaceContext = workspaceContext;
|
|
31
|
-
this.session?.refreshWorkspaceContext(workspaceContext);
|
|
32
|
-
}
|
|
33
|
-
async loadModules(modules) {
|
|
34
|
-
for (const module of modules) {
|
|
35
|
-
await this.registerModule(module);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
async registerModule(module) {
|
|
39
|
-
this.assertMutable();
|
|
40
|
-
this.removeModuleContributions(module.id);
|
|
41
|
-
this.modules.set(module.id, module);
|
|
42
|
-
const result = await module.create(this.context);
|
|
43
|
-
const normalized = normalizeContributions(result);
|
|
44
|
-
for (const contribution of normalized) {
|
|
45
|
-
this.validateContribution(contribution, module.id);
|
|
46
|
-
this.contributions.push(contribution);
|
|
47
|
-
this.contributionOwners.set(contribution.id, module.id);
|
|
48
|
-
const contributionSet = this.moduleContributions.get(module.id) ?? new Set();
|
|
49
|
-
contributionSet.add(contribution.id);
|
|
50
|
-
this.moduleContributions.set(module.id, contributionSet);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
async getSession() {
|
|
54
|
-
if (this.session) {
|
|
55
|
-
return this.session;
|
|
56
|
-
}
|
|
57
|
-
const toolSuites = this.collectToolSuites();
|
|
58
|
-
this.session = new AgentSession({
|
|
59
|
-
profile: this.context.profile,
|
|
60
|
-
workspaceContext: this.context.workspaceContext,
|
|
61
|
-
toolSuites,
|
|
62
|
-
toolObserver: this.toolObserver,
|
|
63
|
-
});
|
|
64
|
-
return this.session;
|
|
65
|
-
}
|
|
66
|
-
describeCapabilities() {
|
|
67
|
-
return this.contributions.map((contribution) => ({
|
|
68
|
-
id: contribution.id,
|
|
69
|
-
moduleId: this.contributionOwners.get(contribution.id) ?? 'unknown',
|
|
70
|
-
description: contribution.description,
|
|
71
|
-
metadata: contribution.metadata ?? undefined,
|
|
72
|
-
}));
|
|
73
|
-
}
|
|
74
|
-
async dispose() {
|
|
75
|
-
if (this.disposed) {
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
this.disposed = true;
|
|
79
|
-
const tasks = this.contributions
|
|
80
|
-
.map((contribution) => contribution.dispose)
|
|
81
|
-
.filter((fn) => typeof fn === 'function')
|
|
82
|
-
.map(async (dispose) => {
|
|
83
|
-
try {
|
|
84
|
-
await dispose();
|
|
85
|
-
}
|
|
86
|
-
catch {
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
await Promise.all(tasks);
|
|
90
|
-
}
|
|
91
|
-
collectToolSuites() {
|
|
92
|
-
const suites = [];
|
|
93
|
-
const seen = new Set();
|
|
94
|
-
for (const contribution of this.contributions) {
|
|
95
|
-
const records = normalizeSuites(contribution);
|
|
96
|
-
for (const suite of records) {
|
|
97
|
-
if (seen.has(suite.id)) {
|
|
98
|
-
throw new Error(`Duplicate tool suite id "${suite.id}" detected while composing capabilities. ` +
|
|
99
|
-
'Ensure every capability module emits unique suite identifiers.');
|
|
100
|
-
}
|
|
101
|
-
suites.push(suite);
|
|
102
|
-
seen.add(suite.id);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
return suites;
|
|
106
|
-
}
|
|
107
|
-
validateContribution(contribution, moduleId) {
|
|
108
|
-
if (!contribution?.id?.trim()) {
|
|
109
|
-
throw new Error(`Capability module "${moduleId}" emitted a contribution without an id.`);
|
|
110
|
-
}
|
|
111
|
-
const suites = normalizeSuites(contribution);
|
|
112
|
-
for (const suite of suites) {
|
|
113
|
-
if (!suite?.id?.trim()) {
|
|
114
|
-
throw new Error(`Capability contribution "${contribution.id}" from module "${moduleId}" ` +
|
|
115
|
-
'emitted a tool suite without an id.');
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
assertMutable() {
|
|
120
|
-
if (this.session) {
|
|
121
|
-
throw new Error('Cannot register an additional capability module after the runtime session has been created. ' +
|
|
122
|
-
'Instantiate AgentHost earlier in the boot sequence or create a new host instance.');
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
removeModuleContributions(moduleId) {
|
|
126
|
-
const ids = this.moduleContributions.get(moduleId);
|
|
127
|
-
if (!ids?.size) {
|
|
128
|
-
return;
|
|
129
|
-
}
|
|
130
|
-
this.moduleContributions.delete(moduleId);
|
|
131
|
-
for (const id of ids) {
|
|
132
|
-
const index = this.contributions.findIndex((entry) => entry.id === id);
|
|
133
|
-
if (index >= 0) {
|
|
134
|
-
this.contributions.splice(index, 1);
|
|
135
|
-
}
|
|
136
|
-
this.contributionOwners.delete(id);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
function normalizeContributions(value) {
|
|
141
|
-
if (!value) {
|
|
142
|
-
return [];
|
|
143
|
-
}
|
|
144
|
-
return Array.isArray(value) ? value : [value];
|
|
145
|
-
}
|
|
146
|
-
function normalizeSuites(contribution) {
|
|
147
|
-
const suites = [];
|
|
148
|
-
if (contribution.toolSuite) {
|
|
149
|
-
suites.push(contribution.toolSuite);
|
|
150
|
-
}
|
|
151
|
-
if (contribution.toolSuites?.length) {
|
|
152
|
-
suites.push(...contribution.toolSuites);
|
|
153
|
-
}
|
|
154
|
-
return suites;
|
|
155
|
-
}
|
|
156
|
-
//# sourceMappingURL=agentHost.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agentHost.js","sourceRoot":"","sources":["../../src/runtime/agentHost.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAA4B,MAAM,mBAAmB,CAAC;AA2C3E,MAAM,OAAO,SAAS;IACH,OAAO,CAAoB;IAC3B,YAAY,CAAuB;IACnC,OAAO,GAAG,IAAI,GAAG,EAA4B,CAAC;IAC9C,aAAa,GAA6B,EAAE,CAAC;IAC7C,kBAAkB,GAAG,IAAI,GAAG,EAAkB,CAAC;IAC/C,mBAAmB,GAAG,IAAI,GAAG,EAAuB,CAAC;IAC9D,OAAO,GAAwB,IAAI,CAAC;IACpC,QAAQ,GAAG,KAAK,CAAC;IAEzB,YAAY,OAAyB;QACnC,IAAI,CAAC,OAAO,GAAG;YACb,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,gBAAgB,EAAE,OAAO,CAAC,gBAAgB;YAC1C,UAAU,EAAE,OAAO,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CAAC,EAAE,CAAC,CAAC;QACrC,CAAC;IACH,CAAC;CACF;AAED,SAAS,sBAAsB,CAC7B,KAA2E;IAE3E,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAS,eAAe,CAAC,YAAoC;IAC3D,MAAM,MAAM,GAAgB,EAAE,CAAC;IAC/B,IAAI,YAAY,CAAC,SAAS,EAAE,CAAC;QAC3B,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;IACtC,CAAC;IACD,IAAI,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,CAAC;QACpC,MAAM,CAAC,IAAI,CAAC,GAAG,YAAY,CAAC,UAAU,CAAC,CAAC;IAC1C,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { type ProfileName, type ResolvedProfileConfig } from '../config.js';
|
|
2
|
-
import { type ToolExecutionContext, type ToolRuntime, type IToolRuntime, type ToolRuntimeObserver, type ToolSuite } from '../core/toolRuntime.js';
|
|
3
|
-
import type { ProviderId, ReasoningEffortLevel, TextVerbosityLevel } from '../core/types.js';
|
|
4
|
-
import { AgentRuntime, type AgentCallbacks } from '../core/agent.js';
|
|
5
|
-
import { ContextManager } from '../core/contextManager.js';
|
|
6
|
-
export interface AgentSessionOptions {
|
|
7
|
-
profile: ProfileName;
|
|
8
|
-
workspaceContext: string | null;
|
|
9
|
-
toolSuites?: ToolSuite[];
|
|
10
|
-
toolObserver?: ToolRuntimeObserver;
|
|
11
|
-
}
|
|
12
|
-
export interface ModelSelection {
|
|
13
|
-
provider: ProviderId;
|
|
14
|
-
model: string;
|
|
15
|
-
temperature?: number;
|
|
16
|
-
maxTokens?: number;
|
|
17
|
-
systemPrompt?: string;
|
|
18
|
-
reasoningEffort?: ReasoningEffortLevel;
|
|
19
|
-
textVerbosity?: TextVerbosityLevel;
|
|
20
|
-
/** Enable auto-continuation when model expresses intent but doesn't act */
|
|
21
|
-
autoContinue?: boolean;
|
|
22
|
-
}
|
|
23
|
-
export declare class AgentSession {
|
|
24
|
-
private readonly state;
|
|
25
|
-
constructor(options: AgentSessionOptions);
|
|
26
|
-
/**
|
|
27
|
-
* Creates a context manager with LLM-based summarization support
|
|
28
|
-
*/
|
|
29
|
-
private createContextManagerWithSummarization;
|
|
30
|
-
get profile(): ProfileName;
|
|
31
|
-
get profileConfig(): ResolvedProfileConfig;
|
|
32
|
-
get workspaceContext(): string | null;
|
|
33
|
-
get toolRuntime(): ToolRuntime;
|
|
34
|
-
get toolContext(): ToolExecutionContext;
|
|
35
|
-
createAgent(selection: ModelSelection, callbacks?: AgentCallbacks, toolRuntimeOverride?: IToolRuntime): AgentRuntime;
|
|
36
|
-
updateToolContext(selection: ModelSelection): void;
|
|
37
|
-
refreshWorkspaceContext(workspaceContext: string | null): ResolvedProfileConfig;
|
|
38
|
-
get contextManager(): ContextManager;
|
|
39
|
-
}
|
|
40
|
-
//# sourceMappingURL=agentSession.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agentSession.d.ts","sourceRoot":"","sources":["../../src/runtime/agentSession.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,WAAW,EAAE,KAAK,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAClG,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,SAAS,EACf,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,UAAU,EAAE,oBAAoB,EAAE,kBAAkB,EAAuB,MAAM,kBAAkB,CAAC;AAElH,OAAO,EAAE,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,k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