@trenchwork/erosolar 1.1.29 → 1.1.30
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.
Potentially problematic release.
This version of @trenchwork/erosolar might be problematic. Click here for more details.
- package/README.md +1 -1
- package/package.json +1 -1
- package/dist/bin/cliMode.d.ts +0 -8
- package/dist/bin/cliMode.d.ts.map +0 -1
- package/dist/bin/cliMode.js +0 -20
- package/dist/bin/cliMode.js.map +0 -1
- package/dist/bin/deepseek.d.ts +0 -3
- package/dist/bin/deepseek.d.ts.map +0 -1
- package/dist/bin/deepseek.js +0 -313
- package/dist/bin/deepseek.js.map +0 -1
- package/dist/bin/erosolar.d.ts +0 -7
- package/dist/bin/erosolar.d.ts.map +0 -1
- package/dist/bin/erosolar.js +0 -7
- package/dist/bin/erosolar.js.map +0 -1
- package/dist/bin/selfTest.d.ts +0 -14
- package/dist/bin/selfTest.d.ts.map +0 -1
- package/dist/bin/selfTest.js +0 -298
- package/dist/bin/selfTest.js.map +0 -1
- package/dist/capabilities/_processRunner.d.ts +0 -17
- package/dist/capabilities/_processRunner.d.ts.map +0 -1
- package/dist/capabilities/_processRunner.js +0 -74
- package/dist/capabilities/_processRunner.js.map +0 -1
- package/dist/capabilities/aflppCapability.d.ts +0 -7
- package/dist/capabilities/aflppCapability.d.ts.map +0 -1
- package/dist/capabilities/aflppCapability.js +0 -301
- package/dist/capabilities/aflppCapability.js.map +0 -1
- package/dist/capabilities/baseCapability.d.ts +0 -72
- package/dist/capabilities/baseCapability.d.ts.map +0 -1
- package/dist/capabilities/baseCapability.js +0 -183
- package/dist/capabilities/baseCapability.js.map +0 -1
- package/dist/capabilities/bashCapability.d.ts +0 -13
- package/dist/capabilities/bashCapability.d.ts.map +0 -1
- package/dist/capabilities/bashCapability.js +0 -24
- package/dist/capabilities/bashCapability.js.map +0 -1
- package/dist/capabilities/binaryAnalysisCapability.d.ts +0 -7
- package/dist/capabilities/binaryAnalysisCapability.d.ts.map +0 -1
- package/dist/capabilities/binaryAnalysisCapability.js +0 -201
- package/dist/capabilities/binaryAnalysisCapability.js.map +0 -1
- package/dist/capabilities/editCapability.d.ts +0 -17
- package/dist/capabilities/editCapability.d.ts.map +0 -1
- package/dist/capabilities/editCapability.js +0 -27
- package/dist/capabilities/editCapability.js.map +0 -1
- package/dist/capabilities/enhancedGitCapability.d.ts +0 -7
- package/dist/capabilities/enhancedGitCapability.d.ts.map +0 -1
- package/dist/capabilities/enhancedGitCapability.js +0 -220
- package/dist/capabilities/enhancedGitCapability.js.map +0 -1
- package/dist/capabilities/filesystemCapability.d.ts +0 -13
- package/dist/capabilities/filesystemCapability.d.ts.map +0 -1
- package/dist/capabilities/filesystemCapability.js +0 -24
- package/dist/capabilities/filesystemCapability.js.map +0 -1
- package/dist/capabilities/gdbCapability.d.ts +0 -7
- package/dist/capabilities/gdbCapability.d.ts.map +0 -1
- package/dist/capabilities/gdbCapability.js +0 -125
- package/dist/capabilities/gdbCapability.js.map +0 -1
- package/dist/capabilities/ghidraHeadlessCapability.d.ts +0 -25
- package/dist/capabilities/ghidraHeadlessCapability.d.ts.map +0 -1
- package/dist/capabilities/ghidraHeadlessCapability.js +0 -593
- package/dist/capabilities/ghidraHeadlessCapability.js.map +0 -1
- package/dist/capabilities/gitHistoryCapability.d.ts +0 -6
- package/dist/capabilities/gitHistoryCapability.d.ts.map +0 -1
- package/dist/capabilities/gitHistoryCapability.js +0 -184
- package/dist/capabilities/gitHistoryCapability.js.map +0 -1
- package/dist/capabilities/hitlCapability.d.ts +0 -18
- package/dist/capabilities/hitlCapability.d.ts.map +0 -1
- package/dist/capabilities/hitlCapability.js +0 -29
- package/dist/capabilities/hitlCapability.js.map +0 -1
- package/dist/capabilities/index.d.ts +0 -24
- package/dist/capabilities/index.d.ts.map +0 -1
- package/dist/capabilities/index.js +0 -29
- package/dist/capabilities/index.js.map +0 -1
- package/dist/capabilities/interactionCapability.d.ts +0 -6
- package/dist/capabilities/interactionCapability.d.ts.map +0 -1
- package/dist/capabilities/interactionCapability.js +0 -17
- package/dist/capabilities/interactionCapability.js.map +0 -1
- package/dist/capabilities/kaliCapability.d.ts +0 -14
- package/dist/capabilities/kaliCapability.d.ts.map +0 -1
- package/dist/capabilities/kaliCapability.js +0 -478
- package/dist/capabilities/kaliCapability.js.map +0 -1
- package/dist/capabilities/mcpCapability.d.ts +0 -7
- package/dist/capabilities/mcpCapability.d.ts.map +0 -1
- package/dist/capabilities/mcpCapability.js +0 -82
- package/dist/capabilities/mcpCapability.js.map +0 -1
- package/dist/capabilities/memoryCapability.d.ts +0 -10
- package/dist/capabilities/memoryCapability.d.ts.map +0 -1
- package/dist/capabilities/memoryCapability.js +0 -22
- package/dist/capabilities/memoryCapability.js.map +0 -1
- package/dist/capabilities/monitorCapability.d.ts +0 -6
- package/dist/capabilities/monitorCapability.d.ts.map +0 -1
- package/dist/capabilities/monitorCapability.js +0 -19
- package/dist/capabilities/monitorCapability.js.map +0 -1
- package/dist/capabilities/notebookCapability.d.ts +0 -6
- package/dist/capabilities/notebookCapability.d.ts.map +0 -1
- package/dist/capabilities/notebookCapability.js +0 -17
- package/dist/capabilities/notebookCapability.js.map +0 -1
- package/dist/capabilities/planModeCapability.d.ts +0 -6
- package/dist/capabilities/planModeCapability.d.ts.map +0 -1
- package/dist/capabilities/planModeCapability.js +0 -16
- package/dist/capabilities/planModeCapability.js.map +0 -1
- package/dist/capabilities/pwntoolsCapability.d.ts +0 -7
- package/dist/capabilities/pwntoolsCapability.d.ts.map +0 -1
- package/dist/capabilities/pwntoolsCapability.js +0 -109
- package/dist/capabilities/pwntoolsCapability.js.map +0 -1
- package/dist/capabilities/scheduleCapability.d.ts +0 -6
- package/dist/capabilities/scheduleCapability.d.ts.map +0 -1
- package/dist/capabilities/scheduleCapability.js +0 -16
- package/dist/capabilities/scheduleCapability.js.map +0 -1
- package/dist/capabilities/searchCapability.d.ts +0 -19
- package/dist/capabilities/searchCapability.d.ts.map +0 -1
- package/dist/capabilities/searchCapability.js +0 -29
- package/dist/capabilities/searchCapability.js.map +0 -1
- package/dist/capabilities/skillCapability.d.ts +0 -6
- package/dist/capabilities/skillCapability.d.ts.map +0 -1
- package/dist/capabilities/skillCapability.js +0 -17
- package/dist/capabilities/skillCapability.js.map +0 -1
- package/dist/capabilities/todoCapability.d.ts +0 -11
- package/dist/capabilities/todoCapability.d.ts.map +0 -1
- package/dist/capabilities/todoCapability.js +0 -22
- package/dist/capabilities/todoCapability.js.map +0 -1
- package/dist/capabilities/toolManifest.d.ts +0 -3
- package/dist/capabilities/toolManifest.d.ts.map +0 -1
- package/dist/capabilities/toolManifest.js +0 -163
- package/dist/capabilities/toolManifest.js.map +0 -1
- package/dist/capabilities/toolRegistry.d.ts +0 -25
- package/dist/capabilities/toolRegistry.d.ts.map +0 -1
- package/dist/capabilities/toolRegistry.js +0 -150
- package/dist/capabilities/toolRegistry.js.map +0 -1
- package/dist/capabilities/triggerCapability.d.ts +0 -6
- package/dist/capabilities/triggerCapability.d.ts.map +0 -1
- package/dist/capabilities/triggerCapability.js +0 -16
- package/dist/capabilities/triggerCapability.js.map +0 -1
- package/dist/capabilities/unifiedCodingCapability.d.ts +0 -62
- package/dist/capabilities/unifiedCodingCapability.d.ts.map +0 -1
- package/dist/capabilities/unifiedCodingCapability.js +0 -788
- package/dist/capabilities/unifiedCodingCapability.js.map +0 -1
- package/dist/capabilities/webCapability.d.ts +0 -23
- package/dist/capabilities/webCapability.d.ts.map +0 -1
- package/dist/capabilities/webCapability.js +0 -33
- package/dist/capabilities/webCapability.js.map +0 -1
- package/dist/capabilities/worktreeCapability.d.ts +0 -6
- package/dist/capabilities/worktreeCapability.d.ts.map +0 -1
- package/dist/capabilities/worktreeCapability.js +0 -16
- package/dist/capabilities/worktreeCapability.js.map +0 -1
- package/dist/config.d.ts +0 -25
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -155
- package/dist/config.js.map +0 -1
- package/dist/contracts/v1/agent.d.ts +0 -179
- package/dist/contracts/v1/agent.d.ts.map +0 -1
- package/dist/contracts/v1/agent.js +0 -8
- package/dist/contracts/v1/agent.js.map +0 -1
- package/dist/contracts/v1/agentProfileManifest.d.ts +0 -60
- package/dist/contracts/v1/agentProfileManifest.d.ts.map +0 -1
- package/dist/contracts/v1/agentProfileManifest.js +0 -9
- package/dist/contracts/v1/agentProfileManifest.js.map +0 -1
- package/dist/contracts/v1/agentRules.d.ts +0 -60
- package/dist/contracts/v1/agentRules.d.ts.map +0 -1
- package/dist/contracts/v1/agentRules.js +0 -10
- package/dist/contracts/v1/agentRules.js.map +0 -1
- package/dist/contracts/v1/provider.d.ts +0 -149
- package/dist/contracts/v1/provider.d.ts.map +0 -1
- package/dist/contracts/v1/provider.js +0 -7
- package/dist/contracts/v1/provider.js.map +0 -1
- package/dist/contracts/v1/tool.d.ts +0 -136
- package/dist/contracts/v1/tool.d.ts.map +0 -1
- package/dist/contracts/v1/tool.js +0 -7
- package/dist/contracts/v1/tool.js.map +0 -1
- package/dist/contracts/v1/toolAccess.d.ts +0 -43
- package/dist/contracts/v1/toolAccess.d.ts.map +0 -1
- package/dist/contracts/v1/toolAccess.js +0 -9
- package/dist/contracts/v1/toolAccess.js.map +0 -1
- package/dist/core/agent.d.ts +0 -320
- package/dist/core/agent.d.ts.map +0 -1
- package/dist/core/agent.js +0 -1627
- package/dist/core/agent.js.map +0 -1
- package/dist/core/agentProfileManifest.d.ts +0 -3
- package/dist/core/agentProfileManifest.d.ts.map +0 -1
- package/dist/core/agentProfileManifest.js +0 -188
- package/dist/core/agentProfileManifest.js.map +0 -1
- package/dist/core/agentProfiles.d.ts +0 -22
- package/dist/core/agentProfiles.d.ts.map +0 -1
- package/dist/core/agentProfiles.js +0 -35
- package/dist/core/agentProfiles.js.map +0 -1
- package/dist/core/agentRegistry.d.ts +0 -111
- package/dist/core/agentRegistry.d.ts.map +0 -1
- package/dist/core/agentRegistry.js +0 -229
- package/dist/core/agentRegistry.js.map +0 -1
- package/dist/core/agentRulebook.d.ts +0 -11
- package/dist/core/agentRulebook.d.ts.map +0 -1
- package/dist/core/agentRulebook.js +0 -136
- package/dist/core/agentRulebook.js.map +0 -1
- package/dist/core/agentSchemaLoader.d.ts +0 -131
- package/dist/core/agentSchemaLoader.d.ts.map +0 -1
- package/dist/core/agentSchemaLoader.js +0 -235
- package/dist/core/agentSchemaLoader.js.map +0 -1
- package/dist/core/aiErrorFixer.d.ts +0 -57
- package/dist/core/aiErrorFixer.d.ts.map +0 -1
- package/dist/core/aiErrorFixer.js +0 -214
- package/dist/core/aiErrorFixer.js.map +0 -1
- package/dist/core/artifactStore.d.ts +0 -35
- package/dist/core/artifactStore.d.ts.map +0 -1
- package/dist/core/artifactStore.js +0 -105
- package/dist/core/artifactStore.js.map +0 -1
- package/dist/core/auth.d.ts +0 -15
- package/dist/core/auth.d.ts.map +0 -1
- package/dist/core/auth.js +0 -291
- package/dist/core/auth.js.map +0 -1
- package/dist/core/bashCommandGuidance.d.ts +0 -16
- package/dist/core/bashCommandGuidance.d.ts.map +0 -1
- package/dist/core/bashCommandGuidance.js +0 -40
- package/dist/core/bashCommandGuidance.js.map +0 -1
- package/dist/core/constants.d.ts +0 -31
- package/dist/core/constants.d.ts.map +0 -1
- package/dist/core/constants.js +0 -62
- package/dist/core/constants.js.map +0 -1
- package/dist/core/contextManager.d.ts +0 -271
- package/dist/core/contextManager.d.ts.map +0 -1
- package/dist/core/contextManager.js +0 -1073
- package/dist/core/contextManager.js.map +0 -1
- package/dist/core/contextWindow.d.ts +0 -42
- package/dist/core/contextWindow.d.ts.map +0 -1
- package/dist/core/contextWindow.js +0 -123
- package/dist/core/contextWindow.js.map +0 -1
- package/dist/core/customCommands.d.ts +0 -19
- package/dist/core/customCommands.d.ts.map +0 -1
- package/dist/core/customCommands.js +0 -85
- package/dist/core/customCommands.js.map +0 -1
- package/dist/core/errors/apiKeyErrors.d.ts +0 -11
- package/dist/core/errors/apiKeyErrors.d.ts.map +0 -1
- package/dist/core/errors/apiKeyErrors.js +0 -159
- package/dist/core/errors/apiKeyErrors.js.map +0 -1
- package/dist/core/errors/errorTypes.d.ts +0 -111
- package/dist/core/errors/errorTypes.d.ts.map +0 -1
- package/dist/core/errors/errorTypes.js +0 -345
- package/dist/core/errors/errorTypes.js.map +0 -1
- package/dist/core/errors/index.d.ts +0 -50
- package/dist/core/errors/index.d.ts.map +0 -1
- package/dist/core/errors/index.js +0 -156
- package/dist/core/errors/index.js.map +0 -1
- package/dist/core/errors/networkErrors.d.ts +0 -14
- package/dist/core/errors/networkErrors.d.ts.map +0 -1
- package/dist/core/errors/networkErrors.js +0 -53
- package/dist/core/errors/networkErrors.js.map +0 -1
- package/dist/core/errors/safetyValidator.d.ts +0 -109
- package/dist/core/errors/safetyValidator.d.ts.map +0 -1
- package/dist/core/errors/safetyValidator.js +0 -271
- package/dist/core/errors/safetyValidator.js.map +0 -1
- package/dist/core/errors.d.ts +0 -4
- package/dist/core/errors.d.ts.map +0 -1
- package/dist/core/errors.js +0 -33
- package/dist/core/errors.js.map +0 -1
- package/dist/core/finalResponseFormatter.d.ts +0 -10
- package/dist/core/finalResponseFormatter.d.ts.map +0 -1
- package/dist/core/finalResponseFormatter.js +0 -14
- package/dist/core/finalResponseFormatter.js.map +0 -1
- package/dist/core/guardrails.d.ts +0 -146
- package/dist/core/guardrails.d.ts.map +0 -1
- package/dist/core/guardrails.js +0 -361
- package/dist/core/guardrails.js.map +0 -1
- package/dist/core/hitl.d.ts +0 -119
- package/dist/core/hitl.d.ts.map +0 -1
- package/dist/core/hitl.js +0 -387
- package/dist/core/hitl.js.map +0 -1
- package/dist/core/hooks.d.ts +0 -95
- package/dist/core/hooks.d.ts.map +0 -1
- package/dist/core/hooks.js +0 -239
- package/dist/core/hooks.js.map +0 -1
- package/dist/core/index.d.ts +0 -7
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/index.js +0 -7
- package/dist/core/index.js.map +0 -1
- package/dist/core/inputProtection.d.ts +0 -122
- package/dist/core/inputProtection.d.ts.map +0 -1
- package/dist/core/inputProtection.js +0 -422
- package/dist/core/inputProtection.js.map +0 -1
- package/dist/core/modelDiscovery.d.ts +0 -105
- package/dist/core/modelDiscovery.d.ts.map +0 -1
- package/dist/core/modelDiscovery.js +0 -768
- package/dist/core/modelDiscovery.js.map +0 -1
- package/dist/core/multilinePasteHandler.d.ts +0 -35
- package/dist/core/multilinePasteHandler.d.ts.map +0 -1
- package/dist/core/multilinePasteHandler.js +0 -81
- package/dist/core/multilinePasteHandler.js.map +0 -1
- package/dist/core/preferences.d.ts +0 -65
- package/dist/core/preferences.d.ts.map +0 -1
- package/dist/core/preferences.js +0 -305
- package/dist/core/preferences.js.map +0 -1
- package/dist/core/projectTracker.d.ts +0 -96
- package/dist/core/projectTracker.d.ts.map +0 -1
- package/dist/core/projectTracker.js +0 -275
- package/dist/core/projectTracker.js.map +0 -1
- package/dist/core/providerKeys.d.ts +0 -20
- package/dist/core/providerKeys.d.ts.map +0 -1
- package/dist/core/providerKeys.js +0 -40
- package/dist/core/providerKeys.js.map +0 -1
- package/dist/core/refusalDetection.d.ts +0 -2
- package/dist/core/refusalDetection.d.ts.map +0 -1
- package/dist/core/refusalDetection.js +0 -51
- package/dist/core/refusalDetection.js.map +0 -1
- package/dist/core/resultVerification.d.ts +0 -47
- package/dist/core/resultVerification.d.ts.map +0 -1
- package/dist/core/resultVerification.js +0 -126
- package/dist/core/resultVerification.js.map +0 -1
- package/dist/core/reviewerGuard.d.ts +0 -37
- package/dist/core/reviewerGuard.d.ts.map +0 -1
- package/dist/core/reviewerGuard.js +0 -188
- package/dist/core/reviewerGuard.js.map +0 -1
- package/dist/core/schemaValidator.d.ts +0 -49
- package/dist/core/schemaValidator.d.ts.map +0 -1
- package/dist/core/schemaValidator.js +0 -234
- package/dist/core/schemaValidator.js.map +0 -1
- package/dist/core/secretStore.d.ts +0 -48
- package/dist/core/secretStore.d.ts.map +0 -1
- package/dist/core/secretStore.js +0 -259
- package/dist/core/secretStore.js.map +0 -1
- package/dist/core/sessionStorage.d.ts +0 -10
- package/dist/core/sessionStorage.d.ts.map +0 -1
- package/dist/core/sessionStorage.js +0 -46
- package/dist/core/sessionStorage.js.map +0 -1
- package/dist/core/sessionStore.d.ts +0 -35
- package/dist/core/sessionStore.d.ts.map +0 -1
- package/dist/core/sessionStore.js +0 -191
- package/dist/core/sessionStore.js.map +0 -1
- package/dist/core/sharedSecrets.d.ts +0 -60
- package/dist/core/sharedSecrets.d.ts.map +0 -1
- package/dist/core/sharedSecrets.js +0 -111
- package/dist/core/sharedSecrets.js.map +0 -1
- package/dist/core/shutdown.d.ts +0 -34
- package/dist/core/shutdown.d.ts.map +0 -1
- package/dist/core/shutdown.js +0 -186
- package/dist/core/shutdown.js.map +0 -1
- package/dist/core/sudoPasswordManager.d.ts +0 -52
- package/dist/core/sudoPasswordManager.d.ts.map +0 -1
- package/dist/core/sudoPasswordManager.js +0 -115
- package/dist/core/sudoPasswordManager.js.map +0 -1
- package/dist/core/taskCompletionDetector.d.ts +0 -117
- package/dist/core/taskCompletionDetector.d.ts.map +0 -1
- package/dist/core/taskCompletionDetector.js +0 -532
- package/dist/core/taskCompletionDetector.js.map +0 -1
- package/dist/core/testFailureMonitor.d.ts +0 -67
- package/dist/core/testFailureMonitor.d.ts.map +0 -1
- package/dist/core/testFailureMonitor.js +0 -262
- package/dist/core/testFailureMonitor.js.map +0 -1
- package/dist/core/toolPreconditions.d.ts +0 -34
- package/dist/core/toolPreconditions.d.ts.map +0 -1
- package/dist/core/toolPreconditions.js +0 -242
- package/dist/core/toolPreconditions.js.map +0 -1
- package/dist/core/toolRuntime.d.ts +0 -192
- package/dist/core/toolRuntime.d.ts.map +0 -1
- package/dist/core/toolRuntime.js +0 -511
- package/dist/core/toolRuntime.js.map +0 -1
- package/dist/core/types/utilityTypes.d.ts +0 -183
- package/dist/core/types/utilityTypes.d.ts.map +0 -1
- package/dist/core/types/utilityTypes.js +0 -273
- package/dist/core/types/utilityTypes.js.map +0 -1
- package/dist/core/types.d.ts +0 -334
- package/dist/core/types.d.ts.map +0 -1
- package/dist/core/types.js +0 -76
- package/dist/core/types.js.map +0 -1
- package/dist/core/updateChecker.d.ts +0 -148
- package/dist/core/updateChecker.d.ts.map +0 -1
- package/dist/core/updateChecker.js +0 -599
- package/dist/core/updateChecker.js.map +0 -1
- package/dist/core/usageTracker.d.ts +0 -11
- package/dist/core/usageTracker.d.ts.map +0 -1
- package/dist/core/usageTracker.js +0 -128
- package/dist/core/usageTracker.js.map +0 -1
- package/dist/core/userApproval.d.ts +0 -95
- package/dist/core/userApproval.d.ts.map +0 -1
- package/dist/core/userApproval.js +0 -239
- package/dist/core/userApproval.js.map +0 -1
- package/dist/headless/interactiveShell.d.ts +0 -22
- package/dist/headless/interactiveShell.d.ts.map +0 -1
- package/dist/headless/interactiveShell.js +0 -2156
- package/dist/headless/interactiveShell.js.map +0 -1
- package/dist/leanAgent.d.ts +0 -73
- package/dist/leanAgent.d.ts.map +0 -1
- package/dist/leanAgent.js +0 -177
- package/dist/leanAgent.js.map +0 -1
- package/dist/plugins/index.d.ts +0 -49
- package/dist/plugins/index.d.ts.map +0 -1
- package/dist/plugins/index.js +0 -104
- package/dist/plugins/index.js.map +0 -1
- package/dist/plugins/providers/anthropic/index.d.ts +0 -9
- package/dist/plugins/providers/anthropic/index.d.ts.map +0 -1
- package/dist/plugins/providers/anthropic/index.js +0 -48
- package/dist/plugins/providers/anthropic/index.js.map +0 -1
- package/dist/plugins/providers/deepseek/index.d.ts +0 -11
- package/dist/plugins/providers/deepseek/index.d.ts.map +0 -1
- package/dist/plugins/providers/deepseek/index.js +0 -54
- package/dist/plugins/providers/deepseek/index.js.map +0 -1
- package/dist/plugins/providers/index.d.ts +0 -2
- package/dist/plugins/providers/index.d.ts.map +0 -1
- package/dist/plugins/providers/index.js +0 -17
- package/dist/plugins/providers/index.js.map +0 -1
- package/dist/plugins/providers/openai/index.d.ts +0 -10
- package/dist/plugins/providers/openai/index.d.ts.map +0 -1
- package/dist/plugins/providers/openai/index.js +0 -47
- package/dist/plugins/providers/openai/index.js.map +0 -1
- package/dist/plugins/providers/xai/index.d.ts +0 -10
- package/dist/plugins/providers/xai/index.d.ts.map +0 -1
- package/dist/plugins/providers/xai/index.js +0 -47
- package/dist/plugins/providers/xai/index.js.map +0 -1
- package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.d.ts +0 -10
- package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.js +0 -110
- package/dist/plugins/tools/agentSpawning/agentSpawningPlugin.js.map +0 -1
- package/dist/plugins/tools/bash/localBashPlugin.d.ts +0 -3
- package/dist/plugins/tools/bash/localBashPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/bash/localBashPlugin.js +0 -14
- package/dist/plugins/tools/bash/localBashPlugin.js.map +0 -1
- package/dist/plugins/tools/edit/editPlugin.d.ts +0 -9
- package/dist/plugins/tools/edit/editPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/edit/editPlugin.js +0 -15
- package/dist/plugins/tools/edit/editPlugin.js.map +0 -1
- package/dist/plugins/tools/enhancedGit/enhancedGitPlugin.d.ts +0 -3
- package/dist/plugins/tools/enhancedGit/enhancedGitPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/enhancedGit/enhancedGitPlugin.js +0 -9
- package/dist/plugins/tools/enhancedGit/enhancedGitPlugin.js.map +0 -1
- package/dist/plugins/tools/filesystem/localFilesystemPlugin.d.ts +0 -3
- package/dist/plugins/tools/filesystem/localFilesystemPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/filesystem/localFilesystemPlugin.js +0 -14
- package/dist/plugins/tools/filesystem/localFilesystemPlugin.js.map +0 -1
- package/dist/plugins/tools/gitHistory/gitHistoryPlugin.d.ts +0 -3
- package/dist/plugins/tools/gitHistory/gitHistoryPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/gitHistory/gitHistoryPlugin.js +0 -9
- package/dist/plugins/tools/gitHistory/gitHistoryPlugin.js.map +0 -1
- package/dist/plugins/tools/index.d.ts +0 -3
- package/dist/plugins/tools/index.d.ts.map +0 -1
- package/dist/plugins/tools/index.js +0 -3
- package/dist/plugins/tools/index.js.map +0 -1
- package/dist/plugins/tools/integrity/integrityPlugin.d.ts +0 -3
- package/dist/plugins/tools/integrity/integrityPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/integrity/integrityPlugin.js +0 -31
- package/dist/plugins/tools/integrity/integrityPlugin.js.map +0 -1
- package/dist/plugins/tools/kali/kaliPlugin.d.ts +0 -3
- package/dist/plugins/tools/kali/kaliPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/kali/kaliPlugin.js +0 -10
- package/dist/plugins/tools/kali/kaliPlugin.js.map +0 -1
- package/dist/plugins/tools/mcp/mcpClient.d.ts +0 -59
- package/dist/plugins/tools/mcp/mcpClient.d.ts.map +0 -1
- package/dist/plugins/tools/mcp/mcpClient.js +0 -118
- package/dist/plugins/tools/mcp/mcpClient.js.map +0 -1
- package/dist/plugins/tools/mcp/mcpPlugin.d.ts +0 -3
- package/dist/plugins/tools/mcp/mcpPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/mcp/mcpPlugin.js +0 -10
- package/dist/plugins/tools/mcp/mcpPlugin.js.map +0 -1
- package/dist/plugins/tools/nodeDefaults.d.ts +0 -13
- package/dist/plugins/tools/nodeDefaults.d.ts.map +0 -1
- package/dist/plugins/tools/nodeDefaults.js +0 -37
- package/dist/plugins/tools/nodeDefaults.js.map +0 -1
- package/dist/plugins/tools/orchestration/orchestrationPlugin.d.ts +0 -3
- package/dist/plugins/tools/orchestration/orchestrationPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/orchestration/orchestrationPlugin.js +0 -340
- package/dist/plugins/tools/orchestration/orchestrationPlugin.js.map +0 -1
- package/dist/plugins/tools/registry.d.ts +0 -22
- package/dist/plugins/tools/registry.d.ts.map +0 -1
- package/dist/plugins/tools/registry.js +0 -58
- package/dist/plugins/tools/registry.js.map +0 -1
- package/dist/plugins/tools/search/localSearchPlugin.d.ts +0 -3
- package/dist/plugins/tools/search/localSearchPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/search/localSearchPlugin.js +0 -14
- package/dist/plugins/tools/search/localSearchPlugin.js.map +0 -1
- package/dist/plugins/tools/skills/skillPlugin.d.ts +0 -3
- package/dist/plugins/tools/skills/skillPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/skills/skillPlugin.js +0 -27
- package/dist/plugins/tools/skills/skillPlugin.js.map +0 -1
- package/dist/plugins/tools/todo/todoPlugin.d.ts +0 -3
- package/dist/plugins/tools/todo/todoPlugin.d.ts.map +0 -1
- package/dist/plugins/tools/todo/todoPlugin.js +0 -10
- package/dist/plugins/tools/todo/todoPlugin.js.map +0 -1
- package/dist/providers/baseProvider.d.ts +0 -148
- package/dist/providers/baseProvider.d.ts.map +0 -1
- package/dist/providers/baseProvider.js +0 -284
- package/dist/providers/baseProvider.js.map +0 -1
- package/dist/providers/openaiChatCompletionsProvider.d.ts +0 -64
- package/dist/providers/openaiChatCompletionsProvider.d.ts.map +0 -1
- package/dist/providers/openaiChatCompletionsProvider.js +0 -1018
- package/dist/providers/openaiChatCompletionsProvider.js.map +0 -1
- package/dist/providers/providerFactory.d.ts +0 -22
- package/dist/providers/providerFactory.d.ts.map +0 -1
- package/dist/providers/providerFactory.js +0 -25
- package/dist/providers/providerFactory.js.map +0 -1
- package/dist/providers/resilientProvider.d.ts +0 -103
- package/dist/providers/resilientProvider.d.ts.map +0 -1
- package/dist/providers/resilientProvider.js +0 -468
- package/dist/providers/resilientProvider.js.map +0 -1
- package/dist/runtime/agentController.d.ts +0 -121
- package/dist/runtime/agentController.d.ts.map +0 -1
- package/dist/runtime/agentController.js +0 -739
- package/dist/runtime/agentController.js.map +0 -1
- package/dist/runtime/agentHost.d.ts +0 -61
- package/dist/runtime/agentHost.d.ts.map +0 -1
- package/dist/runtime/agentHost.js +0 -158
- package/dist/runtime/agentHost.js.map +0 -1
- package/dist/runtime/agentSession.d.ts +0 -49
- package/dist/runtime/agentSession.d.ts.map +0 -1
- package/dist/runtime/agentSession.js +0 -218
- package/dist/runtime/agentSession.js.map +0 -1
- package/dist/runtime/agentSpawningWiring.d.ts +0 -23
- package/dist/runtime/agentSpawningWiring.d.ts.map +0 -1
- package/dist/runtime/agentSpawningWiring.js +0 -119
- package/dist/runtime/agentSpawningWiring.js.map +0 -1
- package/dist/runtime/agentWorkerPool.d.ts +0 -167
- package/dist/runtime/agentWorkerPool.d.ts.map +0 -1
- package/dist/runtime/agentWorkerPool.js +0 -435
- package/dist/runtime/agentWorkerPool.js.map +0 -1
- package/dist/runtime/node.d.ts +0 -9
- package/dist/runtime/node.d.ts.map +0 -1
- package/dist/runtime/node.js +0 -56
- package/dist/runtime/node.js.map +0 -1
- package/dist/runtime/profileGates.d.ts +0 -19
- package/dist/runtime/profileGates.d.ts.map +0 -1
- package/dist/runtime/profileGates.js +0 -23
- package/dist/runtime/profileGates.js.map +0 -1
- package/dist/runtime/universal.d.ts +0 -18
- package/dist/runtime/universal.d.ts.map +0 -1
- package/dist/runtime/universal.js +0 -21
- package/dist/runtime/universal.js.map +0 -1
- package/dist/shell/autoExecutor.d.ts +0 -70
- package/dist/shell/autoExecutor.d.ts.map +0 -1
- package/dist/shell/autoExecutor.js +0 -320
- package/dist/shell/autoExecutor.js.map +0 -1
- package/dist/shell/commandRegistry.d.ts +0 -122
- package/dist/shell/commandRegistry.d.ts.map +0 -1
- package/dist/shell/commandRegistry.js +0 -355
- package/dist/shell/commandRegistry.js.map +0 -1
- package/dist/shell/composableMessage.d.ts +0 -178
- package/dist/shell/composableMessage.d.ts.map +0 -1
- package/dist/shell/composableMessage.js +0 -384
- package/dist/shell/composableMessage.js.map +0 -1
- package/dist/shell/liveStatus.d.ts +0 -27
- package/dist/shell/liveStatus.d.ts.map +0 -1
- package/dist/shell/liveStatus.js +0 -53
- package/dist/shell/liveStatus.js.map +0 -1
- package/dist/shell/systemPrompt.d.ts +0 -12
- package/dist/shell/systemPrompt.d.ts.map +0 -1
- package/dist/shell/systemPrompt.js +0 -16
- package/dist/shell/systemPrompt.js.map +0 -1
- package/dist/shell/vimMode.d.ts +0 -66
- package/dist/shell/vimMode.d.ts.map +0 -1
- package/dist/shell/vimMode.js +0 -435
- package/dist/shell/vimMode.js.map +0 -1
- package/dist/tools/bashTools.d.ts +0 -11
- package/dist/tools/bashTools.d.ts.map +0 -1
- package/dist/tools/bashTools.js +0 -779
- package/dist/tools/bashTools.js.map +0 -1
- package/dist/tools/diffUtils.d.ts +0 -43
- package/dist/tools/diffUtils.d.ts.map +0 -1
- package/dist/tools/diffUtils.js +0 -607
- package/dist/tools/diffUtils.js.map +0 -1
- package/dist/tools/editTools.d.ts +0 -29
- package/dist/tools/editTools.d.ts.map +0 -1
- package/dist/tools/editTools.js +0 -792
- package/dist/tools/editTools.js.map +0 -1
- package/dist/tools/fileChangeTracker.d.ts +0 -47
- package/dist/tools/fileChangeTracker.d.ts.map +0 -1
- package/dist/tools/fileChangeTracker.js +0 -154
- package/dist/tools/fileChangeTracker.js.map +0 -1
- package/dist/tools/fileReadTracker.d.ts +0 -69
- package/dist/tools/fileReadTracker.d.ts.map +0 -1
- package/dist/tools/fileReadTracker.js +0 -213
- package/dist/tools/fileReadTracker.js.map +0 -1
- package/dist/tools/fileTools.d.ts +0 -3
- package/dist/tools/fileTools.d.ts.map +0 -1
- package/dist/tools/fileTools.js +0 -389
- package/dist/tools/fileTools.js.map +0 -1
- package/dist/tools/grepTools.d.ts +0 -3
- package/dist/tools/grepTools.d.ts.map +0 -1
- package/dist/tools/grepTools.js +0 -128
- package/dist/tools/grepTools.js.map +0 -1
- package/dist/tools/heliaControl.d.ts +0 -51
- package/dist/tools/heliaControl.d.ts.map +0 -1
- package/dist/tools/heliaControl.js +0 -93
- package/dist/tools/heliaControl.js.map +0 -1
- package/dist/tools/hitlTools.d.ts +0 -7
- package/dist/tools/hitlTools.d.ts.map +0 -1
- package/dist/tools/hitlTools.js +0 -185
- package/dist/tools/hitlTools.js.map +0 -1
- package/dist/tools/interactionTools.d.ts +0 -16
- package/dist/tools/interactionTools.d.ts.map +0 -1
- package/dist/tools/interactionTools.js +0 -207
- package/dist/tools/interactionTools.js.map +0 -1
- package/dist/tools/localExplore.d.ts +0 -38
- package/dist/tools/localExplore.d.ts.map +0 -1
- package/dist/tools/localExplore.js +0 -30
- package/dist/tools/localExplore.js.map +0 -1
- package/dist/tools/memoryTools.d.ts +0 -20
- package/dist/tools/memoryTools.d.ts.map +0 -1
- package/dist/tools/memoryTools.js +0 -180
- package/dist/tools/memoryTools.js.map +0 -1
- package/dist/tools/monitorTools.d.ts +0 -16
- package/dist/tools/monitorTools.d.ts.map +0 -1
- package/dist/tools/monitorTools.js +0 -159
- package/dist/tools/monitorTools.js.map +0 -1
- package/dist/tools/notebookTools.d.ts +0 -20
- package/dist/tools/notebookTools.d.ts.map +0 -1
- package/dist/tools/notebookTools.js +0 -140
- package/dist/tools/notebookTools.js.map +0 -1
- package/dist/tools/planModeTools.d.ts +0 -32
- package/dist/tools/planModeTools.d.ts.map +0 -1
- package/dist/tools/planModeTools.js +0 -200
- package/dist/tools/planModeTools.js.map +0 -1
- package/dist/tools/scheduleTools.d.ts +0 -39
- package/dist/tools/scheduleTools.d.ts.map +0 -1
- package/dist/tools/scheduleTools.js +0 -182
- package/dist/tools/scheduleTools.js.map +0 -1
- package/dist/tools/searchTools.d.ts +0 -12
- package/dist/tools/searchTools.d.ts.map +0 -1
- package/dist/tools/searchTools.js +0 -413
- package/dist/tools/searchTools.js.map +0 -1
- package/dist/tools/skillTools.d.ts +0 -24
- package/dist/tools/skillTools.d.ts.map +0 -1
- package/dist/tools/skillTools.js +0 -140
- package/dist/tools/skillTools.js.map +0 -1
- package/dist/tools/todoTools.d.ts +0 -24
- package/dist/tools/todoTools.d.ts.map +0 -1
- package/dist/tools/todoTools.js +0 -101
- package/dist/tools/todoTools.js.map +0 -1
- package/dist/tools/triggerTools.d.ts +0 -28
- package/dist/tools/triggerTools.d.ts.map +0 -1
- package/dist/tools/triggerTools.js +0 -210
- package/dist/tools/triggerTools.js.map +0 -1
- package/dist/tools/webTools.d.ts +0 -26
- package/dist/tools/webTools.d.ts.map +0 -1
- package/dist/tools/webTools.js +0 -332
- package/dist/tools/webTools.js.map +0 -1
- package/dist/tools/worktreeTools.d.ts +0 -21
- package/dist/tools/worktreeTools.d.ts.map +0 -1
- package/dist/tools/worktreeTools.js +0 -158
- package/dist/tools/worktreeTools.js.map +0 -1
- package/dist/ui/RenderGate.d.ts +0 -83
- package/dist/ui/RenderGate.d.ts.map +0 -1
- package/dist/ui/RenderGate.js +0 -138
- package/dist/ui/RenderGate.js.map +0 -1
- package/dist/ui/animatedStatus.d.ts +0 -140
- package/dist/ui/animatedStatus.d.ts.map +0 -1
- package/dist/ui/animatedStatus.js +0 -480
- package/dist/ui/animatedStatus.js.map +0 -1
- package/dist/ui/animation/AnimationScheduler.d.ts +0 -197
- package/dist/ui/animation/AnimationScheduler.d.ts.map +0 -1
- package/dist/ui/animation/AnimationScheduler.js +0 -440
- package/dist/ui/animation/AnimationScheduler.js.map +0 -1
- package/dist/ui/codeHighlighter.d.ts +0 -6
- package/dist/ui/codeHighlighter.d.ts.map +0 -1
- package/dist/ui/codeHighlighter.js +0 -855
- package/dist/ui/codeHighlighter.js.map +0 -1
- package/dist/ui/designSystem.d.ts +0 -26
- package/dist/ui/designSystem.d.ts.map +0 -1
- package/dist/ui/designSystem.js +0 -114
- package/dist/ui/designSystem.js.map +0 -1
- package/dist/ui/errorFormatter.d.ts +0 -64
- package/dist/ui/errorFormatter.d.ts.map +0 -1
- package/dist/ui/errorFormatter.js +0 -316
- package/dist/ui/errorFormatter.js.map +0 -1
- package/dist/ui/globalWriteLock.d.ts +0 -63
- package/dist/ui/globalWriteLock.d.ts.map +0 -1
- package/dist/ui/globalWriteLock.js +0 -173
- package/dist/ui/globalWriteLock.js.map +0 -1
- package/dist/ui/index.d.ts +0 -31
- package/dist/ui/index.d.ts.map +0 -1
- package/dist/ui/index.js +0 -49
- package/dist/ui/index.js.map +0 -1
- package/dist/ui/ink/App.d.ts +0 -39
- package/dist/ui/ink/App.d.ts.map +0 -1
- package/dist/ui/ink/App.js +0 -19
- package/dist/ui/ink/App.js.map +0 -1
- package/dist/ui/ink/ChatStatic.d.ts +0 -29
- package/dist/ui/ink/ChatStatic.d.ts.map +0 -1
- package/dist/ui/ink/ChatStatic.js +0 -31
- package/dist/ui/ink/ChatStatic.js.map +0 -1
- package/dist/ui/ink/InkPromptController.d.ts +0 -286
- package/dist/ui/ink/InkPromptController.d.ts.map +0 -1
- package/dist/ui/ink/InkPromptController.js +0 -558
- package/dist/ui/ink/InkPromptController.js.map +0 -1
- package/dist/ui/ink/Prompt.d.ts +0 -36
- package/dist/ui/ink/Prompt.d.ts.map +0 -1
- package/dist/ui/ink/Prompt.js +0 -296
- package/dist/ui/ink/Prompt.js.map +0 -1
- package/dist/ui/ink/StatusLine.d.ts +0 -25
- package/dist/ui/ink/StatusLine.d.ts.map +0 -1
- package/dist/ui/ink/StatusLine.js +0 -12
- package/dist/ui/ink/StatusLine.js.map +0 -1
- package/dist/ui/ink/adapter.d.ts +0 -58
- package/dist/ui/ink/adapter.d.ts.map +0 -1
- package/dist/ui/ink/adapter.js +0 -113
- package/dist/ui/ink/adapter.js.map +0 -1
- package/dist/ui/interrupts/InterruptManager.d.ts +0 -157
- package/dist/ui/interrupts/InterruptManager.d.ts.map +0 -1
- package/dist/ui/interrupts/InterruptManager.js +0 -501
- package/dist/ui/interrupts/InterruptManager.js.map +0 -1
- package/dist/ui/layout.d.ts +0 -27
- package/dist/ui/layout.d.ts.map +0 -1
- package/dist/ui/layout.js +0 -184
- package/dist/ui/layout.js.map +0 -1
- package/dist/ui/outputMode.d.ts +0 -58
- package/dist/ui/outputMode.d.ts.map +0 -1
- package/dist/ui/outputMode.js +0 -179
- package/dist/ui/outputMode.js.map +0 -1
- package/dist/ui/overlay/OverlayManager.d.ts +0 -105
- package/dist/ui/overlay/OverlayManager.d.ts.map +0 -1
- package/dist/ui/overlay/OverlayManager.js +0 -304
- package/dist/ui/overlay/OverlayManager.js.map +0 -1
- package/dist/ui/premiumComponents.d.ts +0 -54
- package/dist/ui/premiumComponents.d.ts.map +0 -1
- package/dist/ui/premiumComponents.js +0 -241
- package/dist/ui/premiumComponents.js.map +0 -1
- package/dist/ui/richText.d.ts +0 -13
- package/dist/ui/richText.d.ts.map +0 -1
- package/dist/ui/richText.js +0 -444
- package/dist/ui/richText.js.map +0 -1
- package/dist/ui/telemetry/ResponseTracker.d.ts +0 -22
- package/dist/ui/telemetry/ResponseTracker.d.ts.map +0 -1
- package/dist/ui/telemetry/ResponseTracker.js +0 -60
- package/dist/ui/telemetry/ResponseTracker.js.map +0 -1
- package/dist/ui/telemetry/UITelemetry.d.ts +0 -181
- package/dist/ui/telemetry/UITelemetry.d.ts.map +0 -1
- package/dist/ui/telemetry/UITelemetry.js +0 -446
- package/dist/ui/telemetry/UITelemetry.js.map +0 -1
- package/dist/ui/textHighlighter.d.ts +0 -83
- package/dist/ui/textHighlighter.d.ts.map +0 -1
- package/dist/ui/textHighlighter.js +0 -267
- package/dist/ui/textHighlighter.js.map +0 -1
- package/dist/ui/theme.d.ts +0 -351
- package/dist/ui/theme.d.ts.map +0 -1
- package/dist/ui/theme.js +0 -436
- package/dist/ui/theme.js.map +0 -1
- package/dist/ui/toolDisplay.d.ts +0 -221
- package/dist/ui/toolDisplay.d.ts.map +0 -1
- package/dist/ui/toolDisplay.js +0 -1654
- package/dist/ui/toolDisplay.js.map +0 -1
- package/dist/ui/uiConstants.d.ts +0 -253
- package/dist/ui/uiConstants.d.ts.map +0 -1
- package/dist/ui/uiConstants.js +0 -437
- package/dist/ui/uiConstants.js.map +0 -1
- package/dist/utils/analytics.d.ts +0 -2
- package/dist/utils/analytics.d.ts.map +0 -1
- package/dist/utils/analytics.js +0 -51
- package/dist/utils/analytics.js.map +0 -1
- package/dist/utils/askUserPrompt.d.ts +0 -21
- package/dist/utils/askUserPrompt.d.ts.map +0 -1
- package/dist/utils/askUserPrompt.js +0 -87
- package/dist/utils/askUserPrompt.js.map +0 -1
- package/dist/utils/asyncUtils.d.ts +0 -95
- package/dist/utils/asyncUtils.d.ts.map +0 -1
- package/dist/utils/asyncUtils.js +0 -286
- package/dist/utils/asyncUtils.js.map +0 -1
- package/dist/utils/debugLogger.d.ts +0 -6
- package/dist/utils/debugLogger.d.ts.map +0 -1
- package/dist/utils/debugLogger.js +0 -39
- package/dist/utils/debugLogger.js.map +0 -1
- package/dist/utils/errorUtils.d.ts +0 -12
- package/dist/utils/errorUtils.d.ts.map +0 -1
- package/dist/utils/errorUtils.js +0 -83
- package/dist/utils/errorUtils.js.map +0 -1
- package/dist/utils/frontmatter.d.ts +0 -10
- package/dist/utils/frontmatter.d.ts.map +0 -1
- package/dist/utils/frontmatter.js +0 -78
- package/dist/utils/frontmatter.js.map +0 -1
- package/dist/utils/lambdaClient.d.ts +0 -35
- package/dist/utils/lambdaClient.d.ts.map +0 -1
- package/dist/utils/lambdaClient.js +0 -81
- package/dist/utils/lambdaClient.js.map +0 -1
- package/dist/utils/packageInfo.d.ts +0 -14
- package/dist/utils/packageInfo.d.ts.map +0 -1
- package/dist/utils/packageInfo.js +0 -45
- package/dist/utils/packageInfo.js.map +0 -1
- package/dist/utils/planFormatter.d.ts +0 -34
- package/dist/utils/planFormatter.d.ts.map +0 -1
- package/dist/utils/planFormatter.js +0 -141
- package/dist/utils/planFormatter.js.map +0 -1
- package/dist/utils/securityUtils.d.ts +0 -145
- package/dist/utils/securityUtils.d.ts.map +0 -1
- package/dist/utils/securityUtils.js +0 -507
- package/dist/utils/securityUtils.js.map +0 -1
- package/dist/utils/statusReporter.d.ts +0 -6
- package/dist/utils/statusReporter.d.ts.map +0 -1
- package/dist/utils/statusReporter.js +0 -26
- package/dist/utils/statusReporter.js.map +0 -1
- package/dist/workspace.d.ts +0 -8
- package/dist/workspace.d.ts.map +0 -1
- package/dist/workspace.js +0 -135
- package/dist/workspace.js.map +0 -1
- package/dist/workspace.validator.d.ts +0 -49
- package/dist/workspace.validator.d.ts.map +0 -1
- package/dist/workspace.validator.js +0 -215
- package/dist/workspace.validator.js.map +0 -1
|
@@ -1,532 +0,0 @@
|
|
|
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
|
-
/**
|
|
17
|
-
* Patterns that conclusively show a test or build is currently
|
|
18
|
-
* failing in the response/tool output. When ANY of these match the
|
|
19
|
-
* task is NOT complete — even if the model claims otherwise. This
|
|
20
|
-
* mirrors what a human reviewer would catch: "you said done but
|
|
21
|
-
* jest is reporting 3 failures right above your message".
|
|
22
|
-
*
|
|
23
|
-
* Patterns are intentionally narrow — they must require the FAILURE
|
|
24
|
-
* be currently happening, not historical context like "we fixed
|
|
25
|
-
* the test that was failing".
|
|
26
|
-
*/
|
|
27
|
-
const FAILING_TEST_BUILD_PATTERNS = [
|
|
28
|
-
// Jest/Vitest summary lines
|
|
29
|
-
{ name: 'jest test count', re: /Tests:\s+\d+\s+failed/i },
|
|
30
|
-
{ name: 'jest suite count', re: /Test Suites:\s+\d+\s+failed/i },
|
|
31
|
-
{ name: 'jest fail line', re: /^\s*FAIL\s+[\w./-]+\.(test|spec)\.[jt]sx?\s*$/m },
|
|
32
|
-
// Vitest
|
|
33
|
-
{ name: 'vitest fail count', re: /\b\d+\s+failed\s*\|\s*\d+\s+passed/i },
|
|
34
|
-
// Mocha / generic
|
|
35
|
-
{ name: 'failing tests count', re: /\b\d+\s+failing\b/i },
|
|
36
|
-
// TypeScript / build errors
|
|
37
|
-
{ name: 'tsc error', re: /\berror\s+TS\d{4,5}\b:/i },
|
|
38
|
-
{ name: 'webpack failed', re: /webpack[^\n]*failed/i },
|
|
39
|
-
{ name: 'compilation failed', re: /(Compilation|Build)\s+failed\b/i },
|
|
40
|
-
// Generic exit-code 1 from a recent command. Matches both
|
|
41
|
-
// "exited with code 1" and "exited 2" / "exit code 1".
|
|
42
|
-
{ name: 'exited non-zero', re: /\bexit(?:ed)?\s+(?:with\s+)?(?:code\s+)?[1-9]\d*\b/i },
|
|
43
|
-
// Linter/formatter blocking
|
|
44
|
-
{ name: 'eslint error', re: /\b\d+\s+errors?\b\s*(?:and\s+\d+\s+warnings?\b)?[\s\S]{0,40}eslint/i },
|
|
45
|
-
];
|
|
46
|
-
/**
|
|
47
|
-
* Returns the name of the matched failure pattern, or null.
|
|
48
|
-
* Used to FORCE the auto-loop to continue when tests are red.
|
|
49
|
-
*/
|
|
50
|
-
export function detectFailingTestOrBuild(text) {
|
|
51
|
-
if (!text || !text.trim())
|
|
52
|
-
return null;
|
|
53
|
-
// Only scan the last ~6KB of the response — failing tests appear
|
|
54
|
-
// in the recent tool output, and scanning the whole transcript
|
|
55
|
-
// can match historical context ("the test we fixed was failing").
|
|
56
|
-
const tail = text.length > 6000 ? text.slice(-6000) : text;
|
|
57
|
-
for (const { name, re } of FAILING_TEST_BUILD_PATTERNS) {
|
|
58
|
-
if (re.test(tail))
|
|
59
|
-
return name;
|
|
60
|
-
}
|
|
61
|
-
return null;
|
|
62
|
-
}
|
|
63
|
-
// Keywords that strongly indicate task completion
|
|
64
|
-
const STRONG_COMPLETION_PATTERNS = [
|
|
65
|
-
/^(all\s+)?tasks?\s+(are\s+)?(now\s+)?(complete|done|finished)/im,
|
|
66
|
-
/^(i('ve|'m|\s+have|\s+am)\s+)?(successfully\s+)?(completed?|finished|done)\s+(all|the|with|everything)/im,
|
|
67
|
-
/^everything\s+(is\s+)?(now\s+)?(complete|done|finished)/im,
|
|
68
|
-
/^the\s+requested?\s+(task|work|changes?)\s+(is|are|has been)\s+(complete|done|finished)/im,
|
|
69
|
-
/^i\s+have\s+(now\s+)?(successfully\s+)?(completed?|finished|done)\s+(all|the|everything)/im,
|
|
70
|
-
/no\s+(more|further)\s+(tasks?|work|actions?|changes?)\s+(are\s+)?(needed|required|necessary)/im,
|
|
71
|
-
];
|
|
72
|
-
// Keywords that indicate work is still in progress
|
|
73
|
-
const INCOMPLETE_WORK_PATTERNS = [
|
|
74
|
-
/\b(next|then|now\s+I('ll|\s+will)|let\s+me|I('ll|\s+will)|going\s+to|about\s+to)\b/i,
|
|
75
|
-
/\b(continue|continuing|proceed|proceeding|working\s+on)\b/i,
|
|
76
|
-
/\b(TODO|FIXME|WIP|in\s+progress)\b/i,
|
|
77
|
-
/\b(still\s+need|remaining|left\s+to\s+do|more\s+to\s+do)\b/i,
|
|
78
|
-
/\b(step\s+\d+|phase\s+\d+|iteration\s+\d+)\b/i,
|
|
79
|
-
/\b(haven'?t\s+(yet|finished)|not\s+yet\s+(done|complete|finished))\b/i,
|
|
80
|
-
];
|
|
81
|
-
// Patterns that indicate documentation spam instead of real work
|
|
82
|
-
const DOCUMENTATION_SPAM_PATTERNS = [
|
|
83
|
-
/creat(ed?|ing)\s+.{0,30}?\.(md|markdown)\b/i,
|
|
84
|
-
/writ(e|ing|ten)\s+.{0,30}?(summary|report|documentation|readme)/i,
|
|
85
|
-
/\b(FINAL|COMPLETE|ULTIMATE|MASTER)_.*\.(md|markdown)\b/i,
|
|
86
|
-
/\b(DEPLOYMENT|HANDOVER|SUMMARY|REPORT).*\.(md|markdown)\b/i,
|
|
87
|
-
/generat(ed?|ing)\s+.{0,30}?(documentation|summary|report)/i,
|
|
88
|
-
];
|
|
89
|
-
// Keywords that indicate pending actions
|
|
90
|
-
const PENDING_ACTION_PATTERNS = [
|
|
91
|
-
/\b(need\s+to|should|must|have\s+to|requires?)\b/i,
|
|
92
|
-
/\b(waiting|pending|queued)\b/i,
|
|
93
|
-
/\b(before\s+I\s+can|after\s+that|once\s+that)\b/i,
|
|
94
|
-
/\b(running|executing|processing)\b/i,
|
|
95
|
-
];
|
|
96
|
-
// Keywords that indicate errors or issues
|
|
97
|
-
const ERROR_PATTERNS = [
|
|
98
|
-
/\b(error|failed|failure|exception|issue|problem|bug)\b/i,
|
|
99
|
-
/\b(can'?t|cannot|couldn'?t|unable\s+to)\b/i,
|
|
100
|
-
/\b(fix|fixing|resolve|resolving|debug|debugging)\b/i,
|
|
101
|
-
];
|
|
102
|
-
// Keywords that indicate follow-up questions
|
|
103
|
-
const FOLLOWUP_QUESTION_PATTERNS = [
|
|
104
|
-
/\b(would\s+you\s+like|do\s+you\s+want|shall\s+I|should\s+I)\b/i,
|
|
105
|
-
/\b(let\s+me\s+know|please\s+(confirm|tell|let))\b/i,
|
|
106
|
-
/\?$/m,
|
|
107
|
-
];
|
|
108
|
-
// Keywords that indicate future work
|
|
109
|
-
const FUTURE_WORK_PATTERNS = [
|
|
110
|
-
/\b(could\s+also|might\s+want\s+to|consider|recommend)\b/i,
|
|
111
|
-
/\b(future|later|eventually|when\s+you\s+have\s+time)\b/i,
|
|
112
|
-
/\b(improvement|enhancement|optimization)\b/i,
|
|
113
|
-
];
|
|
114
|
-
// Read-only tool names
|
|
115
|
-
const READ_ONLY_TOOLS = new Set([
|
|
116
|
-
'read_file',
|
|
117
|
-
'Read',
|
|
118
|
-
'list_dir',
|
|
119
|
-
'list_files',
|
|
120
|
-
'search_text',
|
|
121
|
-
'grep',
|
|
122
|
-
'Grep',
|
|
123
|
-
'glob',
|
|
124
|
-
'Glob',
|
|
125
|
-
'git_status',
|
|
126
|
-
'git_log',
|
|
127
|
-
'git_diff',
|
|
128
|
-
]);
|
|
129
|
-
// Write/action tool names - exported for use in completion detection
|
|
130
|
-
export const WRITE_TOOLS = new Set([
|
|
131
|
-
'edit_file',
|
|
132
|
-
'Edit',
|
|
133
|
-
'write_file',
|
|
134
|
-
'Write',
|
|
135
|
-
'bash',
|
|
136
|
-
'Bash',
|
|
137
|
-
'execute_command',
|
|
138
|
-
'git_commit',
|
|
139
|
-
'git_push',
|
|
140
|
-
'NotebookEdit',
|
|
141
|
-
]);
|
|
142
|
-
export class TaskCompletionDetector {
|
|
143
|
-
toolHistory = [];
|
|
144
|
-
responseHistory = [];
|
|
145
|
-
lastToolNames = [];
|
|
146
|
-
consecutiveNoTools = 0;
|
|
147
|
-
todoStats = { pending: 0, completed: 0 };
|
|
148
|
-
constructor() {
|
|
149
|
-
this.reset();
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* Reset the detector state for a new task
|
|
153
|
-
*/
|
|
154
|
-
reset() {
|
|
155
|
-
this.toolHistory = [];
|
|
156
|
-
this.responseHistory = [];
|
|
157
|
-
this.lastToolNames = [];
|
|
158
|
-
this.consecutiveNoTools = 0;
|
|
159
|
-
this.todoStats = { pending: 0, completed: 0 };
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* Record a tool call
|
|
163
|
-
*/
|
|
164
|
-
recordToolCall(toolName, success, hasOutput) {
|
|
165
|
-
this.toolHistory.push({
|
|
166
|
-
toolName,
|
|
167
|
-
timestamp: Date.now(),
|
|
168
|
-
success,
|
|
169
|
-
hasOutput,
|
|
170
|
-
});
|
|
171
|
-
this.lastToolNames.push(toolName);
|
|
172
|
-
// Keep only recent history
|
|
173
|
-
if (this.toolHistory.length > 100) {
|
|
174
|
-
this.toolHistory = this.toolHistory.slice(-100);
|
|
175
|
-
}
|
|
176
|
-
if (this.lastToolNames.length > 20) {
|
|
177
|
-
this.lastToolNames = this.lastToolNames.slice(-20);
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
/**
|
|
181
|
-
* Record a response (call after each AI response)
|
|
182
|
-
*/
|
|
183
|
-
recordResponse(response, toolsUsed) {
|
|
184
|
-
this.responseHistory.push(response);
|
|
185
|
-
if (toolsUsed.length === 0) {
|
|
186
|
-
this.consecutiveNoTools++;
|
|
187
|
-
}
|
|
188
|
-
else {
|
|
189
|
-
this.consecutiveNoTools = 0;
|
|
190
|
-
this.lastToolNames = toolsUsed;
|
|
191
|
-
}
|
|
192
|
-
// Keep only recent history
|
|
193
|
-
if (this.responseHistory.length > 20) {
|
|
194
|
-
this.responseHistory = this.responseHistory.slice(-20);
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
/**
|
|
198
|
-
* Update todo statistics
|
|
199
|
-
*/
|
|
200
|
-
updateTodoStats(pending, completed) {
|
|
201
|
-
this.todoStats = { pending, completed };
|
|
202
|
-
}
|
|
203
|
-
/**
|
|
204
|
-
* Analyze the current state and determine if the task is complete
|
|
205
|
-
*/
|
|
206
|
-
analyzeCompletion(currentResponse, toolsUsedThisRound) {
|
|
207
|
-
this.recordResponse(currentResponse, toolsUsedThisRound);
|
|
208
|
-
const signals = this.gatherSignals(currentResponse, toolsUsedThisRound);
|
|
209
|
-
const confidence = this.calculateConfidence(signals);
|
|
210
|
-
signals.completionConfidence = confidence;
|
|
211
|
-
// OVERRIDE: if the response or recent tool output shows visible
|
|
212
|
-
// test/build failures, the task is NEVER complete — even if the
|
|
213
|
-
// model claims otherwise. This is the single highest-leverage
|
|
214
|
-
// upgrade for Claude-Code-grade auto-loop behavior: the model
|
|
215
|
-
// can't accidentally (or confidently) declare victory while
|
|
216
|
-
// tests are red.
|
|
217
|
-
const failingSignal = detectFailingTestOrBuild(currentResponse);
|
|
218
|
-
if (failingSignal) {
|
|
219
|
-
return {
|
|
220
|
-
isComplete: false,
|
|
221
|
-
confidence,
|
|
222
|
-
signals,
|
|
223
|
-
reason: `Test/build failure visible in response: ${failingSignal}. Override: continue until green.`,
|
|
224
|
-
shouldVerify: false,
|
|
225
|
-
verificationPrompt: undefined,
|
|
226
|
-
};
|
|
227
|
-
}
|
|
228
|
-
// Determine completion status
|
|
229
|
-
let isComplete = false;
|
|
230
|
-
let reason = '';
|
|
231
|
-
let shouldVerify = false;
|
|
232
|
-
let verificationPrompt;
|
|
233
|
-
// High confidence completion
|
|
234
|
-
if (confidence >= 0.85 && signals.hasExplicitCompletionStatement && !signals.hasIncompleteWorkIndicators) {
|
|
235
|
-
isComplete = true;
|
|
236
|
-
reason = 'High confidence explicit completion statement with no incomplete work indicators';
|
|
237
|
-
}
|
|
238
|
-
// Medium confidence - needs verification
|
|
239
|
-
else if (confidence >= 0.6 && signals.hasExplicitCompletionStatement) {
|
|
240
|
-
shouldVerify = true;
|
|
241
|
-
reason = 'Medium confidence completion - AI verification recommended';
|
|
242
|
-
verificationPrompt = this.generateVerificationPrompt(signals);
|
|
243
|
-
}
|
|
244
|
-
// Low confidence - likely not complete
|
|
245
|
-
else if (confidence < 0.4) {
|
|
246
|
-
isComplete = false;
|
|
247
|
-
reason = this.getLowConfidenceReason(signals);
|
|
248
|
-
}
|
|
249
|
-
// Ambiguous case - check for stagnation
|
|
250
|
-
else if (this.consecutiveNoTools >= 3 && !signals.hasIncompleteWorkIndicators) {
|
|
251
|
-
shouldVerify = true;
|
|
252
|
-
reason = 'No tool activity for multiple rounds - verification needed';
|
|
253
|
-
verificationPrompt = this.generateStagnationVerificationPrompt();
|
|
254
|
-
}
|
|
255
|
-
// Default: not complete
|
|
256
|
-
else {
|
|
257
|
-
isComplete = false;
|
|
258
|
-
reason = 'Active work indicators detected or low completion confidence';
|
|
259
|
-
}
|
|
260
|
-
return {
|
|
261
|
-
isComplete,
|
|
262
|
-
confidence,
|
|
263
|
-
signals,
|
|
264
|
-
reason,
|
|
265
|
-
shouldVerify,
|
|
266
|
-
verificationPrompt,
|
|
267
|
-
};
|
|
268
|
-
}
|
|
269
|
-
/**
|
|
270
|
-
* Gather all completion signals from the current state
|
|
271
|
-
*/
|
|
272
|
-
gatherSignals(response, toolsUsed) {
|
|
273
|
-
const hasExplicitCompletionStatement = STRONG_COMPLETION_PATTERNS.some((p) => p.test(response));
|
|
274
|
-
const hasIncompleteWorkIndicators = INCOMPLETE_WORK_PATTERNS.some((p) => p.test(response));
|
|
275
|
-
const hasPendingActionIndicators = PENDING_ACTION_PATTERNS.some((p) => p.test(response));
|
|
276
|
-
const hasErrorIndicators = ERROR_PATTERNS.some((p) => p.test(response));
|
|
277
|
-
const hasFollowUpQuestions = FOLLOWUP_QUESTION_PATTERNS.some((p) => p.test(response));
|
|
278
|
-
const mentionsFutureWork = FUTURE_WORK_PATTERNS.some((p) => p.test(response));
|
|
279
|
-
const hasDocumentationSpam = DOCUMENTATION_SPAM_PATTERNS.some((p) => p.test(response));
|
|
280
|
-
const lastToolWasReadOnly = toolsUsed.length > 0 && toolsUsed.every((t) => READ_ONLY_TOOLS.has(t));
|
|
281
|
-
const recentTools = this.toolHistory.filter((t) => t.success && Date.now() - t.timestamp < 60000);
|
|
282
|
-
const hasRecentFileWrites = recentTools.some((t) => t.toolName === 'edit_file' || t.toolName === 'Edit' ||
|
|
283
|
-
t.toolName === 'write_file' || t.toolName === 'Write');
|
|
284
|
-
const hasRecentCommits = recentTools.some((t) => t.toolName === 'bash' || t.toolName === 'Bash') && this.responseHistory.some((r) => r.includes('git commit') || r.includes('committed'));
|
|
285
|
-
return {
|
|
286
|
-
hasExplicitCompletionStatement,
|
|
287
|
-
hasIncompleteWorkIndicators,
|
|
288
|
-
hasPendingActionIndicators,
|
|
289
|
-
hasErrorIndicators,
|
|
290
|
-
hasFollowUpQuestions,
|
|
291
|
-
hasDocumentationSpam,
|
|
292
|
-
toolsUsedInLastResponse: toolsUsed.length,
|
|
293
|
-
lastToolWasReadOnly,
|
|
294
|
-
consecutiveResponsesWithoutTools: this.consecutiveNoTools,
|
|
295
|
-
hasRecentFileWrites,
|
|
296
|
-
hasRecentCommits,
|
|
297
|
-
todoItemsPending: this.todoStats.pending,
|
|
298
|
-
todoItemsCompleted: this.todoStats.completed,
|
|
299
|
-
mentionsFutureWork,
|
|
300
|
-
completionConfidence: 0, // Will be calculated
|
|
301
|
-
};
|
|
302
|
-
}
|
|
303
|
-
/**
|
|
304
|
-
* Calculate confidence score for task completion
|
|
305
|
-
*/
|
|
306
|
-
calculateConfidence(signals) {
|
|
307
|
-
let score = 0.5; // Start at neutral
|
|
308
|
-
// Strong positive signals
|
|
309
|
-
if (signals.hasExplicitCompletionStatement)
|
|
310
|
-
score += 0.25;
|
|
311
|
-
if (signals.hasRecentCommits)
|
|
312
|
-
score += 0.1;
|
|
313
|
-
if (signals.todoItemsPending === 0 && signals.todoItemsCompleted > 0)
|
|
314
|
-
score += 0.15;
|
|
315
|
-
// Strong negative signals
|
|
316
|
-
if (signals.hasIncompleteWorkIndicators)
|
|
317
|
-
score -= 0.3;
|
|
318
|
-
if (signals.hasPendingActionIndicators)
|
|
319
|
-
score -= 0.2;
|
|
320
|
-
if (signals.hasErrorIndicators)
|
|
321
|
-
score -= 0.25;
|
|
322
|
-
if (signals.todoItemsPending > 0)
|
|
323
|
-
score -= 0.15;
|
|
324
|
-
// Documentation spam is a VERY strong negative signal - it means the AI is
|
|
325
|
-
// creating summary files instead of doing actual work
|
|
326
|
-
if (signals.hasDocumentationSpam)
|
|
327
|
-
score -= 0.4;
|
|
328
|
-
// Moderate signals
|
|
329
|
-
if (signals.toolsUsedInLastResponse > 0 && !signals.lastToolWasReadOnly)
|
|
330
|
-
score -= 0.1;
|
|
331
|
-
if (signals.consecutiveResponsesWithoutTools >= 2)
|
|
332
|
-
score += 0.1;
|
|
333
|
-
if (signals.hasFollowUpQuestions)
|
|
334
|
-
score -= 0.1;
|
|
335
|
-
if (signals.mentionsFutureWork && signals.hasExplicitCompletionStatement)
|
|
336
|
-
score += 0.05;
|
|
337
|
-
// Clamp to 0-1 range
|
|
338
|
-
return Math.max(0, Math.min(1, score));
|
|
339
|
-
}
|
|
340
|
-
/**
|
|
341
|
-
* Generate a verification prompt to ask the AI if the task is truly complete
|
|
342
|
-
*/
|
|
343
|
-
generateVerificationPrompt(signals) {
|
|
344
|
-
const concerns = [];
|
|
345
|
-
if (signals.hasDocumentationSpam) {
|
|
346
|
-
concerns.push('you created documentation/summary files instead of completing actual work');
|
|
347
|
-
}
|
|
348
|
-
if (signals.todoItemsPending > 0) {
|
|
349
|
-
concerns.push(`there are ${signals.todoItemsPending} todo items still pending`);
|
|
350
|
-
}
|
|
351
|
-
if (signals.hasFollowUpQuestions) {
|
|
352
|
-
concerns.push('you asked follow-up questions');
|
|
353
|
-
}
|
|
354
|
-
if (signals.mentionsFutureWork) {
|
|
355
|
-
concerns.push('you mentioned potential future improvements');
|
|
356
|
-
}
|
|
357
|
-
const concernsText = concerns.length > 0 ? `However, ${concerns.join(' and ')}. ` : '';
|
|
358
|
-
return `You indicated the task might be complete. ${concernsText}Please confirm:
|
|
359
|
-
|
|
360
|
-
1. Have ALL the originally requested changes been implemented in actual code files?
|
|
361
|
-
2. Are there any remaining errors or issues that need to be fixed?
|
|
362
|
-
3. Is there anything else you need to do to fully complete this task?
|
|
363
|
-
|
|
364
|
-
IMPORTANT: Creating markdown documentation files does NOT count as completing a task.
|
|
365
|
-
Focus on the actual code/implementation work requested.
|
|
366
|
-
|
|
367
|
-
If everything is truly done, respond with exactly: "TASK_FULLY_COMPLETE"
|
|
368
|
-
If there's more work to do, describe what remains and continue working.`;
|
|
369
|
-
}
|
|
370
|
-
/**
|
|
371
|
-
* Generate a verification prompt for stagnation cases
|
|
372
|
-
*/
|
|
373
|
-
generateStagnationVerificationPrompt() {
|
|
374
|
-
return `I notice you haven't used any tools for several responses. Let me check:
|
|
375
|
-
|
|
376
|
-
1. Is the task complete? If so, summarize what was accomplished.
|
|
377
|
-
2. Are you blocked on something? If so, what do you need?
|
|
378
|
-
3. Is there more work to do? If so, please continue.
|
|
379
|
-
|
|
380
|
-
If everything is done, respond with exactly: "TASK_FULLY_COMPLETE"
|
|
381
|
-
Otherwise, please continue with the next action.`;
|
|
382
|
-
}
|
|
383
|
-
/**
|
|
384
|
-
* Get a human-readable reason for low confidence
|
|
385
|
-
*/
|
|
386
|
-
getLowConfidenceReason(signals) {
|
|
387
|
-
const reasons = [];
|
|
388
|
-
if (signals.hasDocumentationSpam) {
|
|
389
|
-
reasons.push('creating documentation instead of actual work');
|
|
390
|
-
}
|
|
391
|
-
if (signals.hasIncompleteWorkIndicators) {
|
|
392
|
-
reasons.push('incomplete work indicators detected');
|
|
393
|
-
}
|
|
394
|
-
if (signals.hasPendingActionIndicators) {
|
|
395
|
-
reasons.push('pending action indicators found');
|
|
396
|
-
}
|
|
397
|
-
if (signals.hasErrorIndicators) {
|
|
398
|
-
reasons.push('error indicators present');
|
|
399
|
-
}
|
|
400
|
-
if (signals.toolsUsedInLastResponse > 0 && !signals.lastToolWasReadOnly) {
|
|
401
|
-
reasons.push('write operations performed');
|
|
402
|
-
}
|
|
403
|
-
if (signals.todoItemsPending > 0) {
|
|
404
|
-
reasons.push(`${signals.todoItemsPending} todo items still pending`);
|
|
405
|
-
}
|
|
406
|
-
return reasons.length > 0 ? reasons.join(', ') : 'no clear completion signals';
|
|
407
|
-
}
|
|
408
|
-
/**
|
|
409
|
-
* Check if a verification response confirms completion
|
|
410
|
-
*/
|
|
411
|
-
isVerificationConfirmed(verificationResponse) {
|
|
412
|
-
const hasCompletionMarker = (verificationResponse.includes('TASK_FULLY_COMPLETE') ||
|
|
413
|
-
/^(yes|confirmed?|all\s+done|everything\s+(is\s+)?complete)/im.test(verificationResponse.trim()));
|
|
414
|
-
// Even if completion marker is present, check for contradictions
|
|
415
|
-
if (hasCompletionMarker && this.responseContainsIncompleteIndicators(verificationResponse)) {
|
|
416
|
-
return false;
|
|
417
|
-
}
|
|
418
|
-
return hasCompletionMarker;
|
|
419
|
-
}
|
|
420
|
-
/**
|
|
421
|
-
* Check if a response contradicts itself by saying "complete" but also indicating incomplete work.
|
|
422
|
-
* This comprehensive list catches many ways AI might admit work isn't done while claiming completion.
|
|
423
|
-
*/
|
|
424
|
-
responseContainsIncompleteIndicators(response) {
|
|
425
|
-
const incompletePatterns = [
|
|
426
|
-
// === INTEGRATION/DEPLOYMENT STATE ===
|
|
427
|
-
/hasn'?t\s+been\s+(integrated|implemented|connected|deployed|added|completed|tested|verified)\s*(yet|still)?/i,
|
|
428
|
-
/not\s+(yet\s+)?(integrated|implemented|connected|deployed|functional|working|complete|tested|verified)/i,
|
|
429
|
-
/ready\s+(for|to\s+be)\s+(integration|integrated|connected|deployed|testing|review)/i,
|
|
430
|
-
/needs?\s+to\s+be\s+(integrated|connected|deployed|added|hooked|wired|tested|reviewed|merged)/i,
|
|
431
|
-
/was\s+not\s+(performed|completed|implemented|deployed|integrated|tested)/i,
|
|
432
|
-
/the\s+\w+\s+(service|module|component|feature)\s+hasn'?t\s+been/i,
|
|
433
|
-
// === PARTIAL/INCOMPLETE STATE ===
|
|
434
|
-
/still\s+(stores?|uses?|has|contains?|needs?|requires?|missing|lacks?|broken)/i,
|
|
435
|
-
/\b(partially|mostly|almost|nearly|not\s+fully)\s+(complete|done|finished|implemented|working)/i,
|
|
436
|
-
/\b(only\s+)?(part|some|half|portion)\s+of\s+(the\s+)?(task|work|feature|implementation)/i,
|
|
437
|
-
// === QUALIFIER WORDS (uncertain completion) ===
|
|
438
|
-
/\b(should|might|may|could|appears?\s+to)\s+be\s+(complete|done|working|functional)/i,
|
|
439
|
-
/\btheoretically\s+(complete|done|working|functional)/i,
|
|
440
|
-
/\b(assuming|provided|if)\s+(everything|it|this|that)\s+(works?|is\s+correct)/i,
|
|
441
|
-
// === SELF-CONTRADICTION PHRASES ===
|
|
442
|
-
/\b(done|complete|finished)\s+(but|except|however|although|though)/i,
|
|
443
|
-
/however[,\s].{0,50}?(hasn'?t|not\s+yet|still\s+needs?|pending|remains?|missing|broken|failing)/i,
|
|
444
|
-
/\bbut\s+.{0,30}?(not|hasn'?t|won'?t|can'?t|doesn'?t|isn'?t|wasn'?t)/i,
|
|
445
|
-
// === FUTURE TENSE / DEFERRED WORK ===
|
|
446
|
-
/will\s+(need\s+to|require|have\s+to)\s+(integrate|connect|deploy|complete|implement|test|fix)/i,
|
|
447
|
-
/\b(left\s+as|deferred|postponed|out\s+of\s+scope|for\s+later|in\s+a\s+future)/i,
|
|
448
|
-
/\b(after\s+(restart|reboot|redeploy)|takes?\s+effect\s+after|once\s+you)/i,
|
|
449
|
-
// === REMAINING WORK INDICATORS ===
|
|
450
|
-
/\b(remaining|outstanding|pending|leftover)\s+(tasks?|items?|work|issues?|steps?)/i,
|
|
451
|
-
/\b(more\s+to\s+do|still\s+have\s+to|yet\s+to\s+be\s+done)/i,
|
|
452
|
-
/\b(blocker|blocked\s+by|waiting\s+(for|on)|depends?\s+on)/i,
|
|
453
|
-
// === ERROR/FAILURE STATE ===
|
|
454
|
-
/\b(failing|broken|erroring)\s+(tests?|builds?|checks?|validations?)/i,
|
|
455
|
-
/\btests?\s+(are\s+)?(still\s+)?failing/i,
|
|
456
|
-
/\b(errors?|warnings?|issues?)\s+to\s+(address|fix|resolve)/i,
|
|
457
|
-
/\b(doesn'?t|isn'?t|not)\s+(work|working|functional|functioning)/i,
|
|
458
|
-
// === MANUAL STEPS REQUIRED ===
|
|
459
|
-
/\b(you('ll|\s+will)\s+need\s+to|manually\s+(run|configure|set|update)|requires?\s+user)/i,
|
|
460
|
-
/\b(run\s+this|execute\s+the\s+following|apply\s+the\s+migration)/i,
|
|
461
|
-
// === TODO/FIXME IN PROSE ===
|
|
462
|
-
/\b(todo|fixme|hack|xxx):\s/i,
|
|
463
|
-
/\b(need\s+to|should|must)\s+(add|implement|create|write|build|fix)\b/i,
|
|
464
|
-
// === SCOPE LIMITATIONS ===
|
|
465
|
-
/\b(didn'?t|did\s+not)\s+have\s+(time|chance|opportunity)/i,
|
|
466
|
-
/\b(beyond|outside)\s+(the\s+)?scope/i,
|
|
467
|
-
/\b(for\s+now|at\s+this\s+point|currently)\s*.{0,20}?(not|without|lacks?|missing)/i,
|
|
468
|
-
// === SIMULATION/FAKE OUTPUT INDICATORS ===
|
|
469
|
-
// These indicate the task wasn't actually completed - just simulated
|
|
470
|
-
/\bsimulat(?:ed?|ion|ing)\b/i,
|
|
471
|
-
/\bhypothetical\b/i,
|
|
472
|
-
/\btheoretical(?:ly)?\s+(result|output|outcome|report)/i,
|
|
473
|
-
/\bfake\s+(?:data|report|result|output)/i,
|
|
474
|
-
/\bmock(?:ed|ing)?\s+(?:data|report|result|output)/i,
|
|
475
|
-
/\bfor\s+(?:demonstration|demo)\s+purposes?\s+only/i,
|
|
476
|
-
/\bnot\s+(?:a\s+)?real\s+(?:result|output|execution)/i,
|
|
477
|
-
/\bwould\s+(?:have\s+)?be(?:en)?\s+(?:the\s+)?result/i,
|
|
478
|
-
/\bif\s+(?:this|we|you)\s+(?:were|had)\s+(?:actually|really)/i,
|
|
479
|
-
// === DOCUMENTATION SPAM INDICATORS ===
|
|
480
|
-
// Creating markdown files instead of doing actual work
|
|
481
|
-
/creat(?:ed?|ing)\s+.{0,30}?\.(md|markdown)\b/i,
|
|
482
|
-
/writ(?:e|ing|ten)\s+.{0,30}?(summary|report|documentation|readme)/i,
|
|
483
|
-
/\b(FINAL|COMPLETE|ULTIMATE|MASTER)_.*\.(md|markdown)\b/i,
|
|
484
|
-
/\b(DEPLOYMENT|HANDOVER|SUMMARY|REPORT).*\.(md|markdown)\b/i,
|
|
485
|
-
/generat(?:ed?|ing)\s+.{0,30}?(documentation|summary|report)/i,
|
|
486
|
-
];
|
|
487
|
-
for (const pattern of incompletePatterns) {
|
|
488
|
-
if (pattern.test(response)) {
|
|
489
|
-
return true;
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
return false;
|
|
493
|
-
}
|
|
494
|
-
/**
|
|
495
|
-
* Check if response contains simulation/fake indicators that should prevent completion.
|
|
496
|
-
* Simulated results mean the task was NOT actually completed.
|
|
497
|
-
*/
|
|
498
|
-
containsSimulationIndicators(response) {
|
|
499
|
-
const simulationPatterns = [
|
|
500
|
-
/\bsimulat(?:ed?|ion|ing)\b/i,
|
|
501
|
-
/\bhypothetical\b/i,
|
|
502
|
-
/\btheoretical(?:ly)?\s+(?:result|output|outcome|complete)/i,
|
|
503
|
-
/\bfake\s+(?:data|report|result|output)/i,
|
|
504
|
-
/\bmock(?:ed|ing)?\s+(?:data|report|result|output|exercise)/i,
|
|
505
|
-
/\bdummy\s+(?:data|report|result|output)/i,
|
|
506
|
-
/\bpretend(?:ed|ing)?\b/i,
|
|
507
|
-
/\bimaginary\b/i,
|
|
508
|
-
/\bfictional\b/i,
|
|
509
|
-
/\bfor\s+(?:demonstration|demo)\s+purposes?\s+only/i,
|
|
510
|
-
/\bnot\s+(?:a\s+)?real\b/i,
|
|
511
|
-
/\bwould\s+(?:have\s+)?be(?:en)?\s+(?:the\s+)?result/i,
|
|
512
|
-
/\bsecurity\s+(?:simulation|exercise)\b/i,
|
|
513
|
-
];
|
|
514
|
-
return simulationPatterns.some(pattern => pattern.test(response));
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
/**
|
|
518
|
-
* Create a singleton instance for the shell to use
|
|
519
|
-
*/
|
|
520
|
-
let detectorInstance = null;
|
|
521
|
-
export function getTaskCompletionDetector() {
|
|
522
|
-
if (!detectorInstance) {
|
|
523
|
-
detectorInstance = new TaskCompletionDetector();
|
|
524
|
-
}
|
|
525
|
-
return detectorInstance;
|
|
526
|
-
}
|
|
527
|
-
export function resetTaskCompletionDetector() {
|
|
528
|
-
if (detectorInstance) {
|
|
529
|
-
detectorInstance.reset();
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
//# sourceMappingURL=taskCompletionDetector.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taskCompletionDetector.js","sourceRoot":"","sources":["../../src/core/taskCompletionDetector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA2CH;;;;;;;;;;GAUG;AACH,MAAM,2BAA2B,GAAmC;IAClE,4BAA4B;IAC5B,EAAE,IAAI,EAAE,iBAAiB,EAAE,EAAE,EAAE,wBAAwB,EAAE;IACzD,EAAE,IAAI,EAAE,kBAAkB,EAAE,EAAE,EAAE,8BAA8B,EAAE;IAChE,EAAE,IAAI,E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AC;AACH,CAAC"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Test Failure Monitor - Real-time monitoring of test output for early abort
|
|
3
|
-
*
|
|
4
|
-
* Detects test failures as they stream and can trigger early abort to allow
|
|
5
|
-
* the AI to pivot and replan instead of waiting for a broken test suite to finish.
|
|
6
|
-
*/
|
|
7
|
-
export interface TestMonitorConfig {
|
|
8
|
-
/** Number of test failures before triggering early abort (default: 3) */
|
|
9
|
-
failureThreshold: number;
|
|
10
|
-
/** Whether to abort on first compilation error (default: true) */
|
|
11
|
-
abortOnCompileError: boolean;
|
|
12
|
-
/** Minimum time (ms) to wait before considering abort (default: 5000) */
|
|
13
|
-
minRunTime: number;
|
|
14
|
-
/** Maximum consecutive failures before abort (default: 2) */
|
|
15
|
-
maxConsecutiveFailures: number;
|
|
16
|
-
}
|
|
17
|
-
export interface TestMonitorState {
|
|
18
|
-
failedTests: string[];
|
|
19
|
-
passedTests: number;
|
|
20
|
-
totalTests: number;
|
|
21
|
-
hasCompileError: boolean;
|
|
22
|
-
consecutiveFailures: number;
|
|
23
|
-
shouldAbort: boolean;
|
|
24
|
-
abortReason: string | null;
|
|
25
|
-
suggestions: string[];
|
|
26
|
-
}
|
|
27
|
-
export declare class TestFailureMonitor {
|
|
28
|
-
private config;
|
|
29
|
-
private state;
|
|
30
|
-
private startTime;
|
|
31
|
-
private recentLines;
|
|
32
|
-
private readonly MAX_RECENT_LINES;
|
|
33
|
-
constructor(config?: Partial<TestMonitorConfig>);
|
|
34
|
-
private createInitialState;
|
|
35
|
-
/**
|
|
36
|
-
* Process a line of test output in real-time
|
|
37
|
-
* Returns true if we should abort
|
|
38
|
-
*/
|
|
39
|
-
processLine(line: string): boolean;
|
|
40
|
-
private checkAbortConditions;
|
|
41
|
-
private generateSuggestions;
|
|
42
|
-
/**
|
|
43
|
-
* Get the current monitoring state
|
|
44
|
-
*/
|
|
45
|
-
getState(): TestMonitorState;
|
|
46
|
-
/**
|
|
47
|
-
* Get recent output lines for context
|
|
48
|
-
*/
|
|
49
|
-
getRecentOutput(): string;
|
|
50
|
-
/**
|
|
51
|
-
* Format abort message for AI consumption
|
|
52
|
-
*/
|
|
53
|
-
formatAbortMessage(): string;
|
|
54
|
-
/**
|
|
55
|
-
* Reset the monitor for a new test run
|
|
56
|
-
*/
|
|
57
|
-
reset(): void;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Detect if a command is likely a test command
|
|
61
|
-
*/
|
|
62
|
-
export declare function isTestCommand(command: string): boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Create a test monitor with sensible defaults based on command
|
|
65
|
-
*/
|
|
66
|
-
export declare function createTestMonitor(command: string): TestFailureMonitor | null;
|
|
67
|
-
//# sourceMappingURL=testFailureMonitor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"testFailureMonitor.d.ts","sourceRoot":"","sources":["../../src/core/testFailureMonitor.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,iBAAiB;IAChC,yEAAyE;IACzE,gBAAgB,EAAE,MAAM,CAAC;IACzB,kEAAkE;IAClE,mBAAmB,EAAE,OAAO,CAAC;IAC7B,yEAAyE;IACzE,UAAU,EAAE,MAAM,CAAC;IACnB,6DAA6D;IAC7D,sBAAsB,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,OAAO,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAsCD,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,MAAM,CAAoB;IAClC,OAAO,CAAC,KAAK,C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