@mcp-b/react-components 0.62.0 → 0.64.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (496) hide show
  1. package/dist/{AgentActivity-DptCj8XQ.d.ts → AgentActivity-Cngwkalq.d.ts} +2 -9
  2. package/dist/{AgentChatQueue-DG2rGyCI.d.ts → AgentChatQueue-C1TDnVAn.d.ts} +1 -1
  3. package/dist/{AppTopBar-DwzydmXu.d.ts → AppTopBar-CM57rJID.d.ts} +7 -3
  4. package/dist/ChatGptSignInScreen-CmbBe09G.js +298 -0
  5. package/dist/{CodeBlock-BTkag9ms.d.ts → CodeBlock-BDupVceI.d.ts} +1 -1
  6. package/dist/CodeBlock-dt0L8md0.js +892 -0
  7. package/dist/{EmployeeChrome-D5x4EM9y.d.ts → EmployeeChrome-kegSASjC.d.ts} +15 -8
  8. package/dist/{ExecutionBoard-DvPGdn4F.d.ts → ExecutionBoard-DBj1Aiva.d.ts} +8 -1
  9. package/dist/ExecutionResult-CXnGcmM4.js +671 -0
  10. package/dist/FileTree-CjfzpN6X.js +968 -0
  11. package/dist/{IconButton-FWsa9562.d.ts → IconButton-DXtGMkMI.d.ts} +7 -5
  12. package/dist/ManagerOffice-T79utm-P.js +2469 -0
  13. package/dist/{Menu-FA4P6KrA.d.ts → Menu-DajfQr3T.d.ts} +4 -2
  14. package/dist/{Message-BUedRDN1.d.ts → Message-BLyl6kWe.d.ts} +2 -2
  15. package/dist/{PromptInput-Dbe6WgWA.d.ts → PromptInput-DEwFMj6f.d.ts} +5 -8
  16. package/dist/{ResponsiveSidebarShell-DSAMNDdg.d.ts → ResponsiveSidebarShell-RwvmlMHS.d.ts} +23 -13
  17. package/dist/SetupChecklist-DwscX3Bw.js +230 -0
  18. package/dist/{Tabs-BYs-RgJ7.d.ts → Tabs-tyvVX3nc.d.ts} +29 -10
  19. package/dist/{ThinkChatActivity-zZaSsbC-.d.ts → ThinkChatActivity-C7xnO0Fx.d.ts} +1 -1
  20. package/dist/{ThinkChatActivitySummary-8MO1VjAJ.d.ts → ThinkChatActivitySummary-Dh4Av7x_.d.ts} +1 -1
  21. package/dist/{ThinkExecutionRun-DJ2TFDmZ.d.ts → ThinkExecutionRun-QzZVWX75.d.ts} +11 -3
  22. package/dist/ThinkSchedule-D4Ulsa0-.d.ts +53 -0
  23. package/dist/{ThinkThreadPicker-BmIZmpae.d.ts → ThinkThreadPicker-O-i2KloZ.d.ts} +1 -1
  24. package/dist/{Workspace-42LA9Zrb.d.ts → Workspace-B9nuTfIi.d.ts} +1 -1
  25. package/dist/{WorkspaceAutomation-CMvICi-p.d.ts → WorkspaceAutomation-C0fghGLi.d.ts} +3 -3
  26. package/dist/WorkspaceBrowser-oBJv-Dac.js +985 -0
  27. package/dist/{WorkspaceConcept-BjrgGE1w.d.ts → WorkspaceConcept-D46cYerS.d.ts} +1 -1
  28. package/dist/{WorkspaceFile-nK2n0i4S.d.ts → WorkspaceFile-BJC6vlp_.d.ts} +15 -4
  29. package/dist/WorkspaceFileCommands-SNIjRgtU.d.ts +145 -0
  30. package/dist/WorkspaceFileTransfer-BRD22nW-.d.ts +159 -0
  31. package/dist/WorkspaceLink-DDkj-Tq5.js +407 -0
  32. package/dist/{WorkspaceMessageResponse-BZ-_I18b.js → WorkspaceMessageResponse-CXGOQgpo.js} +111 -24
  33. package/dist/{agent-tool-runs-DsOp_X2y.js → agent-tool-runs-BXKdcxl8.js} +55 -28
  34. package/dist/app-bar-outlet-BEIGl9iF.js +35 -0
  35. package/{LICENSE → dist/assets/desktop/LICENSE.fluent.txt} +1 -1
  36. package/dist/assets/desktop/LICENSE.mac-icons.txt +7 -0
  37. package/dist/assets/desktop/README.md +43 -0
  38. package/dist/assets/desktop/automations.svg +19 -0
  39. package/dist/assets/desktop/document.svg +24 -0
  40. package/dist/assets/desktop/folder.png +0 -0
  41. package/dist/assets/desktop/mail.svg +31 -0
  42. package/dist/assets/desktop/settings.svg +9 -0
  43. package/dist/assets/desktop/trash-full.svg +23 -0
  44. package/dist/assets/desktop/trash.svg +19 -0
  45. package/dist/attachment-preview-DeRqFjdz.js +68 -0
  46. package/dist/attempt-CySQHJsF.js +21 -0
  47. package/dist/{codex-model-catalog-18yO7dln.d.ts → codex-model-catalog-CFEGgUAj.d.ts} +8 -8
  48. package/dist/command-search-1fjmCBBo.js +34 -0
  49. package/dist/components/agents-sdk/AIProviderDialog.d.ts +53 -0
  50. package/dist/components/agents-sdk/AIProviderDialog.js +902 -0
  51. package/dist/components/agents-sdk/AgentActivity.d.ts +2 -2
  52. package/dist/components/agents-sdk/AgentActivity.js +78 -31
  53. package/dist/components/agents-sdk/AgentChat.d.ts +3 -3
  54. package/dist/components/agents-sdk/AgentChat.js +1120 -393
  55. package/dist/components/agents-sdk/AgentChatQueue.d.ts +1 -1
  56. package/dist/components/agents-sdk/AgentChatQueue.js +290 -173
  57. package/dist/components/agents-sdk/AgentComputer.d.ts +270 -0
  58. package/dist/components/agents-sdk/AgentComputer.js +8045 -0
  59. package/dist/components/agents-sdk/AgentEvent.js +165 -22
  60. package/dist/components/agents-sdk/AgentScreenSwitcher.d.ts +46 -0
  61. package/dist/components/agents-sdk/AgentScreenSwitcher.js +409 -0
  62. package/dist/components/agents-sdk/AgentToolRunsContext.js +139 -41
  63. package/dist/components/agents-sdk/BrowserLiveScreen.js +860 -551
  64. package/dist/components/agents-sdk/BrowserLiveView.d.ts +1 -1
  65. package/dist/components/agents-sdk/BrowserLiveView.js +244 -88
  66. package/dist/components/agents-sdk/BrowserReplay.js +298 -133
  67. package/dist/components/agents-sdk/BrowserRunPanel.d.ts +57 -1
  68. package/dist/components/agents-sdk/BrowserRunPanel.js +979 -129
  69. package/dist/components/agents-sdk/DiscordConnectionDialog.js +104 -57
  70. package/dist/components/agents-sdk/EmployeeApp.d.ts +1 -1
  71. package/dist/components/agents-sdk/EmployeeApp.js +109 -47
  72. package/dist/components/agents-sdk/EmployeeChat.d.ts +1 -1
  73. package/dist/components/agents-sdk/EmployeeChat.js +504 -103
  74. package/dist/components/agents-sdk/EmployeeChrome.d.ts +2 -2
  75. package/dist/components/agents-sdk/EmployeeChrome.js +1383 -522
  76. package/dist/components/agents-sdk/EmployeeSchedules.d.ts +3 -3
  77. package/dist/components/agents-sdk/EmployeeSchedules.js +283 -66
  78. package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +2 -2
  79. package/dist/components/agents-sdk/EmployeeStartScreen.js +185 -52
  80. package/dist/components/agents-sdk/ExecutionBoard.d.ts +1 -1
  81. package/dist/components/agents-sdk/ExecutionBoard.js +1661 -462
  82. package/dist/components/agents-sdk/ManagerAccountActions.js +143 -36
  83. package/dist/components/agents-sdk/ManagerOffice.d.ts +15 -8
  84. package/dist/components/agents-sdk/ManagerOffice.js +1 -1
  85. package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +1 -1
  86. package/dist/components/agents-sdk/ManagerOfficeScreens.js +551 -185
  87. package/dist/components/agents-sdk/McpConnectionRequest.js +331 -116
  88. package/dist/components/agents-sdk/McpConnectorForm.js +321 -101
  89. package/dist/components/agents-sdk/McpPluginCatalog.js +698 -250
  90. package/dist/components/agents-sdk/McpServerIcon.js +57 -14
  91. package/dist/components/agents-sdk/McpServerPicker.d.ts +1 -1
  92. package/dist/components/agents-sdk/McpServerPicker.js +543 -159
  93. package/dist/components/agents-sdk/ModelSelector.d.ts +1 -1
  94. package/dist/components/agents-sdk/ModelSelector.js +1154 -256
  95. package/dist/components/agents-sdk/PromptInputApproval.js +116 -28
  96. package/dist/components/agents-sdk/PromptInputCommands.d.ts +1 -1
  97. package/dist/components/agents-sdk/PromptInputCommands.js +33 -46
  98. package/dist/components/agents-sdk/SlackConnectionDialog.js +38 -14
  99. package/dist/components/agents-sdk/SubagentRunIndicator.js +118 -25
  100. package/dist/components/agents-sdk/SubagentRunLanes.js +291 -107
  101. package/dist/components/agents-sdk/SubagentRunPanel.js +359 -131
  102. package/dist/components/agents-sdk/SubagentRunSelector.js +123 -26
  103. package/dist/components/agents-sdk/ThinkChat.d.ts +5 -3
  104. package/dist/components/agents-sdk/ThinkChat.js +321 -129
  105. package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -1
  106. package/dist/components/agents-sdk/ThinkChatActivity.js +307 -101
  107. package/dist/components/agents-sdk/ThinkChatActivitySummary.d.ts +1 -1
  108. package/dist/components/agents-sdk/ThinkChatActivitySummary.js +15 -9
  109. package/dist/components/agents-sdk/ThinkChatToolPanels.js +1389 -407
  110. package/dist/components/agents-sdk/ThinkExecutionDetail.d.ts +5 -3
  111. package/dist/components/agents-sdk/ThinkExecutionDetail.js +220 -46
  112. package/dist/components/agents-sdk/ThinkExecutionRun.d.ts +2 -2
  113. package/dist/components/agents-sdk/ThinkExecutionRun.js +19 -11
  114. package/dist/components/agents-sdk/ThinkExecutionStatus.d.ts +5 -3
  115. package/dist/components/agents-sdk/ThinkExecutionStatus.js +224 -37
  116. package/dist/components/agents-sdk/ThinkExecutionWorkbench.d.ts +8 -5
  117. package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +506 -125
  118. package/dist/components/agents-sdk/ThinkFullApp.js +147 -44
  119. package/dist/components/agents-sdk/ThinkPendingApproval.js +381 -75
  120. package/dist/components/agents-sdk/ThinkRecoveryNotice.d.ts +3 -1
  121. package/dist/components/agents-sdk/ThinkRecoveryNotice.js +72 -26
  122. package/dist/components/agents-sdk/ThinkSchedule.d.ts +2 -2
  123. package/dist/components/agents-sdk/ThinkSchedule.js +124 -1
  124. package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +3 -3
  125. package/dist/components/agents-sdk/ThinkScheduleActions.js +364 -133
  126. package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +1 -1
  127. package/dist/components/agents-sdk/ThinkScheduleBrowser.js +249 -116
  128. package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +2 -2
  129. package/dist/components/agents-sdk/ThinkScheduleDetail.js +312 -91
  130. package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +6 -2
  131. package/dist/components/agents-sdk/ThinkScheduleForm.js +1324 -481
  132. package/dist/components/agents-sdk/ThinkThreadPicker.d.ts +1 -1
  133. package/dist/components/agents-sdk/ThinkThreadPicker.js +435 -215
  134. package/dist/components/agents-sdk/TypeSafeConnectionDialog.js +30 -13
  135. package/dist/components/agents-sdk/WorkbenchBack.js +66 -20
  136. package/dist/components/agents-sdk/Workspace.d.ts +1 -1
  137. package/dist/components/agents-sdk/Workspace.js +491 -166
  138. package/dist/components/agents-sdk/WorkspaceAutomation.d.ts +1 -1
  139. package/dist/components/agents-sdk/WorkspaceAutomation.js +1496 -419
  140. package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +1 -1
  141. package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1320 -529
  142. package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +72 -2
  143. package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -94
  144. package/dist/components/agents-sdk/WorkspaceConcept.d.ts +1 -1
  145. package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +1 -1
  146. package/dist/components/agents-sdk/WorkspaceCorrespondence.js +619 -178
  147. package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +45 -0
  148. package/dist/components/agents-sdk/WorkspaceDesktop.js +240 -0
  149. package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +52 -1
  150. package/dist/components/agents-sdk/WorkspaceExplorer.js +268 -86
  151. package/dist/components/agents-sdk/WorkspaceFile.d.ts +2 -2
  152. package/dist/components/agents-sdk/WorkspaceFile.js +30 -9
  153. package/dist/components/agents-sdk/WorkspaceFileCommands.d.ts +2 -0
  154. package/dist/components/agents-sdk/WorkspaceFileCommands.js +890 -0
  155. package/dist/components/agents-sdk/WorkspaceFileDetails.d.ts +29 -0
  156. package/dist/components/agents-sdk/WorkspaceFileDetails.js +271 -0
  157. package/dist/components/agents-sdk/WorkspaceFileTransfer.d.ts +2 -0
  158. package/dist/components/agents-sdk/WorkspaceFileTransfer.js +505 -0
  159. package/dist/components/agents-sdk/WorkspaceFileView.d.ts +18 -3
  160. package/dist/components/agents-sdk/WorkspaceFileView.js +866 -1
  161. package/dist/components/agents-sdk/WorkspaceHeader.js +71 -26
  162. package/dist/components/agents-sdk/WorkspaceLink.js +2 -2
  163. package/dist/components/agents-sdk/WorkspaceLive.d.ts +2 -2
  164. package/dist/components/agents-sdk/WorkspaceLive.js +126 -73
  165. package/dist/components/agents-sdk/WorkspaceLocalFolder.d.ts +63 -0
  166. package/dist/components/agents-sdk/WorkspaceLocalFolder.js +455 -0
  167. package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +1 -1
  168. package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
  169. package/dist/components/agents-sdk/WorkspaceMountManager.js +119 -59
  170. package/dist/components/agents-sdk/WorkspaceNavigationRestoration.js +90 -54
  171. package/dist/components/agents-sdk/WorkspacePerson.d.ts +2 -2
  172. package/dist/components/agents-sdk/WorkspacePerson.js +172 -41
  173. package/dist/components/agents-sdk/WorkspaceProject.d.ts +2 -2
  174. package/dist/components/agents-sdk/WorkspaceProject.js +175 -41
  175. package/dist/components/ai-sdk/Activity.js +768 -192
  176. package/dist/components/ai-sdk/AgentAttention.js +286 -58
  177. package/dist/components/ai-sdk/AgentChatMessageEditor.js +194 -69
  178. package/dist/components/ai-sdk/AgentChatStartScreen.d.ts +1 -1
  179. package/dist/components/ai-sdk/AgentChatStartScreen.js +368 -80
  180. package/dist/components/ai-sdk/AgentChatTurnError.d.ts +6 -1
  181. package/dist/components/ai-sdk/AgentChatTurnError.js +77 -25
  182. package/dist/components/ai-sdk/AgentMessageParts.js +0 -1
  183. package/dist/components/ai-sdk/Approval.js +574 -172
  184. package/dist/components/ai-sdk/Artifact.d.ts +1 -1
  185. package/dist/components/ai-sdk/Artifact.js +535 -128
  186. package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
  187. package/dist/components/ai-sdk/ChainOfThought.js +404 -80
  188. package/dist/components/ai-sdk/Checkpoint.js +229 -45
  189. package/dist/components/ai-sdk/CodeBlock.d.ts +1 -1
  190. package/dist/components/ai-sdk/CodeBlock.js +1 -1
  191. package/dist/components/ai-sdk/ComposerLink.js +216 -48
  192. package/dist/components/ai-sdk/ConnectedAppCards.js +229 -52
  193. package/dist/components/ai-sdk/Context.js +738 -179
  194. package/dist/components/ai-sdk/Conversation.d.ts +1 -1
  195. package/dist/components/ai-sdk/Conversation.js +305 -68
  196. package/dist/components/ai-sdk/ExpansionState.js +74 -15
  197. package/dist/components/ai-sdk/Goal.js +435 -116
  198. package/dist/components/ai-sdk/InlineCitation.js +313 -76
  199. package/dist/components/ai-sdk/MediaPreviewCard.js +451 -135
  200. package/dist/components/ai-sdk/Message.d.ts +1 -1
  201. package/dist/components/ai-sdk/Message.js +1010 -195
  202. package/dist/components/ai-sdk/MessageScroller.d.ts +1 -1
  203. package/dist/components/ai-sdk/MessageScroller.js +264 -46
  204. package/dist/components/ai-sdk/MessageScrollerVirtual.js +6 -6
  205. package/dist/components/ai-sdk/Plan.js +639 -128
  206. package/dist/components/ai-sdk/PromptInput.d.ts +1 -1
  207. package/dist/components/ai-sdk/PromptInput.js +2738 -797
  208. package/dist/components/ai-sdk/PromptInputComposerEditor.d.ts +1 -3
  209. package/dist/components/ai-sdk/PromptInputComposerEditor.js +188 -83
  210. package/dist/components/ai-sdk/Queue.js +793 -155
  211. package/dist/components/ai-sdk/Reasoning.js +268 -69
  212. package/dist/components/ai-sdk/Sources.js +226 -63
  213. package/dist/components/ai-sdk/Task.js +294 -71
  214. package/dist/components/ai-sdk/ToolApproval.js +126 -26
  215. package/dist/components/ai-sdk/ToolInvocation.js +112 -22
  216. package/dist/components/extension/ChatGptSignInScreen.js +1 -82
  217. package/dist/components/extension/CodexModelSelector.d.ts +2 -2
  218. package/dist/components/extension/CodexModelSelector.js +468 -147
  219. package/dist/components/extension/ConversationTabPicker.d.ts +1 -1
  220. package/dist/components/extension/ConversationTabPicker.js +254 -76
  221. package/dist/components/extension/FirstRunSetup.d.ts +61 -35
  222. package/dist/components/extension/FirstRunSetup.js +3833 -1011
  223. package/dist/components/foundations/Accordion.js +186 -41
  224. package/dist/components/foundations/AlertDialog.js +425 -97
  225. package/dist/components/foundations/AppIcon.d.ts +13 -13
  226. package/dist/components/foundations/AppIcon.js +183 -34
  227. package/dist/components/foundations/Autocomplete.js +408 -89
  228. package/dist/components/foundations/Avatar.d.ts +100 -2
  229. package/dist/components/foundations/Avatar.js +204 -44
  230. package/dist/components/foundations/Button.js +64 -13
  231. package/dist/components/foundations/Card.js +357 -63
  232. package/dist/components/foundations/Checkbox.js +83 -18
  233. package/dist/components/foundations/CheckboxGroup.js +266 -58
  234. package/dist/components/foundations/Collapsible.d.ts +2 -1
  235. package/dist/components/foundations/Collapsible.js +130 -27
  236. package/dist/components/foundations/Combobox.js +408 -89
  237. package/dist/components/foundations/ContextMenu.d.ts +2 -2
  238. package/dist/components/foundations/ContextMenu.js +591 -117
  239. package/dist/components/foundations/DescriptionList.js +159 -28
  240. package/dist/components/foundations/Dialog.js +373 -89
  241. package/dist/components/foundations/EmptyState.js +86 -23
  242. package/dist/components/foundations/Favicon.d.ts +17 -0
  243. package/dist/components/foundations/Favicon.js +62 -0
  244. package/dist/components/foundations/Field.js +525 -108
  245. package/dist/components/foundations/Fieldset.js +115 -23
  246. package/dist/components/foundations/Form.js +38 -9
  247. package/dist/components/foundations/FormattedDate.d.ts +19 -5
  248. package/dist/components/foundations/FormattedDate.js +82 -12
  249. package/dist/components/foundations/IconButton.d.ts +1 -1
  250. package/dist/components/foundations/IconButton.js +114 -17
  251. package/dist/components/foundations/Input.js +38 -9
  252. package/dist/components/foundations/Kbd.js +55 -10
  253. package/dist/components/foundations/Label.js +56 -12
  254. package/dist/components/foundations/LinkButton.js +67 -15
  255. package/dist/components/foundations/Marker.js +138 -29
  256. package/dist/components/foundations/Menu.d.ts +1 -1
  257. package/dist/components/foundations/Menu.js +634 -136
  258. package/dist/components/foundations/Menubar.d.ts +2 -2
  259. package/dist/components/foundations/Menubar.js +685 -130
  260. package/dist/components/foundations/Meter.js +186 -41
  261. package/dist/components/foundations/NavigationMenu.js +426 -95
  262. package/dist/components/foundations/NumberField.js +223 -49
  263. package/dist/components/foundations/Popover.js +398 -88
  264. package/dist/components/foundations/PreviewCard.js +234 -53
  265. package/dist/components/foundations/Progress.js +117 -25
  266. package/dist/components/foundations/RadioGroup.d.ts +13 -5
  267. package/dist/components/foundations/RadioGroup.js +132 -25
  268. package/dist/components/foundations/ScrollArea.js +230 -51
  269. package/dist/components/foundations/SearchField.d.ts +8 -3
  270. package/dist/components/foundations/SearchField.js +129 -28
  271. package/dist/components/foundations/Select.js +648 -145
  272. package/dist/components/foundations/Separator.js +61 -12
  273. package/dist/components/foundations/Slider.js +260 -57
  274. package/dist/components/foundations/Stepper.d.ts +1 -1
  275. package/dist/components/foundations/Stepper.js +561 -127
  276. package/dist/components/foundations/Switch.js +82 -18
  277. package/dist/components/foundations/Tabs.d.ts +2 -2
  278. package/dist/components/foundations/Tabs.js +282 -53
  279. package/dist/components/foundations/Textarea.js +43 -9
  280. package/dist/components/foundations/ThemeProvider.js +138 -52
  281. package/dist/components/foundations/Toast.d.ts +10 -2
  282. package/dist/components/foundations/Toast.js +322 -75
  283. package/dist/components/foundations/Toggle.d.ts +5 -2
  284. package/dist/components/foundations/Toggle.js +51 -10
  285. package/dist/components/foundations/ToggleGroup.d.ts +4 -4
  286. package/dist/components/foundations/ToggleGroup.js +216 -60
  287. package/dist/components/foundations/Toolbar.js +249 -61
  288. package/dist/components/foundations/Tooltip.d.ts +3 -3
  289. package/dist/components/foundations/Tooltip.js +311 -55
  290. package/dist/components/foundations/TransitionSurface.js +43 -9
  291. package/dist/components/foundations/icons.d.ts +2 -2
  292. package/dist/components/foundations/icons.js +2 -2
  293. package/dist/components/general-purpose/AccountSignInDialog.js +99 -17
  294. package/dist/components/general-purpose/ActionGuide.js +290 -64
  295. package/dist/components/general-purpose/AppFrame.js +72 -14
  296. package/dist/components/general-purpose/AppTopBar.d.ts +1 -1
  297. package/dist/components/general-purpose/AppTopBar.js +349 -60
  298. package/dist/components/general-purpose/BrandLoading.js +37 -9
  299. package/dist/components/general-purpose/CommandPalette.d.ts +47 -0
  300. package/dist/components/general-purpose/CommandPalette.js +271 -0
  301. package/dist/components/general-purpose/Commit.d.ts +1 -1
  302. package/dist/components/general-purpose/Commit.js +937 -167
  303. package/dist/components/general-purpose/EnvironmentVariables.d.ts +1 -1
  304. package/dist/components/general-purpose/EnvironmentVariables.js +600 -114
  305. package/dist/components/general-purpose/FileTree.d.ts +20 -7
  306. package/dist/components/general-purpose/FileTree.js +1 -1
  307. package/dist/components/general-purpose/ListDetail.d.ts +84 -0
  308. package/dist/components/general-purpose/ListDetail.js +423 -0
  309. package/dist/components/general-purpose/NotificationPrompt.js +20 -11
  310. package/dist/components/general-purpose/PricingBillingToggle.js +34 -7
  311. package/dist/components/general-purpose/PricingConfirmationDialog.js +126 -42
  312. package/dist/components/general-purpose/PricingFAQ.js +53 -12
  313. package/dist/components/general-purpose/PricingPage.js +376 -139
  314. package/dist/components/general-purpose/PricingPlanCard.js +210 -85
  315. package/dist/components/general-purpose/PricingUsageCalculator.js +233 -83
  316. package/dist/components/general-purpose/ResizableSidePanel.js +316 -117
  317. package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +1 -1
  318. package/dist/components/general-purpose/ResponsiveSidebarShell.js +840 -342
  319. package/dist/components/general-purpose/ScreenStack.d.ts +54 -0
  320. package/dist/components/general-purpose/ScreenStack.js +427 -0
  321. package/dist/components/general-purpose/SettingsFormDialog.d.ts +10 -2
  322. package/dist/components/general-purpose/SettingsFormDialog.js +238 -74
  323. package/dist/components/general-purpose/SetupChecklist.js +1 -1
  324. package/dist/components/general-purpose/StatusScreen.js +82 -24
  325. package/dist/components/general-purpose/SwipeActions.d.ts +54 -0
  326. package/dist/components/general-purpose/SwipeActions.js +357 -0
  327. package/dist/components/general-purpose/Terminal.d.ts +22 -48
  328. package/dist/components/general-purpose/Terminal.js +320 -174
  329. package/dist/components/general-purpose/TestResults.js +975 -196
  330. package/dist/components/general-purpose/ThemeModeControl.d.ts +3 -1
  331. package/dist/components/general-purpose/ThemeModeControl.js +67 -24
  332. package/dist/components/general-purpose/WallpaperPicker.d.ts +33 -0
  333. package/dist/components/general-purpose/WallpaperPicker.js +180 -0
  334. package/dist/components/general-purpose/WebPreview.d.ts +5 -7
  335. package/dist/components/general-purpose/WebPreview.js +770 -203
  336. package/dist/components/nanites/AgentConnection.js +323 -84
  337. package/dist/components/nanites/AgentToolDetail.js +237 -57
  338. package/dist/components/nanites/GithubMotionMark.js +37 -9
  339. package/dist/components/nanites/NaniteScene.js +535 -323
  340. package/dist/connected-app-drafts-Bocdg3Z-.js +637 -0
  341. package/dist/container-width-C43ccJ84.js +17 -0
  342. package/dist/context-Ddsp8HgD.js +43 -0
  343. package/dist/{copy-button-B09hHWd1.d.ts → copy-button-C2HRdomn.d.ts} +1 -1
  344. package/dist/copy-button-DWBVJR6D.js +118 -0
  345. package/dist/{format-CWaZEp5o.js → format-DL7f2rqp.js} +5 -1
  346. package/dist/{icons-CReP3qYl.d.ts → icons-B3n7zvU7.d.ts} +10 -2
  347. package/dist/icons-nLTnB9kd.js +470 -0
  348. package/dist/{merge-refs-DAh6reu8.js → merge-refs-DTX97mLp.js} +17 -1
  349. package/dist/motion-CGM3i6lX.js +319 -0
  350. package/dist/motion-preferences-6qsDIDvH.js +13 -0
  351. package/dist/{navigation-link-kqMa81v5.js → navigation-link-DMmtdqsM.js} +32 -8
  352. package/dist/progress-ring-BO649JA9.js +79 -0
  353. package/dist/provider-logos-Ceu7iYFx.js +362 -0
  354. package/dist/scheduled-table-source-gGpVJ1TN.js +92 -0
  355. package/dist/styles/accessibility.css +26 -0
  356. package/dist/styles/accordion.css +0 -2
  357. package/dist/styles/activity.css +20 -12
  358. package/dist/styles/agent-attention.css +31 -10
  359. package/dist/styles/agent-chat.css +7 -6
  360. package/dist/styles/agent-computer-motion-reduction.css +118 -0
  361. package/dist/styles/agent-computer-motion.css +127 -0
  362. package/dist/styles/agent-computer-phone.css +942 -0
  363. package/dist/styles/agent-computer.css +1764 -0
  364. package/dist/styles/agent-connection.css +5 -5
  365. package/dist/styles/agent-screen-switcher.css +313 -0
  366. package/dist/styles/ai-provider-dialog.css +46 -0
  367. package/dist/styles/app-icon.css +34 -30
  368. package/dist/styles/app-top-bar.css +33 -18
  369. package/dist/styles/approval.css +3 -3
  370. package/dist/styles/artifact.css +1 -1
  371. package/dist/styles/attachment-preview.css +2 -4
  372. package/dist/styles/avatar.css +12 -14
  373. package/dist/styles/base-ui-motion.css +84 -18
  374. package/dist/styles/base-ui-motion.test.tsx +305 -0
  375. package/dist/styles/base.css +16 -12
  376. package/dist/styles/brand.test.ts +7 -20
  377. package/dist/styles/browser-control-overlay.css +1 -1
  378. package/dist/styles/browser-live-screen.css +2 -2
  379. package/dist/styles/browser-live-view.css +1 -1
  380. package/dist/styles/browser-replay.css +0 -8
  381. package/dist/styles/browser-run-panel.css +275 -37
  382. package/dist/styles/button.css +52 -9
  383. package/dist/styles/card.css +6 -5
  384. package/dist/styles/chain-of-thought.css +0 -10
  385. package/dist/styles/checkpoint.css +2 -2
  386. package/dist/styles/codex-model-selector.css +2 -2
  387. package/dist/styles/color-contrast.test.ts +18 -1
  388. package/dist/styles/command-palette.css +110 -0
  389. package/dist/styles/composer-link.css +11 -7
  390. package/dist/styles/composition-motion.css +3 -14
  391. package/dist/styles/context.css +2 -2
  392. package/dist/styles/conversation-tab-picker.css +7 -0
  393. package/dist/styles/conversation.css +8 -2
  394. package/dist/styles/dialog.css +2 -2
  395. package/dist/styles/employee-app.css +8 -2
  396. package/dist/styles/employee-chrome.css +15 -6
  397. package/dist/styles/execution-board.css +206 -114
  398. package/dist/styles/execution-result.css +2 -2
  399. package/dist/styles/field.css +187 -4
  400. package/dist/styles/file-tree.css +218 -40
  401. package/dist/styles/first-run-setup.css +914 -187
  402. package/dist/styles/github-motion-mark.css +0 -8
  403. package/dist/styles/index.css +145 -132
  404. package/dist/styles/inline-citation.css +5 -4
  405. package/dist/styles/list-detail.css +57 -0
  406. package/dist/styles/manager-office.css +6 -8
  407. package/dist/styles/manager-work.css +4 -2
  408. package/dist/styles/mcp-plugin-catalog.css +2 -2
  409. package/dist/styles/mcp-server-picker.css +3 -6
  410. package/dist/styles/media-preview-card.css +2 -2
  411. package/dist/styles/menu.css +0 -9
  412. package/dist/styles/menubar.css +18 -6
  413. package/dist/styles/message-scroller.css +47 -9
  414. package/dist/styles/message.css +3 -3
  415. package/dist/styles/model-selector.css +1 -1
  416. package/dist/styles/motion-reduction.css +39 -6
  417. package/dist/styles/pricing-page.css +1 -1
  418. package/dist/styles/prompt-input.css +29 -29
  419. package/dist/styles/queue.css +1 -1
  420. package/dist/styles/recipes.css +212 -28
  421. package/dist/styles/responsive-sidebar-shell-motion.test.ts +81 -1
  422. package/dist/styles/responsive-sidebar-shell.css +40 -43
  423. package/dist/styles/screen-stack.css +123 -0
  424. package/dist/styles/search-field.css +80 -3
  425. package/dist/styles/stepper.css +0 -10
  426. package/dist/styles/streamdown.css +2 -2
  427. package/dist/styles/subagent-run.css +9 -5
  428. package/dist/styles/swipe-actions.css +158 -0
  429. package/dist/styles/tabs.css +80 -23
  430. package/dist/styles/task.css +7 -1
  431. package/dist/styles/terminal.css +66 -78
  432. package/dist/styles/test-results.css +1 -19
  433. package/dist/styles/textarea.css +2 -1
  434. package/dist/styles/theme-mode-control.css +154 -26
  435. package/dist/styles/think-chat-tool-panels.css +1 -1
  436. package/dist/styles/think-execution-workbench.css +0 -9
  437. package/dist/styles/think-full-app.css +7 -1
  438. package/dist/styles/think-schedule.css +81 -54
  439. package/dist/styles/think-thread-picker.css +28 -37
  440. package/dist/styles/toast.css +11 -0
  441. package/dist/styles/toggle-group.css +0 -10
  442. package/dist/styles/toggle.css +13 -0
  443. package/dist/styles/tooltip.css +12 -0
  444. package/dist/styles/transition-surface.css +1 -0
  445. package/dist/styles/wallpaper-picker.css +224 -0
  446. package/dist/styles/web-preview.css +47 -18
  447. package/dist/styles/workspace-automation.css +116 -17
  448. package/dist/styles/workspace-concepts.css +1 -1
  449. package/dist/styles/workspace-desktop.css +124 -0
  450. package/dist/styles/workspace-entity-card.css +3 -1
  451. package/dist/styles/workspace-explorer.css +499 -5
  452. package/dist/utils/brand-marks.d.ts +13 -0
  453. package/dist/utils/brand-marks.js +14 -0
  454. package/dist/utils/codex-model-catalog.d.ts +1 -1
  455. package/dist/utils/desktop-artwork.d.ts +17 -0
  456. package/dist/utils/desktop-artwork.js +18 -0
  457. package/dist/utils/favicon.d.ts +6 -2
  458. package/dist/utils/favicon.js +16 -4
  459. package/dist/utils/model-provider-error.d.ts +17 -0
  460. package/dist/utils/model-provider-error.js +76 -0
  461. package/dist/utils/structured-code.d.ts +1 -1
  462. package/dist/workspace-assets-DdtnBDU3.js +213 -0
  463. package/dist/{workspace-concept-panel-KpMmznB_.d.ts → workspace-concept-panel-BDTBISNO.d.ts} +2 -2
  464. package/dist/workspace-concept-panel-VkjvFCY_.js +140 -0
  465. package/dist/workspace-delete-BOY6CMBf.js +183 -0
  466. package/dist/workspace-drag-B6hMXUNt.js +304 -0
  467. package/dist/workspace-entity-card-9YcsNiqU.js +178 -0
  468. package/dist/workspace-media-preview-B4iB5Tvi.js +1295 -0
  469. package/dist/{workspace-path-L_KmjRjq.js → workspace-path-TZggP-u4.js} +14 -1
  470. package/dist/{workspace-person-BVkYb3dv.js → workspace-person-ZwPqu5TX.js} +67 -21
  471. package/dist/workspace-quick-look-9V-UFpjj.js +1562 -0
  472. package/package.json +9 -3
  473. package/dist/Avatar-t1YRzdwB.d.ts +0 -101
  474. package/dist/CodeBlock-CNvOYR0Q.js +0 -318
  475. package/dist/ExecutionResult-DmC21cll.js +0 -279
  476. package/dist/FileTree-H31EVRv_.js +0 -323
  477. package/dist/ManagerOffice-B3X3iZV9.js +0 -1129
  478. package/dist/SetupChecklist-Wo4akaSG.js +0 -78
  479. package/dist/ThinkSchedule-CSuDGrZ9.d.ts +0 -34
  480. package/dist/WorkspaceFileView-BWI_AJlV.js +0 -783
  481. package/dist/WorkspaceLink-BeFAXpbI.js +0 -225
  482. package/dist/app-bar-outlet-CNfNzY4Y.js +0 -6
  483. package/dist/attachment-preview-1CXJvrmb.js +0 -25
  484. package/dist/chatgpt-sign-in-button-DNchrZHs.js +0 -32
  485. package/dist/components/agents-sdk/ModelEndpointDialog.d.ts +0 -31
  486. package/dist/components/agents-sdk/ModelEndpointDialog.js +0 -141
  487. package/dist/connected-app-drafts-B9i69bkj.js +0 -283
  488. package/dist/copy-button-z20VEXRF.js +0 -45
  489. package/dist/icons-Yp99gmMC.js +0 -141
  490. package/dist/progress-ring-L2bbF0ji.js +0 -40
  491. package/dist/provider-logos-DWYY8wNz.js +0 -99
  492. package/dist/scheduled-table-source-NZR1vFc_.js +0 -38
  493. package/dist/workspace-assets-Dq5toMQc.js +0 -107
  494. package/dist/workspace-concept-panel-CxZfmFkP.js +0 -66
  495. package/dist/workspace-delete-CoB0l6ZU.js +0 -81
  496. package/dist/workspace-entity-card-B1aV-jBj.js +0 -61
