centaurus-cli 3.0.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai/types.js +0 -1
- package/dist/ai/types.js.map +1 -1
- package/dist/cli-adapter.js +5047 -5037
- package/dist/cli-adapter.js.map +1 -1
- package/dist/commands/CommandParser.js +372 -315
- package/dist/commands/CommandParser.js.map +1 -1
- package/dist/config/build-config.js +11 -42
- package/dist/config/build-config.js.map +1 -1
- package/dist/config/defaultConfig.js +94 -82
- package/dist/config/defaultConfig.js.map +1 -1
- package/dist/config/manager.js +144 -160
- package/dist/config/manager.js.map +1 -1
- package/dist/config/mcp-config-manager.js +411 -364
- package/dist/config/mcp-config-manager.js.map +1 -1
- package/dist/config/models.js +118 -185
- package/dist/config/models.js.map +1 -1
- package/dist/config/slash-commands.js +186 -184
- package/dist/config/slash-commands.js.map +1 -1
- package/dist/config/types.js +33 -26
- package/dist/config/types.js.map +1 -1
- package/dist/context/command-detector.js +63 -67
- package/dist/context/command-detector.js.map +1 -1
- package/dist/context/context-manager.js +533 -518
- package/dist/context/context-manager.js.map +1 -1
- package/dist/context/handlers/docker-handler.js +518 -576
- package/dist/context/handlers/docker-handler.js.map +1 -1
- package/dist/context/handlers/ssh-handler.js +1050 -1109
- package/dist/context/handlers/ssh-handler.js.map +1 -1
- package/dist/context/handlers/wsl-handler.js +558 -630
- package/dist/context/handlers/wsl-handler.js.map +1 -1
- package/dist/context/index.js +42 -6
- package/dist/context/index.js.map +1 -1
- package/dist/context/subshell-handler.js +0 -4
- package/dist/context/subshell-handler.js.map +1 -1
- package/dist/context/types.js +20 -31
- package/dist/context/types.js.map +1 -1
- package/dist/hooks/useConnectivity.js +13 -10
- package/dist/hooks/useConnectivity.js.map +1 -1
- package/dist/hooks/useTerminalDimensions.js +67 -79
- package/dist/hooks/useTerminalDimensions.js.map +1 -1
- package/dist/index.js +228 -251
- package/dist/index.js.map +1 -1
- package/dist/mcp/mcp-command-handler.js +297 -260
- package/dist/mcp/mcp-command-handler.js.map +1 -1
- package/dist/mcp/mcp-server-manager.js +139 -155
- package/dist/mcp/mcp-server-manager.js.map +1 -1
- package/dist/mcp/mcp-tool-wrapper.js +74 -94
- package/dist/mcp/mcp-tool-wrapper.js.map +1 -1
- package/dist/services/ai-autocomplete-agent.js +169 -181
- package/dist/services/ai-autocomplete-agent.js.map +1 -1
- package/dist/services/ai-context-injector.js +180 -93
- package/dist/services/ai-context-injector.js.map +1 -1
- package/dist/services/ai-service-client.js +513 -456
- package/dist/services/ai-service-client.js.map +1 -1
- package/dist/services/api-client.js +443 -441
- package/dist/services/api-client.js.map +1 -1
- package/dist/services/auth-handler.js +162 -198
- package/dist/services/auth-handler.js.map +1 -1
- package/dist/services/background-task-manager.js +258 -282
- package/dist/services/background-task-manager.js.map +1 -1
- package/dist/services/checkpoint-manager.js +1513 -973
- package/dist/services/checkpoint-manager.js.map +1 -1
- package/dist/services/clipboard-service.js +151 -200
- package/dist/services/clipboard-service.js.map +1 -1
- package/dist/services/connectivity-manager.js +63 -65
- package/dist/services/connectivity-manager.js.map +1 -1
- package/dist/services/conversation-manager.js +118 -121
- package/dist/services/conversation-manager.js.map +1 -1
- package/dist/services/environment-context-injector.js +160 -187
- package/dist/services/environment-context-injector.js.map +1 -1
- package/dist/services/fast-context-agent.js +203 -243
- package/dist/services/fast-context-agent.js.map +1 -1
- package/dist/services/input-detection-agent.js +190 -202
- package/dist/services/input-detection-agent.js.map +1 -1
- package/dist/services/input-requirement-detector.js +155 -189
- package/dist/services/input-requirement-detector.js.map +1 -1
- package/dist/services/local-chat-storage.js +342 -365
- package/dist/services/local-chat-storage.js.map +1 -1
- package/dist/services/monitored-shell-manager.js +225 -233
- package/dist/services/monitored-shell-manager.js.map +1 -1
- package/dist/services/ollama-service.js +293 -310
- package/dist/services/ollama-service.js.map +1 -1
- package/dist/services/rules-storage.js +142 -0
- package/dist/services/rules-storage.js.map +1 -0
- package/dist/services/session-quota-manager.js +219 -235
- package/dist/services/session-quota-manager.js.map +1 -1
- package/dist/services/shell-input-agent.js +299 -334
- package/dist/services/shell-input-agent.js.map +1 -1
- package/dist/services/sub-agent-manager.js +459 -501
- package/dist/services/sub-agent-manager.js.map +1 -1
- package/dist/services/warpify-detector.js +133 -183
- package/dist/services/warpify-detector.js.map +1 -1
- package/dist/services/workflow-storage.js +202 -217
- package/dist/services/workflow-storage.js.map +1 -1
- package/dist/test-ssh-handler.js +148 -193
- package/dist/test-ssh-handler.js.map +1 -1
- package/dist/tools/add-mcp.js +161 -0
- package/dist/tools/add-mcp.js.map +1 -0
- package/dist/tools/background-command.js +240 -273
- package/dist/tools/background-command.js.map +1 -1
- package/dist/tools/command.js +447 -440
- package/dist/tools/command.js.map +1 -1
- package/dist/tools/create-image.js +172 -202
- package/dist/tools/create-image.js.map +1 -1
- package/dist/tools/enter-remote-session.js +169 -215
- package/dist/tools/enter-remote-session.js.map +1 -1
- package/dist/tools/fast-context.js +60 -67
- package/dist/tools/fast-context.js.map +1 -1
- package/dist/tools/file-ops.js +605 -537
- package/dist/tools/file-ops.js.map +1 -1
- package/dist/tools/find-files.js +262 -303
- package/dist/tools/find-files.js.map +1 -1
- package/dist/tools/get-diff.js +423 -400
- package/dist/tools/get-diff.js.map +1 -1
- package/dist/tools/grep-search.js +966 -948
- package/dist/tools/grep-search.js.map +1 -1
- package/dist/tools/inspect-symbol.js +308 -323
- package/dist/tools/inspect-symbol.js.map +1 -1
- package/dist/tools/plan-mode.js +459 -503
- package/dist/tools/plan-mode.js.map +1 -1
- package/dist/tools/read-binary-file.js +160 -190
- package/dist/tools/read-binary-file.js.map +1 -1
- package/dist/tools/registry.js +100 -84
- package/dist/tools/registry.js.map +1 -1
- package/dist/tools/reproduce_issue.js +170 -151
- package/dist/tools/reproduce_issue.js.map +1 -1
- package/dist/tools/sub-agent.js +223 -228
- package/dist/tools/sub-agent.js.map +1 -1
- package/dist/tools/task-complete.js +28 -27
- package/dist/tools/task-complete.js.map +1 -1
- package/dist/tools/types.js +0 -1
- package/dist/tools/types.js.map +1 -1
- package/dist/tools/validation.js +96 -118
- package/dist/tools/validation.js.map +1 -1
- package/dist/tools/web-search.js +194 -194
- package/dist/tools/web-search.js.map +1 -1
- package/dist/tools/workflow-tool.js +77 -82
- package/dist/tools/workflow-tool.js.map +1 -1
- package/dist/types/index.js +0 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/rule.js +1 -0
- package/dist/types/rule.js.map +1 -0
- package/dist/types/workflow.js +0 -7
- package/dist/types/workflow.js.map +1 -1
- package/dist/ui/components/AgentTimer.js +24 -25
- package/dist/ui/components/AgentTimer.js.map +1 -1
- package/dist/ui/components/App.js +3266 -3249
- package/dist/ui/components/App.js.map +1 -1
- package/dist/ui/components/AuthScreen.js +22 -34
- package/dist/ui/components/AuthScreen.js.map +1 -1
- package/dist/ui/components/AuthWelcomeScreen.js +30 -24
- package/dist/ui/components/AuthWelcomeScreen.js.map +1 -1
- package/dist/ui/components/Breadcrumbs.js +53 -82
- package/dist/ui/components/Breadcrumbs.js.map +1 -1
- package/dist/ui/components/CircularSelectInput.js +59 -67
- package/dist/ui/components/CircularSelectInput.js.map +1 -1
- package/dist/ui/components/ClipboardFileAutocomplete.js +78 -39
- package/dist/ui/components/ClipboardFileAutocomplete.js.map +1 -1
- package/dist/ui/components/CodeBlock.js +24 -42
- package/dist/ui/components/CodeBlock.js.map +1 -1
- package/dist/ui/components/ConfigViewer.js +18 -25
- package/dist/ui/components/ConfigViewer.js.map +1 -1
- package/dist/ui/components/ConfirmPrompt.js +49 -71
- package/dist/ui/components/ConfirmPrompt.js.map +1 -1
- package/dist/ui/components/ConnectionStatusMessage.js +32 -83
- package/dist/ui/components/ConnectionStatusMessage.js.map +1 -1
- package/dist/ui/components/ContextWindowIndicator.js +34 -49
- package/dist/ui/components/ContextWindowIndicator.js.map +1 -1
- package/dist/ui/components/DetailedPlanReviewScreen.js +104 -106
- package/dist/ui/components/DetailedPlanReviewScreen.js.map +1 -1
- package/dist/ui/components/DiffViewer.js +68 -121
- package/dist/ui/components/DiffViewer.js.map +1 -1
- package/dist/ui/components/ErrorBoundary.js +40 -48
- package/dist/ui/components/ErrorBoundary.js.map +1 -1
- package/dist/ui/components/FileCreationPreview.js +29 -60
- package/dist/ui/components/FileCreationPreview.js.map +1 -1
- package/dist/ui/components/FileOperation.js +34 -29
- package/dist/ui/components/FileOperation.js.map +1 -1
- package/dist/ui/components/FileTagAutocomplete.js +55 -25
- package/dist/ui/components/FileTagAutocomplete.js.map +1 -1
- package/dist/ui/components/FontRecommendation.js.map +1 -1
- package/dist/ui/components/GitDiffBreadcrumb.js +29 -0
- package/dist/ui/components/GitDiffBreadcrumb.js.map +1 -0
- package/dist/ui/components/InputBox.js +1620 -2150
- package/dist/ui/components/InputBox.js.map +1 -1
- package/dist/ui/components/InteractiveShell.js +234 -352
- package/dist/ui/components/InteractiveShell.js.map +1 -1
- package/dist/ui/components/KeyboardHelp.js +34 -35
- package/dist/ui/components/KeyboardHelp.js.map +1 -1
- package/dist/ui/components/LoadingIndicator.js +22 -25
- package/dist/ui/components/LoadingIndicator.js.map +1 -1
- package/dist/ui/components/MCPAddScreen.js +40 -51
- package/dist/ui/components/MCPAddScreen.js.map +1 -1
- package/dist/ui/components/MCPListScreen.js +40 -48
- package/dist/ui/components/MCPListScreen.js.map +1 -1
- package/dist/ui/components/MCPServerListScreen.js +49 -56
- package/dist/ui/components/MCPServerListScreen.js.map +1 -1
- package/dist/ui/components/MarkdownRenderer.js +69 -96
- package/dist/ui/components/MarkdownRenderer.js.map +1 -1
- package/dist/ui/components/MessageBox.js +66 -48
- package/dist/ui/components/MessageBox.js.map +1 -1
- package/dist/ui/components/MessageDisplay.js +150 -142
- package/dist/ui/components/MessageDisplay.js.map +1 -1
- package/dist/ui/components/MonitorModeAIPanel.js +46 -65
- package/dist/ui/components/MonitorModeAIPanel.js.map +1 -1
- package/dist/ui/components/MultiLineInput.js +243 -277
- package/dist/ui/components/MultiLineInput.js.map +1 -1
- package/dist/ui/components/PasswordPrompt.js +37 -18
- package/dist/ui/components/PasswordPrompt.js.map +1 -1
- package/dist/ui/components/PlanAcceptedMessage.js +27 -38
- package/dist/ui/components/PlanAcceptedMessage.js.map +1 -1
- package/dist/ui/components/PlanReviewScreen.js +46 -50
- package/dist/ui/components/PlanReviewScreen.js.map +1 -1
- package/dist/ui/components/RulesEditorScreen.js +81 -0
- package/dist/ui/components/RulesEditorScreen.js.map +1 -0
- package/dist/ui/components/SelectPrompt.js +19 -8
- package/dist/ui/components/SelectPrompt.js.map +1 -1
- package/dist/ui/components/ShimmerText.js +44 -0
- package/dist/ui/components/ShimmerText.js.map +1 -0
- package/dist/ui/components/SlashCommandAutocomplete.js +49 -22
- package/dist/ui/components/SlashCommandAutocomplete.js.map +1 -1
- package/dist/ui/components/StatusBar.js +56 -87
- package/dist/ui/components/StatusBar.js.map +1 -1
- package/dist/ui/components/StreamingMessageDisplay.js +116 -99
- package/dist/ui/components/StreamingMessageDisplay.js.map +1 -1
- package/dist/ui/components/TaskCompletedMessage.js +28 -23
- package/dist/ui/components/TaskCompletedMessage.js.map +1 -1
- package/dist/ui/components/TaskProgressIndicator.js +44 -70
- package/dist/ui/components/TaskProgressIndicator.js.map +1 -1
- package/dist/ui/components/ThinkingDisplay.js +44 -41
- package/dist/ui/components/ThinkingDisplay.js.map +1 -1
- package/dist/ui/components/ToolExecutionMessage.js +772 -1326
- package/dist/ui/components/ToolExecutionMessage.js.map +1 -1
- package/dist/ui/components/ToolExecutionStatus.js +53 -84
- package/dist/ui/components/ToolExecutionStatus.js.map +1 -1
- package/dist/ui/components/ToolResult.js +22 -15
- package/dist/ui/components/ToolResult.js.map +1 -1
- package/dist/ui/components/VersionUpdatePrompt.js +88 -120
- package/dist/ui/components/VersionUpdatePrompt.js.map +1 -1
- package/dist/ui/components/WelcomeBanner.js +176 -26
- package/dist/ui/components/WelcomeBanner.js.map +1 -1
- package/dist/ui/components/WorkflowCreatorScreen.js +94 -161
- package/dist/ui/components/WorkflowCreatorScreen.js.map +1 -1
- package/dist/utils/ansi-encoder.js +30 -61
- package/dist/utils/ansi-encoder.js.map +1 -1
- package/dist/utils/chat-formatter.js +327 -305
- package/dist/utils/chat-formatter.js.map +1 -1
- package/dist/utils/command-history.js +152 -174
- package/dist/utils/command-history.js.map +1 -1
- package/dist/utils/context-sanitizer.js +49 -112
- package/dist/utils/context-sanitizer.js.map +1 -1
- package/dist/utils/conversation-logger.js +292 -324
- package/dist/utils/conversation-logger.js.map +1 -1
- package/dist/utils/custom-commands-manager.js +126 -131
- package/dist/utils/custom-commands-manager.js.map +1 -1
- package/dist/utils/editor-utils.js +732 -837
- package/dist/utils/editor-utils.js.map +1 -1
- package/dist/utils/file.js +174 -213
- package/dist/utils/file.js.map +1 -1
- package/dist/utils/git-stats.js +169 -0
- package/dist/utils/git-stats.js.map +1 -0
- package/dist/utils/input-classifier.js +960 -482
- package/dist/utils/input-classifier.js.map +1 -1
- package/dist/utils/logger.js +48 -73
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/markdown-parser.js +277 -310
- package/dist/utils/markdown-parser.js.map +1 -1
- package/dist/utils/rule-reference-resolver.js +54 -0
- package/dist/utils/rule-reference-resolver.js.map +1 -0
- package/dist/utils/shell.js +144 -156
- package/dist/utils/shell.js.map +1 -1
- package/dist/utils/state.js +23 -22
- package/dist/utils/state.js.map +1 -1
- package/dist/utils/syntax-checker.js +279 -327
- package/dist/utils/syntax-checker.js.map +1 -1
- package/dist/utils/terminal-output.js +199 -302
- package/dist/utils/terminal-output.js.map +1 -1
- package/dist/utils/text-clipboard.js +47 -70
- package/dist/utils/text-clipboard.js.map +1 -1
- package/dist/utils/unicode-sanitizer.js +134 -197
- package/dist/utils/unicode-sanitizer.js.map +1 -1
- package/dist/utils/version-checker.js +46 -56
- package/dist/utils/version-checker.js.map +1 -1
- package/package.json +6 -4
- package/dist/ai/types.d.ts +0 -20
- package/dist/ai/types.d.ts.map +0 -1
- package/dist/cli-adapter.d.ts +0 -511
- package/dist/cli-adapter.d.ts.map +0 -1
- package/dist/commands/CommandParser.d.ts +0 -27
- package/dist/commands/CommandParser.d.ts.map +0 -1
- package/dist/config/build-config.d.ts +0 -42
- package/dist/config/build-config.d.ts.map +0 -1
- package/dist/config/defaultConfig.d.ts +0 -79
- package/dist/config/defaultConfig.d.ts.map +0 -1
- package/dist/config/manager.d.ts +0 -62
- package/dist/config/manager.d.ts.map +0 -1
- package/dist/config/mcp-config-manager.d.ts +0 -79
- package/dist/config/mcp-config-manager.d.ts.map +0 -1
- package/dist/config/models.d.ts +0 -83
- package/dist/config/models.d.ts.map +0 -1
- package/dist/config/slash-commands.d.ts +0 -23
- package/dist/config/slash-commands.d.ts.map +0 -1
- package/dist/config/types.d.ts +0 -35
- package/dist/config/types.d.ts.map +0 -1
- package/dist/context/command-detector.d.ts +0 -50
- package/dist/context/command-detector.d.ts.map +0 -1
- package/dist/context/context-manager.d.ts +0 -157
- package/dist/context/context-manager.d.ts.map +0 -1
- package/dist/context/handlers/docker-handler.d.ts +0 -130
- package/dist/context/handlers/docker-handler.d.ts.map +0 -1
- package/dist/context/handlers/ssh-handler.d.ts +0 -201
- package/dist/context/handlers/ssh-handler.d.ts.map +0 -1
- package/dist/context/handlers/wsl-handler.d.ts +0 -146
- package/dist/context/handlers/wsl-handler.d.ts.map +0 -1
- package/dist/context/index.d.ts +0 -8
- package/dist/context/index.d.ts.map +0 -1
- package/dist/context/subshell-handler.d.ts +0 -165
- package/dist/context/subshell-handler.d.ts.map +0 -1
- package/dist/context/types.d.ts +0 -70
- package/dist/context/types.d.ts.map +0 -1
- package/dist/hooks/useConnectivity.d.ts +0 -2
- package/dist/hooks/useConnectivity.d.ts.map +0 -1
- package/dist/hooks/useTerminalDimensions.d.ts +0 -41
- package/dist/hooks/useTerminalDimensions.d.ts.map +0 -1
- package/dist/index.d.ts +0 -9
- package/dist/index.d.ts.map +0 -1
- package/dist/mcp/mcp-command-handler.d.ts +0 -47
- package/dist/mcp/mcp-command-handler.d.ts.map +0 -1
- package/dist/mcp/mcp-server-manager.d.ts +0 -30
- package/dist/mcp/mcp-server-manager.d.ts.map +0 -1
- package/dist/mcp/mcp-tool-wrapper.d.ts +0 -12
- package/dist/mcp/mcp-tool-wrapper.d.ts.map +0 -1
- package/dist/services/ai-autocomplete-agent.d.ts +0 -39
- package/dist/services/ai-autocomplete-agent.d.ts.map +0 -1
- package/dist/services/ai-context-injector.d.ts +0 -41
- package/dist/services/ai-context-injector.d.ts.map +0 -1
- package/dist/services/ai-service-client.d.ts +0 -128
- package/dist/services/ai-service-client.d.ts.map +0 -1
- package/dist/services/api-client.d.ts +0 -353
- package/dist/services/api-client.d.ts.map +0 -1
- package/dist/services/auth-handler.d.ts +0 -30
- package/dist/services/auth-handler.d.ts.map +0 -1
- package/dist/services/background-task-manager.d.ts +0 -114
- package/dist/services/background-task-manager.d.ts.map +0 -1
- package/dist/services/checkpoint-manager.d.ts +0 -167
- package/dist/services/checkpoint-manager.d.ts.map +0 -1
- package/dist/services/clipboard-service.d.ts +0 -37
- package/dist/services/clipboard-service.d.ts.map +0 -1
- package/dist/services/connectivity-manager.d.ts +0 -18
- package/dist/services/connectivity-manager.d.ts.map +0 -1
- package/dist/services/conversation-manager.d.ts +0 -73
- package/dist/services/conversation-manager.d.ts.map +0 -1
- package/dist/services/environment-context-injector.d.ts +0 -69
- package/dist/services/environment-context-injector.d.ts.map +0 -1
- package/dist/services/fast-context-agent.d.ts +0 -12
- package/dist/services/fast-context-agent.d.ts.map +0 -1
- package/dist/services/input-detection-agent.d.ts +0 -40
- package/dist/services/input-detection-agent.d.ts.map +0 -1
- package/dist/services/input-requirement-detector.d.ts +0 -28
- package/dist/services/input-requirement-detector.d.ts.map +0 -1
- package/dist/services/local-chat-storage.d.ts +0 -182
- package/dist/services/local-chat-storage.d.ts.map +0 -1
- package/dist/services/monitored-shell-manager.d.ts +0 -120
- package/dist/services/monitored-shell-manager.d.ts.map +0 -1
- package/dist/services/ollama-service.d.ts +0 -197
- package/dist/services/ollama-service.d.ts.map +0 -1
- package/dist/services/session-quota-manager.d.ts +0 -101
- package/dist/services/session-quota-manager.d.ts.map +0 -1
- package/dist/services/shell-input-agent.d.ts +0 -89
- package/dist/services/shell-input-agent.d.ts.map +0 -1
- package/dist/services/sub-agent-manager.d.ts +0 -140
- package/dist/services/sub-agent-manager.d.ts.map +0 -1
- package/dist/services/warpify-detector.d.ts +0 -43
- package/dist/services/warpify-detector.d.ts.map +0 -1
- package/dist/services/workflow-storage.d.ts +0 -72
- package/dist/services/workflow-storage.d.ts.map +0 -1
- package/dist/test-ssh-handler.d.ts +0 -8
- package/dist/test-ssh-handler.d.ts.map +0 -1
- package/dist/tools/background-command.d.ts +0 -11
- package/dist/tools/background-command.d.ts.map +0 -1
- package/dist/tools/command.d.ts +0 -3
- package/dist/tools/command.d.ts.map +0 -1
- package/dist/tools/create-image.d.ts +0 -10
- package/dist/tools/create-image.d.ts.map +0 -1
- package/dist/tools/enter-remote-session.d.ts +0 -48
- package/dist/tools/enter-remote-session.d.ts.map +0 -1
- package/dist/tools/fast-context.d.ts +0 -3
- package/dist/tools/fast-context.d.ts.map +0 -1
- package/dist/tools/file-ops.d.ts +0 -7
- package/dist/tools/file-ops.d.ts.map +0 -1
- package/dist/tools/find-files.d.ts +0 -49
- package/dist/tools/find-files.d.ts.map +0 -1
- package/dist/tools/get-diff.d.ts +0 -14
- package/dist/tools/get-diff.d.ts.map +0 -1
- package/dist/tools/grep-search.d.ts +0 -155
- package/dist/tools/grep-search.d.ts.map +0 -1
- package/dist/tools/inspect-symbol.d.ts +0 -32
- package/dist/tools/inspect-symbol.d.ts.map +0 -1
- package/dist/tools/plan-mode.d.ts +0 -140
- package/dist/tools/plan-mode.d.ts.map +0 -1
- package/dist/tools/read-binary-file.d.ts +0 -10
- package/dist/tools/read-binary-file.d.ts.map +0 -1
- package/dist/tools/registry.d.ts +0 -31
- package/dist/tools/registry.d.ts.map +0 -1
- package/dist/tools/reproduce_issue.d.ts +0 -2
- package/dist/tools/reproduce_issue.d.ts.map +0 -1
- package/dist/tools/sub-agent.d.ts +0 -9
- package/dist/tools/sub-agent.d.ts.map +0 -1
- package/dist/tools/task-complete.d.ts +0 -3
- package/dist/tools/task-complete.d.ts.map +0 -1
- package/dist/tools/types.d.ts +0 -40
- package/dist/tools/types.d.ts.map +0 -1
- package/dist/tools/validation.d.ts +0 -47
- package/dist/tools/validation.d.ts.map +0 -1
- package/dist/tools/web-search.d.ts +0 -24
- package/dist/tools/web-search.d.ts.map +0 -1
- package/dist/tools/workflow-tool.d.ts +0 -11
- package/dist/tools/workflow-tool.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -123
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/workflow.d.ts +0 -110
- package/dist/types/workflow.d.ts.map +0 -1
- package/dist/ui/components/AgentTimer.d.ts +0 -7
- package/dist/ui/components/AgentTimer.d.ts.map +0 -1
- package/dist/ui/components/App.d.ts +0 -197
- package/dist/ui/components/App.d.ts.map +0 -1
- package/dist/ui/components/AuthScreen.d.ts +0 -8
- package/dist/ui/components/AuthScreen.d.ts.map +0 -1
- package/dist/ui/components/AuthWelcomeScreen.d.ts +0 -8
- package/dist/ui/components/AuthWelcomeScreen.d.ts.map +0 -1
- package/dist/ui/components/Breadcrumbs.d.ts +0 -13
- package/dist/ui/components/Breadcrumbs.d.ts.map +0 -1
- package/dist/ui/components/CircularSelectInput.d.ts +0 -24
- package/dist/ui/components/CircularSelectInput.d.ts.map +0 -1
- package/dist/ui/components/ClipboardFileAutocomplete.d.ts +0 -10
- package/dist/ui/components/ClipboardFileAutocomplete.d.ts.map +0 -1
- package/dist/ui/components/CodeBlock.d.ts +0 -9
- package/dist/ui/components/CodeBlock.d.ts.map +0 -1
- package/dist/ui/components/ConfigViewer.d.ts +0 -11
- package/dist/ui/components/ConfigViewer.d.ts.map +0 -1
- package/dist/ui/components/ConfirmPrompt.d.ts +0 -13
- package/dist/ui/components/ConfirmPrompt.d.ts.map +0 -1
- package/dist/ui/components/ConnectionStatusMessage.d.ts +0 -17
- package/dist/ui/components/ConnectionStatusMessage.d.ts.map +0 -1
- package/dist/ui/components/ContextWindowIndicator.d.ts +0 -8
- package/dist/ui/components/ContextWindowIndicator.d.ts.map +0 -1
- package/dist/ui/components/DetailedPlanReviewScreen.d.ts +0 -17
- package/dist/ui/components/DetailedPlanReviewScreen.d.ts.map +0 -1
- package/dist/ui/components/DiffViewer.d.ts +0 -9
- package/dist/ui/components/DiffViewer.d.ts.map +0 -1
- package/dist/ui/components/ErrorBoundary.d.ts +0 -17
- package/dist/ui/components/ErrorBoundary.d.ts.map +0 -1
- package/dist/ui/components/FileCreationPreview.d.ts +0 -8
- package/dist/ui/components/FileCreationPreview.d.ts.map +0 -1
- package/dist/ui/components/FileOperation.d.ts +0 -10
- package/dist/ui/components/FileOperation.d.ts.map +0 -1
- package/dist/ui/components/FileTagAutocomplete.d.ts +0 -11
- package/dist/ui/components/FileTagAutocomplete.d.ts.map +0 -1
- package/dist/ui/components/FontRecommendation.d.ts +0 -1
- package/dist/ui/components/FontRecommendation.d.ts.map +0 -1
- package/dist/ui/components/InputBox.d.ts +0 -42
- package/dist/ui/components/InputBox.d.ts.map +0 -1
- package/dist/ui/components/InteractiveShell.d.ts +0 -30
- package/dist/ui/components/InteractiveShell.d.ts.map +0 -1
- package/dist/ui/components/KeyboardHelp.d.ts +0 -7
- package/dist/ui/components/KeyboardHelp.d.ts.map +0 -1
- package/dist/ui/components/LoadingIndicator.d.ts +0 -3
- package/dist/ui/components/LoadingIndicator.d.ts.map +0 -1
- package/dist/ui/components/MCPAddScreen.d.ts +0 -13
- package/dist/ui/components/MCPAddScreen.d.ts.map +0 -1
- package/dist/ui/components/MCPListScreen.d.ts +0 -17
- package/dist/ui/components/MCPListScreen.d.ts.map +0 -1
- package/dist/ui/components/MCPServerListScreen.d.ts +0 -16
- package/dist/ui/components/MCPServerListScreen.d.ts.map +0 -1
- package/dist/ui/components/MarkdownRenderer.d.ts +0 -8
- package/dist/ui/components/MarkdownRenderer.d.ts.map +0 -1
- package/dist/ui/components/MessageBox.d.ts +0 -10
- package/dist/ui/components/MessageBox.d.ts.map +0 -1
- package/dist/ui/components/MessageDisplay.d.ts +0 -14
- package/dist/ui/components/MessageDisplay.d.ts.map +0 -1
- package/dist/ui/components/MonitorModeAIPanel.d.ts +0 -23
- package/dist/ui/components/MonitorModeAIPanel.d.ts.map +0 -1
- package/dist/ui/components/MultiLineInput.d.ts +0 -13
- package/dist/ui/components/MultiLineInput.d.ts.map +0 -1
- package/dist/ui/components/PasswordPrompt.d.ts +0 -9
- package/dist/ui/components/PasswordPrompt.d.ts.map +0 -1
- package/dist/ui/components/PlanAcceptedMessage.d.ts +0 -20
- package/dist/ui/components/PlanAcceptedMessage.d.ts.map +0 -1
- package/dist/ui/components/PlanReviewScreen.d.ts +0 -14
- package/dist/ui/components/PlanReviewScreen.d.ts.map +0 -1
- package/dist/ui/components/SelectPrompt.d.ts +0 -12
- package/dist/ui/components/SelectPrompt.d.ts.map +0 -1
- package/dist/ui/components/SlashCommandAutocomplete.d.ts +0 -13
- package/dist/ui/components/SlashCommandAutocomplete.d.ts.map +0 -1
- package/dist/ui/components/StatusBar.d.ts +0 -14
- package/dist/ui/components/StatusBar.d.ts.map +0 -1
- package/dist/ui/components/StreamingMessageDisplay.d.ts +0 -15
- package/dist/ui/components/StreamingMessageDisplay.d.ts.map +0 -1
- package/dist/ui/components/TaskCompletedMessage.d.ts +0 -14
- package/dist/ui/components/TaskCompletedMessage.d.ts.map +0 -1
- package/dist/ui/components/TaskProgressIndicator.d.ts +0 -18
- package/dist/ui/components/TaskProgressIndicator.d.ts.map +0 -1
- package/dist/ui/components/ThinkingDisplay.d.ts +0 -15
- package/dist/ui/components/ThinkingDisplay.d.ts.map +0 -1
- package/dist/ui/components/ToolExecutionMessage.d.ts +0 -8
- package/dist/ui/components/ToolExecutionMessage.d.ts.map +0 -1
- package/dist/ui/components/ToolExecutionStatus.d.ts +0 -10
- package/dist/ui/components/ToolExecutionStatus.d.ts.map +0 -1
- package/dist/ui/components/ToolResult.d.ts +0 -10
- package/dist/ui/components/ToolResult.d.ts.map +0 -1
- package/dist/ui/components/VersionUpdatePrompt.d.ts +0 -9
- package/dist/ui/components/VersionUpdatePrompt.d.ts.map +0 -1
- package/dist/ui/components/WelcomeBanner.d.ts +0 -3
- package/dist/ui/components/WelcomeBanner.d.ts.map +0 -1
- package/dist/ui/components/WorkflowCreatorScreen.d.ts +0 -25
- package/dist/ui/components/WorkflowCreatorScreen.d.ts.map +0 -1
- package/dist/utils/ansi-encoder.d.ts +0 -7
- package/dist/utils/ansi-encoder.d.ts.map +0 -1
- package/dist/utils/chat-formatter.d.ts +0 -12
- package/dist/utils/chat-formatter.d.ts.map +0 -1
- package/dist/utils/command-history.d.ts +0 -24
- package/dist/utils/command-history.d.ts.map +0 -1
- package/dist/utils/context-sanitizer.d.ts +0 -50
- package/dist/utils/context-sanitizer.d.ts.map +0 -1
- package/dist/utils/conversation-logger.d.ts +0 -142
- package/dist/utils/conversation-logger.d.ts.map +0 -1
- package/dist/utils/custom-commands-manager.d.ts +0 -59
- package/dist/utils/custom-commands-manager.d.ts.map +0 -1
- package/dist/utils/editor-utils.d.ts +0 -101
- package/dist/utils/editor-utils.d.ts.map +0 -1
- package/dist/utils/file.d.ts +0 -61
- package/dist/utils/file.d.ts.map +0 -1
- package/dist/utils/input-classifier.d.ts +0 -25
- package/dist/utils/input-classifier.d.ts.map +0 -1
- package/dist/utils/logger.d.ts +0 -17
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/markdown-parser.d.ts +0 -60
- package/dist/utils/markdown-parser.d.ts.map +0 -1
- package/dist/utils/shell.d.ts +0 -47
- package/dist/utils/shell.d.ts.map +0 -1
- package/dist/utils/state.d.ts +0 -13
- package/dist/utils/state.d.ts.map +0 -1
- package/dist/utils/syntax-checker.d.ts +0 -24
- package/dist/utils/syntax-checker.d.ts.map +0 -1
- package/dist/utils/terminal-output.d.ts +0 -25
- package/dist/utils/terminal-output.d.ts.map +0 -1
- package/dist/utils/text-clipboard.d.ts +0 -12
- package/dist/utils/text-clipboard.d.ts.map +0 -1
- package/dist/utils/unicode-sanitizer.d.ts +0 -44
- package/dist/utils/unicode-sanitizer.d.ts.map +0 -1
- package/dist/utils/version-checker.d.ts +0 -14
- package/dist/utils/version-checker.d.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-ssh-handler.d.ts","sourceRoot":"","sources":["../src/test-ssh-handler.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Background Command Tool
|
|
3
|
-
*
|
|
4
|
-
* Allows the AI to execute commands in the background (non-blocking),
|
|
5
|
-
* check their status, and kill/terminate them.
|
|
6
|
-
*
|
|
7
|
-
* Uses the existing BackgroundTaskManager singleton.
|
|
8
|
-
*/
|
|
9
|
-
import { Tool } from './types.js';
|
|
10
|
-
export declare const backgroundCommandTool: Tool;
|
|
11
|
-
//# sourceMappingURL=background-command.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"background-command.d.ts","sourceRoot":"","sources":["../../src/tools/background-command.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAKlC,eAAO,MAAM,qBAAqB,EAAE,IA6QnC,CAAC"}
|
package/dist/tools/command.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/tools/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAwClC,eAAO,MAAM,cAAc,EAAE,IA6f5B,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Create Image Tool
|
|
3
|
-
*
|
|
4
|
-
* Generates images using Gemini 2.0 Flash image generation via backend API.
|
|
5
|
-
* The generated image is saved to the specified file path.
|
|
6
|
-
*/
|
|
7
|
-
import { Tool } from './types.js';
|
|
8
|
-
export declare const createImageTool: Tool;
|
|
9
|
-
export default createImageTool;
|
|
10
|
-
//# sourceMappingURL=create-image.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-image.d.ts","sourceRoot":"","sources":["../../src/tools/create-image.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAwB,MAAM,YAAY,CAAC;AAgFxD,eAAO,MAAM,eAAe,EAAE,IAiK7B,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Enter Remote Session Tool
|
|
3
|
-
*
|
|
4
|
-
* Allows the AI agent to programmatically enter SSH, Docker, or WSL environments.
|
|
5
|
-
* When executed, the session context automatically switches ("auto-warpify")
|
|
6
|
-
* and subsequent commands run in the remote environment.
|
|
7
|
-
*
|
|
8
|
-
* Password prompts are handled by the existing password request callback,
|
|
9
|
-
* which prompts the user for input when needed.
|
|
10
|
-
*/
|
|
11
|
-
import { Tool } from './types.js';
|
|
12
|
-
type SessionType = 'ssh' | 'docker' | 'wsl';
|
|
13
|
-
/**
|
|
14
|
-
* Parse connection string from SSH command
|
|
15
|
-
* Examples:
|
|
16
|
-
* "ssh rohan@192.168.1.100" -> "rohan@192.168.1.100"
|
|
17
|
-
* "ssh -p 22 rohan@localhost" -> "rohan@localhost"
|
|
18
|
-
* "ssh -i ~/.ssh/id_rsa user@host" -> "user@host"
|
|
19
|
-
*/
|
|
20
|
-
export declare function parseSSHConnectionString(command: string): string | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* Parse container name from Docker command
|
|
23
|
-
* Examples:
|
|
24
|
-
* "docker exec -it mycontainer bash" -> "mycontainer"
|
|
25
|
-
* "docker exec mycontainer sh" -> "mycontainer"
|
|
26
|
-
*/
|
|
27
|
-
export declare function parseDockerContainer(command: string): string | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* Parse WSL distro name from command
|
|
30
|
-
* Examples:
|
|
31
|
-
* "wsl" -> "Ubuntu" (default)
|
|
32
|
-
* "wsl -d Ubuntu-22.04" -> "Ubuntu-22.04"
|
|
33
|
-
*/
|
|
34
|
-
export declare function parseWSLDistro(command: string): string;
|
|
35
|
-
/**
|
|
36
|
-
* Validate that the command matches the expected session type
|
|
37
|
-
*/
|
|
38
|
-
export declare function validateCommand(command: string, sessionType: SessionType): {
|
|
39
|
-
valid: boolean;
|
|
40
|
-
error?: string;
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Get connection string based on session type and command
|
|
44
|
-
*/
|
|
45
|
-
export declare function getConnectionString(command: string, sessionType: SessionType): string | undefined;
|
|
46
|
-
export declare const enterRemoteSessionTool: Tool;
|
|
47
|
-
export {};
|
|
48
|
-
//# sourceMappingURL=enter-remote-session.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enter-remote-session.d.ts","sourceRoot":"","sources":["../../src/tools/enter-remote-session.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGlC,KAAK,WAAW,GAAG,KAAK,GAAG,QAAQ,GAAG,KAAK,CAAC;AAE5C;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAO5E;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAYxE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAMtD;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,GAAG;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CA+B7G;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,GAAG,MAAM,GAAG,SAAS,CAWjG;AAED,eAAO,MAAM,sBAAsB,EAAE,IAoIpC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fast-context.d.ts","sourceRoot":"","sources":["../../src/tools/fast-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAwB,MAAM,YAAY,CAAC;AAKxD,eAAO,MAAM,eAAe,EAAE,IAwE7B,CAAC"}
|
package/dist/tools/file-ops.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Tool } from './types.js';
|
|
2
|
-
export declare const viewFileTool: Tool;
|
|
3
|
-
export declare const writeToFileTool: Tool;
|
|
4
|
-
export declare const editFileTool: Tool;
|
|
5
|
-
export declare const multiEditFileTool: Tool;
|
|
6
|
-
export declare const listDirTool: Tool;
|
|
7
|
-
//# sourceMappingURL=file-ops.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file-ops.d.ts","sourceRoot":"","sources":["../../src/tools/file-ops.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAOlC,eAAO,MAAM,YAAY,EAAE,IA+F1B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,IAgJ7B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,IA4J1B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,IAqK/B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,IAoHzB,CAAC"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { Tool } from './types.js';
|
|
2
|
-
export interface FindFilesParams {
|
|
3
|
-
pattern: string;
|
|
4
|
-
maxResults?: number;
|
|
5
|
-
searchType?: 'all' | 'files' | 'directories';
|
|
6
|
-
}
|
|
7
|
-
export interface FindFilesResult {
|
|
8
|
-
files: string[];
|
|
9
|
-
totalFound: number;
|
|
10
|
-
truncated: boolean;
|
|
11
|
-
searchPattern: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* FindFilesTool - Find files by name using fuzzy matching
|
|
15
|
-
*
|
|
16
|
-
* This tool uses fast-glob for efficient, cross-platform file searching
|
|
17
|
-
* with gitignore support and smart result sorting.
|
|
18
|
-
*/
|
|
19
|
-
export declare class FindFilesTool {
|
|
20
|
-
private static readonly DEFAULT_MAX_RESULTS;
|
|
21
|
-
private static readonly EXCLUDE_PATTERNS;
|
|
22
|
-
/**
|
|
23
|
-
* Normalize file path to use forward slashes
|
|
24
|
-
*/
|
|
25
|
-
private normalizePath;
|
|
26
|
-
/**
|
|
27
|
-
* Validate glob pattern
|
|
28
|
-
*/
|
|
29
|
-
private validatePattern;
|
|
30
|
-
/**
|
|
31
|
-
* Calculate relevance score for sorting
|
|
32
|
-
* Lower score = more relevant
|
|
33
|
-
*/
|
|
34
|
-
private calculateRelevance;
|
|
35
|
-
/**
|
|
36
|
-
* Sort files by relevance
|
|
37
|
-
*/
|
|
38
|
-
private sortByRelevance;
|
|
39
|
-
/**
|
|
40
|
-
* Execute the file search
|
|
41
|
-
*/
|
|
42
|
-
execute(params: FindFilesParams, cwd: string, contextManager?: any): Promise<FindFilesResult>;
|
|
43
|
-
private searchRemote;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Find files tool for the tool registry
|
|
47
|
-
*/
|
|
48
|
-
export declare const findFilesTool: Tool;
|
|
49
|
-
//# sourceMappingURL=find-files.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-files.d.ts","sourceRoot":"","sources":["../../src/tools/find-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAwB,MAAM,YAAY,CAAC;AAIxD,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,aAAa,CAAC;CAC9C;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;;;;GAKG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAAM;IACjD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAYtC;IAEF;;OAEG;IACH,OAAO,CAAC,aAAa;IAIrB;;OAEG;IACH,OAAO,CAAC,eAAe;IAmBvB;;;OAGG;IACH,OAAO,CAAC,kBAAkB;IA0B1B;;OAEG;IACH,OAAO,CAAC,eAAe;IAQvB;;OAEG;IACG,OAAO,CAAC,MAAM,EAAE,eAAe,EAAE,GAAG,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,eAAe,CAAC;YA+GrF,YAAY;CA0D3B;AA0BD;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,IAyD3B,CAAC"}
|
package/dist/tools/get-diff.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Tool } from './types.js';
|
|
2
|
-
/**
|
|
3
|
-
* Rewritten get_diff tool with action-based pattern and session scope support.
|
|
4
|
-
*
|
|
5
|
-
* Actions:
|
|
6
|
-
* - "overview" (default): Shows a compact summary of files changed.
|
|
7
|
-
* - "file_diff": Shows the detailed diff for a single specific file.
|
|
8
|
-
*
|
|
9
|
-
* Scopes:
|
|
10
|
-
* - "request" (default): Changes made in the current turn (since last user message).
|
|
11
|
-
* - "session": Cumulative changes made since the start of the conversation.
|
|
12
|
-
*/
|
|
13
|
-
export declare const getDiffTool: Tool;
|
|
14
|
-
//# sourceMappingURL=get-diff.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-diff.d.ts","sourceRoot":"","sources":["../../src/tools/get-diff.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAwB,MAAM,YAAY,CAAC;AAKxD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,EAAE,IAyGzB,CAAC"}
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
import { Tool } from './types.js';
|
|
2
|
-
export interface GrepSearchParams {
|
|
3
|
-
Query: string;
|
|
4
|
-
SearchPath: string;
|
|
5
|
-
Includes?: string[];
|
|
6
|
-
CaseInsensitive?: boolean;
|
|
7
|
-
IsRegex?: boolean;
|
|
8
|
-
MatchPerLine?: boolean;
|
|
9
|
-
MaxResults?: number;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Context line with explicit line number tracking
|
|
13
|
-
*/
|
|
14
|
-
export interface ContextLine {
|
|
15
|
-
lineNumber: number;
|
|
16
|
-
text: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Enhanced match with column/offset information
|
|
20
|
-
*/
|
|
21
|
-
export interface GrepMatch {
|
|
22
|
-
file: string;
|
|
23
|
-
line: number;
|
|
24
|
-
column?: number;
|
|
25
|
-
byteOffset?: number;
|
|
26
|
-
match: string;
|
|
27
|
-
matchIndices?: [number, number][];
|
|
28
|
-
contextBefore: ContextLine[];
|
|
29
|
-
contextAfter: ContextLine[];
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Backend type - now includes powershell and nodejs
|
|
33
|
-
*/
|
|
34
|
-
export type GrepBackend = 'ripgrep' | 'grep' | 'powershell' | 'findstr' | 'nodejs' | 'remote';
|
|
35
|
-
/**
|
|
36
|
-
* Reason for result truncation
|
|
37
|
-
*/
|
|
38
|
-
export type TruncationReason = 'max_matches' | 'backend_limit' | 'timeout';
|
|
39
|
-
/**
|
|
40
|
-
* Search metadata for debugging and transparency
|
|
41
|
-
*/
|
|
42
|
-
export interface GrepSearchMetadata {
|
|
43
|
-
backend: GrepBackend;
|
|
44
|
-
searchDurationMs: number;
|
|
45
|
-
filesSearched?: number;
|
|
46
|
-
queriesExecuted: string[];
|
|
47
|
-
matchesPerQuery: Record<string, number>;
|
|
48
|
-
encodingFallback?: boolean;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Enhanced search result with structured data and metadata
|
|
52
|
-
*/
|
|
53
|
-
export interface GrepSearchResult {
|
|
54
|
-
matches: GrepMatch[];
|
|
55
|
-
totalMatches: number;
|
|
56
|
-
uniqueMatchesCount: number;
|
|
57
|
-
truncated: boolean;
|
|
58
|
-
truncationReason?: TruncationReason;
|
|
59
|
-
searchPattern: string;
|
|
60
|
-
metadata: GrepSearchMetadata;
|
|
61
|
-
formattedOutput: string;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Internal result before formatting
|
|
65
|
-
*/
|
|
66
|
-
interface InternalSearchResult {
|
|
67
|
-
matches: GrepMatch[];
|
|
68
|
-
totalMatches: number;
|
|
69
|
-
truncated: boolean;
|
|
70
|
-
truncationReason?: TruncationReason;
|
|
71
|
-
searchPattern: string;
|
|
72
|
-
filesSearched?: number;
|
|
73
|
-
encodingFallback?: boolean;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* GrepSearchTool - Cross-platform text search with multiple backends
|
|
77
|
-
*
|
|
78
|
-
* Backend priority:
|
|
79
|
-
* 1. ripgrep (fastest, cross-platform)
|
|
80
|
-
* 2. grep (Linux/macOS native)
|
|
81
|
-
* 3. PowerShell Select-String (Windows, good Unicode support)
|
|
82
|
-
* 4. Pure Node.js (universal fallback, no dependencies)
|
|
83
|
-
*
|
|
84
|
-
* Features:
|
|
85
|
-
* - Streaming output to handle large repos
|
|
86
|
-
* - Early abort when MAX_MATCHES reached
|
|
87
|
-
* - Proper encoding handling (UTF-8 with fallback)
|
|
88
|
-
* - CRLF normalization
|
|
89
|
-
* - Windows path support (drive letters, UNC)
|
|
90
|
-
*/
|
|
91
|
-
export declare class GrepSearchTool {
|
|
92
|
-
static readonly DEFAULT_MAX_MATCHES = 50;
|
|
93
|
-
private static readonly MAX_LINE_LENGTH;
|
|
94
|
-
private static readonly CONTEXT_LINES;
|
|
95
|
-
private static readonly SEARCH_TIMEOUT;
|
|
96
|
-
private static toolCache;
|
|
97
|
-
/**
|
|
98
|
-
* Check if a command is available
|
|
99
|
-
*/
|
|
100
|
-
private hasCommand;
|
|
101
|
-
private hasRipgrep;
|
|
102
|
-
private hasGrep;
|
|
103
|
-
private hasPowerShell;
|
|
104
|
-
/**
|
|
105
|
-
* Get the PowerShell executable name
|
|
106
|
-
*/
|
|
107
|
-
private getPowerShellExe;
|
|
108
|
-
/**
|
|
109
|
-
* Normalize file path to forward slashes
|
|
110
|
-
*/
|
|
111
|
-
private normalizePath;
|
|
112
|
-
/**
|
|
113
|
-
* Truncate long lines
|
|
114
|
-
*/
|
|
115
|
-
private truncateLine;
|
|
116
|
-
/**
|
|
117
|
-
* Normalize line endings (CRLF -> LF)
|
|
118
|
-
*/
|
|
119
|
-
private normalizeLineEndings;
|
|
120
|
-
/**
|
|
121
|
-
* Parse file:line:content format robustly, handling Windows paths
|
|
122
|
-
* E.g., "C:\foo\bar.ts:42:content" or "/foo/bar.ts:42:content"
|
|
123
|
-
*/
|
|
124
|
-
private parseGrepLine;
|
|
125
|
-
/**
|
|
126
|
-
* Create regex from pattern
|
|
127
|
-
*/
|
|
128
|
-
private createSearchRegex;
|
|
129
|
-
/**
|
|
130
|
-
* Escape regex special characters
|
|
131
|
-
*/
|
|
132
|
-
private escapeRegex;
|
|
133
|
-
/**
|
|
134
|
-
* Check if file matches include patterns
|
|
135
|
-
*/
|
|
136
|
-
private matchesIncludesFilter;
|
|
137
|
-
/**
|
|
138
|
-
* Check if file is likely binary
|
|
139
|
-
*/
|
|
140
|
-
private isBinaryFile;
|
|
141
|
-
private searchWithRipgrepStreaming;
|
|
142
|
-
private searchWithGrepStreaming;
|
|
143
|
-
private searchWithPowerShell;
|
|
144
|
-
private searchWithNodeJS;
|
|
145
|
-
/**
|
|
146
|
-
* Recursively collect files from directory
|
|
147
|
-
*/
|
|
148
|
-
private collectFiles;
|
|
149
|
-
execute(params: GrepSearchParams, cwd: string): Promise<InternalSearchResult & {
|
|
150
|
-
backend: GrepBackend;
|
|
151
|
-
}>;
|
|
152
|
-
}
|
|
153
|
-
export declare const grepSearchTool: Tool;
|
|
154
|
-
export {};
|
|
155
|
-
//# sourceMappingURL=grep-search.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"grep-search.d.ts","sourceRoot":"","sources":["../../src/tools/grep-search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAwB,MAAM,YAAY,CAAC;AAexD,MAAM,WAAW,gBAAgB;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;IAClC,aAAa,EAAE,WAAW,EAAE,CAAC;IAC7B,YAAY,EAAE,WAAW,EAAE,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,MAAM,GAAG,YAAY,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE9F;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG,eAAe,GAAG,SAAS,CAAC;AAE3E;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B,OAAO,EAAE,WAAW,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,SAAS,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,eAAe,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,UAAU,oBAAoB;IAC1B,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAMD;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,cAAc;IACvB,gBAAuB,mBAAmB,MAAM;IAChD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAO;IAC9C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAK;IAC1C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAS;IAG/C,OAAO,CAAC,MAAM,CAAC,SAAS,CAAmC;IAE3D;;OAEG;YACW,UAAU;YAmBV,UAAU;YAIV,OAAO;YAIP,aAAa;IAS3B;;OAEG;YACW,gBAAgB;IAK9B;;OAEG;IACH,OAAO,CAAC,aAAa;IAIrB;;OAEG;IACH,OAAO,CAAC,YAAY;IAOpB;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAI5B;;;OAGG;IACH,OAAO,CAAC,aAAa;IAgBrB;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAazB;;OAEG;IACH,OAAO,CAAC,WAAW;IAInB;;OAEG;IACH,OAAO,CAAC,qBAAqB;IA0B7B;;OAEG;YACW,YAAY;YAqBZ,0BAA0B;YA0K1B,uBAAuB;YAyHvB,oBAAoB;YA8HpB,gBAAgB;IAkI9B;;OAEG;YACW,YAAY;IAgCpB,OAAO,CAAC,MAAM,EAAE,gBAAgB,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,GAAG;QAAE,OAAO,EAAE,WAAW,CAAA;KAAE,CAAC;CA8CjH;AA6ID,eAAO,MAAM,cAAc,EAAE,IAuK5B,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Tool } from './types.js';
|
|
2
|
-
export interface InspectSymbolParams {
|
|
3
|
-
filePath: string;
|
|
4
|
-
}
|
|
5
|
-
export interface Symbol {
|
|
6
|
-
name: string;
|
|
7
|
-
type: 'function' | 'class' | 'method' | 'export' | 'interface' | 'type';
|
|
8
|
-
signature?: string;
|
|
9
|
-
line: number;
|
|
10
|
-
parentClass?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface InspectSymbolResult {
|
|
13
|
-
symbols: Symbol[];
|
|
14
|
-
filePath: string;
|
|
15
|
-
language: string;
|
|
16
|
-
truncated: boolean;
|
|
17
|
-
}
|
|
18
|
-
export declare class InspectSymbolTool {
|
|
19
|
-
private readonly MAX_SYMBOLS;
|
|
20
|
-
private readonly languageParsers;
|
|
21
|
-
execute(params: InspectSymbolParams, cwd: string): Promise<InspectSymbolResult>;
|
|
22
|
-
private parseTypeScriptJavaScript;
|
|
23
|
-
private parsePython;
|
|
24
|
-
private parseJava;
|
|
25
|
-
private getIndentLevel;
|
|
26
|
-
private normalizePath;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Tool wrapper for the registry
|
|
30
|
-
*/
|
|
31
|
-
export declare const inspectSymbolTool: Tool;
|
|
32
|
-
//# sourceMappingURL=inspect-symbol.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inspect-symbol.d.ts","sourceRoot":"","sources":["../../src/tools/inspect-symbol.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAwB,MAAM,YAAY,CAAC;AAExD,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,WAAW,GAAG,MAAM,CAAC;IACxE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;CACpB;AAQD,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAO;IAEnC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAgB9B;IAEI,OAAO,CAAC,MAAM,EAAE,mBAAmB,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;IA4CrF,OAAO,CAAC,yBAAyB;IA+GjC,OAAO,CAAC,WAAW;IAmDnB,OAAO,CAAC,SAAS;IA2DjB,OAAO,CAAC,cAAc;IAKtB,OAAO,CAAC,aAAa;CAGtB;AA2CD;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,IA2C/B,CAAC"}
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Plan Mode - Structured Task Planning and Execution
|
|
3
|
-
* Enables AI to create structured plans with hierarchical tasks and track completion
|
|
4
|
-
*
|
|
5
|
-
* Enhanced Features:
|
|
6
|
-
* - Hierarchical tasks with subtasks (e.g., Task 1 -> 1.1, 1.2, 1.3)
|
|
7
|
-
* - Design summary for context understanding
|
|
8
|
-
* - Phased execution (one task at a time)
|
|
9
|
-
* - Subtask-level completion tracking
|
|
10
|
-
*/
|
|
11
|
-
import { Tool } from './types.js';
|
|
12
|
-
/**
|
|
13
|
-
* A subtask within a main task (e.g., 1.1, 1.2, 2.1)
|
|
14
|
-
*/
|
|
15
|
-
export interface PlanSubtask {
|
|
16
|
-
id: string;
|
|
17
|
-
description: string;
|
|
18
|
-
status: 'pending' | 'in_progress' | 'completed' | 'skipped';
|
|
19
|
-
requirements?: string;
|
|
20
|
-
completedAt?: Date;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* A main task in the plan (e.g., Task 1, Task 2)
|
|
24
|
-
*/
|
|
25
|
-
export interface PlanStep {
|
|
26
|
-
id: string;
|
|
27
|
-
description: string;
|
|
28
|
-
subtasks: PlanSubtask[];
|
|
29
|
-
status: 'pending' | 'in_progress' | 'completed' | 'skipped';
|
|
30
|
-
estimatedComplexity?: 'low' | 'medium' | 'high';
|
|
31
|
-
requirements?: string;
|
|
32
|
-
completedAt?: Date;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* The complete plan with design summary and hierarchical tasks
|
|
36
|
-
*/
|
|
37
|
-
export interface Plan {
|
|
38
|
-
title: string;
|
|
39
|
-
designSummary: string;
|
|
40
|
-
summary: string;
|
|
41
|
-
steps: PlanStep[];
|
|
42
|
-
createdAt: Date;
|
|
43
|
-
approved: boolean;
|
|
44
|
-
isActive: boolean;
|
|
45
|
-
currentTaskIndex: number;
|
|
46
|
-
currentSubtaskIndex: number;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Create Plan Tool
|
|
50
|
-
* AI uses this to generate a structured plan with hierarchical tasks
|
|
51
|
-
*/
|
|
52
|
-
export declare const createPlanTool: Tool;
|
|
53
|
-
/**
|
|
54
|
-
* Mark Task Complete Tool
|
|
55
|
-
* AI uses this to mark individual tasks or subtasks as completed during execution
|
|
56
|
-
*/
|
|
57
|
-
export declare const markTaskCompleteTool: Tool;
|
|
58
|
-
/**
|
|
59
|
-
* Set the current plan (used by CLI adapter)
|
|
60
|
-
*/
|
|
61
|
-
export declare function setPlan(plan: Plan): void;
|
|
62
|
-
/**
|
|
63
|
-
* Get the current plan
|
|
64
|
-
*/
|
|
65
|
-
export declare function getCurrentPlan(): Plan | null;
|
|
66
|
-
/**
|
|
67
|
-
* Clear the current plan
|
|
68
|
-
*/
|
|
69
|
-
export declare function clearPlan(): void;
|
|
70
|
-
/**
|
|
71
|
-
* Approve the current plan and make it active
|
|
72
|
-
*/
|
|
73
|
-
export declare function approvePlan(): Plan | null;
|
|
74
|
-
/**
|
|
75
|
-
* Mark a task as complete by task number (for compatibility)
|
|
76
|
-
*/
|
|
77
|
-
export declare function markTaskComplete(taskNumber: number): PlanStep | null;
|
|
78
|
-
/**
|
|
79
|
-
* Get the current phase (task) with all its subtasks
|
|
80
|
-
*/
|
|
81
|
-
export declare function getCurrentPhase(): {
|
|
82
|
-
taskNumber: number;
|
|
83
|
-
task: PlanStep;
|
|
84
|
-
} | null;
|
|
85
|
-
/**
|
|
86
|
-
* Advance to the next phase after current task is complete
|
|
87
|
-
* Returns the new phase or null if all phases are done
|
|
88
|
-
*/
|
|
89
|
-
export declare function advanceToNextPhase(): {
|
|
90
|
-
taskNumber: number;
|
|
91
|
-
task: PlanStep;
|
|
92
|
-
} | null;
|
|
93
|
-
/**
|
|
94
|
-
* Get the next incomplete task
|
|
95
|
-
*/
|
|
96
|
-
export declare function getNextIncompleteTask(): {
|
|
97
|
-
taskNumber: number;
|
|
98
|
-
task: PlanStep;
|
|
99
|
-
} | null;
|
|
100
|
-
/**
|
|
101
|
-
* Check if all tasks are complete
|
|
102
|
-
*/
|
|
103
|
-
export declare function areAllTasksComplete(): boolean;
|
|
104
|
-
/**
|
|
105
|
-
* Get plan progress summary (including subtasks)
|
|
106
|
-
*/
|
|
107
|
-
export declare function getPlanProgress(): {
|
|
108
|
-
completed: number;
|
|
109
|
-
total: number;
|
|
110
|
-
percentage: number;
|
|
111
|
-
currentTask: number;
|
|
112
|
-
totalTasks: number;
|
|
113
|
-
} | null;
|
|
114
|
-
/**
|
|
115
|
-
* Generate plan context for AI system prompt injection (shows all tasks)
|
|
116
|
-
*/
|
|
117
|
-
export declare function getPlanContextForPrompt(): string;
|
|
118
|
-
/**
|
|
119
|
-
* Generate context for only the current phase (single task with its subtasks)
|
|
120
|
-
* Used for phased execution where AI only sees one task at a time
|
|
121
|
-
*/
|
|
122
|
-
export declare function getPhaseContextForPrompt(): string;
|
|
123
|
-
declare const _default: {
|
|
124
|
-
createPlanTool: Tool;
|
|
125
|
-
markTaskCompleteTool: Tool;
|
|
126
|
-
setPlan: typeof setPlan;
|
|
127
|
-
getCurrentPlan: typeof getCurrentPlan;
|
|
128
|
-
clearPlan: typeof clearPlan;
|
|
129
|
-
approvePlan: typeof approvePlan;
|
|
130
|
-
markTaskComplete: typeof markTaskComplete;
|
|
131
|
-
getCurrentPhase: typeof getCurrentPhase;
|
|
132
|
-
advanceToNextPhase: typeof advanceToNextPhase;
|
|
133
|
-
getNextIncompleteTask: typeof getNextIncompleteTask;
|
|
134
|
-
areAllTasksComplete: typeof areAllTasksComplete;
|
|
135
|
-
getPlanProgress: typeof getPlanProgress;
|
|
136
|
-
getPlanContextForPrompt: typeof getPlanContextForPrompt;
|
|
137
|
-
getPhaseContextForPrompt: typeof getPhaseContextForPrompt;
|
|
138
|
-
};
|
|
139
|
-
export default _default;
|
|
140
|
-
//# sourceMappingURL=plan-mode.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plan-mode.d.ts","sourceRoot":"","sources":["../../src/tools/plan-mode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,IAAI,EAAwB,MAAM,YAAY,CAAC;AAMxD;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,SAAS,GAAG,aAAa,GAAG,WAAW,GAAG,SAAS,CAAC;IAC5D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,IAAI,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,MAAM,EAAE,SAAS,GAAG,aAAa,GAAG,WAAW,GAAG,SAAS,CAAC;IAC5D,mBAAmB,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;IAChD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,IAAI,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,SAAS,EAAE,IAAI,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAaD;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,IAsI5B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,IAqJlC,CAAC;AAoCF;;GAEG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAExC;AAED;;GAEG;AACH,wBAAgB,cAAc,IAAI,IAAI,GAAG,IAAI,CAE5C;AAED;;GAEG;AACH,wBAAgB,SAAS,IAAI,IAAI,CAEhC;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,IAAI,GAAG,IAAI,CAQzC;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAgBpE;AAED;;GAEG;AACH,wBAAgB,eAAe,IAAI;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,GAAG,IAAI,CAiB/E;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,GAAG,IAAI,CAwBlF;AAED;;GAEG;AACH,wBAAgB,qBAAqB,IAAI;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,GAAG,IAAI,CAUrF;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,OAAO,CAG7C;AAED;;GAEG;AACH,wBAAgB,eAAe,IAAI;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAe1I;AAED;;GAEG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,CAuChD;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,IAAI,MAAM,CA0CjD;;;;;;;;;;;;;;;;;AAMD,wBAeE"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Read Binary File Tool
|
|
3
|
-
*
|
|
4
|
-
* Enables the AI to read non-text files (PDFs, images, documents) by uploading
|
|
5
|
-
* them to Google Cloud Storage and attaching them to the conversation context
|
|
6
|
-
* for Vertex AI multimodal understanding.
|
|
7
|
-
*/
|
|
8
|
-
import { Tool } from './types.js';
|
|
9
|
-
export declare const readBinaryFileTool: Tool;
|
|
10
|
-
//# sourceMappingURL=read-binary-file.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"read-binary-file.d.ts","sourceRoot":"","sources":["../../src/tools/read-binary-file.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAyDlC,eAAO,MAAM,kBAAkB,EAAE,IA+JhC,CAAC"}
|
package/dist/tools/registry.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Tool, ToolSchema, ToolExecutionContext } from './types.js';
|
|
2
|
-
export declare class ToolRegistry {
|
|
3
|
-
private tools;
|
|
4
|
-
/**
|
|
5
|
-
* Register a new tool
|
|
6
|
-
*/
|
|
7
|
-
register(tool: Tool): void;
|
|
8
|
-
/**
|
|
9
|
-
* Get a tool by name
|
|
10
|
-
*/
|
|
11
|
-
get(name: string): Tool | undefined;
|
|
12
|
-
/**
|
|
13
|
-
* Get all registered tool schemas (for AI provider)
|
|
14
|
-
* Automatically injects reason_text parameter into all tools (except task_complete)
|
|
15
|
-
*/
|
|
16
|
-
getSchemas(): ToolSchema[];
|
|
17
|
-
/**
|
|
18
|
-
* Execute a tool
|
|
19
|
-
*/
|
|
20
|
-
execute(name: string, args: Record<string, any>, context: ToolExecutionContext): Promise<{
|
|
21
|
-
success: boolean;
|
|
22
|
-
result: string;
|
|
23
|
-
error?: string;
|
|
24
|
-
feedback?: string;
|
|
25
|
-
}>;
|
|
26
|
-
/**
|
|
27
|
-
* Get list of all tool names
|
|
28
|
-
*/
|
|
29
|
-
listTools(): string[];
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/tools/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEpE,qBAAa,YAAY;IACvB,OAAO,CAAC,KAAK,CAAgC;IAE7C;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;IAI1B;;OAEG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS;IAInC;;;OAGG;IACH,UAAU,IAAI,UAAU,EAAE;IA6B1B;;OAEG;IACG,OAAO,CACX,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACzB,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAwCnF;;OAEG;IACH,SAAS,IAAI,MAAM,EAAE;CAGtB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reproduce_issue.d.ts","sourceRoot":"","sources":["../../src/tools/reproduce_issue.ts"],"names":[],"mappings":""}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Sub-Agent Tool
|
|
3
|
-
*
|
|
4
|
-
* Allows the main AI agent to spawn and manage background sub-agents
|
|
5
|
-
* for delegated tasks. Uses action-based pattern similar to background_command.
|
|
6
|
-
*/
|
|
7
|
-
import { Tool } from './types.js';
|
|
8
|
-
export declare const subAgentTool: Tool;
|
|
9
|
-
//# sourceMappingURL=sub-agent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sub-agent.d.ts","sourceRoot":"","sources":["../../src/tools/sub-agent.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGlC,eAAO,MAAM,YAAY,EAAE,IA6P1B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"task-complete.d.ts","sourceRoot":"","sources":["../../src/tools/task-complete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,eAAO,MAAM,gBAAgB,EAAE,IA4B9B,CAAC"}
|
package/dist/tools/types.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
export interface ToolParameter {
|
|
2
|
-
type: string;
|
|
3
|
-
description: string;
|
|
4
|
-
required?: boolean;
|
|
5
|
-
enum?: string[];
|
|
6
|
-
}
|
|
7
|
-
export interface ToolSchema {
|
|
8
|
-
name: string;
|
|
9
|
-
description: string;
|
|
10
|
-
parameters: {
|
|
11
|
-
type: 'object';
|
|
12
|
-
properties: Record<string, any>;
|
|
13
|
-
required?: string[];
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
export interface ToolExecutionContext {
|
|
17
|
-
cwd: string;
|
|
18
|
-
contextManager: any;
|
|
19
|
-
cliAdapter?: any;
|
|
20
|
-
requireApproval: (message: string, risky: boolean, preview?: {
|
|
21
|
-
type: 'code' | 'diff';
|
|
22
|
-
content: string;
|
|
23
|
-
language?: string;
|
|
24
|
-
fullDiff?: string;
|
|
25
|
-
}, operationType?: 'write_file' | 'edit_file' | 'execute_command' | 'write_to_file' | 'multi_edit_file', operationDetails?: Record<string, any>) => Promise<boolean | {
|
|
26
|
-
approved: false;
|
|
27
|
-
feedback: string;
|
|
28
|
-
}>;
|
|
29
|
-
onStreamingOutput?: (chunk: string, type: 'stdout' | 'stderr', toolName?: string) => void;
|
|
30
|
-
renderer?: any;
|
|
31
|
-
checkpointManager?: any;
|
|
32
|
-
currentCheckpointId?: string;
|
|
33
|
-
currentChatId?: string;
|
|
34
|
-
}
|
|
35
|
-
export type ToolFunction = (args: Record<string, any>, context: ToolExecutionContext) => Promise<string>;
|
|
36
|
-
export interface Tool {
|
|
37
|
-
schema: ToolSchema;
|
|
38
|
-
execute: ToolFunction;
|
|
39
|
-
}
|
|
40
|
-
//# sourceMappingURL=types.d.ts.map
|