@aria-cli/cli 1.0.52 → 1.0.54

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 (687) hide show
  1. package/bin/aria.mjs +2 -2
  2. package/package.json +14 -73
  3. package/dist/.tsbuildinfo +0 -1
  4. package/dist/attached-local-control-client.d.ts.map +0 -1
  5. package/dist/attached-local-control-client.js +0 -826
  6. package/dist/attached-local-control-client.js.map +0 -1
  7. package/dist/bootstrap-local-control-client.d.ts.map +0 -1
  8. package/dist/bootstrap-local-control-client.js +0 -2
  9. package/dist/bootstrap-local-control-client.js.map +0 -1
  10. package/dist/capability-aware-method-proxy.js +0 -42
  11. package/dist/capability-aware-method-proxy.js.map +0 -1
  12. package/dist/cli-context.d.ts.map +0 -1
  13. package/dist/cli-context.js +0 -160
  14. package/dist/cli-context.js.map +0 -1
  15. package/dist/commands/arions.d.ts.map +0 -1
  16. package/dist/commands/arions.js +0 -174
  17. package/dist/commands/arions.js.map +0 -1
  18. package/dist/commands/auth.js +0 -123
  19. package/dist/commands/auth.js.map +0 -1
  20. package/dist/commands/daemon.d.ts.map +0 -1
  21. package/dist/commands/daemon.js +0 -245
  22. package/dist/commands/daemon.js.map +0 -1
  23. package/dist/commands/definitions.js +0 -176
  24. package/dist/commands/definitions.js.map +0 -1
  25. package/dist/commands/index.d.ts.map +0 -1
  26. package/dist/commands/index.js +0 -74
  27. package/dist/commands/index.js.map +0 -1
  28. package/dist/commands/login-handler.js +0 -1108
  29. package/dist/commands/login-handler.js.map +0 -1
  30. package/dist/commands/logout-handler.js +0 -92
  31. package/dist/commands/logout-handler.js.map +0 -1
  32. package/dist/commands/memory-handlers.js +0 -89
  33. package/dist/commands/memory-handlers.js.map +0 -1
  34. package/dist/commands/pairing.d.ts.map +0 -1
  35. package/dist/commands/pairing.js +0 -60
  36. package/dist/commands/pairing.js.map +0 -1
  37. package/dist/commands/runtime-cutover-reset-command.d.ts.map +0 -1
  38. package/dist/commands/runtime-cutover-reset-command.js +0 -12
  39. package/dist/commands/runtime-cutover-reset-command.js.map +0 -1
  40. package/dist/commands/runtime-cutover-reset.d.ts.map +0 -1
  41. package/dist/commands/runtime-cutover-reset.js +0 -265
  42. package/dist/commands/runtime-cutover-reset.js.map +0 -1
  43. package/dist/commands/terminal-setup.js +0 -84
  44. package/dist/commands/terminal-setup.js.map +0 -1
  45. package/dist/config/aria-config.js +0 -238
  46. package/dist/config/aria-config.js.map +0 -1
  47. package/dist/config/index.d.ts.map +0 -1
  48. package/dist/config/index.js +0 -3
  49. package/dist/config/index.js.map +0 -1
  50. package/dist/config/loader.d.ts.map +0 -1
  51. package/dist/config/loader.js +0 -97
  52. package/dist/config/loader.js.map +0 -1
  53. package/dist/config.js +0 -142
  54. package/dist/config.js.map +0 -1
  55. package/dist/daemon-info.d.ts.map +0 -1
  56. package/dist/daemon-info.js +0 -10
  57. package/dist/daemon-info.js.map +0 -1
  58. package/dist/ensure-daemon.d.ts.map +0 -1
  59. package/dist/ensure-daemon.js +0 -128
  60. package/dist/ensure-daemon.js.map +0 -1
  61. package/dist/entrypoints/command-mode.d.ts.map +0 -1
  62. package/dist/entrypoints/command-mode.js +0 -5
  63. package/dist/entrypoints/command-mode.js.map +0 -1
  64. package/dist/entrypoints/daemon.d.ts.map +0 -1
  65. package/dist/entrypoints/daemon.js +0 -50
  66. package/dist/entrypoints/daemon.js.map +0 -1
  67. package/dist/entrypoints/headless-stdio.d.ts.map +0 -1
  68. package/dist/entrypoints/headless-stdio.js +0 -25
  69. package/dist/entrypoints/headless-stdio.js.map +0 -1
  70. package/dist/entrypoints/interactive.d.ts.map +0 -1
  71. package/dist/entrypoints/interactive.js +0 -80
  72. package/dist/entrypoints/interactive.js.map +0 -1
  73. package/dist/event-loop-watchdog.js +0 -73
  74. package/dist/event-loop-watchdog.js.map +0 -1
  75. package/dist/headless/auth-orchestrator.d.ts.map +0 -1
  76. package/dist/headless/auth-orchestrator.js +0 -508
  77. package/dist/headless/auth-orchestrator.js.map +0 -1
  78. package/dist/headless/auth-service.js +0 -43
  79. package/dist/headless/auth-service.js.map +0 -1
  80. package/dist/headless/bootstrap-fast-path.d.ts.map +0 -1
  81. package/dist/headless/bootstrap-fast-path.js +0 -112
  82. package/dist/headless/bootstrap-fast-path.js.map +0 -1
  83. package/dist/headless/call-command.d.ts.map +0 -1
  84. package/dist/headless/call-command.js +0 -143
  85. package/dist/headless/call-command.js.map +0 -1
  86. package/dist/headless/daemon-service.d.ts.map +0 -1
  87. package/dist/headless/daemon-service.js +0 -318
  88. package/dist/headless/daemon-service.js.map +0 -1
  89. package/dist/headless/hook-actions.d.ts.map +0 -1
  90. package/dist/headless/hook-actions.js +0 -235
  91. package/dist/headless/hook-actions.js.map +0 -1
  92. package/dist/headless/hook-service.d.ts.map +0 -1
  93. package/dist/headless/hook-service.js +0 -42
  94. package/dist/headless/hook-service.js.map +0 -1
  95. package/dist/headless/kernel-services.d.ts.map +0 -1
  96. package/dist/headless/kernel-services.js +0 -216
  97. package/dist/headless/kernel-services.js.map +0 -1
  98. package/dist/headless/kernel.d.ts.map +0 -1
  99. package/dist/headless/kernel.js +0 -785
  100. package/dist/headless/kernel.js.map +0 -1
  101. package/dist/headless/operations/arion.d.ts.map +0 -1
  102. package/dist/headless/operations/arion.js +0 -119
  103. package/dist/headless/operations/arion.js.map +0 -1
  104. package/dist/headless/operations/auth.d.ts.map +0 -1
  105. package/dist/headless/operations/auth.js +0 -45
  106. package/dist/headless/operations/auth.js.map +0 -1
  107. package/dist/headless/operations/client.d.ts.map +0 -1
  108. package/dist/headless/operations/client.js +0 -31
  109. package/dist/headless/operations/client.js.map +0 -1
  110. package/dist/headless/operations/config.d.ts.map +0 -1
  111. package/dist/headless/operations/config.js +0 -69
  112. package/dist/headless/operations/config.js.map +0 -1
  113. package/dist/headless/operations/daemon.d.ts.map +0 -1
  114. package/dist/headless/operations/daemon.js +0 -47
  115. package/dist/headless/operations/daemon.js.map +0 -1
  116. package/dist/headless/operations/hook.d.ts.map +0 -1
  117. package/dist/headless/operations/hook.js +0 -56
  118. package/dist/headless/operations/hook.js.map +0 -1
  119. package/dist/headless/operations/index.d.ts.map +0 -1
  120. package/dist/headless/operations/index.js +0 -11
  121. package/dist/headless/operations/index.js.map +0 -1
  122. package/dist/headless/operations/memory.d.ts.map +0 -1
  123. package/dist/headless/operations/memory.js +0 -102
  124. package/dist/headless/operations/memory.js.map +0 -1
  125. package/dist/headless/operations/message.d.ts.map +0 -1
  126. package/dist/headless/operations/message.js +0 -279
  127. package/dist/headless/operations/message.js.map +0 -1
  128. package/dist/headless/operations/model.d.ts.map +0 -1
  129. package/dist/headless/operations/model.js +0 -100
  130. package/dist/headless/operations/model.js.map +0 -1
  131. package/dist/headless/operations/peer.d.ts.map +0 -1
  132. package/dist/headless/operations/peer.js +0 -56
  133. package/dist/headless/operations/peer.js.map +0 -1
  134. package/dist/headless/operations/run.d.ts.map +0 -1
  135. package/dist/headless/operations/run.js +0 -24
  136. package/dist/headless/operations/run.js.map +0 -1
  137. package/dist/headless/operations/session.d.ts.map +0 -1
  138. package/dist/headless/operations/session.js +0 -90
  139. package/dist/headless/operations/session.js.map +0 -1
  140. package/dist/headless/operations/system.d.ts.map +0 -1
  141. package/dist/headless/operations/system.js +0 -19
  142. package/dist/headless/operations/system.js.map +0 -1
  143. package/dist/headless/operations/utils.d.ts.map +0 -1
  144. package/dist/headless/operations/utils.js +0 -35
  145. package/dist/headless/operations/utils.js.map +0 -1
  146. package/dist/headless/run-orchestrator.d.ts.map +0 -1
  147. package/dist/headless/run-orchestrator.js +0 -703
  148. package/dist/headless/run-orchestrator.js.map +0 -1
  149. package/dist/headless/stdio-server.d.ts.map +0 -1
  150. package/dist/headless/stdio-server.js +0 -439
  151. package/dist/headless/stdio-server.js.map +0 -1
  152. package/dist/history/SessionHistory.js +0 -8
  153. package/dist/history/SessionHistory.js.map +0 -1
  154. package/dist/history/SessionHistoryClient.js +0 -186
  155. package/dist/history/SessionHistoryClient.js.map +0 -1
  156. package/dist/history/conversation-message.js +0 -112
  157. package/dist/history/conversation-message.js.map +0 -1
  158. package/dist/history/index.d.ts.map +0 -1
  159. package/dist/history/index.js +0 -8
  160. package/dist/history/index.js.map +0 -1
  161. package/dist/history/jsonl-replay.d.ts.map +0 -1
  162. package/dist/history/jsonl-replay.js +0 -154
  163. package/dist/history/jsonl-replay.js.map +0 -1
  164. package/dist/history/repair-tool-pairing.js +0 -84
  165. package/dist/history/repair-tool-pairing.js.map +0 -1
  166. package/dist/history/stall-phase-bridge.js +0 -11
  167. package/dist/history/stall-phase-bridge.js.map +0 -1
  168. package/dist/history/turn-accumulator.d.ts.map +0 -1
  169. package/dist/history/turn-accumulator.js +0 -427
  170. package/dist/history/turn-accumulator.js.map +0 -1
  171. package/dist/index.d.ts.map +0 -1
  172. package/dist/index.js +0 -7
  173. package/dist/index.js.map +0 -1
  174. package/dist/ink-repl.d.ts.map +0 -1
  175. package/dist/ink-repl.js +0 -4183
  176. package/dist/ink-repl.js.map +0 -1
  177. package/dist/local-control-bootstrap.d.ts.map +0 -1
  178. package/dist/local-control-bootstrap.js +0 -26
  179. package/dist/local-control-bootstrap.js.map +0 -1
  180. package/dist/local-control-client.d.ts.map +0 -1
  181. package/dist/local-control-client.js +0 -2
  182. package/dist/local-control-client.js.map +0 -1
  183. package/dist/local-control-error-reporting.js +0 -34
  184. package/dist/local-control-error-reporting.js.map +0 -1
  185. package/dist/local-control-http-client.d.ts.map +0 -1
  186. package/dist/local-control-http-client.js +0 -362
  187. package/dist/local-control-http-client.js.map +0 -1
  188. package/dist/local-control-lazy-wrapper.d.ts.map +0 -1
  189. package/dist/local-control-lazy-wrapper.js +0 -363
  190. package/dist/local-control-lazy-wrapper.js.map +0 -1
  191. package/dist/local-control-manager.d.ts.map +0 -1
  192. package/dist/local-control-manager.js +0 -146
  193. package/dist/local-control-manager.js.map +0 -1
  194. package/dist/main.d.ts.map +0 -1
  195. package/dist/main.js +0 -38
  196. package/dist/main.js.map +0 -1
  197. package/dist/network-security.js +0 -62
  198. package/dist/network-security.js.map +0 -1
  199. package/dist/networking-server.d.ts.map +0 -1
  200. package/dist/networking-server.js +0 -38
  201. package/dist/networking-server.js.map +0 -1
  202. package/dist/peer-identity.d.ts.map +0 -1
  203. package/dist/peer-identity.js +0 -23
  204. package/dist/peer-identity.js.map +0 -1
  205. package/dist/polling-subscription.js +0 -34
  206. package/dist/polling-subscription.js.map +0 -1
  207. package/dist/relaunch.d.ts.map +0 -1
  208. package/dist/relaunch.js +0 -588
  209. package/dist/relaunch.js.map +0 -1
  210. package/dist/release-notes.js +0 -35
  211. package/dist/release-notes.js.map +0 -1
  212. package/dist/repl-cleanup.js +0 -47
  213. package/dist/repl-cleanup.js.map +0 -1
  214. package/dist/runtime/configure-bun-sqlite.d.ts.map +0 -1
  215. package/dist/runtime/configure-bun-sqlite.js +0 -3
  216. package/dist/runtime/configure-bun-sqlite.js.map +0 -1
  217. package/dist/runtime/crash-handlers.js +0 -111
  218. package/dist/runtime/crash-handlers.js.map +0 -1
  219. package/dist/runtime/interactive-invocation.js +0 -39
  220. package/dist/runtime/interactive-invocation.js.map +0 -1
  221. package/dist/runtime/internal-mode.js +0 -14
  222. package/dist/runtime/internal-mode.js.map +0 -1
  223. package/dist/runtime/launch-spec.js +0 -64
  224. package/dist/runtime/launch-spec.js.map +0 -1
  225. package/dist/runtime/owner-lease.js +0 -44
  226. package/dist/runtime/owner-lease.js.map +0 -1
  227. package/dist/runtime/public-mode.js +0 -20
  228. package/dist/runtime/public-mode.js.map +0 -1
  229. package/dist/runtime/run-internal-mode.d.ts.map +0 -1
  230. package/dist/runtime/run-internal-mode.js +0 -18
  231. package/dist/runtime/run-internal-mode.js.map +0 -1
  232. package/dist/runtime/runtime-kind.js +0 -32
  233. package/dist/runtime/runtime-kind.js.map +0 -1
  234. package/dist/runtime/spawn-aria.js +0 -38
  235. package/dist/runtime/spawn-aria.js.map +0 -1
  236. package/dist/selectable-client.d.ts.map +0 -1
  237. package/dist/selectable-client.js +0 -2
  238. package/dist/selectable-client.js.map +0 -1
  239. package/dist/selectable-peer.d.ts.map +0 -1
  240. package/dist/selectable-peer.js +0 -2
  241. package/dist/selectable-peer.js.map +0 -1
  242. package/dist/session.d.ts.map +0 -1
  243. package/dist/session.js +0 -203
  244. package/dist/session.js.map +0 -1
  245. package/dist/slash-commands.js +0 -80
  246. package/dist/slash-commands.js.map +0 -1
  247. package/dist/sounds.js +0 -210
  248. package/dist/sounds.js.map +0 -1
  249. package/dist/ui/App.d.ts.map +0 -1
  250. package/dist/ui/App.js +0 -526
  251. package/dist/ui/App.js.map +0 -1
  252. package/dist/ui/components/AnthropicMethodPicker.js +0 -6
  253. package/dist/ui/components/AnthropicMethodPicker.js.map +0 -1
  254. package/dist/ui/components/ArionPrompt.js +0 -15
  255. package/dist/ui/components/ArionPrompt.js.map +0 -1
  256. package/dist/ui/components/AutocompleteDropdown.js +0 -23
  257. package/dist/ui/components/AutocompleteDropdown.js.map +0 -1
  258. package/dist/ui/components/AutonomySelector.d.ts.map +0 -1
  259. package/dist/ui/components/AutonomySelector.js +0 -55
  260. package/dist/ui/components/AutonomySelector.js.map +0 -1
  261. package/dist/ui/components/Banner.js +0 -98
  262. package/dist/ui/components/Banner.js.map +0 -1
  263. package/dist/ui/components/ConversationHistory.js +0 -175
  264. package/dist/ui/components/ConversationHistory.js.map +0 -1
  265. package/dist/ui/components/CopilotDeviceLoginFlow.js +0 -88
  266. package/dist/ui/components/CopilotDeviceLoginFlow.js.map +0 -1
  267. package/dist/ui/components/CopilotSourcePicker.js +0 -50
  268. package/dist/ui/components/CopilotSourcePicker.js.map +0 -1
  269. package/dist/ui/components/Cost.js +0 -10
  270. package/dist/ui/components/Cost.js.map +0 -1
  271. package/dist/ui/components/CustomSelect/option-map.js +0 -30
  272. package/dist/ui/components/CustomSelect/option-map.js.map +0 -1
  273. package/dist/ui/components/CustomSelect/select-option.js +0 -13
  274. package/dist/ui/components/CustomSelect/select-option.js.map +0 -1
  275. package/dist/ui/components/CustomSelect/select.js +0 -42
  276. package/dist/ui/components/CustomSelect/select.js.map +0 -1
  277. package/dist/ui/components/CustomSelect/use-select-state.js +0 -179
  278. package/dist/ui/components/CustomSelect/use-select-state.js.map +0 -1
  279. package/dist/ui/components/CustomSelect/use-select.js +0 -15
  280. package/dist/ui/components/CustomSelect/use-select.js.map +0 -1
  281. package/dist/ui/components/ErrorDisplay.js +0 -35
  282. package/dist/ui/components/ErrorDisplay.js.map +0 -1
  283. package/dist/ui/components/FallbackToolUseRejectedMessage.js +0 -7
  284. package/dist/ui/components/FallbackToolUseRejectedMessage.js.map +0 -1
  285. package/dist/ui/components/FileEditToolUpdatedMessage.js +0 -57
  286. package/dist/ui/components/FileEditToolUpdatedMessage.js.map +0 -1
  287. package/dist/ui/components/HandoffMarker.js +0 -18
  288. package/dist/ui/components/HandoffMarker.js.map +0 -1
  289. package/dist/ui/components/HighlightedCode.js +0 -21
  290. package/dist/ui/components/HighlightedCode.js.map +0 -1
  291. package/dist/ui/components/InputArea.js +0 -187
  292. package/dist/ui/components/InputArea.js.map +0 -1
  293. package/dist/ui/components/Message.js +0 -25
  294. package/dist/ui/components/Message.js.map +0 -1
  295. package/dist/ui/components/OAuthLoginFlow.js +0 -113
  296. package/dist/ui/components/OAuthLoginFlow.js.map +0 -1
  297. package/dist/ui/components/OutputTruncation.js +0 -35
  298. package/dist/ui/components/OutputTruncation.js.map +0 -1
  299. package/dist/ui/components/PermissionPrompt.js +0 -79
  300. package/dist/ui/components/PermissionPrompt.js.map +0 -1
  301. package/dist/ui/components/PipelineTimingPanel.js +0 -15
  302. package/dist/ui/components/PipelineTimingPanel.js.map +0 -1
  303. package/dist/ui/components/ProviderMethodPicker.js +0 -61
  304. package/dist/ui/components/ProviderMethodPicker.js.map +0 -1
  305. package/dist/ui/components/ProviderPicker.js +0 -63
  306. package/dist/ui/components/ProviderPicker.js.map +0 -1
  307. package/dist/ui/components/RenderItemView.js +0 -71
  308. package/dist/ui/components/RenderItemView.js.map +0 -1
  309. package/dist/ui/components/Spinner.js +0 -46
  310. package/dist/ui/components/Spinner.js.map +0 -1
  311. package/dist/ui/components/StatusBar.js +0 -95
  312. package/dist/ui/components/StatusBar.js.map +0 -1
  313. package/dist/ui/components/StreamingIndicator.js +0 -55
  314. package/dist/ui/components/StreamingIndicator.js.map +0 -1
  315. package/dist/ui/components/StructuredDiff.js +0 -168
  316. package/dist/ui/components/StructuredDiff.js.map +0 -1
  317. package/dist/ui/components/TextInputOverlay.js +0 -43
  318. package/dist/ui/components/TextInputOverlay.js.map +0 -1
  319. package/dist/ui/components/ThinkingBlock.js +0 -82
  320. package/dist/ui/components/ThinkingBlock.js.map +0 -1
  321. package/dist/ui/components/ToolCost.js +0 -17
  322. package/dist/ui/components/ToolCost.js.map +0 -1
  323. package/dist/ui/components/ToolExecution.js +0 -61
  324. package/dist/ui/components/ToolExecution.js.map +0 -1
  325. package/dist/ui/components/ToolHeader.js +0 -51
  326. package/dist/ui/components/ToolHeader.js.map +0 -1
  327. package/dist/ui/components/ToolRenderLayoutContext.js +0 -14
  328. package/dist/ui/components/ToolRenderLayoutContext.js.map +0 -1
  329. package/dist/ui/components/ToolResultWrapper.js +0 -6
  330. package/dist/ui/components/ToolResultWrapper.js.map +0 -1
  331. package/dist/ui/components/ToolUseLoader.js +0 -35
  332. package/dist/ui/components/ToolUseLoader.js.map +0 -1
  333. package/dist/ui/components/TraceWaterfall.js +0 -91
  334. package/dist/ui/components/TraceWaterfall.js.map +0 -1
  335. package/dist/ui/components/index.d.ts.map +0 -1
  336. package/dist/ui/components/index.js +0 -33
  337. package/dist/ui/components/index.js.map +0 -1
  338. package/dist/ui/components/messages/AssistantTextMessage.js +0 -25
  339. package/dist/ui/components/messages/AssistantTextMessage.js.map +0 -1
  340. package/dist/ui/components/messages/UserImageMessage.js +0 -12
  341. package/dist/ui/components/messages/UserImageMessage.js.map +0 -1
  342. package/dist/ui/components/messages/UserTextMessage.js +0 -12
  343. package/dist/ui/components/messages/UserTextMessage.js.map +0 -1
  344. package/dist/ui/components/overlays/ArionSelector.js +0 -68
  345. package/dist/ui/components/overlays/ArionSelector.js.map +0 -1
  346. package/dist/ui/components/overlays/ClientSelector.d.ts.map +0 -1
  347. package/dist/ui/components/overlays/ClientSelector.js +0 -62
  348. package/dist/ui/components/overlays/ClientSelector.js.map +0 -1
  349. package/dist/ui/components/overlays/CommandPalette.js +0 -67
  350. package/dist/ui/components/overlays/CommandPalette.js.map +0 -1
  351. package/dist/ui/components/overlays/DaemonControl.js +0 -87
  352. package/dist/ui/components/overlays/DaemonControl.js.map +0 -1
  353. package/dist/ui/components/overlays/InviteShareOverlay.js +0 -15
  354. package/dist/ui/components/overlays/InviteShareOverlay.js.map +0 -1
  355. package/dist/ui/components/overlays/JoinInviteOverlay.js +0 -32
  356. package/dist/ui/components/overlays/JoinInviteOverlay.js.map +0 -1
  357. package/dist/ui/components/overlays/MemoryBrowser.js +0 -100
  358. package/dist/ui/components/overlays/MemoryBrowser.js.map +0 -1
  359. package/dist/ui/components/overlays/MessageSelector.js +0 -123
  360. package/dist/ui/components/overlays/MessageSelector.js.map +0 -1
  361. package/dist/ui/components/overlays/ModelSelector.js +0 -211
  362. package/dist/ui/components/overlays/ModelSelector.js.map +0 -1
  363. package/dist/ui/components/overlays/PairRequestOverlay.d.ts.map +0 -1
  364. package/dist/ui/components/overlays/PairRequestOverlay.js +0 -42
  365. package/dist/ui/components/overlays/PairRequestOverlay.js.map +0 -1
  366. package/dist/ui/components/overlays/PeerSelector.d.ts.map +0 -1
  367. package/dist/ui/components/overlays/PeerSelector.js +0 -84
  368. package/dist/ui/components/overlays/PeerSelector.js.map +0 -1
  369. package/dist/ui/components/overlays/SessionSelector.d.ts.map +0 -1
  370. package/dist/ui/components/overlays/SessionSelector.js +0 -102
  371. package/dist/ui/components/overlays/SessionSelector.js.map +0 -1
  372. package/dist/ui/components/overlays/SoundSelector.js +0 -86
  373. package/dist/ui/components/overlays/SoundSelector.js.map +0 -1
  374. package/dist/ui/components/overlays/ThemeSelector.js +0 -139
  375. package/dist/ui/components/overlays/ThemeSelector.js.map +0 -1
  376. package/dist/ui/components/overlays/index.d.ts.map +0 -1
  377. package/dist/ui/components/overlays/index.js +0 -15
  378. package/dist/ui/components/overlays/index.js.map +0 -1
  379. package/dist/ui/components/permissions/BashPermissionRequest/BashPermissionRequest.js +0 -53
  380. package/dist/ui/components/permissions/BashPermissionRequest/BashPermissionRequest.js.map +0 -1
  381. package/dist/ui/components/permissions/FallbackPermissionRequest.js +0 -56
  382. package/dist/ui/components/permissions/FallbackPermissionRequest.js.map +0 -1
  383. package/dist/ui/components/permissions/FileEditPermissionRequest/FileEditPermissionRequest.js +0 -76
  384. package/dist/ui/components/permissions/FileEditPermissionRequest/FileEditPermissionRequest.js.map +0 -1
  385. package/dist/ui/components/permissions/FileEditPermissionRequest/FileEditToolDiff.js +0 -18
  386. package/dist/ui/components/permissions/FileEditPermissionRequest/FileEditToolDiff.js.map +0 -1
  387. package/dist/ui/components/permissions/FileWritePermissionRequest/FileWritePermissionRequest.js +0 -64
  388. package/dist/ui/components/permissions/FileWritePermissionRequest/FileWritePermissionRequest.js.map +0 -1
  389. package/dist/ui/components/permissions/FileWritePermissionRequest/FileWriteToolDiff.js +0 -26
  390. package/dist/ui/components/permissions/FileWritePermissionRequest/FileWriteToolDiff.js.map +0 -1
  391. package/dist/ui/components/permissions/FilesystemPermissionRequest/FilesystemPermissionRequest.js +0 -141
  392. package/dist/ui/components/permissions/FilesystemPermissionRequest/FilesystemPermissionRequest.js.map +0 -1
  393. package/dist/ui/components/permissions/PermissionRequest.js +0 -70
  394. package/dist/ui/components/permissions/PermissionRequest.js.map +0 -1
  395. package/dist/ui/components/permissions/PermissionRequestTitle.js +0 -41
  396. package/dist/ui/components/permissions/PermissionRequestTitle.js.map +0 -1
  397. package/dist/ui/components/permissions/hooks.js +0 -10
  398. package/dist/ui/components/permissions/hooks.js.map +0 -1
  399. package/dist/ui/components/permissions/toolUseOptions.js +0 -68
  400. package/dist/ui/components/permissions/toolUseOptions.js.map +0 -1
  401. package/dist/ui/components/permissions/utils.js +0 -10
  402. package/dist/ui/components/permissions/utils.js.map +0 -1
  403. package/dist/ui/components/text-input/Cursor.js +0 -326
  404. package/dist/ui/components/text-input/Cursor.js.map +0 -1
  405. package/dist/ui/components/text-input/TextInput.js +0 -231
  406. package/dist/ui/components/text-input/TextInput.js.map +0 -1
  407. package/dist/ui/components/text-input/imagePaste.js +0 -28
  408. package/dist/ui/components/text-input/imagePaste.js.map +0 -1
  409. package/dist/ui/components/text-input/index.js +0 -6
  410. package/dist/ui/components/text-input/index.js.map +0 -1
  411. package/dist/ui/components/text-input/useDoublePress.js +0 -30
  412. package/dist/ui/components/text-input/useDoublePress.js.map +0 -1
  413. package/dist/ui/components/text-input/useTextInput.js +0 -245
  414. package/dist/ui/components/text-input/useTextInput.js.map +0 -1
  415. package/dist/ui/components/tool-types.js +0 -9
  416. package/dist/ui/components/tool-types.js.map +0 -1
  417. package/dist/ui/constants/figures.js +0 -4
  418. package/dist/ui/constants/figures.js.map +0 -1
  419. package/dist/ui/constants/index.js +0 -3
  420. package/dist/ui/constants/index.js.map +0 -1
  421. package/dist/ui/display-mode.js +0 -93
  422. package/dist/ui/display-mode.js.map +0 -1
  423. package/dist/ui/display-policy.js +0 -19
  424. package/dist/ui/display-policy.js.map +0 -1
  425. package/dist/ui/hooks/index.js +0 -6
  426. package/dist/ui/hooks/index.js.map +0 -1
  427. package/dist/ui/hooks/useCommandAutocomplete.js +0 -93
  428. package/dist/ui/hooks/useCommandAutocomplete.js.map +0 -1
  429. package/dist/ui/hooks/useDoublePress.js +0 -37
  430. package/dist/ui/hooks/useDoublePress.js.map +0 -1
  431. package/dist/ui/hooks/useIndicatorState.d.ts.map +0 -1
  432. package/dist/ui/hooks/useIndicatorState.js +0 -55
  433. package/dist/ui/hooks/useIndicatorState.js.map +0 -1
  434. package/dist/ui/hooks/useInterval.js +0 -23
  435. package/dist/ui/hooks/useInterval.js.map +0 -1
  436. package/dist/ui/hooks/useKeyboardShortcuts.js +0 -127
  437. package/dist/ui/hooks/useKeyboardShortcuts.js.map +0 -1
  438. package/dist/ui/hooks/useTerminalSize.js +0 -55
  439. package/dist/ui/hooks/useTerminalSize.js.map +0 -1
  440. package/dist/ui/hooks/useUnifiedMessages.js +0 -117
  441. package/dist/ui/hooks/useUnifiedMessages.js.map +0 -1
  442. package/dist/ui/indicator-state.js +0 -44
  443. package/dist/ui/indicator-state.js.map +0 -1
  444. package/dist/ui/markdown/highlight.js +0 -44
  445. package/dist/ui/markdown/highlight.js.map +0 -1
  446. package/dist/ui/markdown/index.js +0 -1460
  447. package/dist/ui/markdown/index.js.map +0 -1
  448. package/dist/ui/markdown/tokenizer.js +0 -24
  449. package/dist/ui/markdown/tokenizer.js.map +0 -1
  450. package/dist/ui/render-item.js +0 -5
  451. package/dist/ui/render-item.js.map +0 -1
  452. package/dist/ui/screens/REPL.d.ts.map +0 -1
  453. package/dist/ui/screens/REPL.js +0 -119
  454. package/dist/ui/screens/REPL.js.map +0 -1
  455. package/dist/ui/screens/approval-lifecycle.js +0 -38
  456. package/dist/ui/screens/approval-lifecycle.js.map +0 -1
  457. package/dist/ui/status-line.d.ts.map +0 -1
  458. package/dist/ui/status-line.js +0 -72
  459. package/dist/ui/status-line.js.map +0 -1
  460. package/dist/ui/theme/index.js +0 -51
  461. package/dist/ui/theme/index.js.map +0 -1
  462. package/dist/ui/theme/themes/claude-dark-daltonized.js +0 -51
  463. package/dist/ui/theme/themes/claude-dark-daltonized.js.map +0 -1
  464. package/dist/ui/theme/themes/claude-dark.js +0 -50
  465. package/dist/ui/theme/themes/claude-dark.js.map +0 -1
  466. package/dist/ui/theme/themes/claude-light-daltonized.js +0 -51
  467. package/dist/ui/theme/themes/claude-light-daltonized.js.map +0 -1
  468. package/dist/ui/theme/themes/claude-light.js +0 -50
  469. package/dist/ui/theme/themes/claude-light.js.map +0 -1
  470. package/dist/ui/theme/themes/dark-accessible.js +0 -18
  471. package/dist/ui/theme/themes/dark-accessible.js.map +0 -1
  472. package/dist/ui/theme/themes/dark.js +0 -49
  473. package/dist/ui/theme/themes/dark.js.map +0 -1
  474. package/dist/ui/theme/themes/light-accessible.js +0 -18
  475. package/dist/ui/theme/themes/light-accessible.js.map +0 -1
  476. package/dist/ui/theme/themes/light.js +0 -49
  477. package/dist/ui/theme/themes/light.js.map +0 -1
  478. package/dist/ui/theme/types.js +0 -3
  479. package/dist/ui/theme/types.js.map +0 -1
  480. package/dist/ui/theme.js +0 -142
  481. package/dist/ui/theme.js.map +0 -1
  482. package/dist/ui/to-render-items.js +0 -145
  483. package/dist/ui/to-render-items.js.map +0 -1
  484. package/dist/ui/tools/AgentTool/index.js +0 -30
  485. package/dist/ui/tools/AgentTool/index.js.map +0 -1
  486. package/dist/ui/tools/ArchitectTool/index.js +0 -31
  487. package/dist/ui/tools/ArchitectTool/index.js.map +0 -1
  488. package/dist/ui/tools/AskUserTool/index.js +0 -46
  489. package/dist/ui/tools/AskUserTool/index.js.map +0 -1
  490. package/dist/ui/tools/BashTool/BashToolResultMessage.js +0 -11
  491. package/dist/ui/tools/BashTool/BashToolResultMessage.js.map +0 -1
  492. package/dist/ui/tools/BashTool/OutputLine.js +0 -21
  493. package/dist/ui/tools/BashTool/OutputLine.js.map +0 -1
  494. package/dist/ui/tools/BashTool/index.js +0 -91
  495. package/dist/ui/tools/BashTool/index.js.map +0 -1
  496. package/dist/ui/tools/BrowseTool/index.js +0 -43
  497. package/dist/ui/tools/BrowseTool/index.js.map +0 -1
  498. package/dist/ui/tools/BrowserTool/index.js +0 -47
  499. package/dist/ui/tools/BrowserTool/index.js.map +0 -1
  500. package/dist/ui/tools/CbmTool/index.js +0 -188
  501. package/dist/ui/tools/CbmTool/index.js.map +0 -1
  502. package/dist/ui/tools/CheckDelegationTool/index.js +0 -46
  503. package/dist/ui/tools/CheckDelegationTool/index.js.map +0 -1
  504. package/dist/ui/tools/CheckMessagesTool/index.js +0 -85
  505. package/dist/ui/tools/CheckMessagesTool/index.js.map +0 -1
  506. package/dist/ui/tools/CreateQuipTool/index.js +0 -30
  507. package/dist/ui/tools/CreateQuipTool/index.js.map +0 -1
  508. package/dist/ui/tools/CreateSkillTool/index.js +0 -22
  509. package/dist/ui/tools/CreateSkillTool/index.js.map +0 -1
  510. package/dist/ui/tools/CreateToolTool/index.js +0 -31
  511. package/dist/ui/tools/CreateToolTool/index.js.map +0 -1
  512. package/dist/ui/tools/DelegateRemoteTool/index.js +0 -42
  513. package/dist/ui/tools/DelegateRemoteTool/index.js.map +0 -1
  514. package/dist/ui/tools/DeployTool/index.js +0 -47
  515. package/dist/ui/tools/DeployTool/index.js.map +0 -1
  516. package/dist/ui/tools/FffTool/index.js +0 -103
  517. package/dist/ui/tools/FffTool/index.js.map +0 -1
  518. package/dist/ui/tools/FileEditTool/index.js +0 -67
  519. package/dist/ui/tools/FileEditTool/index.js.map +0 -1
  520. package/dist/ui/tools/FileReadTool/index.js +0 -68
  521. package/dist/ui/tools/FileReadTool/index.js.map +0 -1
  522. package/dist/ui/tools/FileWriteTool/index.js +0 -61
  523. package/dist/ui/tools/FileWriteTool/index.js.map +0 -1
  524. package/dist/ui/tools/ForkTool/index.js +0 -47
  525. package/dist/ui/tools/ForkTool/index.js.map +0 -1
  526. package/dist/ui/tools/FrgTool/index.js +0 -96
  527. package/dist/ui/tools/FrgTool/index.js.map +0 -1
  528. package/dist/ui/tools/GetThreadTool/index.js +0 -39
  529. package/dist/ui/tools/GetThreadTool/index.js.map +0 -1
  530. package/dist/ui/tools/GlobTool/index.js +0 -50
  531. package/dist/ui/tools/GlobTool/index.js.map +0 -1
  532. package/dist/ui/tools/GrepTool/index.js +0 -84
  533. package/dist/ui/tools/GrepTool/index.js.map +0 -1
  534. package/dist/ui/tools/HatchArionTool/index.js +0 -36
  535. package/dist/ui/tools/HatchArionTool/index.js.map +0 -1
  536. package/dist/ui/tools/LearnSkillTool/index.js +0 -22
  537. package/dist/ui/tools/LearnSkillTool/index.js.map +0 -1
  538. package/dist/ui/tools/LearnTool/index.js +0 -43
  539. package/dist/ui/tools/LearnTool/index.js.map +0 -1
  540. package/dist/ui/tools/LearnToolTool/index.js +0 -22
  541. package/dist/ui/tools/LearnToolTool/index.js.map +0 -1
  542. package/dist/ui/tools/ListClientsTool/index.js +0 -39
  543. package/dist/ui/tools/ListClientsTool/index.js.map +0 -1
  544. package/dist/ui/tools/LspTool/index.js +0 -261
  545. package/dist/ui/tools/LspTool/index.js.map +0 -1
  546. package/dist/ui/tools/MCPTool/index.js +0 -33
  547. package/dist/ui/tools/MCPTool/index.js.map +0 -1
  548. package/dist/ui/tools/ManageNetworkTool/index.js +0 -53
  549. package/dist/ui/tools/ManageNetworkTool/index.js.map +0 -1
  550. package/dist/ui/tools/MemoryReadTool/index.js +0 -64
  551. package/dist/ui/tools/MemoryReadTool/index.js.map +0 -1
  552. package/dist/ui/tools/MemoryWriteTool/index.js +0 -20
  553. package/dist/ui/tools/MemoryWriteTool/index.js.map +0 -1
  554. package/dist/ui/tools/NotebookEditTool/index.js +0 -33
  555. package/dist/ui/tools/NotebookEditTool/index.js.map +0 -1
  556. package/dist/ui/tools/NotebookReadTool/index.js +0 -25
  557. package/dist/ui/tools/NotebookReadTool/index.js.map +0 -1
  558. package/dist/ui/tools/OutlookReadTool/index.js +0 -66
  559. package/dist/ui/tools/OutlookReadTool/index.js.map +0 -1
  560. package/dist/ui/tools/OutlookReplyTool/index.js +0 -49
  561. package/dist/ui/tools/OutlookReplyTool/index.js.map +0 -1
  562. package/dist/ui/tools/OutlookSendTool/index.js +0 -49
  563. package/dist/ui/tools/OutlookSendTool/index.js.map +0 -1
  564. package/dist/ui/tools/PauseDelegationTool/index.js +0 -35
  565. package/dist/ui/tools/PauseDelegationTool/index.js.map +0 -1
  566. package/dist/ui/tools/ProbeTool/index.js +0 -121
  567. package/dist/ui/tools/ProbeTool/index.js.map +0 -1
  568. package/dist/ui/tools/ProcessTool/index.js +0 -66
  569. package/dist/ui/tools/ProcessTool/index.js.map +0 -1
  570. package/dist/ui/tools/QuestListTool/index.js +0 -46
  571. package/dist/ui/tools/QuestListTool/index.js.map +0 -1
  572. package/dist/ui/tools/QuestReportTool/index.js +0 -49
  573. package/dist/ui/tools/QuestReportTool/index.js.map +0 -1
  574. package/dist/ui/tools/QuestUpdateTool/index.js +0 -87
  575. package/dist/ui/tools/QuestUpdateTool/index.js.map +0 -1
  576. package/dist/ui/tools/QuipCommentTool/index.js +0 -69
  577. package/dist/ui/tools/QuipCommentTool/index.js.map +0 -1
  578. package/dist/ui/tools/QuipReadTool/index.js +0 -71
  579. package/dist/ui/tools/QuipReadTool/index.js.map +0 -1
  580. package/dist/ui/tools/RestArionTool/index.js +0 -32
  581. package/dist/ui/tools/RestArionTool/index.js.map +0 -1
  582. package/dist/ui/tools/RestartTool/index.js +0 -35
  583. package/dist/ui/tools/RestartTool/index.js.map +0 -1
  584. package/dist/ui/tools/ResumeDelegationTool/index.js +0 -35
  585. package/dist/ui/tools/ResumeDelegationTool/index.js.map +0 -1
  586. package/dist/ui/tools/RetireArionTool/index.js +0 -32
  587. package/dist/ui/tools/RetireArionTool/index.js.map +0 -1
  588. package/dist/ui/tools/RgTool/index.js +0 -73
  589. package/dist/ui/tools/RgTool/index.js.map +0 -1
  590. package/dist/ui/tools/SearchKnowledgeTool/index.js +0 -43
  591. package/dist/ui/tools/SearchKnowledgeTool/index.js.map +0 -1
  592. package/dist/ui/tools/SearchMessagesTool/index.js +0 -43
  593. package/dist/ui/tools/SearchMessagesTool/index.js.map +0 -1
  594. package/dist/ui/tools/SelfDiagnoseTool/index.js +0 -61
  595. package/dist/ui/tools/SelfDiagnoseTool/index.js.map +0 -1
  596. package/dist/ui/tools/SendMessageTool/index.js +0 -45
  597. package/dist/ui/tools/SendMessageTool/index.js.map +0 -1
  598. package/dist/ui/tools/SerenaTool/index.js +0 -124
  599. package/dist/ui/tools/SerenaTool/index.js.map +0 -1
  600. package/dist/ui/tools/SessionHistoryTool/index.js +0 -52
  601. package/dist/ui/tools/SessionHistoryTool/index.js.map +0 -1
  602. package/dist/ui/tools/SgTool/index.js +0 -80
  603. package/dist/ui/tools/SgTool/index.js.map +0 -1
  604. package/dist/ui/tools/SlackReactTool/index.js +0 -41
  605. package/dist/ui/tools/SlackReactTool/index.js.map +0 -1
  606. package/dist/ui/tools/SlackReadTool/index.js +0 -48
  607. package/dist/ui/tools/SlackReadTool/index.js.map +0 -1
  608. package/dist/ui/tools/SlackSendTool/index.js +0 -45
  609. package/dist/ui/tools/SlackSendTool/index.js.map +0 -1
  610. package/dist/ui/tools/SpawnWorkerTool/index.js +0 -33
  611. package/dist/ui/tools/SpawnWorkerTool/index.js.map +0 -1
  612. package/dist/ui/tools/StickerRequestTool/index.js +0 -19
  613. package/dist/ui/tools/StickerRequestTool/index.js.map +0 -1
  614. package/dist/ui/tools/ThinkTool/index.js +0 -17
  615. package/dist/ui/tools/ThinkTool/index.js.map +0 -1
  616. package/dist/ui/tools/UgTool/index.js +0 -108
  617. package/dist/ui/tools/UgTool/index.js.map +0 -1
  618. package/dist/ui/tools/UseSkillTool/index.js +0 -22
  619. package/dist/ui/tools/UseSkillTool/index.js.map +0 -1
  620. package/dist/ui/tools/WakeArionTool/index.js +0 -32
  621. package/dist/ui/tools/WakeArionTool/index.js.map +0 -1
  622. package/dist/ui/tools/WebFetchTool/index.js +0 -56
  623. package/dist/ui/tools/WebFetchTool/index.js.map +0 -1
  624. package/dist/ui/tools/WebSearchTool/index.js +0 -44
  625. package/dist/ui/tools/WebSearchTool/index.js.map +0 -1
  626. package/dist/ui/tools/lsTool/index.js +0 -58
  627. package/dist/ui/tools/lsTool/index.js.map +0 -1
  628. package/dist/ui/tools/registry.js +0 -197
  629. package/dist/ui/tools/registry.js.map +0 -1
  630. package/dist/ui/tools/tool-renderer.js +0 -11
  631. package/dist/ui/tools/tool-renderer.js.map +0 -1
  632. package/dist/ui/tools/truncation.js +0 -35
  633. package/dist/ui/tools/truncation.js.map +0 -1
  634. package/dist/ui/types/anthropic.js +0 -4
  635. package/dist/ui/types/anthropic.js.map +0 -1
  636. package/dist/ui/types/index.js +0 -2
  637. package/dist/ui/types/index.js.map +0 -1
  638. package/dist/ui/types/message.js +0 -3
  639. package/dist/ui/types/message.js.map +0 -1
  640. package/dist/ui/types/tool.js +0 -4
  641. package/dist/ui/types/tool.js.map +0 -1
  642. package/dist/ui/utils/array.js +0 -4
  643. package/dist/ui/utils/array.js.map +0 -1
  644. package/dist/ui/utils/cursor.js +0 -131
  645. package/dist/ui/utils/cursor.js.map +0 -1
  646. package/dist/ui/utils/diff.js +0 -120
  647. package/dist/ui/utils/diff.js.map +0 -1
  648. package/dist/ui/utils/format.js +0 -42
  649. package/dist/ui/utils/format.js.map +0 -1
  650. package/dist/ui/utils/fuzzy.js +0 -59
  651. package/dist/ui/utils/fuzzy.js.map +0 -1
  652. package/dist/ui/utils/index.js +0 -11
  653. package/dist/ui/utils/index.js.map +0 -1
  654. package/dist/ui/utils/keys.js +0 -8
  655. package/dist/ui/utils/keys.js.map +0 -1
  656. package/dist/ui/utils/patch.js +0 -17
  657. package/dist/ui/utils/patch.js.map +0 -1
  658. package/dist/ui/utils/risk.js +0 -114
  659. package/dist/ui/utils/risk.js.map +0 -1
  660. package/dist/ui/utils/terminal-image.js +0 -70
  661. package/dist/ui/utils/terminal-image.js.map +0 -1
  662. package/dist/ui/utils/validation.js +0 -48
  663. package/dist/ui/utils/validation.js.map +0 -1
  664. package/dist/ui/verb-pairs.js +0 -248
  665. package/dist/ui/verb-pairs.js.map +0 -1
  666. package/dist/ui.js +0 -131
  667. package/dist/ui.js.map +0 -1
  668. package/src/entrypoints/command-mode.ts +0 -5
  669. package/src/entrypoints/daemon.ts +0 -54
  670. package/src/entrypoints/headless-stdio.ts +0 -27
  671. package/src/entrypoints/interactive.ts +0 -112
  672. package/src/main.ts +0 -44
  673. package/src/runtime/configure-bun-sqlite.ts +0 -3
  674. package/src/runtime/crash-handlers.ts +0 -128
  675. package/src/runtime/interactive-invocation.test.ts +0 -42
  676. package/src/runtime/interactive-invocation.ts +0 -51
  677. package/src/runtime/internal-mode.test.ts +0 -19
  678. package/src/runtime/internal-mode.ts +0 -24
  679. package/src/runtime/launch-spec.test.ts +0 -26
  680. package/src/runtime/launch-spec.ts +0 -84
  681. package/src/runtime/owner-lease.ts +0 -52
  682. package/src/runtime/public-mode.test.ts +0 -18
  683. package/src/runtime/public-mode.ts +0 -19
  684. package/src/runtime/run-internal-mode.ts +0 -19
  685. package/src/runtime/runtime-kind.test.ts +0 -23
  686. package/src/runtime/runtime-kind.ts +0 -41
  687. package/src/runtime/spawn-aria.ts +0 -62
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/tools/ArchitectTool/index.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAEhC,OAAO,EAAE,8BAA8B,EAAE,MAAM,oDAAoD,CAAC;AACpG,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,MAAM,SAAS,GAAG,CAAC,CAAC;AAEpB,MAAM,CAAC,MAAM,sBAAsB,GAAiB;IAClD,WAAW;QACT,OAAO,WAAW,CAAC;IACrB,CAAC;IACD,WAAW,CAAC,KAA8B;QACxC,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,YAAY,CACV,OAAgC,EAChC,EAAE,OAAO,KAA2B,EAAE,OAAO,EAAE,KAAK,EAAE;QAEtD,IAAI,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;YACxC,OAAO,KAAC,IAAI,+BAAoB,CAAC;QACnC,CAAC;QACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACnC,MAAM,SAAS,GAAG,CAAC,OAAO,IAAI,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC;QACvD,MAAM,WAAW,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;QAC1F,OAAO,CACL,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,GAAG,EAAE,CAAC,aAChC,KAAC,eAAe,IAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAC,UAAU,GAAG,EACzD,SAAS,IAAI,CACZ,MAAC,IAAI,IAAC,KAAK,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,SAAS,uBAAS,KAAK,CAAC,MAAM,GAAG,SAAS,eAAe,CACzF,IACG,CACP,CAAC;IACJ,CAAC;IACD,eAAe;QACb,OAAO,KAAC,8BAA8B,KAAG,CAAC;IAC5C,CAAC;CACF,CAAC"}
@@ -1,46 +0,0 @@
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
- const MAX_QUESTION_LENGTH = 120;
5
- export const AskUserToolRenderers = {
6
- displayName() {
7
- return "Ask User";
8
- },
9
- renderInput(input) {
10
- // Handle both singular question and questions array (items can be strings or objects)
11
- let question;
12
- if (typeof input.question === "string") {
13
- question = input.question;
14
- }
15
- else {
16
- const first = input.questions?.[0];
17
- question =
18
- typeof first === "string"
19
- ? first
20
- : typeof first?.question === "string"
21
- ? first.question
22
- : "asking user...";
23
- }
24
- if (question.length > MAX_QUESTION_LENGTH) {
25
- return question.slice(0, MAX_QUESTION_LENGTH) + "\u2026";
26
- }
27
- return question;
28
- },
29
- renderRejection() {
30
- return _jsx(FallbackToolUseRejectedMessage, {});
31
- },
32
- renderOutput(output, { verbose }) {
33
- // Handle raw string fallback
34
- if (typeof output === "string") {
35
- return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { children: "Received answer" }) }) }));
36
- }
37
- const answers = output?.answers ?? [];
38
- const n = answers.length;
39
- if (!verbose) {
40
- return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsxs(Text, { children: ["Received ", n, " answer", n !== 1 ? "s" : ""] }) }) }));
41
- }
42
- // Verbose: show answer content
43
- return (_jsxs(Box, { flexDirection: "column", children: [_jsx(Box, { children: _jsxs(Text, { children: ["Received ", n, " answer", n !== 1 ? "s" : ""] }) }), answers.map((a, i) => (_jsx(Box, { flexDirection: "row", paddingLeft: 4, children: _jsx(Text, { children: typeof a === "string" ? a : (a?.answer ?? JSON.stringify(a)) }) }, i)))] }));
44
- },
45
- };
46
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/tools/AskUserTool/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAEhC,OAAO,EAAE,8BAA8B,EAAE,MAAM,oDAAoD,CAAC;AAEpG,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAMhC,MAAM,CAAC,MAAM,oBAAoB,GAAiB;IAChD,WAA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;YACb,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,4BACO,CAAC,aAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,IACjC,GACH,GACF,CACP,CAAC;QACJ,CAAC;QAED,+BAA+B;QAC/B,OAAO,CACL,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,aACzB,KAAC,GAAG,cACF,MAAC,IAAI,4BACO,CAAC,aAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,IACjC,GACH,EACL,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACrB,KAAC,GAAG,IAAS,aAAa,EAAC,KAAK,EAAC,WAAW,EAAE,CAAC,YAC7C,KAAC,IAAI,cAAE,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,GAAQ,IADnE,CAAC,CAEL,CACP,CAAC,IACE,CACP,CAAC;IACJ,CAAC;CACF,CAAC"}
@@ -1,11 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // Substitutions: theme → ARIA's, Out type inlined
3
- import { Box, Text } from "ink";
4
- import { OutputLine } from "./OutputLine.js";
5
- import { getTheme } from "../../theme/index.js";
6
- function BashToolResultMessage({ content, verbose }) {
7
- const { stdout, stdoutLines, stderr, stderrLines } = content;
8
- return (_jsxs(Box, { flexDirection: "column", children: [stdout !== "" ? _jsx(OutputLine, { content: stdout, lines: stdoutLines, verbose: verbose }) : null, stderr !== "" ? (_jsx(OutputLine, { content: stderr, lines: stderrLines, verbose: verbose, isError: true })) : null, stdout === "" && stderr === "" ? (_jsx(Text, { color: getTheme().colors.textMuted, children: "(No content)" })) : null] }));
9
- }
10
- export default BashToolResultMessage;
11
- //# sourceMappingURL=BashToolResultMessage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BashToolResultMessage.js","sourceRoot":"","sources":["../../../../src/ui/tools/BashTool/BashToolResultMessage.tsx"],"names":[],"mappings":";AAAA,kDAAkD;AAElD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAchD,SAAS,qBAAqB,CAAC,EAAE,OAAO,EAAE,OAAO,EAAS;IACxD,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC;IAE7D,OAAO,CACL,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,aACxB,MAAM,KAAK,EAAE,CAAC,CAAC,CAAC,KAAC,UAAU,IAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,GAAI,CAAC,CAAC,CAAC,IAAI,EAC5F,MAAM,KAAK,EAAE,CAAC,CAAC,CAAC,CACf,KAAC,UAAU,IAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,SAAG,CAC9E,CAAC,CAAC,CAAC,IAAI,EACP,MAAM,KAAK,EAAE,IAAI,MAAM,KAAK,EAAE,CAAC,CAAC,CAAC,CAChC,KAAC,IAAI,IAAC,KAAK,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,SAAS,6BAAqB,CAC9D,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC;AAED,eAAe,qBAAqB,CAAC"}
@@ -1,21 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- // Substitutions: theme → ARIA's, chalk → inline dim, MAX_RENDERED_LINES inlined
3
- import { Box, Text } from "ink";
4
- import { getTheme } from "../../theme/index.js";
5
- import chalk from "chalk";
6
- import { capLine } from "../truncation.js";
7
- const MAX_RENDERED_LINES = 3;
8
- function renderTruncatedContent(content, totalLines) {
9
- const allLines = content.split("\n");
10
- if (allLines.length <= MAX_RENDERED_LINES) {
11
- return allLines.map(capLine).join("\n");
12
- }
13
- return [
14
- ...allLines.slice(0, MAX_RENDERED_LINES).map(capLine),
15
- chalk.grey(`\u2026 +${totalLines - MAX_RENDERED_LINES} lines`),
16
- ].join("\n");
17
- }
18
- export function OutputLine({ content, lines, verbose, isError, }) {
19
- return (_jsx(Box, { justifyContent: "space-between", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Box, { flexDirection: "column", children: _jsx(Text, { color: isError ? getTheme().colors.error : undefined, children: verbose ? content.trim() : renderTruncatedContent(content.trim(), lines) }) }) }) }));
20
- }
21
- //# sourceMappingURL=OutputLine.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OutputLine.js","sourceRoot":"","sources":["../../../../src/ui/tools/BashTool/OutputLine.tsx"],"names":[],"mappings":";AAAA,gFAAgF;AAEhF,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAEhC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,MAAM,kBAAkB,GAAG,CAAC,CAAC;AAE7B,SAAS,sBAAsB,CAAC,OAAe,EAAE,UAAkB;IACjE,MAAM,QAAQ,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACrC,IAAI,QAAQ,CAAC,MAAM,IAAI,kBAAkB,EAAE,CAAC;QAC1C,OAAO,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1C,CAAC;IACD,OAAO;QACL,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,kBAAkB,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC;QACrD,KAAK,CAAC,IAAI,CAAC,WAAW,UAAU,GAAG,kBAAkB,QAAQ,CAAC;KAC/D,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,EACzB,OAAO,EACP,KAAK,EACL,OAAO,EACP,OAAO,GAMR;IACC,OAAO,CACL,KAAC,GAAG,IAAC,cAAc,EAAC,eAAe,EAAC,KAAK,EAAC,MAAM,YAC9C,KAAC,GAAG,IAAC,aAAa,EAAC,KAAK,YACtB,KAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,YACzB,KAAC,IAAI,IAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,YACvD,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,sBAAsB,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,KAAK,CAAC,GACpE,GACH,GACF,GACF,CACP,CAAC;AACJ,CAAC"}
@@ -1,91 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Text } from "ink";
3
- import { FallbackToolUseRejectedMessage } from "../../components/FallbackToolUseRejectedMessage.js";
4
- import BashToolResultMessage from "./BashToolResultMessage.js";
5
- export const BashToolRenderers = {
6
- displayName() {
7
- return "Bash";
8
- },
9
- renderInput(input) {
10
- // bash / execute_command: { command }
11
- if (typeof input.command === "string") {
12
- const command = input.command;
13
- if (command.includes("\"$(cat <<'EOF'")) {
14
- const match = command.match(/^(.*?)"?\$\(cat <<'EOF'\n([\s\S]*?)\n\s*EOF\n\s*\)"(.*)$/);
15
- if (match && match[1] && match[2]) {
16
- return `${match[1].trim()} "${match[2].trim()}"${(match[3] || "").trim()}`;
17
- }
18
- }
19
- return command;
20
- }
21
- // exec / spawn: { program, args? }
22
- if (typeof input.program === "string") {
23
- const args = Array.isArray(input.args) ? " " + input.args.join(" ") : "";
24
- return `${input.program}${args}`;
25
- }
26
- // write_stdin: { pid, input } — check before kill since both have pid
27
- if (typeof input.input === "string") {
28
- const preview = input.input.length > 40 ? input.input.slice(0, 40) + "…" : input.input;
29
- return `stdin → ${input.pid ?? ""} "${preview}"`;
30
- }
31
- // kill: { pid, signal? } — has signal field
32
- if (input.signal != null) {
33
- return `kill ${input.signal} ${input.pid}`;
34
- }
35
- // wait_process: { pid, timeoutMs? }
36
- if (typeof input.timeoutMs === "number" || typeof input.timeout === "number") {
37
- return `wait ${input.pid}`;
38
- }
39
- // Generic pid fallback (kill without explicit signal, or other pid tools)
40
- if (input.pid != null && Object.keys(input).length <= 2) {
41
- return `pid ${input.pid}`;
42
- }
43
- // list_processes: no meaningful params
44
- return "";
45
- },
46
- renderRejection() {
47
- return _jsx(FallbackToolUseRejectedMessage, {});
48
- },
49
- renderOutput(content, { verbose }) {
50
- // Handle null/undefined
51
- if (content == null) {
52
- return _jsx(Text, { children: "(No content)" });
53
- }
54
- // Handle string output
55
- if (typeof content === "string") {
56
- return _jsx(Text, { children: content || "(No content)" });
57
- }
58
- // Must be an object at this point
59
- const obj = content;
60
- // BashOutput shape: { stdout, stderr, ... } — the standard bash result
61
- if (typeof obj.stdout === "string" || typeof obj.stderr === "string") {
62
- const normalized = {
63
- stdout: obj.stdout ?? "",
64
- stdoutLines: typeof obj.stdoutLines === "number"
65
- ? obj.stdoutLines
66
- : (obj.stdout ?? "").split("\n").length,
67
- stderr: obj.stderr ?? "",
68
- stderrLines: typeof obj.stderrLines === "number"
69
- ? obj.stderrLines
70
- : (obj.stderr ?? "").split("\n").length,
71
- };
72
- return _jsx(BashToolResultMessage, { content: normalized, verbose: verbose });
73
- }
74
- // Non-BashOutput shapes from spawn/kill/write_stdin/wait_process:
75
- // spawn: { pid }, kill: { signal, killed }, write_stdin: { written },
76
- // wait_process: { exitCode, output }, list_processes: { sessions }
77
- // Render a compact summary.
78
- if (obj.pid != null) {
79
- return _jsxs(Text, { children: ["pid: ", String(obj.pid)] });
80
- }
81
- if (obj.signal != null || obj.killed != null) {
82
- return (_jsxs(Text, { children: [obj.killed ? "Killed" : "Signal sent", obj.signal ? ` (${String(obj.signal)})` : ""] }));
83
- }
84
- if (obj.exitCode != null) {
85
- return _jsxs(Text, { children: ["Exit code: ", String(obj.exitCode)] });
86
- }
87
- // Fallback: JSON
88
- return _jsx(Text, { children: JSON.stringify(content) });
89
- },
90
- };
91
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/tools/BashTool/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAE3B,OAAO,EAAE,8BAA8B,EAAE,MAAM,oDAAoD,CAAC;AACpG,OAAO,qBAAqB,MAAM,4BAA4B,CAAC;AAE/D,MAAM,CAAC,MAAM,iBAAiB,GAAiB;IAC7C,WAAW;QACT,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,WAAW,CAAC,KAA8B;QACxC,sCAAsC;QACtC,IAAI,OAAO,KAAK,CAAC,OAAO,KAAK,QAAQ,EAAE,CAAC;YACtC,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;YAC9B,IAAI,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,CAAC;gBACxC,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,0DAA0D,CAAC,CAAC;gBACxF,IAAI,KAAK,IAAI,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;oBAClC,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE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,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM;aACxD,CAAC;YACF,OAAO,KAAC,qBAAqB,IAAC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAI,CAAC;QAC1E,CAAC;QAED,kEAAkE;QAClE,sEAAsE;QACtE,mEAAmE;QACnE,4BAA4B;QAC5B,IAAI,GAAG,CAAC,GAAG,IAAI,IAAI,EAAE,CAAC;YACpB,OAAO,MAAC,IAAI,wBAAO,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,IAAQ,CAAC;QAC7C,CAAC;QACD,IAAI,GAAG,CAAC,MAAM,IAAI,IAAI,IAAI,GAAG,CAAC,MAAM,IAAI,IAAI,EAAE,CAAC;YAC7C,OAAO,CACL,MAAC,IAAI,eACF,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,aAAa,EACrC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,IACxC,CACR,CAAC;QACJ,CAAC;QACD,IAAI,GAAG,CAAC,QAAQ,IAAI,IAAI,EAAE,CAAC;YACzB,OAAO,MAAC,IAAI,8BAAa,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAQ,CAAC;QACxD,CAAC;QAED,iBAAiB;QACjB,OAAO,KAAC,IAAI,cAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAQ,CAAC;IAChD,CAAC;CACF,CAAC"}
@@ -1,43 +0,0 @@
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 BrowsePreview({ preview }) {
11
- const { contentWidth } = useToolRenderLayout();
12
- const previewWidth = Math.max(contentWidth - 4, 1);
13
- return (_jsx(Text, { color: getTheme().colors.textMuted, dimColor: true, children: applyMarkdown(preview, { width: previewWidth }) }));
14
- }
15
- export const BrowseToolRenderers = {
16
- displayName() {
17
- return "Browse";
18
- },
19
- renderInput(input) {
20
- if (input.url) {
21
- return truncateUrl(String(input.url));
22
- }
23
- return Object.entries(input)
24
- .map(([key, value]) => `${key}: ${JSON.stringify(value)}`)
25
- .join(", ");
26
- },
27
- renderRejection() {
28
- return _jsx(FallbackToolUseRejectedMessage, {});
29
- },
30
- renderOutput(output) {
31
- if (!output || typeof output === "string") {
32
- const text = typeof output === "string" ? output : "(No content)";
33
- return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { color: getTheme().colors.textMuted, children: text }) }) }));
34
- }
35
- const theme = getTheme();
36
- const url = output.finalUrl || output.url || "";
37
- const title = output.title || "";
38
- const preview = output.content ? output.content.slice(0, 200).split("\n")[0] : "";
39
- const cacheStr = output.fromCache ? " (cached)" : "";
40
- return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { flexDirection: "row", children: [title ? (_jsx(Text, { bold: true, children: title })) : (_jsx(Text, { color: theme.colors.textMuted, children: truncateUrl(url, 60) })), cacheStr && _jsx(Text, { color: theme.colors.textMuted, children: cacheStr }), output.truncated && _jsx(Text, { color: theme.colors.warning, children: " [truncated]" })] }), title && url && (_jsx(Box, { flexDirection: "row", paddingLeft: 4, children: _jsx(Text, { color: theme.colors.textMuted, children: truncateUrl(url, 60) }) })), preview && (_jsx(Box, { flexDirection: "row", paddingLeft: 4, children: _jsx(BrowsePreview, { preview: preview }) }))] }));
41
- },
42
- };
43
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":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GAAG,IAAC,aAAa,EAAC,QAAQ,aACzB,MAAC,GAAG,IAAC,aAAa,EAAC,KAAK,aACrB,KAAK,CAAC,CAAC,CAAC,CACP,KAAC,IAAI,IAAC,IAAI,kBAAE,KAAK,GAAQ,CAC1B,CAAC,CAAC,CAAC,CACF,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,YAAG,WAAW,CAAC,GAAG,EAAE,EAAE,CAAC,GAAQ,CACnE,EACA,QAAQ,IAAI,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,YAAG,QAAQ,GAAQ,EAClE,MAAM,CAAC,SAAS,IAAI,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,6BAAqB,IACvE,EACL,KAAK,IAAI,GAAG,IAAI,CACf,KAAC,GAAG,IAAC,aAAa,EAAC,KAAK,EAAC,WAAW,EAAE,CAAC,YACrC,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,YAAG,WAAW,CAAC,GAAG,EAAE,EAAE,CAAC,GAAQ,GAC9D,CACP,EACA,OAAO,IAAI,CACV,KAAC,GAAG,IAAC,aAAa,EAAC,KAAK,EAAC,WAAW,EAAE,CAAC,YACrC,KAAC,aAAa,IAAC,OAAO,EAAE,OAAO,GAAI,GAC/B,CACP,IACG,CACP,CAAC;IACJ,CAAC;CACF,CAAC"}
@@ -1,47 +0,0 @@
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
- import { safeFallbackText } from "../truncation.js";
6
- function truncateUrl(url, maxLen = 60) {
7
- return url.length > maxLen ? url.slice(0, maxLen - 1) + "\u2026" : url;
8
- }
9
- function formatAction(input) {
10
- const action = input.action || "unknown";
11
- switch (action) {
12
- case "launch":
13
- return input.url ? `launch and navigate to ${truncateUrl(String(input.url))}` : "launch";
14
- case "navigate":
15
- return input.url ? `navigate to ${truncateUrl(String(input.url))}` : "navigate";
16
- case "click":
17
- return input.selector ? `click ${input.selector}` : "click";
18
- case "type":
19
- return input.selector ? `type into ${input.selector}` : "type";
20
- default:
21
- return action;
22
- }
23
- }
24
- export const BrowserToolRenderers = {
25
- displayName() {
26
- return "Browser";
27
- },
28
- renderInput(input, _opts) {
29
- return formatAction(input);
30
- },
31
- renderRejection() {
32
- return _jsx(FallbackToolUseRejectedMessage, {});
33
- },
34
- renderOutput(output, _opts) {
35
- const theme = getTheme();
36
- if (!output) {
37
- return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { color: theme.colors.textMuted, children: "(No content)" }) }) }));
38
- }
39
- if (typeof output === "string") {
40
- return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { children: safeFallbackText(output) }) }) }));
41
- }
42
- const title = output.title || "";
43
- const url = output.url || "";
44
- return (_jsxs(Box, { flexDirection: "column", children: [_jsx(Box, { flexDirection: "row", children: title ? (_jsx(Text, { bold: true, children: title })) : url ? (_jsx(Text, { color: theme.colors.textMuted, children: truncateUrl(url) })) : (_jsx(Text, { color: theme.colors.success, children: "Done" })) }), title && url && (_jsx(Box, { flexDirection: "row", paddingLeft: 4, children: _jsx(Text, { color: theme.colors.textMuted, children: truncateUrl(url) }) })), output.error && (_jsx(Box, { flexDirection: "row", paddingLeft: 4, children: _jsx(Text, { color: theme.colors.error, children: output.error }) }))] }));
45
- },
46
- };
47
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/tools/BrowserTool/index.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CA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G,WAAW,CAAC,GAAG,CAAC,GAAQ,CAC/D,CAAC,CAAC,CAAC,CACF,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,qBAAa,CAC/C,GACG,EACL,KAAK,IAAI,GAAG,IAAI,CACf,KAAC,GAAG,IAAC,aAAa,EAAC,KAAK,EAAC,WAAW,EAAE,CAAC,YACrC,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,YAAG,WAAW,CAAC,GAAG,CAAC,GAAQ,GAC1D,CACP,EACA,MAAM,CAAC,KAAK,IAAI,CACf,KAAC,GAAG,IAAC,aAAa,EAAC,KAAK,EAAC,WAAW,EAAE,CAAC,YACrC,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,YAAG,MAAM,CAAC,KAAK,GAAQ,GAClD,CACP,IACG,CACP,CAAC;IACJ,CAAC;CACF,CAAC"}
@@ -1,188 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } 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
- function isContextOutput(o) {
6
- if (!o || typeof o !== "object")
7
- return false;
8
- const obj = o;
9
- return "definition" in obj || "callers" in obj || "callees" in obj;
10
- }
11
- /** Get icon/prefix for a symbol label (Function, Class, Method, etc.) */
12
- function getLabelIcon(label) {
13
- switch (label?.toLowerCase()) {
14
- case "function":
15
- return "𝑓 ";
16
- case "class":
17
- return "𝐶 ";
18
- case "method":
19
- return "𝑚 ";
20
- case "interface":
21
- return "𝐼 ";
22
- case "enum":
23
- return "𝐸 ";
24
- case "type":
25
- return "𝑇 ";
26
- case "module":
27
- return "📦 ";
28
- case "file":
29
- return "📄 ";
30
- default:
31
- return "• ";
32
- }
33
- }
34
- /** Format a single symbol result */
35
- function renderSymbol(result, index, theme) {
36
- const icon = getLabelIcon(result.label);
37
- const shortPath = result.file_path
38
- ? result.file_path.length > 40
39
- ? "…" + result.file_path.slice(-37)
40
- : result.file_path
41
- : "";
42
- return (_jsxs(Box, { flexDirection: "row", paddingLeft: 4, children: [_jsx(Text, { children: icon }), _jsx(Text, { bold: true, children: result.name }), shortPath && _jsxs(Text, { color: theme.colors.textMuted, children: [" (", shortPath, ")"] })] }, index));
43
- }
44
- /** Render a call chain node (caller/callee) */
45
- function renderChainNode(node, arrow, index, theme) {
46
- return (_jsxs(Box, { flexDirection: "row", paddingLeft: 4, children: [_jsxs(Text, { color: theme.colors.textMuted, children: [arrow, " "] }), _jsx(Text, { children: node.name }), node.file && _jsxs(Text, { color: theme.colors.textMuted, children: [" (", node.file, ")"] })] }, index));
47
- }
48
- /** Check if output matches search shape */
49
- function isSearchOutput(output) {
50
- if (!output || typeof output !== "object")
51
- return false;
52
- const o = output;
53
- return Array.isArray(o.results);
54
- }
55
- /** Check if output matches trace/call-chain shape */
56
- function isCallChainOutput(output) {
57
- if (!output || typeof output !== "object")
58
- return false;
59
- const o = output;
60
- return Array.isArray(o.inbound) || Array.isArray(o.outbound) || !!o.node;
61
- }
62
- /** Check if output matches impact shape */
63
- function isImpactOutput(output) {
64
- if (!output || typeof output !== "object")
65
- return false;
66
- const o = output;
67
- return Array.isArray(o.affected);
68
- }
69
- /** Check if output matches architecture shape */
70
- function isArchitectureOutput(output) {
71
- if (!output || typeof output !== "object")
72
- return false;
73
- const o = output;
74
- return Array.isArray(o.components);
75
- }
76
- /** Check if output matches status shape */
77
- function isStatusOutput(output) {
78
- if (!output || typeof output !== "object")
79
- return false;
80
- const o = output;
81
- return typeof o.status === "string";
82
- }
83
- export const CbmToolRenderers = {
84
- displayName() {
85
- return "Code Graph";
86
- },
87
- renderInput(input) {
88
- const action = input.action || "unknown";
89
- const keyParams = [];
90
- if (input.name) {
91
- keyParams.push(`"${input.name}"`);
92
- }
93
- if (input.file) {
94
- keyParams.push(`file: ${input.file}`);
95
- }
96
- if (input.path) {
97
- keyParams.push(`path: ${input.path}`);
98
- }
99
- if (input.project) {
100
- keyParams.push(`project: ${input.project}`);
101
- }
102
- if (input.query) {
103
- keyParams.push(`query: "${input.query}"`);
104
- }
105
- if (input.depth) {
106
- keyParams.push(`depth: ${input.depth}`);
107
- }
108
- if (input.direction) {
109
- keyParams.push(`dir: ${input.direction}`);
110
- }
111
- const params = keyParams.length > 0 ? ` ${keyParams.join(" ")}` : "";
112
- return `${action}${params}`;
113
- },
114
- renderRejection() {
115
- return _jsx(FallbackToolUseRejectedMessage, {});
116
- },
117
- renderOutput(output, opts, input) {
118
- const theme = getTheme();
119
- const action = input?.action || "query";
120
- // Handle null/undefined
121
- if (!output) {
122
- return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { color: theme.colors.textMuted, children: "(No results)" }) }) }));
123
- }
124
- // Handle string output (raw or plain text)
125
- if (typeof output === "string") {
126
- const text = output.length > 100 ? output.slice(0, 97) + "…" : output;
127
- return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsxs(Text, { color: theme.colors.textMuted, children: [action, ": ", text] }) }) }));
128
- }
129
- // Handle { raw: string }
130
- if ("raw" in output && typeof output.raw === "string") {
131
- const text = output.raw.length > 100 ? output.raw.slice(0, 97) + "…" : output.raw;
132
- return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsxs(Text, { color: theme.colors.textMuted, children: [action, ": ", text] }) }) }));
133
- }
134
- // Handle search results
135
- if (isSearchOutput(output)) {
136
- const results = output.results || [];
137
- const total = output.total ?? results.length;
138
- const maxResults = 3;
139
- const displayResults = results.slice(0, maxResults);
140
- return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { flexDirection: "row", children: [_jsx(Text, { bold: true, children: total }), _jsxs(Text, { children: [" ", total === 1 ? "symbol" : "symbols", " found"] })] }), displayResults.map((result, i) => renderSymbol(result, i, theme)), results.length > maxResults && (_jsx(Box, { flexDirection: "row", paddingLeft: 4, children: _jsxs(Text, { color: theme.colors.textMuted, children: ["+", results.length - maxResults, " more"] }) }))] }));
141
- }
142
- // Handle call chain / trace results
143
- if (isCallChainOutput(output)) {
144
- const inbound = output.inbound || [];
145
- const outbound = output.outbound || [];
146
- const maxChain = 3;
147
- const displayInbound = inbound.slice(0, maxChain);
148
- const displayOutbound = outbound.slice(0, maxChain);
149
- return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { flexDirection: "row", children: [_jsx(Text, { children: "Call chain: " }), _jsx(Text, { bold: true, children: inbound.length }), _jsx(Text, { children: " inbound, " }), _jsx(Text, { bold: true, children: outbound.length }), _jsx(Text, { children: " outbound" })] }), displayInbound.length > 0 && (_jsxs(_Fragment, { children: [_jsx(Box, { flexDirection: "row", paddingLeft: 2, children: _jsx(Text, { color: theme.colors.textMuted, children: "Callers:" }) }), displayInbound.map((node, i) => renderChainNode(node, "←", i, theme)), inbound.length > maxChain && (_jsx(Box, { flexDirection: "row", paddingLeft: 4, children: _jsxs(Text, { color: theme.colors.textMuted, children: ["+", inbound.length - maxChain, " more"] }) }))] })), displayOutbound.length > 0 && (_jsxs(_Fragment, { children: [_jsx(Box, { flexDirection: "row", paddingLeft: 2, children: _jsx(Text, { color: theme.colors.textMuted, children: "Callees:" }) }), displayOutbound.map((node, i) => renderChainNode(node, "→", i, theme)), outbound.length > maxChain && (_jsx(Box, { flexDirection: "row", paddingLeft: 4, children: _jsxs(Text, { color: theme.colors.textMuted, children: ["+", outbound.length - maxChain, " more"] }) }))] }))] }));
150
- }
151
- // Handle impact analysis results
152
- if (isImpactOutput(output)) {
153
- const affected = output.affected || [];
154
- const maxResults = 3;
155
- const displayAffected = affected.slice(0, maxResults);
156
- return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { flexDirection: "row", children: [_jsx(Text, { bold: true, children: affected.length }), _jsxs(Text, { children: [" ", affected.length === 1 ? "symbol" : "symbols", " affected"] }), output.depth && (_jsxs(_Fragment, { children: [_jsx(Text, { color: theme.colors.textMuted, children: " (depth: " }), _jsx(Text, { color: theme.colors.textMuted, children: output.depth }), _jsx(Text, { color: theme.colors.textMuted, children: ")" })] }))] }), displayAffected.map((item, i) => (_jsxs(Box, { flexDirection: "row", paddingLeft: 4, children: [_jsxs(Text, { children: ["\u2022 ", item.name] }), item.file && _jsxs(Text, { color: theme.colors.textMuted, children: [" (", item.file, ")"] })] }, i))), affected.length > maxResults && (_jsx(Box, { flexDirection: "row", paddingLeft: 4, children: _jsxs(Text, { color: theme.colors.textMuted, children: ["+", affected.length - maxResults, " more"] }) }))] }));
157
- }
158
- // Handle architecture overview
159
- if (isArchitectureOutput(output)) {
160
- const components = output.components || [];
161
- return (_jsx(Box, { flexDirection: "column", children: _jsxs(Box, { flexDirection: "row", children: [_jsx(Text, { children: "Architecture overview" }), components.length > 0 && (_jsxs(_Fragment, { children: [_jsx(Text, { color: theme.colors.textMuted, children: " (" }), _jsx(Text, { color: theme.colors.textMuted, children: components.length }), _jsx(Text, { color: theme.colors.textMuted, children: " components)" })] }))] }) }));
162
- }
163
- // Handle status output
164
- if (isStatusOutput(output)) {
165
- const hasIndex = output.status?.toLowerCase().includes("index");
166
- if (hasIndex &&
167
- typeof output.node_count === "number" &&
168
- typeof output.edge_count === "number") {
169
- return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsxs(Box, { flexDirection: "row", children: [_jsx(Text, { color: theme.colors.success, children: "Indexed: " }), _jsx(Text, { bold: true, children: output.node_count }), _jsx(Text, { children: " nodes, " }), _jsx(Text, { bold: true, children: output.edge_count }), _jsx(Text, { children: " edges" })] }) }));
170
- }
171
- else {
172
- return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { color: theme.colors.warning, children: "Not indexed" }) }) }));
173
- }
174
- }
175
- // Context output (definition + callers + callees)
176
- if (isContextOutput(output)) {
177
- const hasDefinition = !!output.definition;
178
- const hasCallers = Array.isArray(output.callers) && output.callers.length > 0;
179
- const hasCallees = Array.isArray(output.callees) && output.callees.length > 0;
180
- return (_jsxs(Box, { flexDirection: "column", children: [_jsx(Box, { flexDirection: "row", children: _jsx(Text, { children: "Context 360\u00B0" }) }), hasDefinition && output.definition && (_jsxs(Box, { flexDirection: "row", paddingLeft: 4, children: [_jsx(Text, { color: theme.colors.info, children: "\uD83D\uDCCD " }), _jsx(Text, { children: output.definition.name || "definition" })] })), hasCallers && output.callers && (_jsxs(Box, { flexDirection: "row", paddingLeft: 4, children: [_jsx(Text, { color: theme.colors.textMuted, children: "\u2190 " }), _jsxs(Text, { children: [output.callers.length, " callers"] })] })), hasCallees && output.callees && (_jsxs(Box, { flexDirection: "row", paddingLeft: 4, children: [_jsx(Text, { color: theme.colors.textMuted, children: "\u2192 " }), _jsxs(Text, { children: [output.callees.length, " callees"] })] }))] }));
181
- }
182
- // Fallback for unknown/opaque cbm JSON
183
- const jsonStr = JSON.stringify(output);
184
- const preview = jsonStr.length > 100 ? jsonStr.slice(0, 97) + "…" : jsonStr;
185
- return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsxs(Text, { color: theme.colors.textMuted, children: [action, ": ", preview] }) }) }));
186
- },
187
- };
188
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/tools/CbmTool/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;AAmEhD,SAAS,eAAe,CAAC,CAAU;IACjC,IAAI,CAAC,CAA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C,MAAM,CAAC,SAAS,aAChC,MAAM,QAAI,OAAO,IACb,GACH,GACF,CACP,CAAC;IACJ,CAAC;CACF,CAAC"}
@@ -1,46 +0,0 @@
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
- import { capLine, safeFallbackText } from "../truncation.js";
6
- function statusColor(status, theme) {
7
- switch (status) {
8
- case "completed":
9
- return theme.colors.success;
10
- case "running":
11
- return theme.colors.info;
12
- case "failed":
13
- return theme.colors.error;
14
- default:
15
- return theme.colors.textMuted;
16
- }
17
- }
18
- export const CheckDelegationToolRenderers = {
19
- displayName() {
20
- return "Check Delegation";
21
- },
22
- renderInput(input, _opts) {
23
- if (input.id) {
24
- return `${input.id}`;
25
- }
26
- return Object.entries(input)
27
- .map(([key, value]) => `${key}: ${JSON.stringify(value)}`)
28
- .join(", ");
29
- },
30
- renderRejection() {
31
- return _jsx(FallbackToolUseRejectedMessage, {});
32
- },
33
- renderOutput(output, _opts) {
34
- const theme = getTheme();
35
- if (!output) {
36
- return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { color: theme.colors.textMuted, children: "(No content)" }) }) }));
37
- }
38
- if (typeof output === "string") {
39
- return (_jsx(Box, { justifyContent: "space-between", overflowX: "hidden", width: "100%", children: _jsx(Box, { flexDirection: "row", children: _jsx(Text, { children: safeFallbackText(output) }) }) }));
40
- }
41
- const { id, status, result, error } = output;
42
- const color = statusColor(status, theme);
43
- return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { flexDirection: "row", children: [id && _jsxs(Text, { bold: true, children: [id, " "] }), _jsx(Text, { color: color, children: status || "unknown" })] }), status === "completed" && result && (_jsx(Box, { flexDirection: "row", paddingLeft: 4, children: _jsx(Text, { color: theme.colors.textMuted, children: capLine(result) }) })), status === "failed" && error && (_jsx(Box, { flexDirection: "row", paddingLeft: 4, children: _jsx(Text, { color: theme.colors.error, children: capLine(error) }) }))] }));
44
- },
45
- };
46
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/tools/CheckDelegationTool/index.tsx"],"names":[],"mappings":";AAKA,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;AAChD,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAgB7D,SAAS,WAAW,CAAC,MAA0B,EAAE,KAAkC;IACjF,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,WAAW;YACd,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;QAC9B,KAAK,SAAS;YACZ,OAAO,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC;QAC3B,KAAK,QAAQ;YACX,OAAO,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC;QAC5B;YACE,OAAO,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC;IAClC,CAAC;AACH,CAAC;AAED,MAAM,CAAC,MAAM,4BAA4B,GAAiB;IACxD,WAAW;QACT,OAAO,kBAAkB,CAAC;IAC5B,CAAC;IACD,WAAW,CAAC,KAA2B,EAAE,KAA2B;QAClE,IAAI,KAAK,CAAC,EAAE,EAAE,CAAC;YACb,OAAO,GAAG,KAAK,CAAC,EAAE,EAAE,CAAC;QACvB,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,CA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