erosolar-cli 1.7.414 → 1.7.416
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/agents/erosolar-code.rules.json +1 -1
- package/agents/general.rules.json +1 -1
- 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/bin/erosolar.d.ts +9 -0
- package/dist/bin/erosolar.d.ts.map +1 -0
- package/dist/bin/erosolar.js +93 -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 +168 -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/buildCapability.d.ts +24 -0
- package/dist/capabilities/buildCapability.d.ts.map +1 -0
- package/dist/capabilities/buildCapability.js +25 -0
- package/dist/capabilities/buildCapability.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 +26 -0
- package/dist/capabilities/index.d.ts.map +1 -0
- package/dist/capabilities/index.js +26 -0
- package/dist/capabilities/index.js.map +1 -0
- package/dist/capabilities/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 +22 -0
- package/dist/capabilities/learnCapability.d.ts.map +1 -0
- package/dist/capabilities/learnCapability.js +37 -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 +24 -0
- package/dist/capabilities/toolRegistry.d.ts.map +1 -0
- package/dist/capabilities/toolRegistry.js +150 -0
- package/dist/capabilities/toolRegistry.js.map +1 -0
- package/dist/capabilities/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 +153 -0
- package/dist/core/agent.d.ts.map +1 -0
- package/dist/core/agent.js +881 -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/aiErrorFixer.d.ts +70 -0
- package/dist/core/aiErrorFixer.d.ts.map +1 -0
- package/dist/core/aiErrorFixer.js +402 -0
- package/dist/core/aiErrorFixer.js.map +1 -0
- package/dist/core/alphaZeroEngine.d.ts +269 -0
- package/dist/core/alphaZeroEngine.d.ts.map +1 -0
- package/dist/core/alphaZeroEngine.js +523 -0
- package/dist/core/alphaZeroEngine.js.map +1 -0
- package/dist/core/alphaZeroModular.d.ts +186 -0
- package/dist/core/alphaZeroModular.d.ts.map +1 -0
- package/dist/core/alphaZeroModular.js +755 -0
- package/dist/core/alphaZeroModular.js.map +1 -0
- package/dist/core/alphaZeroOrchestrator.d.ts +140 -0
- package/dist/core/alphaZeroOrchestrator.d.ts.map +1 -0
- package/dist/core/alphaZeroOrchestrator.js +418 -0
- package/dist/core/alphaZeroOrchestrator.js.map +1 -0
- package/dist/core/bashCommandGuidance.d.ts +16 -0
- package/dist/core/bashCommandGuidance.d.ts.map +1 -0
- package/dist/core/bashCommandGuidance.js +40 -0
- package/dist/core/bashCommandGuidance.js.map +1 -0
- package/dist/core/checkpoint.d.ts +76 -0
- package/dist/core/checkpoint.d.ts.map +1 -0
- package/dist/core/checkpoint.js +278 -0
- package/dist/core/checkpoint.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 +265 -0
- package/dist/core/contextManager.d.ts.map +1 -0
- package/dist/core/contextManager.js +1060 -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/costTracker.d.ts +87 -0
- package/dist/core/costTracker.d.ts.map +1 -0
- package/dist/core/costTracker.js +285 -0
- package/dist/core/costTracker.js.map +1 -0
- package/dist/core/customCommands.d.ts +19 -0
- package/dist/core/customCommands.d.ts.map +1 -0
- package/dist/core/customCommands.js +84 -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/failureRecovery.d.ts +122 -0
- package/dist/core/failureRecovery.d.ts.map +1 -0
- package/dist/core/failureRecovery.js +477 -0
- package/dist/core/failureRecovery.js.map +1 -0
- package/dist/core/hooks.d.ts +113 -0
- package/dist/core/hooks.d.ts.map +1 -0
- package/dist/core/hooks.js +267 -0
- package/dist/core/hooks.js.map +1 -0
- package/dist/core/intelligentTestFlows.d.ts +126 -0
- package/dist/core/intelligentTestFlows.d.ts.map +1 -0
- package/dist/core/intelligentTestFlows.js +678 -0
- package/dist/core/intelligentTestFlows.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/learningPersistence.d.ts +145 -0
- package/dist/core/learningPersistence.d.ts.map +1 -0
- package/dist/core/learningPersistence.js +477 -0
- package/dist/core/learningPersistence.js.map +1 -0
- package/dist/core/memorySystem.d.ts +67 -0
- package/dist/core/memorySystem.d.ts.map +1 -0
- package/dist/core/memorySystem.js +334 -0
- package/dist/core/memorySystem.js.map +1 -0
- package/dist/core/metricsTracker.d.ts +157 -0
- package/dist/core/metricsTracker.d.ts.map +1 -0
- package/dist/core/metricsTracker.js +273 -0
- package/dist/core/metricsTracker.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/offsecAlphaZero.d.ts +56 -0
- package/dist/core/offsecAlphaZero.d.ts.map +1 -0
- package/dist/core/offsecAlphaZero.js +395 -0
- package/dist/core/offsecAlphaZero.js.map +1 -0
- package/dist/core/outputStyles.d.ts +48 -0
- package/dist/core/outputStyles.d.ts.map +1 -0
- package/dist/core/outputStyles.js +270 -0
- package/dist/core/outputStyles.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 +192 -0
- package/dist/core/performanceMonitor.js.map +1 -0
- package/dist/core/preferences.d.ts +67 -0
- package/dist/core/preferences.d.ts.map +1 -0
- package/dist/core/preferences.js +314 -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 +48 -0
- package/dist/core/secretStore.d.ts.map +1 -0
- package/dist/core/secretStore.js +367 -0
- package/dist/core/secretStore.js.map +1 -0
- package/dist/core/securityAssessment.d.ts +91 -0
- package/dist/core/securityAssessment.d.ts.map +1 -0
- package/dist/core/securityAssessment.js +580 -0
- package/dist/core/securityAssessment.js.map +1 -0
- package/dist/core/selfEvolution.d.ts +155 -0
- package/dist/core/selfEvolution.d.ts.map +1 -0
- package/dist/core/selfEvolution.js +1000 -0
- package/dist/core/selfEvolution.js.map +1 -0
- package/dist/core/selfImprovement.d.ts +141 -0
- package/dist/core/selfImprovement.d.ts.map +1 -0
- package/dist/core/selfImprovement.js +700 -0
- package/dist/core/selfImprovement.js.map +1 -0
- package/dist/core/sessionStore.d.ts +35 -0
- package/dist/core/sessionStore.d.ts.map +1 -0
- package/dist/core/sessionStore.js +189 -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 +42 -0
- package/dist/core/toolPreconditions.d.ts.map +1 -0
- package/dist/core/toolPreconditions.js +347 -0
- package/dist/core/toolPreconditions.js.map +1 -0
- package/dist/core/toolRuntime.d.ts +158 -0
- package/dist/core/toolRuntime.d.ts.map +1 -0
- package/dist/core/toolRuntime.js +415 -0
- package/dist/core/toolRuntime.js.map +1 -0
- package/dist/core/toolValidation.d.ts +116 -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/validationRunner.d.ts +106 -0
- package/dist/core/validationRunner.d.ts.map +1 -0
- package/dist/core/validationRunner.js +888 -0
- package/dist/core/validationRunner.js.map +1 -0
- package/dist/core/verification.d.ts +137 -0
- package/dist/core/verification.d.ts.map +1 -0
- package/dist/core/verification.js +323 -0
- package/dist/core/verification.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 +210 -0
- package/dist/headless/headlessApp.js.map +1 -0
- package/dist/intelligence/codeIntelligence.d.ts +118 -0
- package/dist/intelligence/codeIntelligence.d.ts.map +1 -0
- package/dist/intelligence/codeIntelligence.js +552 -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 +327 -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 +65 -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 +475 -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 +205 -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/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/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/interactiveShell.d.ts.map +1 -1
- package/dist/shell/interactiveShell.js +15 -4
- package/dist/shell/interactiveShell.js.map +1 -1
- package/dist/shell/liveStatus.d.ts +30 -0
- package/dist/shell/liveStatus.d.ts.map +1 -0
- package/dist/shell/liveStatus.js +102 -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 +408 -0
- package/dist/shell/shellApp.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 +81 -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 +620 -0
- package/dist/shell/terminalInput.d.ts.map +1 -0
- package/dist/shell/terminalInput.js +2647 -0
- package/dist/shell/terminalInput.js.map +1 -0
- package/dist/shell/terminalInputAdapter.d.ts +266 -0
- package/dist/shell/terminalInputAdapter.d.ts.map +1 -0
- package/dist/shell/terminalInputAdapter.js +406 -0
- package/dist/shell/terminalInputAdapter.js.map +1 -0
- package/dist/shell/vimMode.d.ts +66 -0
- package/dist/shell/vimMode.d.ts.map +1 -0
- package/dist/shell/vimMode.js +434 -0
- package/dist/shell/vimMode.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/agentConfig.d.ts +27 -0
- package/dist/subagents/agentConfig.d.ts.map +1 -0
- package/dist/subagents/agentConfig.js +89 -0
- package/dist/subagents/agentConfig.js.map +1 -0
- package/dist/subagents/agentRegistry.d.ts +33 -0
- package/dist/subagents/agentRegistry.d.ts.map +1 -0
- package/dist/subagents/agentRegistry.js +162 -0
- package/dist/subagents/agentRegistry.js.map +1 -0
- package/dist/subagents/parallelAgentManager.d.ts +99 -0
- package/dist/subagents/parallelAgentManager.d.ts.map +1 -0
- package/dist/subagents/parallelAgentManager.js +248 -0
- package/dist/subagents/parallelAgentManager.js.map +1 -0
- package/dist/subagents/taskRunner.d.ts +34 -0
- package/dist/subagents/taskRunner.d.ts.map +1 -0
- package/dist/subagents/taskRunner.js +459 -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 +240 -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/buildTools.d.ts +9 -0
- package/dist/tools/buildTools.d.ts.map +1 -0
- package/dist/tools/buildTools.js +344 -0
- package/dist/tools/buildTools.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 +2125 -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 +334 -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 +358 -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 +164 -0
- package/dist/tools/learnTools.d.ts.map +1 -0
- package/dist/tools/learnTools.js +2102 -0
- package/dist/tools/learnTools.js.map +1 -0
- package/dist/tools/localExplore.d.ts +225 -0
- package/dist/tools/localExplore.d.ts.map +1 -0
- package/dist/tools/localExplore.js +1291 -0
- package/dist/tools/localExplore.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 +21 -0
- package/dist/tools/planningTools.d.ts.map +1 -0
- package/dist/tools/planningTools.js +185 -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 +241 -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 +344 -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 +502 -0
- package/dist/tools/webTools.js.map +1 -0
- package/dist/ui/ShellUIAdapter.d.ts +194 -0
- package/dist/ui/ShellUIAdapter.d.ts.map +1 -0
- package/dist/ui/ShellUIAdapter.js +1069 -0
- package/dist/ui/ShellUIAdapter.js.map +1 -0
- package/dist/ui/UnifiedUIController.d.ts +82 -0
- package/dist/ui/UnifiedUIController.d.ts.map +1 -0
- package/dist/ui/UnifiedUIController.js +207 -0
- package/dist/ui/UnifiedUIController.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/compactRenderer.d.ts +139 -0
- package/dist/ui/compactRenderer.d.ts.map +1 -0
- package/dist/ui/compactRenderer.js +398 -0
- package/dist/ui/compactRenderer.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/display.d.ts +324 -0
- package/dist/ui/display.d.ts.map +1 -0
- package/dist/ui/display.js +1328 -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/globalWriteLock.d.ts +38 -0
- package/dist/ui/globalWriteLock.d.ts.map +1 -0
- package/dist/ui/globalWriteLock.js +54 -0
- package/dist/ui/globalWriteLock.js.map +1 -0
- package/dist/ui/inPlaceUpdater.d.ts +181 -0
- package/dist/ui/inPlaceUpdater.d.ts.map +1 -0
- package/dist/ui/inPlaceUpdater.js +515 -0
- package/dist/ui/inPlaceUpdater.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/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/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/orchestration/UIUpdateCoordinator.d.ts +77 -0
- package/dist/ui/orchestration/UIUpdateCoordinator.d.ts.map +1 -0
- package/dist/ui/orchestration/UIUpdateCoordinator.js +265 -0
- package/dist/ui/orchestration/UIUpdateCoordinator.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/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 +39 -0
- package/dist/ui/shortcutsHelp.d.ts.map +1 -0
- package/dist/ui/shortcutsHelp.js +152 -0
- package/dist/ui/shortcutsHelp.js.map +1 -0
- package/dist/ui/streamingFormatter.d.ts +21 -0
- package/dist/ui/streamingFormatter.d.ts.map +1 -0
- package/dist/ui/streamingFormatter.js +94 -0
- package/dist/ui/streamingFormatter.js.map +1 -0
- package/dist/ui/telemetry/ResponseTracker.d.ts +22 -0
- package/dist/ui/telemetry/ResponseTracker.d.ts.map +1 -0
- package/dist/ui/telemetry/ResponseTracker.js +60 -0
- package/dist/ui/telemetry/ResponseTracker.js.map +1 -0
- package/dist/ui/telemetry/UITelemetry.d.ts +181 -0
- package/dist/ui/telemetry/UITelemetry.d.ts.map +1 -0
- package/dist/ui/telemetry/UITelemetry.js +446 -0
- package/dist/ui/telemetry/UITelemetry.js.map +1 -0
- package/dist/ui/textHighlighter.d.ts +83 -0
- package/dist/ui/textHighlighter.d.ts.map +1 -0
- package/dist/ui/textHighlighter.js +267 -0
- package/dist/ui/textHighlighter.js.map +1 -0
- package/dist/ui/theme.d.ts +208 -0
- package/dist/ui/theme.d.ts.map +1 -0
- package/dist/ui/theme.js +249 -0
- package/dist/ui/theme.js.map +1 -0
- package/dist/ui/toolDisplay.d.ts +195 -0
- package/dist/ui/toolDisplay.d.ts.map +1 -0
- package/dist/ui/toolDisplay.js +1526 -0
- package/dist/ui/toolDisplay.js.map +1 -0
- package/dist/ui/unified/index.d.ts +50 -0
- package/dist/ui/unified/index.d.ts.map +1 -0
- package/dist/ui/unified/index.js +77 -0
- package/dist/ui/unified/index.js.map +1 -0
- package/dist/ui/unified/layout.d.ts +12 -0
- package/dist/ui/unified/layout.d.ts.map +1 -0
- package/dist/ui/unified/layout.js +96 -0
- package/dist/ui/unified/layout.js.map +1 -0
- package/dist/ui/writeLock.d.ts +65 -0
- package/dist/ui/writeLock.d.ts.map +1 -0
- package/dist/ui/writeLock.js +114 -0
- package/dist/ui/writeLock.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/frontmatter.d.ts +10 -0
- package/dist/utils/frontmatter.d.ts.map +1 -0
- package/dist/utils/frontmatter.js +78 -0
- package/dist/utils/frontmatter.js.map +1 -0
- package/dist/utils/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 +1 -1
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
export function buildInteractiveSystemPrompt(basePrompt, profileLabel, tools, workspaceDir) {
|
|
2
|
+
const name = profileLabel || 'Active Agent';
|
|
3
|
+
const toolSummary = formatToolSummary(tools, { maxDescriptionLength: 80 });
|
|
4
|
+
const workspace = workspaceDir || process.cwd();
|
|
5
|
+
const identityBlock = `
|
|
6
|
+
CRITICAL IDENTITY: You ARE ${name}, an autonomous coding agent running INSIDE the erosolar-cli tool.
|
|
7
|
+
You have FULL ACCESS to the workspace at: ${workspace}
|
|
8
|
+
You are NOT a chatbot - you are an agent with tools. When users ask you to modify code, UI, or features, you CAN and MUST do so using your tools.
|
|
9
|
+
The erosolar-cli IS your codebase. When users ask to change "the UI" or "this tool", they mean this workspace.
|
|
10
|
+
`;
|
|
11
|
+
const capabilityLines = [
|
|
12
|
+
'✓ Full file system read/write access',
|
|
13
|
+
'✓ Bash command execution (including git commands)',
|
|
14
|
+
'✓ Git operations: status, diff, add, commit, push, branch management',
|
|
15
|
+
'✓ Advanced code search and analysis',
|
|
16
|
+
'✓ Workspace snapshot is guaranteed and immutable',
|
|
17
|
+
'✓ Tool usage is narrated to the operator in real time',
|
|
18
|
+
];
|
|
19
|
+
const behaviorGuidelines = [
|
|
20
|
+
'AMBIGUOUS REQUESTS: If user input is vague, single-word, or could mean multiple things (e.g., "typing", "fix it", "help", "update"), ASK for clarification FIRST before doing any exploration. Do NOT guess. Example response: "I can help with that. Could you clarify what you mean by [X]? For example: [option A], [option B], or [option C]?"',
|
|
21
|
+
'CLAUDE CODE PACE: Move fast in tight read/edit/test loops. After each tool result, immediately decide the next action; avoid long monologues.',
|
|
22
|
+
'RAPID HYPOTHESIS TESTING: For bugs, list 2–3 likely root causes ordered by speed to check. Try the fastest, pivot quickly if evidence does not support it.',
|
|
23
|
+
'SOLUTION FORKING: For complex changes, note 2–3 viable approaches, pick the simplest that can ship now, and be ready to switch if blockers appear.',
|
|
24
|
+
'Keep responses CONCISE - avoid lengthy explanations, bullet lists, and markdown headers unless explicitly asked',
|
|
25
|
+
'Execute continuously until complete: analyze → plan → implement → report',
|
|
26
|
+
'Use README, package.json, and workspace context as evidence',
|
|
27
|
+
'Read before editing; re-read after to confirm',
|
|
28
|
+
'VALIDATION: Do NOT run type-check, build, test, health-check, lint, or quality-gate after each tool. Complete ALL edits first, run ONE validation at the end only if needed',
|
|
29
|
+
'GIT EFFICIENCY: Do NOT run redundant git commands. Use single combined commands: "git add -A && git commit -m msg && git push" instead of separate status/add/status/commit/push calls',
|
|
30
|
+
'NPM PUBLISH: For npm releases, ensure the full flow (auth, version bump, build/tests, publish, git push) using npm_publish or project-specific steps—avoid rigid command chains',
|
|
31
|
+
'PYPI PUBLISH: When user says "push to pypi", "publish to pypi", "release python package", or similar, use the python_publish tool',
|
|
32
|
+
'CARGO PUBLISH: When user says "push to crates.io", "publish crate", "release rust package", or similar, use the cargo_publish tool',
|
|
33
|
+
'TOOL USAGE: ALWAYS use tools to complete tasks. Do NOT describe what you would do - actually DO it by calling tools. If you need to read a file, call read_file. If you need to edit, call Edit. Never output "I will..." or "Let me..." without immediately following with a tool call.',
|
|
34
|
+
'FILE EDITING: ALWAYS use the Edit tool for file modifications. The Edit tool performs exact string replacements - you must provide the exact text to replace (old_string) and the replacement text (new_string). To create new files, use Edit with an empty old_string. The edit will FAIL if old_string is not unique unless replace_all is true.',
|
|
35
|
+
'TYPESCRIPT ENGINEERING: Use strict TypeScript patterns - prefer interfaces over types for object shapes, use readonly for immutable data, leverage discriminated unions for complex state, and use utility types for better type safety.',
|
|
36
|
+
'ERROR HANDLING: Use structured error handling with Result types for functional error handling, implement recovery strategies for common failures, and provide actionable error messages with recovery suggestions.',
|
|
37
|
+
'PERFORMANCE OPTIMIZATION: Use parallel tool calls for independent operations, avoid sequential file reads when parallel execution is possible, and use targeted search patterns with head_limit to prevent context overflow.',
|
|
38
|
+
'AI FLOW DESIGN: Follow the complete AI flow: analyze (read/search) → plan (describe changes) → implement (edit/write) → validate (single final check). Do not skip phases or mix them.',
|
|
39
|
+
'TOOL VALIDATION: Use the tool validation system to detect anti-patterns before execution - check for Edit without Read, broad search patterns, redundant git operations, and incomplete workflows.',
|
|
40
|
+
];
|
|
41
|
+
const behaviorSection = behaviorGuidelines
|
|
42
|
+
.map((line, index) => `${index + 1}. ${line}`)
|
|
43
|
+
.join('\n');
|
|
44
|
+
return `${basePrompt}
|
|
45
|
+
${identityBlock}
|
|
46
|
+
You are ${name}, running in an interactive shell with full capabilities:
|
|
47
|
+
|
|
48
|
+
AVAILABLE TOOLS:
|
|
49
|
+
${toolSummary}
|
|
50
|
+
|
|
51
|
+
CAPABILITIES:
|
|
52
|
+
${capabilityLines.join('\n')}
|
|
53
|
+
|
|
54
|
+
BEHAVIOR GUIDELINES:
|
|
55
|
+
${behaviorSection}
|
|
56
|
+
|
|
57
|
+
Remember: answer truthfully, ground everything in the workspace, and let the logs show what you actually did. You CAN modify this codebase.`;
|
|
58
|
+
}
|
|
59
|
+
function formatToolSummary(tools, options = {}) {
|
|
60
|
+
if (!tools.length) {
|
|
61
|
+
return '- (no tools are registered in this session)';
|
|
62
|
+
}
|
|
63
|
+
return tools
|
|
64
|
+
.map((tool) => {
|
|
65
|
+
const description = tool.description ? sanitizeWhitespace(tool.description) : 'No description provided.';
|
|
66
|
+
const summary = truncate(description, options.maxDescriptionLength);
|
|
67
|
+
return `- ${tool.name}: ${summary}`;
|
|
68
|
+
})
|
|
69
|
+
.join('\n');
|
|
70
|
+
}
|
|
71
|
+
function sanitizeWhitespace(value) {
|
|
72
|
+
return value.replace(/\s+/g, ' ').trim();
|
|
73
|
+
}
|
|
74
|
+
function truncate(value, maxLength) {
|
|
75
|
+
if (!maxLength || value.length <= maxLength) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
const safeLength = Math.max(0, maxLength - 3);
|
|
79
|
+
return `${value.slice(0, safeLength).trimEnd()}...`;
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=systemPrompt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"systemPrompt.js","sourceRoot":"","sources":["../../src/shell/systemPrompt.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,4BAA4B,CAC1C,UAAkB,EAClB,YAAoB,EACpB,KAA+B,EAC/B,YAAqB;IAErB,MAAM,IAAI,GAAG,YAAY,IAAI,cAAc,CAAC;IAC5C,MAAM,WAAW,GAAG,iBAAiB,CAAC,KAAK,EAAE,EAAE,oBAAoB,EAAE,EAAE,EAAE,CAAC,CAAC;IAC3E,MAAM,SAAS,GAAG,YAAY,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;IAEhD,MAAM,aAAa,GAAG;6BACK,IAAI;4CACW,SAAS;;;CAGpD,CAAC;IAEA,MAAM,eAAe,GAAG;QACtB,sCAAsC;QACtC,mDAAmD;QACnD,sEAAsE;QACtE,qCAAqC;QACrC,kDAAkD;QAClD,uDAAuD;KACxD,CAAC;IAEF,MAAM,kBAAkB,GAAG;QACzB,oVAAoV;QACpV,+IAA+I;QAC/I,4JAA4J;QAC5J,oJAAoJ;QACpJ,iHAAiH;QACjH,0EAA0E;QAC1E,6DAA6D;QAC7D,+CAA+C;QAC/C,6KAA6K;QAC7K,wLAAwL;QACxL,iLAAiL;QACjL,mIAAmI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AAE,CAAC;QAC5C,OAAO,KAAK,CAAC;IACf,CAAC;IACD,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,CAAC;IAC9C,OAAO,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC;AACtD,CAAC"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Intelligent Task Completion Detector
|
|
3
|
+
*
|
|
4
|
+
* This module provides robust detection of whether a continuous task is truly complete,
|
|
5
|
+
* rather than just pattern-matching keywords like "done" in responses.
|
|
6
|
+
*
|
|
7
|
+
* Key features:
|
|
8
|
+
* - Multi-signal analysis (tool usage, response content, state changes)
|
|
9
|
+
* - AI verification round before final completion
|
|
10
|
+
* - Confidence scoring
|
|
11
|
+
* - Work-in-progress detection
|
|
12
|
+
*
|
|
13
|
+
* @license MIT
|
|
14
|
+
* @author Bo Shang
|
|
15
|
+
*/
|
|
16
|
+
export interface ToolActivity {
|
|
17
|
+
toolName: string;
|
|
18
|
+
timestamp: number;
|
|
19
|
+
success: boolean;
|
|
20
|
+
hasOutput: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface CompletionSignals {
|
|
23
|
+
hasExplicitCompletionStatement: boolean;
|
|
24
|
+
hasIncompleteWorkIndicators: boolean;
|
|
25
|
+
hasPendingActionIndicators: boolean;
|
|
26
|
+
hasErrorIndicators: boolean;
|
|
27
|
+
hasFollowUpQuestions: boolean;
|
|
28
|
+
toolsUsedInLastResponse: number;
|
|
29
|
+
lastToolWasReadOnly: boolean;
|
|
30
|
+
consecutiveResponsesWithoutTools: number;
|
|
31
|
+
hasRecentFileWrites: boolean;
|
|
32
|
+
hasRecentCommits: boolean;
|
|
33
|
+
todoItemsPending: number;
|
|
34
|
+
todoItemsCompleted: number;
|
|
35
|
+
mentionsFutureWork: boolean;
|
|
36
|
+
completionConfidence: number;
|
|
37
|
+
}
|
|
38
|
+
export interface CompletionAnalysis {
|
|
39
|
+
isComplete: boolean;
|
|
40
|
+
confidence: number;
|
|
41
|
+
signals: CompletionSignals;
|
|
42
|
+
reason: string;
|
|
43
|
+
shouldVerify: boolean;
|
|
44
|
+
verificationPrompt?: string;
|
|
45
|
+
}
|
|
46
|
+
export declare const WRITE_TOOLS: Set<string>;
|
|
47
|
+
export declare class TaskCompletionDetector {
|
|
48
|
+
private toolHistory;
|
|
49
|
+
private responseHistory;
|
|
50
|
+
private lastToolNames;
|
|
51
|
+
private consecutiveNoTools;
|
|
52
|
+
private todoStats;
|
|
53
|
+
constructor();
|
|
54
|
+
/**
|
|
55
|
+
* Reset the detector state for a new task
|
|
56
|
+
*/
|
|
57
|
+
reset(): void;
|
|
58
|
+
/**
|
|
59
|
+
* Record a tool call
|
|
60
|
+
*/
|
|
61
|
+
recordToolCall(toolName: string, success: boolean, hasOutput: boolean): void;
|
|
62
|
+
/**
|
|
63
|
+
* Record a response (call after each AI response)
|
|
64
|
+
*/
|
|
65
|
+
recordResponse(response: string, toolsUsed: string[]): void;
|
|
66
|
+
/**
|
|
67
|
+
* Update todo statistics
|
|
68
|
+
*/
|
|
69
|
+
updateTodoStats(pending: number, completed: number): void;
|
|
70
|
+
/**
|
|
71
|
+
* Analyze the current state and determine if the task is complete
|
|
72
|
+
*/
|
|
73
|
+
analyzeCompletion(currentResponse: string, toolsUsedThisRound: string[]): CompletionAnalysis;
|
|
74
|
+
/**
|
|
75
|
+
* Gather all completion signals from the current state
|
|
76
|
+
*/
|
|
77
|
+
private gatherSignals;
|
|
78
|
+
/**
|
|
79
|
+
* Calculate confidence score for task completion
|
|
80
|
+
*/
|
|
81
|
+
private calculateConfidence;
|
|
82
|
+
/**
|
|
83
|
+
* Generate a verification prompt to ask the AI if the task is truly complete
|
|
84
|
+
*/
|
|
85
|
+
private generateVerificationPrompt;
|
|
86
|
+
/**
|
|
87
|
+
* Generate a verification prompt for stagnation cases
|
|
88
|
+
*/
|
|
89
|
+
private generateStagnationVerificationPrompt;
|
|
90
|
+
/**
|
|
91
|
+
* Get a human-readable reason for low confidence
|
|
92
|
+
*/
|
|
93
|
+
private getLowConfidenceReason;
|
|
94
|
+
/**
|
|
95
|
+
* Check if a verification response confirms completion
|
|
96
|
+
*/
|
|
97
|
+
isVerificationConfirmed(verificationResponse: string): boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Check if a response contradicts itself by saying "complete" but also indicating incomplete work.
|
|
100
|
+
* This comprehensive list catches many ways AI might admit work isn't done while claiming completion.
|
|
101
|
+
*/
|
|
102
|
+
private responseContainsIncompleteIndicators;
|
|
103
|
+
}
|
|
104
|
+
export declare function getTaskCompletionDetector(): TaskCompletionDetector;
|
|
105
|
+
export declare function resetTaskCompletionDetector(): void;
|
|
106
|
+
//# sourceMappingURL=taskCompletionDetector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taskCompletionDetector.d.ts","sourceRoot":"","sources":["../../src/shell/taskCompletionDetector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;IAEhC,8BAA8B,EAAE,OAAO,CAAC;IACxC,2BAA2B,EAAE,OAAO,CAAC;IACrC,0BAA0B,EAAE,OAAO,CAAC;IACpC,kBAAkB,EAAE,OAAO,CAAC;IAC5B,oBAAoB,EAAE,OAAO,CAAC;IAG9B,uBAAuB,EAAE,MAAM,CAAC;IAChC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,gCAAgC,EAAE,MAAM,CAAC;IACzC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,gBAAgB,EAAE,OAAO,CAAC;IAG1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,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AAO;IAc9D;;;OAGG;IACH,OAAO,CAAC,oCAAoC;CA+D7C;AAOD,wBAAgB,yBAAyB,IAAI,sBAAsB,CAKlE;AAED,wBAAgB,2BAA2B,IAAI,IAAI,CAIlD"}
|
|
@@ -0,0 +1,402 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Intelligent Task Completion Detector
|
|
3
|
+
*
|
|
4
|
+
* This module provides robust detection of whether a continuous task is truly complete,
|
|
5
|
+
* rather than just pattern-matching keywords like "done" in responses.
|
|
6
|
+
*
|
|
7
|
+
* Key features:
|
|
8
|
+
* - Multi-signal analysis (tool usage, response content, state changes)
|
|
9
|
+
* - AI verification round before final completion
|
|
10
|
+
* - Confidence scoring
|
|
11
|
+
* - Work-in-progress detection
|
|
12
|
+
*
|
|
13
|
+
* @license MIT
|
|
14
|
+
* @author Bo Shang
|
|
15
|
+
*/
|
|
16
|
+
// Keywords that strongly indicate task completion
|
|
17
|
+
const STRONG_COMPLETION_PATTERNS = [
|
|
18
|
+
/^(all\s+)?tasks?\s+(are\s+)?(now\s+)?(complete|done|finished)/im,
|
|
19
|
+
/^(i('ve|'m|\s+have|\s+am)\s+)?(successfully\s+)?(completed?|finished|done)\s+(all|the|with|everything)/im,
|
|
20
|
+
/^everything\s+(is\s+)?(now\s+)?(complete|done|finished)/im,
|
|
21
|
+
/^the\s+requested?\s+(task|work|changes?)\s+(is|are|has been)\s+(complete|done|finished)/im,
|
|
22
|
+
/^i\s+have\s+(now\s+)?(successfully\s+)?(completed?|finished|done)\s+(all|the|everything)/im,
|
|
23
|
+
/no\s+(more|further)\s+(tasks?|work|actions?|changes?)\s+(are\s+)?(needed|required|necessary)/im,
|
|
24
|
+
];
|
|
25
|
+
// Keywords that indicate work is still in progress
|
|
26
|
+
const INCOMPLETE_WORK_PATTERNS = [
|
|
27
|
+
/\b(next|then|now\s+I('ll|\s+will)|let\s+me|I('ll|\s+will)|going\s+to|about\s+to)\b/i,
|
|
28
|
+
/\b(continue|continuing|proceed|proceeding|working\s+on)\b/i,
|
|
29
|
+
/\b(TODO|FIXME|WIP|in\s+progress)\b/i,
|
|
30
|
+
/\b(still\s+need|remaining|left\s+to\s+do|more\s+to\s+do)\b/i,
|
|
31
|
+
/\b(step\s+\d+|phase\s+\d+|iteration\s+\d+)\b/i,
|
|
32
|
+
/\b(haven'?t\s+(yet|finished)|not\s+yet\s+(done|complete|finished))\b/i,
|
|
33
|
+
];
|
|
34
|
+
// Keywords that indicate pending actions
|
|
35
|
+
const PENDING_ACTION_PATTERNS = [
|
|
36
|
+
/\b(need\s+to|should|must|have\s+to|requires?)\b/i,
|
|
37
|
+
/\b(waiting|pending|queued)\b/i,
|
|
38
|
+
/\b(before\s+I\s+can|after\s+that|once\s+that)\b/i,
|
|
39
|
+
/\b(running|executing|processing)\b/i,
|
|
40
|
+
];
|
|
41
|
+
// Keywords that indicate errors or issues
|
|
42
|
+
const ERROR_PATTERNS = [
|
|
43
|
+
/\b(error|failed|failure|exception|issue|problem|bug)\b/i,
|
|
44
|
+
/\b(can'?t|cannot|couldn'?t|unable\s+to)\b/i,
|
|
45
|
+
/\b(fix|fixing|resolve|resolving|debug|debugging)\b/i,
|
|
46
|
+
];
|
|
47
|
+
// Keywords that indicate follow-up questions
|
|
48
|
+
const FOLLOWUP_QUESTION_PATTERNS = [
|
|
49
|
+
/\b(would\s+you\s+like|do\s+you\s+want|shall\s+I|should\s+I)\b/i,
|
|
50
|
+
/\b(let\s+me\s+know|please\s+(confirm|tell|let))\b/i,
|
|
51
|
+
/\?$/m,
|
|
52
|
+
];
|
|
53
|
+
// Keywords that indicate future work
|
|
54
|
+
const FUTURE_WORK_PATTERNS = [
|
|
55
|
+
/\b(could\s+also|might\s+want\s+to|consider|recommend)\b/i,
|
|
56
|
+
/\b(future|later|eventually|when\s+you\s+have\s+time)\b/i,
|
|
57
|
+
/\b(improvement|enhancement|optimization)\b/i,
|
|
58
|
+
];
|
|
59
|
+
// Read-only tool names
|
|
60
|
+
const READ_ONLY_TOOLS = new Set([
|
|
61
|
+
'read_file',
|
|
62
|
+
'Read',
|
|
63
|
+
'list_dir',
|
|
64
|
+
'list_files',
|
|
65
|
+
'search_text',
|
|
66
|
+
'grep',
|
|
67
|
+
'Grep',
|
|
68
|
+
'glob',
|
|
69
|
+
'Glob',
|
|
70
|
+
'git_status',
|
|
71
|
+
'git_log',
|
|
72
|
+
'git_diff',
|
|
73
|
+
]);
|
|
74
|
+
// Write/action tool names - exported for use in completion detection
|
|
75
|
+
export const WRITE_TOOLS = new Set([
|
|
76
|
+
'edit_file',
|
|
77
|
+
'Edit',
|
|
78
|
+
'bash',
|
|
79
|
+
'Bash',
|
|
80
|
+
'execute_command',
|
|
81
|
+
'git_commit',
|
|
82
|
+
'git_push',
|
|
83
|
+
'NotebookEdit',
|
|
84
|
+
]);
|
|
85
|
+
export class TaskCompletionDetector {
|
|
86
|
+
toolHistory = [];
|
|
87
|
+
responseHistory = [];
|
|
88
|
+
lastToolNames = [];
|
|
89
|
+
consecutiveNoTools = 0;
|
|
90
|
+
todoStats = { pending: 0, completed: 0 };
|
|
91
|
+
constructor() {
|
|
92
|
+
this.reset();
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Reset the detector state for a new task
|
|
96
|
+
*/
|
|
97
|
+
reset() {
|
|
98
|
+
this.toolHistory = [];
|
|
99
|
+
this.responseHistory = [];
|
|
100
|
+
this.lastToolNames = [];
|
|
101
|
+
this.consecutiveNoTools = 0;
|
|
102
|
+
this.todoStats = { pending: 0, completed: 0 };
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Record a tool call
|
|
106
|
+
*/
|
|
107
|
+
recordToolCall(toolName, success, hasOutput) {
|
|
108
|
+
this.toolHistory.push({
|
|
109
|
+
toolName,
|
|
110
|
+
timestamp: Date.now(),
|
|
111
|
+
success,
|
|
112
|
+
hasOutput,
|
|
113
|
+
});
|
|
114
|
+
this.lastToolNames.push(toolName);
|
|
115
|
+
// Keep only recent history
|
|
116
|
+
if (this.toolHistory.length > 100) {
|
|
117
|
+
this.toolHistory = this.toolHistory.slice(-100);
|
|
118
|
+
}
|
|
119
|
+
if (this.lastToolNames.length > 20) {
|
|
120
|
+
this.lastToolNames = this.lastToolNames.slice(-20);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Record a response (call after each AI response)
|
|
125
|
+
*/
|
|
126
|
+
recordResponse(response, toolsUsed) {
|
|
127
|
+
this.responseHistory.push(response);
|
|
128
|
+
if (toolsUsed.length === 0) {
|
|
129
|
+
this.consecutiveNoTools++;
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
this.consecutiveNoTools = 0;
|
|
133
|
+
this.lastToolNames = toolsUsed;
|
|
134
|
+
}
|
|
135
|
+
// Keep only recent history
|
|
136
|
+
if (this.responseHistory.length > 20) {
|
|
137
|
+
this.responseHistory = this.responseHistory.slice(-20);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Update todo statistics
|
|
142
|
+
*/
|
|
143
|
+
updateTodoStats(pending, completed) {
|
|
144
|
+
this.todoStats = { pending, completed };
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Analyze the current state and determine if the task is complete
|
|
148
|
+
*/
|
|
149
|
+
analyzeCompletion(currentResponse, toolsUsedThisRound) {
|
|
150
|
+
this.recordResponse(currentResponse, toolsUsedThisRound);
|
|
151
|
+
const signals = this.gatherSignals(currentResponse, toolsUsedThisRound);
|
|
152
|
+
const confidence = this.calculateConfidence(signals);
|
|
153
|
+
signals.completionConfidence = confidence;
|
|
154
|
+
// Determine completion status
|
|
155
|
+
let isComplete = false;
|
|
156
|
+
let reason = '';
|
|
157
|
+
let shouldVerify = false;
|
|
158
|
+
let verificationPrompt;
|
|
159
|
+
// High confidence completion
|
|
160
|
+
if (confidence >= 0.85 && signals.hasExplicitCompletionStatement && !signals.hasIncompleteWorkIndicators) {
|
|
161
|
+
isComplete = true;
|
|
162
|
+
reason = 'High confidence explicit completion statement with no incomplete work indicators';
|
|
163
|
+
}
|
|
164
|
+
// Medium confidence - needs verification
|
|
165
|
+
else if (confidence >= 0.6 && signals.hasExplicitCompletionStatement) {
|
|
166
|
+
shouldVerify = true;
|
|
167
|
+
reason = 'Medium confidence completion - AI verification recommended';
|
|
168
|
+
verificationPrompt = this.generateVerificationPrompt(signals);
|
|
169
|
+
}
|
|
170
|
+
// Low confidence - likely not complete
|
|
171
|
+
else if (confidence < 0.4) {
|
|
172
|
+
isComplete = false;
|
|
173
|
+
reason = this.getLowConfidenceReason(signals);
|
|
174
|
+
}
|
|
175
|
+
// Ambiguous case - check for stagnation
|
|
176
|
+
else if (this.consecutiveNoTools >= 3 && !signals.hasIncompleteWorkIndicators) {
|
|
177
|
+
shouldVerify = true;
|
|
178
|
+
reason = 'No tool activity for multiple rounds - verification needed';
|
|
179
|
+
verificationPrompt = this.generateStagnationVerificationPrompt();
|
|
180
|
+
}
|
|
181
|
+
// Default: not complete
|
|
182
|
+
else {
|
|
183
|
+
isComplete = false;
|
|
184
|
+
reason = 'Active work indicators detected or low completion confidence';
|
|
185
|
+
}
|
|
186
|
+
return {
|
|
187
|
+
isComplete,
|
|
188
|
+
confidence,
|
|
189
|
+
signals,
|
|
190
|
+
reason,
|
|
191
|
+
shouldVerify,
|
|
192
|
+
verificationPrompt,
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Gather all completion signals from the current state
|
|
197
|
+
*/
|
|
198
|
+
gatherSignals(response, toolsUsed) {
|
|
199
|
+
const hasExplicitCompletionStatement = STRONG_COMPLETION_PATTERNS.some((p) => p.test(response));
|
|
200
|
+
const hasIncompleteWorkIndicators = INCOMPLETE_WORK_PATTERNS.some((p) => p.test(response));
|
|
201
|
+
const hasPendingActionIndicators = PENDING_ACTION_PATTERNS.some((p) => p.test(response));
|
|
202
|
+
const hasErrorIndicators = ERROR_PATTERNS.some((p) => p.test(response));
|
|
203
|
+
const hasFollowUpQuestions = FOLLOWUP_QUESTION_PATTERNS.some((p) => p.test(response));
|
|
204
|
+
const mentionsFutureWork = FUTURE_WORK_PATTERNS.some((p) => p.test(response));
|
|
205
|
+
const lastToolWasReadOnly = toolsUsed.length > 0 && toolsUsed.every((t) => READ_ONLY_TOOLS.has(t));
|
|
206
|
+
const recentTools = this.toolHistory.filter((t) => Date.now() - t.timestamp < 60000);
|
|
207
|
+
const hasRecentFileWrites = recentTools.some((t) => t.toolName === 'edit_file' || t.toolName === 'Edit');
|
|
208
|
+
const hasRecentCommits = recentTools.some((t) => t.toolName === 'bash' || t.toolName === 'Bash') && this.responseHistory.some((r) => r.includes('git commit') || r.includes('committed'));
|
|
209
|
+
return {
|
|
210
|
+
hasExplicitCompletionStatement,
|
|
211
|
+
hasIncompleteWorkIndicators,
|
|
212
|
+
hasPendingActionIndicators,
|
|
213
|
+
hasErrorIndicators,
|
|
214
|
+
hasFollowUpQuestions,
|
|
215
|
+
toolsUsedInLastResponse: toolsUsed.length,
|
|
216
|
+
lastToolWasReadOnly,
|
|
217
|
+
consecutiveResponsesWithoutTools: this.consecutiveNoTools,
|
|
218
|
+
hasRecentFileWrites,
|
|
219
|
+
hasRecentCommits,
|
|
220
|
+
todoItemsPending: this.todoStats.pending,
|
|
221
|
+
todoItemsCompleted: this.todoStats.completed,
|
|
222
|
+
mentionsFutureWork,
|
|
223
|
+
completionConfidence: 0, // Will be calculated
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Calculate confidence score for task completion
|
|
228
|
+
*/
|
|
229
|
+
calculateConfidence(signals) {
|
|
230
|
+
let score = 0.5; // Start at neutral
|
|
231
|
+
// Strong positive signals
|
|
232
|
+
if (signals.hasExplicitCompletionStatement)
|
|
233
|
+
score += 0.25;
|
|
234
|
+
if (signals.hasRecentCommits)
|
|
235
|
+
score += 0.1;
|
|
236
|
+
if (signals.todoItemsPending === 0 && signals.todoItemsCompleted > 0)
|
|
237
|
+
score += 0.15;
|
|
238
|
+
// Strong negative signals
|
|
239
|
+
if (signals.hasIncompleteWorkIndicators)
|
|
240
|
+
score -= 0.3;
|
|
241
|
+
if (signals.hasPendingActionIndicators)
|
|
242
|
+
score -= 0.2;
|
|
243
|
+
if (signals.hasErrorIndicators)
|
|
244
|
+
score -= 0.25;
|
|
245
|
+
if (signals.todoItemsPending > 0)
|
|
246
|
+
score -= 0.15;
|
|
247
|
+
// Moderate signals
|
|
248
|
+
if (signals.toolsUsedInLastResponse > 0 && !signals.lastToolWasReadOnly)
|
|
249
|
+
score -= 0.1;
|
|
250
|
+
if (signals.consecutiveResponsesWithoutTools >= 2)
|
|
251
|
+
score += 0.1;
|
|
252
|
+
if (signals.hasFollowUpQuestions)
|
|
253
|
+
score -= 0.1;
|
|
254
|
+
if (signals.mentionsFutureWork && signals.hasExplicitCompletionStatement)
|
|
255
|
+
score += 0.05;
|
|
256
|
+
// Clamp to 0-1 range
|
|
257
|
+
return Math.max(0, Math.min(1, score));
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Generate a verification prompt to ask the AI if the task is truly complete
|
|
261
|
+
*/
|
|
262
|
+
generateVerificationPrompt(signals) {
|
|
263
|
+
const concerns = [];
|
|
264
|
+
if (signals.todoItemsPending > 0) {
|
|
265
|
+
concerns.push(`there are ${signals.todoItemsPending} todo items still pending`);
|
|
266
|
+
}
|
|
267
|
+
if (signals.hasFollowUpQuestions) {
|
|
268
|
+
concerns.push('you asked follow-up questions');
|
|
269
|
+
}
|
|
270
|
+
if (signals.mentionsFutureWork) {
|
|
271
|
+
concerns.push('you mentioned potential future improvements');
|
|
272
|
+
}
|
|
273
|
+
const concernsText = concerns.length > 0 ? `However, ${concerns.join(' and ')}. ` : '';
|
|
274
|
+
return `You indicated the task might be complete. ${concernsText}Please confirm:
|
|
275
|
+
|
|
276
|
+
1. Have ALL the originally requested changes been implemented?
|
|
277
|
+
2. Are there any remaining errors or issues that need to be fixed?
|
|
278
|
+
3. Is there anything else you need to do to fully complete this task?
|
|
279
|
+
|
|
280
|
+
If everything is truly done, respond with exactly: "TASK_FULLY_COMPLETE"
|
|
281
|
+
If there's more work to do, describe what remains.`;
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Generate a verification prompt for stagnation cases
|
|
285
|
+
*/
|
|
286
|
+
generateStagnationVerificationPrompt() {
|
|
287
|
+
return `I notice you haven't used any tools for several responses. Let me check:
|
|
288
|
+
|
|
289
|
+
1. Is the task complete? If so, summarize what was accomplished.
|
|
290
|
+
2. Are you blocked on something? If so, what do you need?
|
|
291
|
+
3. Is there more work to do? If so, please continue.
|
|
292
|
+
|
|
293
|
+
If everything is done, respond with exactly: "TASK_FULLY_COMPLETE"
|
|
294
|
+
Otherwise, please continue with the next action.`;
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Get a human-readable reason for low confidence
|
|
298
|
+
*/
|
|
299
|
+
getLowConfidenceReason(signals) {
|
|
300
|
+
const reasons = [];
|
|
301
|
+
if (signals.hasIncompleteWorkIndicators) {
|
|
302
|
+
reasons.push('incomplete work indicators detected');
|
|
303
|
+
}
|
|
304
|
+
if (signals.hasPendingActionIndicators) {
|
|
305
|
+
reasons.push('pending action indicators found');
|
|
306
|
+
}
|
|
307
|
+
if (signals.hasErrorIndicators) {
|
|
308
|
+
reasons.push('error indicators present');
|
|
309
|
+
}
|
|
310
|
+
if (signals.toolsUsedInLastResponse > 0 && !signals.lastToolWasReadOnly) {
|
|
311
|
+
reasons.push('write operations performed');
|
|
312
|
+
}
|
|
313
|
+
if (signals.todoItemsPending > 0) {
|
|
314
|
+
reasons.push(`${signals.todoItemsPending} todo items still pending`);
|
|
315
|
+
}
|
|
316
|
+
return reasons.length > 0 ? reasons.join(', ') : 'no clear completion signals';
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Check if a verification response confirms completion
|
|
320
|
+
*/
|
|
321
|
+
isVerificationConfirmed(verificationResponse) {
|
|
322
|
+
const hasCompletionMarker = (verificationResponse.includes('TASK_FULLY_COMPLETE') ||
|
|
323
|
+
/^(yes|confirmed?|all\s+done|everything\s+(is\s+)?complete)/im.test(verificationResponse.trim()));
|
|
324
|
+
// Even if completion marker is present, check for contradictions
|
|
325
|
+
if (hasCompletionMarker && this.responseContainsIncompleteIndicators(verificationResponse)) {
|
|
326
|
+
return false;
|
|
327
|
+
}
|
|
328
|
+
return hasCompletionMarker;
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Check if a response contradicts itself by saying "complete" but also indicating incomplete work.
|
|
332
|
+
* This comprehensive list catches many ways AI might admit work isn't done while claiming completion.
|
|
333
|
+
*/
|
|
334
|
+
responseContainsIncompleteIndicators(response) {
|
|
335
|
+
const incompletePatterns = [
|
|
336
|
+
// === INTEGRATION/DEPLOYMENT STATE ===
|
|
337
|
+
/hasn'?t\s+been\s+(integrated|implemented|connected|deployed|added|completed|tested|verified)\s*(yet|still)?/i,
|
|
338
|
+
/not\s+(yet\s+)?(integrated|implemented|connected|deployed|functional|working|complete|tested|verified)/i,
|
|
339
|
+
/ready\s+(for|to\s+be)\s+(integration|integrated|connected|deployed|testing|review)/i,
|
|
340
|
+
/needs?\s+to\s+be\s+(integrated|connected|deployed|added|hooked|wired|tested|reviewed|merged)/i,
|
|
341
|
+
/was\s+not\s+(performed|completed|implemented|deployed|integrated|tested)/i,
|
|
342
|
+
/the\s+\w+\s+(service|module|component|feature)\s+hasn'?t\s+been/i,
|
|
343
|
+
// === PARTIAL/INCOMPLETE STATE ===
|
|
344
|
+
/still\s+(stores?|uses?|has|contains?|needs?|requires?|missing|lacks?|broken)/i,
|
|
345
|
+
/\b(partially|mostly|almost|nearly|not\s+fully)\s+(complete|done|finished|implemented|working)/i,
|
|
346
|
+
/\b(only\s+)?(part|some|half|portion)\s+of\s+(the\s+)?(task|work|feature|implementation)/i,
|
|
347
|
+
// === QUALIFIER WORDS (uncertain completion) ===
|
|
348
|
+
/\b(should|might|may|could|appears?\s+to)\s+be\s+(complete|done|working|functional)/i,
|
|
349
|
+
/\btheoretically\s+(complete|done|working|functional)/i,
|
|
350
|
+
/\b(assuming|provided|if)\s+(everything|it|this|that)\s+(works?|is\s+correct)/i,
|
|
351
|
+
// === SELF-CONTRADICTION PHRASES ===
|
|
352
|
+
/\b(done|complete|finished)\s+(but|except|however|although|though)/i,
|
|
353
|
+
/however[,\s].{0,50}?(hasn'?t|not\s+yet|still\s+needs?|pending|remains?|missing|broken|failing)/i,
|
|
354
|
+
/\bbut\s+.{0,30}?(not|hasn'?t|won'?t|can'?t|doesn'?t|isn'?t|wasn'?t)/i,
|
|
355
|
+
// === FUTURE TENSE / DEFERRED WORK ===
|
|
356
|
+
/will\s+(need\s+to|require|have\s+to)\s+(integrate|connect|deploy|complete|implement|test|fix)/i,
|
|
357
|
+
/\b(left\s+as|deferred|postponed|out\s+of\s+scope|for\s+later|in\s+a\s+future)/i,
|
|
358
|
+
/\b(after\s+(restart|reboot|redeploy)|takes?\s+effect\s+after|once\s+you)/i,
|
|
359
|
+
// === REMAINING WORK INDICATORS ===
|
|
360
|
+
/\b(remaining|outstanding|pending|leftover)\s+(tasks?|items?|work|issues?|steps?)/i,
|
|
361
|
+
/\b(more\s+to\s+do|still\s+have\s+to|yet\s+to\s+be\s+done)/i,
|
|
362
|
+
/\b(blocker|blocked\s+by|waiting\s+(for|on)|depends?\s+on)/i,
|
|
363
|
+
// === ERROR/FAILURE STATE ===
|
|
364
|
+
/\b(failing|broken|erroring)\s+(tests?|builds?|checks?|validations?)/i,
|
|
365
|
+
/\btests?\s+(are\s+)?(still\s+)?failing/i,
|
|
366
|
+
/\b(errors?|warnings?|issues?)\s+to\s+(address|fix|resolve)/i,
|
|
367
|
+
/\b(doesn'?t|isn'?t|not)\s+(work|working|functional|functioning)/i,
|
|
368
|
+
// === MANUAL STEPS REQUIRED ===
|
|
369
|
+
/\b(you('ll|\s+will)\s+need\s+to|manually\s+(run|configure|set|update)|requires?\s+user)/i,
|
|
370
|
+
/\b(run\s+this|execute\s+the\s+following|apply\s+the\s+migration)/i,
|
|
371
|
+
// === TODO/FIXME IN PROSE ===
|
|
372
|
+
/\b(todo|fixme|hack|xxx):\s/i,
|
|
373
|
+
/\b(need\s+to|should|must)\s+(add|implement|create|write|build|fix)\b/i,
|
|
374
|
+
// === SCOPE LIMITATIONS ===
|
|
375
|
+
/\b(didn'?t|did\s+not)\s+have\s+(time|chance|opportunity)/i,
|
|
376
|
+
/\b(beyond|outside)\s+(the\s+)?scope/i,
|
|
377
|
+
/\b(for\s+now|at\s+this\s+point|currently)\s*.{0,20}?(not|without|lacks?|missing)/i,
|
|
378
|
+
];
|
|
379
|
+
for (const pattern of incompletePatterns) {
|
|
380
|
+
if (pattern.test(response)) {
|
|
381
|
+
return true;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
return false;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* Create a singleton instance for the shell to use
|
|
389
|
+
*/
|
|
390
|
+
let detectorInstance = null;
|
|
391
|
+
export function getTaskCompletionDetector() {
|
|
392
|
+
if (!detectorInstance) {
|
|
393
|
+
detectorInstance = new TaskCompletionDetector();
|
|
394
|
+
}
|
|
395
|
+
return detectorInstance;
|
|
396
|
+
}
|
|
397
|
+
export function resetTaskCompletionDetector() {
|
|
398
|
+
if (detectorInstance) {
|
|
399
|
+
detectorInstance.reset();
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
//# sourceMappingURL=taskCompletionDetector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taskCompletionDetector.js","sourceRoot":"","sources":["../../src/shell/taskCompletionDetector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA0CH,kDAAkD;AAClD,MAAM,0BAA0B,GAAG;IACjC,iEAAiE;IACjE,0GAA0G;IAC1G,2DAA2D;IAC3D,2FAA2F;IAC3F,4FAA4F;IAC5F,gGAAgG;CACjG,CAAC;AAEF,mDAAmD;AACnD,M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