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,271 @@
|
|
|
1
|
+
import { randomUUID } from 'node:crypto';
|
|
2
|
+
import { mkdir, readFile, writeFile } from 'node:fs/promises';
|
|
3
|
+
import { homedir } from 'node:os';
|
|
4
|
+
import { join } from 'node:path';
|
|
5
|
+
import { createNodeRuntime } from '../runtime/node.js';
|
|
6
|
+
import { loadToolSettings } from '../core/preferences.js';
|
|
7
|
+
import { buildEnabledToolSet, evaluateToolPermissions } from '../capabilities/toolRegistry.js';
|
|
8
|
+
const SUBAGENT_DEFINITIONS = {
|
|
9
|
+
'general-purpose': {
|
|
10
|
+
id: 'general-purpose',
|
|
11
|
+
label: 'General Purpose',
|
|
12
|
+
summary: 'complete research, editing, and implementation tasks end-to-end',
|
|
13
|
+
instructions: [
|
|
14
|
+
'Own the entire task autonomously. Narrate your plan, gather context with filesystem/search tools, and make changes when necessary.',
|
|
15
|
+
'Always cite the evidence, commands, and files you touched. Include TODOs or risks that need human review.',
|
|
16
|
+
],
|
|
17
|
+
defaultModel: 'sonnet',
|
|
18
|
+
},
|
|
19
|
+
explore: {
|
|
20
|
+
id: 'explore',
|
|
21
|
+
label: 'Explore',
|
|
22
|
+
summary: 'map the codebase, answer architectural questions, and locate patterns quickly',
|
|
23
|
+
instructions: [
|
|
24
|
+
'Prioritize read/search/glob tools before editing. Call out every directory or file you investigated.',
|
|
25
|
+
'Return a crisp summary of what you learned plus direct file references so the parent agent can follow up.',
|
|
26
|
+
],
|
|
27
|
+
defaultModel: 'haiku',
|
|
28
|
+
},
|
|
29
|
+
plan: {
|
|
30
|
+
id: 'plan',
|
|
31
|
+
label: 'Plan',
|
|
32
|
+
summary: 'break down complex efforts into actionable steps and identify risks or dependencies',
|
|
33
|
+
instructions: [
|
|
34
|
+
'Produce a numbered plan with estimates, dependency notes, and explicit testing checkpoints.',
|
|
35
|
+
'If the task mentions code changes, suggest which files/modules should be edited and why before any implementation occurs.',
|
|
36
|
+
],
|
|
37
|
+
defaultModel: 'sonnet',
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
const MODEL_ID_LOOKUP = {
|
|
41
|
+
sonnet: { provider: 'anthropic', model: 'claude-sonnet-4-5-20250929' },
|
|
42
|
+
opus: { provider: 'anthropic', model: 'claude-opus-4-20250514' },
|
|
43
|
+
haiku: { provider: 'anthropic', model: 'claude-haiku-4-5-20251001' },
|
|
44
|
+
};
|
|
45
|
+
const TASK_STORE_DIR = join(homedir(), '.erosolar', 'tasks');
|
|
46
|
+
export class TaskRunner {
|
|
47
|
+
context;
|
|
48
|
+
snapshots = new TaskSnapshotStore();
|
|
49
|
+
constructor(context) {
|
|
50
|
+
this.context = context;
|
|
51
|
+
}
|
|
52
|
+
async runTask(options) {
|
|
53
|
+
const definition = resolveSubAgentDefinition(options.subagentType);
|
|
54
|
+
const { allowedPluginIds } = this.resolveToolPermissions();
|
|
55
|
+
const adapterOptions = allowedPluginIds.size
|
|
56
|
+
? {
|
|
57
|
+
filter: (plugin) => allowedPluginIds.has(plugin.id),
|
|
58
|
+
}
|
|
59
|
+
: undefined;
|
|
60
|
+
const runtime = await createNodeRuntime({
|
|
61
|
+
profile: this.context.profile,
|
|
62
|
+
workspaceContext: this.context.workspaceContext,
|
|
63
|
+
workingDir: this.context.workingDir,
|
|
64
|
+
env: this.context.env,
|
|
65
|
+
adapterOptions,
|
|
66
|
+
});
|
|
67
|
+
try {
|
|
68
|
+
const session = runtime.session;
|
|
69
|
+
const selection = this.buildModelSelection(session.profileConfig, options.model ?? definition.defaultModel);
|
|
70
|
+
const systemPrompt = this.composeSystemPrompt(session.profileConfig.systemPrompt, definition, options.description);
|
|
71
|
+
let finalMetadata = null;
|
|
72
|
+
const agent = session.createAgent({
|
|
73
|
+
provider: selection.provider,
|
|
74
|
+
model: selection.model,
|
|
75
|
+
temperature: selection.temperature,
|
|
76
|
+
maxTokens: selection.maxTokens,
|
|
77
|
+
systemPrompt,
|
|
78
|
+
}, {
|
|
79
|
+
onAssistantMessage: (_content, metadata) => {
|
|
80
|
+
if (metadata.isFinal) {
|
|
81
|
+
finalMetadata = metadata;
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
const resumeSnapshot = options.resumeId ? await this.snapshots.load(options.resumeId) : null;
|
|
86
|
+
if (options.resumeId && !resumeSnapshot) {
|
|
87
|
+
throw new Error(`Resume id "${options.resumeId}" was not found. Call Task without resume to start a new agent.`);
|
|
88
|
+
}
|
|
89
|
+
if (resumeSnapshot) {
|
|
90
|
+
agent.loadHistory(resumeSnapshot.history);
|
|
91
|
+
}
|
|
92
|
+
const startedAt = Date.now();
|
|
93
|
+
const reply = await agent.send(options.prompt, false);
|
|
94
|
+
const durationMs = Date.now() - startedAt;
|
|
95
|
+
const history = agent.getHistory();
|
|
96
|
+
const resumeId = options.resumeId ?? this.snapshots.createId();
|
|
97
|
+
await this.snapshots.save({
|
|
98
|
+
id: resumeId,
|
|
99
|
+
profile: this.context.profile,
|
|
100
|
+
description: options.description,
|
|
101
|
+
subagentType: definition.id,
|
|
102
|
+
history,
|
|
103
|
+
createdAt: resumeSnapshot?.createdAt ?? new Date().toISOString(),
|
|
104
|
+
updatedAt: new Date().toISOString(),
|
|
105
|
+
});
|
|
106
|
+
const parsed = extractResponseSections(reply);
|
|
107
|
+
const usageLine = formatUsage(extractUsage(finalMetadata));
|
|
108
|
+
const durationLine = `Duration: ${formatDuration(durationMs)}${usageLine ? ` | ${usageLine}` : ''}`;
|
|
109
|
+
const lines = [
|
|
110
|
+
`Task "${options.description}" completed by ${definition.label} agent (${selection.model})`,
|
|
111
|
+
`${durationLine} | Resume ID: ${resumeId}`,
|
|
112
|
+
];
|
|
113
|
+
if (definition.summary) {
|
|
114
|
+
lines.push(`Agent focus: ${definition.summary}`);
|
|
115
|
+
}
|
|
116
|
+
if (parsed.thinking) {
|
|
117
|
+
lines.push('', 'Key reasoning:', parsed.thinking);
|
|
118
|
+
}
|
|
119
|
+
lines.push('', parsed.response || '(no response returned)');
|
|
120
|
+
return { output: lines.join('\n').trim() };
|
|
121
|
+
}
|
|
122
|
+
finally {
|
|
123
|
+
await runtime.host.dispose();
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
resolveToolPermissions() {
|
|
127
|
+
const settings = loadToolSettings();
|
|
128
|
+
const selection = buildEnabledToolSet(settings);
|
|
129
|
+
const summary = evaluateToolPermissions(selection);
|
|
130
|
+
return {
|
|
131
|
+
allowedPluginIds: summary.allowedPluginIds,
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
buildModelSelection(profile, preferred) {
|
|
135
|
+
if (preferred && MODEL_ID_LOOKUP[preferred]) {
|
|
136
|
+
const mapping = MODEL_ID_LOOKUP[preferred];
|
|
137
|
+
return {
|
|
138
|
+
provider: mapping.provider,
|
|
139
|
+
model: mapping.model,
|
|
140
|
+
temperature: profile.temperature,
|
|
141
|
+
maxTokens: profile.maxTokens,
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
return {
|
|
145
|
+
provider: profile.provider,
|
|
146
|
+
model: profile.model,
|
|
147
|
+
temperature: profile.temperature,
|
|
148
|
+
maxTokens: profile.maxTokens,
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
composeSystemPrompt(basePrompt, definition, description) {
|
|
152
|
+
const lines = [
|
|
153
|
+
basePrompt.trim(),
|
|
154
|
+
'',
|
|
155
|
+
'You are an autonomous sub-agent launched via the Task tool. Operate independently and return a single comprehensive report to the parent agent.',
|
|
156
|
+
`Task summary: ${description}`,
|
|
157
|
+
`Agent specialization: ${definition.summary}`,
|
|
158
|
+
'',
|
|
159
|
+
'Execution rules:',
|
|
160
|
+
...definition.instructions.map((line, index) => `${index + 1}. ${line}`),
|
|
161
|
+
'',
|
|
162
|
+
'When you finish:',
|
|
163
|
+
'- Provide a concise summary with actionable next steps.',
|
|
164
|
+
'- Mention any remaining risks, TODOs, or follow-ups.',
|
|
165
|
+
'- Include file paths, commands, or test names you touched so the operator can verify your work.',
|
|
166
|
+
];
|
|
167
|
+
return lines.join('\n').trim();
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
class TaskSnapshotStore {
|
|
171
|
+
async load(id) {
|
|
172
|
+
try {
|
|
173
|
+
const file = join(TASK_STORE_DIR, `${sanitizeId(id)}.json`);
|
|
174
|
+
const content = await readFile(file, 'utf8');
|
|
175
|
+
const parsed = JSON.parse(content);
|
|
176
|
+
if (!parsed || typeof parsed !== 'object') {
|
|
177
|
+
return null;
|
|
178
|
+
}
|
|
179
|
+
return parsed;
|
|
180
|
+
}
|
|
181
|
+
catch {
|
|
182
|
+
return null;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
async save(snapshot) {
|
|
186
|
+
await mkdir(TASK_STORE_DIR, { recursive: true });
|
|
187
|
+
const normalized = {
|
|
188
|
+
...snapshot,
|
|
189
|
+
history: snapshot.history ?? [],
|
|
190
|
+
createdAt: snapshot.createdAt,
|
|
191
|
+
updatedAt: snapshot.updatedAt,
|
|
192
|
+
};
|
|
193
|
+
const file = join(TASK_STORE_DIR, `${sanitizeId(snapshot.id)}.json`);
|
|
194
|
+
await writeFile(file, JSON.stringify(normalized, null, 2), 'utf8');
|
|
195
|
+
}
|
|
196
|
+
createId() {
|
|
197
|
+
return `task_${randomUUID()}`;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
function resolveSubAgentDefinition(name) {
|
|
201
|
+
const normalized = name ? name.trim().toLowerCase() : '';
|
|
202
|
+
const candidate = normalized ? SUBAGENT_DEFINITIONS[normalized] : undefined;
|
|
203
|
+
if (candidate) {
|
|
204
|
+
return candidate;
|
|
205
|
+
}
|
|
206
|
+
const fallback = SUBAGENT_DEFINITIONS['general-purpose'];
|
|
207
|
+
if (!fallback) {
|
|
208
|
+
throw new Error('General-purpose subagent definition is missing.');
|
|
209
|
+
}
|
|
210
|
+
return fallback;
|
|
211
|
+
}
|
|
212
|
+
function sanitizeId(value) {
|
|
213
|
+
return value.replace(/[^a-zA-Z0-9_-]/g, '').slice(0, 64) || 'task';
|
|
214
|
+
}
|
|
215
|
+
function extractResponseSections(content) {
|
|
216
|
+
if (!content) {
|
|
217
|
+
return { thinking: null, response: '' };
|
|
218
|
+
}
|
|
219
|
+
const thinkingMatch = /<thinking>([\s\S]*?)<\/thinking>/i.exec(content);
|
|
220
|
+
const responseMatch = /<response>([\s\S]*?)<\/response>/i.exec(content);
|
|
221
|
+
const thinking = thinkingMatch?.[1]?.trim() ?? null;
|
|
222
|
+
if (responseMatch?.[1]) {
|
|
223
|
+
return {
|
|
224
|
+
thinking,
|
|
225
|
+
response: responseMatch[1].trim(),
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
if (thinkingMatch?.[0]) {
|
|
229
|
+
const remaining = content.replace(thinkingMatch[0], '').trim();
|
|
230
|
+
return {
|
|
231
|
+
thinking,
|
|
232
|
+
response: remaining,
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
return { thinking: null, response: content.trim() };
|
|
236
|
+
}
|
|
237
|
+
function formatDuration(ms) {
|
|
238
|
+
if (!Number.isFinite(ms)) {
|
|
239
|
+
return 'unknown duration';
|
|
240
|
+
}
|
|
241
|
+
if (ms < 1000) {
|
|
242
|
+
return `${ms}ms`;
|
|
243
|
+
}
|
|
244
|
+
const seconds = ms / 1000;
|
|
245
|
+
if (seconds < 60) {
|
|
246
|
+
return `${seconds.toFixed(1)}s`;
|
|
247
|
+
}
|
|
248
|
+
const minutes = Math.floor(seconds / 60);
|
|
249
|
+
const remaining = Math.round(seconds % 60);
|
|
250
|
+
return `${minutes}m ${remaining}s`;
|
|
251
|
+
}
|
|
252
|
+
function extractUsage(metadata) {
|
|
253
|
+
return metadata?.usage ?? null;
|
|
254
|
+
}
|
|
255
|
+
function formatUsage(usage) {
|
|
256
|
+
if (!usage) {
|
|
257
|
+
return '';
|
|
258
|
+
}
|
|
259
|
+
const parts = [];
|
|
260
|
+
if (typeof usage.inputTokens === 'number') {
|
|
261
|
+
parts.push(`in ${usage.inputTokens}`);
|
|
262
|
+
}
|
|
263
|
+
if (typeof usage.outputTokens === 'number') {
|
|
264
|
+
parts.push(`out ${usage.outputTokens}`);
|
|
265
|
+
}
|
|
266
|
+
if (!parts.length && typeof usage.totalTokens === 'number') {
|
|
267
|
+
parts.push(`total ${usage.totalTokens}`);
|
|
268
|
+
}
|
|
269
|
+
return parts.length ? `Tokens ${parts.join(' / ')}` : '';
|
|
270
|
+
}
|
|
271
|
+
//# sourceMappingURL=taskRunner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taskRunner.js","sourceRoot":"","sources":["../../src/subagents/taskRunner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EA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AK,CAAC,WAAW,EAAE,CAAC,CAAC;IACxC,CAAC;IACD,IAAI,OAAO,KAAK,CAAC,YAAY,KAAK,QAAQ,EAAE,CAAC;QAC3C,KAAK,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,YAAY,EAAE,CAAC,CAAC;IAC1C,CAAC;IACD,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,OAAO,KAAK,CAAC,WAAW,KAAK,QAAQ,EAAE,CAAC;QAC3D,KAAK,CAAC,IAAI,CAAC,SAAS,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC;IAC3C,CAAC;IACD,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AAC3D,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Advanced Test Generation Tools
|
|
3
|
+
* Enhanced test generation with coverage analysis, mock generation, and test optimization
|
|
4
|
+
*/
|
|
5
|
+
import type { ToolDefinition } from '../core/toolRuntime.js';
|
|
6
|
+
export interface TestCoverageAnalysis {
|
|
7
|
+
file: string;
|
|
8
|
+
totalFunctions: number;
|
|
9
|
+
testedFunctions: number;
|
|
10
|
+
coveragePercentage: number;
|
|
11
|
+
missingTests: string[];
|
|
12
|
+
complexFunctions: string[];
|
|
13
|
+
}
|
|
14
|
+
export interface TestGenerationOptions {
|
|
15
|
+
framework: 'jest' | 'vitest' | 'mocha';
|
|
16
|
+
style: 'unit' | 'integration' | 'e2e';
|
|
17
|
+
includeMocks: boolean;
|
|
18
|
+
includeTypes: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare function createAdvancedTestGenerationTools(workingDir: string): ToolDefinition[];
|
|
21
|
+
//# sourceMappingURL=advancedTestGenerationTools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"advancedTestGenerationTools.d.ts","sourceRoot":"","sources":["../../src/tools/advancedTestGenerationTools.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAG7D,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACvC,KAAK,EAAE,MAAM,GAAG,aAAa,GAAG,KAAK,CAAC;IACtC,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,iCAAiC,CAAC,UAAU,EAAE,MAAM,GAAG,cAAc,EAAE,CAkKtF"}
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Advanced Test Generation Tools
|
|
3
|
+
* Enhanced test generation with coverage analysis, mock generation, and test optimization
|
|
4
|
+
*/
|
|
5
|
+
import { readFileSync, existsSync } from 'node:fs';
|
|
6
|
+
import { join, relative } from 'node:path';
|
|
7
|
+
import { performAdvancedAstAnalysis } from './codeAnalysisTools.js';
|
|
8
|
+
export function createAdvancedTestGenerationTools(workingDir) {
|
|
9
|
+
return [
|
|
10
|
+
{
|
|
11
|
+
name: 'analyze_test_coverage',
|
|
12
|
+
description: 'Analyze test coverage gaps and identify functions without tests.',
|
|
13
|
+
parameters: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
properties: {
|
|
16
|
+
path: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
description: 'File or directory path to analyze (default: current directory).',
|
|
19
|
+
},
|
|
20
|
+
framework: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
enum: ['jest', 'vitest', 'mocha'],
|
|
23
|
+
description: 'Test framework to analyze for (default: auto-detect).',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
additionalProperties: false,
|
|
27
|
+
},
|
|
28
|
+
handler: async (args) => {
|
|
29
|
+
const path = args['path'] ?? workingDir;
|
|
30
|
+
const framework = args['framework'];
|
|
31
|
+
return analyzeTestCoverage(path, framework);
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'generate_comprehensive_tests',
|
|
36
|
+
description: 'Generate comprehensive test suites with mocks, edge cases, and coverage.',
|
|
37
|
+
parameters: {
|
|
38
|
+
type: 'object',
|
|
39
|
+
properties: {
|
|
40
|
+
path: {
|
|
41
|
+
type: 'string',
|
|
42
|
+
description: 'File path to generate tests for.',
|
|
43
|
+
},
|
|
44
|
+
framework: {
|
|
45
|
+
type: 'string',
|
|
46
|
+
enum: ['jest', 'vitest', 'mocha'],
|
|
47
|
+
description: 'Test framework style (default: jest).',
|
|
48
|
+
},
|
|
49
|
+
style: {
|
|
50
|
+
type: 'string',
|
|
51
|
+
enum: ['unit', 'integration', 'e2e'],
|
|
52
|
+
description: 'Test style (default: unit).',
|
|
53
|
+
},
|
|
54
|
+
includeMocks: {
|
|
55
|
+
type: 'boolean',
|
|
56
|
+
description: 'Include mock generation (default: true).',
|
|
57
|
+
},
|
|
58
|
+
includeTypes: {
|
|
59
|
+
type: 'boolean',
|
|
60
|
+
description: 'Include TypeScript types (default: true).',
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
required: ['path'],
|
|
64
|
+
additionalProperties: false,
|
|
65
|
+
},
|
|
66
|
+
handler: async (args) => {
|
|
67
|
+
const filePath = resolveFilePath(workingDir, args['path']);
|
|
68
|
+
const framework = args['framework'] ?? 'jest';
|
|
69
|
+
const style = args['style'] ?? 'unit';
|
|
70
|
+
const includeMocks = args['includeMocks'] ?? true;
|
|
71
|
+
const includeTypes = args['includeTypes'] ?? true;
|
|
72
|
+
return generateComprehensiveTests(filePath, workingDir, {
|
|
73
|
+
framework,
|
|
74
|
+
style,
|
|
75
|
+
includeMocks,
|
|
76
|
+
includeTypes,
|
|
77
|
+
});
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: 'optimize_test_performance',
|
|
82
|
+
description: 'Analyze and optimize test performance by identifying slow tests and suggesting improvements.',
|
|
83
|
+
parameters: {
|
|
84
|
+
type: 'object',
|
|
85
|
+
properties: {
|
|
86
|
+
path: {
|
|
87
|
+
type: 'string',
|
|
88
|
+
description: 'Test file or directory to analyze.',
|
|
89
|
+
},
|
|
90
|
+
framework: {
|
|
91
|
+
type: 'string',
|
|
92
|
+
enum: ['jest', 'vitest', 'mocha'],
|
|
93
|
+
description: 'Test framework (default: auto-detect).',
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
additionalProperties: false,
|
|
97
|
+
},
|
|
98
|
+
handler: async (args) => {
|
|
99
|
+
const path = args['path'] ?? workingDir;
|
|
100
|
+
const framework = args['framework'];
|
|
101
|
+
return optimizeTestPerformance(path, framework);
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: 'generate_mock_data',
|
|
106
|
+
description: 'Generate realistic mock data for testing based on TypeScript interfaces.',
|
|
107
|
+
parameters: {
|
|
108
|
+
type: 'object',
|
|
109
|
+
properties: {
|
|
110
|
+
path: {
|
|
111
|
+
type: 'string',
|
|
112
|
+
description: 'File path containing interfaces to mock.',
|
|
113
|
+
},
|
|
114
|
+
interfaceName: {
|
|
115
|
+
type: 'string',
|
|
116
|
+
description: 'Specific interface name to mock (optional).',
|
|
117
|
+
},
|
|
118
|
+
count: {
|
|
119
|
+
type: 'number',
|
|
120
|
+
description: 'Number of mock instances to generate (default: 3).',
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
required: ['path'],
|
|
124
|
+
additionalProperties: false,
|
|
125
|
+
},
|
|
126
|
+
handler: async (args) => {
|
|
127
|
+
const filePath = resolveFilePath(workingDir, args['path']);
|
|
128
|
+
const interfaceName = args['interfaceName'];
|
|
129
|
+
const count = args['count'] ?? 3;
|
|
130
|
+
return generateMockData(filePath, workingDir, interfaceName, count);
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: 'migrate_test_framework',
|
|
135
|
+
description: 'Migrate tests between frameworks (e.g., Mocha to Jest, Jest to Vitest).',
|
|
136
|
+
parameters: {
|
|
137
|
+
type: 'object',
|
|
138
|
+
properties: {
|
|
139
|
+
path: {
|
|
140
|
+
type: 'string',
|
|
141
|
+
description: 'Test file or directory to migrate.',
|
|
142
|
+
},
|
|
143
|
+
from: {
|
|
144
|
+
type: 'string',
|
|
145
|
+
enum: ['jest', 'vitest', 'mocha'],
|
|
146
|
+
description: 'Source test framework.',
|
|
147
|
+
},
|
|
148
|
+
to: {
|
|
149
|
+
type: 'string',
|
|
150
|
+
enum: ['jest', 'vitest', 'mocha'],
|
|
151
|
+
description: 'Target test framework.',
|
|
152
|
+
},
|
|
153
|
+
preview: {
|
|
154
|
+
type: 'boolean',
|
|
155
|
+
description: 'Show preview without applying changes (default: true).',
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
required: ['path', 'from', 'to'],
|
|
159
|
+
additionalProperties: false,
|
|
160
|
+
},
|
|
161
|
+
handler: async (args) => {
|
|
162
|
+
const path = args['path'];
|
|
163
|
+
const from = args['from'];
|
|
164
|
+
const to = args['to'];
|
|
165
|
+
const preview = args['preview'] ?? true;
|
|
166
|
+
return migrateTestFramework(path, from, to, preview);
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
];
|
|
170
|
+
}
|
|
171
|
+
function resolveFilePath(workingDir, path) {
|
|
172
|
+
if (path.startsWith('/')) {
|
|
173
|
+
return path;
|
|
174
|
+
}
|
|
175
|
+
return join(workingDir, path);
|
|
176
|
+
}
|
|
177
|
+
function analyzeTestCoverage(_path, framework) {
|
|
178
|
+
const output = [];
|
|
179
|
+
output.push('# Test Coverage Analysis');
|
|
180
|
+
output.push('');
|
|
181
|
+
output.push('🔍 This analysis would:');
|
|
182
|
+
output.push('- Identify functions without tests');
|
|
183
|
+
output.push('- Calculate coverage percentages');
|
|
184
|
+
output.push('- Highlight complex functions needing tests');
|
|
185
|
+
output.push('- Suggest test generation priorities');
|
|
186
|
+
output.push('');
|
|
187
|
+
if (framework) {
|
|
188
|
+
output.push(`📋 Framework: ${framework}`);
|
|
189
|
+
}
|
|
190
|
+
else {
|
|
191
|
+
output.push('📋 Framework: Auto-detected');
|
|
192
|
+
}
|
|
193
|
+
output.push('');
|
|
194
|
+
output.push('💡 Use `generate_comprehensive_tests` to fill coverage gaps.');
|
|
195
|
+
return output.join('\n');
|
|
196
|
+
}
|
|
197
|
+
function generateComprehensiveTests(filePath, workingDir, options) {
|
|
198
|
+
if (!existsSync(filePath)) {
|
|
199
|
+
return `Error: File not found: ${filePath}`;
|
|
200
|
+
}
|
|
201
|
+
const content = readFileSync(filePath, 'utf-8');
|
|
202
|
+
const ast = performAdvancedAstAnalysis(content, filePath);
|
|
203
|
+
const output = [];
|
|
204
|
+
output.push('# Comprehensive Test Generation');
|
|
205
|
+
output.push('');
|
|
206
|
+
output.push(`📁 Source: ${relative(workingDir, filePath)}`);
|
|
207
|
+
output.push(`⚙️ Framework: ${options.framework}`);
|
|
208
|
+
output.push(`🎯 Style: ${options.style}`);
|
|
209
|
+
output.push(`🤖 Mocks: ${options.includeMocks ? 'Yes' : 'No'}`);
|
|
210
|
+
output.push(`📝 Types: ${options.includeTypes ? 'Yes' : 'No'}`);
|
|
211
|
+
output.push('');
|
|
212
|
+
// Analyze functions for test generation
|
|
213
|
+
const functions = ast.symbols.filter(symbol => symbol.kind === 'function');
|
|
214
|
+
const classes = ast.symbols.filter(symbol => symbol.kind === 'class');
|
|
215
|
+
output.push('## Functions to Test');
|
|
216
|
+
if (functions.length === 0 && classes.length === 0) {
|
|
217
|
+
output.push('No functions or classes found to test.');
|
|
218
|
+
}
|
|
219
|
+
else {
|
|
220
|
+
functions.forEach(func => {
|
|
221
|
+
output.push(`- ${func.name} (${func.statementCount} statements)`);
|
|
222
|
+
});
|
|
223
|
+
classes.forEach(cls => {
|
|
224
|
+
output.push(`- ${cls.name} (class with ${cls.methods?.length || 0} methods)`);
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
output.push('');
|
|
228
|
+
output.push('## Test Features');
|
|
229
|
+
output.push('- Edge case coverage');
|
|
230
|
+
output.push('- Error handling tests');
|
|
231
|
+
output.push('- Input validation');
|
|
232
|
+
output.push('- Mock integration');
|
|
233
|
+
output.push('- Performance benchmarks');
|
|
234
|
+
return output.join('\n');
|
|
235
|
+
}
|
|
236
|
+
function optimizeTestPerformance(_path, framework) {
|
|
237
|
+
const output = [];
|
|
238
|
+
output.push('# Test Performance Optimization');
|
|
239
|
+
output.push('');
|
|
240
|
+
output.push('⚡ This optimization would:');
|
|
241
|
+
output.push('- Identify slow-running tests');
|
|
242
|
+
output.push('- Suggest async test improvements');
|
|
243
|
+
output.push('- Recommend mock optimization');
|
|
244
|
+
output.push('- Propose parallel test execution');
|
|
245
|
+
output.push('- Highlight memory usage issues');
|
|
246
|
+
output.push('');
|
|
247
|
+
if (framework) {
|
|
248
|
+
output.push(`📋 Framework: ${framework}`);
|
|
249
|
+
}
|
|
250
|
+
else {
|
|
251
|
+
output.push('📋 Framework: Auto-detected');
|
|
252
|
+
}
|
|
253
|
+
output.push('');
|
|
254
|
+
output.push('💡 Performance improvements can significantly reduce test execution time.');
|
|
255
|
+
return output.join('\n');
|
|
256
|
+
}
|
|
257
|
+
function generateMockData(filePath, workingDir, interfaceName, count = 3) {
|
|
258
|
+
if (!existsSync(filePath)) {
|
|
259
|
+
return `Error: File not found: ${filePath}`;
|
|
260
|
+
}
|
|
261
|
+
const output = [];
|
|
262
|
+
output.push('# Mock Data Generation');
|
|
263
|
+
output.push('');
|
|
264
|
+
output.push(`📁 Source: ${relative(workingDir, filePath)}`);
|
|
265
|
+
if (interfaceName) {
|
|
266
|
+
output.push(`🎯 Interface: ${interfaceName}`);
|
|
267
|
+
}
|
|
268
|
+
else {
|
|
269
|
+
output.push('🎯 Interface: All detected interfaces');
|
|
270
|
+
}
|
|
271
|
+
output.push(`📊 Count: ${count} instances`);
|
|
272
|
+
output.push('');
|
|
273
|
+
output.push('## Mock Data Features');
|
|
274
|
+
output.push('- Realistic test data');
|
|
275
|
+
output.push('- Type-safe mock objects');
|
|
276
|
+
output.push('- Edge case variations');
|
|
277
|
+
output.push('- Factory functions');
|
|
278
|
+
output.push('- Random data generation');
|
|
279
|
+
return output.join('\n');
|
|
280
|
+
}
|
|
281
|
+
function migrateTestFramework(path, from, to, preview) {
|
|
282
|
+
const output = [];
|
|
283
|
+
output.push('# Test Framework Migration');
|
|
284
|
+
output.push('');
|
|
285
|
+
output.push(`📁 Source: ${path}`);
|
|
286
|
+
output.push(`🔄 Migration: ${from} → ${to}`);
|
|
287
|
+
output.push(`👁️ Preview mode: ${preview ? 'ON' : 'OFF'}`);
|
|
288
|
+
output.push('');
|
|
289
|
+
output.push('## Migration Changes');
|
|
290
|
+
output.push('- Import/export statements');
|
|
291
|
+
output.push('- Test runner configuration');
|
|
292
|
+
output.push('- Assertion library syntax');
|
|
293
|
+
output.push('- Mocking framework syntax');
|
|
294
|
+
output.push('- Setup/teardown hooks');
|
|
295
|
+
if (preview) {
|
|
296
|
+
output.push('');
|
|
297
|
+
output.push('💡 Run with `preview: false` to apply migration changes.');
|
|
298
|
+
}
|
|
299
|
+
return output.join('\n');
|
|
300
|
+
}
|
|
301
|
+
//# sourceMappingURL=advancedTestGenerationTools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"advancedTestGenerationTools.js","sourceRoot":"","sources":["../../src/tools/advancedTestGenerationTools.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,QA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AC,IAAI,CAAC,4BAA4B,CAAC,CAAC;IAC1C,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAChB,MAAM,CAAC,IAAI,CAAC,cAAc,IAAI,EAAE,CAAC,CAAC;IAClC,MAAM,CAAC,IAAI,CAAC,iBAAiB,IAAI,MAAM,EAAE,EAAE,CAAC,CAAC;IAC7C,MAAM,CAAC,IAAI,CAAC,qBAAqB,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC;IAC3D,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEhB,MAAM,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;IACpC,MAAM,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC;IAC1C,MAAM,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;IAC3C,MAAM,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC;IAC1C,MAAM,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC;IAC1C,MAAM,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;IAEtC,IAAI,OAAO,EAAE,CAAC;QACZ,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAChB,MAAM,CAAC,IAAI,CAAC,0DAA0D,CAAC,CAAC;IAC1E,CAAC;IAED,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC3B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ToolDefinition } from '../core/toolRuntime.js';
|
|
2
|
+
/**
|
|
3
|
+
* Creates background bash management tools
|
|
4
|
+
*
|
|
5
|
+
* Tools:
|
|
6
|
+
* - Bash (with run_in_background): Start background processes
|
|
7
|
+
* - BashOutput: Retrieve output from background shells
|
|
8
|
+
* - KillShell: Terminate background shells
|
|
9
|
+
*
|
|
10
|
+
* @param _workingDir - The working directory for commands (reserved for future use)
|
|
11
|
+
* @returns Array of tool definitions
|
|
12
|
+
*/
|
|
13
|
+
export declare function createBackgroundBashTools(_workingDir: string): ToolDefinition[];
|
|
14
|
+
/**
|
|
15
|
+
* Start a background bash command
|
|
16
|
+
*
|
|
17
|
+
* This should be integrated into the main Bash tool with a run_in_background parameter.
|
|
18
|
+
* For now, it's exported as a helper function.
|
|
19
|
+
*/
|
|
20
|
+
export declare function startBackgroundShell(command: string, workingDir: string): string;
|
|
21
|
+
//# sourceMappingURL=backgroundBashTools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backgroundBashTools.d.ts","sourceRoot":"","sources":["../../src/tools/backgroundBashTools.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAuH7D;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CAAC,WAAW,EAAE,MAAM,GAAG,cAAc,EAAE,CAuG/E;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAEhF"}
|