@trenchwork/erosolar 1.1.28 → 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/SECURITY.md +35 -0
- package/dist/contracts/agent-schemas.json +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 -307
- 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 -18
- package/dist/capabilities/index.d.ts.map +0 -1
- package/dist/capabilities/index.js +0 -23
- package/dist/capabilities/index.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 -80
- 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/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/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/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/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/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/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 -2121
- 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 -49
- package/dist/plugins/tools/mcp/mcpClient.d.ts.map +0 -1
- package/dist/plugins/tools/mcp/mcpClient.js +0 -112
- 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 -7
- 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/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/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/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/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/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/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 -18
- 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 -30
- 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 -11
- 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 -434
- 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/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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"memoryCapability.js","sourceRoot":"","sources":["../../src/capabilities/memoryCapability.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAO,sBAAsB;IACxB,EAAE,GAAG,mBAAmB,CAAC;IACjB,OAAO,CAA0B;IAElD,YAAY,UAAmC,EAAE;QAC/C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,OAA0B;QACrC,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,IAAI,OAAO,CAAC,UAAU,CAAC;QACjE,OAAO;YACL,EAAE,EAAE,cAAc;YAClB,WAAW,EAAE,0DAA0D;YACvE,SAAS,EAAE;gBACT,EAAE,EAAE,QAAQ;gBACZ,WAAW,EAAE,8BAA8B;gBAC3C,KAAK,EAAE,iBAAiB,CAAC,UAAU,CAAC;aACrC;YACD,QAAQ,EAAE,EAAE,UAAU,EAAE;SACzB,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { CapabilityContribution, CapabilityContext, CapabilityModule } from '../runtime/agentHost.js';
|
|
2
|
-
export declare class NotebookCapabilityModule implements CapabilityModule {
|
|
3
|
-
readonly id = "capability.notebook";
|
|
4
|
-
create(context: CapabilityContext): Promise<CapabilityContribution>;
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=notebookCapability.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notebookCapability.d.ts","sourceRoot":"","sources":["../../src/capabilities/notebookCapability.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAG3G,qBAAa,wBAAyB,YAAW,gBAAgB;IAC/D,QAAQ,CAAC,EAAE,yBAAyB;IAE9B,MAAM,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,sBAAsB,CAAC;CAY1E"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { createNotebookTools } from '../tools/notebookTools.js';
|
|
2
|
-
export class NotebookCapabilityModule {
|
|
3
|
-
id = 'capability.notebook';
|
|
4
|
-
async create(context) {
|
|
5
|
-
return {
|
|
6
|
-
id: 'notebook.tools',
|
|
7
|
-
description: 'Jupyter notebook (.ipynb) cell-level editing.',
|
|
8
|
-
toolSuite: {
|
|
9
|
-
id: 'notebook',
|
|
10
|
-
description: 'NotebookEdit',
|
|
11
|
-
tools: createNotebookTools(context.workingDir),
|
|
12
|
-
},
|
|
13
|
-
metadata: {},
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=notebookCapability.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notebookCapability.js","sourceRoot":"","sources":["../../src/capabilities/notebookCapability.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,MAAM,OAAO,wBAAwB;IAC1B,EAAE,GAAG,qBAAqB,CAAC;IAEpC,KAAK,CAAC,MAAM,CAAC,OAA0B;QACrC,OAAO;YACL,EAAE,EAAE,gBAAgB;YACpB,WAAW,EAAE,+CAA+C;YAC5D,SAAS,EAAE;gBACT,EAAE,EAAE,UAAU;gBACd,WAAW,EAAE,cAAc;gBAC3B,KAAK,EAAE,mBAAmB,CAAC,OAAO,CAAC,UAAU,CAAC;aAC/C;YACD,QAAQ,EAAE,EAAE;SACb,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { CapabilityContext, CapabilityContribution, CapabilityModule } from '../runtime/agentHost.js';
|
|
2
|
-
export declare class PwntoolsCapabilityModule implements CapabilityModule {
|
|
3
|
-
readonly id = "capability.pwntools";
|
|
4
|
-
readonly description = "Pwntools wrappers \u2014 pwn_eval (general snippet runner), pwn_rop_search (ROP gadget search), pwn_packed (pack/unpack/asm/disasm). Python3 shim with `from pwn import *` preloaded.";
|
|
5
|
-
create(_context: CapabilityContext): Promise<CapabilityContribution>;
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=pwntoolsCapability.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pwntoolsCapability.d.ts","sourceRoot":"","sources":["../../src/capabilities/pwntoolsCapability.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAiG3G,qBAAa,wBAAyB,YAAW,gBAAgB;IAC/D,QAAQ,CAAC,EAAE,yBAAyB;IACpC,QAAQ,CAAC,WAAW,2LAAsL;IAEpM,MAAM,CAAC,QAAQ,EAAE,iBAAiB,GAAG,OAAO,CAAC,sBAAsB,CAAC;CAU3E"}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { logDebug } from '../utils/debugLogger.js';
|
|
2
|
-
import { runBinary, formatResult } from './_processRunner.js';
|
|
3
|
-
function buildPwntoolsTools() {
|
|
4
|
-
return [
|
|
5
|
-
{
|
|
6
|
-
name: 'pwn_eval',
|
|
7
|
-
description: 'Run a Python snippet inside a pwntools-loaded environment (`from pwn import *` is preloaded). Use for ROP chain construction, ELF parsing, format-string offset hunting, libc gadget search. Snippet must print results to stdout.',
|
|
8
|
-
parameters: {
|
|
9
|
-
type: 'object',
|
|
10
|
-
properties: {
|
|
11
|
-
code: { type: 'string', description: 'Python code to execute. `from pwn import *` is already imported.' },
|
|
12
|
-
context: { type: 'string', description: 'Optional pwntools arch context (e.g. "amd64", "i386", "arm")' },
|
|
13
|
-
},
|
|
14
|
-
required: ['code'],
|
|
15
|
-
},
|
|
16
|
-
handler: async (args) => {
|
|
17
|
-
const arch = args.context ? String(args.context) : '';
|
|
18
|
-
const preamble = arch
|
|
19
|
-
? `from pwn import *\ncontext.arch = ${JSON.stringify(arch)}\n`
|
|
20
|
-
: `from pwn import *\n`;
|
|
21
|
-
const code = `${preamble}${String(args.code)}`;
|
|
22
|
-
const argv = ['-c', code];
|
|
23
|
-
const r = await runBinary('python3', argv, { timeoutMs: 2 * 60_000 });
|
|
24
|
-
return formatResult('python3 -c <pwn>', [], r);
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
name: 'pwn_rop_search',
|
|
29
|
-
description: 'Find ROP gadgets in a binary using pwntools ROP class; return gadgets matching a regex.',
|
|
30
|
-
parameters: {
|
|
31
|
-
type: 'object',
|
|
32
|
-
properties: {
|
|
33
|
-
binary: { type: 'string' },
|
|
34
|
-
pattern: { type: 'string', description: 'Regex against gadget assembly (e.g. "pop rdi")' },
|
|
35
|
-
arch: { type: 'string', description: 'amd64, i386, arm, ...' },
|
|
36
|
-
},
|
|
37
|
-
required: ['binary', 'pattern'],
|
|
38
|
-
},
|
|
39
|
-
handler: async (args) => {
|
|
40
|
-
const arch = args.arch ? String(args.arch) : '';
|
|
41
|
-
const code = [
|
|
42
|
-
'from pwn import *',
|
|
43
|
-
arch ? `context.arch = ${JSON.stringify(arch)}` : '',
|
|
44
|
-
`elf = ELF(${JSON.stringify(String(args.binary))})`,
|
|
45
|
-
'rop = ROP(elf)',
|
|
46
|
-
'import re',
|
|
47
|
-
`pat = re.compile(${JSON.stringify(String(args.pattern))})`,
|
|
48
|
-
'hits = []',
|
|
49
|
-
'for addr, gad in rop.gadgets.items():',
|
|
50
|
-
" asm = '; '.join(gad.insns)",
|
|
51
|
-
' if pat.search(asm):',
|
|
52
|
-
' hits.append((hex(addr), asm))',
|
|
53
|
-
'for addr, asm in hits[:200]:',
|
|
54
|
-
' print(addr, asm)',
|
|
55
|
-
"print(f'--- {len(hits)} gadgets found ---')",
|
|
56
|
-
].filter(Boolean).join('\n');
|
|
57
|
-
const argv = ['-c', code];
|
|
58
|
-
const r = await runBinary('python3', argv, { timeoutMs: 2 * 60_000 });
|
|
59
|
-
return formatResult('python3 -c <pwn:rop>', [], r);
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
name: 'pwn_packed',
|
|
64
|
-
description: 'Pack/unpack ints to bytes or assemble/disassemble using pwntools (p32/p64/u32/u64/asm/disasm).',
|
|
65
|
-
parameters: {
|
|
66
|
-
type: 'object',
|
|
67
|
-
properties: {
|
|
68
|
-
op: { type: 'string', enum: ['p32', 'p64', 'u32', 'u64', 'asm', 'disasm'] },
|
|
69
|
-
value: { type: 'string', description: 'Number for p*; bytes (hex) for u*; assembly text for asm; bytes (hex) for disasm' },
|
|
70
|
-
arch: { type: 'string', description: 'pwntools arch context, default amd64' },
|
|
71
|
-
},
|
|
72
|
-
required: ['op', 'value'],
|
|
73
|
-
},
|
|
74
|
-
handler: async (args) => {
|
|
75
|
-
const arch = args.arch ? String(args.arch) : 'amd64';
|
|
76
|
-
const code = [
|
|
77
|
-
'from pwn import *',
|
|
78
|
-
`context.arch = ${JSON.stringify(arch)}`,
|
|
79
|
-
`op = ${JSON.stringify(String(args.op))}`,
|
|
80
|
-
`v = ${JSON.stringify(String(args.value))}`,
|
|
81
|
-
"if op == 'p32': print(p32(int(v, 0)).hex())",
|
|
82
|
-
"elif op == 'p64': print(p64(int(v, 0)).hex())",
|
|
83
|
-
"elif op == 'u32': print(u32(bytes.fromhex(v)))",
|
|
84
|
-
"elif op == 'u64': print(u64(bytes.fromhex(v)))",
|
|
85
|
-
"elif op == 'asm': print(asm(v).hex())",
|
|
86
|
-
"elif op == 'disasm': print(disasm(bytes.fromhex(v)))",
|
|
87
|
-
].join('\n');
|
|
88
|
-
const argv = ['-c', code];
|
|
89
|
-
const r = await runBinary('python3', argv, { timeoutMs: 30_000 });
|
|
90
|
-
return formatResult('python3 -c <pwn:packed>', [], r);
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
];
|
|
94
|
-
}
|
|
95
|
-
export class PwntoolsCapabilityModule {
|
|
96
|
-
id = 'capability.pwntools';
|
|
97
|
-
description = 'Pwntools wrappers — pwn_eval (general snippet runner), pwn_rop_search (ROP gadget search), pwn_packed (pack/unpack/asm/disasm). Python3 shim with `from pwn import *` preloaded.';
|
|
98
|
-
async create(_context) {
|
|
99
|
-
void _context;
|
|
100
|
-
logDebug('[Pwntools] Capability initialized');
|
|
101
|
-
const toolSuite = {
|
|
102
|
-
id: 'pwntools.tools',
|
|
103
|
-
description: 'Pwntools snippet runner',
|
|
104
|
-
tools: buildPwntoolsTools(),
|
|
105
|
-
};
|
|
106
|
-
return { id: this.id, description: this.description, toolSuite };
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
//# sourceMapping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,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACb,MAAM,IAAI,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;gBAC1B,MAAM,CAAC,GAAG,MAAM,SAAS,CAAC,SAAS,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,CAAC;gBAClE,OAAO,YAAY,CAAC,yBAAyB,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;YACxD,CAAC;SACF;KACF,CAAC;AACJ,CAAC;AAED,MAAM,OAAO,wBAAwB;IAC1B,EAAE,GAAG,qBAAqB,CAAC;IAC3B,WAAW,GAAG,kLAAkL,CAAC;IAE1M,KAAK,CAAC,MAAM,CAAC,QAA2B;QACtC,KAAK,QAAQ,CAAC;QACd,QAAQ,CAAC,mCAAmC,CAAC,CAAC;QAC9C,MAAM,SAAS,GAAc;YAC3B,EAAE,EAAE,gBAAgB;YACpB,WAAW,EAAE,yBAAyB;YACtC,KAAK,EAAE,kBAAkB,EAAE;SAC5B,CAAC;QACF,OAAO,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,SAAS,EAAE,CAAC;IACnE,CAAC;CACF"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { CapabilityContribution, CapabilityContext, CapabilityModule } from '../runtime/agentHost.js';
|
|
2
|
-
export interface SearchCapabilityOptions {
|
|
3
|
-
workingDir?: string;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Unified Search Capability Module
|
|
7
|
-
*
|
|
8
|
-
* Provides the Search tool which combines:
|
|
9
|
-
* - File pattern matching (glob)
|
|
10
|
-
* - Content search (regex/grep)
|
|
11
|
-
* - Definition finding (functions, classes, interfaces)
|
|
12
|
-
*/
|
|
13
|
-
export declare class SearchCapabilityModule implements CapabilityModule {
|
|
14
|
-
readonly id = "capability.search";
|
|
15
|
-
private readonly options;
|
|
16
|
-
constructor(options?: SearchCapabilityOptions);
|
|
17
|
-
create(context: CapabilityContext): Promise<CapabilityContribution>;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=searchCapability.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"searchCapability.d.ts","sourceRoot":"","sources":["../../src/capabilities/searchCapability.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAG3G,MAAM,WAAW,uBAAuB;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,qBAAa,sBAAuB,YAAW,gBAAgB;IAC7D,QAAQ,CAAC,EAAE,uBAAuB;IAClC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA0B;gBAEtC,OAAO,GAAE,uBAA4B;IAI3C,MAAM,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,sBAAsB,CAAC;CAY1E"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { createSearchTools } from '../tools/searchTools.js';
|
|
2
|
-
/**
|
|
3
|
-
* Unified Search Capability Module
|
|
4
|
-
*
|
|
5
|
-
* Provides the Search tool which combines:
|
|
6
|
-
* - File pattern matching (glob)
|
|
7
|
-
* - Content search (regex/grep)
|
|
8
|
-
* - Definition finding (functions, classes, interfaces)
|
|
9
|
-
*/
|
|
10
|
-
export class SearchCapabilityModule {
|
|
11
|
-
id = 'capability.search';
|
|
12
|
-
options;
|
|
13
|
-
constructor(options = {}) {
|
|
14
|
-
this.options = options;
|
|
15
|
-
}
|
|
16
|
-
async create(context) {
|
|
17
|
-
const workingDir = this.options.workingDir ?? context.workingDir;
|
|
18
|
-
return {
|
|
19
|
-
id: 'search.unified',
|
|
20
|
-
description: 'Unified search for files and content',
|
|
21
|
-
toolSuite: {
|
|
22
|
-
id: 'search',
|
|
23
|
-
tools: createSearchTools(workingDir),
|
|
24
|
-
},
|
|
25
|
-
metadata: { workingDir },
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=searchCapability.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"searchCapability.js","sourceRoot":"","sources":["../../src/capabilities/searchCapability.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAM5D;;;;;;;GAOG;AACH,MAAM,OAAO,sBAAsB;IACxB,EAAE,GAAG,mBAAmB,CAAC;IACjB,OAAO,CAA0B;IAElD,YAAY,UAAmC,EAAE;QAC/C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,OAA0B;QACrC,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,IAAI,OAAO,CAAC,UAAU,CAAC;QACjE,OAAO;YACL,EAAE,EAAE,gBAAgB;YACpB,WAAW,EAAE,sCAAsC;YACnD,SAAS,EAAE;gBACT,EAAE,EAAE,QAAQ;gBACZ,KAAK,EAAE,iBAAiB,CAAC,UAAU,CAAC;aACrC;YACD,QAAQ,EAAE,EAAE,UAAU,EAAE;SACzB,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { CapabilityContribution, CapabilityContext, CapabilityModule } from '../runtime/agentHost.js';
|
|
2
|
-
export declare class SkillCapabilityModule implements CapabilityModule {
|
|
3
|
-
readonly id = "capability.skills";
|
|
4
|
-
create(context: CapabilityContext): Promise<CapabilityContribution>;
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=skillCapability.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"skillCapability.d.ts","sourceRoot":"","sources":["../../src/capabilities/skillCapability.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAG3G,qBAAa,qBAAsB,YAAW,gBAAgB;IAC5D,QAAQ,CAAC,EAAE,uBAAuB;IAE5B,MAAM,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,sBAAsB,CAAC;CAY1E"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { createSkillTools } from '../tools/skillTools.js';
|
|
2
|
-
export class SkillCapabilityModule {
|
|
3
|
-
id = 'capability.skills';
|
|
4
|
-
async create(context) {
|
|
5
|
-
return {
|
|
6
|
-
id: 'skills.tools',
|
|
7
|
-
description: 'Skill registry — Claude-Code-style reusable playbooks loaded from .erosolar/skills/.',
|
|
8
|
-
toolSuite: {
|
|
9
|
-
id: 'skills',
|
|
10
|
-
description: 'Skill discovery + loading',
|
|
11
|
-
tools: createSkillTools(context.workingDir),
|
|
12
|
-
},
|
|
13
|
-
metadata: {},
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=skillCapability.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"skillCapability.js","sourceRoot":"","sources":["../../src/capabilities/skillCapability.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,MAAM,OAAO,qBAAqB;IACvB,EAAE,GAAG,mBAAmB,CAAC;IAElC,KAAK,CAAC,MAAM,CAAC,OAA0B;QACrC,OAAO;YACL,EAAE,EAAE,cAAc;YAClB,WAAW,EAAE,sFAAsF;YACnG,SAAS,EAAE;gBACT,EAAE,EAAE,QAAQ;gBACZ,WAAW,EAAE,2BAA2B;gBACxC,KAAK,EAAE,gBAAgB,CAAC,OAAO,CAAC,UAAU,CAAC;aAC5C;YACD,QAAQ,EAAE,EAAE;SACb,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { CapabilityContribution, CapabilityContext, CapabilityModule } from '../runtime/agentHost.js';
|
|
2
|
-
/**
|
|
3
|
-
* Exposes the TodoWrite tool for agent task-list management.
|
|
4
|
-
* Stateless module; the underlying tool keeps its list in module
|
|
5
|
-
* scope so it persists across turns within a single process.
|
|
6
|
-
*/
|
|
7
|
-
export declare class TodoCapabilityModule implements CapabilityModule {
|
|
8
|
-
readonly id = "capability.todo";
|
|
9
|
-
create(_context: CapabilityContext): Promise<CapabilityContribution>;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=todoCapability.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"todoCapability.d.ts","sourceRoot":"","sources":["../../src/capabilities/todoCapability.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAG3G;;;;GAIG;AACH,qBAAa,oBAAqB,YAAW,gBAAgB;IAC3D,QAAQ,CAAC,EAAE,qBAAqB;IAE1B,MAAM,CAAC,QAAQ,EAAE,iBAAiB,GAAG,OAAO,CAAC,sBAAsB,CAAC;CAY3E"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { createTodoTools } from '../tools/todoTools.js';
|
|
2
|
-
/**
|
|
3
|
-
* Exposes the TodoWrite tool for agent task-list management.
|
|
4
|
-
* Stateless module; the underlying tool keeps its list in module
|
|
5
|
-
* scope so it persists across turns within a single process.
|
|
6
|
-
*/
|
|
7
|
-
export class TodoCapabilityModule {
|
|
8
|
-
id = 'capability.todo';
|
|
9
|
-
async create(_context) {
|
|
10
|
-
return {
|
|
11
|
-
id: 'todo.tools',
|
|
12
|
-
description: 'TodoWrite — agent task list (Claude-Code-style).',
|
|
13
|
-
toolSuite: {
|
|
14
|
-
id: 'todo',
|
|
15
|
-
description: 'Task list management',
|
|
16
|
-
tools: createTodoTools(),
|
|
17
|
-
},
|
|
18
|
-
metadata: {},
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=todoCapability.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"todoCapability.js","sourceRoot":"","sources":["../../src/capabilities/todoCapability.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD;;;;GAIG;AACH,MAAM,OAAO,oBAAoB;IACtB,EAAE,GAAG,iBAAiB,CAAC;IAEhC,KAAK,CAAC,MAAM,CAAC,QAA2B;QACtC,OAAO;YACL,EAAE,EAAE,YAAY;YAChB,WAAW,EAAE,kDAAkD;YAC/D,SAAS,EAAE;gBACT,EAAE,EAAE,MAAM;gBACV,WAAW,EAAE,sBAAsB;gBACnC,KAAK,EAAE,eAAe,EAAE;aACzB;YACD,QAAQ,EAAE,EAAE;SACb,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toolManifest.d.ts","sourceRoot":"","sources":["../../src/capabilities/toolManifest.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAEV,qBAAqB,EAGtB,MAAM,+BAA+B,CAAC;AAUvC,wBAAgB,eAAe,IAAI,qBAAqB,CAEvD"}
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import { readFileSync } from 'node:fs';
|
|
2
|
-
import { dirname, join } from 'node:path';
|
|
3
|
-
import { fileURLToPath } from 'node:url';
|
|
4
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
5
|
-
const __dirname = dirname(__filename);
|
|
6
|
-
const manifest = normalizeManifest(JSON.parse(readFileSync(join(__dirname, '../contracts/tools.schema.json'), 'utf-8')));
|
|
7
|
-
export function getToolManifest() {
|
|
8
|
-
return manifest;
|
|
9
|
-
}
|
|
10
|
-
function normalizeManifest(raw) {
|
|
11
|
-
if (!raw || typeof raw !== 'object') {
|
|
12
|
-
throw new Error('Tool manifest is malformed: expected an object.');
|
|
13
|
-
}
|
|
14
|
-
const options = Array.isArray(raw.options) ? raw.options.map(normalizeOption) : null;
|
|
15
|
-
if (!options?.length) {
|
|
16
|
-
throw new Error('Tool manifest must include at least one tool option.');
|
|
17
|
-
}
|
|
18
|
-
const manifest = {
|
|
19
|
-
contractVersion: requireString(raw.contractVersion, 'contractVersion'),
|
|
20
|
-
profile: requireString(raw.profile, 'profile'),
|
|
21
|
-
version: requireString(raw.version, 'version'),
|
|
22
|
-
options,
|
|
23
|
-
};
|
|
24
|
-
const label = optionalString(raw.label);
|
|
25
|
-
if (label) {
|
|
26
|
-
manifest.label = label;
|
|
27
|
-
}
|
|
28
|
-
const description = optionalString(raw.description);
|
|
29
|
-
if (description) {
|
|
30
|
-
manifest.description = description;
|
|
31
|
-
}
|
|
32
|
-
const metadata = normalizeRecord(raw.metadata);
|
|
33
|
-
if (metadata) {
|
|
34
|
-
manifest.metadata = metadata;
|
|
35
|
-
}
|
|
36
|
-
const presets = normalizePresets(raw.presets);
|
|
37
|
-
if (presets) {
|
|
38
|
-
manifest.presets = presets;
|
|
39
|
-
}
|
|
40
|
-
return manifest;
|
|
41
|
-
}
|
|
42
|
-
function normalizeOption(raw) {
|
|
43
|
-
const id = requireString(raw.id, 'option.id');
|
|
44
|
-
const label = requireString(raw.label, `option("${id}").label`);
|
|
45
|
-
const description = requireString(raw.description, `option("${id}").description`);
|
|
46
|
-
const pluginIds = dedupeStrings(raw.pluginIds);
|
|
47
|
-
if (!pluginIds.length) {
|
|
48
|
-
throw new Error(`Tool option "${id}" must declare at least one plugin id.`);
|
|
49
|
-
}
|
|
50
|
-
const option = {
|
|
51
|
-
id,
|
|
52
|
-
label,
|
|
53
|
-
description,
|
|
54
|
-
defaultEnabled: Boolean(raw.defaultEnabled),
|
|
55
|
-
pluginIds,
|
|
56
|
-
};
|
|
57
|
-
const category = optionalString(raw.category);
|
|
58
|
-
if (category) {
|
|
59
|
-
option.category = category;
|
|
60
|
-
}
|
|
61
|
-
const requiresSecret = optionalString(raw.requiresSecret);
|
|
62
|
-
if (requiresSecret) {
|
|
63
|
-
option.requiresSecret = requiresSecret;
|
|
64
|
-
}
|
|
65
|
-
const scopes = raw.scopes?.length ? dedupeStrings(raw.scopes) : undefined;
|
|
66
|
-
if (scopes?.length) {
|
|
67
|
-
option.scopes = scopes;
|
|
68
|
-
}
|
|
69
|
-
const metadata = normalizeRecord(raw.metadata);
|
|
70
|
-
if (metadata) {
|
|
71
|
-
option.metadata = metadata;
|
|
72
|
-
}
|
|
73
|
-
return option;
|
|
74
|
-
}
|
|
75
|
-
function normalizePresets(entries) {
|
|
76
|
-
if (!entries?.length) {
|
|
77
|
-
return undefined;
|
|
78
|
-
}
|
|
79
|
-
return entries.map((preset) => {
|
|
80
|
-
const id = requireString(preset.id, 'preset.id');
|
|
81
|
-
const normalized = {
|
|
82
|
-
id,
|
|
83
|
-
label: requireString(preset.label, `preset("${id}").label`),
|
|
84
|
-
enabled: dedupeStrings(preset.enabled),
|
|
85
|
-
disabled: dedupeStrings(preset.disabled),
|
|
86
|
-
locked: dedupeStrings(preset.locked),
|
|
87
|
-
};
|
|
88
|
-
const description = optionalString(preset.description);
|
|
89
|
-
if (description) {
|
|
90
|
-
normalized.description = description;
|
|
91
|
-
}
|
|
92
|
-
const appliesTo = normalizeTargets(preset.appliesTo);
|
|
93
|
-
if (appliesTo) {
|
|
94
|
-
normalized.appliesTo = appliesTo;
|
|
95
|
-
}
|
|
96
|
-
const metadata = normalizeRecord(preset.metadata);
|
|
97
|
-
if (metadata) {
|
|
98
|
-
normalized.metadata = metadata;
|
|
99
|
-
}
|
|
100
|
-
const notes = optionalString(preset.notes);
|
|
101
|
-
if (notes) {
|
|
102
|
-
normalized.notes = notes;
|
|
103
|
-
}
|
|
104
|
-
return normalized;
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
function normalizeTargets(targets) {
|
|
108
|
-
if (!targets?.length) {
|
|
109
|
-
return undefined;
|
|
110
|
-
}
|
|
111
|
-
const seen = new Set();
|
|
112
|
-
const result = [];
|
|
113
|
-
for (const target of targets) {
|
|
114
|
-
if (target && !seen.has(target)) {
|
|
115
|
-
seen.add(target);
|
|
116
|
-
result.push(target);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
return result.length ? result : undefined;
|
|
120
|
-
}
|
|
121
|
-
function dedupeStrings(values) {
|
|
122
|
-
if (!values?.length) {
|
|
123
|
-
return [];
|
|
124
|
-
}
|
|
125
|
-
const seen = new Set();
|
|
126
|
-
const result = [];
|
|
127
|
-
for (const entry of values) {
|
|
128
|
-
if (typeof entry !== 'string') {
|
|
129
|
-
continue;
|
|
130
|
-
}
|
|
131
|
-
const trimmed = entry.trim();
|
|
132
|
-
if (!trimmed || seen.has(trimmed)) {
|
|
133
|
-
continue;
|
|
134
|
-
}
|
|
135
|
-
seen.add(trimmed);
|
|
136
|
-
result.push(trimmed);
|
|
137
|
-
}
|
|
138
|
-
return result;
|
|
139
|
-
}
|
|
140
|
-
function normalizeRecord(value) {
|
|
141
|
-
if (!value || typeof value !== 'object' || Array.isArray(value)) {
|
|
142
|
-
return undefined;
|
|
143
|
-
}
|
|
144
|
-
return { ...value };
|
|
145
|
-
}
|
|
146
|
-
function requireString(value, field) {
|
|
147
|
-
if (typeof value !== 'string') {
|
|
148
|
-
throw new Error(`Tool manifest is missing required field "${field}".`);
|
|
149
|
-
}
|
|
150
|
-
const trimmed = value.trim();
|
|
151
|
-
if (!trimmed) {
|
|
152
|
-
throw new Error(`Tool manifest field "${field}" cannot be blank.`);
|
|
153
|
-
}
|
|
154
|
-
return trimmed;
|
|
155
|
-
}
|
|
156
|
-
function optionalString(value) {
|
|
157
|
-
if (typeof value !== 'string') {
|
|
158
|
-
return undefined;
|
|
159
|
-
}
|
|
160
|
-
const trimmed = value.trim();
|
|
161
|
-
return trimmed.length ? trimmed : undefined;
|
|
162
|
-
}
|
|
163
|
-
//# sourceMappingURL=toolManifest.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toolManifest.js","sourceRoot":"","sources":["../../src/capabilities/toolManifest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C;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,SAAS,cAAc,CAAC,KAAc;IACpC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAC7B,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;AAC9C,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { ToolAvailabilityOption } from '../contracts/v1/toolAccess.js';
|
|
2
|
-
import type { ProfileName } from '../config.js';
|
|
3
|
-
import type { ToolSettings } from '../core/preferences.js';
|
|
4
|
-
import { type SecretName } from '../core/secretStore.js';
|
|
5
|
-
export type ToolToggleId = string;
|
|
6
|
-
export type ToolToggleOption = ToolAvailabilityOption & {
|
|
7
|
-
requiresSecret?: SecretName;
|
|
8
|
-
locked?: boolean;
|
|
9
|
-
restartRequired?: boolean;
|
|
10
|
-
};
|
|
11
|
-
export interface ToolPermissionSummary {
|
|
12
|
-
allowedPluginIds: Set<string>;
|
|
13
|
-
warnings: ToolLoadWarning[];
|
|
14
|
-
}
|
|
15
|
-
export interface ToolLoadWarning {
|
|
16
|
-
id: ToolToggleId;
|
|
17
|
-
label: string;
|
|
18
|
-
reason: 'missing-secret';
|
|
19
|
-
secretId?: SecretName;
|
|
20
|
-
}
|
|
21
|
-
export declare function getToolToggleOptions(): ToolToggleOption[];
|
|
22
|
-
export declare function buildEnabledToolSet(saved: ToolSettings | null, _profile?: ProfileName): Set<ToolToggleId>;
|
|
23
|
-
export declare function evaluateToolPermissions(selection: Set<ToolToggleId>): ToolPermissionSummary;
|
|
24
|
-
export declare function isPluginEnabled(pluginId: string, allowedPluginIds: Set<string>): boolean;
|
|
25
|
-
//# sourceMappingURL=toolRegistry.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"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