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.
Files changed (552) hide show
  1. package/dist/ai/types.js +0 -1
  2. package/dist/ai/types.js.map +1 -1
  3. package/dist/cli-adapter.js +5047 -5037
  4. package/dist/cli-adapter.js.map +1 -1
  5. package/dist/commands/CommandParser.js +372 -315
  6. package/dist/commands/CommandParser.js.map +1 -1
  7. package/dist/config/build-config.js +11 -42
  8. package/dist/config/build-config.js.map +1 -1
  9. package/dist/config/defaultConfig.js +94 -82
  10. package/dist/config/defaultConfig.js.map +1 -1
  11. package/dist/config/manager.js +144 -160
  12. package/dist/config/manager.js.map +1 -1
  13. package/dist/config/mcp-config-manager.js +411 -364
  14. package/dist/config/mcp-config-manager.js.map +1 -1
  15. package/dist/config/models.js +118 -185
  16. package/dist/config/models.js.map +1 -1
  17. package/dist/config/slash-commands.js +186 -184
  18. package/dist/config/slash-commands.js.map +1 -1
  19. package/dist/config/types.js +33 -26
  20. package/dist/config/types.js.map +1 -1
  21. package/dist/context/command-detector.js +63 -67
  22. package/dist/context/command-detector.js.map +1 -1
  23. package/dist/context/context-manager.js +533 -518
  24. package/dist/context/context-manager.js.map +1 -1
  25. package/dist/context/handlers/docker-handler.js +518 -576
  26. package/dist/context/handlers/docker-handler.js.map +1 -1
  27. package/dist/context/handlers/ssh-handler.js +1050 -1109
  28. package/dist/context/handlers/ssh-handler.js.map +1 -1
  29. package/dist/context/handlers/wsl-handler.js +558 -630
  30. package/dist/context/handlers/wsl-handler.js.map +1 -1
  31. package/dist/context/index.js +42 -6
  32. package/dist/context/index.js.map +1 -1
  33. package/dist/context/subshell-handler.js +0 -4
  34. package/dist/context/subshell-handler.js.map +1 -1
  35. package/dist/context/types.js +20 -31
  36. package/dist/context/types.js.map +1 -1
  37. package/dist/hooks/useConnectivity.js +13 -10
  38. package/dist/hooks/useConnectivity.js.map +1 -1
  39. package/dist/hooks/useTerminalDimensions.js +67 -79
  40. package/dist/hooks/useTerminalDimensions.js.map +1 -1
  41. package/dist/index.js +228 -251
  42. package/dist/index.js.map +1 -1
  43. package/dist/mcp/mcp-command-handler.js +297 -260
  44. package/dist/mcp/mcp-command-handler.js.map +1 -1
  45. package/dist/mcp/mcp-server-manager.js +139 -155
  46. package/dist/mcp/mcp-server-manager.js.map +1 -1
  47. package/dist/mcp/mcp-tool-wrapper.js +74 -94
  48. package/dist/mcp/mcp-tool-wrapper.js.map +1 -1
  49. package/dist/services/ai-autocomplete-agent.js +169 -181
  50. package/dist/services/ai-autocomplete-agent.js.map +1 -1
  51. package/dist/services/ai-context-injector.js +180 -93
  52. package/dist/services/ai-context-injector.js.map +1 -1
  53. package/dist/services/ai-service-client.js +513 -456
  54. package/dist/services/ai-service-client.js.map +1 -1
  55. package/dist/services/api-client.js +443 -441
  56. package/dist/services/api-client.js.map +1 -1
  57. package/dist/services/auth-handler.js +162 -198
  58. package/dist/services/auth-handler.js.map +1 -1
  59. package/dist/services/background-task-manager.js +258 -282
  60. package/dist/services/background-task-manager.js.map +1 -1
  61. package/dist/services/checkpoint-manager.js +1513 -973
  62. package/dist/services/checkpoint-manager.js.map +1 -1
  63. package/dist/services/clipboard-service.js +151 -200
  64. package/dist/services/clipboard-service.js.map +1 -1
  65. package/dist/services/connectivity-manager.js +63 -65
  66. package/dist/services/connectivity-manager.js.map +1 -1
  67. package/dist/services/conversation-manager.js +118 -121
  68. package/dist/services/conversation-manager.js.map +1 -1
  69. package/dist/services/environment-context-injector.js +160 -187
  70. package/dist/services/environment-context-injector.js.map +1 -1
  71. package/dist/services/fast-context-agent.js +203 -243
  72. package/dist/services/fast-context-agent.js.map +1 -1
  73. package/dist/services/input-detection-agent.js +190 -202
  74. package/dist/services/input-detection-agent.js.map +1 -1
  75. package/dist/services/input-requirement-detector.js +155 -189
  76. package/dist/services/input-requirement-detector.js.map +1 -1
  77. package/dist/services/local-chat-storage.js +342 -365
  78. package/dist/services/local-chat-storage.js.map +1 -1
  79. package/dist/services/monitored-shell-manager.js +225 -233
  80. package/dist/services/monitored-shell-manager.js.map +1 -1
  81. package/dist/services/ollama-service.js +293 -310
  82. package/dist/services/ollama-service.js.map +1 -1
  83. package/dist/services/rules-storage.js +142 -0
  84. package/dist/services/rules-storage.js.map +1 -0
  85. package/dist/services/session-quota-manager.js +219 -235
  86. package/dist/services/session-quota-manager.js.map +1 -1
  87. package/dist/services/shell-input-agent.js +299 -334
  88. package/dist/services/shell-input-agent.js.map +1 -1
  89. package/dist/services/sub-agent-manager.js +459 -501
  90. package/dist/services/sub-agent-manager.js.map +1 -1
  91. package/dist/services/warpify-detector.js +133 -183
  92. package/dist/services/warpify-detector.js.map +1 -1
  93. package/dist/services/workflow-storage.js +202 -217
  94. package/dist/services/workflow-storage.js.map +1 -1
  95. package/dist/test-ssh-handler.js +148 -193
  96. package/dist/test-ssh-handler.js.map +1 -1
  97. package/dist/tools/add-mcp.js +161 -0
  98. package/dist/tools/add-mcp.js.map +1 -0
  99. package/dist/tools/background-command.js +240 -273
  100. package/dist/tools/background-command.js.map +1 -1
  101. package/dist/tools/command.js +447 -440
  102. package/dist/tools/command.js.map +1 -1
  103. package/dist/tools/create-image.js +172 -202
  104. package/dist/tools/create-image.js.map +1 -1
  105. package/dist/tools/enter-remote-session.js +169 -215
  106. package/dist/tools/enter-remote-session.js.map +1 -1
  107. package/dist/tools/fast-context.js +60 -67
  108. package/dist/tools/fast-context.js.map +1 -1
  109. package/dist/tools/file-ops.js +605 -537
  110. package/dist/tools/file-ops.js.map +1 -1
  111. package/dist/tools/find-files.js +262 -303
  112. package/dist/tools/find-files.js.map +1 -1
  113. package/dist/tools/get-diff.js +423 -400
  114. package/dist/tools/get-diff.js.map +1 -1
  115. package/dist/tools/grep-search.js +966 -948
  116. package/dist/tools/grep-search.js.map +1 -1
  117. package/dist/tools/inspect-symbol.js +308 -323
  118. package/dist/tools/inspect-symbol.js.map +1 -1
  119. package/dist/tools/plan-mode.js +459 -503
  120. package/dist/tools/plan-mode.js.map +1 -1
  121. package/dist/tools/read-binary-file.js +160 -190
  122. package/dist/tools/read-binary-file.js.map +1 -1
  123. package/dist/tools/registry.js +100 -84
  124. package/dist/tools/registry.js.map +1 -1
  125. package/dist/tools/reproduce_issue.js +170 -151
  126. package/dist/tools/reproduce_issue.js.map +1 -1
  127. package/dist/tools/sub-agent.js +223 -228
  128. package/dist/tools/sub-agent.js.map +1 -1
  129. package/dist/tools/task-complete.js +28 -27
  130. package/dist/tools/task-complete.js.map +1 -1
  131. package/dist/tools/types.js +0 -1
  132. package/dist/tools/types.js.map +1 -1
  133. package/dist/tools/validation.js +96 -118
  134. package/dist/tools/validation.js.map +1 -1
  135. package/dist/tools/web-search.js +194 -194
  136. package/dist/tools/web-search.js.map +1 -1
  137. package/dist/tools/workflow-tool.js +77 -82
  138. package/dist/tools/workflow-tool.js.map +1 -1
  139. package/dist/types/index.js +0 -1
  140. package/dist/types/index.js.map +1 -1
  141. package/dist/types/rule.js +1 -0
  142. package/dist/types/rule.js.map +1 -0
  143. package/dist/types/workflow.js +0 -7
  144. package/dist/types/workflow.js.map +1 -1
  145. package/dist/ui/components/AgentTimer.js +24 -25
  146. package/dist/ui/components/AgentTimer.js.map +1 -1
  147. package/dist/ui/components/App.js +3266 -3249
  148. package/dist/ui/components/App.js.map +1 -1
  149. package/dist/ui/components/AuthScreen.js +22 -34
  150. package/dist/ui/components/AuthScreen.js.map +1 -1
  151. package/dist/ui/components/AuthWelcomeScreen.js +30 -24
  152. package/dist/ui/components/AuthWelcomeScreen.js.map +1 -1
  153. package/dist/ui/components/Breadcrumbs.js +53 -82
  154. package/dist/ui/components/Breadcrumbs.js.map +1 -1
  155. package/dist/ui/components/CircularSelectInput.js +59 -67
  156. package/dist/ui/components/CircularSelectInput.js.map +1 -1
  157. package/dist/ui/components/ClipboardFileAutocomplete.js +78 -39
  158. package/dist/ui/components/ClipboardFileAutocomplete.js.map +1 -1
  159. package/dist/ui/components/CodeBlock.js +24 -42
  160. package/dist/ui/components/CodeBlock.js.map +1 -1
  161. package/dist/ui/components/ConfigViewer.js +18 -25
  162. package/dist/ui/components/ConfigViewer.js.map +1 -1
  163. package/dist/ui/components/ConfirmPrompt.js +49 -71
  164. package/dist/ui/components/ConfirmPrompt.js.map +1 -1
  165. package/dist/ui/components/ConnectionStatusMessage.js +32 -83
  166. package/dist/ui/components/ConnectionStatusMessage.js.map +1 -1
  167. package/dist/ui/components/ContextWindowIndicator.js +34 -49
  168. package/dist/ui/components/ContextWindowIndicator.js.map +1 -1
  169. package/dist/ui/components/DetailedPlanReviewScreen.js +104 -106
  170. package/dist/ui/components/DetailedPlanReviewScreen.js.map +1 -1
  171. package/dist/ui/components/DiffViewer.js +68 -121
  172. package/dist/ui/components/DiffViewer.js.map +1 -1
  173. package/dist/ui/components/ErrorBoundary.js +40 -48
  174. package/dist/ui/components/ErrorBoundary.js.map +1 -1
  175. package/dist/ui/components/FileCreationPreview.js +29 -60
  176. package/dist/ui/components/FileCreationPreview.js.map +1 -1
  177. package/dist/ui/components/FileOperation.js +34 -29
  178. package/dist/ui/components/FileOperation.js.map +1 -1
  179. package/dist/ui/components/FileTagAutocomplete.js +55 -25
  180. package/dist/ui/components/FileTagAutocomplete.js.map +1 -1
  181. package/dist/ui/components/FontRecommendation.js.map +1 -1
  182. package/dist/ui/components/GitDiffBreadcrumb.js +29 -0
  183. package/dist/ui/components/GitDiffBreadcrumb.js.map +1 -0
  184. package/dist/ui/components/InputBox.js +1620 -2150
  185. package/dist/ui/components/InputBox.js.map +1 -1
  186. package/dist/ui/components/InteractiveShell.js +234 -352
  187. package/dist/ui/components/InteractiveShell.js.map +1 -1
  188. package/dist/ui/components/KeyboardHelp.js +34 -35
  189. package/dist/ui/components/KeyboardHelp.js.map +1 -1
  190. package/dist/ui/components/LoadingIndicator.js +22 -25
  191. package/dist/ui/components/LoadingIndicator.js.map +1 -1
  192. package/dist/ui/components/MCPAddScreen.js +40 -51
  193. package/dist/ui/components/MCPAddScreen.js.map +1 -1
  194. package/dist/ui/components/MCPListScreen.js +40 -48
  195. package/dist/ui/components/MCPListScreen.js.map +1 -1
  196. package/dist/ui/components/MCPServerListScreen.js +49 -56
  197. package/dist/ui/components/MCPServerListScreen.js.map +1 -1
  198. package/dist/ui/components/MarkdownRenderer.js +69 -96
  199. package/dist/ui/components/MarkdownRenderer.js.map +1 -1
  200. package/dist/ui/components/MessageBox.js +66 -48
  201. package/dist/ui/components/MessageBox.js.map +1 -1
  202. package/dist/ui/components/MessageDisplay.js +150 -142
  203. package/dist/ui/components/MessageDisplay.js.map +1 -1
  204. package/dist/ui/components/MonitorModeAIPanel.js +46 -65
  205. package/dist/ui/components/MonitorModeAIPanel.js.map +1 -1
  206. package/dist/ui/components/MultiLineInput.js +243 -277
  207. package/dist/ui/components/MultiLineInput.js.map +1 -1
  208. package/dist/ui/components/PasswordPrompt.js +37 -18
  209. package/dist/ui/components/PasswordPrompt.js.map +1 -1
  210. package/dist/ui/components/PlanAcceptedMessage.js +27 -38
  211. package/dist/ui/components/PlanAcceptedMessage.js.map +1 -1
  212. package/dist/ui/components/PlanReviewScreen.js +46 -50
  213. package/dist/ui/components/PlanReviewScreen.js.map +1 -1
  214. package/dist/ui/components/RulesEditorScreen.js +81 -0
  215. package/dist/ui/components/RulesEditorScreen.js.map +1 -0
  216. package/dist/ui/components/SelectPrompt.js +19 -8
  217. package/dist/ui/components/SelectPrompt.js.map +1 -1
  218. package/dist/ui/components/ShimmerText.js +44 -0
  219. package/dist/ui/components/ShimmerText.js.map +1 -0
  220. package/dist/ui/components/SlashCommandAutocomplete.js +49 -22
  221. package/dist/ui/components/SlashCommandAutocomplete.js.map +1 -1
  222. package/dist/ui/components/StatusBar.js +56 -87
  223. package/dist/ui/components/StatusBar.js.map +1 -1
  224. package/dist/ui/components/StreamingMessageDisplay.js +116 -99
  225. package/dist/ui/components/StreamingMessageDisplay.js.map +1 -1
  226. package/dist/ui/components/TaskCompletedMessage.js +28 -23
  227. package/dist/ui/components/TaskCompletedMessage.js.map +1 -1
  228. package/dist/ui/components/TaskProgressIndicator.js +44 -70
  229. package/dist/ui/components/TaskProgressIndicator.js.map +1 -1
  230. package/dist/ui/components/ThinkingDisplay.js +44 -41
  231. package/dist/ui/components/ThinkingDisplay.js.map +1 -1
  232. package/dist/ui/components/ToolExecutionMessage.js +772 -1326
  233. package/dist/ui/components/ToolExecutionMessage.js.map +1 -1
  234. package/dist/ui/components/ToolExecutionStatus.js +53 -84
  235. package/dist/ui/components/ToolExecutionStatus.js.map +1 -1
  236. package/dist/ui/components/ToolResult.js +22 -15
  237. package/dist/ui/components/ToolResult.js.map +1 -1
  238. package/dist/ui/components/VersionUpdatePrompt.js +88 -120
  239. package/dist/ui/components/VersionUpdatePrompt.js.map +1 -1
  240. package/dist/ui/components/WelcomeBanner.js +176 -26
  241. package/dist/ui/components/WelcomeBanner.js.map +1 -1
  242. package/dist/ui/components/WorkflowCreatorScreen.js +94 -161
  243. package/dist/ui/components/WorkflowCreatorScreen.js.map +1 -1
  244. package/dist/utils/ansi-encoder.js +30 -61
  245. package/dist/utils/ansi-encoder.js.map +1 -1
  246. package/dist/utils/chat-formatter.js +327 -305
  247. package/dist/utils/chat-formatter.js.map +1 -1
  248. package/dist/utils/command-history.js +152 -174
  249. package/dist/utils/command-history.js.map +1 -1
  250. package/dist/utils/context-sanitizer.js +49 -112
  251. package/dist/utils/context-sanitizer.js.map +1 -1
  252. package/dist/utils/conversation-logger.js +292 -324
  253. package/dist/utils/conversation-logger.js.map +1 -1
  254. package/dist/utils/custom-commands-manager.js +126 -131
  255. package/dist/utils/custom-commands-manager.js.map +1 -1
  256. package/dist/utils/editor-utils.js +732 -837
  257. package/dist/utils/editor-utils.js.map +1 -1
  258. package/dist/utils/file.js +174 -213
  259. package/dist/utils/file.js.map +1 -1
  260. package/dist/utils/git-stats.js +169 -0
  261. package/dist/utils/git-stats.js.map +1 -0
  262. package/dist/utils/input-classifier.js +960 -482
  263. package/dist/utils/input-classifier.js.map +1 -1
  264. package/dist/utils/logger.js +48 -73
  265. package/dist/utils/logger.js.map +1 -1
  266. package/dist/utils/markdown-parser.js +277 -310
  267. package/dist/utils/markdown-parser.js.map +1 -1
  268. package/dist/utils/rule-reference-resolver.js +54 -0
  269. package/dist/utils/rule-reference-resolver.js.map +1 -0
  270. package/dist/utils/shell.js +144 -156
  271. package/dist/utils/shell.js.map +1 -1
  272. package/dist/utils/state.js +23 -22
  273. package/dist/utils/state.js.map +1 -1
  274. package/dist/utils/syntax-checker.js +279 -327
  275. package/dist/utils/syntax-checker.js.map +1 -1
  276. package/dist/utils/terminal-output.js +199 -302
  277. package/dist/utils/terminal-output.js.map +1 -1
  278. package/dist/utils/text-clipboard.js +47 -70
  279. package/dist/utils/text-clipboard.js.map +1 -1
  280. package/dist/utils/unicode-sanitizer.js +134 -197
  281. package/dist/utils/unicode-sanitizer.js.map +1 -1
  282. package/dist/utils/version-checker.js +46 -56
  283. package/dist/utils/version-checker.js.map +1 -1
  284. package/package.json +6 -4
  285. package/dist/ai/types.d.ts +0 -20
  286. package/dist/ai/types.d.ts.map +0 -1
  287. package/dist/cli-adapter.d.ts +0 -511
  288. package/dist/cli-adapter.d.ts.map +0 -1
  289. package/dist/commands/CommandParser.d.ts +0 -27
  290. package/dist/commands/CommandParser.d.ts.map +0 -1
  291. package/dist/config/build-config.d.ts +0 -42
  292. package/dist/config/build-config.d.ts.map +0 -1
  293. package/dist/config/defaultConfig.d.ts +0 -79
  294. package/dist/config/defaultConfig.d.ts.map +0 -1
  295. package/dist/config/manager.d.ts +0 -62
  296. package/dist/config/manager.d.ts.map +0 -1
  297. package/dist/config/mcp-config-manager.d.ts +0 -79
  298. package/dist/config/mcp-config-manager.d.ts.map +0 -1
  299. package/dist/config/models.d.ts +0 -83
  300. package/dist/config/models.d.ts.map +0 -1
  301. package/dist/config/slash-commands.d.ts +0 -23
  302. package/dist/config/slash-commands.d.ts.map +0 -1
  303. package/dist/config/types.d.ts +0 -35
  304. package/dist/config/types.d.ts.map +0 -1
  305. package/dist/context/command-detector.d.ts +0 -50
  306. package/dist/context/command-detector.d.ts.map +0 -1
  307. package/dist/context/context-manager.d.ts +0 -157
  308. package/dist/context/context-manager.d.ts.map +0 -1
  309. package/dist/context/handlers/docker-handler.d.ts +0 -130
  310. package/dist/context/handlers/docker-handler.d.ts.map +0 -1
  311. package/dist/context/handlers/ssh-handler.d.ts +0 -201
  312. package/dist/context/handlers/ssh-handler.d.ts.map +0 -1
  313. package/dist/context/handlers/wsl-handler.d.ts +0 -146
  314. package/dist/context/handlers/wsl-handler.d.ts.map +0 -1
  315. package/dist/context/index.d.ts +0 -8
  316. package/dist/context/index.d.ts.map +0 -1
  317. package/dist/context/subshell-handler.d.ts +0 -165
  318. package/dist/context/subshell-handler.d.ts.map +0 -1
  319. package/dist/context/types.d.ts +0 -70
  320. package/dist/context/types.d.ts.map +0 -1
  321. package/dist/hooks/useConnectivity.d.ts +0 -2
  322. package/dist/hooks/useConnectivity.d.ts.map +0 -1
  323. package/dist/hooks/useTerminalDimensions.d.ts +0 -41
  324. package/dist/hooks/useTerminalDimensions.d.ts.map +0 -1
  325. package/dist/index.d.ts +0 -9
  326. package/dist/index.d.ts.map +0 -1
  327. package/dist/mcp/mcp-command-handler.d.ts +0 -47
  328. package/dist/mcp/mcp-command-handler.d.ts.map +0 -1
  329. package/dist/mcp/mcp-server-manager.d.ts +0 -30
  330. package/dist/mcp/mcp-server-manager.d.ts.map +0 -1
  331. package/dist/mcp/mcp-tool-wrapper.d.ts +0 -12
  332. package/dist/mcp/mcp-tool-wrapper.d.ts.map +0 -1
  333. package/dist/services/ai-autocomplete-agent.d.ts +0 -39
  334. package/dist/services/ai-autocomplete-agent.d.ts.map +0 -1
  335. package/dist/services/ai-context-injector.d.ts +0 -41
  336. package/dist/services/ai-context-injector.d.ts.map +0 -1
  337. package/dist/services/ai-service-client.d.ts +0 -128
  338. package/dist/services/ai-service-client.d.ts.map +0 -1
  339. package/dist/services/api-client.d.ts +0 -353
  340. package/dist/services/api-client.d.ts.map +0 -1
  341. package/dist/services/auth-handler.d.ts +0 -30
  342. package/dist/services/auth-handler.d.ts.map +0 -1
  343. package/dist/services/background-task-manager.d.ts +0 -114
  344. package/dist/services/background-task-manager.d.ts.map +0 -1
  345. package/dist/services/checkpoint-manager.d.ts +0 -167
  346. package/dist/services/checkpoint-manager.d.ts.map +0 -1
  347. package/dist/services/clipboard-service.d.ts +0 -37
  348. package/dist/services/clipboard-service.d.ts.map +0 -1
  349. package/dist/services/connectivity-manager.d.ts +0 -18
  350. package/dist/services/connectivity-manager.d.ts.map +0 -1
  351. package/dist/services/conversation-manager.d.ts +0 -73
  352. package/dist/services/conversation-manager.d.ts.map +0 -1
  353. package/dist/services/environment-context-injector.d.ts +0 -69
  354. package/dist/services/environment-context-injector.d.ts.map +0 -1
  355. package/dist/services/fast-context-agent.d.ts +0 -12
  356. package/dist/services/fast-context-agent.d.ts.map +0 -1
  357. package/dist/services/input-detection-agent.d.ts +0 -40
  358. package/dist/services/input-detection-agent.d.ts.map +0 -1
  359. package/dist/services/input-requirement-detector.d.ts +0 -28
  360. package/dist/services/input-requirement-detector.d.ts.map +0 -1
  361. package/dist/services/local-chat-storage.d.ts +0 -182
  362. package/dist/services/local-chat-storage.d.ts.map +0 -1
  363. package/dist/services/monitored-shell-manager.d.ts +0 -120
  364. package/dist/services/monitored-shell-manager.d.ts.map +0 -1
  365. package/dist/services/ollama-service.d.ts +0 -197
  366. package/dist/services/ollama-service.d.ts.map +0 -1
  367. package/dist/services/session-quota-manager.d.ts +0 -101
  368. package/dist/services/session-quota-manager.d.ts.map +0 -1
  369. package/dist/services/shell-input-agent.d.ts +0 -89
  370. package/dist/services/shell-input-agent.d.ts.map +0 -1
  371. package/dist/services/sub-agent-manager.d.ts +0 -140
  372. package/dist/services/sub-agent-manager.d.ts.map +0 -1
  373. package/dist/services/warpify-detector.d.ts +0 -43
  374. package/dist/services/warpify-detector.d.ts.map +0 -1
  375. package/dist/services/workflow-storage.d.ts +0 -72
  376. package/dist/services/workflow-storage.d.ts.map +0 -1
  377. package/dist/test-ssh-handler.d.ts +0 -8
  378. package/dist/test-ssh-handler.d.ts.map +0 -1
  379. package/dist/tools/background-command.d.ts +0 -11
  380. package/dist/tools/background-command.d.ts.map +0 -1
  381. package/dist/tools/command.d.ts +0 -3
  382. package/dist/tools/command.d.ts.map +0 -1
  383. package/dist/tools/create-image.d.ts +0 -10
  384. package/dist/tools/create-image.d.ts.map +0 -1
  385. package/dist/tools/enter-remote-session.d.ts +0 -48
  386. package/dist/tools/enter-remote-session.d.ts.map +0 -1
  387. package/dist/tools/fast-context.d.ts +0 -3
  388. package/dist/tools/fast-context.d.ts.map +0 -1
  389. package/dist/tools/file-ops.d.ts +0 -7
  390. package/dist/tools/file-ops.d.ts.map +0 -1
  391. package/dist/tools/find-files.d.ts +0 -49
  392. package/dist/tools/find-files.d.ts.map +0 -1
  393. package/dist/tools/get-diff.d.ts +0 -14
  394. package/dist/tools/get-diff.d.ts.map +0 -1
  395. package/dist/tools/grep-search.d.ts +0 -155
  396. package/dist/tools/grep-search.d.ts.map +0 -1
  397. package/dist/tools/inspect-symbol.d.ts +0 -32
  398. package/dist/tools/inspect-symbol.d.ts.map +0 -1
  399. package/dist/tools/plan-mode.d.ts +0 -140
  400. package/dist/tools/plan-mode.d.ts.map +0 -1
  401. package/dist/tools/read-binary-file.d.ts +0 -10
  402. package/dist/tools/read-binary-file.d.ts.map +0 -1
  403. package/dist/tools/registry.d.ts +0 -31
  404. package/dist/tools/registry.d.ts.map +0 -1
  405. package/dist/tools/reproduce_issue.d.ts +0 -2
  406. package/dist/tools/reproduce_issue.d.ts.map +0 -1
  407. package/dist/tools/sub-agent.d.ts +0 -9
  408. package/dist/tools/sub-agent.d.ts.map +0 -1
  409. package/dist/tools/task-complete.d.ts +0 -3
  410. package/dist/tools/task-complete.d.ts.map +0 -1
  411. package/dist/tools/types.d.ts +0 -40
  412. package/dist/tools/types.d.ts.map +0 -1
  413. package/dist/tools/validation.d.ts +0 -47
  414. package/dist/tools/validation.d.ts.map +0 -1
  415. package/dist/tools/web-search.d.ts +0 -24
  416. package/dist/tools/web-search.d.ts.map +0 -1
  417. package/dist/tools/workflow-tool.d.ts +0 -11
  418. package/dist/tools/workflow-tool.d.ts.map +0 -1
  419. package/dist/types/index.d.ts +0 -123
  420. package/dist/types/index.d.ts.map +0 -1
  421. package/dist/types/workflow.d.ts +0 -110
  422. package/dist/types/workflow.d.ts.map +0 -1
  423. package/dist/ui/components/AgentTimer.d.ts +0 -7
  424. package/dist/ui/components/AgentTimer.d.ts.map +0 -1
  425. package/dist/ui/components/App.d.ts +0 -197
  426. package/dist/ui/components/App.d.ts.map +0 -1
  427. package/dist/ui/components/AuthScreen.d.ts +0 -8
  428. package/dist/ui/components/AuthScreen.d.ts.map +0 -1
  429. package/dist/ui/components/AuthWelcomeScreen.d.ts +0 -8
  430. package/dist/ui/components/AuthWelcomeScreen.d.ts.map +0 -1
  431. package/dist/ui/components/Breadcrumbs.d.ts +0 -13
  432. package/dist/ui/components/Breadcrumbs.d.ts.map +0 -1
  433. package/dist/ui/components/CircularSelectInput.d.ts +0 -24
  434. package/dist/ui/components/CircularSelectInput.d.ts.map +0 -1
  435. package/dist/ui/components/ClipboardFileAutocomplete.d.ts +0 -10
  436. package/dist/ui/components/ClipboardFileAutocomplete.d.ts.map +0 -1
  437. package/dist/ui/components/CodeBlock.d.ts +0 -9
  438. package/dist/ui/components/CodeBlock.d.ts.map +0 -1
  439. package/dist/ui/components/ConfigViewer.d.ts +0 -11
  440. package/dist/ui/components/ConfigViewer.d.ts.map +0 -1
  441. package/dist/ui/components/ConfirmPrompt.d.ts +0 -13
  442. package/dist/ui/components/ConfirmPrompt.d.ts.map +0 -1
  443. package/dist/ui/components/ConnectionStatusMessage.d.ts +0 -17
  444. package/dist/ui/components/ConnectionStatusMessage.d.ts.map +0 -1
  445. package/dist/ui/components/ContextWindowIndicator.d.ts +0 -8
  446. package/dist/ui/components/ContextWindowIndicator.d.ts.map +0 -1
  447. package/dist/ui/components/DetailedPlanReviewScreen.d.ts +0 -17
  448. package/dist/ui/components/DetailedPlanReviewScreen.d.ts.map +0 -1
  449. package/dist/ui/components/DiffViewer.d.ts +0 -9
  450. package/dist/ui/components/DiffViewer.d.ts.map +0 -1
  451. package/dist/ui/components/ErrorBoundary.d.ts +0 -17
  452. package/dist/ui/components/ErrorBoundary.d.ts.map +0 -1
  453. package/dist/ui/components/FileCreationPreview.d.ts +0 -8
  454. package/dist/ui/components/FileCreationPreview.d.ts.map +0 -1
  455. package/dist/ui/components/FileOperation.d.ts +0 -10
  456. package/dist/ui/components/FileOperation.d.ts.map +0 -1
  457. package/dist/ui/components/FileTagAutocomplete.d.ts +0 -11
  458. package/dist/ui/components/FileTagAutocomplete.d.ts.map +0 -1
  459. package/dist/ui/components/FontRecommendation.d.ts +0 -1
  460. package/dist/ui/components/FontRecommendation.d.ts.map +0 -1
  461. package/dist/ui/components/InputBox.d.ts +0 -42
  462. package/dist/ui/components/InputBox.d.ts.map +0 -1
  463. package/dist/ui/components/InteractiveShell.d.ts +0 -30
  464. package/dist/ui/components/InteractiveShell.d.ts.map +0 -1
  465. package/dist/ui/components/KeyboardHelp.d.ts +0 -7
  466. package/dist/ui/components/KeyboardHelp.d.ts.map +0 -1
  467. package/dist/ui/components/LoadingIndicator.d.ts +0 -3
  468. package/dist/ui/components/LoadingIndicator.d.ts.map +0 -1
  469. package/dist/ui/components/MCPAddScreen.d.ts +0 -13
  470. package/dist/ui/components/MCPAddScreen.d.ts.map +0 -1
  471. package/dist/ui/components/MCPListScreen.d.ts +0 -17
  472. package/dist/ui/components/MCPListScreen.d.ts.map +0 -1
  473. package/dist/ui/components/MCPServerListScreen.d.ts +0 -16
  474. package/dist/ui/components/MCPServerListScreen.d.ts.map +0 -1
  475. package/dist/ui/components/MarkdownRenderer.d.ts +0 -8
  476. package/dist/ui/components/MarkdownRenderer.d.ts.map +0 -1
  477. package/dist/ui/components/MessageBox.d.ts +0 -10
  478. package/dist/ui/components/MessageBox.d.ts.map +0 -1
  479. package/dist/ui/components/MessageDisplay.d.ts +0 -14
  480. package/dist/ui/components/MessageDisplay.d.ts.map +0 -1
  481. package/dist/ui/components/MonitorModeAIPanel.d.ts +0 -23
  482. package/dist/ui/components/MonitorModeAIPanel.d.ts.map +0 -1
  483. package/dist/ui/components/MultiLineInput.d.ts +0 -13
  484. package/dist/ui/components/MultiLineInput.d.ts.map +0 -1
  485. package/dist/ui/components/PasswordPrompt.d.ts +0 -9
  486. package/dist/ui/components/PasswordPrompt.d.ts.map +0 -1
  487. package/dist/ui/components/PlanAcceptedMessage.d.ts +0 -20
  488. package/dist/ui/components/PlanAcceptedMessage.d.ts.map +0 -1
  489. package/dist/ui/components/PlanReviewScreen.d.ts +0 -14
  490. package/dist/ui/components/PlanReviewScreen.d.ts.map +0 -1
  491. package/dist/ui/components/SelectPrompt.d.ts +0 -12
  492. package/dist/ui/components/SelectPrompt.d.ts.map +0 -1
  493. package/dist/ui/components/SlashCommandAutocomplete.d.ts +0 -13
  494. package/dist/ui/components/SlashCommandAutocomplete.d.ts.map +0 -1
  495. package/dist/ui/components/StatusBar.d.ts +0 -14
  496. package/dist/ui/components/StatusBar.d.ts.map +0 -1
  497. package/dist/ui/components/StreamingMessageDisplay.d.ts +0 -15
  498. package/dist/ui/components/StreamingMessageDisplay.d.ts.map +0 -1
  499. package/dist/ui/components/TaskCompletedMessage.d.ts +0 -14
  500. package/dist/ui/components/TaskCompletedMessage.d.ts.map +0 -1
  501. package/dist/ui/components/TaskProgressIndicator.d.ts +0 -18
  502. package/dist/ui/components/TaskProgressIndicator.d.ts.map +0 -1
  503. package/dist/ui/components/ThinkingDisplay.d.ts +0 -15
  504. package/dist/ui/components/ThinkingDisplay.d.ts.map +0 -1
  505. package/dist/ui/components/ToolExecutionMessage.d.ts +0 -8
  506. package/dist/ui/components/ToolExecutionMessage.d.ts.map +0 -1
  507. package/dist/ui/components/ToolExecutionStatus.d.ts +0 -10
  508. package/dist/ui/components/ToolExecutionStatus.d.ts.map +0 -1
  509. package/dist/ui/components/ToolResult.d.ts +0 -10
  510. package/dist/ui/components/ToolResult.d.ts.map +0 -1
  511. package/dist/ui/components/VersionUpdatePrompt.d.ts +0 -9
  512. package/dist/ui/components/VersionUpdatePrompt.d.ts.map +0 -1
  513. package/dist/ui/components/WelcomeBanner.d.ts +0 -3
  514. package/dist/ui/components/WelcomeBanner.d.ts.map +0 -1
  515. package/dist/ui/components/WorkflowCreatorScreen.d.ts +0 -25
  516. package/dist/ui/components/WorkflowCreatorScreen.d.ts.map +0 -1
  517. package/dist/utils/ansi-encoder.d.ts +0 -7
  518. package/dist/utils/ansi-encoder.d.ts.map +0 -1
  519. package/dist/utils/chat-formatter.d.ts +0 -12
  520. package/dist/utils/chat-formatter.d.ts.map +0 -1
  521. package/dist/utils/command-history.d.ts +0 -24
  522. package/dist/utils/command-history.d.ts.map +0 -1
  523. package/dist/utils/context-sanitizer.d.ts +0 -50
  524. package/dist/utils/context-sanitizer.d.ts.map +0 -1
  525. package/dist/utils/conversation-logger.d.ts +0 -142
  526. package/dist/utils/conversation-logger.d.ts.map +0 -1
  527. package/dist/utils/custom-commands-manager.d.ts +0 -59
  528. package/dist/utils/custom-commands-manager.d.ts.map +0 -1
  529. package/dist/utils/editor-utils.d.ts +0 -101
  530. package/dist/utils/editor-utils.d.ts.map +0 -1
  531. package/dist/utils/file.d.ts +0 -61
  532. package/dist/utils/file.d.ts.map +0 -1
  533. package/dist/utils/input-classifier.d.ts +0 -25
  534. package/dist/utils/input-classifier.d.ts.map +0 -1
  535. package/dist/utils/logger.d.ts +0 -17
  536. package/dist/utils/logger.d.ts.map +0 -1
  537. package/dist/utils/markdown-parser.d.ts +0 -60
  538. package/dist/utils/markdown-parser.d.ts.map +0 -1
  539. package/dist/utils/shell.d.ts +0 -47
  540. package/dist/utils/shell.d.ts.map +0 -1
  541. package/dist/utils/state.d.ts +0 -13
  542. package/dist/utils/state.d.ts.map +0 -1
  543. package/dist/utils/syntax-checker.d.ts +0 -24
  544. package/dist/utils/syntax-checker.d.ts.map +0 -1
  545. package/dist/utils/terminal-output.d.ts +0 -25
  546. package/dist/utils/terminal-output.d.ts.map +0 -1
  547. package/dist/utils/text-clipboard.d.ts +0 -12
  548. package/dist/utils/text-clipboard.d.ts.map +0 -1
  549. package/dist/utils/unicode-sanitizer.d.ts +0 -44
  550. package/dist/utils/unicode-sanitizer.d.ts.map +0 -1
  551. package/dist/utils/version-checker.d.ts +0 -14
  552. package/dist/utils/version-checker.d.ts.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkpoint-manager.d.ts","sourceRoot":"","sources":["../../src/services/checkpoint-manager.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,qBAAqB,GAAG,OAAO,GAAG,KAAK,GAAG,KAAK,GAAG,QAAQ,CAAC;AAEvE;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACxC,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACxD,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC/F,WAAW,IAAI,OAAO,CAAC;CACxB;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,MAAM,EAAE,CAAC;I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QACzE,UAAU,EAAE,cAAc,CAAC;QAC3B,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,EAAE,CAAC;KAClB,CAAC;IA2FF;;OAEG;YACW,sBAAsB;IAqGpC,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAavC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAIvC,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAe9C,OAAO,CAAC,iBAAiB;YAkBX,gBAAgB;IAoD9B,OAAO,CAAC,YAAY;YAKN,cAAc;IAiC5B;;;OAGG;YACW,oBAAoB;YAgCpB,SAAS;IAavB;;;OAGG;IACH,OAAO,CAAC,oBAAoB;IA4B5B;;;OAGG;YACW,eAAe;IAmC7B,OAAO,CAAC,WAAW;IAoBnB,OAAO,CAAC,mBAAmB;IAY3B,OAAO,CAAC,oBAAoB;IAM5B,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,UAAU;IASlB,OAAO,CAAC,YAAY;IAKpB,OAAO,CAAC,SAAS;IAkBjB,OAAO,CAAC,SAAS;CAUlB"}
