@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
package/dist/tools/todoTools.js
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TodoWrite tool — Claude-Code-parity task list.
|
|
3
|
-
*
|
|
4
|
-
* The agent uses TodoWrite to track multi-step work. Each call
|
|
5
|
-
* REPLACES the entire list (not append) so the agent owns the full
|
|
6
|
-
* state each turn. The list is rendered via formatPlan and is
|
|
7
|
-
* surfaced to the user as scrollback so they see what the agent is
|
|
8
|
-
* planning vs. completing.
|
|
9
|
-
*
|
|
10
|
-
* State is kept per-process (CLI = single process), so a session-long
|
|
11
|
-
* todo list persists across turns until the agent rewrites it.
|
|
12
|
-
*/
|
|
13
|
-
import { formatPlan } from '../utils/planFormatter.js';
|
|
14
|
-
/**
|
|
15
|
-
* Module-scoped state. CLI runs one process per session; the list
|
|
16
|
-
* stays in memory until the process exits or the agent rewrites it.
|
|
17
|
-
*/
|
|
18
|
-
let CURRENT_TODOS = [];
|
|
19
|
-
export function getCurrentTodos() {
|
|
20
|
-
return CURRENT_TODOS;
|
|
21
|
-
}
|
|
22
|
-
export function clearCurrentTodos() {
|
|
23
|
-
CURRENT_TODOS = [];
|
|
24
|
-
}
|
|
25
|
-
function normalize(input) {
|
|
26
|
-
if (!Array.isArray(input))
|
|
27
|
-
return [];
|
|
28
|
-
const out = [];
|
|
29
|
-
for (const item of input) {
|
|
30
|
-
if (!item || typeof item !== 'object')
|
|
31
|
-
continue;
|
|
32
|
-
const rec = item;
|
|
33
|
-
const content = typeof rec['content'] === 'string' ? rec['content'].trim() : '';
|
|
34
|
-
if (!content)
|
|
35
|
-
continue;
|
|
36
|
-
const rawStatus = typeof rec['status'] === 'string' ? rec['status'].toLowerCase() : 'pending';
|
|
37
|
-
const status = rawStatus === 'completed' ? 'completed'
|
|
38
|
-
: rawStatus === 'in_progress' || rawStatus === 'in-progress' ? 'in_progress'
|
|
39
|
-
: 'pending';
|
|
40
|
-
const activeForm = typeof rec['activeForm'] === 'string' ? rec['activeForm'].trim() : undefined;
|
|
41
|
-
out.push({ content, status, ...(activeForm ? { activeForm } : {}) });
|
|
42
|
-
}
|
|
43
|
-
return out;
|
|
44
|
-
}
|
|
45
|
-
export function createTodoTools() {
|
|
46
|
-
return [
|
|
47
|
-
{
|
|
48
|
-
name: 'TodoWrite',
|
|
49
|
-
description: [
|
|
50
|
-
'Create or replace the agent\'s working task list. Use proactively for any',
|
|
51
|
-
'multi-step task (3+ distinct steps). Pass the COMPLETE list every time —',
|
|
52
|
-
'each call replaces the previous list. Mark a task `in_progress` BEFORE',
|
|
53
|
-
'starting it and `completed` IMMEDIATELY after, before moving to the next.',
|
|
54
|
-
'The list shows the user what the agent is planning vs. what\'s done.',
|
|
55
|
-
].join(' '),
|
|
56
|
-
parameters: {
|
|
57
|
-
type: 'object',
|
|
58
|
-
properties: {
|
|
59
|
-
todos: {
|
|
60
|
-
type: 'array',
|
|
61
|
-
description: 'The full task list. Replaces the previous one entirely.',
|
|
62
|
-
items: {
|
|
63
|
-
type: 'object',
|
|
64
|
-
properties: {
|
|
65
|
-
content: { type: 'string', description: 'Imperative task title (e.g. "Fix the auth bug").' },
|
|
66
|
-
status: {
|
|
67
|
-
type: 'string',
|
|
68
|
-
enum: ['pending', 'in_progress', 'completed'],
|
|
69
|
-
description: 'Current state. Exactly one task should be in_progress at a time.',
|
|
70
|
-
},
|
|
71
|
-
activeForm: {
|
|
72
|
-
type: 'string',
|
|
73
|
-
description: 'Present-continuous form shown while in_progress (e.g. "Fixing the auth bug"). Optional.',
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
required: ['content', 'status'],
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
required: ['todos'],
|
|
81
|
-
additionalProperties: false,
|
|
82
|
-
},
|
|
83
|
-
handler: async (args) => {
|
|
84
|
-
const todos = normalize(args['todos']);
|
|
85
|
-
CURRENT_TODOS = todos;
|
|
86
|
-
// Soft validation: at most one in_progress at a time.
|
|
87
|
-
const inProgressCount = todos.filter((t) => t.status === 'in_progress').length;
|
|
88
|
-
const validationNote = inProgressCount > 1
|
|
89
|
-
? `\n Warning: ${inProgressCount} tasks are in_progress — only one should be active at a time.`
|
|
90
|
-
: '';
|
|
91
|
-
const planItems = todos.map((t) => ({
|
|
92
|
-
step: t.status === 'in_progress' && t.activeForm ? t.activeForm : t.content,
|
|
93
|
-
status: t.status,
|
|
94
|
-
}));
|
|
95
|
-
const formatted = formatPlan(planItems, { heading: 'Updated Plan' });
|
|
96
|
-
return `${formatted}${validationNote}`;
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
];
|
|
100
|
-
}
|
|
101
|
-
//# sourceMappingURL=todoTools.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"todoTools.js","sourceRoot":"","sources":["../../src/tools/todoTools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,EAAE,UAAU,EAAmB,MAAM,2BAA2B,CAAC;AAQxE;;;GAGG;AACH,IAAI,aAAa,GAAW,EAAE,CAAC;AAE/B,MAAM,UAAU,eAAe;IAC7B,OAAO,aAAa,CAAC;AACvB,CAAC;AACD,MAAM,UAAU,iBAAiB;IAC/B,aAAa,GAAG,EAAE,CAAC;AACrB,CAAC;AAED,SAAS,SAAS,CAAC,KAAc;IAC/B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IACrC,MAAM,GAAG,GAAW,EAAE,CAAC;IACvB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,IAAI,CAAC,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ;YAAE,SAAS;QAChD,MAAM,GAAG,GAAG,IAA+B,CAAC;QAC5C,MAAM,OA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CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC,CAAC;gBACrE,OAAO,GAAG,SAAS,GAAG,cAAc,EAAE,CAAC;YACzC,CAAC;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* RemoteTrigger — Claude-Code-parity webhook ingest.
|
|
3
|
-
*
|
|
4
|
-
* The agent calls RemoteTriggerCreate to register a deliverable
|
|
5
|
-
* trigger; the user (or any external caller) can POST to the
|
|
6
|
-
* portal-relayed URL with a JSON body, which lands in
|
|
7
|
-
* <workingDir>/.erosolar/triggers/<id>.json. RemoteTriggerWait blocks
|
|
8
|
-
* the agent until the file appears (or a timeout is hit). Used for
|
|
9
|
-
* "page me when this CI finishes" / "wake me when the user clicks".
|
|
10
|
-
*
|
|
11
|
-
* The actual external-facing URL is provisioned by AWS Lambda; the
|
|
12
|
-
* CLI's role is to register the trigger id + description and to
|
|
13
|
-
* watch the local drop file. Synthetic local-only triggers (for
|
|
14
|
-
* tests and offline use) just rely on a file write.
|
|
15
|
-
*/
|
|
16
|
-
import type { ToolDefinition } from '../core/toolRuntime.js';
|
|
17
|
-
export interface TriggerRecord {
|
|
18
|
-
id: string;
|
|
19
|
-
description?: string;
|
|
20
|
-
createdAt: string;
|
|
21
|
-
payload?: unknown;
|
|
22
|
-
delivered: boolean;
|
|
23
|
-
deliveredAt?: string;
|
|
24
|
-
}
|
|
25
|
-
export declare function listTriggers(workingDir: string): TriggerRecord[];
|
|
26
|
-
export declare function deliverTrigger(workingDir: string, id: string, payload: unknown): TriggerRecord;
|
|
27
|
-
export declare function createTriggerTools(workingDir: string): ToolDefinition[];
|
|
28
|
-
//# sourceMappingURL=triggerTools.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"triggerTools.d.ts","sourceRoot":"","sources":["../../src/tools/triggerTools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAU7D,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAyBD,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,aAAa,EAAE,CAahE;AAED,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,aAAa,CAgB9F;AAED,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,cAAc,EAAE,CAsIvE"}
|
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* RemoteTrigger — Claude-Code-parity webhook ingest.
|
|
3
|
-
*
|
|
4
|
-
* The agent calls RemoteTriggerCreate to register a deliverable
|
|
5
|
-
* trigger; the user (or any external caller) can POST to the
|
|
6
|
-
* portal-relayed URL with a JSON body, which lands in
|
|
7
|
-
* <workingDir>/.erosolar/triggers/<id>.json. RemoteTriggerWait blocks
|
|
8
|
-
* the agent until the file appears (or a timeout is hit). Used for
|
|
9
|
-
* "page me when this CI finishes" / "wake me when the user clicks".
|
|
10
|
-
*
|
|
11
|
-
* The actual external-facing URL is provisioned by AWS Lambda; the
|
|
12
|
-
* CLI's role is to register the trigger id + description and to
|
|
13
|
-
* watch the local drop file. Synthetic local-only triggers (for
|
|
14
|
-
* tests and offline use) just rely on a file write.
|
|
15
|
-
*/
|
|
16
|
-
import { existsSync, mkdirSync, readFileSync, readdirSync, statSync, unlinkSync, writeFileSync } from 'node:fs';
|
|
17
|
-
import { join } from 'node:path';
|
|
18
|
-
import { callLambda } from '../utils/lambdaClient.js';
|
|
19
|
-
function triggerStore(workingDir) {
|
|
20
|
-
return join(workingDir, '.erosolar', 'triggers');
|
|
21
|
-
}
|
|
22
|
-
function triggerPath(workingDir, id) {
|
|
23
|
-
return join(triggerStore(workingDir), `${id}.json`);
|
|
24
|
-
}
|
|
25
|
-
function safeId(input) {
|
|
26
|
-
const s = typeof input === 'string' ? input.trim() : '';
|
|
27
|
-
if (!s)
|
|
28
|
-
return `trig-${Date.now().toString(36)}`;
|
|
29
|
-
return s.replace(/[^a-zA-Z0-9_-]/g, '-').slice(0, 96);
|
|
30
|
-
}
|
|
31
|
-
function ensureStore(workingDir) {
|
|
32
|
-
const dir = triggerStore(workingDir);
|
|
33
|
-
if (!existsSync(dir))
|
|
34
|
-
mkdirSync(dir, { recursive: true });
|
|
35
|
-
}
|
|
36
|
-
function nowIso() {
|
|
37
|
-
return new Date().toISOString();
|
|
38
|
-
}
|
|
39
|
-
export function listTriggers(workingDir) {
|
|
40
|
-
const dir = triggerStore(workingDir);
|
|
41
|
-
if (!existsSync(dir))
|
|
42
|
-
return [];
|
|
43
|
-
const out = [];
|
|
44
|
-
for (const name of readdirSync(dir)) {
|
|
45
|
-
if (!name.endsWith('.json'))
|
|
46
|
-
continue;
|
|
47
|
-
try {
|
|
48
|
-
out.push(JSON.parse(readFileSync(join(dir, name), 'utf-8')));
|
|
49
|
-
}
|
|
50
|
-
catch {
|
|
51
|
-
// Skip malformed.
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return out.sort((a, b) => b.createdAt.localeCompare(a.createdAt));
|
|
55
|
-
}
|
|
56
|
-
export function deliverTrigger(workingDir, id, payload) {
|
|
57
|
-
ensureStore(workingDir);
|
|
58
|
-
const path = triggerPath(workingDir, id);
|
|
59
|
-
const existing = existsSync(path)
|
|
60
|
-
? JSON.parse(readFileSync(path, 'utf-8'))
|
|
61
|
-
: { id, createdAt: nowIso() };
|
|
62
|
-
const record = {
|
|
63
|
-
id: existing.id ?? id,
|
|
64
|
-
description: existing.description,
|
|
65
|
-
createdAt: existing.createdAt ?? nowIso(),
|
|
66
|
-
payload,
|
|
67
|
-
delivered: true,
|
|
68
|
-
deliveredAt: nowIso(),
|
|
69
|
-
};
|
|
70
|
-
writeFileSync(path, JSON.stringify(record, null, 2), 'utf-8');
|
|
71
|
-
return record;
|
|
72
|
-
}
|
|
73
|
-
export function createTriggerTools(workingDir) {
|
|
74
|
-
return [
|
|
75
|
-
{
|
|
76
|
-
name: 'RemoteTriggerCreate',
|
|
77
|
-
description: 'Register a webhook-style trigger. Returns a stable id; an external ' +
|
|
78
|
-
'caller can deliver a payload by writing JSON to ' +
|
|
79
|
-
'`.erosolar/triggers/<id>.json` (or POSTing through the AWS Lambda ' +
|
|
80
|
-
'webhook relay if configured). RemoteTriggerWait blocks until the ' +
|
|
81
|
-
'payload arrives.',
|
|
82
|
-
parameters: {
|
|
83
|
-
type: 'object',
|
|
84
|
-
properties: {
|
|
85
|
-
id: { type: 'string', description: 'Stable id (alnum/-/_, ≤96 chars).' },
|
|
86
|
-
description: { type: 'string', description: 'Why this trigger exists.' },
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
handler: async (args) => {
|
|
90
|
-
ensureStore(workingDir);
|
|
91
|
-
const id = safeId(args['id']);
|
|
92
|
-
const path = triggerPath(workingDir, id);
|
|
93
|
-
if (!existsSync(path)) {
|
|
94
|
-
const record = {
|
|
95
|
-
id,
|
|
96
|
-
description: typeof args['description'] === 'string' ? args['description'] : undefined,
|
|
97
|
-
createdAt: nowIso(),
|
|
98
|
-
delivered: false,
|
|
99
|
-
};
|
|
100
|
-
writeFileSync(path, JSON.stringify(record, null, 2), 'utf-8');
|
|
101
|
-
}
|
|
102
|
-
const mirror = await callLambda('cliTriggerRegister', {
|
|
103
|
-
id,
|
|
104
|
-
description: typeof args['description'] === 'string' ? args['description'] : undefined,
|
|
105
|
-
});
|
|
106
|
-
const remoteMsg = mirror.ok
|
|
107
|
-
? `\nWebhook URL: POST ${process.env['EROSOLAR_LAMBDA_BASE'] ?? 'https://cfqeqx4lt9.execute-api.us-east-1.amazonaws.com'}/api/cliWebhook with body { uid, triggerId: "${id}", payload: ... }`
|
|
108
|
-
: `\nRemote registration unavailable (${mirror.error ?? 'unauthenticated'}). Local drop file remains active.`;
|
|
109
|
-
return `Trigger "${id}" registered. Local drop: .erosolar/triggers/${id}.json${remoteMsg}`;
|
|
110
|
-
},
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
name: 'RemoteTriggerWait',
|
|
114
|
-
description: 'Wait for a trigger payload to arrive. Polls the local drop file; ' +
|
|
115
|
-
'returns the payload as soon as `delivered: true` appears, or times ' +
|
|
116
|
-
'out after `timeoutSeconds` (default 60, max 1800).',
|
|
117
|
-
parameters: {
|
|
118
|
-
type: 'object',
|
|
119
|
-
properties: {
|
|
120
|
-
id: { type: 'string' },
|
|
121
|
-
timeoutSeconds: { type: 'number', description: '1..1800. Default 60.' },
|
|
122
|
-
pollMs: { type: 'number', description: 'Poll interval, default 1000.' },
|
|
123
|
-
},
|
|
124
|
-
required: ['id'],
|
|
125
|
-
},
|
|
126
|
-
handler: async (args) => {
|
|
127
|
-
const id = safeId(args['id']);
|
|
128
|
-
const path = triggerPath(workingDir, id);
|
|
129
|
-
const timeout = Math.max(1, Math.min(1800, Number(args['timeoutSeconds']) || 60)) * 1000;
|
|
130
|
-
const interval = Math.max(100, Math.min(10000, Number(args['pollMs']) || 1000));
|
|
131
|
-
const deadline = Date.now() + timeout;
|
|
132
|
-
while (Date.now() < deadline) {
|
|
133
|
-
// Path 1: local drop file (test fixtures, offline runs).
|
|
134
|
-
if (existsSync(path)) {
|
|
135
|
-
try {
|
|
136
|
-
const stat = statSync(path);
|
|
137
|
-
if (stat.size > 0) {
|
|
138
|
-
const record = JSON.parse(readFileSync(path, 'utf-8'));
|
|
139
|
-
if (record.delivered) {
|
|
140
|
-
return JSON.stringify({ id, payload: record.payload, deliveredAt: record.deliveredAt, source: 'local' });
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
catch {
|
|
145
|
-
// Ignore transient read errors during polling.
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
// Path 2: Lambda relay (webhook delivered to Firestore).
|
|
149
|
-
const remote = await callLambda('cliTriggerPoll', { id });
|
|
150
|
-
if (remote.ok && remote.result?.found && remote.result.delivered) {
|
|
151
|
-
// Mirror the delivered payload to local for parity.
|
|
152
|
-
try {
|
|
153
|
-
writeFileSync(path, JSON.stringify({
|
|
154
|
-
id,
|
|
155
|
-
createdAt: nowIso(),
|
|
156
|
-
payload: remote.result.payload,
|
|
157
|
-
delivered: true,
|
|
158
|
-
deliveredAt: remote.result.deliveredAt
|
|
159
|
-
? new Date(remote.result.deliveredAt).toISOString()
|
|
160
|
-
: nowIso(),
|
|
161
|
-
}, null, 2), 'utf-8');
|
|
162
|
-
}
|
|
163
|
-
catch {
|
|
164
|
-
// Mirror is best-effort; the JSON return below is the source of truth.
|
|
165
|
-
}
|
|
166
|
-
return JSON.stringify({
|
|
167
|
-
id,
|
|
168
|
-
payload: remote.result.payload,
|
|
169
|
-
deliveredAt: remote.result.deliveredAt,
|
|
170
|
-
source: 'webhook',
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
await new Promise((r) => setTimeout(r, interval));
|
|
174
|
-
}
|
|
175
|
-
return `RemoteTriggerWait timed out after ${timeout / 1000}s for "${id}".`;
|
|
176
|
-
},
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
name: 'RemoteTriggerList',
|
|
180
|
-
description: 'List registered triggers (delivered and pending).',
|
|
181
|
-
parameters: { type: 'object', properties: {} },
|
|
182
|
-
handler: async () => {
|
|
183
|
-
const items = listTriggers(workingDir);
|
|
184
|
-
if (items.length === 0)
|
|
185
|
-
return 'No triggers.';
|
|
186
|
-
return items
|
|
187
|
-
.map((t) => `${t.id} [${t.delivered ? 'delivered' : 'pending'}] ${t.description ?? ''}`)
|
|
188
|
-
.join('\n');
|
|
189
|
-
},
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
name: 'RemoteTriggerDelete',
|
|
193
|
-
description: 'Delete a trigger record.',
|
|
194
|
-
parameters: {
|
|
195
|
-
type: 'object',
|
|
196
|
-
properties: { id: { type: 'string' } },
|
|
197
|
-
required: ['id'],
|
|
198
|
-
},
|
|
199
|
-
handler: async (args) => {
|
|
200
|
-
const id = safeId(args['id']);
|
|
201
|
-
const path = triggerPath(workingDir, id);
|
|
202
|
-
if (!existsSync(path))
|
|
203
|
-
return `No trigger "${id}".`;
|
|
204
|
-
unlinkSync(path);
|
|
205
|
-
return `Trigger "${id}" deleted.`;
|
|
206
|
-
},
|
|
207
|
-
},
|
|
208
|
-
];
|
|
209
|
-
}
|
|
210
|
-
//# sourceMappingURL=triggerTools.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"triggerTools.js","sourceRoot":"","sources":["../../src/tools/triggerTools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAChH,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAkBtD,SAAS,YAAY,CAAC,UAAkB;IACtC,OAAO,IAAI,CAAC,UAAU,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC;AACnD,CAAC;AAED,SAAS,WAAW,CAAC,UAAkB,EAAE,EAAU;IACjD,OAAO,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;AACtD,CAAC;AAED,SAAS,MAAM,CAAC,KAAc;IAC5B,MAAM,CAAC,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAA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AAC;oBAAE,OAAO,eAAe,EAAE,IAAI,CAAC;gBACpD,UAAU,CAAC,IAAI,CAAC,CAAC;gBACjB,OAAO,YAAY,EAAE,YAAY,CAAC;YACpC,CAAC;SACF;KACF,CAAC;AACJ,CAAC"}
|
package/dist/tools/webTools.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Web Tools - Web search and content extraction capabilities
|
|
3
|
-
*
|
|
4
|
-
* Provides:
|
|
5
|
-
* - WebSearch: Search the web using Tavily
|
|
6
|
-
* - WebExtract: Extract and summarize content from URLs
|
|
7
|
-
*/
|
|
8
|
-
import type { ToolDefinition } from '../core/toolRuntime.js';
|
|
9
|
-
interface TavilySearchResult {
|
|
10
|
-
title: string;
|
|
11
|
-
url: string;
|
|
12
|
-
content: string;
|
|
13
|
-
score?: number;
|
|
14
|
-
published_date?: string;
|
|
15
|
-
}
|
|
16
|
-
interface TavilySearchResponse {
|
|
17
|
-
results: TavilySearchResult[];
|
|
18
|
-
answer?: string;
|
|
19
|
-
query: string;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Create web tools for search and extraction.
|
|
23
|
-
*/
|
|
24
|
-
export declare function createWebTools(): ToolDefinition[];
|
|
25
|
-
export type { TavilySearchResponse };
|
|
26
|
-
//# sourceMappingURL=webTools.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webTools.d.ts","sourceRoot":"","sources":["../../src/tools/webTools.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAI7D,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,UAAU,oBAAoB;IAC5B,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf;AASD;;GAEG;AACH,wBAAgB,cAAc,IAAI,cAAc,EAAE,CA+JjD;AAmMD,YAAY,EAAE,oBAAoB,EAAE,CAAC"}
|