@@ -1,14 +1,16 @@
1
1
  import { ActivityOutput, ActivityPanel } from "../ai-sdk/Activity.js";
2
- import { Tabs } from "../foundations/Tabs.js";
3
2
  import { ToolInvocationDetails } from "../ai-sdk/ToolInvocation.js";
4
- import { i as CodeBlockContent, r as CodeBlockContainer, t as CodeBlock } from "../../CodeBlock-CNvOYR0Q.js";
5
- import { formatThinkExecutionShortTimestamp } from "./ThinkExecutionRun.js";
6
- import { n as executionErrorSummary } from "../../execution-result-DAuW4VWv.js";
7
- import { t as WorkspaceFileLink } from "../../WorkspaceLink-BeFAXpbI.js";
8
- import { t as ExecutionResult } from "../../ExecutionResult-DmC21cll.js";
3
+ import { Tabs } from "../foundations/Tabs.js";
4
+ import { i as workspaceBasename } from "../../workspace-path-TZggP-u4.js";
9
5
  import { BrowserLiveView } from "./BrowserLiveView.js";
6
+ import { i as CodeBlockContent, r as CodeBlockContainer, t as CodeBlock } from "../../CodeBlock-dt0L8md0.js";
10
7
  import { inferWorkspaceLanguage } from "./WorkspaceFile.js";