@@ -1,37 +0,0 @@
1
- /**
2
- * Clipboard Service
3
- *
4
- * Cross-platform clipboard access for images using @crosscopy/clipboard.
5
- * Also supports detecting image files copied from file explorer using clipboard-files.
6
- * Supports Windows, macOS, and Linux.
7
- */
8
- export interface ClipboardFile {
9
- id: string;
10
- base64Data: string;
11
- mimeType: string;
12
- tempPath: string;
13
- displayName: string;
14
- sizeBytes: number;
15
- }
16
- /**
17
- * Check if the clipboard contains a file (either raw image data or copied files)
18
- */
19
- export declare function hasClipboardFile(): Promise<boolean>;
20
- /**
21
- * Get files from clipboard and save to temp files
22
- * Returns array of ClipboardFiles with base64 data and temp file paths
23
- *
24
- * Supports two modes:
25
- * 1. Raw image data in clipboard (screenshots, copied from image editors)
26
- * 2. Files copied from file explorer (up to 5 limit)
27
- */
28
- export declare function getClipboardFiles(): Promise<ClipboardFile[]>;
29
- /**
30
- * Clean up temp clipboard files
31
- */
32
- export declare function cleanupClipboardFile(tempPath: string): void;
33
- /**
34
- * Format file size for display
35
- */
36
- export declare function formatFileSize(bytes: number): string;
37
- //# sourceMappingURL=clipboard-service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"clipboard-service.d.ts","sourceRoot":"","sources":["../../src/services/clipboard-service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA6BH,MAAM,WAAW,aAAa;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,OAAO,CAAC,CAoBzD;AAiCD;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC,CA+GlE;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAS3D;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIpD"}
@@ -1,18 +0,0 @@
1
- export declare class ConnectivityManager {
2
- private static instance;
3
- private isConnected;
4
- private checkInterval;
5
- private listeners;
6
- private lastCheck;
7
- private CACHE_TTL_MS;
8
- private POLLING_INTERVAL_MS;
9
- private constructor();
10
- static getInstance(): ConnectivityManager;
11
- private startPolling;
12
- stopPolling(): void;
13
- checkConnection(): Promise<boolean>;
14
- private updateStatus;
15
- subscribe(listener: (isConnected: boolean) => void): () => void;
16
- private notifyListeners;
17
- }
18
- //# sourceMappingURL=connectivity-manager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"connectivity-manager.d.ts","sourceRoot":"","sources":["../../src/services/connectivity-manager.ts"],"names":[],"mappings":"AAGA,qBAAa,mBAAmB;IAC5B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAsB;IAC7C,OAAO,CAAC,WAAW,CAAiB;IACpC,OAAO,CAAC,aAAa,CAA+B;IACpD,OAAO,CAAC,SAAS,CAA0C;IAC3D,OAAO,CAAC,SAAS,CAAa;IAC9B,OAAO,CAAC,YAAY,CAAQ;IAC5B,OAAO,CAAC,mBAAmB,CAAQ;IAEnC,OAAO;WAOO,WAAW,IAAI,mBAAmB;IAOhD,OAAO,CAAC,YAAY;IAOb,WAAW;IAOL,eAAe,IAAI,OAAO,CAAC,OAAO,CAAC;IAoBhD,OAAO,CAAC,YAAY;IAOb,SAAS,CAAC,QAAQ,EAAE,CAAC,WAAW,EAAE,OAAO,KAAK,IAAI,GAAG,MAAM,IAAI;IAUtE,OAAO,CAAC,eAAe;CAG1B"}
@@ -1,73 +0,0 @@
1
- /**
2
- * Conversation Manager Service
3
- *
4
- * Handles conversation and message persistence through the backend API
5
- */
6
- import { Conversation, Message, CreateConversationRequest, CreateMessageRequest } from './api-client.js';
7
- export declare class ConversationManager {
8
- private static instance;
9
- private currentConversationId;
10
- private conversationCache;
11
- private constructor();
12
- static getInstance(): ConversationManager;
13
- /**
14
- * Create a new conversation
15
- */
16
- createConversation(data: CreateConversationRequest): Promise<Conversation>;
17
- /**
18
- * Get the current conversation ID
19
- */
20
- getCurrentConversationId(): string | null;
21
- /**
22
- * Set the current conversation ID
23
- */
24
- setCurrentConversationId(id: string | null): void;
25
- /**
26
- * Get a conversation by ID
27
- */
28
- getConversation(id: string): Promise<Conversation>;
29
- /**
30
- * Get all conversations
31
- */
32
- getConversations(params?: {
33
- page?: number;
34
- limit?: number;
35
- includeArchived?: boolean;
36
- tags?: string[];
37
- }): Promise<Conversation[]>;
38
- /**
39
- * Update a conversation
40
- */
41
- updateConversation(id: string, data: {
42
- title?: string;
43
- tags?: string[];
44
- isPinned?: boolean;
45
- metadata?: Record<string, any>;
46
- }): Promise<Conversation>;
47
- /**
48
- * Delete (archive) a conversation
49
- */
50
- deleteConversation(id: string): Promise<void>;
51
- /**
52
- * Add a message to the current conversation
53
- */
54
- addMessage(message: CreateMessageRequest): Promise<Message>;
55
- /**
56
- * Get messages for a conversation
57
- */
58
- getMessages(conversationId?: string, params?: {
59
- page?: number;
60
- limit?: number;
61
- }): Promise<Message[]>;
62
- /**
63
- * Clear the conversation cache
64
- */
65
- clearCache(): void;
66
- /**
67
- * Start a new conversation session
68
- * Creates a conversation with default settings
69
- */
70
- startNewConversation(title: string, model: string, provider: string, workingDirectory?: string): Promise<Conversation>;
71
- }
72
- export declare const conversationManager: ConversationManager;
73
- //# sourceMappingURL=conversation-manager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"conversation-manager.d.ts","sourceRoot":"","sources":["../../src/services/conversation-manager.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAa,YAAY,EAAE,OAAO,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEpH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAsB;IAC7C,OAAO,CAAC,qBAAqB,CAAuB;IACpD,OAAO,CAAC,iBAAiB,CAAwC;IAEjE,OAAO;IAEP,MAAM,CAAC,WAAW,IAAI,mBAAmB;IAOzC;;OAEG;IACG,kBAAkB,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,YAAY,CAAC;IAOhF;;OAEG;IACH,wBAAwB,IAAI,MAAM,GAAG,IAAI;IAIzC;;OAEG;IACH,wBAAwB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAIjD;;OAEG;IACG,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAaxD;;OAEG;IACG,gBAAgB,CAAC,MAAM,CAAC,EAAE;QAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;KACjB,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAa3B;;OAEG;IACG,kBAAkB,CACtB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;KAAE,GAC5F,OAAO,CAAC,YAAY,CAAC;IAMxB;;OAEG;IACG,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IASnD;;OAEG;IACG,UAAU,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC;IAQjE;;OAEG;IACG,WAAW,CACf,cAAc,CAAC,EAAE,MAAM,EACvB,MAAM,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GACzC,OAAO,CAAC,OAAO,EAAE,CAAC;IAWrB;;OAEG;IACH,UAAU,IAAI,IAAI;IAIlB;;;OAGG;IACG,oBAAoB,CACxB,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,EAChB,gBAAgB,CAAC,EAAE,MAAM,GACxB,OAAO,CAAC,YAAY,CAAC;CAczB;AAED,eAAO,MAAM,mBAAmB,qBAAoC,CAAC"}
@@ -1,69 +0,0 @@
1
- /**
2
- * Environment Context Injector
3
- *
4
- * Detects runtime environment information (OS, shell, CWD, git root, etc.)
5
- * and formats it for injection into the system prompt to provide the AI
6
- * with context about the user's environment.
7
- */
8
- /**
9
- * Enhanced environment context with detailed system information
10
- */
11
- export interface EnhancedEnvironmentContext {
12
- osName: string;
13
- osType: string;
14
- shell: string;
15
- username: string;
16
- cwd: string;
17
- projectRoot: string;
18
- date: string;
19
- }
20
- /**
21
- * Environment Context Injector class
22
- * Handles detection and formatting of environment context for AI prompts
23
- */
24
- export declare class EnvironmentContextInjector {
25
- private cachedContext;
26
- private lastCwd;
27
- /**
28
- * Detect current environment context
29
- * Uses caching to avoid re-detecting on every request
30
- * Updates cache when CWD changes
31
- */
32
- detectContext(cwdOverride?: string): EnhancedEnvironmentContext;
33
- /**
34
- * Format context as structured markdown block for system prompt
35
- */
36
- formatContextBlock(context: EnhancedEnvironmentContext): string;
37
- /**
38
- * Get enhanced system prompt with injected environment context
39
- * Prepends context block to the base system prompt
40
- */
41
- getEnhancedSystemPrompt(basePrompt: string, cwdOverride?: string): string;
42
- /**
43
- * Detect detailed OS name with version
44
- */
45
- private detectOSName;
46
- /**
47
- * Detect OS type (simplified)
48
- */
49
- private detectOSType;
50
- /**
51
- * Detect current shell
52
- */
53
- private detectShell;
54
- /**
55
- * Detect current username
56
- */
57
- private detectUsername;
58
- /**
59
- * Detect git repository root
60
- * Falls back to CWD if not in a git repository
61
- */
62
- private detectProjectRoot;
63
- /**
64
- * Clear cached context (useful for testing or manual refresh)
65
- */
66
- clearCache(): void;
67
- }
68
- export declare const environmentContextInjector: EnvironmentContextInjector;
69
- //# sourceMappingURL=environment-context-injector.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"environment-context-injector.d.ts","sourceRoot":"","sources":["../../src/services/environment-context-injector.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,qBAAa,0BAA0B;IACrC,OAAO,CAAC,aAAa,CAA2C;IAChE,OAAO,CAAC,OAAO,CAAc;IAE7B;;;;OAIG;IACH,aAAa,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,0BAA0B;IA8B/D;;OAEG;IACH,kBAAkB,CAAC,OAAO,EAAE,0BAA0B,GAAG,MAAM;IAgB/D;;;OAGG;IACH,uBAAuB,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM;IAQzE;;OAEG;IACH,OAAO,CAAC,YAAY;IAqCpB;;OAEG;IACH,OAAO,CAAC,YAAY;IAUpB;;OAEG;IACH,OAAO,CAAC,WAAW;IA8BnB;;OAEG;IACH,OAAO,CAAC,cAAc;IAUtB;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAezB;;OAEG;IACH,UAAU,IAAI,IAAI;CAInB;AAGD,eAAO,MAAM,0BAA0B,4BAAmC,CAAC"}
@@ -1,12 +0,0 @@
1
- import { ToolRegistry } from '../tools/registry.js';
2
- import { ToolExecutionContext } from '../tools/types.js';
3
- export declare class FastContextAgent {
4
- private toolRegistry;
5
- private model;
6
- constructor(toolRegistry: ToolRegistry);
7
- private sanitizeOutput;
8
- private parseFilesFromOutput;
9
- private isValidFilePath;
10
- search(query: string, workingDirectory: string, parentContext: ToolExecutionContext): Promise<string>;
11
- }
12
- //# sourceMappingURL=fast-context-agent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fast-context-agent.d.ts","sourceRoot":"","sources":["../../src/services/fast-context-agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,OAAO,EAAE,oBAAoB,EAAc,MAAM,mBAAmB,CAAC;AAcrE,qBAAa,gBAAgB;IACzB,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,KAAK,CAA0B;gBAE3B,YAAY,EAAE,YAAY;IAItC,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,oBAAoB;IAkD5B,OAAO,CAAC,eAAe;IAoBjB,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,aAAa,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC;CAoM9G"}
@@ -1,40 +0,0 @@
1
- /**
2
- * Input Detection Agent Service
3
- *
4
- * A lightweight AI agent using gemini-2.0-flash-lite that detects when a shell
5
- * is waiting for user input. Polls shell output and returns YES/NO.
6
- *
7
- * When input is detected, triggers the ShellInputAgent to provide the actual input.
8
- */
9
- declare class InputDetectionAgentClass {
10
- private sessions;
11
- /**
12
- * Start polling for a shell session
13
- * Call updateOutput() to push new shell output to this session
14
- */
15
- startPolling(shellId: string, initialOutput: string, command: string, cwd: string): void;
16
- /**
17
- * Update the shell output for a session
18
- * This should be called from App.tsx whenever shellState.output changes
19
- */
20
- updateOutput(shellId: string, output: string): void;
21
- /**
22
- * Stop polling for a shell session
23
- */
24
- stopPolling(shellId: string): void;
25
- /**
26
- * Core detection function - calls AI to determine if waiting for input
27
- */
28
- private detectInputRequired;
29
- /**
30
- * Check if polling is active for a shell
31
- */
32
- isPolling(shellId: string): boolean;
33
- /**
34
- * Stop all polling sessions
35
- */
36
- stopAll(): void;
37
- }
38
- export declare const InputDetectionAgent: InputDetectionAgentClass;
39
- export {};
40
- //# sourceMappingURL=input-detection-agent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"input-detection-agent.d.ts","sourceRoot":"","sources":["../../src/services/input-detection-agent.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAmDH,cAAM,wBAAwB;IAC1B,OAAO,CAAC,QAAQ,CAA4C;IAE5D;;;OAGG;IACH,YAAY,CACR,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,MAAM,GACZ,IAAI;IAiGP;;;OAGG;IACH,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAWnD;;OAEG;IACH,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAgBlC;;OAEG;YACW,mBAAmB;IA4DjC;;OAEG;IACH,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAInC;;OAEG;IACH,OAAO,IAAI,IAAI;CAKlB;AAGD,eAAO,MAAM,mBAAmB,0BAAiC,CAAC"}
@@ -1,28 +0,0 @@
1
- export interface InputDetectionResult {
2
- requiresInput: boolean;
3
- confidence: 'high' | 'medium' | 'low';
4
- matchedPattern?: string;
5
- lastLine: string;
6
- }
7
- /**
8
- * Default timeout in ms to consider output as "stalled" (waiting for input)
9
- */
10
- export declare const DEFAULT_STALL_TIMEOUT_MS = 2000;
11
- export declare function detectInputRequirement(output: string, timeSinceLastOutput?: number, stallTimeoutMs?: number): InputDetectionResult;
12
- /**
13
- * Get a human-readable description of what type of input is likely required.
14
- * This is useful for constructing the AI prompt.
15
- *
16
- * @param result - The detection result
17
- * @returns Description of the expected input type
18
- */
19
- export declare function getInputTypeDescription(result: InputDetectionResult): string;
20
- /**
21
- * Extract the prompt question from the output for context.
22
- * This helps the AI understand what is being asked.
23
- *
24
- * @param output - The complete shell output
25
- * @returns The prompt/question being asked
26
- */
27
- export declare function extractPromptContext(output: string): string;
28
- //# sourceMappingURL=input-requirement-detector.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"input-requirement-detector.d.ts","sourceRoot":"","sources":["../../src/services/input-requirement-detector.ts"],"names":[],"mappings":"AAgFA,MAAM,WAAW,oBAAoB;IACjC,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;IACtC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,wBAAwB,OAAO,CAAC;AAmB7C,wBAAgB,sBAAsB,CAClC,MAAM,EAAE,MAAM,EACd,mBAAmB,CAAC,EAAE,MAAM,EAC5B,cAAc,GAAE,MAAiC,GAClD,oBAAoB,CAwEtB;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,oBAAoB,GAAG,MAAM,CAwB5E;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAkB3D"}
@@ -1,182 +0,0 @@
1
- /**
2
- * Local Chat Storage Service
3
- *
4
- * Provides persistent local storage for CLI conversations.
5
- * Stores chats in ~/.centaurus/chats/ directory as JSON files.
6
- */
7
- /**
8
- * Message interface matching the AIMessage type from ai-service-client
9
- */
10
- export interface StoredMessage {
11
- role: 'user' | 'assistant' | 'system' | 'tool';
12
- content: string;
13
- tool_calls?: Array<{
14
- id: string;
15
- name: string;
16
- arguments: Record<string, any>;
17
- }>;
18
- tool_call_id?: string;
19
- }
20
- /**
21
- * UI Message for restoring full chat history display
22
- * This is a serializable version of the Message type from types/index.ts
23
- */
24
- export interface StoredUIMessage {
25
- id: string;
26
- role: 'user' | 'assistant' | 'system' | 'tool';
27
- content: string;
28
- timestamp?: string;
29
- toolExecution?: {
30
- toolName: string;
31
- status: 'pending' | 'executing' | 'completed' | 'error';
32
- result?: string;
33
- error?: string;
34
- arguments?: Record<string, any>;
35
- };
36
- shouldStream?: boolean;
37
- isCommandMode?: boolean;
38
- tool_call_id?: string;
39
- tool_calls?: Array<{
40
- id: string;
41
- name: string;
42
- arguments: Record<string, any>;
43
- }>;
44
- thinkingDuration?: number;
45
- taskCompletion?: {
46
- taskNumber: number;
47
- totalTasks: number;
48
- taskDescription: string;
49
- completionNote?: string;
50
- };
51
- planAccepted?: {
52
- planTitle?: string;
53
- totalTasks?: number;
54
- };
55
- connectionStatus?: {
56
- type: 'ssh' | 'wsl' | 'docker';
57
- status: 'connecting' | 'connected' | 'error' | 'disconnected';
58
- connectionString?: string;
59
- error?: string;
60
- };
61
- }
62
- /**
63
- * Remote environment context for SSH/WSL/Docker sessions
64
- * Used to restore remote session state when resuming a chat
65
- */
66
- export interface StoredRemoteContext {
67
- type: 'ssh' | 'wsl' | 'docker';
68
- connectionCommand: string;
69
- remoteCwd: string;
70
- localCwdBeforeRemote: string;
71
- metadata?: {
72
- hostname?: string;
73
- username?: string;
74
- distroName?: string;
75
- containerId?: string;
76
- port?: number;
77
- };
78
- }
79
- /**
80
- * Local chat metadata (without messages, for listing)
81
- */
82
- export interface LocalChatMeta {
83
- id: string;
84
- title: string;
85
- createdAt: string;
86
- updatedAt: string;
87
- messageCount: number;
88
- environment?: string;
89
- }
90
- /**
91
- * Full local chat with messages
92
- */
93
- export interface LocalChat extends LocalChatMeta {
94
- messages: StoredMessage[];
95
- uiMessages?: StoredUIMessage[];
96
- cwd?: string;
97
- remoteContext?: StoredRemoteContext;
98
- remoteContextStack?: StoredRemoteContext[];
99
- backendConversationId?: string;
100
- }
101
- /**
102
- * LocalChatStorage class for managing local conversation persistence
103
- */
104
- export declare class LocalChatStorage {
105
- private chatsDir;
106
- private indexPath;
107
- private chatIndex;
108
- private indexLoaded;
109
- constructor();
110
- /**
111
- * Load the metadata index from disk, or rebuild it from chat files if missing
112
- */
113
- private loadIndex;
114
- /**
115
- * Rebuild the index by reading metadata from all chat files
116
- * This is a one-time migration that reads full files, but only happens once
117
- */
118
- private rebuildIndex;
119
- /**
120
- * Save the metadata index to disk
121
- */
122
- private saveIndex;
123
- /**
124
- * Update the index entry for a chat
125
- */
126
- private updateIndexEntry;
127
- /**
128
- * Generate a unique chat ID based on timestamp
129
- */
130
- generateChatId(): string;
131
- /**
132
- * Generate a title from the first user message
133
- */
134
- generateTitle(messages: StoredMessage[]): string;
135
- /**
136
- * Get the file path for a chat
137
- */
138
- private getChatPath;
139
- /**
140
- * Save a chat to disk
141
- * @param remoteContext - undefined = preserve existing, null = clear, StoredRemoteContext = set new value
142
- * @param remoteContextStack - Stack of nested contexts for SSH>SSH, SSH>Docker etc.
143
- */
144
- saveChat(chatId: string, messages: StoredMessage[], uiMessages?: StoredUIMessage[], cwd?: string, remoteContext?: StoredRemoteContext | null, remoteContextStack?: StoredRemoteContext[] | null): LocalChat;
145
- /**
146
- * Set the backend conversation ID for a chat
147
- * This is used to associate local chats with backend file storage
148
- */
149
- setBackendConversationId(chatId: string, backendConversationId: string): boolean;
150
- /**
151
- * Get the backend conversation ID for a chat (if any)
152
- */
153
- getBackendConversationId(chatId: string): string | undefined;
154
- /**
155
- * Load a chat by ID
156
- */
157
- loadChat(chatId: string): LocalChat | null;
158
- /**
159
- * List all chats (metadata only, sorted by updatedAt descending)
160
- * Uses the in-memory index to avoid loading full chat files
161
- */
162
- listChats(): LocalChatMeta[];
163
- /**
164
- * Delete a chat by ID
165
- */
166
- deleteChat(chatId: string): boolean;
167
- /**
168
- * Import a full chat object (used for restoring from cloud sync)
169
- * Overwrites existing chat with same ID if present
170
- */
171
- importChat(chat: LocalChat): boolean;
172
- /**
173
- * Rename a chat by ID
174
- */
175
- renameChat(chatId: string, newTitle: string): boolean;
176
- /**
177
- * Get the chats directory path
178
- */
179
- getChatsDir(): string;
180
- }
181
- export declare const localChatStorage: LocalChatStorage;
182
- //# sourceMappingURL=local-chat-storage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"local-chat-storage.d.ts","sourceRoot":"","sources":["../../src/services/local-chat-storage.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC/C,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,KAAK,CAAC;QACjB,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAChC,CAAC,CAAC;IACH,YAAY,CAAC,E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sBjB;;;OAGG;IACH,OAAO,CAAC,YAAY;IAmDpB;;OAEG;IACH,OAAO,CAAC,SAAS;IASjB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IA0BxB;;OAEG;IACH,cAAc,IAAI,MAAM;IAOxB;;OAEG;IACH,aAAa,CAAC,QAAQ,EAAE,aAAa,EAAE,GAAG,MAAM;IAsBhD;;OAEG;IACH,OAAO,CAAC,WAAW;IAInB;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,UAAU,CAAC,EAAE,eAAe,EAAE,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,kBAAkB,CAAC,EAAE,mBAAmB,EAAE,GAAG,IAAI,GAAG,SAAS;IA+D3M;;;OAGG;IACH,wBAAwB,CAAC,MAAM,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,GAAG,OAAO;IAkBhF;;OAEG;IACH,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAK5D;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAgB1C;;;OAGG;IACH,SAAS,IAAI,aAAa,EAAE;IAe5B;;OAEG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAqBnC;;;OAGG;IACH,UAAU,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO;IAoCpC;;OAEG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO;IAsBrD;;OAEG;IACH,WAAW,IAAI,MAAM;CAGtB;AAGD,eAAO,MAAM,gBAAgB,kBAAyB,CAAC"}
@@ -1,120 +0,0 @@
1
- /**
2
- * Monitored Shell Manager Service
3
- *
4
- * Manages agent-controlled shell sessions, detecting when input is required
5
- * and coordinating with the AI to provide appropriate responses.
6
- */
7
- import { InputDetectionResult } from './input-requirement-detector.js';
8
- /**
9
- * Represents a message displayed during monitoring mode
10
- */
11
- export interface MonitorMessage {
12
- id: string;
13
- type: 'thinking' | 'tool_call' | 'text' | 'input_sent';
14
- content: string;
15
- timestamp: Date;
16
- isAnswered?: boolean;
17
- }
18
- /**
19
- * Represents an active monitored shell session
20
- */
21
- export interface MonitoredShellSession {
22
- shellId: string;
23
- command: string;
24
- cwd: string;
25
- output: string;
26
- isRunning: boolean;
27
- lastOutputTime: number;
28
- monitoringMessages: MonitorMessage[];
29
- inputCheckInterval?: NodeJS.Timeout;
30
- onInputRequired?: (session: MonitoredShellSession, detectionResult: InputDetectionResult) => void;
31
- }
32
- /**
33
- * Callback when the AI needs to be prompted for shell input
34
- */
35
- export type OnAIInputRequestCallback = (shellId: string, shellOutput: string, promptContext: string, inputType: string) => Promise<string | null>;
36
- /**
37
- * Monitored Shell Manager
38
- *
39
- * Handles tracking of agent-controlled shells and coordinating input detection.
40
- */
41
- declare class MonitoredShellManagerClass {
42
- private sessions;
43
- private onAIInputRequest?;
44
- private onMonitoringMessage?;
45
- private inputCheckIntervalMs;
46
- private shellIdCounter;
47
- /**
48
- * Generate a unique shell ID
49
- */
50
- generateShellId(): string;
51
- /**
52
- * Set the callback for requesting AI input
53
- */
54
- setOnAIInputRequest(callback: OnAIInputRequestCallback): void;
55
- /**
56
- * Set the callback for new monitoring messages
57
- */
58
- setOnMonitoringMessage(callback: (shellId: string, message: MonitorMessage) => void): void;
59
- /**
60
- * Start monitoring a shell session
61
- */
62
- startMonitoring(shellId: string, command: string, cwd: string, onInputRequired?: (session: MonitoredShellSession, detectionResult: InputDetectionResult) => void): MonitoredShellSession;
63
- /**
64
- * Stop monitoring a shell session
65
- */
66
- stopMonitoring(shellId: string): void;
67
- /**
68
- * Update shell output for a monitored session
69
- */
70
- updateOutput(shellId: string, newOutput: string): void;
71
- /**
72
- * Mark a shell session as complete
73
- */
74
- markComplete(shellId: string): void;
75
- /**
76
- * Get a session by ID
77
- */
78
- getSession(shellId: string): MonitoredShellSession | undefined;
79
- /**
80
- * Check if a specific shell session is active
81
- */
82
- isSessionActive(shellId: string): boolean;
83
- /**
84
- * Get all active shell IDs
85
- */
86
- getActiveShellIds(): string[];
87
- /**
88
- * Add a monitoring message to a session
89
- */
90
- addMonitoringMessage(shellId: string, type: MonitorMessage['type'], content: string): MonitorMessage;
91
- /**
92
- * Get monitoring messages for a session
93
- */
94
- getMonitoringMessages(shellId: string): MonitorMessage[];
95
- /**
96
- * Clear monitoring messages for a session
97
- */
98
- clearMonitoringMessages(shellId: string): void;
99
- /**
100
- * Mark the most recent 'thinking' message as answered
101
- * This changes the spinner to a tick in the UI
102
- */
103
- markLastThinkingAsAnswered(shellId: string): void;
104
- /**
105
- * Check if a shell requires input and trigger AI prompt if needed
106
- */
107
- private checkForInputRequirement;
108
- /**
109
- * Build a prompt for the AI to provide shell input
110
- * This is used when the AI needs to decide what to input
111
- */
112
- buildInputPrompt(shellOutput: string, promptContext: string, inputType: string, originalCommand: string): string;
113
- /**
114
- * Get the last N lines of output
115
- */
116
- private getLastNLines;
117
- }
118
- export declare const MonitoredShellManager: MonitoredShellManagerClass;
119
- export {};
120
- //# sourceMappingURL=monitored-shell-manager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"monitored-shell-manager.d.ts","sourceRoot":"","sources":["../../src/services/monitored-shell-manager.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAyE,oBAAoB,EAA4B,MAAM,iCAAiC,CAAC;AAGxK;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,UAAU,GAAG,WAAW,GAAG,MAAM,GAAG,YAAY,CAAC;IACvD,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC,OA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