@aria-cli/cli 1.0.54 → 1.0.56

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 (622) hide show
  1. package/bin/aria.mjs +671 -802
  2. package/dist/.tsbuildinfo +1 -0
  3. package/dist/attached-local-control-client.js +826 -0
  4. package/dist/attached-local-control-client.js.map +1 -0
  5. package/dist/bootstrap-local-control-client.js +2 -0
  6. package/dist/bootstrap-local-control-client.js.map +1 -0
  7. package/dist/capability-aware-method-proxy.js +42 -0
  8. package/dist/capability-aware-method-proxy.js.map +1 -0
  9. package/dist/cli-context.js +160 -0
  10. package/dist/cli-context.js.map +1 -0
  11. package/dist/commands/arions.js +174 -0
  12. package/dist/commands/arions.js.map +1 -0
  13. package/dist/commands/auth.js +123 -0
  14. package/dist/commands/auth.js.map +1 -0
  15. package/dist/commands/daemon.js +367 -0
  16. package/dist/commands/daemon.js.map +1 -0
  17. package/dist/commands/definitions.js +176 -0
  18. package/dist/commands/definitions.js.map +1 -0
  19. package/dist/commands/index.js +80 -0
  20. package/dist/commands/index.js.map +1 -0
  21. package/dist/commands/login-handler.js +1108 -0
  22. package/dist/commands/login-handler.js.map +1 -0
  23. package/dist/commands/logout-handler.js +92 -0
  24. package/dist/commands/logout-handler.js.map +1 -0
  25. package/dist/commands/memory-handlers.js +89 -0
  26. package/dist/commands/memory-handlers.js.map +1 -0
  27. package/dist/commands/pairing.js +60 -0
  28. package/dist/commands/pairing.js.map +1 -0
  29. package/dist/commands/runtime-cutover-reset-command.js +12 -0
  30. package/dist/commands/runtime-cutover-reset-command.js.map +1 -0
  31. package/dist/commands/runtime-cutover-reset.js +265 -0
  32. package/dist/commands/runtime-cutover-reset.js.map +1 -0
  33. package/dist/commands/terminal-setup.js +84 -0
  34. package/dist/commands/terminal-setup.js.map +1 -0
  35. package/dist/config/aria-config.js +238 -0
  36. package/dist/config/aria-config.js.map +1 -0
  37. package/dist/config/index.js +3 -0
  38. package/dist/config/index.js.map +1 -0
  39. package/dist/config/loader.js +97 -0
  40. package/dist/config/loader.js.map +1 -0
  41. package/dist/config.js +142 -0
  42. package/dist/config.js.map +1 -0
  43. package/dist/daemon-info.js +10 -0
  44. package/dist/daemon-info.js.map +1 -0
  45. package/dist/ensure-daemon.js +128 -0
  46. package/dist/ensure-daemon.js.map +1 -0
  47. package/dist/entrypoints/command-mode.js +5 -0
  48. package/dist/entrypoints/command-mode.js.map +1 -0
  49. package/dist/entrypoints/daemon.js +50 -0
  50. package/dist/entrypoints/daemon.js.map +1 -0
  51. package/dist/entrypoints/headless-stdio.js +25 -0
  52. package/dist/entrypoints/headless-stdio.js.map +1 -0
  53. package/dist/entrypoints/interactive.d.ts.map +1 -0
  54. package/dist/entrypoints/interactive.js +80 -0
  55. package/dist/entrypoints/interactive.js.map +1 -0
  56. package/dist/event-loop-watchdog.js +73 -0
  57. package/dist/event-loop-watchdog.js.map +1 -0
  58. package/dist/headless/auth-orchestrator.js +508 -0
  59. package/dist/headless/auth-orchestrator.js.map +1 -0
  60. package/dist/headless/auth-service.js +43 -0
  61. package/dist/headless/auth-service.js.map +1 -0
  62. package/dist/headless/bootstrap-fast-path.js +112 -0
  63. package/dist/headless/bootstrap-fast-path.js.map +1 -0
  64. package/dist/headless/call-command.js +143 -0
  65. package/dist/headless/call-command.js.map +1 -0
  66. package/dist/headless/daemon-service.js +318 -0
  67. package/dist/headless/daemon-service.js.map +1 -0
  68. package/dist/headless/hook-actions.js +235 -0
  69. package/dist/headless/hook-actions.js.map +1 -0
  70. package/dist/headless/hook-service.js +42 -0
  71. package/dist/headless/hook-service.js.map +1 -0
  72. package/dist/headless/kernel-services.js +216 -0
  73. package/dist/headless/kernel-services.js.map +1 -0
  74. package/dist/headless/kernel.js +785 -0
  75. package/dist/headless/kernel.js.map +1 -0
  76. package/dist/headless/operations/arion.js +119 -0
  77. package/dist/headless/operations/arion.js.map +1 -0
  78. package/dist/headless/operations/auth.js +45 -0
  79. package/dist/headless/operations/auth.js.map +1 -0
  80. package/dist/headless/operations/client.js +31 -0
  81. package/dist/headless/operations/client.js.map +1 -0
  82. package/dist/headless/operations/config.js +69 -0
  83. package/dist/headless/operations/config.js.map +1 -0
  84. package/dist/headless/operations/daemon.js +47 -0
  85. package/dist/headless/operations/daemon.js.map +1 -0
  86. package/dist/headless/operations/hook.js +56 -0
  87. package/dist/headless/operations/hook.js.map +1 -0
  88. package/dist/headless/operations/index.js +11 -0
  89. package/dist/headless/operations/index.js.map +1 -0
  90. package/dist/headless/operations/memory.js +102 -0
  91. package/dist/headless/operations/memory.js.map +1 -0
  92. package/dist/headless/operations/message.js +279 -0
  93. package/dist/headless/operations/message.js.map +1 -0
  94. package/dist/headless/operations/model.js +100 -0
  95. package/dist/headless/operations/model.js.map +1 -0
  96. package/dist/headless/operations/peer.js +56 -0
  97. package/dist/headless/operations/peer.js.map +1 -0
  98. package/dist/headless/operations/run.js +24 -0
  99. package/dist/headless/operations/run.js.map +1 -0
  100. package/dist/headless/operations/session.js +90 -0
  101. package/dist/headless/operations/session.js.map +1 -0
  102. package/dist/headless/operations/system.js +19 -0
  103. package/dist/headless/operations/system.js.map +1 -0
  104. package/dist/headless/operations/utils.js +35 -0
  105. package/dist/headless/operations/utils.js.map +1 -0
  106. package/dist/headless/run-orchestrator.js +703 -0
  107. package/dist/headless/run-orchestrator.js.map +1 -0
  108. package/dist/headless/stdio-server.js +439 -0
  109. package/dist/headless/stdio-server.js.map +1 -0
  110. package/dist/history/SessionHistory.js +8 -0
  111. package/dist/history/SessionHistory.js.map +1 -0
  112. package/dist/history/SessionHistoryClient.js +186 -0
  113. package/dist/history/SessionHistoryClient.js.map +1 -0
  114. package/dist/history/conversation-message.js +112 -0
  115. package/dist/history/conversation-message.js.map +1 -0
  116. package/dist/history/index.js +8 -0
  117. package/dist/history/index.js.map +1 -0
  118. package/dist/history/jsonl-replay.js +154 -0
  119. package/dist/history/jsonl-replay.js.map +1 -0
  120. package/dist/history/repair-tool-pairing.js +84 -0
  121. package/dist/history/repair-tool-pairing.js.map +1 -0
  122. package/dist/history/stall-phase-bridge.js +11 -0
  123. package/dist/history/stall-phase-bridge.js.map +1 -0
  124. package/dist/history/turn-accumulator.js +427 -0
  125. package/dist/history/turn-accumulator.js.map +1 -0
  126. package/dist/index.d.ts.map +1 -0
  127. package/dist/index.js +7 -0
  128. package/dist/index.js.map +1 -0
  129. package/dist/ink-repl.d.ts.map +1 -0
  130. package/dist/ink-repl.js +4183 -0
  131. package/dist/ink-repl.js.map +1 -0
  132. package/dist/local-control-bootstrap.js +26 -0
  133. package/dist/local-control-bootstrap.js.map +1 -0
  134. package/dist/local-control-client.js +2 -0
  135. package/dist/local-control-client.js.map +1 -0
  136. package/dist/local-control-error-reporting.js +34 -0
  137. package/dist/local-control-error-reporting.js.map +1 -0
  138. package/dist/local-control-http-client.js +362 -0
  139. package/dist/local-control-http-client.js.map +1 -0
  140. package/dist/local-control-lazy-wrapper.js +363 -0
  141. package/dist/local-control-lazy-wrapper.js.map +1 -0
  142. package/dist/local-control-manager.js +146 -0
  143. package/dist/local-control-manager.js.map +1 -0
  144. package/dist/main.d.ts.map +1 -0
  145. package/dist/main.js +62 -0
  146. package/dist/main.js.map +1 -0
  147. package/dist/network-security.js +62 -0
  148. package/dist/network-security.js.map +1 -0
  149. package/dist/networking-server.js +38 -0
  150. package/dist/networking-server.js.map +1 -0
  151. package/dist/peer-identity.js +23 -0
  152. package/dist/peer-identity.js.map +1 -0
  153. package/dist/polling-subscription.js +34 -0
  154. package/dist/polling-subscription.js.map +1 -0
  155. package/dist/relaunch.d.ts +63 -0
  156. package/dist/relaunch.d.ts.map +1 -0
  157. package/dist/relaunch.js +617 -0
  158. package/dist/relaunch.js.map +1 -0
  159. package/dist/release-notes.js +35 -0
  160. package/dist/release-notes.js.map +1 -0
  161. package/dist/repl-cleanup.js +47 -0
  162. package/dist/repl-cleanup.js.map +1 -0
  163. package/dist/runtime/configure-bun-sqlite.js +3 -0
  164. package/dist/runtime/configure-bun-sqlite.js.map +1 -0
  165. package/dist/runtime/crash-handlers.js +111 -0
  166. package/dist/runtime/crash-handlers.js.map +1 -0
  167. package/dist/runtime/interactive-invocation.js +39 -0
  168. package/dist/runtime/interactive-invocation.js.map +1 -0
  169. package/dist/runtime/internal-mode.js +14 -0
  170. package/dist/runtime/internal-mode.js.map +1 -0
  171. package/dist/runtime/launch-spec.js +64 -0
  172. package/dist/runtime/launch-spec.js.map +1 -0
  173. package/dist/runtime/owner-lease.js +44 -0
  174. package/dist/runtime/owner-lease.js.map +1 -0
  175. package/dist/runtime/public-mode.js +20 -0
  176. package/dist/runtime/public-mode.js.map +1 -0
  177. package/dist/runtime/run-internal-mode.d.ts.map +1 -0
  178. package/dist/runtime/run-internal-mode.js +18 -0
  179. package/dist/runtime/run-internal-mode.js.map +1 -0
  180. package/dist/runtime/runtime-kind.js +32 -0
  181. package/dist/runtime/runtime-kind.js.map +1 -0
  182. package/dist/runtime/spawn-aria.js +38 -0
  183. package/dist/runtime/spawn-aria.js.map +1 -0
  184. package/dist/selectable-client.js +2 -0
  185. package/dist/selectable-client.js.map +1 -0
  186. package/dist/selectable-peer.js +2 -0
  187. package/dist/selectable-peer.js.map +1 -0
  188. package/dist/session.js +203 -0
  189. package/dist/session.js.map +1 -0
  190. package/dist/slash-commands.js +80 -0
  191. package/dist/slash-commands.js.map +1 -0
  192. package/dist/sounds.js +210 -0
  193. package/dist/sounds.js.map +1 -0
  194. package/dist/ui/App.js +526 -0
  195. package/dist/ui/App.js.map +1 -0
  196. package/dist/ui/components/AnthropicMethodPicker.js +6 -0
  197. package/dist/ui/components/AnthropicMethodPicker.js.map +1 -0
  198. package/dist/ui/components/ArionPrompt.js +15 -0
  199. package/dist/ui/components/ArionPrompt.js.map +1 -0
  200. package/dist/ui/components/AutocompleteDropdown.js +23 -0
  201. package/dist/ui/components/AutocompleteDropdown.js.map +1 -0
  202. package/dist/ui/components/AutonomySelector.js +55 -0
  203. package/dist/ui/components/AutonomySelector.js.map +1 -0
  204. package/dist/ui/components/Banner.js +98 -0
  205. package/dist/ui/components/Banner.js.map +1 -0
  206. package/dist/ui/components/ConversationHistory.js +175 -0
  207. package/dist/ui/components/ConversationHistory.js.map +1 -0
  208. package/dist/ui/components/CopilotDeviceLoginFlow.js +88 -0
  209. package/dist/ui/components/CopilotDeviceLoginFlow.js.map +1 -0
  210. package/dist/ui/components/CopilotSourcePicker.js +50 -0
  211. package/dist/ui/components/CopilotSourcePicker.js.map +1 -0
  212. package/dist/ui/components/Cost.js +10 -0
  213. package/dist/ui/components/Cost.js.map +1 -0
  214. package/dist/ui/components/CustomSelect/option-map.js +30 -0
  215. package/dist/ui/components/CustomSelect/option-map.js.map +1 -0
  216. package/dist/ui/components/CustomSelect/select-option.js +13 -0
  217. package/dist/ui/components/CustomSelect/select-option.js.map +1 -0
  218. package/dist/ui/components/CustomSelect/select.js +42 -0
  219. package/dist/ui/components/CustomSelect/select.js.map +1 -0
  220. package/dist/ui/components/CustomSelect/use-select-state.js +179 -0
  221. package/dist/ui/components/CustomSelect/use-select-state.js.map +1 -0
  222. package/dist/ui/components/CustomSelect/use-select.js +15 -0
  223. package/dist/ui/components/CustomSelect/use-select.js.map +1 -0
  224. package/dist/ui/components/ErrorDisplay.js +35 -0
  225. package/dist/ui/components/ErrorDisplay.js.map +1 -0
  226. package/dist/ui/components/FallbackToolUseRejectedMessage.js +7 -0
  227. package/dist/ui/components/FallbackToolUseRejectedMessage.js.map +1 -0
  228. package/dist/ui/components/FileEditToolUpdatedMessage.js +57 -0
  229. package/dist/ui/components/FileEditToolUpdatedMessage.js.map +1 -0
  230. package/dist/ui/components/HandoffMarker.js +18 -0
  231. package/dist/ui/components/HandoffMarker.js.map +1 -0
  232. package/dist/ui/components/HighlightedCode.js +21 -0
  233. package/dist/ui/components/HighlightedCode.js.map +1 -0
  234. package/dist/ui/components/InputArea.js +187 -0
  235. package/dist/ui/components/InputArea.js.map +1 -0
  236. package/dist/ui/components/Message.js +25 -0
  237. package/dist/ui/components/Message.js.map +1 -0
  238. package/dist/ui/components/OAuthLoginFlow.js +113 -0
  239. package/dist/ui/components/OAuthLoginFlow.js.map +1 -0
  240. package/dist/ui/components/OutputTruncation.js +35 -0
  241. package/dist/ui/components/OutputTruncation.js.map +1 -0
  242. package/dist/ui/components/PermissionPrompt.js +79 -0
  243. package/dist/ui/components/PermissionPrompt.js.map +1 -0
  244. package/dist/ui/components/PipelineTimingPanel.js +15 -0
  245. package/dist/ui/components/PipelineTimingPanel.js.map +1 -0
  246. package/dist/ui/components/ProviderMethodPicker.js +61 -0
  247. package/dist/ui/components/ProviderMethodPicker.js.map +1 -0
  248. package/dist/ui/components/ProviderPicker.js +63 -0
  249. package/dist/ui/components/ProviderPicker.js.map +1 -0
  250. package/dist/ui/components/RenderItemView.js +71 -0
  251. package/dist/ui/components/RenderItemView.js.map +1 -0
  252. package/dist/ui/components/Spinner.js +46 -0
  253. package/dist/ui/components/Spinner.js.map +1 -0
  254. package/dist/ui/components/StatusBar.js +95 -0
  255. package/dist/ui/components/StatusBar.js.map +1 -0
  256. package/dist/ui/components/StreamingIndicator.js +55 -0
  257. package/dist/ui/components/StreamingIndicator.js.map +1 -0
  258. package/dist/ui/components/StructuredDiff.js +168 -0
  259. package/dist/ui/components/StructuredDiff.js.map +1 -0
  260. package/dist/ui/components/TextInputOverlay.js +43 -0
  261. package/dist/ui/components/TextInputOverlay.js.map +1 -0
  262. package/dist/ui/components/ThinkingBlock.js +82 -0
  263. package/dist/ui/components/ThinkingBlock.js.map +1 -0
  264. package/dist/ui/components/ToolCost.js +17 -0
  265. package/dist/ui/components/ToolCost.js.map +1 -0
  266. package/dist/ui/components/ToolExecution.js +61 -0
  267. package/dist/ui/components/ToolExecution.js.map +1 -0
  268. package/dist/ui/components/ToolHeader.js +51 -0
  269. package/dist/ui/components/ToolHeader.js.map +1 -0
  270. package/dist/ui/components/ToolRenderLayoutContext.js +14 -0
  271. package/dist/ui/components/ToolRenderLayoutContext.js.map +1 -0
  272. package/dist/ui/components/ToolResultWrapper.js +6 -0
  273. package/dist/ui/components/ToolResultWrapper.js.map +1 -0
  274. package/dist/ui/components/ToolUseLoader.js +35 -0
  275. package/dist/ui/components/ToolUseLoader.js.map +1 -0
  276. package/dist/ui/components/TraceWaterfall.js +91 -0
  277. package/dist/ui/components/TraceWaterfall.js.map +1 -0
  278. package/dist/ui/components/index.js +33 -0
  279. package/dist/ui/components/index.js.map +1 -0
  280. package/dist/ui/components/messages/AssistantTextMessage.js +25 -0
  281. package/dist/ui/components/messages/AssistantTextMessage.js.map +1 -0
  282. package/dist/ui/components/messages/UserImageMessage.js +12 -0
  283. package/dist/ui/components/messages/UserImageMessage.js.map +1 -0
  284. package/dist/ui/components/messages/UserTextMessage.js +12 -0
  285. package/dist/ui/components/messages/UserTextMessage.js.map +1 -0
  286. package/dist/ui/components/overlays/ArionSelector.js +68 -0
  287. package/dist/ui/components/overlays/ArionSelector.js.map +1 -0
  288. package/dist/ui/components/overlays/ClientSelector.js +62 -0
  289. package/dist/ui/components/overlays/ClientSelector.js.map +1 -0
  290. package/dist/ui/components/overlays/CommandPalette.js +67 -0
  291. package/dist/ui/components/overlays/CommandPalette.js.map +1 -0
  292. package/dist/ui/components/overlays/DaemonControl.js +87 -0
  293. package/dist/ui/components/overlays/DaemonControl.js.map +1 -0
  294. package/dist/ui/components/overlays/InviteShareOverlay.js +15 -0
  295. package/dist/ui/components/overlays/InviteShareOverlay.js.map +1 -0
  296. package/dist/ui/components/overlays/JoinInviteOverlay.js +32 -0
  297. package/dist/ui/components/overlays/JoinInviteOverlay.js.map +1 -0
  298. package/dist/ui/components/overlays/MemoryBrowser.js +100 -0
  299. package/dist/ui/components/overlays/MemoryBrowser.js.map +1 -0
  300. package/dist/ui/components/overlays/MessageSelector.js +123 -0
  301. package/dist/ui/components/overlays/MessageSelector.js.map +1 -0
  302. package/dist/ui/components/overlays/ModelSelector.js +211 -0
  303. package/dist/ui/components/overlays/ModelSelector.js.map +1 -0
  304. package/dist/ui/components/overlays/PairRequestOverlay.js +42 -0
  305. package/dist/ui/components/overlays/PairRequestOverlay.js.map +1 -0
  306. package/dist/ui/components/overlays/PeerSelector.js +84 -0
  307. package/dist/ui/components/overlays/PeerSelector.js.map +1 -0
  308. package/dist/ui/components/overlays/SessionSelector.js +102 -0
  309. package/dist/ui/components/overlays/SessionSelector.js.map +1 -0
  310. package/dist/ui/components/overlays/SoundSelector.js +86 -0
  311. package/dist/ui/components/overlays/SoundSelector.js.map +1 -0
  312. package/dist/ui/components/overlays/ThemeSelector.js +139 -0
  313. package/dist/ui/components/overlays/ThemeSelector.js.map +1 -0
  314. package/dist/ui/components/overlays/index.js +15 -0
  315. package/dist/ui/components/overlays/index.js.map +1 -0
  316. package/dist/ui/components/permissions/BashPermissionRequest/BashPermissionRequest.js +53 -0
  317. package/dist/ui/components/permissions/BashPermissionRequest/BashPermissionRequest.js.map +1 -0
  318. package/dist/ui/components/permissions/FallbackPermissionRequest.js +56 -0
  319. package/dist/ui/components/permissions/FallbackPermissionRequest.js.map +1 -0
  320. package/dist/ui/components/permissions/FileEditPermissionRequest/FileEditPermissionRequest.js +76 -0
  321. package/dist/ui/components/permissions/FileEditPermissionRequest/FileEditPermissionRequest.js.map +1 -0
  322. package/dist/ui/components/permissions/FileEditPermissionRequest/FileEditToolDiff.js +18 -0
  323. package/dist/ui/components/permissions/FileEditPermissionRequest/FileEditToolDiff.js.map +1 -0
  324. package/dist/ui/components/permissions/FileWritePermissionRequest/FileWritePermissionRequest.js +64 -0
  325. package/dist/ui/components/permissions/FileWritePermissionRequest/FileWritePermissionRequest.js.map +1 -0
  326. package/dist/ui/components/permissions/FileWritePermissionRequest/FileWriteToolDiff.js +26 -0
  327. package/dist/ui/components/permissions/FileWritePermissionRequest/FileWriteToolDiff.js.map +1 -0
  328. package/dist/ui/components/permissions/FilesystemPermissionRequest/FilesystemPermissionRequest.js +141 -0
  329. package/dist/ui/components/permissions/FilesystemPermissionRequest/FilesystemPermissionRequest.js.map +1 -0
  330. package/dist/ui/components/permissions/PermissionRequest.js +70 -0
  331. package/dist/ui/components/permissions/PermissionRequest.js.map +1 -0
  332. package/dist/ui/components/permissions/PermissionRequestTitle.js +41 -0
  333. package/dist/ui/components/permissions/PermissionRequestTitle.js.map +1 -0
  334. package/dist/ui/components/permissions/hooks.js +10 -0
  335. package/dist/ui/components/permissions/hooks.js.map +1 -0
  336. package/dist/ui/components/permissions/toolUseOptions.js +68 -0
  337. package/dist/ui/components/permissions/toolUseOptions.js.map +1 -0
  338. package/dist/ui/components/permissions/utils.js +10 -0
  339. package/dist/ui/components/permissions/utils.js.map +1 -0
  340. package/dist/ui/components/text-input/Cursor.js +326 -0
  341. package/dist/ui/components/text-input/Cursor.js.map +1 -0
  342. package/dist/ui/components/text-input/TextInput.js +231 -0
  343. package/dist/ui/components/text-input/TextInput.js.map +1 -0
  344. package/dist/ui/components/text-input/imagePaste.js +28 -0
  345. package/dist/ui/components/text-input/imagePaste.js.map +1 -0
  346. package/dist/ui/components/text-input/index.js +6 -0
  347. package/dist/ui/components/text-input/index.js.map +1 -0
  348. package/dist/ui/components/text-input/useDoublePress.js +30 -0
  349. package/dist/ui/components/text-input/useDoublePress.js.map +1 -0
  350. package/dist/ui/components/text-input/useTextInput.js +245 -0
  351. package/dist/ui/components/text-input/useTextInput.js.map +1 -0
  352. package/dist/ui/components/tool-types.js +9 -0
  353. package/dist/ui/components/tool-types.js.map +1 -0
  354. package/dist/ui/constants/figures.js +4 -0
  355. package/dist/ui/constants/figures.js.map +1 -0
  356. package/dist/ui/constants/index.js +3 -0
  357. package/dist/ui/constants/index.js.map +1 -0
  358. package/dist/ui/display-mode.js +93 -0
  359. package/dist/ui/display-mode.js.map +1 -0
  360. package/dist/ui/display-policy.js +19 -0
  361. package/dist/ui/display-policy.js.map +1 -0
  362. package/dist/ui/hooks/index.js +6 -0
  363. package/dist/ui/hooks/index.js.map +1 -0
  364. package/dist/ui/hooks/useCommandAutocomplete.js +93 -0
  365. package/dist/ui/hooks/useCommandAutocomplete.js.map +1 -0
  366. package/dist/ui/hooks/useDoublePress.js +37 -0
  367. package/dist/ui/hooks/useDoublePress.js.map +1 -0
  368. package/dist/ui/hooks/useIndicatorState.js +55 -0
  369. package/dist/ui/hooks/useIndicatorState.js.map +1 -0
  370. package/dist/ui/hooks/useInterval.js +23 -0
  371. package/dist/ui/hooks/useInterval.js.map +1 -0
  372. package/dist/ui/hooks/useKeyboardShortcuts.js +127 -0
  373. package/dist/ui/hooks/useKeyboardShortcuts.js.map +1 -0
  374. package/dist/ui/hooks/useTerminalSize.js +55 -0
  375. package/dist/ui/hooks/useTerminalSize.js.map +1 -0
  376. package/dist/ui/hooks/useUnifiedMessages.js +117 -0
  377. package/dist/ui/hooks/useUnifiedMessages.js.map +1 -0
  378. package/dist/ui/indicator-state.js +44 -0
  379. package/dist/ui/indicator-state.js.map +1 -0
  380. package/dist/ui/markdown/highlight.js +44 -0
  381. package/dist/ui/markdown/highlight.js.map +1 -0
  382. package/dist/ui/markdown/index.js +1460 -0
  383. package/dist/ui/markdown/index.js.map +1 -0
  384. package/dist/ui/markdown/tokenizer.js +24 -0
  385. package/dist/ui/markdown/tokenizer.js.map +1 -0
  386. package/dist/ui/render-item.js +5 -0
  387. package/dist/ui/render-item.js.map +1 -0
  388. package/dist/ui/screens/REPL.js +119 -0
  389. package/dist/ui/screens/REPL.js.map +1 -0
  390. package/dist/ui/screens/approval-lifecycle.js +38 -0
  391. package/dist/ui/screens/approval-lifecycle.js.map +1 -0
  392. package/dist/ui/status-line.js +72 -0
  393. package/dist/ui/status-line.js.map +1 -0
  394. package/dist/ui/theme/index.js +51 -0
  395. package/dist/ui/theme/index.js.map +1 -0
  396. package/dist/ui/theme/themes/claude-dark-daltonized.js +51 -0
  397. package/dist/ui/theme/themes/claude-dark-daltonized.js.map +1 -0
  398. package/dist/ui/theme/themes/claude-dark.js +50 -0
  399. package/dist/ui/theme/themes/claude-dark.js.map +1 -0
  400. package/dist/ui/theme/themes/claude-light-daltonized.js +51 -0
  401. package/dist/ui/theme/themes/claude-light-daltonized.js.map +1 -0
  402. package/dist/ui/theme/themes/claude-light.js +50 -0
  403. package/dist/ui/theme/themes/claude-light.js.map +1 -0
  404. package/dist/ui/theme/themes/dark-accessible.js +18 -0
  405. package/dist/ui/theme/themes/dark-accessible.js.map +1 -0
  406. package/dist/ui/theme/themes/dark.js +49 -0
  407. package/dist/ui/theme/themes/dark.js.map +1 -0
  408. package/dist/ui/theme/themes/light-accessible.js +18 -0
  409. package/dist/ui/theme/themes/light-accessible.js.map +1 -0
  410. package/dist/ui/theme/themes/light.js +49 -0
  411. package/dist/ui/theme/themes/light.js.map +1 -0
  412. package/dist/ui/theme/types.js +3 -0
  413. package/dist/ui/theme/types.js.map +1 -0
  414. package/dist/ui/theme.js +142 -0
  415. package/dist/ui/theme.js.map +1 -0
  416. package/dist/ui/to-render-items.js +145 -0
  417. package/dist/ui/to-render-items.js.map +1 -0
  418. package/dist/ui/tools/AgentTool/index.js +30 -0
  419. package/dist/ui/tools/AgentTool/index.js.map +1 -0
  420. package/dist/ui/tools/ArchitectTool/index.js +31 -0
  421. package/dist/ui/tools/ArchitectTool/index.js.map +1 -0
  422. package/dist/ui/tools/AskUserTool/index.js +46 -0
  423. package/dist/ui/tools/AskUserTool/index.js.map +1 -0
  424. package/dist/ui/tools/BashTool/BashToolResultMessage.js +11 -0
  425. package/dist/ui/tools/BashTool/BashToolResultMessage.js.map +1 -0
  426. package/dist/ui/tools/BashTool/OutputLine.js +21 -0
  427. package/dist/ui/tools/BashTool/OutputLine.js.map +1 -0
  428. package/dist/ui/tools/BashTool/index.js +91 -0
  429. package/dist/ui/tools/BashTool/index.js.map +1 -0
  430. package/dist/ui/tools/BrowseTool/index.js +43 -0
  431. package/dist/ui/tools/BrowseTool/index.js.map +1 -0
  432. package/dist/ui/tools/BrowserTool/index.js +47 -0
  433. package/dist/ui/tools/BrowserTool/index.js.map +1 -0
  434. package/dist/ui/tools/CbmTool/index.js +188 -0
  435. package/dist/ui/tools/CbmTool/index.js.map +1 -0
  436. package/dist/ui/tools/CheckDelegationTool/index.js +46 -0
  437. package/dist/ui/tools/CheckDelegationTool/index.js.map +1 -0
  438. package/dist/ui/tools/CheckMessagesTool/index.js +85 -0
  439. package/dist/ui/tools/CheckMessagesTool/index.js.map +1 -0
  440. package/dist/ui/tools/CreateQuipTool/index.js +30 -0
  441. package/dist/ui/tools/CreateQuipTool/index.js.map +1 -0
  442. package/dist/ui/tools/CreateSkillTool/index.js +22 -0
  443. package/dist/ui/tools/CreateSkillTool/index.js.map +1 -0
  444. package/dist/ui/tools/CreateToolTool/index.js +31 -0
  445. package/dist/ui/tools/CreateToolTool/index.js.map +1 -0
  446. package/dist/ui/tools/DelegateRemoteTool/index.js +42 -0
  447. package/dist/ui/tools/DelegateRemoteTool/index.js.map +1 -0
  448. package/dist/ui/tools/DeployTool/index.js +47 -0
  449. package/dist/ui/tools/DeployTool/index.js.map +1 -0
  450. package/dist/ui/tools/FffTool/index.js +103 -0
  451. package/dist/ui/tools/FffTool/index.js.map +1 -0
  452. package/dist/ui/tools/FileEditTool/index.js +67 -0
  453. package/dist/ui/tools/FileEditTool/index.js.map +1 -0
  454. package/dist/ui/tools/FileReadTool/index.js +68 -0
  455. package/dist/ui/tools/FileReadTool/index.js.map +1 -0
  456. package/dist/ui/tools/FileWriteTool/index.js +61 -0
  457. package/dist/ui/tools/FileWriteTool/index.js.map +1 -0
  458. package/dist/ui/tools/ForkTool/index.js +47 -0
  459. package/dist/ui/tools/ForkTool/index.js.map +1 -0
  460. package/dist/ui/tools/FrgTool/index.js +96 -0
  461. package/dist/ui/tools/FrgTool/index.js.map +1 -0
  462. package/dist/ui/tools/GetThreadTool/index.js +39 -0
  463. package/dist/ui/tools/GetThreadTool/index.js.map +1 -0
  464. package/dist/ui/tools/GlobTool/index.js +50 -0
  465. package/dist/ui/tools/GlobTool/index.js.map +1 -0
  466. package/dist/ui/tools/GrepTool/index.js +84 -0
  467. package/dist/ui/tools/GrepTool/index.js.map +1 -0
  468. package/dist/ui/tools/HatchArionTool/index.js +36 -0
  469. package/dist/ui/tools/HatchArionTool/index.js.map +1 -0
  470. package/dist/ui/tools/LearnSkillTool/index.js +22 -0
  471. package/dist/ui/tools/LearnSkillTool/index.js.map +1 -0
  472. package/dist/ui/tools/LearnTool/index.js +43 -0
  473. package/dist/ui/tools/LearnTool/index.js.map +1 -0
  474. package/dist/ui/tools/LearnToolTool/index.js +22 -0
  475. package/dist/ui/tools/LearnToolTool/index.js.map +1 -0
  476. package/dist/ui/tools/ListClientsTool/index.js +39 -0
  477. package/dist/ui/tools/ListClientsTool/index.js.map +1 -0
  478. package/dist/ui/tools/LspTool/index.js +261 -0
  479. package/dist/ui/tools/LspTool/index.js.map +1 -0
  480. package/dist/ui/tools/MCPTool/index.js +33 -0
  481. package/dist/ui/tools/MCPTool/index.js.map +1 -0
  482. package/dist/ui/tools/ManageNetworkTool/index.js +53 -0
  483. package/dist/ui/tools/ManageNetworkTool/index.js.map +1 -0
  484. package/dist/ui/tools/MemoryReadTool/index.js +64 -0
  485. package/dist/ui/tools/MemoryReadTool/index.js.map +1 -0
  486. package/dist/ui/tools/MemoryWriteTool/index.js +20 -0
  487. package/dist/ui/tools/MemoryWriteTool/index.js.map +1 -0
  488. package/dist/ui/tools/NotebookEditTool/index.js +33 -0
  489. package/dist/ui/tools/NotebookEditTool/index.js.map +1 -0
  490. package/dist/ui/tools/NotebookReadTool/index.js +25 -0
  491. package/dist/ui/tools/NotebookReadTool/index.js.map +1 -0
  492. package/dist/ui/tools/OutlookReadTool/index.js +66 -0
  493. package/dist/ui/tools/OutlookReadTool/index.js.map +1 -0
  494. package/dist/ui/tools/OutlookReplyTool/index.js +49 -0
  495. package/dist/ui/tools/OutlookReplyTool/index.js.map +1 -0
  496. package/dist/ui/tools/OutlookSendTool/index.js +49 -0
  497. package/dist/ui/tools/OutlookSendTool/index.js.map +1 -0
  498. package/dist/ui/tools/PauseDelegationTool/index.js +35 -0
  499. package/dist/ui/tools/PauseDelegationTool/index.js.map +1 -0
  500. package/dist/ui/tools/ProbeTool/index.js +121 -0
  501. package/dist/ui/tools/ProbeTool/index.js.map +1 -0
  502. package/dist/ui/tools/ProcessTool/index.js +66 -0
  503. package/dist/ui/tools/ProcessTool/index.js.map +1 -0
  504. package/dist/ui/tools/QuestListTool/index.js +46 -0
  505. package/dist/ui/tools/QuestListTool/index.js.map +1 -0
  506. package/dist/ui/tools/QuestReportTool/index.js +49 -0
  507. package/dist/ui/tools/QuestReportTool/index.js.map +1 -0
  508. package/dist/ui/tools/QuestUpdateTool/index.js +87 -0
  509. package/dist/ui/tools/QuestUpdateTool/index.js.map +1 -0
  510. package/dist/ui/tools/QuipCommentTool/index.js +69 -0
  511. package/dist/ui/tools/QuipCommentTool/index.js.map +1 -0
  512. package/dist/ui/tools/QuipReadTool/index.js +71 -0
  513. package/dist/ui/tools/QuipReadTool/index.js.map +1 -0
  514. package/dist/ui/tools/RestArionTool/index.js +32 -0
  515. package/dist/ui/tools/RestArionTool/index.js.map +1 -0
  516. package/dist/ui/tools/RestartTool/index.js +35 -0
  517. package/dist/ui/tools/RestartTool/index.js.map +1 -0
  518. package/dist/ui/tools/ResumeDelegationTool/index.js +35 -0
  519. package/dist/ui/tools/ResumeDelegationTool/index.js.map +1 -0
  520. package/dist/ui/tools/RetireArionTool/index.js +32 -0
  521. package/dist/ui/tools/RetireArionTool/index.js.map +1 -0
  522. package/dist/ui/tools/RgTool/index.js +73 -0
  523. package/dist/ui/tools/RgTool/index.js.map +1 -0
  524. package/dist/ui/tools/SearchKnowledgeTool/index.js +43 -0
  525. package/dist/ui/tools/SearchKnowledgeTool/index.js.map +1 -0
  526. package/dist/ui/tools/SearchMessagesTool/index.js +43 -0
  527. package/dist/ui/tools/SearchMessagesTool/index.js.map +1 -0
  528. package/dist/ui/tools/SelfDiagnoseTool/index.js +61 -0
  529. package/dist/ui/tools/SelfDiagnoseTool/index.js.map +1 -0
  530. package/dist/ui/tools/SendMessageTool/index.js +45 -0
  531. package/dist/ui/tools/SendMessageTool/index.js.map +1 -0
  532. package/dist/ui/tools/SerenaTool/index.js +124 -0
  533. package/dist/ui/tools/SerenaTool/index.js.map +1 -0
  534. package/dist/ui/tools/SessionHistoryTool/index.js +52 -0
  535. package/dist/ui/tools/SessionHistoryTool/index.js.map +1 -0
  536. package/dist/ui/tools/SgTool/index.js +80 -0
  537. package/dist/ui/tools/SgTool/index.js.map +1 -0
  538. package/dist/ui/tools/SlackReactTool/index.js +41 -0
  539. package/dist/ui/tools/SlackReactTool/index.js.map +1 -0
  540. package/dist/ui/tools/SlackReadTool/index.js +48 -0
  541. package/dist/ui/tools/SlackReadTool/index.js.map +1 -0
  542. package/dist/ui/tools/SlackSendTool/index.js +45 -0
  543. package/dist/ui/tools/SlackSendTool/index.js.map +1 -0
  544. package/dist/ui/tools/SpawnWorkerTool/index.js +33 -0
  545. package/dist/ui/tools/SpawnWorkerTool/index.js.map +1 -0
  546. package/dist/ui/tools/StickerRequestTool/index.js +19 -0
  547. package/dist/ui/tools/StickerRequestTool/index.js.map +1 -0
  548. package/dist/ui/tools/ThinkTool/index.js +17 -0
  549. package/dist/ui/tools/ThinkTool/index.js.map +1 -0
  550. package/dist/ui/tools/UgTool/index.js +108 -0
  551. package/dist/ui/tools/UgTool/index.js.map +1 -0
  552. package/dist/ui/tools/UseSkillTool/index.js +22 -0
  553. package/dist/ui/tools/UseSkillTool/index.js.map +1 -0
  554. package/dist/ui/tools/WakeArionTool/index.js +32 -0
  555. package/dist/ui/tools/WakeArionTool/index.js.map +1 -0
  556. package/dist/ui/tools/WebFetchTool/index.js +56 -0
  557. package/dist/ui/tools/WebFetchTool/index.js.map +1 -0
  558. package/dist/ui/tools/WebSearchTool/index.js +44 -0
  559. package/dist/ui/tools/WebSearchTool/index.js.map +1 -0
  560. package/dist/ui/tools/lsTool/index.js +58 -0
  561. package/dist/ui/tools/lsTool/index.js.map +1 -0
  562. package/dist/ui/tools/registry.js +197 -0
  563. package/dist/ui/tools/registry.js.map +1 -0
  564. package/dist/ui/tools/tool-renderer.js +11 -0
  565. package/dist/ui/tools/tool-renderer.js.map +1 -0
  566. package/dist/ui/tools/truncation.js +35 -0
  567. package/dist/ui/tools/truncation.js.map +1 -0
  568. package/dist/ui/types/anthropic.js +4 -0
  569. package/dist/ui/types/anthropic.js.map +1 -0
  570. package/dist/ui/types/index.js +2 -0
  571. package/dist/ui/types/index.js.map +1 -0
  572. package/dist/ui/types/message.js +3 -0
  573. package/dist/ui/types/message.js.map +1 -0
  574. package/dist/ui/types/tool.js +4 -0
  575. package/dist/ui/types/tool.js.map +1 -0
  576. package/dist/ui/utils/array.js +4 -0
  577. package/dist/ui/utils/array.js.map +1 -0
  578. package/dist/ui/utils/cursor.js +131 -0
  579. package/dist/ui/utils/cursor.js.map +1 -0
  580. package/dist/ui/utils/diff.js +120 -0
  581. package/dist/ui/utils/diff.js.map +1 -0
  582. package/dist/ui/utils/format.js +42 -0
  583. package/dist/ui/utils/format.js.map +1 -0
  584. package/dist/ui/utils/fuzzy.js +59 -0
  585. package/dist/ui/utils/fuzzy.js.map +1 -0
  586. package/dist/ui/utils/index.js +11 -0
  587. package/dist/ui/utils/index.js.map +1 -0
  588. package/dist/ui/utils/keys.js +8 -0
  589. package/dist/ui/utils/keys.js.map +1 -0
  590. package/dist/ui/utils/patch.js +17 -0
  591. package/dist/ui/utils/patch.js.map +1 -0
  592. package/dist/ui/utils/risk.js +114 -0
  593. package/dist/ui/utils/risk.js.map +1 -0
  594. package/dist/ui/utils/terminal-image.js +70 -0
  595. package/dist/ui/utils/terminal-image.js.map +1 -0
  596. package/dist/ui/utils/validation.js +48 -0
  597. package/dist/ui/utils/validation.js.map +1 -0
  598. package/dist/ui/verb-pairs.js +248 -0
  599. package/dist/ui/verb-pairs.js.map +1 -0
  600. package/dist/ui.js +131 -0
  601. package/dist/ui.js.map +1 -0
  602. package/package.json +77 -15
  603. package/src/entrypoints/command-mode.ts +5 -0
  604. package/src/entrypoints/daemon.ts +54 -0
  605. package/src/entrypoints/headless-stdio.ts +27 -0
  606. package/src/entrypoints/interactive.ts +112 -0
  607. package/src/main.ts +72 -0
  608. package/src/runtime/configure-bun-sqlite.ts +3 -0
  609. package/src/runtime/crash-handlers.ts +128 -0
  610. package/src/runtime/interactive-invocation.test.ts +42 -0
  611. package/src/runtime/interactive-invocation.ts +51 -0
  612. package/src/runtime/internal-mode.test.ts +19 -0
  613. package/src/runtime/internal-mode.ts +24 -0
  614. package/src/runtime/launch-spec.test.ts +26 -0
  615. package/src/runtime/launch-spec.ts +84 -0
  616. package/src/runtime/owner-lease.ts +52 -0
  617. package/src/runtime/public-mode.test.ts +18 -0
  618. package/src/runtime/public-mode.ts +19 -0
  619. package/src/runtime/run-internal-mode.ts +19 -0
  620. package/src/runtime/runtime-kind.test.ts +23 -0
  621. package/src/runtime/runtime-kind.ts +41 -0
  622. package/src/runtime/spawn-aria.ts +62 -0