11
8
  import { displayUrl, isSessionContextToolFailure, readFollowUpReceipt, thinkToolOutcome } from "./ThinkChatToolParts.js";
9
+ import { n as executionErrorSummary } from "../../execution-result-DAuW4VWv.js";
10
+ import { t as WorkspaceFileLink } from "../../WorkspaceLink-DDkj-Tq5.js";
11
+ import { t as ExecutionResult } from "../../ExecutionResult-CXnGcmM4.js";
12
+ import { formatThinkExecutionShortTimestamp } from "./ThinkExecutionRun.js";
13
+ import { c } from "react/compiler-runtime";
12
14
  import * as React from "react";
13
15
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
14
16
  import { getToolName } from "ai";
@@ -36,48 +38,158 @@ function prefixLines(text, prefix) {
36
38
  show the file with line numbers, edit shows a mini diff, list/find/grep
37
39
  show their result lists, bash gets the shell panel. Everything is typed by
38
40
  the upstream tool contract. */
39
- function ThinkChatWorkspacePanel({ part }) {
40
- if (part.type === "tool-bash") return /* @__PURE__ */ jsx(ThinkChatShellPanel, { part });
41
- const failure = toolFailurePanel(part, getToolName(part));
41
+ function ThinkChatWorkspacePanel(t0) {
42
+ const $ = c(16);
43
+ const { part } = t0;
44
+ if (part.type === "tool-bash") {
45
+ let t1;
46
+ if ($[0] !== part) {
47
+ t1 = /* @__PURE__ */ jsx(ThinkChatShellPanel, { part });
48
+ $[0] = part;
49
+ $[1] = t1;
50
+ } else t1 = $[1];
51
+ return t1;
52
+ }
53
+ let t1;
54
+ if ($[2] !== part) {
55
+ t1 = toolFailurePanel(part, getToolName(part));
56
+ $[2] = part;
57
+ $[3] = t1;
58
+ } else t1 = $[3];
59
+ const failure = t1;
42
60
  if (failure) return failure;
43
61
  switch (part.type) {
44
- case "tool-read": return /* @__PURE__ */ jsx(WorkspaceReadPanel, { part });
45
- case "tool-write": return /* @__PURE__ */ jsx(WorkspaceWritePanel, { part });
46
- case "tool-edit": return /* @__PURE__ */ jsx(WorkspaceEditPanel, { part });
47
- case "tool-list": return /* @__PURE__ */ jsx(WorkspaceListPanel, { part });
48
- case "tool-find": return /* @__PURE__ */ jsx(WorkspaceFindPanel, { part });
49
- case "tool-grep": return /* @__PURE__ */ jsx(WorkspaceGrepPanel, { part });
62
+ case "tool-read": {
63
+ let t2;
64
+ if ($[4] !== part) {
65
+ t2 = /* @__PURE__ */ jsx(WorkspaceReadPanel, { part });
66
+ $[4] = part;
67
+ $[5] = t2;
68
+ } else t2 = $[5];
69
+ return t2;
70
+ }
71
+ case "tool-write": {
72
+ let t2;
73
+ if ($[6] !== part) {
74
+ t2 = /* @__PURE__ */ jsx(WorkspaceWritePanel, { part });
75
+ $[6] = part;
76
+ $[7] = t2;
77
+ } else t2 = $[7];
78
+ return t2;
79
+ }
80
+ case "tool-edit": {
81
+ let t2;
82
+ if ($[8] !== part) {
83
+ t2 = /* @__PURE__ */ jsx(WorkspaceEditPanel, { part });
84
+ $[8] = part;
85
+ $[9] = t2;
86
+ } else t2 = $[9];
87
+ return t2;
88
+ }
89
+ case "tool-list": {
90
+ let t2;
91
+ if ($[10] !== part) {
92
+ t2 = /* @__PURE__ */ jsx(WorkspaceListPanel, { part });
93
+ $[10] = part;
94
+ $[11] = t2;
95
+ } else t2 = $[11];
96
+ return t2;
97
+ }
98
+ case "tool-find": {
99
+ let t2;
100
+ if ($[12] !== part) {
101
+ t2 = /* @__PURE__ */ jsx(WorkspaceFindPanel, { part });
102
+ $[12] = part;
103
+ $[13] = t2;
104
+ } else t2 = $[13];
105
+ return t2;
106
+ }
107
+ case "tool-grep": {
108
+ let t2;
109
+ if ($[14] !== part) {
110
+ t2 = /* @__PURE__ */ jsx(WorkspaceGrepPanel, { part });
111
+ $[14] = part;
112
+ $[15] = t2;
113
+ } else t2 = $[15];
114
+ return t2;
115
+ }
50
116
  default: return null;
51
117
  }
52
118
  }
53
- function WorkspaceReadPanel({ part }) {
119
+ function WorkspaceReadPanel(t0) {
120
+ const $ = c(14);
121
+ const { part } = t0;
54
122
  const label = part.input?.path ?? "file";
55
123
  const output = part.state === "output-available" ? part.output : void 0;
56
- if (output && "error" in output) return /* @__PURE__ */ jsx(ActivityPanel, {
57
- label,
58
- text: executionErrorSummary(output.error),
59
- status: "error",
60
- error: true
61
- });
62
- if (output && "content" in output) return /* @__PURE__ */ jsx(ActivityPanel, {
63
- label,
64
- text: output.content,
65
- status: `${output.totalLines} lines`
66
- });
67
- if (output) return /* @__PURE__ */ jsx(ActivityPanel, {
68
- label,
69
- text: `${output.name} · ${output.mediaType} · ${output.sizeBytes} bytes`
70
- });
71
- return /* @__PURE__ */ jsx(ActivityPanel, { label });
124
+ if (output && "error" in output) {
125
+ let t1;
126
+ if ($[0] !== output.error) {
127
+ t1 = executionErrorSummary(output.error);
128
+ $[0] = output.error;
129
+ $[1] = t1;
130
+ } else t1 = $[1];
131
+ let t2;
132
+ if ($[2] !== label || $[3] !== t1) {
133
+ t2 = /* @__PURE__ */ jsx(ActivityPanel, {
134
+ label,
135
+ text: t1,
136
+ status: "error",
137
+ error: true
138
+ });
139
+ $[2] = label;
140
+ $[3] = t1;
141
+ $[4] = t2;
142
+ } else t2 = $[4];
143
+ return t2;
144
+ }
145
+ if (output && "content" in output) {
146
+ const t1 = `${output.totalLines} lines`;
147
+ let t2;
148
+ if ($[5] !== label || $[6] !== output.content || $[7] !== t1) {
149
+ t2 = /* @__PURE__ */ jsx(ActivityPanel, {
150
+ label,
151
+ text: output.content,
152
+ status: t1
153
+ });
154
+ $[5] = label;
155
+ $[6] = output.content;
156
+ $[7] = t1;
157
+ $[8] = t2;
158
+ } else t2 = $[8];
159
+ return t2;
160
+ }
161
+ if (output) {
162
+ const t1 = `${output.name} · ${output.mediaType} · ${output.sizeBytes} bytes`;
163
+ let t2;
164
+ if ($[9] !== label || $[10] !== t1) {
165
+ t2 = /* @__PURE__ */ jsx(ActivityPanel, {
166
+ label,
167
+ text: t1
168
+ });
169
+ $[9] = label;
170
+ $[10] = t1;
171
+ $[11] = t2;
172
+ } else t2 = $[11];
173
+ return t2;
174
+ }
175
+ let t1;
176
+ if ($[12] !== label) {
177
+ t1 = /* @__PURE__ */ jsx(ActivityPanel, { label });
178
+ $[12] = label;
179
+ $[13] = t1;
180
+ } else t1 = $[13];
181
+ return t1;
72
182
  }
73
- function WorkspaceWritePanel({ part }) {
183
+ function WorkspaceWritePanel(t0) {
184
+ const $ = c(8);
185
+ const { part } = t0;
74
186
  const path = part.input?.path ?? "file";
75
187
  const content = part.input?.content;
76
188
  const output = part.state === "output-available" ? part.output : void 0;
77
- return /* @__PURE__ */ jsx(ActivityPanel, {
78
- label: path,
79
- status: output ? `${output.lines} lines written` : void 0,
80
- children: content !== void 0 ? /* @__PURE__ */ jsx(CodeBlock, {
189
+ const t1 = output ? `${output.lines} lines written` : void 0;
190
+ let t2;
191
+ if ($[0] !== content || $[1] !== part.state || $[2] !== path) {
192
+ t2 = content !== void 0 ? /* @__PURE__ */ jsx(CodeBlock, {
81
193
  surface: "plain",
82
194
  wrap: true,
83
195
  code: content,
@@ -85,18 +197,37 @@ function WorkspaceWritePanel({ part }) {
85
197
  language: inferWorkspaceLanguage(path),
86
198
  showLineNumbers: true,
87
199
  children: /* @__PURE__ */ jsx(CodeBlockContainer, { children: /* @__PURE__ */ jsx(CodeBlockContent, {}) })
88
- }) : null
89
- });
200
+ }) : null;
201
+ $[0] = content;
202
+ $[1] = part.state;
203
+ $[2] = path;
204
+ $[3] = t2;
205
+ } else t2 = $[3];
206
+ let t3;
207
+ if ($[4] !== path || $[5] !== t1 || $[6] !== t2) {
208
+ t3 = /* @__PURE__ */ jsx(ActivityPanel, {
209
+ label: path,
210
+ status: t1,
211
+ children: t2
212
+ });
213
+ $[4] = path;
214
+ $[5] = t1;
215
+ $[6] = t2;
216
+ $[7] = t3;
217
+ } else t3 = $[7];
218
+ return t3;
90
219
  }
91
- function WorkspaceEditPanel({ part }) {
220
+ function WorkspaceEditPanel(t0) {
221
+ const $ = c(7);
222
+ const { part } = t0;
92
223
  const input = part.input;
93
224
  const output = part.state === "output-available" ? part.output : void 0;
94
225
  const status = !output ? void 0 : output.error ? output.error : output.created ? "created" : output.fuzzyMatch ? "replaced (fuzzy match)" : "replaced";
95
- return /* @__PURE__ */ jsx(ActivityPanel, {
96
- label: input?.path ?? "file",
97
- status,
98
- error: Boolean(output?.error),
99
- children: input?.old_string !== void 0 && input.new_string !== void 0 ? /* @__PURE__ */ jsxs(ActivityOutput, { children: [
226
+ const t1 = input?.path ?? "file";
227
+ const t2 = Boolean(output?.error);
228
+ let t3;
229
+ if ($[0] !== input) {
230
+ t3 = input?.old_string !== void 0 && input.new_string !== void 0 ? /* @__PURE__ */ jsxs(ActivityOutput, { children: [
100
231
  /* @__PURE__ */ jsx("span", {
101
232
  className: "think-chat-tool-panels__diff-del",
102
233
  children: prefixLines(input.old_string, "- ")
@@ -106,144 +237,413 @@ function WorkspaceEditPanel({ part }) {
106
237
  className: "think-chat-tool-panels__diff-add",
107
238
  children: prefixLines(input.new_string, "+ ")
108
239
  })
109
- ] }) : null
110
- });
240
+ ] }) : null;
241
+ $[0] = input;
242
+ $[1] = t3;
243
+ } else t3 = $[1];
244
+ let t4;
245
+ if ($[2] !== status || $[3] !== t1 || $[4] !== t2 || $[5] !== t3) {
246
+ t4 = /* @__PURE__ */ jsx(ActivityPanel, {
247
+ label: t1,
248
+ status,
249
+ error: t2,
250
+ children: t3
251
+ });
252
+ $[2] = status;
253
+ $[3] = t1;
254
+ $[4] = t2;
255
+ $[5] = t3;
256
+ $[6] = t4;
257
+ } else t4 = $[6];
258
+ return t4;
111
259
  }
112
- function WorkspaceListPanel({ part }) {
260
+ function WorkspaceListPanel(t0) {
261
+ const $ = c(6);
262
+ const { part } = t0;
113
263
  const output = part.state === "output-available" ? part.output : void 0;
114
- return /* @__PURE__ */ jsx(ActivityPanel, {
115
- label: part.input?.path ?? "/",
116
- text: output?.entries.join("\n"),
117
- status: output ? `${output.count} entries` : void 0
118
- });
264
+ const t1 = part.input?.path ?? "/";
265
+ let t2;
266
+ if ($[0] !== output?.entries) {
267
+ t2 = output?.entries.join("\n");
268
+ $[0] = output?.entries;
269
+ $[1] = t2;
270
+ } else t2 = $[1];
271
+ const t3 = output ? `${output.count} entries` : void 0;
272
+ let t4;
273
+ if ($[2] !== t1 || $[3] !== t2 || $[4] !== t3) {
274
+ t4 = /* @__PURE__ */ jsx(ActivityPanel, {
275
+ label: t1,
276
+ text: t2,
277
+ status: t3
278
+ });
279
+ $[2] = t1;
280
+ $[3] = t2;
281
+ $[4] = t3;
282
+ $[5] = t4;
283
+ } else t4 = $[5];
284
+ return t4;
119
285
  }
120
- function WorkspaceFindPanel({ part }) {
286
+ function WorkspaceFindPanel(t0) {
287
+ const $ = c(11);
288
+ const { part } = t0;
121
289
  const output = part.state === "output-available" ? part.output : void 0;
122
- const files = Array.isArray(output?.files) ? output.files.map(String) : [];
123
- const count = typeof output?.count === "number" ? output.count : files.length;
124
- return /* @__PURE__ */ jsx(ActivityPanel, {
125
- label: part.input?.pattern ?? "files",
126
- text: files.join("\n"),
127
- status: output ? `${count} files${output.truncated ? " (truncated)" : ""}` : void 0
128
- });
290
+ let T0;
291
+ let count;
292
+ let t1;
293
+ let t2;
294
+ if ($[0] !== output || $[1] !== part.input?.pattern) {
295
+ const files = Array.isArray(output?.files) ? output.files.map(String) : [];
296
+ count = typeof output?.count === "number" ? output.count : files.length;
297
+ T0 = ActivityPanel;
298
+ t1 = part.input?.pattern ?? "files";
299
+ t2 = files.join("\n");
300
+ $[0] = output;
301
+ $[1] = part.input?.pattern;
302
+ $[2] = T0;
303
+ $[3] = count;
304
+ $[4] = t1;
305
+ $[5] = t2;
306
+ } else {
307
+ T0 = $[2];
308
+ count = $[3];
309
+ t1 = $[4];
310
+ t2 = $[5];
311
+ }
312
+ const t3 = output ? `${count} files${output.truncated ? " (truncated)" : ""}` : void 0;
313
+ let t4;
314
+ if ($[6] !== T0 || $[7] !== t1 || $[8] !== t2 || $[9] !== t3) {
315
+ t4 = /* @__PURE__ */ jsx(T0, {
316
+ label: t1,
317
+ text: t2,
318
+ status: t3
319
+ });
320
+ $[6] = T0;
321
+ $[7] = t1;
322
+ $[8] = t2;
323
+ $[9] = t3;
324
+ $[10] = t4;
325
+ } else t4 = $[10];
326
+ return t4;
129
327
  }
130
- function WorkspaceGrepPanel({ part }) {
328
+ function WorkspaceGrepPanel(t0) {
329
+ const $ = c(8);
330
+ const { part } = t0;
131
331
  const output = part.state === "output-available" ? part.output : void 0;
132
- const matches = Array.isArray(output?.matches) ? output.matches.map((match) => match != null && typeof match === "object" && "context" in match ? match.context : match) : [];
332
+ let t1;
333
+ if ($[0] !== output) {
334
+ t1 = Array.isArray(output?.matches) ? output.matches.map(_temp) : [];
335
+ $[0] = output;
336
+ $[1] = t1;
337
+ } else t1 = $[1];
338
+ const matches = t1;
133
339
  const status = output && typeof output.totalMatches === "number" ? `${output.totalMatches} matches in ${String(output.filesWithMatches)} files` : void 0;
134
- return /* @__PURE__ */ jsx(ActivityPanel, {
135
- label: part.input?.query ?? "search",
136
- status,
137
- children: matches.length ? /* @__PURE__ */ jsx(ExecutionResult, {
340
+ const t2 = part.input?.query ?? "search";
341
+ let t3;
342
+ if ($[2] !== matches) {
343
+ t3 = matches.length ? /* @__PURE__ */ jsx(ExecutionResult, {
138
344
  result: matches,
139
345
  showSummary: false
140
- }) : null
141
- });
346
+ }) : null;
347
+ $[2] = matches;
348
+ $[3] = t3;
349
+ } else t3 = $[3];
350
+ let t4;
351
+ if ($[4] !== status || $[5] !== t2 || $[6] !== t3) {
352
+ t4 = /* @__PURE__ */ jsx(ActivityPanel, {
353
+ label: t2,
354
+ status,
355
+ children: t3
356
+ });
357
+ $[4] = status;
358
+ $[5] = t2;
359
+ $[6] = t3;
360
+ $[7] = t4;
361
+ } else t4 = $[7];
362
+ return t4;
363
+ }
364
+ function _temp(match) {
365
+ return match != null && typeof match === "object" && "context" in match ? match.context : match;
142
366
  }
143
367
  /** Skill panels show what the model actually received: the activated skill's
144
368
  body, the resource text, or the script result. */
145
- function ThinkChatSkillPanel({ part }) {
146
- const failure = toolFailurePanel(part, getToolName(part));
369
+ function ThinkChatSkillPanel(t0) {
370
+ const $ = c(13);
371
+ const { part } = t0;
372
+ let t1;
373
+ if ($[0] !== part) {
374
+ t1 = toolFailurePanel(part, getToolName(part));
375
+ $[0] = part;
376
+ $[1] = t1;
377
+ } else t1 = $[1];
378
+ const failure = t1;
147
379
  if (failure) return failure;
148
380
  switch (part.type) {
149
381
  case "tool-activate_skill": {
150
- const output = part.state === "output-available" ? part.output : void 0;
151
- return /* @__PURE__ */ jsx(ActivityPanel, {
152
- label: part.input?.name ?? "skill",
153
- text: output
154
- });
382
+ const output_1 = part.state === "output-available" ? part.output : void 0;
383
+ const t2 = part.input?.name ?? "skill";
384
+ let t3;
385
+ if ($[2] !== output_1 || $[3] !== t2) {
386
+ t3 = /* @__PURE__ */ jsx(ActivityPanel, {
387
+ label: t2,
388
+ text: output_1
389
+ });
390
+ $[2] = output_1;
391
+ $[3] = t2;
392
+ $[4] = t3;
393
+ } else t3 = $[4];
394
+ return t3;
155
395
  }
156
396
  case "tool-read_skill_resource": {
157
- const output = part.state === "output-available" ? part.output : void 0;
158
- return /* @__PURE__ */ jsx(ActivityPanel, {
159
- label: part.input?.path ?? "resource",
160
- text: output
161
- });
397
+ const output_0 = part.state === "output-available" ? part.output : void 0;
398
+ const t2 = part.input?.path ?? "resource";
399
+ let t3;
400
+ if ($[5] !== output_0 || $[6] !== t2) {
401
+ t3 = /* @__PURE__ */ jsx(ActivityPanel, {
402
+ label: t2,
403
+ text: output_0
404
+ });
405
+ $[5] = output_0;
406
+ $[6] = t2;
407
+ $[7] = t3;
408
+ } else t3 = $[7];
409
+ return t3;
162
410
  }
163
411
  case "tool-run_skill_script": {
164
412
  const output = part.state === "output-available" ? part.output : void 0;
165
- return /* @__PURE__ */ jsx(ActivityPanel, {
166
- label: part.input?.path ?? "script",
167
- children: output !== void 0 ? /* @__PURE__ */ jsx(ExecutionResult, {
413
+ const t2 = part.input?.path ?? "script";
414
+ let t3;
415
+ if ($[8] !== output) {
416
+ t3 = output !== void 0 ? /* @__PURE__ */ jsx(ExecutionResult, {
168
417
  result: output,
169
418
  showSummary: false
170
- }) : null
171
- });
419
+ }) : null;
420
+ $[8] = output;
421
+ $[9] = t3;
422
+ } else t3 = $[9];
423
+ let t4;
424
+ if ($[10] !== t2 || $[11] !== t3) {
425
+ t4 = /* @__PURE__ */ jsx(ActivityPanel, {
426
+ label: t2,
427
+ children: t3
428
+ });
429
+ $[10] = t2;
430
+ $[11] = t3;
431
+ $[12] = t4;
432
+ } else t4 = $[12];
433
+ return t4;
172
434
  }
173
435
  }
174
436
  }
175
437
  /** Session panels expose the durable context/search operation recorded in the
176
438
  UIMessage. The session itself remains server-owned; this is transcript
177
439
  rendering, not a client-side mirror of context state. */
178
- function ThinkChatSessionContextPanel({ part }) {
179
- const failure = toolFailurePanel(part, getToolName(part));
440
+ function ThinkChatSessionContextPanel(t0) {
441
+ const $ = c(4);
442
+ const { part } = t0;
443
+ let t1;
444
+ if ($[0] !== part) {
445
+ t1 = toolFailurePanel(part, getToolName(part));
446
+ $[0] = part;
447
+ $[1] = t1;
448
+ } else t1 = $[1];
449
+ const failure = t1;
180
450
  if (failure) return failure;
181
- return /* @__PURE__ */ jsx(SessionContextResultPanel, { part });
451
+ let t2;
452
+ if ($[2] !== part) {
453
+ t2 = /* @__PURE__ */ jsx(SessionContextResultPanel, { part });
454
+ $[2] = part;
455
+ $[3] = t2;
456
+ } else t2 = $[3];
457
+ return t2;
182
458
  }
183
- function SessionContextResultPanel({ part }) {
459
+ function SessionContextResultPanel(t0) {
460
+ const $ = c(18);
461
+ const { part } = t0;
184
462
  const output = part.state === "output-available" ? part.output : void 0;
185
- const outputIsError = isSessionContextToolFailure(part);
463
+ let t1;
464
+ if ($[0] !== part) {
465
+ t1 = isSessionContextToolFailure(part);
466
+ $[0] = part;
467
+ $[1] = t1;
468
+ } else t1 = $[1];
469
+ const outputIsError = t1;
186
470
  switch (part.type) {
187
471
  case "tool-set_context": {
188
472
  const input = part.input;
189
473
  const title = input?.metadata?.title;
190
- return /* @__PURE__ */ jsx(ActivityPanel, {
191
- label: title ? `${input?.label ?? "context"} / ${title}` : input?.label ?? "context",
192
- text: input?.content,
193
- status: output,
194
- error: outputIsError
195
- });
474
+ const t2 = title ? `${input?.label ?? "context"} / ${title}` : input?.label ?? "context";
475
+ const t3 = input?.content;
476
+ let t4;
477
+ if ($[2] !== output || $[3] !== outputIsError || $[4] !== t2 || $[5] !== t3) {
478
+ t4 = /* @__PURE__ */ jsx(ActivityPanel, {
479
+ label: t2,
480
+ text: t3,
481
+ status: output,
482
+ error: outputIsError
483
+ });
484
+ $[2] = output;
485
+ $[3] = outputIsError;
486
+ $[4] = t2;
487
+ $[5] = t3;
488
+ $[6] = t4;
489
+ } else t4 = $[6];
490
+ return t4;
196
491
  }
197
492
  case "tool-load_context":
198
- case "tool-unload_context": return /* @__PURE__ */ jsx(ActivityPanel, {
199
- label: `${part.input?.label ?? "context"} / ${part.input?.key ?? "entry"}`,
200
- status: outputIsError ? "error" : void 0,
201
- error: outputIsError,
202
- children: output !== void 0 ? /* @__PURE__ */ jsx(ExecutionResult, {
203
- result: output,
204
- showSummary: false
205
- }) : null
206
- });
493
+ case "tool-unload_context": {
494
+ const t2 = `${part.input?.label ?? "context"} / ${part.input?.key ?? "entry"}`;
495
+ const t3 = outputIsError ? "error" : void 0;
496
+ let t4;
497
+ if ($[7] !== output) {
498
+ t4 = output !== void 0 ? /* @__PURE__ */ jsx(ExecutionResult, {
499
+ result: output,
500
+ showSummary: false
501
+ }) : null;
502
+ $[7] = output;
503
+ $[8] = t4;
504
+ } else t4 = $[8];
505
+ let t5;
506
+ if ($[9] !== outputIsError || $[10] !== t2 || $[11] !== t3 || $[12] !== t4) {
507
+ t5 = /* @__PURE__ */ jsx(ActivityPanel, {
508
+ label: t2,
509
+ status: t3,
510
+ error: outputIsError,
511
+ children: t4
512
+ });
513
+ $[9] = outputIsError;
514
+ $[10] = t2;
515
+ $[11] = t3;
516
+ $[12] = t4;
517
+ $[13] = t5;
518
+ } else t5 = $[13];
519
+ return t5;
520
+ }
207
521
  case "tool-search_context":
208
- case "tool-session_search": return /* @__PURE__ */ jsx(SessionContextSearchPanel, {
209
- part,
210
- output,
211
- error: outputIsError
212
- });
522
+ case "tool-session_search": {
523
+ let t2;
524
+ if ($[14] !== output || $[15] !== outputIsError || $[16] !== part) {
525
+ t2 = /* @__PURE__ */ jsx(SessionContextSearchPanel, {
526
+ part,
527
+ output,
528
+ error: outputIsError
529
+ });
530
+ $[14] = output;
531
+ $[15] = outputIsError;
532
+ $[16] = part;
533
+ $[17] = t2;
534
+ } else t2 = $[17];
535
+ return t2;
536
+ }
213
537
  }
214
538
  }
215
- function SessionContextSearchPanel({ part, output, error }) {
216
- return /* @__PURE__ */ jsx(ActivityPanel, {
217
- label: part.input?.query ?? (part.type === "tool-search_context" ? "Context search" : "Conversation search"),
218
- status: error ? "error" : part.type === "tool-search_context" ? part.input?.label : void 0,
219
- error,
220
- children: output !== void 0 ? /* @__PURE__ */ jsx(ExecutionResult, {
539
+ function SessionContextSearchPanel(t0) {
540
+ const $ = c(7);
541
+ const { part, output, error } = t0;
542
+ const t1 = part.input?.query ?? (part.type === "tool-search_context" ? "Context search" : "Conversation search");
543
+ const t2 = error ? "error" : part.type === "tool-search_context" ? part.input?.label : void 0;
544
+ let t3;
545
+ if ($[0] !== output) {
546
+ t3 = output !== void 0 ? /* @__PURE__ */ jsx(ExecutionResult, {
221
547
  result: output,
222
548
  showSummary: false
223
- }) : null
224
- });
549
+ }) : null;
550
+ $[0] = output;
551
+ $[1] = t3;
552
+ } else t3 = $[1];
553
+ let t4;
554
+ if ($[2] !== error || $[3] !== t1 || $[4] !== t2 || $[5] !== t3) {
555
+ t4 = /* @__PURE__ */ jsx(ActivityPanel, {
556
+ label: t1,
557
+ status: t2,
558
+ error,
559
+ children: t3
560
+ });
561
+ $[2] = error;
562
+ $[3] = t1;
563
+ $[4] = t2;
564
+ $[5] = t3;
565
+ $[6] = t4;
566
+ } else t4 = $[6];
567
+ return t4;
225
568
  }
226
- function ThinkChatFetchPanel({ part }) {
569
+ function ThinkChatFetchPanel(t0) {
570
+ const $ = c(21);
571
+ const { part } = t0;
227
572
  const label = part.input?.url ?? part.input?.path ?? "fetch";
228
- const failure = toolFailurePanel(part, label);
573
+ let t1;
574
+ if ($[0] !== label || $[1] !== part) {
575
+ t1 = toolFailurePanel(part, label);
576
+ $[0] = label;
577
+ $[1] = part;
578
+ $[2] = t1;
579
+ } else t1 = $[2];
580
+ const failure = t1;
229
581
  if (failure) return failure;
230
582
  const output = part.state === "output-available" ? part.output : void 0;
231
- if (!output) return /* @__PURE__ */ jsx(ActivityPanel, { label });
232
- if (!output.ok) return /* @__PURE__ */ jsx(ActivityPanel, {
233
- label: output.finalUrl ?? label,
234
- text: executionErrorSummary(output.message),
235
- status: output.code,
236
- error: true
237
- });
238
- const body = output.json ?? output.body ?? (output.path ? { savedTo: output.path } : void 0);
239
- return /* @__PURE__ */ jsx(ActivityPanel, {
240
- label: output.finalUrl,
241
- status: `${output.status} · ${output.bytes} bytes${output.truncated ? " (truncated)" : ""}`,
242
- children: body !== void 0 ? /* @__PURE__ */ jsx(ExecutionResult, {
583
+ if (!output) {
584
+ let t2;
585
+ if ($[3] !== label) {
586
+ t2 = /* @__PURE__ */ jsx(ActivityPanel, { label });
587
+ $[3] = label;
588
+ $[4] = t2;
589
+ } else t2 = $[4];
590
+ return t2;
591
+ }
592
+ if (!output.ok) {
593
+ const t2 = output.finalUrl ?? label;
594
+ let t3;
595
+ if ($[5] !== output.message) {
596
+ t3 = executionErrorSummary(output.message);
597
+ $[5] = output.message;
598
+ $[6] = t3;
599
+ } else t3 = $[6];
600
+ let t4;
601
+ if ($[7] !== output.code || $[8] !== t2 || $[9] !== t3) {
602
+ t4 = /* @__PURE__ */ jsx(ActivityPanel, {
603
+ label: t2,
604
+ text: t3,
605
+ status: output.code,
606
+ error: true
607
+ });
608
+ $[7] = output.code;
609
+ $[8] = t2;
610
+ $[9] = t3;
611
+ $[10] = t4;
612
+ } else t4 = $[10];
613
+ return t4;
614
+ }
615
+ let t2;
616
+ if ($[11] !== output.body || $[12] !== output.json || $[13] !== output.path) {
617
+ t2 = output.json ?? output.body ?? (output.path ? { savedTo: output.path } : void 0);
618
+ $[11] = output.body;
619
+ $[12] = output.json;
620
+ $[13] = output.path;
621
+ $[14] = t2;
622
+ } else t2 = $[14];
623
+ const body = t2;
624
+ const t3 = `${output.status} · ${output.bytes} bytes${output.truncated ? " (truncated)" : ""}`;
625
+ let t4;
626
+ if ($[15] !== body) {
627
+ t4 = body !== void 0 ? /* @__PURE__ */ jsx(ExecutionResult, {
243
628
  result: body,
244
629
  showSummary: false
245
- }) : null
246
- });
630
+ }) : null;
631
+ $[15] = body;
632
+ $[16] = t4;
633
+ } else t4 = $[16];
634
+ let t5;
635
+ if ($[17] !== output.finalUrl || $[18] !== t3 || $[19] !== t4) {
636
+ t5 = /* @__PURE__ */ jsx(ActivityPanel, {
637
+ label: output.finalUrl,
638
+ status: t3,
639
+ children: t4
640
+ });
641
+ $[17] = output.finalUrl;
642
+ $[18] = t3;
643
+ $[19] = t4;
644
+ $[20] = t5;
645
+ } else t5 = $[20];
646
+ return t5;
247
647
  }
248
648
  function isBrowserLiveViewUrl(value) {
249
649
  if (!value || typeof value !== "object") return false;
@@ -279,78 +679,169 @@ function findBrowserResultMedia(value, depth = 0) {
279
679
  visit(value, depth);
280
680
  return media;
281
681
  }
282
- function ExecuteCodeView({ code, output, hideResult, isStreaming }) {
682
+ function ExecuteCodeView(t0) {
683
+ const $ = c(22);
684
+ const { code, output, hideResult, isStreaming } = t0;
283
685
  const calls = output && "calls" in output ? output.calls : void 0;
284
- return /* @__PURE__ */ jsxs(Fragment, { children: [
285
- /* @__PURE__ */ jsx(ExecutionCode, {
686
+ let t1;
687
+ if ($[0] !== code || $[1] !== isStreaming) {
688
+ t1 = /* @__PURE__ */ jsx(ExecutionCode, {
286
689
  code,
287
690
  isStreaming
288
- }),
289
- calls?.length ? /* @__PURE__ */ jsx(ToolCallAudit, { calls }) : null,
290
- output && "logs" in output && output.logs?.length ? /* @__PURE__ */ jsx(ExecutionResult, {
691
+ });
692
+ $[0] = code;
693
+ $[1] = isStreaming;
694
+ $[2] = t1;
695
+ } else t1 = $[2];
696
+ let t2;
697
+ if ($[3] !== calls) {
698
+ t2 = calls?.length ? /* @__PURE__ */ jsx(ToolCallAudit, { calls }) : null;
699
+ $[3] = calls;
700
+ $[4] = t2;
701
+ } else t2 = $[4];
702
+ let t3;
703
+ if ($[5] !== output) {
704
+ t3 = output && "logs" in output && output.logs?.length ? /* @__PURE__ */ jsx(ExecutionResult, {
291
705
  result: output.logs,
292
706
  showSummary: false
293
- }) : null,
294
- output?.status === "error" ? /* @__PURE__ */ jsx(ActivityOutput, { children: executionErrorSummary(output.error) }) : null,
295
- output?.status === "paused" && !calls?.length ? /* @__PURE__ */ jsx("ol", {
707
+ }) : null;
708
+ $[5] = output;
709
+ $[6] = t3;
710
+ } else t3 = $[6];
711
+ let t4;
712
+ if ($[7] !== output) {
713
+ t4 = output?.status === "error" ? /* @__PURE__ */ jsx(ActivityOutput, { children: executionErrorSummary(output.error) }) : null;
714
+ $[7] = output;
715
+ $[8] = t4;
716
+ } else t4 = $[8];
717
+ let t5;
718
+ if ($[9] !== calls?.length || $[10] !== output) {
719
+ t5 = output?.status === "paused" && !calls?.length ? /* @__PURE__ */ jsx("ol", {
296
720
  className: "think-chat-tool-panels__call-audit-list",
297
- children: output.pending.map((action) => /* @__PURE__ */ jsxs("li", { children: [/* @__PURE__ */ jsx("span", { children: pendingActionLabel(action) }), action.args !== void 0 ? /* @__PURE__ */ jsx(ExecutionResult, {
298
- result: action.args,
299
- showSummary: false
300
- }) : null] }, action.seq))
301
- }) : null,
302
- output?.status === "completed" && output.result !== void 0 && !hideResult ? /* @__PURE__ */ jsx(ExecutionResult, {
721
+ children: output.pending.map(_temp2)
722
+ }) : null;
723
+ $[9] = calls?.length;
724
+ $[10] = output;
725
+ $[11] = t5;
726
+ } else t5 = $[11];
727
+ let t6;
728
+ if ($[12] !== hideResult || $[13] !== output) {
729
+ t6 = output?.status === "completed" && output.result !== void 0 && !hideResult ? /* @__PURE__ */ jsx(ExecutionResult, {
303
730
  result: output.result,
304
731
  showSummary: false
305
- }) : null
306
- ] });
732
+ }) : null;
733
+ $[12] = hideResult;
734
+ $[13] = output;
735
+ $[14] = t6;
736
+ } else t6 = $[14];
737
+ let t7;
738
+ if ($[15] !== t1 || $[16] !== t2 || $[17] !== t3 || $[18] !== t4 || $[19] !== t5 || $[20] !== t6) {
739
+ t7 = /* @__PURE__ */ jsxs(Fragment, { children: [
740
+ t1,
741
+ t2,
742
+ t3,
743
+ t4,
744
+ t5,
745
+ t6
746
+ ] });
747
+ $[15] = t1;
748
+ $[16] = t2;
749
+ $[17] = t3;
750
+ $[18] = t4;
751
+ $[19] = t5;
752
+ $[20] = t6;
753
+ $[21] = t7;
754
+ } else t7 = $[21];
755
+ return t7;
307
756
  }
308
- function ExecutionCode({ code, isStreaming }) {
757
+ function _temp2(action) {
758
+ return /* @__PURE__ */ jsxs("li", { children: [/* @__PURE__ */ jsx("span", { children: pendingActionLabel(action) }), action.args !== void 0 ? /* @__PURE__ */ jsx(ExecutionResult, {
759
+ result: action.args,
760
+ showSummary: false
761
+ }) : null] }, action.seq);
762
+ }
763
+ function ExecutionCode(t0) {
764
+ const $ = c(4);
765
+ const { code, isStreaming } = t0;
309
766
  if (!code) return null;
310
- return /* @__PURE__ */ jsx(CodeBlock, {
311
- surface: "plain",
312
- wrap: true,
313
- code,
314
- isStreaming,
315
- language: "ts",
316
- children: /* @__PURE__ */ jsx(CodeBlockContainer, { children: /* @__PURE__ */ jsx(CodeBlockContent, {}) })
317
- });
767
+ let t1;
768
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
769
+ t1 = /* @__PURE__ */ jsx(CodeBlockContainer, { children: /* @__PURE__ */ jsx(CodeBlockContent, {}) });
770
+ $[0] = t1;
771
+ } else t1 = $[0];
772
+ let t2;
773
+ if ($[1] !== code || $[2] !== isStreaming) {
774
+ t2 = /* @__PURE__ */ jsx(CodeBlock, {
775
+ surface: "plain",
776
+ wrap: true,
777
+ code,
778
+ isStreaming,
779
+ language: "ts",
780
+ children: t1
781
+ });
782
+ $[1] = code;
783
+ $[2] = isStreaming;
784
+ $[3] = t2;
785
+ } else t2 = $[3];
786
+ return t2;
318
787
  }
319
788
  /** Durable connector calls emitted by Codemode 0.4.3. The ordered list keeps
320
789
  execution order and state available to assistive technology without adding
321
790
  another host-side activity protocol. */
322
- function ToolCallAudit({ calls }) {
323
- return /* @__PURE__ */ jsxs("div", {
324
- className: "think-chat-tool-panels__call-audit",
325
- children: [/* @__PURE__ */ jsx("span", {
791
+ function ToolCallAudit(t0) {
792
+ const $ = c(5);
793
+ const { calls } = t0;
794
+ let t1;
795
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
796
+ t1 = /* @__PURE__ */ jsx("span", {
326
797
  className: "think-chat-tool-panels__call-audit-label",
327
798
  children: "Calls"
328
- }), /* @__PURE__ */ jsx("ol", {
329
- className: "think-chat-tool-panels__call-audit-list",
330
- children: calls.map((call) => /* @__PURE__ */ jsxs("li", {
331
- className: "think-chat-tool-panels__call-audit-item",
332
- "data-state": call.state,
333
- children: [
334
- /* @__PURE__ */ jsx("span", {
335
- className: "think-chat-tool-panels__call-audit-code",
336
- children: call.connector === "__step" ? call.method : `${call.connector}.${call.method}`
337
- }),
338
- /* @__PURE__ */ jsx("span", {
339
- className: "think-chat-tool-panels__call-audit-state",
340
- children: toolCallStateLabel(call)
341
- }),
342
- call.args !== void 0 && call.args !== null ? /* @__PURE__ */ jsxs("details", { children: [/* @__PURE__ */ jsx("summary", { children: "Inputs" }), /* @__PURE__ */ jsx(ExecutionResult, {
343
- result: call.args,
344
- showSummary: false
345
- })] }) : null,
346
- call.result !== void 0 ? /* @__PURE__ */ jsx(ExecutionResult, {
347
- result: call.result,
348
- showSummary: false
349
- }) : null
350
- ]
351
- }, call.seq))
352
- })]
353
- });
799
+ });
800
+ $[0] = t1;
801
+ } else t1 = $[0];
802
+ let t2;
803
+ if ($[1] !== calls) {
804
+ t2 = calls.map(_temp3);
805
+ $[1] = calls;
806
+ $[2] = t2;
807
+ } else t2 = $[2];
808
+ let t3;
809
+ if ($[3] !== t2) {
810
+ t3 = /* @__PURE__ */ jsxs("div", {
811
+ className: "think-chat-tool-panels__call-audit",
812
+ children: [t1, /* @__PURE__ */ jsx("ol", {
813
+ className: "think-chat-tool-panels__call-audit-list",
814
+ children: t2
815
+ })]
816
+ });
817
+ $[3] = t2;
818
+ $[4] = t3;
819
+ } else t3 = $[4];
820
+ return t3;
821
+ }
822
+ function _temp3(call) {
823
+ return /* @__PURE__ */ jsxs("li", {
824
+ className: "think-chat-tool-panels__call-audit-item",
825
+ "data-state": call.state,
826
+ children: [
827
+ /* @__PURE__ */ jsx("span", {
828
+ className: "think-chat-tool-panels__call-audit-code",
829
+ children: call.connector === "__step" ? call.method : `${call.connector}.${call.method}`
830
+ }),
831
+ /* @__PURE__ */ jsx("span", {
832
+ className: "think-chat-tool-panels__call-audit-state",
833
+ children: toolCallStateLabel(call)
834
+ }),
835
+ call.args !== void 0 && call.args !== null ? /* @__PURE__ */ jsxs("details", { children: [/* @__PURE__ */ jsx("summary", { children: "Inputs" }), /* @__PURE__ */ jsx(ExecutionResult, {
836
+ result: call.args,
837
+ showSummary: false
838
+ })] }) : null,
839
+ call.result !== void 0 ? /* @__PURE__ */ jsx(ExecutionResult, {
840
+ result: call.result,
841
+ showSummary: false
842
+ }) : null
843
+ ]
844
+ }, call.seq);
354
845
  }
355
846
  function isHumanWait(action) {
356
847
  return action.connector === "human" && action.method === "waitFor";
@@ -438,75 +929,229 @@ function formatFollowUpDateTime(value) {
438
929
  const date = new Date(value);
439
930
  return [formatThinkExecutionShortTimestamp(date, ""), timeZoneNameFormat.formatToParts(date).find((part) => part.type === "timeZoneName")?.value].filter(Boolean).join(" ");
440
931
  }
441
- function fileName(path) {
442
- return path.split("/").filter(Boolean).at(-1) ?? path;
443
- }
444
932
  /** One-time follow-ups use the returned wake instant; list/cancel receipts stay distinct. */
445
- function ThinkChatFollowUpPanel({ part }) {
446
- const outcome = thinkToolOutcome(part);
447
- const generic = () => /* @__PURE__ */ jsx(ToolInvocationDetails, {
448
- part,
449
- outputError: outcome === "failed"
450
- });
451
- if (part.state !== "output-available" || part.preliminary || outcome) return generic();
452
- const receipt = readFollowUpReceipt(part);
453
- if (!receipt) return generic();
454
- if (receipt.operation === "schedule") return /* @__PURE__ */ jsx(ActivityPanel, {
455
- label: "Follow-up",
456
- status: "Scheduled follow-up",
457
- children: /* @__PURE__ */ jsxs("dl", {
458
- className: "think-chat-tool-panels__follow-up-details",
933
+ function ThinkChatFollowUpPanel(t0) {
934
+ const $ = c(22);
935
+ const { part } = t0;
936
+ let t1;
937
+ if ($[0] !== part) {
938
+ t1 = thinkToolOutcome(part);
939
+ $[0] = part;
940
+ $[1] = t1;
941
+ } else t1 = $[1];
942
+ const outcome = t1;
943
+ let t2;
944
+ if ($[2] !== outcome || $[3] !== part) {
945
+ t2 = () => /* @__PURE__ */ jsx(ToolInvocationDetails, {
946
+ part,
947
+ outputError: outcome === "failed"
948
+ });
949
+ $[2] = outcome;
950
+ $[3] = part;
951
+ $[4] = t2;
952
+ } else t2 = $[4];
953
+ const generic = t2;
954
+ if (part.state !== "output-available" || part.preliminary || outcome) {
955
+ let t3;
956
+ if ($[5] !== generic) {
957
+ t3 = generic();
958
+ $[5] = generic;
959
+ $[6] = t3;
960
+ } else t3 = $[6];
961
+ return t3;
962
+ }
963
+ let receipt;
964
+ let t3;
965
+ if ($[7] !== generic || $[8] !== part) {
966
+ t3 = Symbol.for("react.early_return_sentinel");
967
+ bb0: {
968
+ receipt = readFollowUpReceipt(part);
969
+ if (!receipt) {
970
+ let t4;
971
+ if ($[11] !== generic) {
972
+ t4 = generic();
973
+ $[11] = generic;
974
+ $[12] = t4;
975
+ } else t4 = $[12];
976
+ t3 = t4;
977
+ break bb0;
978
+ }
979
+ if (receipt.operation === "schedule") {
980
+ let t4;
981
+ if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
982
+ t4 = /* @__PURE__ */ jsx("dt", { children: "Scheduled for" });
983
+ $[13] = t4;
984
+ } else t4 = $[13];
985
+ let t5;
986
+ if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
987
+ t5 = /* @__PURE__ */ jsx("dt", { children: "Instructions" });
988
+ $[14] = t5;
989
+ } else t5 = $[14];
990
+ const t6 = /* @__PURE__ */ jsxs("dl", {
991
+ className: "think-chat-tool-panels__follow-up-details",
992
+ children: [
993
+ t4,
994
+ /* @__PURE__ */ jsx("dd", { children: /* @__PURE__ */ jsx("time", {
995
+ dateTime: receipt.scheduledFor,
996
+ children: formatFollowUpDateTime(receipt.scheduledFor)
997
+ }) }),
998
+ t5,
999
+ /* @__PURE__ */ jsx("dd", { children: receipt.prompt })
1000
+ ]
1001
+ });
1002
+ let t7;
1003
+ if ($[15] !== t6) {
1004
+ t7 = /* @__PURE__ */ jsx(ActivityPanel, {
1005
+ label: "Follow-up",
1006
+ status: "Scheduled follow-up",
1007
+ children: t6
1008
+ });
1009
+ $[15] = t6;
1010
+ $[16] = t7;
1011
+ } else t7 = $[16];
1012
+ t3 = t7;
1013
+ break bb0;
1014
+ }
1015
+ if (receipt.operation === "list") {
1016
+ const t4 = receipt.followUps.length === 0 ? "No follow-ups scheduled" : `${receipt.followUps.length} scheduled`;
1017
+ const t5 = receipt.followUps.length ? /* @__PURE__ */ jsx("ol", {
1018
+ className: "think-chat-tool-panels__follow-up-list",
1019
+ children: receipt.followUps.map(_temp4)
1020
+ }) : null;
1021
+ let t6;
1022
+ if ($[17] !== t4 || $[18] !== t5) {
1023
+ t6 = /* @__PURE__ */ jsx(ActivityPanel, {
1024
+ label: "Follow-ups",
1025
+ status: t4,
1026
+ children: t5
1027
+ });
1028
+ $[17] = t4;
1029
+ $[18] = t5;
1030
+ $[19] = t6;
1031
+ } else t6 = $[19];
1032
+ t3 = t6;
1033
+ break bb0;
1034
+ }
1035
+ }
1036
+ $[7] = generic;
1037
+ $[8] = part;
1038
+ $[9] = receipt;
1039
+ $[10] = t3;
1040
+ } else {
1041
+ receipt = $[9];
1042
+ t3 = $[10];
1043
+ }
1044
+ if (t3 !== Symbol.for("react.early_return_sentinel")) return t3;
1045
+ const t4 = receipt.cancelled ? "Cancelled follow-up" : "No follow-up cancelled";
1046
+ let t5;
1047
+ if ($[20] !== t4) {
1048
+ t5 = /* @__PURE__ */ jsx(ActivityPanel, {
1049
+ label: "Follow-up",
1050
+ status: t4
1051
+ });
1052
+ $[20] = t4;
1053
+ $[21] = t5;
1054
+ } else t5 = $[21];
1055
+ return t5;
1056
+ }
1057
+ function _temp4(item) {
1058
+ return /* @__PURE__ */ jsxs("li", { children: [/* @__PURE__ */ jsx("time", {
1059
+ dateTime: item.scheduledFor,
1060
+ children: formatFollowUpDateTime(item.scheduledFor)
1061
+ }), /* @__PURE__ */ jsx("span", { children: item.prompt })] }, item.id);
1062
+ }
1063
+ function RookExecutePanel(t0) {
1064
+ const $ = c(28);
1065
+ const { inputValue, outputValue, isStreaming } = t0;
1066
+ let T0;
1067
+ let T1;
1068
+ let input;
1069
+ let output;
1070
+ let t1;
1071
+ let t2;
1072
+ let t3;
1073
+ let t4;
1074
+ if ($[0] !== inputValue || $[1] !== outputValue) {
1075
+ input = asRecord(inputValue);
1076
+ let t5;
1077
+ if ($[10] !== outputValue) {
1078
+ t5 = asRecord(outputValue);
1079
+ $[10] = outputValue;
1080
+ $[11] = t5;
1081
+ } else t5 = $[11];
1082
+ output = t5;
1083
+ const failed = output?.status === "error";
1084
+ T1 = ActivityPanel;
1085
+ t2 = "Code";
1086
+ t3 = failed ? "error" : output?.status === "completed" ? "completed" : void 0;
1087
+ t4 = failed;
1088
+ T0 = ExecutionCode;
1089
+ t1 = stringField(input, "code") ?? "";
1090
+ $[0] = inputValue;
1091
+ $[1] = outputValue;
1092
+ $[2] = T0;
1093
+ $[3] = T1;
1094
+ $[4] = input;
1095
+ $[5] = output;
1096
+ $[6] = t1;
1097
+ $[7] = t2;
1098
+ $[8] = t3;
1099
+ $[9] = t4;
1100
+ } else {
1101
+ T0 = $[2];
1102
+ T1 = $[3];
1103
+ input = $[4];
1104
+ output = $[5];
1105
+ t1 = $[6];
1106
+ t2 = $[7];
1107
+ t3 = $[8];
1108
+ t4 = $[9];
1109
+ }
1110
+ let t5;
1111
+ if ($[12] !== T0 || $[13] !== isStreaming || $[14] !== t1) {
1112
+ t5 = /* @__PURE__ */ jsx(T0, {
1113
+ code: t1,
1114
+ isStreaming
1115
+ });
1116
+ $[12] = T0;
1117
+ $[13] = isStreaming;
1118
+ $[14] = t1;
1119
+ $[15] = t5;
1120
+ } else t5 = $[15];
1121
+ let t6;
1122
+ if ($[16] !== input) {
1123
+ t6 = input ? /* @__PURE__ */ jsx(RookExecuteInput, { input }) : null;
1124
+ $[16] = input;
1125
+ $[17] = t6;
1126
+ } else t6 = $[17];
1127
+ let t7;
1128
+ if ($[18] !== output) {
1129
+ t7 = output ? /* @__PURE__ */ jsx(RookExecuteOutput, { output }) : null;
1130
+ $[18] = output;
1131
+ $[19] = t7;
1132
+ } else t7 = $[19];
1133
+ let t8;
1134
+ if ($[20] !== T1 || $[21] !== t2 || $[22] !== t3 || $[23] !== t4 || $[24] !== t5 || $[25] !== t6 || $[26] !== t7) {
1135
+ t8 = /* @__PURE__ */ jsxs(T1, {
1136
+ label: t2,
1137
+ status: t3,
1138
+ error: t4,
459
1139
  children: [
460
- /* @__PURE__ */ jsx("dt", { children: "Checkpoint" }),
461
- /* @__PURE__ */ jsx("dd", { children: receipt.id }),
462
- /* @__PURE__ */ jsx("dt", { children: "Scheduled for" }),
463
- /* @__PURE__ */ jsx("dd", { children: /* @__PURE__ */ jsx("time", {
464
- dateTime: receipt.scheduledFor,
465
- children: formatFollowUpDateTime(receipt.scheduledFor)
466
- }) }),
467
- /* @__PURE__ */ jsx("dt", { children: "Instructions" }),
468
- /* @__PURE__ */ jsx("dd", { children: receipt.prompt })
1140
+ t5,
1141
+ t6,
1142
+ t7
469
1143
  ]
470
- })
471
- });
472
- if (receipt.operation === "list") return /* @__PURE__ */ jsx(ActivityPanel, {
473
- label: "Follow-ups",
474
- status: receipt.followUps.length === 0 ? "No follow-ups scheduled" : `${receipt.followUps.length} scheduled`,
475
- children: receipt.followUps.length ? /* @__PURE__ */ jsx("ol", {
476
- className: "think-chat-tool-panels__follow-up-list",
477
- children: receipt.followUps.map((item) => /* @__PURE__ */ jsxs("li", { children: [
478
- /* @__PURE__ */ jsx("time", {
479
- dateTime: item.scheduledFor,
480
- children: formatFollowUpDateTime(item.scheduledFor)
481
- }),
482
- /* @__PURE__ */ jsx("span", { children: item.prompt }),
483
- /* @__PURE__ */ jsx("span", { children: item.id })
484
- ] }, item.id))
485
- }) : null
486
- });
487
- return /* @__PURE__ */ jsx(ActivityPanel, {
488
- label: "Follow-up",
489
- status: receipt.cancelled ? "Cancelled follow-up" : "No follow-up cancelled",
490
- children: /* @__PURE__ */ jsx(ActivityOutput, { children: `Checkpoint: ${receipt.id}` })
491
- });
492
- }
493
- function RookExecutePanel({ inputValue, outputValue, isStreaming }) {
494
- const input = asRecord(inputValue);
495
- const output = asRecord(outputValue);
496
- const failed = output?.status === "error";
497
- return /* @__PURE__ */ jsxs(ActivityPanel, {
498
- label: "Code",
499
- status: failed ? "error" : output?.status === "completed" ? "completed" : void 0,
500
- error: failed,
501
- children: [
502
- /* @__PURE__ */ jsx(ExecutionCode, {
503
- code: stringField(input, "code") ?? "",
504
- isStreaming
505
- }),
506
- input ? /* @__PURE__ */ jsx(RookExecuteInput, { input }) : null,
507
- output ? /* @__PURE__ */ jsx(RookExecuteOutput, { output }) : null
508
- ]
509
- });
1144
+ });
1145
+ $[20] = T1;
1146
+ $[21] = t2;
1147
+ $[22] = t3;
1148
+ $[23] = t4;
1149
+ $[24] = t5;
1150
+ $[25] = t6;
1151
+ $[26] = t7;
1152
+ $[27] = t8;
1153
+ } else t8 = $[27];
1154
+ return t8;
510
1155
  }
511
1156
  function executionResultSection(label, result) {
512
1157
  return /* @__PURE__ */ jsxs("section", {
@@ -528,33 +1173,107 @@ function executionFileSection(label, filePath) {
528
1173
  children: label
529
1174
  }), /* @__PURE__ */ jsx(WorkspaceFileLink, {
530
1175
  href: filePath,
531
- children: fileName(filePath)
1176
+ children: workspaceBasename(filePath)
532
1177
  })]
533
1178
  });
534
1179
  }
535
1180
  /** The saved code and the values the run was given. */
536
- function RookExecuteInput({ input }) {
537
- const path = stringField(input, "path");
538
- const args = Object.hasOwn(input, "args") ? input.args : void 0;
539
- const table = Object.hasOwn(input, "table") ? input.table : void 0;
540
- const preview = Object.hasOwn(input, "preview") ? input.preview : void 0;
541
- return /* @__PURE__ */ jsxs(Fragment, { children: [
542
- path ? executionFileSection("Code", path) : null,
543
- args !== void 0 ? executionResultSection("Arguments", args) : null,
544
- table !== void 0 ? executionResultSection("Table", table) : null,
545
- preview !== void 0 ? executionResultSection("Preview", preview) : null
546
- ] });
1181
+ function RookExecuteInput(t0) {
1182
+ const $ = c(16);
1183
+ const { input } = t0;
1184
+ let args;
1185
+ let preview;
1186
+ let t1;
1187
+ let table;
1188
+ if ($[0] !== input) {
1189
+ const path = stringField(input, "path");
1190
+ args = Object.hasOwn(input, "args") ? input.args : void 0;
1191
+ table = Object.hasOwn(input, "table") ? input.table : void 0;
1192
+ preview = Object.hasOwn(input, "preview") ? input.preview : void 0;
1193
+ t1 = path ? executionFileSection("Code", path) : null;
1194
+ $[0] = input;
1195
+ $[1] = args;
1196
+ $[2] = preview;
1197
+ $[3] = t1;
1198
+ $[4] = table;
1199
+ } else {
1200
+ args = $[1];
1201
+ preview = $[2];
1202
+ t1 = $[3];
1203
+ table = $[4];
1204
+ }
1205
+ let t2;
1206
+ if ($[5] !== args) {
1207
+ t2 = args !== void 0 ? executionResultSection("Arguments", args) : null;
1208
+ $[5] = args;
1209
+ $[6] = t2;
1210
+ } else t2 = $[6];
1211
+ let t3;
1212
+ if ($[7] !== table) {
1213
+ t3 = table !== void 0 ? executionResultSection("Table", table) : null;
1214
+ $[7] = table;
1215
+ $[8] = t3;
1216
+ } else t3 = $[8];
1217
+ let t4;
1218
+ if ($[9] !== preview) {
1219
+ t4 = preview !== void 0 ? executionResultSection("Preview", preview) : null;
1220
+ $[9] = preview;
1221
+ $[10] = t4;
1222
+ } else t4 = $[10];
1223
+ let t5;
1224
+ if ($[11] !== t1 || $[12] !== t2 || $[13] !== t3 || $[14] !== t4) {
1225
+ t5 = /* @__PURE__ */ jsxs(Fragment, { children: [
1226
+ t1,
1227
+ t2,
1228
+ t3,
1229
+ t4
1230
+ ] });
1231
+ $[11] = t1;
1232
+ $[12] = t2;
1233
+ $[13] = t3;
1234
+ $[14] = t4;
1235
+ $[15] = t5;
1236
+ } else t5 = $[15];
1237
+ return t5;
547
1238
  }
548
1239
  /** The run's receipt, in the order a reader checks it. */
549
- function RookExecuteOutput({ output }) {
550
- const error = stringField(output, "error");
551
- const failureKind = output.status === "error" && typeof output.kind === "string" && ROOK_EXECUTION_FAILURE_KINDS.has(output.kind) ? output.kind : void 0;
552
- const logs = isStringArray(output.logs) ? output.logs : void 0;
553
- const files = isRookExecutionFiles(output.files) ? output.files : void 0;
554
- const outputPath = stringField(output, "path");
555
- const saveError = stringField(output, "saveError");
556
- return /* @__PURE__ */ jsxs(Fragment, { children: [
557
- error ? /* @__PURE__ */ jsxs("section", {
1240
+ function RookExecuteOutput(t0) {
1241
+ const $ = c(29);
1242
+ const { output } = t0;
1243
+ let t1;
1244
+ let t2;
1245
+ let t3;
1246
+ let t4;
1247
+ let t5;
1248
+ let t6;
1249
+ let t7;
1250
+ if ($[0] !== output) {
1251
+ const error = stringField(output, "error");
1252
+ let t8;
1253
+ if ($[8] !== output.kind || $[9] !== output.status) {
1254
+ t8 = output.status === "error" && typeof output.kind === "string" && ROOK_EXECUTION_FAILURE_KINDS.has(output.kind) ? output.kind : void 0;
1255
+ $[8] = output.kind;
1256
+ $[9] = output.status;
1257
+ $[10] = t8;
1258
+ } else t8 = $[10];
1259
+ const failureKind = t8;
1260
+ let t9;
1261
+ if ($[11] !== output.logs) {
1262
+ t9 = isStringArray(output.logs) ? output.logs : void 0;
1263
+ $[11] = output.logs;
1264
+ $[12] = t9;
1265
+ } else t9 = $[12];
1266
+ const logs = t9;
1267
+ let t10;
1268
+ if ($[13] !== output.files) {
1269
+ t10 = isRookExecutionFiles(output.files) ? output.files : void 0;
1270
+ $[13] = output.files;
1271
+ $[14] = t10;
1272
+ } else t10 = $[14];
1273
+ const files = t10;
1274
+ const outputPath = stringField(output, "path");
1275
+ const saveError = stringField(output, "saveError");
1276
+ t1 = error ? /* @__PURE__ */ jsxs("section", {
558
1277
  className: "think-chat-tool-panels__execution-section",
559
1278
  children: [
560
1279
  /* @__PURE__ */ jsx("span", {
@@ -568,163 +1287,426 @@ function RookExecuteOutput({ output }) {
568
1287
  children: "error"
569
1288
  })
570
1289
  ]
571
- }) : null,
572
- failureKind ? /* @__PURE__ */ jsxs("section", {
573
- className: "think-chat-tool-panels__execution-section",
574
- children: [/* @__PURE__ */ jsx("span", {
575
- className: "activity__shell-label",
576
- children: "Failure kind"
577
- }), /* @__PURE__ */ jsx(ActivityOutput, { children: failureKind })]
578
- }) : null,
579
- logs?.length ? executionResultSection("Logs", logs) : null,
580
- files?.length ? executionResultSection("Files", files) : null,
581
- outputPath ? executionFileSection("Code", outputPath) : null,
582
- Object.hasOwn(output, "result") ? executionResultSection("Result", output.result) : null,
583
- saveError ? /* @__PURE__ */ jsxs("section", {
1290
+ }) : null;
1291
+ if ($[15] !== failureKind) {
1292
+ t2 = failureKind ? /* @__PURE__ */ jsxs("section", {
1293
+ className: "think-chat-tool-panels__execution-section",
1294
+ children: [/* @__PURE__ */ jsx("span", {
1295
+ className: "activity__shell-label",
1296
+ children: "Failure kind"
1297
+ }), /* @__PURE__ */ jsx(ActivityOutput, { children: failureKind })]
1298
+ }) : null;
1299
+ $[15] = failureKind;
1300
+ $[16] = t2;
1301
+ } else t2 = $[16];
1302
+ if ($[17] !== logs) {
1303
+ t3 = logs?.length ? executionResultSection("Logs", logs) : null;
1304
+ $[17] = logs;
1305
+ $[18] = t3;
1306
+ } else t3 = $[18];
1307
+ if ($[19] !== files) {
1308
+ t4 = files?.length ? executionResultSection("Files", files) : null;
1309
+ $[19] = files;
1310
+ $[20] = t4;
1311
+ } else t4 = $[20];
1312
+ t5 = outputPath ? executionFileSection("Code", outputPath) : null;
1313
+ t6 = Object.hasOwn(output, "result") ? executionResultSection("Result", output.result) : null;
1314
+ t7 = saveError ? /* @__PURE__ */ jsxs("section", {
584
1315
  className: "think-chat-tool-panels__execution-section",
585
1316
  children: [/* @__PURE__ */ jsx("span", {
586
1317
  className: "activity__shell-label",
587
1318
  children: "Code not saved"
588
1319
  }), /* @__PURE__ */ jsx(ActivityOutput, { children: executionErrorSummary(saveError) })]
589
- }) : null
590
- ] });
1320
+ }) : null;
1321
+ $[0] = output;
1322
+ $[1] = t1;
1323
+ $[2] = t2;
1324
+ $[3] = t3;
1325
+ $[4] = t4;
1326
+ $[5] = t5;
1327
+ $[6] = t6;
1328
+ $[7] = t7;
1329
+ } else {
1330
+ t1 = $[1];
1331
+ t2 = $[2];
1332
+ t3 = $[3];
1333
+ t4 = $[4];
1334
+ t5 = $[5];
1335
+ t6 = $[6];
1336
+ t7 = $[7];
1337
+ }
1338
+ let t8;
1339
+ if ($[21] !== t1 || $[22] !== t2 || $[23] !== t3 || $[24] !== t4 || $[25] !== t5 || $[26] !== t6 || $[27] !== t7) {
1340
+ t8 = /* @__PURE__ */ jsxs(Fragment, { children: [
1341
+ t1,
1342
+ t2,
1343
+ t3,
1344
+ t4,
1345
+ t5,
1346
+ t6,
1347
+ t7
1348
+ ] });
1349
+ $[21] = t1;
1350
+ $[22] = t2;
1351
+ $[23] = t3;
1352
+ $[24] = t4;
1353
+ $[25] = t5;
1354
+ $[26] = t6;
1355
+ $[27] = t7;
1356
+ $[28] = t8;
1357
+ } else t8 = $[28];
1358
+ return t8;
591
1359
  }
592
1360
  /** Route only discriminable outputs; ambiguous contracts remain generic data. */
593
- function ThinkChatExecutePanel({ part }) {
594
- const failure = toolFailurePanel(part, "Code");
1361
+ function ThinkChatExecutePanel(t0) {
1362
+ const $ = c(32);
1363
+ const { part } = t0;
1364
+ let t1;
1365
+ if ($[0] !== part) {
1366
+ t1 = toolFailurePanel(part, "Code");
1367
+ $[0] = part;
1368
+ $[1] = t1;
1369
+ } else t1 = $[1];
1370
+ const failure = t1;
595
1371
  if (failure) return failure;
596
- const input = asRecord(part.input);
597
- const code = stringField(input, "code") ?? "";
1372
+ let input;
1373
+ let t2;
1374
+ if ($[2] !== part.input) {
1375
+ input = asRecord(part.input);
1376
+ t2 = stringField(input, "code") ?? "";
1377
+ $[2] = part.input;
1378
+ $[3] = input;
1379
+ $[4] = t2;
1380
+ } else {
1381
+ input = $[3];
1382
+ t2 = $[4];
1383
+ }
1384
+ const code = t2;
598
1385
  const outputValue = part.state === "output-available" ? part.output : void 0;
599
- if (part.state === "output-available" && part.preliminary) return /* @__PURE__ */ jsx(ToolInvocationDetails, { part });
600
- if (part.state === "output-available" && isCodemodePanelOutput(outputValue)) return /* @__PURE__ */ jsx(ActivityPanel, {
601
- label: "Code",
602
- status: executeStatusText(outputValue),
603
- error: outputValue.status === "error",
604
- children: /* @__PURE__ */ jsx(ExecuteCodeView, {
605
- code,
606
- output: outputValue,
607
- isStreaming: false
608
- })
609
- });
610
- if (part.state === "output-available" && isRookExecuteOutput(outputValue)) return /* @__PURE__ */ jsx(RookExecutePanel, {
611
- inputValue: part.input,
612
- outputValue,
613
- isStreaming: false
614
- });
615
- if (part.state !== "output-available" && typeof input?.path === "string") return /* @__PURE__ */ jsx(RookExecutePanel, {
616
- inputValue: part.input,
617
- outputValue: void 0,
618
- isStreaming: part.state === "input-streaming"
619
- });
620
- if (part.state === "output-available") return /* @__PURE__ */ jsx(ToolInvocationDetails, {
621
- part,
622
- outputError: thinkToolOutcome(part) === "failed"
623
- });
624
- if (!code) return /* @__PURE__ */ jsx(ToolInvocationDetails, { part });
625
- return /* @__PURE__ */ jsx(ActivityPanel, {
626
- label: "Code",
627
- children: /* @__PURE__ */ jsx(ExecuteCodeView, {
628
- code,
629
- output: void 0,
630
- isStreaming: part.state === "input-streaming"
631
- })
632
- });
1386
+ if (part.state === "output-available" && part.preliminary) {
1387
+ let t3;
1388
+ if ($[5] !== part) {
1389
+ t3 = /* @__PURE__ */ jsx(ToolInvocationDetails, { part });
1390
+ $[5] = part;
1391
+ $[6] = t3;
1392
+ } else t3 = $[6];
1393
+ return t3;
1394
+ }
1395
+ if (part.state === "output-available" && isCodemodePanelOutput(outputValue)) {
1396
+ let t3;
1397
+ if ($[7] !== outputValue) {
1398
+ t3 = executeStatusText(outputValue);
1399
+ $[7] = outputValue;
1400
+ $[8] = t3;
1401
+ } else t3 = $[8];
1402
+ const t4 = outputValue.status === "error";
1403
+ let t5;
1404
+ if ($[9] !== code || $[10] !== outputValue) {
1405
+ t5 = /* @__PURE__ */ jsx(ExecuteCodeView, {
1406
+ code,
1407
+ output: outputValue,
1408
+ isStreaming: false
1409
+ });
1410
+ $[9] = code;
1411
+ $[10] = outputValue;
1412
+ $[11] = t5;
1413
+ } else t5 = $[11];
1414
+ let t6;
1415
+ if ($[12] !== t3 || $[13] !== t4 || $[14] !== t5) {
1416
+ t6 = /* @__PURE__ */ jsx(ActivityPanel, {
1417
+ label: "Code",
1418
+ status: t3,
1419
+ error: t4,
1420
+ children: t5
1421
+ });
1422
+ $[12] = t3;
1423
+ $[13] = t4;
1424
+ $[14] = t5;
1425
+ $[15] = t6;
1426
+ } else t6 = $[15];
1427
+ return t6;
1428
+ }
1429
+ if (part.state === "output-available" && isRookExecuteOutput(outputValue)) {
1430
+ let t3;
1431
+ if ($[16] !== outputValue || $[17] !== part.input) {
1432
+ t3 = /* @__PURE__ */ jsx(RookExecutePanel, {
1433
+ inputValue: part.input,
1434
+ outputValue,
1435
+ isStreaming: false
1436
+ });
1437
+ $[16] = outputValue;
1438
+ $[17] = part.input;
1439
+ $[18] = t3;
1440
+ } else t3 = $[18];
1441
+ return t3;
1442
+ }
1443
+ if (part.state !== "output-available" && typeof input?.path === "string") {
1444
+ const t3 = part.state === "input-streaming";
1445
+ let t4;
1446
+ if ($[19] !== part.input || $[20] !== t3) {
1447
+ t4 = /* @__PURE__ */ jsx(RookExecutePanel, {
1448
+ inputValue: part.input,
1449
+ outputValue: void 0,
1450
+ isStreaming: t3
1451
+ });
1452
+ $[19] = part.input;
1453
+ $[20] = t3;
1454
+ $[21] = t4;
1455
+ } else t4 = $[21];
1456
+ return t4;
1457
+ }
1458
+ if (part.state === "output-available") {
1459
+ let t3;
1460
+ if ($[22] !== part) {
1461
+ t3 = thinkToolOutcome(part);
1462
+ $[22] = part;
1463
+ $[23] = t3;
1464
+ } else t3 = $[23];
1465
+ const t4 = t3 === "failed";
1466
+ let t5;
1467
+ if ($[24] !== part || $[25] !== t4) {
1468
+ t5 = /* @__PURE__ */ jsx(ToolInvocationDetails, {
1469
+ part,
1470
+ outputError: t4
1471
+ });
1472
+ $[24] = part;
1473
+ $[25] = t4;
1474
+ $[26] = t5;
1475
+ } else t5 = $[26];
1476
+ return t5;
1477
+ }
1478
+ if (!code) {
1479
+ let t3;
1480
+ if ($[27] !== part) {
1481
+ t3 = /* @__PURE__ */ jsx(ToolInvocationDetails, { part });
1482
+ $[27] = part;
1483
+ $[28] = t3;
1484
+ } else t3 = $[28];
1485
+ return t3;
1486
+ }
1487
+ const t3 = part.state === "input-streaming";
1488
+ let t4;
1489
+ if ($[29] !== code || $[30] !== t3) {
1490
+ t4 = /* @__PURE__ */ jsx(ActivityPanel, {
1491
+ label: "Code",
1492
+ children: /* @__PURE__ */ jsx(ExecuteCodeView, {
1493
+ code,
1494
+ output: void 0,
1495
+ isStreaming: t3
1496
+ })
1497
+ });
1498
+ $[29] = code;
1499
+ $[30] = t3;
1500
+ $[31] = t4;
1501
+ } else t4 = $[31];
1502
+ return t4;
633
1503
  }
634
- function ThinkChatBrowserPanel({ part }) {
635
- const [seenAt] = React.useState(() => Date.now());
636
- const failure = toolFailurePanel(part, "Browser");
1504
+ function ThinkChatBrowserPanel(t0) {
1505
+ const $ = c(13);
1506
+ const { part } = t0;
1507
+ const [seenAt] = React.useState(_temp5);
1508
+ let t1;
1509
+ if ($[0] !== part) {
1510
+ t1 = toolFailurePanel(part, "Browser");
1511
+ $[0] = part;
1512
+ $[1] = t1;
1513
+ } else t1 = $[1];
1514
+ const failure = t1;
637
1515
  if (failure) return failure;
638
- if (part.type === "tool-browser_execute") return /* @__PURE__ */ jsx(ThinkChatBrowserExecutePanel, {
639
- part,
640
- seenAt
641
- });
1516
+ if (part.type === "tool-browser_execute") {
1517
+ let t2;
1518
+ if ($[2] !== part || $[3] !== seenAt) {
1519
+ t2 = /* @__PURE__ */ jsx(ThinkChatBrowserExecutePanel, {
1520
+ part,
1521
+ seenAt
1522
+ });
1523
+ $[2] = part;
1524
+ $[3] = seenAt;
1525
+ $[4] = t2;
1526
+ } else t2 = $[4];
1527
+ return t2;
1528
+ }
642
1529
  const output = part.state === "output-available" ? part.output : void 0;
643
- const label = displayUrl(part.input?.url) || "page";
1530
+ let t2;
1531
+ if ($[5] !== part.input?.url) {
1532
+ t2 = displayUrl(part.input?.url) || "page";
1533
+ $[5] = part.input?.url;
1534
+ $[6] = t2;
1535
+ } else t2 = $[6];
1536
+ const label = t2;
644
1537
  const status = part.type === "tool-browser_links" && Array.isArray(output) ? `${output.length} links` : void 0;
645
- return /* @__PURE__ */ jsx(ActivityPanel, {
646
- label,
647
- status,
648
- children: output !== void 0 ? /* @__PURE__ */ jsx(ExecutionResult, {
1538
+ let t3;
1539
+ if ($[7] !== output) {
1540
+ t3 = output !== void 0 ? /* @__PURE__ */ jsx(ExecutionResult, {
649
1541
  result: output,
650
1542
  showSummary: false
651
- }) : null
652
- });
1543
+ }) : null;
1544
+ $[7] = output;
1545
+ $[8] = t3;
1546
+ } else t3 = $[8];
1547
+ let t4;
1548
+ if ($[9] !== label || $[10] !== status || $[11] !== t3) {
1549
+ t4 = /* @__PURE__ */ jsx(ActivityPanel, {
1550
+ label,
1551
+ status,
1552
+ children: t3
1553
+ });
1554
+ $[9] = label;
1555
+ $[10] = status;
1556
+ $[11] = t3;
1557
+ $[12] = t4;
1558
+ } else t4 = $[12];
1559
+ return t4;
1560
+ }
1561
+ function _temp5() {
1562
+ return Date.now();
653
1563
  }
654
- function ThinkChatBrowserExecutePanel({ part, seenAt }) {
1564
+ function ThinkChatBrowserExecutePanel(t0) {
1565
+ const $ = c(21);
1566
+ const { part, seenAt } = t0;
655
1567
  const output = part.state === "output-available" ? part.output : void 0;
656
1568
  const code = part.input?.code ?? "";
657
- const media = output?.status === "completed" ? findBrowserResultMedia(output.result) : {};
1569
+ let t1;
1570
+ if ($[0] !== output) {
1571
+ t1 = output?.status === "completed" ? findBrowserResultMedia(output.result) : {};
1572
+ $[0] = output;
1573
+ $[1] = t1;
1574
+ } else t1 = $[1];
1575
+ const media = t1;
658
1576
  const hasMedia = Boolean(media.liveView || media.screenshot);
659
- const browserView = media.liveView ? /* @__PURE__ */ jsx(BrowserLiveView, {
660
- source: media.liveView,
661
- receivedAt: seenAt,
662
- fallback: media.screenshot ? /* @__PURE__ */ jsx("img", {
1577
+ let t2;
1578
+ if ($[2] !== media.liveView || $[3] !== media.screenshot || $[4] !== seenAt) {
1579
+ t2 = media.liveView ? /* @__PURE__ */ jsx(BrowserLiveView, {
1580
+ source: media.liveView,
1581
+ receivedAt: seenAt,
1582
+ fallback: media.screenshot ? /* @__PURE__ */ jsx("img", {
1583
+ src: media.screenshot,
1584
+ alt: "Last browser state",
1585
+ width: 16,
1586
+ height: 10
1587
+ }) : void 0
1588
+ }) : media.screenshot ? /* @__PURE__ */ jsx("img", {
1589
+ className: "think-chat-tool-panels__browser-screenshot",
663
1590
  src: media.screenshot,
664
- alt: "Last browser state",
1591
+ alt: "Browser screenshot",
665
1592
  width: 16,
666
1593
  height: 10
667
- }) : void 0
668
- }) : media.screenshot ? /* @__PURE__ */ jsx("img", {
669
- className: "think-chat-tool-panels__browser-screenshot",
670
- src: media.screenshot,
671
- alt: "Browser screenshot",
672
- width: 16,
673
- height: 10
674
- }) : null;
675
- const codeView = /* @__PURE__ */ jsx(ExecuteCodeView, {
676
- code,
677
- output,
678
- hideResult: hasMedia,
679
- isStreaming: part.state === "input-streaming"
680
- });
681
- return /* @__PURE__ */ jsx(ActivityPanel, {
682
- label: "Browser",
683
- status: executeStatusText(output),
684
- error: output?.status === "error",
685
- children: browserView && code ? /* @__PURE__ */ jsxs(Tabs.Root, {
1594
+ }) : null;
1595
+ $[2] = media.liveView;
1596
+ $[3] = media.screenshot;
1597
+ $[4] = seenAt;
1598
+ $[5] = t2;
1599
+ } else t2 = $[5];
1600
+ const browserView = t2;
1601
+ const t3 = part.state === "input-streaming";
1602
+ let t4;
1603
+ if ($[6] !== code || $[7] !== hasMedia || $[8] !== output || $[9] !== t3) {
1604
+ t4 = /* @__PURE__ */ jsx(ExecuteCodeView, {
1605
+ code,
1606
+ output,
1607
+ hideResult: hasMedia,
1608
+ isStreaming: t3
1609
+ });
1610
+ $[6] = code;
1611
+ $[7] = hasMedia;
1612
+ $[8] = output;
1613
+ $[9] = t3;
1614
+ $[10] = t4;
1615
+ } else t4 = $[10];
1616
+ const codeView = t4;
1617
+ let t5;
1618
+ if ($[11] !== output) {
1619
+ t5 = executeStatusText(output);
1620
+ $[11] = output;
1621
+ $[12] = t5;
1622
+ } else t5 = $[12];
1623
+ const t6 = output?.status === "error";
1624
+ let t7;
1625
+ if ($[13] !== browserView || $[14] !== code || $[15] !== codeView) {
1626
+ t7 = browserView && code ? /* @__PURE__ */ jsxs(Tabs.Root, {
686
1627
  defaultValue: "browser",
687
- children: [
688
- /* @__PURE__ */ jsxs(Tabs.List, {
689
- variant: "line",
690
- children: [
691
- /* @__PURE__ */ jsx(Tabs.Tab, {
692
- value: "browser",
693
- children: "Preview"
694
- }),
695
- /* @__PURE__ */ jsx(Tabs.Tab, {
696
- value: "code",
697
- children: "Code"
698
- }),
699
- /* @__PURE__ */ jsx(Tabs.Indicator, {})
700
- ]
701
- }),
702
- /* @__PURE__ */ jsx(Tabs.Panel, {
703
- className: "think-chat-tool-panels__browser-panel",
704
- value: "browser",
705
- children: browserView
706
- }),
707
- /* @__PURE__ */ jsx(Tabs.Panel, {
708
- className: "think-chat-tool-panels__browser-panel",
709
- value: "code",
710
- children: codeView
711
- })
712
- ]
713
- }) : /* @__PURE__ */ jsxs(Fragment, { children: [browserView, codeView] })
714
- });
1628
+ children: [/* @__PURE__ */ jsxs(Tabs.List, {
1629
+ variant: "line",
1630
+ children: [
1631
+ /* @__PURE__ */ jsx(Tabs.Tab, {
1632
+ value: "browser",
1633
+ children: "Preview"
1634
+ }),
1635
+ /* @__PURE__ */ jsx(Tabs.Tab, {
1636
+ value: "code",
1637
+ children: "Code"
1638
+ }),
1639
+ /* @__PURE__ */ jsx(Tabs.Indicator, {})
1640
+ ]
1641
+ }), /* @__PURE__ */ jsxs(Tabs.Panels, { children: [/* @__PURE__ */ jsx(Tabs.Panel, {
1642
+ className: "think-chat-tool-panels__browser-panel",
1643
+ value: "browser",
1644
+ children: browserView
1645
+ }), /* @__PURE__ */ jsx(Tabs.Panel, {
1646
+ className: "think-chat-tool-panels__browser-panel",
1647
+ value: "code",
1648
+ children: codeView
1649
+ })] })]
1650
+ }) : /* @__PURE__ */ jsxs(Fragment, { children: [browserView, codeView] });
1651
+ $[13] = browserView;
1652
+ $[14] = code;
1653
+ $[15] = codeView;
1654
+ $[16] = t7;
1655
+ } else t7 = $[16];
1656
+ let t8;
1657
+ if ($[17] !== t5 || $[18] !== t6 || $[19] !== t7) {
1658
+ t8 = /* @__PURE__ */ jsx(ActivityPanel, {
1659
+ label: "Browser",
1660
+ status: t5,
1661
+ error: t6,
1662
+ children: t7
1663
+ });
1664
+ $[17] = t5;
1665
+ $[18] = t6;
1666
+ $[19] = t7;
1667
+ $[20] = t8;
1668
+ } else t8 = $[20];
1669
+ return t8;
715
1670
  }
716
- function ThinkChatShellPanel({ part }) {
1671
+ function ThinkChatShellPanel(t0) {
1672
+ const $ = c(12);
1673
+ const { part } = t0;
717
1674
  const output = part.state === "output-available" ? part.output : void 0;
718
1675
  const errorText = part.state === "output-error" ? part.errorText : "";
719
1676
  const deniedReason = part.state === "output-denied" || part.state === "approval-responded" && !part.approval.approved ? part.approval.reason ?? "denied" : "";
720
1677
  const failed = Boolean(errorText) || Boolean(deniedReason) || output !== void 0 && (output.exitCode !== 0 || Boolean(output.errors?.length));
721
- const text = formatBashPanelText(part.input, output, errorText || deniedReason);
722
- return /* @__PURE__ */ jsx(ActivityPanel, {
723
- label: "Shell",
724
- text,
725
- status: output !== void 0 || errorText || deniedReason ? getBashStatusText(output, errorText, deniedReason) : void 0,
726
- error: failed
727
- });
1678
+ const t1 = errorText || deniedReason;
1679
+ let t2;
1680
+ if ($[0] !== output || $[1] !== part.input || $[2] !== t1) {
1681
+ t2 = formatBashPanelText(part.input, output, t1);
1682
+ $[0] = output;
1683
+ $[1] = part.input;
1684
+ $[2] = t1;
1685
+ $[3] = t2;
1686
+ } else t2 = $[3];
1687
+ const text = t2;
1688
+ let t3;
1689
+ if ($[4] !== deniedReason || $[5] !== errorText || $[6] !== output) {
1690
+ t3 = output !== void 0 || errorText || deniedReason ? getBashStatusText(output, errorText, deniedReason) : void 0;
1691
+ $[4] = deniedReason;
1692
+ $[5] = errorText;
1693
+ $[6] = output;
1694
+ $[7] = t3;
1695
+ } else t3 = $[7];
1696
+ let t4;
1697
+ if ($[8] !== failed || $[9] !== t3 || $[10] !== text) {
1698
+ t4 = /* @__PURE__ */ jsx(ActivityPanel, {
1699
+ label: "Shell",
1700
+ text,
1701
+ status: t3,
1702
+ error: failed
1703
+ });
1704
+ $[8] = failed;
1705
+ $[9] = t3;
1706
+ $[10] = text;
1707
+ $[11] = t4;
1708
+ } else t4 = $[11];
1709
+ return t4;
728
1710
  }
729
1711
  function formatBashPanelText(input, output, errorText) {
730
1712
  return [