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,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TaskCompletedMessage Component
|
|
3
|
-
* Displays a task completion message in the chat with checkbox styling
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
interface TaskCompletedMessageProps {
|
|
7
|
-
taskNumber: number;
|
|
8
|
-
totalTasks: number;
|
|
9
|
-
taskDescription: string;
|
|
10
|
-
completionNote?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare const TaskCompletedMessage: React.FC<TaskCompletedMessageProps>;
|
|
13
|
-
export default TaskCompletedMessage;
|
|
14
|
-
//# sourceMappingURL=TaskCompletedMessage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TaskCompletedMessage.d.ts","sourceRoot":"","sources":["../../../src/ui/components/TaskCompletedMessage.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,yBAAyB;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA8BpE,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TaskProgressIndicator Component
|
|
3
|
-
*
|
|
4
|
-
* Displays the current execution progress during phased plan execution
|
|
5
|
-
* Shows current task number, subtask progress, and overall completion
|
|
6
|
-
*/
|
|
7
|
-
import React from 'react';
|
|
8
|
-
interface TaskProgressIndicatorProps {
|
|
9
|
-
currentTask: number;
|
|
10
|
-
totalTasks: number;
|
|
11
|
-
currentSubtask?: number;
|
|
12
|
-
totalSubtasks?: number;
|
|
13
|
-
taskDescription?: string;
|
|
14
|
-
compact?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export declare const TaskProgressIndicator: React.FC<TaskProgressIndicatorProps>;
|
|
17
|
-
export default TaskProgressIndicator;
|
|
18
|
-
//# sourceMappingURL=TaskProgressIndicator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TaskProgressIndicator.d.ts","sourceRoot":"","sources":["../../../src/ui/components/TaskProgressIndicator.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,0BAA0B;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CA2FtE,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface ThinkingDisplayProps {
|
|
3
|
-
thinking: string;
|
|
4
|
-
isComplete?: boolean;
|
|
5
|
-
/** Optional max height for the thinking display box */
|
|
6
|
-
maxHeight?: number;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* ThinkingDisplay - Shows model's thinking/reasoning in a scrolling container
|
|
10
|
-
* Shows only the first 2 lines in a scrolling container that disappears after 3 seconds when complete
|
|
11
|
-
* Height can be dynamically adjusted based on terminal size
|
|
12
|
-
*/
|
|
13
|
-
export declare const ThinkingDisplay: React.FC<ThinkingDisplayProps>;
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=ThinkingDisplay.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ThinkingDisplay.d.ts","sourceRoot":"","sources":["../../../src/ui/components/ThinkingDisplay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,UAAU,oBAAoB;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA8D1D,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Message } from '../../types/index.js';
|
|
3
|
-
interface ToolExecutionMessageProps {
|
|
4
|
-
message: Message;
|
|
5
|
-
}
|
|
6
|
-
export declare const ToolExecutionMessage: React.FC<ToolExecutionMessageProps>;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=ToolExecutionMessage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ToolExecutionMessage.d.ts","sourceRoot":"","sources":["../../../src/ui/components/ToolExecutionMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAG/C,UAAU,yBAAyB;IACjC,OAAO,EAAE,OAAO,CAAC;CAClB;AA4UD,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA+nCnE,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface ToolExecutionStatusProps {
|
|
3
|
-
toolName: string;
|
|
4
|
-
status: 'pending' | 'executing' | 'success' | 'error';
|
|
5
|
-
result?: string;
|
|
6
|
-
error?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const ToolExecutionStatus: React.FC<ToolExecutionStatusProps>;
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=ToolExecutionStatus.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ToolExecutionStatus.d.ts","sourceRoot":"","sources":["../../../src/ui/components/ToolExecutionStatus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,UAAU,wBAAwB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,CAAC;IACtD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAwCD,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAgEjE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ToolResult.d.ts","sourceRoot":"","sources":["../../../src/ui/components/ToolResult.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,eAAe;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA2BhD,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface VersionUpdatePromptProps {
|
|
3
|
-
currentVersion: string;
|
|
4
|
-
latestVersion: string;
|
|
5
|
-
onComplete: () => void;
|
|
6
|
-
}
|
|
7
|
-
export declare const VersionUpdatePrompt: React.FC<VersionUpdatePromptProps>;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=VersionUpdatePrompt.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VersionUpdatePrompt.d.ts","sourceRoot":"","sources":["../../../src/ui/components/VersionUpdatePrompt.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAM3D,UAAU,wBAAwB;IAChC,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB;AAID,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAqKlE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WelcomeBanner.d.ts","sourceRoot":"","sources":["../../../src/ui/components/WelcomeBanner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAkChC,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Workflow Creator Screen
|
|
3
|
-
*
|
|
4
|
-
* A screen for creating new workflows with step-by-step input.
|
|
5
|
-
* Supports both command (exact) and instruction (interpreted) step types.
|
|
6
|
-
*
|
|
7
|
-
* Controls:
|
|
8
|
-
* - Type step content and press Enter to add
|
|
9
|
-
* - Ctrl+D to toggle between Command and Instruction mode
|
|
10
|
-
* - Ctrl+S to save the workflow
|
|
11
|
-
* - ESC to cancel and exit
|
|
12
|
-
*/
|
|
13
|
-
import React from 'react';
|
|
14
|
-
interface WorkflowStep {
|
|
15
|
-
type: 'command' | 'instruction';
|
|
16
|
-
content: string;
|
|
17
|
-
}
|
|
18
|
-
interface WorkflowCreatorScreenProps {
|
|
19
|
-
onSave: (name: string, steps: WorkflowStep[], description?: string) => void;
|
|
20
|
-
onCancel: () => void;
|
|
21
|
-
initialSteps?: WorkflowStep[];
|
|
22
|
-
}
|
|
23
|
-
export declare const WorkflowCreatorScreen: React.FC<WorkflowCreatorScreenProps>;
|
|
24
|
-
export {};
|
|
25
|
-
//# sourceMappingURL=WorkflowCreatorScreen.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WorkflowCreatorScreen.d.ts","sourceRoot":"","sources":["../../../src/ui/components/WorkflowCreatorScreen.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAgC,MAAM,OAAO,CAAC;AAIrD,UAAU,YAAY;IAClB,IAAI,EAAE,SAAS,GAAG,aAAa,CAAC;IAChC,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,0BAA0B;IAChC,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE,WAAW,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5E,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,YAAY,CAAC,EAAE,YAAY,EAAE,CAAC;CACjC;AAID,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CA6MtE,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Converts Ink key events into ANSI escape sequences for the child process.
|
|
3
|
-
* This acts as a "translator" between Ink's key objects and the raw ANSI codes
|
|
4
|
-
* that terminal programs expect, emulating PTY behavior without native dependencies.
|
|
5
|
-
*/
|
|
6
|
-
export declare function encodeKeyToAnsi(input: string, key: any): string;
|
|
7
|
-
//# sourceMappingURL=ansi-encoder.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ansi-encoder.d.ts","sourceRoot":"","sources":["../../src/utils/ansi-encoder.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,GAAG,MAAM,CAoD/D"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Chat Formatter Utility
|
|
3
|
-
*
|
|
4
|
-
* Formats chat messages into human-readable text for clipboard sharing.
|
|
5
|
-
* Converts internal tool call JSON and execution data into readable descriptions.
|
|
6
|
-
*/
|
|
7
|
-
import { Message } from '../types/index.js';
|
|
8
|
-
/**
|
|
9
|
-
* Format entire chat history into human-readable text for clipboard sharing.
|
|
10
|
-
*/
|
|
11
|
-
export declare function formatChatForClipboard(messages: Message[]): string;
|
|
12
|
-
//# sourceMappingURL=chat-formatter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chat-formatter.d.ts","sourceRoot":"","sources":["../../src/utils/chat-formatter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,OAAO,EAAiB,MAAM,mBAAmB,CAAC;AA+U3D;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,MAAM,CAiBlE"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export declare class CommandHistoryManager {
|
|
2
|
-
private static instance;
|
|
3
|
-
private historyPath;
|
|
4
|
-
private data;
|
|
5
|
-
private loaded;
|
|
6
|
-
private constructor();
|
|
7
|
-
static getInstance(): CommandHistoryManager;
|
|
8
|
-
load(): Promise<void>;
|
|
9
|
-
save(): Promise<void>;
|
|
10
|
-
/**
|
|
11
|
-
* Get all commands executed in the specific directory/environment context.
|
|
12
|
-
* Sorted by frequency (descending) then recency (descending).
|
|
13
|
-
*/
|
|
14
|
-
getDirectoryHistory(cwd: string, environment?: string): string[];
|
|
15
|
-
/**
|
|
16
|
-
* Build an environment-qualified context key for directory isolation.
|
|
17
|
-
* Format: "environment:path" (e.g., "local:/c/Users/...", "ssh:user@host:/home/...", "wsl:Ubuntu:/home/...")
|
|
18
|
-
*/
|
|
19
|
-
private buildContextKey;
|
|
20
|
-
addCommand(command: string, cwd?: string, environment?: string): Promise<void>;
|
|
21
|
-
getMatches(prefix: string, cwd?: string, environment?: string): string[];
|
|
22
|
-
getHistory(): string[];
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=command-history.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-history.d.ts","sourceRoot":"","sources":["../../src/utils/command-history.ts"],"names":[],"mappings":"AAmBA,qBAAa,qBAAqB;IAC9B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAwB;IAC/C,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,IAAI,CAA6C;IACzD,OAAO,CAAC,MAAM,CAAkB;IAEhC,OAAO;IAKP,MAAM,CAAC,WAAW,IAAI,qBAAqB;IAOrC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAoCrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAmB3B;;;OAGG;IACH,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,WAAW,GAAE,MAAgB,GAAG,MAAM,EAAE;IAgCzE;;;OAGG;IACH,OAAO,CAAC,eAAe;IAKjB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,GAAE,MAAW,EAAE,WAAW,GAAE,MAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IA0CjG,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,GAAE,MAAW,EAAE,WAAW,GAAE,MAAgB,GAAG,MAAM,EAAE;IA0CrF,UAAU,IAAI,MAAM,EAAE;CAIzB"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Context Sanitizer Utility
|
|
3
|
-
*
|
|
4
|
-
* Sanitizes tool output before it is added to the AI conversation context.
|
|
5
|
-
* This reduces token consumption without affecting what the user sees in the UI.
|
|
6
|
-
*
|
|
7
|
-
* Two main functions:
|
|
8
|
-
* 1. stripAnsiCodes() - Removes ANSI escape sequences and control codes
|
|
9
|
-
* 2. compactWriteResult() - Replaces verbose file write results with compact confirmations
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* Strip ALL ANSI escape sequences and terminal control codes from text.
|
|
13
|
-
*
|
|
14
|
-
* Handles:
|
|
15
|
-
* - Color/style codes: \x1b[Nm (e.g., \x1b[34m, \x1b[0m)
|
|
16
|
-
* - Cursor movement: \x1b[NA, \x1b[NB, \x1b[NG
|
|
17
|
-
* - Cursor visibility: \x1b[?25l, \x1b[?25h
|
|
18
|
-
* - Clear line/screen: \x1b[K, \x1b[2K, \x1b[2J
|
|
19
|
-
* - Any CSI sequence: \x1b[<params><letter>
|
|
20
|
-
* - OSC sequences: \x1b]...\x07 or \x1b]...\x1b\\
|
|
21
|
-
* - Standalone \r (carriage returns not part of \r\n)
|
|
22
|
-
*/
|
|
23
|
-
export declare function stripAnsiCodes(text: string): string;
|
|
24
|
-
/**
|
|
25
|
-
* Compact a file write tool result for AI context consumption.
|
|
26
|
-
*
|
|
27
|
-
* For successful writes, replaces the full result (which may include file contents)
|
|
28
|
-
* with a short confirmation line.
|
|
29
|
-
* For errors, preserves the full error message.
|
|
30
|
-
*
|
|
31
|
-
* @param toolName - The name of the tool (e.g., 'write_to_file', 'edit_file')
|
|
32
|
-
* @param result - The raw result string from tool execution
|
|
33
|
-
* @param args - The arguments passed to the tool
|
|
34
|
-
* @returns The compacted result string (or original if not a file write tool)
|
|
35
|
-
*/
|
|
36
|
-
export declare function compactWriteResult(toolName: string, result: string, args?: any): string;
|
|
37
|
-
/**
|
|
38
|
-
* Apply all context sanitization to a tool result before adding to AI context.
|
|
39
|
-
*
|
|
40
|
-
* This is the main entry point. It:
|
|
41
|
-
* 1. Strips ANSI codes from the result
|
|
42
|
-
* 2. Compacts file write results
|
|
43
|
-
*
|
|
44
|
-
* @param toolName - The name of the tool
|
|
45
|
-
* @param result - The raw result (string or object)
|
|
46
|
-
* @param args - The arguments passed to the tool
|
|
47
|
-
* @returns The sanitized result
|
|
48
|
-
*/
|
|
49
|
-
export declare function sanitizeForContext(toolName: string, result: any, args?: any): any;
|
|
50
|
-
//# sourceMappingURL=context-sanitizer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context-sanitizer.d.ts","sourceRoot":"","sources":["../../src/utils/context-sanitizer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAYnD;AAOD;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,MAAM,CA6BvF;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,CA0BjF"}
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Conversation Logger
|
|
3
|
-
*
|
|
4
|
-
* Comprehensive logging utility for AI conversation debugging.
|
|
5
|
-
* Logs all messages, tool calls, thoughts, and feedback to help
|
|
6
|
-
* debug issues like hallucination, looping, or getting stuck.
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* Get the log file path based on build mode (determined at compile time).
|
|
10
|
-
* - In development builds: logs are written to the current directory
|
|
11
|
-
* - In production builds: logs are written to ~/.centaurus/
|
|
12
|
-
*/
|
|
13
|
-
export declare function getConversationLogFilePath(filename?: string): string;
|
|
14
|
-
/**
|
|
15
|
-
* Get the cached log file path (caches on first call for performance)
|
|
16
|
-
*/
|
|
17
|
-
export declare function getCachedLogFilePath(): string;
|
|
18
|
-
/**
|
|
19
|
-
* Quick log function for direct logging without using the ConversationLogger class.
|
|
20
|
-
* This should be used instead of direct fs.appendFileSync calls.
|
|
21
|
-
*/
|
|
22
|
-
export declare function quickLog(message: string): void;
|
|
23
|
-
export declare enum LogLevel {
|
|
24
|
-
DEBUG = "DEBUG",
|
|
25
|
-
INFO = "INFO",
|
|
26
|
-
WARN = "WARN",
|
|
27
|
-
ERROR = "ERROR"
|
|
28
|
-
}
|
|
29
|
-
export declare enum LogCategory {
|
|
30
|
-
SESSION = "SESSION",
|
|
31
|
-
USER_MSG = "USER_MSG",
|
|
32
|
-
AI_TEXT = "AI_TEXT",
|
|
33
|
-
THOUGHT = "THOUGHT",
|
|
34
|
-
TOOL_CALL = "TOOL_CALL",
|
|
35
|
-
TOOL_EXEC = "TOOL_EXEC",
|
|
36
|
-
TOOL_RESULT = "TOOL_RESULT",
|
|
37
|
-
LOOP = "LOOP",
|
|
38
|
-
NARRATION = "NARRATION",
|
|
39
|
-
ERROR = "ERROR",
|
|
40
|
-
SYSTEM = "SYSTEM"
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* ConversationLogger class for structured conversation logging
|
|
44
|
-
*/
|
|
45
|
-
export declare class ConversationLogger {
|
|
46
|
-
private logFilePath;
|
|
47
|
-
private sessionId;
|
|
48
|
-
private currentTurn;
|
|
49
|
-
private accumulatedThought;
|
|
50
|
-
private accumulatedAIText;
|
|
51
|
-
private enabled;
|
|
52
|
-
constructor(logFilePath?: string);
|
|
53
|
-
/**
|
|
54
|
-
* Enable or disable logging
|
|
55
|
-
*/
|
|
56
|
-
setEnabled(enabled: boolean): void;
|
|
57
|
-
/**
|
|
58
|
-
* Start a new conversation session
|
|
59
|
-
*/
|
|
60
|
-
startSession(): void;
|
|
61
|
-
/**
|
|
62
|
-
* Log a user message
|
|
63
|
-
*/
|
|
64
|
-
logUserMessage(message: string): void;
|
|
65
|
-
/**
|
|
66
|
-
* Log AI text chunk (streaming)
|
|
67
|
-
*/
|
|
68
|
-
logAITextChunk(chunk: string): void;
|
|
69
|
-
/**
|
|
70
|
-
* Log completed AI text response
|
|
71
|
-
*/
|
|
72
|
-
logAITextComplete(): void;
|
|
73
|
-
/**
|
|
74
|
-
* Log thought chunk (streaming)
|
|
75
|
-
*/
|
|
76
|
-
logThoughtChunk(thought: string): void;
|
|
77
|
-
/**
|
|
78
|
-
* Log thought completion with duration
|
|
79
|
-
*/
|
|
80
|
-
logThoughtComplete(durationSeconds: number): void;
|
|
81
|
-
/**
|
|
82
|
-
* Log a tool call being received from AI
|
|
83
|
-
*/
|
|
84
|
-
logToolCall(name: string, id: string, args: Record<string, any>): void;
|
|
85
|
-
/**
|
|
86
|
-
* Log tool execution starting
|
|
87
|
-
*/
|
|
88
|
-
logToolExecutionStart(name: string, id: string): void;
|
|
89
|
-
/**
|
|
90
|
-
* Log tool execution result
|
|
91
|
-
*/
|
|
92
|
-
logToolResult(name: string, id: string, result: any, success: boolean, error?: string): void;
|
|
93
|
-
/**
|
|
94
|
-
* Log loop state at turn boundaries
|
|
95
|
-
*/
|
|
96
|
-
logLoopState(turn: number, state: {
|
|
97
|
-
toolCallCount: number;
|
|
98
|
-
assistantMessageLength: number;
|
|
99
|
-
hasToolCalls: boolean;
|
|
100
|
-
willContinue: boolean;
|
|
101
|
-
narrationAttempts?: number;
|
|
102
|
-
completionAttempts?: number;
|
|
103
|
-
}): void;
|
|
104
|
-
/**
|
|
105
|
-
* Log when narration/completion detection triggers
|
|
106
|
-
*/
|
|
107
|
-
logNarrationDetection(type: 'narration' | 'silent_stop' | 'completion_prompt' | 'final_answer' | 'duplicate_file_write' | 'duplicate_tool_loop', details: any): void;
|
|
108
|
-
/**
|
|
109
|
-
* Log system prompts added to conversation
|
|
110
|
-
*/
|
|
111
|
-
logSystemPrompt(promptType: string, content: string): void;
|
|
112
|
-
/**
|
|
113
|
-
* Log an error
|
|
114
|
-
*/
|
|
115
|
-
logError(context: string, error: Error | string): void;
|
|
116
|
-
/**
|
|
117
|
-
* Log stream completion
|
|
118
|
-
*/
|
|
119
|
-
logStreamEnd(reason: string): void;
|
|
120
|
-
/**
|
|
121
|
-
* Log task completion
|
|
122
|
-
*/
|
|
123
|
-
logTaskComplete(summary: string): void;
|
|
124
|
-
/**
|
|
125
|
-
* Log session end
|
|
126
|
-
*/
|
|
127
|
-
endSession(finalMessage: string, turnCount: number): void;
|
|
128
|
-
/**
|
|
129
|
-
* Log messages array state (for debugging conversation history)
|
|
130
|
-
*/
|
|
131
|
-
logConversationHistory(messages: Array<{
|
|
132
|
-
role: string;
|
|
133
|
-
content: string;
|
|
134
|
-
tool_calls?: any[];
|
|
135
|
-
}>): void;
|
|
136
|
-
/**
|
|
137
|
-
* Core logging function
|
|
138
|
-
*/
|
|
139
|
-
private log;
|
|
140
|
-
}
|
|
141
|
-
export declare const conversationLogger: ConversationLogger;
|
|
142
|
-
//# sourceMappingURL=conversation-logger.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-logger.d.ts","sourceRoot":"","sources":["../../src/utils/conversation-logger.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Custom Commands Manager
|
|
3
|
-
*
|
|
4
|
-
* Manages user-defined custom terminal commands for auto-mode detection.
|
|
5
|
-
* Custom commands are stored persistently and included in terminal command detection.
|
|
6
|
-
*/
|
|
7
|
-
export declare class CustomCommandsManager {
|
|
8
|
-
private static instance;
|
|
9
|
-
private configPath;
|
|
10
|
-
private data;
|
|
11
|
-
private loaded;
|
|
12
|
-
private constructor();
|
|
13
|
-
static getInstance(): CustomCommandsManager;
|
|
14
|
-
/**
|
|
15
|
-
* Initialize and load custom commands from disk
|
|
16
|
-
*/
|
|
17
|
-
initialize(): Promise<void>;
|
|
18
|
-
/**
|
|
19
|
-
* Sync load for use in detectIntent (must be fast)
|
|
20
|
-
*/
|
|
21
|
-
loadSync(): void;
|
|
22
|
-
private ensureConfigDir;
|
|
23
|
-
private load;
|
|
24
|
-
private save;
|
|
25
|
-
/**
|
|
26
|
-
* Add a custom command word
|
|
27
|
-
* @returns true if added, false if already exists
|
|
28
|
-
*/
|
|
29
|
-
addCommand(command: string): Promise<{
|
|
30
|
-
success: boolean;
|
|
31
|
-
message: string;
|
|
32
|
-
}>;
|
|
33
|
-
/**
|
|
34
|
-
* Delete a custom command word
|
|
35
|
-
* @returns true if deleted, false if not found
|
|
36
|
-
*/
|
|
37
|
-
deleteCommand(command: string): Promise<{
|
|
38
|
-
success: boolean;
|
|
39
|
-
message: string;
|
|
40
|
-
}>;
|
|
41
|
-
/**
|
|
42
|
-
* List all custom commands
|
|
43
|
-
*/
|
|
44
|
-
listCommands(): string[];
|
|
45
|
-
/**
|
|
46
|
-
* Check if a command exists
|
|
47
|
-
*/
|
|
48
|
-
hasCommand(command: string): boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Get all commands as a Set for fast lookup
|
|
51
|
-
*/
|
|
52
|
-
getCommandsSet(): Set<string>;
|
|
53
|
-
/**
|
|
54
|
-
* Get the number of custom commands
|
|
55
|
-
*/
|
|
56
|
-
getCount(): number;
|
|
57
|
-
}
|
|
58
|
-
export default CustomCommandsManager;
|
|
59
|
-
//# sourceMappingURL=custom-commands-manager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custom-commands-manager.d.ts","sourceRoot":"","sources":["../../src/utils/custom-commands-manager.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAYH,qBAAa,qBAAqB;IAC9B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAwB;IAC/C,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,IAAI,CAAqB;IACjC,OAAO,CAAC,MAAM,CAAkB;IAEhC,OAAO;IAMP,MAAM,CAAC,WAAW,IAAI,qBAAqB;IAO3C;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAKjC;;OAEG;IACH,QAAQ,IAAI,IAAI;YAiBF,eAAe;YASf,IAAI;YAcJ,IAAI;IASlB;;;OAGG;IACG,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAsBjF;;;OAGG;IACG,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAcpF;;OAEG;IACH,YAAY,IAAI,MAAM,EAAE;IAIxB;;OAEG;IACH,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAIpC;;OAEG;IACH,cAAc,IAAI,GAAG,CAAC,MAAM,CAAC;IAI7B;;OAEG;IACH,QAAQ,IAAI,MAAM;CAGrB;AAED,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Check if a command is an interactive editor that needs full terminal control
|
|
3
|
-
*/
|
|
4
|
-
export declare function isInteractiveEditorCommand(command: string): boolean;
|
|
5
|
-
/**
|
|
6
|
-
* Check if the command is specifically for nano editor (the only remote-supported editor currently)
|
|
7
|
-
*/
|
|
8
|
-
export declare function isNanoEditor(command: string): boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Get the display name of an editor command for user-friendly messages
|
|
11
|
-
*/
|
|
12
|
-
export declare function getEditorName(command: string): string;
|
|
13
|
-
/**
|
|
14
|
-
* Run an interactive editor with full terminal control (LOCAL mode).
|
|
15
|
-
* This function:
|
|
16
|
-
* 1. Clears the screen and enters alternate screen buffer
|
|
17
|
-
* 2. Spawns a PTY process
|
|
18
|
-
* 3. Pipes stdin directly to the PTY (raw mode)
|
|
19
|
-
* 4. Pipes PTY output directly to stdout
|
|
20
|
-
* 5. Handles cleanup on exit
|
|
21
|
-
*
|
|
22
|
-
* Uses alternate screen buffer to prevent chat history from showing through.
|
|
23
|
-
*/
|
|
24
|
-
export declare function runInteractiveEditor(command: string, cwd: string, onExit: (exitCode: number) => void): {
|
|
25
|
-
kill: () => void;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Run an interactive editor in WSL session via node-pty.
|
|
29
|
-
* Uses wsl.exe to execute the editor command in the specified distribution.
|
|
30
|
-
*/
|
|
31
|
-
export declare function runWSLEditor(distribution: string, command: string, cwd: string, onExit: (exitCode: number) => void): {
|
|
32
|
-
kill: () => void;
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* Interactive process interface for WSL PTY commands
|
|
36
|
-
*/
|
|
37
|
-
export interface WSLPtyProcess {
|
|
38
|
-
write: (data: string) => void;
|
|
39
|
-
kill: () => void;
|
|
40
|
-
resize: (cols: number, rows: number) => void;
|
|
41
|
-
isRunning: () => boolean;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Run a command in WSL session via node-pty with streaming output.
|
|
45
|
-
* Unlike runWSLEditor, this doesn't take over the terminal - it streams output to a callback.
|
|
46
|
-
* This is essential for sudo commands that need TTY for password prompts.
|
|
47
|
-
*/
|
|
48
|
-
export declare function runWSLCommand(distribution: string, command: string, cwd: string, onData: (data: string) => void, onExit: (exitCode: number) => void, initialCols?: number, initialRows?: number): WSLPtyProcess;
|
|
49
|
-
/**
|
|
50
|
-
* Run a command in Docker container via node-pty with streaming output.
|
|
51
|
-
* Unlike runDockerEditor, this doesn't take over the terminal - it streams output to a callback.
|
|
52
|
-
* This is essential for sudo commands that need TTY for password prompts.
|
|
53
|
-
*/
|
|
54
|
-
export declare function runDockerCommand(containerId: string, command: string, cwd: string, onData: (data: string) => void, onExit: (exitCode: number) => void, initialCols?: number, initialRows?: number): WSLPtyProcess;
|
|
55
|
-
/**
|
|
56
|
-
* Run an interactive editor in Docker container via node-pty.
|
|
57
|
-
* Uses docker exec -it to execute the editor command in the container.
|
|
58
|
-
*/
|
|
59
|
-
export declare function runDockerEditor(containerId: string, command: string, cwd: string, onExit: (exitCode: number) => void): {
|
|
60
|
-
kill: () => void;
|
|
61
|
-
};
|
|
62
|
-
/**
|
|
63
|
-
* Run an interactive editor in SSH session via ssh2's interactive shell.
|
|
64
|
-
* This is more complex as we need to use the ssh2 client's shell() method
|
|
65
|
-
* instead of exec() to get a proper interactive PTY.
|
|
66
|
-
*/
|
|
67
|
-
export declare function runSSHEditor(sshClient: any, // ssh2 Client
|
|
68
|
-
command: string, cwd: string, onExit: (exitCode: number) => void): {
|
|
69
|
-
kill: () => void;
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* Run an interactive editor in a Docker container that is accessed through SSH.
|
|
73
|
-
* This routes the docker exec command through the SSH session to properly access
|
|
74
|
-
* the remote Docker daemon instead of trying to use local Docker.
|
|
75
|
-
*/
|
|
76
|
-
export declare function runNestedDockerSSHEditor(sshClient: any, // ssh2 Client from parent SSH context
|
|
77
|
-
containerId: string, command: string, cwd: string, onExit: (exitCode: number) => void): {
|
|
78
|
-
kill: () => void;
|
|
79
|
-
};
|
|
80
|
-
/**
|
|
81
|
-
* SSH PTY process interface for SSH commands with streaming output
|
|
82
|
-
*/
|
|
83
|
-
export interface SSHPtyProcess {
|
|
84
|
-
write: (data: string) => void;
|
|
85
|
-
kill: () => void;
|
|
86
|
-
resize: (cols: number, rows: number) => void;
|
|
87
|
-
isRunning: () => boolean;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Run a command in SSH session via ssh2's exec with PTY for streaming output.
|
|
91
|
-
* Uses exec() with PTY option instead of shell() to avoid login banners and command echo.
|
|
92
|
-
* This reuses the existing SSH connection so password is not required for each command.
|
|
93
|
-
*/
|
|
94
|
-
export declare function runSSHCommand(sshClient: any, // ssh2 Client
|
|
95
|
-
command: string, cwd: string, onData: (data: string) => void, onExit: (exitCode: number) => void, initialCols?: number, initialRows?: number): SSHPtyProcess;
|
|
96
|
-
/**
|
|
97
|
-
* Run a command in a local PTY.
|
|
98
|
-
* Useful for executing commands that are either local or wrapped (e.g., `wsl ...` or `ssh ...`).
|
|
99
|
-
*/
|
|
100
|
-
export declare function runLocalPty(command: string, cwd: string, onData: (data: string) => void, onExit: (exitCode: number) => void, initialCols?: number, initialRows?: number): any;
|
|
101
|
-
//# sourceMappingURL=editor-utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"editor-utils.d.ts","sourceRoot":"","sources":["../../src/utils/editor-utils.ts"],"names":[],"mappings":"AA2BA;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAwBnE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAWrD;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CA2BrD;AAwKD;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAChC,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,GACnC;IAAE,IAAI,EAAE,MAAM,IAAI,CAAA;CAAE,CA6GtB;AAED;;;GAGG;AACH,wBAAgB,YAAY,CACxB,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,GACnC;IAAE,IAAI,EAAE,MAAM,IAAI,CAAA;CAAE,CA6BtB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,SAAS,EAAE,MAAM,OAAO,CAAC;CAC5B;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CACzB,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,EAC9B,MAAM,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,EAClC,WAAW,CAAC,EAAE,MAAM,EACpB,WAAW,CAAC,EAAE,MAAM,GACrB,aAAa,CAqEf;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC5B,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,EAC9B,MAAM,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,EAClC,WAAW,CAAC,EAAE,MAAM,EACpB,WAAW,CAAC,EAAE,MAAM,GACrB,aAAa,CAsEf;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC3B,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,GACnC;IAAE,IAAI,EAAE,MAAM,IAAI,CAAA;CAAE,CA8BtB;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CACxB,SAAS,EAAE,GAAG,EAAE,cAAc;AAC9B,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,GACnC;IAAE,IAAI,EAAE,MAAM,IAAI,CAAA;CAAE,CAwGtB;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACpC,SAAS,EAAE,GAAG,EAAE,sCAAsC;AACtD,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,GACnC;IAAE,IAAI,EAAE,MAAM,IAAI,CAAA;CAAE,CAoHtB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,SAAS,EAAE,MAAM,OAAO,CAAC;CAC5B;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CACzB,SAAS,EAAE,GAAG,EAAE,cAAc;AAC9B,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,EAC9B,MAAM,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,EAClC,WAAW,CAAC,EAAE,MAAM,EACpB,WAAW,CAAC,EAAE,MAAM,GACrB,aAAa,CAiFf;AAGD;;;GAGG;AACH,wBAAgB,WAAW,CACvB,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,EAC9B,MAAM,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,EAClC,WAAW,CAAC,EAAE,MAAM,EACpB,WAAW,CAAC,EAAE,MAAM,GACrB,GAAG,CAkEL"}
|