@@ -0,0 +1,108 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Box, Text } from "ink";
3
+ import { relative } from "path";
4
+ import { FallbackToolUseRejectedMessage } from "../../components/FallbackToolUseRejectedMessage.js";
5
+ import { getTheme } from "../../theme/index.js";
6
+ function isCountOutput(output) {
7
+ return "counts" in output && Array.isArray(output.counts);
8
+ }
9
+ function buildCommandPreview(input) {
10
+ const parts = [];
11
+ // Add pattern in quotes
12
+ parts.push(`"${input.pattern}"`);
13
+ // Add fuzzy if present
14
+ if (input.fuzzy !== undefined && input.fuzzy !== false) {
15
+ if (typeof input.fuzzy === "number") {
16
+ parts.push(`fuzzy:${input.fuzzy}`);
17
+ }
18
+ else {
19
+ parts.push("fuzzy");
20
+ }
21
+ }
22
+ // Add bool if present
23
+ if (input.bool) {
24
+ parts.push("bool");
25
+ }
26
+ // Add file_type if present
27
+ if (input.file_type) {
28
+ parts.push(`-t ${input.file_type}`);
29
+ }
30
+ // Add path if present (only if not ".")
31
+ if (input.path && input.path !== ".") {
32
+ parts.push(input.path);
33
+ }
34
+ return parts.join(" ");
35
+ }
36
+ export const UgToolRenderers = {
37
+ displayName() {
38
+ return "Ugrep";
39
+ },
40
+ renderInput(input, { verbose } = {}) {
41
+ const commandPreview = buildCommandPreview(input);
42
+ const flags = [];
43
+ if (verbose) {
44
+ if (input.ignore_case)
45
+ flags.push("-i");
46
+ if (input.smart_case)
47
+ flags.push("-j");
48
+ if (input.fixed_strings)
49
+ flags.push("-F");
50
+ if (input.word_regexp)
51
+ flags.push("-w");
52
+ if (input.files_only)
53
+ flags.push("-l");
54
+ if (input.count)
55
+ flags.push("-c");
56
+ if (input.context !== undefined)
57
+ flags.push(`-C ${input.context}`);
58
+ if (input.neg_pattern)
59
+ flags.push(`-N "${input.neg_pattern}"`);
60
+ if (input.decompress)
61
+ flags.push("-z");
62
+ if (input.glob)
63
+ flags.push(`-g "${input.glob}"`);
64
+ if (input.extra_args && input.extra_args.length > 0)
65
+ flags.push(`[${input.extra_args.join(" ")}]`);
66
+ }
67
+ return flags.length > 0 ? `${commandPreview} ${flags.join(" ")}` : commandPreview;
68
+ },
69
+ renderRejection() {
70
+ return _jsx(FallbackToolUseRejectedMessage, {});
71
+ },
72
+ renderOutput(output) {
73
+ const theme = getTheme();
74
+ // Guard: handle unexpected output shapes gracefully
75
+ if (!output || typeof output !== "object") {
76
+ return _jsx(Text, { color: theme.colors.textMuted, children: String(output ?? "No result") });
77
+ }
78
+ if (!("counts" in output) && !("matches" in output)) {
79
+ const msg = output.message;
80
+ return (_jsx(Text, { color: theme.colors.textMuted, children: typeof msg === "string" ? msg : "Search complete" }));
81
+ }
82
+ // Handle count mode
83
+ if (isCountOutput(output)) {
84
+ const { counts, total } = output;
85
+ const displayCount = Math.min(5, counts.length);
86
+ const remaining = counts.length - displayCount;
87
+ return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { flexDirection: "row", children: [_jsx(Text, { bold: true, children: total }), _jsx(Text, { children: " matches across " }), _jsx(Text, { bold: true, children: counts.length }), _jsx(Text, { children: " files" })] }), counts.slice(0, displayCount).map((result, i) => (_jsx(Box, { paddingLeft: 2, children: _jsxs(Text, { color: theme.colors.textMuted, children: [relative(process.cwd(), result.file), ": ", result.count] }) }, i))), remaining > 0 && (_jsx(Box, { paddingLeft: 2, children: _jsxs(Text, { color: theme.colors.textMuted, children: ["+", remaining, " more files"] }) }))] }));
88
+ }
89
+ // Handle normal mode
90
+ const { matches } = output;
91
+ if (matches.length === 0) {
92
+ return (_jsx(Box, { children: _jsx(Text, { color: theme.colors.textMuted, children: "No matches found" }) }));
93
+ }
94
+ // Group matches by file
95
+ const fileMap = new Map();
96
+ for (const match of matches) {
97
+ if (!fileMap.has(match.file)) {
98
+ fileMap.set(match.file, []);
99
+ }
100
+ fileMap.get(match.file).push(match);
101
+ }
102
+ const filesWithMatches = Array.from(fileMap.entries());
103
+ const displayFileCount = Math.min(3, filesWithMatches.length);
104
+ const remainingFiles = filesWithMatches.length - displayFileCount;
105
+ return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { flexDirection: "row", children: [_jsx(Text, { bold: true, children: matches.length }), _jsx(Text, { children: " matches in " }), _jsx(Text, { bold: true, children: filesWithMatches.length }), _jsx(Text, { children: " files" })] }), filesWithMatches.slice(0, displayFileCount).map(([file, fileMatches], i) => (_jsx(Box, { paddingLeft: 2, children: _jsxs(Text, { color: theme.colors.textMuted, children: [relative(process.cwd(), file), ": ", fileMatches.length] }) }, i))), remainingFiles > 0 && (_jsx(Box, { paddingLeft: 2, children: _jsxs(Text, { color: theme.colors.textMuted, children: ["+", remainingFiles, " more files"] }) }))] }));
106
+ },
107
+ };
108
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/tools/UgTool/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAEhC,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACh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AAS,kBAAI,cAAc,mBAAmB,GACpE,CACP,IACG,CACP,CAAC;IACJ,CAAC;CACF,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Box, Text } from "ink";
3
+ import { FallbackToolUseRejectedMessage } from "../../components/FallbackToolUseRejectedMessage.js";
4
+ export const UseSkillToolRenderers = {
5
+ displayName() {
6
+ return "Use Skill";
7
+ },
8
+ renderInput(input, _opts) {
9
+ return input.name ?? "skill";
10
+ },
11
+ renderRejection() {
12
+ return _jsx(FallbackToolUseRejectedMessage, {});
13
+ },
14
+ renderOutput(output) {
15
+ if (!output || typeof output !== "object") {
16
+ return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { children: "(No content)" }) }) }));
17
+ }
18
+ const name = output.skill?.name ?? "unknown";
19
+ return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsxs(Text, { children: ["Loaded skill ", name] }) }) }));
20
+ },
21
+ };
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/tools/UseSkillTool/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAEhC,OAAO,EAAE,8BAA8B,EAAE,MAAM,oDAAoD,CAAC;AAEpG,MAAM,CAAC,MAAM,qBAAqB,GAAiB;IACjD,WAAW;QACT,OAAO,WAAW,CAAC;IACrB,CAAC;IACD,WAAW,CAAC,KAAwB,EAAE,KAA2B;QAC/D,OAAO,KAAK,CAAC,IAAI,IAAI,OAAO,CAAC;IAC/B,CAAC;IACD,eAAe;QACb,OAAO,KAAC,8BAA8B,KAAG,CAAC;IAC5C,CAAC;IACD,YAAY,CAAC,MAGZ;QACC,IAAI,CAAC,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;YAC1C,OAAO,CACL,KAAC,GAAG,IAAC,cAAc,EAAC,eAAe,EAAC,SAAS,EAAC,QAAQ,EAAC,KAAK,EAAC,MAAM,YACjE,KAAC,GAAG,IAAC,aAAa,EAAC,KAAK,YACtB,KAAC,IAAI,+BAAoB,GACrB,GACF,CACP,CAAC;QACJ,CAAC;QACD,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,EAAE,IAAI,IAAI,SAAS,CAAC;QAC7C,OAAO,CACL,KAAC,GAAG,IAAC,cAAc,EAAC,eAAe,EAAC,SAAS,EAAC,QAAQ,EAAC,KAAK,EAAC,MAAM,YACjE,KAAC,GAAG,IAAC,aAAa,EAAC,KAAK,YACtB,MAAC,IAAI,gCAAe,IAAI,IAAQ,GAC5B,GACF,CACP,CAAC;IACJ,CAAC;CACF,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Box, Text } from "ink";
3
+ import { FallbackToolUseRejectedMessage } from "../../components/FallbackToolUseRejectedMessage.js";
4
+ import { getTheme } from "../../theme/index.js";
5
+ export const WakeArionToolRenderers = {
6
+ displayName() {
7
+ return "Wake Arion";
8
+ },
9
+ renderInput(input, _opts) {
10
+ if (input.name) {
11
+ return `${input.name}`;
12
+ }
13
+ return Object.entries(input)
14
+ .map(([key, value]) => `${key}: ${JSON.stringify(value)}`)
15
+ .join(", ");
16
+ },
17
+ renderRejection() {
18
+ return _jsx(FallbackToolUseRejectedMessage, {});
19
+ },
20
+ renderOutput(output, _opts) {
21
+ const theme = getTheme();
22
+ // Handle undefined/null output (ARIA may return undefined)
23
+ if (output == null) {
24
+ return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { color: theme.colors.success, children: "Arion is now awake" }) }) }));
25
+ }
26
+ const message = typeof output === "string"
27
+ ? output
28
+ : output.message || `${output.name || "Arion"} is now awake`;
29
+ return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { color: theme.colors.success, children: message }) }) }));
30
+ },
31
+ };
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/tools/WakeArionTool/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAEhC,OAAO,EAAE,8BAA8B,EAAE,MAAM,oDAAoD,CAAC;AACpG,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAYhD,MAAM,CAAC,MAAM,sBAAsB,GAAiB;IAClD,WAAW;QACT,OAAO,YAAY,CAAC;IACtB,CAAC;IACD,WAAW,CAAC,KAAqB,EAAE,KAA2B;QAC5D,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;YACf,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;QACzB,CAAC;QACD,OAAO,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;aACzB,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,KAAK,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;aACzD,IAAI,CAAC,IAAI,CAAC,CAAC;IAChB,CAAC;IACD,eAAe;QACb,OAAO,KAAC,8BAA8B,KAAG,CAAC;IAC5C,CAAC;IACD,YAAY,CAAC,MAAuC,EAAE,KAA2B;QAC/E,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;QAEzB,2DAA2D;QAC3D,IAAI,MAAM,IAAI,IAAI,EAAE,CAAC;YACnB,OAAO,CACL,KAAC,GAAG,IAAC,cAAc,EAAC,eAAe,EAAC,SAAS,EAAC,QAAQ,EAAC,KAAK,EAAC,MAAM,YACjE,KAAC,GAAG,IAAC,aAAa,EAAC,KAAK,YACtB,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,mCAA2B,GACxD,GACF,CACP,CAAC;QACJ,CAAC;QAED,MAAM,OAAO,GACX,OAAO,MAAM,KAAK,QAAQ;YACxB,CAAC,CAAC,MAAM;YACR,CAAC,CAAC,MAAM,CAAC,OAAO,IAAI,GAAG,MAAM,CAAC,IAAI,IAAI,OAAO,eAAe,CAAC;QAEjE,OAAO,CACL,KAAC,GAAG,IAAC,cAAc,EAAC,eAAe,EAAC,SAAS,EAAC,QAAQ,EAAC,KAAK,EAAC,MAAM,YACjE,KAAC,GAAG,IAAC,aAAa,EAAC,KAAK,YACtB,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,YAAG,OAAO,GAAQ,GAC/C,GACF,CACP,CAAC;IACJ,CAAC;CACF,CAAC"}
@@ -0,0 +1,56 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Box, Text } from "ink";
3
+ import { FallbackToolUseRejectedMessage } from "../../components/FallbackToolUseRejectedMessage.js";
4
+ import { useToolRenderLayout } from "../../components/ToolRenderLayoutContext.js";
5
+ import { getTheme } from "../../theme/index.js";
6
+ import { applyMarkdown } from "../../markdown/index.js";
7
+ function truncateUrl(url, maxLen = 80) {
8
+ return url.length > maxLen ? url.slice(0, maxLen - 1) + "\u2026" : url;
9
+ }
10
+ function formatBytes(bytes) {
11
+ if (bytes < 1024)
12
+ return `${bytes}B`;
13
+ if (bytes < 1024 * 1024)
14
+ return `${(bytes / 1024).toFixed(1)}KB`;
15
+ return `${(bytes / (1024 * 1024)).toFixed(1)}MB`;
16
+ }
17
+ function WebFetchPreview({ preview }) {
18
+ const { contentWidth } = useToolRenderLayout();
19
+ const previewWidth = Math.max(contentWidth - 4, 1);
20
+ return (_jsx(Text, { color: getTheme().colors.textMuted, dimColor: true, children: applyMarkdown(preview, { width: previewWidth }) }));
21
+ }
22
+ export const WebFetchToolRenderers = {
23
+ displayName() {
24
+ return "Fetch";
25
+ },
26
+ renderInput(input) {
27
+ if (input.url) {
28
+ return truncateUrl(String(input.url));
29
+ }
30
+ return Object.entries(input)
31
+ .map(([key, value]) => `${key}: ${JSON.stringify(value)}`)
32
+ .join(", ");
33
+ },
34
+ renderRejection() {
35
+ return _jsx(FallbackToolUseRejectedMessage, {});
36
+ },
37
+ renderOutput(output) {
38
+ if (!output || typeof output === "string") {
39
+ const text = typeof output === "string" ? output : "(No content)";
40
+ return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { color: getTheme().colors.textMuted, children: text }) }) }));
41
+ }
42
+ const theme = getTheme();
43
+ const url = output.finalUrl || "";
44
+ const status = output.status;
45
+ const statusColor = status && status >= 200 && status < 300
46
+ ? theme.colors.success
47
+ : status && status >= 400
48
+ ? theme.colors.error
49
+ : theme.colors.warning;
50
+ const preview = output.content ? output.content.slice(0, 200).split("\n")[0] : "";
51
+ const sizeStr = output.contentBytes ? formatBytes(output.contentBytes) : "";
52
+ const cacheStr = output.fromCache ? " (cached)" : "";
53
+ return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { flexDirection: "row", children: [status != null && (_jsxs(Text, { color: statusColor, bold: true, children: [status, " "] })), url && _jsx(Text, { color: theme.colors.textMuted, children: truncateUrl(url, 60) }), sizeStr && (_jsxs(Text, { color: theme.colors.textMuted, children: [" ", "(", sizeStr, cacheStr, ")"] })), output.truncated && _jsx(Text, { color: theme.colors.warning, children: " [truncated]" })] }), preview && (_jsx(Box, { flexDirection: "row", paddingLeft: 4, children: _jsx(WebFetchPreview, { preview: preview }) }))] }));
54
+ },
55
+ };
56
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/tools/WebFetchTool/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,GAAG,EAAE,IAAI,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AC,WAAW,EAAE,CAAC,YACrC,KAAC,eAAe,IAAC,OAAO,EAAE,OAAO,GAAI,GACjC,CACP,IACG,CACP,CAAC;IACJ,CAAC;CACF,CAAC"}
@@ -0,0 +1,44 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Box, Text } from "ink";
3
+ import { FallbackToolUseRejectedMessage } from "../../components/FallbackToolUseRejectedMessage.js";
4
+ import { getTheme } from "../../theme/index.js";
5
+ /** Extract display-friendly domain from a URL. Handles redirect URLs. */
6
+ function extractDomain(url) {
7
+ try {
8
+ const parsed = new URL(url);
9
+ return parsed.hostname.replace(/^www\./, "");
10
+ }
11
+ catch {
12
+ // Truncate raw URL to 50 chars
13
+ return url.length > 50 ? url.slice(0, 47) + "…" : url;
14
+ }
15
+ }
16
+ export const WebSearchToolRenderers = {
17
+ displayName() {
18
+ return "Search";
19
+ },
20
+ renderInput(input) {
21
+ if (input.query) {
22
+ return `"${input.query}"`;
23
+ }
24
+ return Object.entries(input)
25
+ .map(([key, value]) => `${key}: ${JSON.stringify(value)}`)
26
+ .join(", ");
27
+ },
28
+ renderRejection() {
29
+ return _jsx(FallbackToolUseRejectedMessage, {});
30
+ },
31
+ renderOutput(output) {
32
+ if (!output || typeof output === "string") {
33
+ const text = typeof output === "string" ? output : "(No results)";
34
+ return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { color: getTheme().colors.textMuted, children: text }) }) }));
35
+ }
36
+ const theme = getTheme();
37
+ const results = output.results || [];
38
+ const query = output.query || "";
39
+ const maxResults = 2;
40
+ const displayResults = results.slice(0, maxResults);
41
+ return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { flexDirection: "row", children: [_jsx(Text, { children: "Found " }), _jsxs(Text, { bold: true, children: [results.length, " "] }), _jsx(Text, { children: results.length === 1 ? "result" : "results" }), query && _jsxs(Text, { color: theme.colors.textMuted, children: [" for '", query, "'"] })] }), displayResults.map((result, i) => (_jsxs(Box, { flexDirection: "row", paddingLeft: 4, children: [_jsx(Text, { bold: true, children: result.title.length > 60 ? result.title.slice(0, 57) + "…" : result.title }), _jsxs(Text, { color: theme.colors.textMuted, children: [" (", extractDomain(result.url), ")"] })] }, i))), results.length > maxResults && (_jsx(Box, { flexDirection: "row", paddingLeft: 4, children: _jsxs(Text, { color: theme.colors.textMuted, children: ["+", results.length - maxResults, " more"] }) }))] }));
42
+ },
43
+ };
44
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/tools/WebSearchTool/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAEhC,OAAO,EAAE,8BAA8B,EAAE,MAAM,oDAAoD,CAAC;AACpG,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAmBhD,yEAAyE;AACzE,SAAS,aAAa,CAAC,GAAW;IAChC,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC;QAC5B,OAAO,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;IAC/C,CAAC;IAAC,MAAM,CAAC;QACP,+BAA+B;QAC/B,OAAO,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;IACxD,CAAC;AACH,CAAC;AAED,MAAM,CAAC,MAAM,sBAAsB,GAAiB;IAClD,WAAW;QACT,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,WAAW,CAAC,KAAqB;QAC/B,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC;YAChB,OAAO,IAAI,KAAK,CAAC,KAAK,GAAG,CAAC;QAC5B,CA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KAAC,IAAI,cAAE,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,GAAQ,EACzD,KAAK,IAAI,MAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,uBAAc,KAAK,SAAc,IAC1E,EACL,cAAc,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CACjC,MAAC,GAAG,IAAS,aAAa,EAAC,KAAK,EAAC,WAAW,EAAE,CAAC,aAC7C,KAAC,IAAI,IAAC,IAAI,kBACP,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,GACrE,EACP,MAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,mBAAK,aAAa,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS,KAJlE,CAAC,CAKL,CACP,CAAC,EACD,OAAO,CAAC,MAAM,GAAG,UAAU,IAAI,CAC9B,KAAC,GAAG,IAAC,aAAa,EAAC,KAAK,EAAC,WAAW,EAAE,CAAC,YACrC,MAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,kBAAI,OAAO,CAAC,MAAM,GAAG,UAAU,aAAa,GAC3E,CACP,IACG,CACP,CAAC;IACJ,CAAC;CACF,CAAC"}
@@ -0,0 +1,58 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Box, Text } from "ink";
3
+ import { isAbsolute, relative, resolve } from "path";
4
+ import { FallbackToolUseRejectedMessage } from "../../components/FallbackToolUseRejectedMessage.js";
5
+ import { getTheme } from "../../theme/index.js";
6
+ import { capLine } from "../truncation.js";
7
+ const MAX_LINES = 3;
8
+ const MAX_FILES = 1000;
9
+ const TRUNCATED_MESSAGE = `There are more than ${MAX_FILES} files in the repository. Use the LS tool (passing a specific path), Bash tool, and other tools to explore nested directories. The first ${MAX_FILES} files and directories are included below:\n\n`;
10
+ export const LsToolRenderers = {
11
+ displayName() {
12
+ return "List";
13
+ },
14
+ renderInput({ path }, { verbose }) {
15
+ const absolutePath = path
16
+ ? isAbsolute(path)
17
+ ? path
18
+ : resolve(process.cwd(), path)
19
+ : undefined;
20
+ const relativePath = absolutePath ? relative(process.cwd(), absolutePath) : ".";
21
+ return `path: "${verbose ? path : relativePath}"`;
22
+ },
23
+ renderRejection() {
24
+ return _jsx(FallbackToolUseRejectedMessage, {});
25
+ },
26
+ renderOutput(content, { verbose }) {
27
+ // Legacy shape: string (directory listing)
28
+ if (typeof content === "string") {
29
+ const result = content.replace(TRUNCATED_MESSAGE, "");
30
+ if (!result) {
31
+ return null;
32
+ }
33
+ const lines = result.split("\n").filter((_) => _.trim() !== "");
34
+ return (_jsx(Box, { justifyContent: "space-between", width: "100%", children: _jsx(Box, { children: _jsxs(Box, { flexDirection: "column", paddingLeft: 0, children: [lines.slice(0, verbose ? undefined : MAX_LINES).map((_, i) => (_jsx(Text, { children: verbose ? _ : capLine(_) }, i))), !verbose && lines.length > MAX_LINES && (_jsxs(Text, { color: getTheme().colors.textMuted, children: ["... (+", lines.length - MAX_LINES, " items)"] }))] }) }) }));
35
+ }
36
+ // ARIA shape: { path, entries: ListDirEntry[], truncated, total }
37
+ if (content != null && typeof content === "object" && !Array.isArray(content)) {
38
+ const obj = content;
39
+ const entries = Array.isArray(obj.entries) ? obj.entries : [];
40
+ const total = typeof obj.total === "number" ? obj.total : entries.length;
41
+ if (entries.length === 0) {
42
+ return _jsx(Text, { children: "(empty directory)" });
43
+ }
44
+ const lines = entries.map((e) => {
45
+ const suffix = e.type === "dir" || e.type === "directory" ? "/" : "";
46
+ return `${e.name}${suffix}`;
47
+ });
48
+ return (_jsx(Box, { justifyContent: "space-between", width: "100%", children: _jsx(Box, { children: _jsxs(Box, { flexDirection: "column", paddingLeft: 0, children: [lines.slice(0, verbose ? undefined : MAX_LINES).map((line, i) => (_jsx(Text, { children: verbose ? line : capLine(line) }, i))), !verbose && total > MAX_LINES && (_jsxs(Text, { color: getTheme().colors.textMuted, children: ["... (+", total - MAX_LINES, " items)"] }))] }) }) }));
49
+ }
50
+ // Array shape (e.g., string[] of filenames)
51
+ if (Array.isArray(content)) {
52
+ const lines = content.map(String);
53
+ return (_jsx(Box, { justifyContent: "space-between", width: "100%", children: _jsx(Box, { children: _jsxs(Box, { flexDirection: "column", paddingLeft: 0, children: [lines.slice(0, verbose ? undefined : MAX_LINES).map((line, i) => (_jsx(Text, { children: verbose ? line : capLine(line) }, i))), !verbose && lines.length > MAX_LINES && (_jsxs(Text, { color: getTheme().colors.textMuted, children: ["... (+", lines.length - MAX_LINES, " items)"] }))] }) }) }));
54
+ }
55
+ return null;
56
+ },
57
+ };
58
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/tools/lsTool/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAErD,OAAO,EAAE,8BAA8B,EAAE,MAAM,oDAAoD,CAAC;AACpG,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,MAAM,SAAS,GAAG,CAAC,CAAC;AACpB,MAAM,SAAS,GAAG,IAAI,CAAC;AACvB,MAAM,iBAAiB,GAAG,uBAAuB,SAAS,4IAA4I,SAAS,gDAAgD,CAAC;AAQhQ,MAAM,CAAC,MAAM,eAAe,GAAiB;IAC3C,WAAW;QACT,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,WA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AAO,CAAC,IAAI,CAAC,IAAlC,CAAC,CAAyC,CACtD,CAAC,EACD,CAAC,OAAO,IAAI,KAAK,CAAC,MAAM,GAAG,SAAS,IAAI,CACvC,MAAC,IAAI,IAAC,KAAK,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,SAAS,uBAC/B,KAAK,CAAC,MAAM,GAAG,SAAS,eAC1B,CACR,IACG,GACF,GACF,CACP,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAC"}
@@ -0,0 +1,197 @@
1
+ /**
2
+ * TOOL_RENDERERS — canonical map from tool name → ToolRenderer.
3
+ *
4
+ * Single source of truth. Consumed by ToolExecution.tsx and REPL.tsx.
5
+ * Each renderer implements the ToolRenderer interface (see tool-renderer.ts).
6
+ */
7
+ import { BashToolRenderers } from "./BashTool/index.js";
8
+ import { FileEditToolRenderers } from "./FileEditTool/index.js";
9
+ import { FileReadToolRenderers } from "./FileReadTool/index.js";
10
+ import { FileWriteToolRenderers } from "./FileWriteTool/index.js";
11
+ import { GrepToolRenderers } from "./GrepTool/index.js";
12
+ import { GlobToolRenderers } from "./GlobTool/index.js";
13
+ import { LsToolRenderers } from "./lsTool/index.js";
14
+ import { MCPToolRenderers } from "./MCPTool/index.js";
15
+ import { ThinkToolRenderers } from "./ThinkTool/index.js";
16
+ import { MemoryReadToolRenderers } from "./MemoryReadTool/index.js";
17
+ import { MemoryWriteToolRenderers } from "./MemoryWriteTool/index.js";
18
+ import { AgentToolRenderers } from "./AgentTool/index.js";
19
+ import { NotebookReadToolRenderers } from "./NotebookReadTool/index.js";
20
+ import { NotebookEditToolRenderers } from "./NotebookEditTool/index.js";
21
+ import { ArchitectToolRenderers } from "./ArchitectTool/index.js";
22
+ import { StickerRequestToolRenderers } from "./StickerRequestTool/index.js";
23
+ import { WebFetchToolRenderers } from "./WebFetchTool/index.js";
24
+ import { BrowseToolRenderers } from "./BrowseTool/index.js";
25
+ import { WebSearchToolRenderers } from "./WebSearchTool/index.js";
26
+ import { LearnToolRenderers } from "./LearnTool/index.js";
27
+ import { LearnToolToolRenderers } from "./LearnToolTool/index.js";
28
+ import { LearnSkillToolRenderers } from "./LearnSkillTool/index.js";
29
+ import { CreateToolToolRenderers } from "./CreateToolTool/index.js";
30
+ import { CreateSkillToolRenderers } from "./CreateSkillTool/index.js";
31
+ import { UseSkillToolRenderers } from "./UseSkillTool/index.js";
32
+ import { QuestListToolRenderers } from "./QuestListTool/index.js";
33
+ import { QuestUpdateToolRenderers } from "./QuestUpdateTool/index.js";
34
+ import { AskUserToolRenderers } from "./AskUserTool/index.js";
35
+ import { HatchArionToolRenderers } from "./HatchArionTool/index.js";
36
+ import { RestArionToolRenderers } from "./RestArionTool/index.js";
37
+ import { WakeArionToolRenderers } from "./WakeArionTool/index.js";
38
+ import { RetireArionToolRenderers } from "./RetireArionTool/index.js";
39
+ import { SpawnWorkerToolRenderers } from "./SpawnWorkerTool/index.js";
40
+ import { ForkToolRenderers } from "./ForkTool/index.js";
41
+ import { CheckDelegationToolRenderers } from "./CheckDelegationTool/index.js";
42
+ import { BrowserToolRenderers } from "./BrowserTool/index.js";
43
+ import { ProcessToolRenderers } from "./ProcessTool/index.js";
44
+ import { SearchKnowledgeToolRenderers } from "./SearchKnowledgeTool/index.js";
45
+ import { SelfDiagnoseToolRenderers } from "./SelfDiagnoseTool/index.js";
46
+ // Code search & intelligence tools
47
+ import { RgToolRenderers } from "./RgTool/index.js";
48
+ import { UgToolRenderers } from "./UgTool/index.js";
49
+ import { ProbeToolRenderers } from "./ProbeTool/index.js";
50
+ import { SgToolRenderers } from "./SgTool/index.js";
51
+ import { CbmToolRenderers } from "./CbmTool/index.js";
52
+ import { LspToolRenderers } from "./LspTool/index.js";
53
+ import { FrgToolRenderers } from "./FrgTool/index.js";
54
+ import { FffToolRenderers } from "./FffTool/index.js";
55
+ import { SerenaToolRenderers } from "./SerenaTool/index.js";
56
+ import { QuipReadToolRenderers } from "./QuipReadTool/index.js";
57
+ import { QuipCommentToolRenderers } from "./QuipCommentTool/index.js";
58
+ import { CreateQuipToolRenderers } from "./CreateQuipTool/index.js";
59
+ // Slack tools
60
+ import { SlackReadToolRenderers } from "./SlackReadTool/index.js";
61
+ import { SlackSendToolRenderers } from "./SlackSendTool/index.js";
62
+ import { SlackReactToolRenderers } from "./SlackReactTool/index.js";
63
+ // Outlook tools
64
+ import { OutlookReadToolRenderers } from "./OutlookReadTool/index.js";
65
+ import { OutlookSendToolRenderers } from "./OutlookSendTool/index.js";
66
+ import { OutlookReplyToolRenderers } from "./OutlookReplyTool/index.js";
67
+ // Messaging tools
68
+ import { SendMessageToolRenderers } from "./SendMessageTool/index.js";
69
+ import { CheckMessagesToolRenderers } from "./CheckMessagesTool/index.js";
70
+ import { SearchMessagesToolRenderers } from "./SearchMessagesTool/index.js";
71
+ import { GetThreadToolRenderers } from "./GetThreadTool/index.js";
72
+ import { ListClientsToolRenderers } from "./ListClientsTool/index.js";
73
+ // Delegation/network/deploy/misc tools
74
+ import { DelegateRemoteToolRenderers } from "./DelegateRemoteTool/index.js";
75
+ import { PauseDelegationToolRenderers } from "./PauseDelegationTool/index.js";
76
+ import { ResumeDelegationToolRenderers } from "./ResumeDelegationTool/index.js";
77
+ import { QuestReportToolRenderers } from "./QuestReportTool/index.js";
78
+ import { ManageNetworkToolRenderers } from "./ManageNetworkTool/index.js";
79
+ import { DeployToolRenderers } from "./DeployTool/index.js";
80
+ import { SessionHistoryToolRenderers } from "./SessionHistoryTool/index.js";
81
+ import { RestartToolRenderers } from "./RestartTool/index.js";
82
+ /**
83
+ * Maps tool names (lowercase) to ToolRenderer instances.
84
+ *
85
+ * Each renderer implements: displayName, renderInput, renderOutput, renderRejection?
86
+ * See tool-renderer.ts for the interface definition.
87
+ */
88
+ export const TOOL_RENDERERS = {
89
+ // Shell tools
90
+ bash: BashToolRenderers,
91
+ exec: BashToolRenderers,
92
+ spawn: BashToolRenderers,
93
+ execute_command: BashToolRenderers,
94
+ // File tools
95
+ file_edit: FileEditToolRenderers,
96
+ edit_file: FileEditToolRenderers,
97
+ file_read: FileReadToolRenderers,
98
+ read_file: FileReadToolRenderers,
99
+ file_write: FileWriteToolRenderers,
100
+ write_file: FileWriteToolRenderers,
101
+ // Search tools
102
+ grep: GrepToolRenderers,
103
+ search: SearchKnowledgeToolRenderers,
104
+ glob: GlobToolRenderers,
105
+ web_search: WebSearchToolRenderers,
106
+ rg: RgToolRenderers,
107
+ ug: UgToolRenderers,
108
+ frg: FrgToolRenderers,
109
+ fff: FffToolRenderers,
110
+ probe: ProbeToolRenderers,
111
+ sg: SgToolRenderers,
112
+ // Code intelligence tools
113
+ lsp: LspToolRenderers,
114
+ cbm: CbmToolRenderers,
115
+ serena: SerenaToolRenderers,
116
+ // Filesystem tools
117
+ list_dir: LsToolRenderers,
118
+ ls: LsToolRenderers,
119
+ // Web tools
120
+ web_fetch: WebFetchToolRenderers,
121
+ browse: BrowseToolRenderers,
122
+ // Memory tools (ARIA-specific)
123
+ recall: MemoryReadToolRenderers,
124
+ recall_knowledge: MemoryReadToolRenderers,
125
+ remember: MemoryWriteToolRenderers,
126
+ forget: MemoryWriteToolRenderers,
127
+ reflect: MemoryWriteToolRenderers,
128
+ memory_read: MemoryReadToolRenderers,
129
+ memory_write: MemoryWriteToolRenderers,
130
+ // Meta/learning tools (ARIA-specific)
131
+ learn: LearnToolRenderers,
132
+ learn_tool: LearnToolToolRenderers,
133
+ learn_skill: LearnSkillToolRenderers,
134
+ create_tool: CreateToolToolRenderers,
135
+ create_skill: CreateSkillToolRenderers,
136
+ use_skill: UseSkillToolRenderers,
137
+ ask_user: AskUserToolRenderers,
138
+ // Quest tools (ARIA-specific)
139
+ quest_list: QuestListToolRenderers,
140
+ quest_update: QuestUpdateToolRenderers,
141
+ // Process tools
142
+ kill: BashToolRenderers,
143
+ write_stdin: BashToolRenderers,
144
+ list_processes: LsToolRenderers,
145
+ wait_process: BashToolRenderers,
146
+ spawn_worker: SpawnWorkerToolRenderers,
147
+ fork: ForkToolRenderers,
148
+ // Patch tools
149
+ apply_patch: FileEditToolRenderers,
150
+ // Agent/delegation tools (ARIA-specific)
151
+ delegate_arion: AgentToolRenderers,
152
+ check_delegation: CheckDelegationToolRenderers,
153
+ hatch_arion: HatchArionToolRenderers,
154
+ rest_arion: RestArionToolRenderers,
155
+ wake_arion: WakeArionToolRenderers,
156
+ retire_arion: RetireArionToolRenderers,
157
+ // Other
158
+ mcp: MCPToolRenderers,
159
+ think: ThinkToolRenderers,
160
+ agent: AgentToolRenderers,
161
+ notebook_read: NotebookReadToolRenderers,
162
+ notebook_edit: NotebookEditToolRenderers,
163
+ architect: ArchitectToolRenderers,
164
+ sticker_request: StickerRequestToolRenderers,
165
+ browser: BrowserToolRenderers,
166
+ process: ProcessToolRenderers,
167
+ // Diagnostic tools (ARIA-specific)
168
+ self_diagnose: SelfDiagnoseToolRenderers,
169
+ // Quip tools
170
+ check_quip_documents: QuipReadToolRenderers,
171
+ send_quip_comment: QuipCommentToolRenderers,
172
+ create_quip_document: CreateQuipToolRenderers,
173
+ // Slack tools
174
+ check_slack_messages: SlackReadToolRenderers,
175
+ send_slack_message: SlackSendToolRenderers,
176
+ react_slack_message: SlackReactToolRenderers,
177
+ // Outlook tools
178
+ check_outlook_messages: OutlookReadToolRenderers,
179
+ send_outlook_message: OutlookSendToolRenderers,
180
+ reply_outlook_message: OutlookReplyToolRenderers,
181
+ // Messaging tools
182
+ send_message: SendMessageToolRenderers,
183
+ check_messages: CheckMessagesToolRenderers,
184
+ search_messages: SearchMessagesToolRenderers,
185
+ get_thread: GetThreadToolRenderers,
186
+ list_clients: ListClientsToolRenderers,
187
+ // Delegation/network/deploy tools
188
+ delegate_remote: DelegateRemoteToolRenderers,
189
+ pause_delegation: PauseDelegationToolRenderers,
190
+ resume_delegation: ResumeDelegationToolRenderers,
191
+ quest_report: QuestReportToolRenderers,
192
+ manage_network: ManageNetworkToolRenderers,
193
+ deploy: DeployToolRenderers,
194
+ session_history: SessionHistoryToolRenderers,
195
+ restart: RestartToolRenderers,
196
+ };
197
+ //# sourceMappingURL=registry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../src/ui/tools/registry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D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AgB;IAChB,sBAAsB,EAAE,wBAAwB;IAChD,oBAAoB,EAAE,wBAAwB;IAC9C,qBAAqB,EAAE,yBAAyB;IAChD,kBAAkB;IAClB,YAAY,EAAE,wBAAwB;IACtC,cAAc,EAAE,0BAA0B;IAC1C,eAAe,EAAE,2BAA2B;IAC5C,UAAU,EAAE,sBAAsB;IAClC,YAAY,EAAE,wBAAwB;IACtC,kCAAkC;IAClC,eAAe,EAAE,2BAA2B;IAC5C,gBAAgB,EAAE,4BAA4B;IAC9C,iBAAiB,EAAE,6BAA6B;IAChD,YAAY,EAAE,wBAAwB;IACtC,cAAc,EAAE,0BAA0B;IAC1C,MAAM,EAAE,mBAAmB;IAC3B,eAAe,EAAE,2BAA2B;IAC5C,OAAO,EAAE,oBAAoB;CAC9B,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * ToolRenderer — the single canonical interface for tool UI rendering.
3
+ *
4
+ * Every tool gets one renderer. No adapters, no legacy shims.
5
+ *
6
+ * Generic type params enable compile-time shape checking between
7
+ * executor output → renderer input. When TInput/TOutput are specified,
8
+ * TypeScript will catch field-name drift (e.g. `filePath` vs `file`).
9
+ */
10
+ export {};
11
+ //# sourceMappingURL=tool-renderer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-renderer.js","sourceRoot":"","sources":["../../../src/ui/tools/tool-renderer.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG"}