@mcp-b/react-components 0.29.0 → 0.30.1

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 (401) hide show
  1. package/dist/{AgentActivity-D3OvrC02.d.ts → AgentActivity-SP1WfLDW.d.ts} +2 -2
  2. package/dist/{AgentChat-Dy3cKCd-.d.ts → AgentChat-CV-GuYA6.d.ts} +21 -11
  3. package/dist/{AgentChatStartScreen-DXZ0hAX0.d.ts → AgentChatStartScreen-CO49yepa.d.ts} +2 -2
  4. package/dist/{AgentMessageParts-CyD2UB3V.d.ts → AgentMessageParts-C7L-Mv9U.d.ts} +2 -2
  5. package/dist/{AgentToolRunsContext-BVe4stgw.d.ts → AgentToolRunsContext-Cgve-Upx.d.ts} +1 -1
  6. package/dist/{BrowserLiveView-BV5qgFgI.d.ts → BrowserLiveView-tJTWkoyu.d.ts} +1 -1
  7. package/dist/{BrowserReplay-xWvRjRAC.d.ts → BrowserReplay-B0BQZr-N.d.ts} +1 -1
  8. package/dist/{Button-SBIz6Lqi.d.ts → Button-CZt3yywF.d.ts} +1 -1
  9. package/dist/{CodeBlock-BUfEhDia.js → CodeBlock-B5I7wje1.js} +4 -69
  10. package/dist/{CodeBlock-yMpGqScn.d.ts → CodeBlock-DzGhYyNe.d.ts} +5 -11
  11. package/dist/{Combobox-DI6xcQjc.d.ts → Combobox-WrrDDaEv.d.ts} +1 -1
  12. package/dist/{Dialog-BD8NBKaE.d.ts → Dialog-DeOSJ0Oy.d.ts} +1 -1
  13. package/dist/{FileTree-XOLP3Yvo.js → FileTree-DbQMpvxV.js} +64 -71
  14. package/dist/{IconButton-CFKhu6OR.d.ts → IconButton-BAUFhUk8.d.ts} +2 -2
  15. package/dist/{Menu-L6MZm-7N.d.ts → Menu-DVmjBIuM.d.ts} +1 -1
  16. package/dist/MenuDisclosureGroup-BUOZ42me.js +32 -0
  17. package/dist/{ModelSelector-CRdvHT_b.js → ModelSelector-DZcpUBgn.js} +32 -30
  18. package/dist/{PromptInput-B75Np5VB.d.ts → PromptInput-DOyee1kM.d.ts} +28 -90
  19. package/dist/{Select-B_13gg_J.d.ts → Select-D96d09ww.d.ts} +1 -1
  20. package/dist/{SessionCompaction-DMa1vv6Y.d.ts → SessionCompaction-CmTJFpzj.d.ts} +32 -2
  21. package/dist/{Tabs-C49J5m0Q.d.ts → Tabs-Ptrbaynh.d.ts} +1 -1
  22. package/dist/{ThinkChat-Bp-nAnoW.js → ThinkChat-yid8e_Jb.js} +46 -17
  23. package/dist/{ThinkChatActivity-Dq0lOAgw.d.ts → ThinkChatActivity-CgqpROz_.d.ts} +5 -5
  24. package/dist/{ThinkChatActivitySummary-F062wneC.d.ts → ThinkChatActivitySummary-teRjrPxW.d.ts} +3 -3
  25. package/dist/{ThinkChatContext-B-Nk84Wi.d.ts → ThinkChatContext-COIgzkYp.d.ts} +1 -1
  26. package/dist/{ThinkChatToolParts-BfroXQ4F.d.ts → ThinkChatToolParts-D4qcnnxt.d.ts} +3 -13
  27. package/dist/{ThinkExecutionRun-ChhWhOoU.d.ts → ThinkExecutionRun-lYYgyeE1.d.ts} +1 -1
  28. package/dist/{ThinkRecoveryNotice-D6gYcBbr.d.ts → ThinkRecoveryNotice-DGWr94rk.d.ts} +2 -2
  29. package/dist/{Toggle-JKZ43D5S.d.ts → Toggle-DLrIf5YH.d.ts} +1 -1
  30. package/dist/{ToggleGroup-BW1jrhAF.d.ts → ToggleGroup-CSBWfPXo.d.ts} +12 -12
  31. package/dist/{Workspace-Bn6In4wi.d.ts → Workspace-EhvvlHOB.d.ts} +2 -2
  32. package/dist/{WorkspaceExplorer-D0aiscG6.d.ts → WorkspaceExplorer-DygQnEyi.d.ts} +3 -3
  33. package/dist/{WorkspaceFile-DMtRMwVv.d.ts → WorkspaceFile-C8Riev9j.d.ts} +2 -2
  34. package/dist/{WorkspaceFileView-CKEmUyeT.js → WorkspaceFileView-BeUpr6TU.js} +73 -96
  35. package/dist/{WorkspaceLink-O-EBKUJ8.d.ts → WorkspaceLink-DQogVe8E.d.ts} +1 -1
  36. package/dist/{WorkspaceLink-BYYeTQLf.js → WorkspaceLink-DZeLe_jN.js} +3 -4
  37. package/dist/WorkspaceMessageResponse-BWbkIELl.js +100 -0
  38. package/dist/{attachment-preview-DIs50Q0h.js → attachment-preview-1CXJvrmb.js} +1 -1
  39. package/dist/components/{AgentActivity.d.ts → agents-sdk/AgentActivity.d.ts} +1 -1
  40. package/dist/components/{AgentActivity.js → agents-sdk/AgentActivity.js} +3 -3
  41. package/dist/components/{AgentActivityPreview.d.ts → agents-sdk/AgentActivityPreview.d.ts} +3 -3
  42. package/dist/components/{AgentActivityPreview.js → agents-sdk/AgentActivityPreview.js} +12 -10
  43. package/dist/components/{AgentChat.d.ts → agents-sdk/AgentChat.d.ts} +1 -1
  44. package/dist/components/{AgentChat.js → agents-sdk/AgentChat.js} +57 -32
  45. package/dist/components/{AgentToolRunsContext.d.ts → agents-sdk/AgentToolRunsContext.d.ts} +1 -1
  46. package/dist/components/{AgentToolRunsContext.js → agents-sdk/AgentToolRunsContext.js} +1 -1
  47. package/dist/components/agents-sdk/BrowserLiveView.d.ts +2 -0
  48. package/dist/components/{BrowserLiveView.js → agents-sdk/BrowserLiveView.js} +7 -7
  49. package/dist/components/agents-sdk/BrowserReplay.d.ts +2 -0
  50. package/dist/components/{BrowserReplay.js → agents-sdk/BrowserReplay.js} +7 -7
  51. package/dist/components/{BrowserRunPanel.d.ts → agents-sdk/BrowserRunPanel.d.ts} +1 -1
  52. package/dist/components/{BrowserRunPanel.js → agents-sdk/BrowserRunPanel.js} +6 -6
  53. package/dist/components/{McpConnectionRequest.d.ts → agents-sdk/McpConnectionRequest.d.ts} +3 -15
  54. package/dist/components/{McpConnectionRequest.js → agents-sdk/McpConnectionRequest.js} +46 -18
  55. package/dist/components/agents-sdk/McpConnectorForm.d.ts +39 -0
  56. package/dist/components/agents-sdk/McpConnectorForm.js +151 -0
  57. package/dist/components/{McpPluginCatalog.d.ts → agents-sdk/McpPluginCatalog.d.ts} +3 -3
  58. package/dist/components/{McpPluginCatalog.js → agents-sdk/McpPluginCatalog.js} +23 -47
  59. package/dist/components/{McpServerPicker.d.ts → agents-sdk/McpServerPicker.d.ts} +14 -6
  60. package/dist/components/{McpServerPicker.js → agents-sdk/McpServerPicker.js} +35 -45
  61. package/dist/components/{ModelSelector.d.ts → agents-sdk/ModelSelector.d.ts} +4 -4
  62. package/dist/components/{ModelSelector.js → agents-sdk/ModelSelector.js} +1 -1
  63. package/dist/components/agents-sdk/PromptInputApproval.d.ts +44 -0
  64. package/dist/components/agents-sdk/PromptInputApproval.js +61 -0
  65. package/dist/components/agents-sdk/PromptInputCommands.d.ts +11 -0
  66. package/dist/components/agents-sdk/PromptInputCommands.js +33 -0
  67. package/dist/components/agents-sdk/SessionCompaction.d.ts +2 -0
  68. package/dist/components/{SessionCompaction.js → agents-sdk/SessionCompaction.js} +32 -11
  69. package/dist/components/{SubagentRunDetails.d.ts → agents-sdk/SubagentRunDetails.d.ts} +1 -1
  70. package/dist/components/{SubagentRunDetails.js → agents-sdk/SubagentRunDetails.js} +4 -4
  71. package/dist/components/{SubagentRunIndicator.d.ts → agents-sdk/SubagentRunIndicator.d.ts} +1 -1
  72. package/dist/components/{SubagentRunIndicator.js → agents-sdk/SubagentRunIndicator.js} +3 -3
  73. package/dist/components/{SubagentRunList.d.ts → agents-sdk/SubagentRunList.d.ts} +1 -1
  74. package/dist/components/{SubagentRunList.js → agents-sdk/SubagentRunList.js} +2 -2
  75. package/dist/components/{SubagentRunSelector.d.ts → agents-sdk/SubagentRunSelector.d.ts} +1 -1
  76. package/dist/components/{SubagentRunSelector.js → agents-sdk/SubagentRunSelector.js} +7 -7
  77. package/dist/components/{ThinkChat.d.ts → agents-sdk/ThinkChat.d.ts} +16 -16
  78. package/dist/components/{ThinkChat.js → agents-sdk/ThinkChat.js} +3 -3
  79. package/dist/components/{ThinkChatActivity.d.ts → agents-sdk/ThinkChatActivity.d.ts} +3 -3
  80. package/dist/components/{ThinkChatActivity.js → agents-sdk/ThinkChatActivity.js} +6 -6
  81. package/dist/components/{ThinkChatActivitySummary.d.ts → agents-sdk/ThinkChatActivitySummary.d.ts} +1 -1
  82. package/dist/components/{ThinkChatActivitySummary.js → agents-sdk/ThinkChatActivitySummary.js} +5 -4
  83. package/dist/components/{ThinkChatContext.d.ts → agents-sdk/ThinkChatContext.d.ts} +1 -1
  84. package/dist/components/{ThinkChatContext.js → agents-sdk/ThinkChatContext.js} +1 -1
  85. package/dist/components/{ThinkChatToolPanels.d.ts → agents-sdk/ThinkChatToolPanels.d.ts} +2 -2
  86. package/dist/components/{ThinkChatToolPanels.js → agents-sdk/ThinkChatToolPanels.js} +5 -5
  87. package/dist/components/agents-sdk/ThinkChatToolParts.d.ts +2 -0
  88. package/dist/components/{ThinkChatToolParts.js → agents-sdk/ThinkChatToolParts.js} +3 -33
  89. package/dist/components/{ThinkExecutionDetail.d.ts → agents-sdk/ThinkExecutionDetail.d.ts} +2 -2
  90. package/dist/components/{ThinkExecutionDetail.js → agents-sdk/ThinkExecutionDetail.js} +5 -8
  91. package/dist/components/{ThinkExecutionRun.d.ts → agents-sdk/ThinkExecutionRun.d.ts} +1 -1
  92. package/dist/components/{ThinkExecutionRun.js → agents-sdk/ThinkExecutionRun.js} +2 -2
  93. package/dist/components/agents-sdk/ThinkExecutionStatus.d.ts +35 -0
  94. package/dist/components/agents-sdk/ThinkExecutionStatus.js +59 -0
  95. package/dist/components/{ThinkExecutionWorkbench.d.ts → agents-sdk/ThinkExecutionWorkbench.d.ts} +2 -2
  96. package/dist/components/{ThinkExecutionWorkbench.js → agents-sdk/ThinkExecutionWorkbench.js} +15 -32
  97. package/dist/components/{ThinkFullApp.d.ts → agents-sdk/ThinkFullApp.d.ts} +21 -9
  98. package/dist/components/{ThinkFullApp.js → agents-sdk/ThinkFullApp.js} +46 -29
  99. package/dist/components/{ThinkFullAppViewSwitch.d.ts → agents-sdk/ThinkFullAppViewSwitch.d.ts} +2 -2
  100. package/dist/components/{ThinkFullAppViewSwitch.js → agents-sdk/ThinkFullAppViewSwitch.js} +4 -4
  101. package/dist/components/{ThinkPendingApproval.d.ts → agents-sdk/ThinkPendingApproval.d.ts} +1 -1
  102. package/dist/components/{ThinkPendingApproval.js → agents-sdk/ThinkPendingApproval.js} +3 -3
  103. package/dist/components/agents-sdk/ThinkRecoveryNotice.d.ts +2 -0
  104. package/dist/components/{ThinkRecoveryNotice.js → agents-sdk/ThinkRecoveryNotice.js} +3 -3
  105. package/dist/components/{ThinkRoutine.d.ts → agents-sdk/ThinkRoutine.d.ts} +2 -2
  106. package/dist/components/{ThinkRoutine.js → agents-sdk/ThinkRoutine.js} +1 -1
  107. package/dist/components/{ThinkRoutineBrowser.d.ts → agents-sdk/ThinkRoutineBrowser.d.ts} +1 -1
  108. package/dist/components/{ThinkRoutineBrowser.js → agents-sdk/ThinkRoutineBrowser.js} +9 -9
  109. package/dist/components/{ThinkRoutineDetail.d.ts → agents-sdk/ThinkRoutineDetail.d.ts} +1 -1
  110. package/dist/components/{ThinkRoutineDetail.js → agents-sdk/ThinkRoutineDetail.js} +4 -4
  111. package/dist/components/{ThinkRoutineForm.d.ts → agents-sdk/ThinkRoutineForm.d.ts} +1 -1
  112. package/dist/components/{ThinkRoutineForm.js → agents-sdk/ThinkRoutineForm.js} +9 -9
  113. package/dist/components/{ThinkRoutineLibrary.d.ts → agents-sdk/ThinkRoutineLibrary.d.ts} +5 -2
  114. package/dist/components/{ThinkRoutineLibrary.js → agents-sdk/ThinkRoutineLibrary.js} +47 -44
  115. package/dist/components/{ThinkRoutineRuns.d.ts → agents-sdk/ThinkRoutineRuns.d.ts} +2 -2
  116. package/dist/components/agents-sdk/ThinkRoutineRuns.js +59 -0
  117. package/dist/components/{ThinkThreadPicker.d.ts → agents-sdk/ThinkThreadPicker.d.ts} +1 -1
  118. package/dist/components/{ThinkThreadPicker.js → agents-sdk/ThinkThreadPicker.js} +12 -14
  119. package/dist/components/{ThinkThreadShell.d.ts → agents-sdk/ThinkThreadShell.d.ts} +2 -2
  120. package/dist/components/{ThinkThreadShell.js → agents-sdk/ThinkThreadShell.js} +3 -3
  121. package/dist/components/{Workspace.d.ts → agents-sdk/Workspace.d.ts} +1 -1
  122. package/dist/components/{Workspace.js → agents-sdk/Workspace.js} +5 -7
  123. package/dist/components/{WorkspaceBrowser.d.ts → agents-sdk/WorkspaceBrowser.d.ts} +2 -2
  124. package/dist/components/{WorkspaceBrowser.js → agents-sdk/WorkspaceBrowser.js} +3 -3
  125. package/dist/components/{WorkspaceExplorer.d.ts → agents-sdk/WorkspaceExplorer.d.ts} +4 -4
  126. package/dist/components/{WorkspaceExplorer.js → agents-sdk/WorkspaceExplorer.js} +5 -7
  127. package/dist/components/{WorkspaceFile.d.ts → agents-sdk/WorkspaceFile.d.ts} +1 -1
  128. package/dist/components/{WorkspaceFile.js → agents-sdk/WorkspaceFile.js} +1 -1
  129. package/dist/components/{WorkspaceFileView.d.ts → agents-sdk/WorkspaceFileView.d.ts} +2 -2
  130. package/dist/components/agents-sdk/WorkspaceFileView.js +2 -0
  131. package/dist/components/{WorkspaceHeader.d.ts → agents-sdk/WorkspaceHeader.d.ts} +1 -1
  132. package/dist/components/{WorkspaceHeader.js → agents-sdk/WorkspaceHeader.js} +3 -3
  133. package/dist/components/{WorkspaceLink.d.ts → agents-sdk/WorkspaceLink.d.ts} +1 -1
  134. package/dist/components/{WorkspaceLink.js → agents-sdk/WorkspaceLink.js} +1 -1
  135. package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +12 -0
  136. package/dist/components/agents-sdk/WorkspaceMessageResponse.js +2 -0
  137. package/dist/components/{WorkspaceMountManager.d.ts → agents-sdk/WorkspaceMountManager.d.ts} +1 -1
  138. package/dist/components/{WorkspaceMountManager.js → agents-sdk/WorkspaceMountManager.js} +9 -9
  139. package/dist/components/{Activity.d.ts → ai-sdk/Activity.d.ts} +4 -4
  140. package/dist/components/{Activity.js → ai-sdk/Activity.js} +6 -6
  141. package/dist/components/{AgentAttention.d.ts → ai-sdk/AgentAttention.d.ts} +2 -2
  142. package/dist/components/{AgentAttention.js → ai-sdk/AgentAttention.js} +3 -3
  143. package/dist/components/{AgentChatMessageEditor.d.ts → ai-sdk/AgentChatMessageEditor.d.ts} +1 -1
  144. package/dist/components/{AgentChatMessageEditor.js → ai-sdk/AgentChatMessageEditor.js} +5 -5
  145. package/dist/components/{AgentChatStartScreen.d.ts → ai-sdk/AgentChatStartScreen.d.ts} +1 -1
  146. package/dist/components/{AgentChatStartScreen.js → ai-sdk/AgentChatStartScreen.js} +5 -5
  147. package/dist/components/{AgentChatTurnError.d.ts → ai-sdk/AgentChatTurnError.d.ts} +1 -1
  148. package/dist/components/{AgentChatTurnError.js → ai-sdk/AgentChatTurnError.js} +2 -2
  149. package/dist/components/{AgentMessageParts.d.ts → ai-sdk/AgentMessageParts.d.ts} +1 -1
  150. package/dist/components/{AgentMessageParts.js → ai-sdk/AgentMessageParts.js} +4 -28
  151. package/dist/components/{Approval.d.ts → ai-sdk/Approval.d.ts} +1 -1
  152. package/dist/components/{Approval.js → ai-sdk/Approval.js} +5 -5
  153. package/dist/components/{Artifact.d.ts → ai-sdk/Artifact.d.ts} +2 -2
  154. package/dist/components/{Artifact.js → ai-sdk/Artifact.js} +4 -4
  155. package/dist/components/{ChainOfThought.d.ts → ai-sdk/ChainOfThought.d.ts} +3 -3
  156. package/dist/components/{ChainOfThought.js → ai-sdk/ChainOfThought.js} +4 -4
  157. package/dist/components/{Checkpoint.d.ts → ai-sdk/Checkpoint.d.ts} +2 -2
  158. package/dist/components/{Checkpoint.js → ai-sdk/Checkpoint.js} +4 -4
  159. package/dist/components/ai-sdk/CodeBlock.d.ts +2 -0
  160. package/dist/components/{CodeBlock.js → ai-sdk/CodeBlock.js} +2 -2
  161. package/dist/components/{Context.d.ts → ai-sdk/Context.d.ts} +2 -2
  162. package/dist/components/{Context.js → ai-sdk/Context.js} +5 -5
  163. package/dist/components/{Conversation.d.ts → ai-sdk/Conversation.d.ts} +2 -2
  164. package/dist/components/{Conversation.js → ai-sdk/Conversation.js} +5 -5
  165. package/dist/components/{ExpansionState.d.ts → ai-sdk/ExpansionState.d.ts} +1 -1
  166. package/dist/components/{ExpansionState.js → ai-sdk/ExpansionState.js} +1 -1
  167. package/dist/components/{Goal.d.ts → ai-sdk/Goal.d.ts} +1 -1
  168. package/dist/components/{Goal.js → ai-sdk/Goal.js} +6 -5
  169. package/dist/components/{InlineCitation.d.ts → ai-sdk/InlineCitation.d.ts} +1 -1
  170. package/dist/components/{InlineCitation.js → ai-sdk/InlineCitation.js} +4 -4
  171. package/dist/components/{MediaPreviewCard.d.ts → ai-sdk/MediaPreviewCard.d.ts} +2 -2
  172. package/dist/components/{MediaPreviewCard.js → ai-sdk/MediaPreviewCard.js} +5 -5
  173. package/dist/components/{Message.d.ts → ai-sdk/Message.d.ts} +2 -3
  174. package/dist/{Message-BF6SiKKL.js → components/ai-sdk/Message.js} +14 -99
  175. package/dist/components/{MessageScroller.d.ts → ai-sdk/MessageScroller.d.ts} +2 -2
  176. package/dist/components/{MessageScroller.js → ai-sdk/MessageScroller.js} +4 -4
  177. package/dist/components/{MessageScrollerVirtual.d.ts → ai-sdk/MessageScrollerVirtual.d.ts} +7 -8
  178. package/dist/components/{MessageScrollerVirtual.js → ai-sdk/MessageScrollerVirtual.js} +10 -10
  179. package/dist/components/{Plan.d.ts → ai-sdk/Plan.d.ts} +5 -6
  180. package/dist/components/{Plan.js → ai-sdk/Plan.js} +6 -6
  181. package/dist/components/ai-sdk/PromptInput.d.ts +2 -0
  182. package/dist/components/{PromptInput.js → ai-sdk/PromptInput.js} +32 -130
  183. package/dist/components/{Queue.d.ts → ai-sdk/Queue.d.ts} +4 -4
  184. package/dist/components/{Queue.js → ai-sdk/Queue.js} +7 -7
  185. package/dist/components/{Reasoning.d.ts → ai-sdk/Reasoning.d.ts} +2 -2
  186. package/dist/components/{Reasoning.js → ai-sdk/Reasoning.js} +5 -5
  187. package/dist/components/{Sources.d.ts → ai-sdk/Sources.d.ts} +2 -2
  188. package/dist/components/{Sources.js → ai-sdk/Sources.js} +4 -4
  189. package/dist/components/{Task.d.ts → ai-sdk/Task.d.ts} +2 -2
  190. package/dist/components/{Task.js → ai-sdk/Task.js} +4 -4
  191. package/dist/components/{ToolApproval.d.ts → ai-sdk/ToolApproval.d.ts} +1 -1
  192. package/dist/components/{ToolApproval.js → ai-sdk/ToolApproval.js} +1 -1
  193. package/dist/components/{ToolInvocation.d.ts → ai-sdk/ToolInvocation.d.ts} +1 -1
  194. package/dist/components/{ToolInvocation.js → ai-sdk/ToolInvocation.js} +7 -9
  195. package/dist/components/ai-sdk/ToolPart.d.ts +11 -0
  196. package/dist/components/ai-sdk/ToolPart.js +15 -0
  197. package/dist/components/{ChatGptSignInScreen.d.ts → extension/ChatGptSignInScreen.d.ts} +1 -1
  198. package/dist/components/{ChatGptSignInScreen.js → extension/ChatGptSignInScreen.js} +5 -5
  199. package/dist/components/{CodexModelSelector.d.ts → extension/CodexModelSelector.d.ts} +3 -3
  200. package/dist/components/{CodexModelSelector.js → extension/CodexModelSelector.js} +6 -6
  201. package/dist/components/{ConversationTabPicker.d.ts → extension/ConversationTabPicker.d.ts} +1 -1
  202. package/dist/components/{ConversationTabPicker.js → extension/ConversationTabPicker.js} +7 -6
  203. package/dist/components/{Accordion.d.ts → foundations/Accordion.d.ts} +1 -1
  204. package/dist/components/{Accordion.js → foundations/Accordion.js} +3 -3
  205. package/dist/components/{AlertDialog.d.ts → foundations/AlertDialog.d.ts} +2 -2
  206. package/dist/components/{AlertDialog.js → foundations/AlertDialog.js} +2 -2
  207. package/dist/components/{AppIcon.d.ts → foundations/AppIcon.d.ts} +1 -1
  208. package/dist/components/{AppIcon.js → foundations/AppIcon.js} +2 -2
  209. package/dist/components/{Autocomplete.d.ts → foundations/Autocomplete.d.ts} +1 -1
  210. package/dist/components/{Autocomplete.js → foundations/Autocomplete.js} +2 -2
  211. package/dist/components/{Avatar.d.ts → foundations/Avatar.d.ts} +1 -1
  212. package/dist/components/{Avatar.js → foundations/Avatar.js} +2 -2
  213. package/dist/components/{Badge.d.ts → foundations/Badge.d.ts} +1 -1
  214. package/dist/components/{Badge.js → foundations/Badge.js} +1 -1
  215. package/dist/components/{Button.d.ts → foundations/Button.d.ts} +1 -1
  216. package/dist/components/{Button.js → foundations/Button.js} +2 -2
  217. package/dist/components/{Card.d.ts → foundations/Card.d.ts} +1 -1
  218. package/dist/components/{Card.js → foundations/Card.js} +2 -2
  219. package/dist/components/{Checkbox.d.ts → foundations/Checkbox.d.ts} +7 -3
  220. package/dist/components/{Checkbox.js → foundations/Checkbox.js} +9 -5
  221. package/dist/components/{CheckboxGroup.d.ts → foundations/CheckboxGroup.d.ts} +1 -1
  222. package/dist/components/{CheckboxGroup.js → foundations/CheckboxGroup.js} +2 -2
  223. package/dist/{Collapsible-N64ASIQr.d.ts → components/foundations/Collapsible.d.ts} +7 -7
  224. package/dist/components/{Collapsible.js → foundations/Collapsible.js} +3 -3
  225. package/dist/components/foundations/Combobox.d.ts +2 -0
  226. package/dist/components/{Combobox.js → foundations/Combobox.js} +2 -2
  227. package/dist/components/{ContextMenu.d.ts → foundations/ContextMenu.d.ts} +1 -1
  228. package/dist/components/{ContextMenu.js → foundations/ContextMenu.js} +3 -3
  229. package/dist/components/{DescriptionList.d.ts → foundations/DescriptionList.d.ts} +1 -1
  230. package/dist/components/{DescriptionList.js → foundations/DescriptionList.js} +1 -1
  231. package/dist/components/{DescriptionListParts.d.ts → foundations/DescriptionListParts.d.ts} +1 -1
  232. package/dist/components/{DescriptionListParts.js → foundations/DescriptionListParts.js} +2 -2
  233. package/dist/components/{Dialog.d.ts → foundations/Dialog.d.ts} +1 -1
  234. package/dist/components/{Dialog.js → foundations/Dialog.js} +2 -2
  235. package/dist/components/{EmptyState.d.ts → foundations/EmptyState.d.ts} +1 -1
  236. package/dist/components/{EmptyState.js → foundations/EmptyState.js} +2 -2
  237. package/dist/components/{Field.d.ts → foundations/Field.d.ts} +1 -1
  238. package/dist/components/{Field.js → foundations/Field.js} +2 -2
  239. package/dist/components/{Fieldset.d.ts → foundations/Fieldset.d.ts} +1 -1
  240. package/dist/components/{Fieldset.js → foundations/Fieldset.js} +2 -2
  241. package/dist/components/{Form.d.ts → foundations/Form.d.ts} +1 -1
  242. package/dist/components/{Form.js → foundations/Form.js} +2 -2
  243. package/dist/components/{FormattedDate.d.ts → foundations/FormattedDate.d.ts} +1 -1
  244. package/dist/components/{FormattedDate.js → foundations/FormattedDate.js} +1 -1
  245. package/dist/components/foundations/IconButton.d.ts +2 -0
  246. package/dist/components/{IconButton.js → foundations/IconButton.js} +1 -1
  247. package/dist/components/{Input.d.ts → foundations/Input.d.ts} +1 -1
  248. package/dist/components/{Input.js → foundations/Input.js} +2 -2
  249. package/dist/components/{Kbd.d.ts → foundations/Kbd.d.ts} +1 -1
  250. package/dist/components/{Kbd.js → foundations/Kbd.js} +2 -2
  251. package/dist/components/{Label.d.ts → foundations/Label.d.ts} +1 -1
  252. package/dist/components/{Label.js → foundations/Label.js} +2 -2
  253. package/dist/components/{LinkButton.d.ts → foundations/LinkButton.d.ts} +2 -2
  254. package/dist/components/{LinkButton.js → foundations/LinkButton.js} +1 -1
  255. package/dist/components/{Marker.d.ts → foundations/Marker.d.ts} +1 -1
  256. package/dist/components/{Marker.js → foundations/Marker.js} +2 -2
  257. package/dist/components/{Menu.d.ts → foundations/Menu.d.ts} +1 -1
  258. package/dist/components/{Menu.js → foundations/Menu.js} +2 -2
  259. package/dist/components/{Menubar.d.ts → foundations/Menubar.d.ts} +1 -1
  260. package/dist/components/{Menubar.js → foundations/Menubar.js} +3 -3
  261. package/dist/components/{Meter.d.ts → foundations/Meter.d.ts} +1 -1
  262. package/dist/components/{Meter.js → foundations/Meter.js} +2 -2
  263. package/dist/components/{NavigationMenu.d.ts → foundations/NavigationMenu.d.ts} +1 -1
  264. package/dist/components/{NavigationMenu.js → foundations/NavigationMenu.js} +2 -2
  265. package/dist/components/{NumberField.d.ts → foundations/NumberField.d.ts} +1 -1
  266. package/dist/components/{NumberField.js → foundations/NumberField.js} +2 -2
  267. package/dist/components/{Popover.d.ts → foundations/Popover.d.ts} +1 -1
  268. package/dist/components/{Popover.js → foundations/Popover.js} +3 -3
  269. package/dist/components/{PreviewCard.d.ts → foundations/PreviewCard.d.ts} +1 -1
  270. package/dist/components/{PreviewCard.js → foundations/PreviewCard.js} +2 -2
  271. package/dist/components/{Progress.d.ts → foundations/Progress.d.ts} +1 -1
  272. package/dist/components/{Progress.js → foundations/Progress.js} +2 -2
  273. package/dist/components/{RadioGroup.d.ts → foundations/RadioGroup.d.ts} +1 -1
  274. package/dist/components/{RadioGroup.js → foundations/RadioGroup.js} +2 -2
  275. package/dist/components/{ScrollArea.d.ts → foundations/ScrollArea.d.ts} +1 -1
  276. package/dist/components/{ScrollArea.js → foundations/ScrollArea.js} +2 -2
  277. package/dist/components/{SearchField.d.ts → foundations/SearchField.d.ts} +1 -1
  278. package/dist/components/{SearchField.js → foundations/SearchField.js} +3 -3
  279. package/dist/components/{Select.d.ts → foundations/Select.d.ts} +1 -1
  280. package/dist/components/{Select.js → foundations/Select.js} +3 -3
  281. package/dist/components/{Separator.d.ts → foundations/Separator.d.ts} +1 -1
  282. package/dist/components/{Separator.js → foundations/Separator.js} +2 -2
  283. package/dist/components/{Slider.d.ts → foundations/Slider.d.ts} +1 -1
  284. package/dist/components/{Slider.js → foundations/Slider.js} +2 -2
  285. package/dist/components/{StatusPill.d.ts → foundations/StatusPill.d.ts} +1 -1
  286. package/dist/components/{StatusPill.js → foundations/StatusPill.js} +2 -2
  287. package/dist/components/{Stepper.d.ts → foundations/Stepper.d.ts} +2 -2
  288. package/dist/components/{Stepper.js → foundations/Stepper.js} +3 -3
  289. package/dist/components/{Switch.d.ts → foundations/Switch.d.ts} +7 -7
  290. package/dist/components/{Switch.js → foundations/Switch.js} +8 -8
  291. package/dist/components/{Tabs.d.ts → foundations/Tabs.d.ts} +1 -1
  292. package/dist/components/{Tabs.js → foundations/Tabs.js} +2 -2
  293. package/dist/components/{Textarea.d.ts → foundations/Textarea.d.ts} +1 -1
  294. package/dist/components/{Textarea.js → foundations/Textarea.js} +2 -2
  295. package/dist/components/{ThemeProvider.d.ts → foundations/ThemeProvider.d.ts} +2 -2
  296. package/dist/components/{ThemeProvider.js → foundations/ThemeProvider.js} +2 -2
  297. package/dist/components/{Toast.d.ts → foundations/Toast.d.ts} +1 -1
  298. package/dist/components/{Toast.js → foundations/Toast.js} +3 -3
  299. package/dist/components/{Toggle.d.ts → foundations/Toggle.d.ts} +1 -1
  300. package/dist/components/{Toggle.js → foundations/Toggle.js} +2 -2
  301. package/dist/components/foundations/ToggleGroup.d.ts +2 -0
  302. package/dist/components/{ToggleGroup.js → foundations/ToggleGroup.js} +13 -13
  303. package/dist/components/{Toolbar.d.ts → foundations/Toolbar.d.ts} +1 -1
  304. package/dist/components/{Toolbar.js → foundations/Toolbar.js} +2 -2
  305. package/dist/components/{Tooltip.d.ts → foundations/Tooltip.d.ts} +1 -1
  306. package/dist/components/{Tooltip.js → foundations/Tooltip.js} +2 -2
  307. package/dist/components/{TransitionSurface.d.ts → foundations/TransitionSurface.d.ts} +1 -1
  308. package/dist/components/{TransitionSurface.js → foundations/TransitionSurface.js} +2 -2
  309. package/dist/components/{icons.d.ts → foundations/icons.d.ts} +1 -1
  310. package/dist/components/{icons.js → foundations/icons.js} +1 -1
  311. package/dist/components/{ActionGuide.d.ts → general-purpose/ActionGuide.d.ts} +2 -2
  312. package/dist/components/{ActionGuide.js → general-purpose/ActionGuide.js} +3 -3
  313. package/dist/components/general-purpose/AppFrame.d.ts +24 -0
  314. package/dist/components/general-purpose/AppFrame.js +25 -0
  315. package/dist/components/{AppTopBar.d.ts → general-purpose/AppTopBar.d.ts} +2 -2
  316. package/dist/components/{AppTopBar.js → general-purpose/AppTopBar.js} +5 -5
  317. package/dist/components/{Commit.d.ts → general-purpose/Commit.d.ts} +5 -12
  318. package/dist/components/{Commit.js → general-purpose/Commit.js} +11 -13
  319. package/dist/components/{EnvironmentVariables.d.ts → general-purpose/EnvironmentVariables.d.ts} +2 -4
  320. package/dist/components/{EnvironmentVariables.js → general-purpose/EnvironmentVariables.js} +9 -10
  321. package/dist/components/{FileTree.d.ts → general-purpose/FileTree.d.ts} +10 -1
  322. package/dist/components/{FileTree.js → general-purpose/FileTree.js} +1 -1
  323. package/dist/components/{Pricing.d.ts → general-purpose/Pricing.d.ts} +1 -1
  324. package/dist/components/{Pricing.js → general-purpose/Pricing.js} +1 -1
  325. package/dist/components/{PricingBillingToggle.d.ts → general-purpose/PricingBillingToggle.d.ts} +1 -1
  326. package/dist/components/{PricingBillingToggle.js → general-purpose/PricingBillingToggle.js} +7 -7
  327. package/dist/components/{PricingConfirmationDialog.d.ts → general-purpose/PricingConfirmationDialog.d.ts} +1 -1
  328. package/dist/components/{PricingConfirmationDialog.js → general-purpose/PricingConfirmationDialog.js} +3 -3
  329. package/dist/components/{PricingFAQ.d.ts → general-purpose/PricingFAQ.d.ts} +1 -1
  330. package/dist/components/{PricingFAQ.js → general-purpose/PricingFAQ.js} +3 -3
  331. package/dist/components/{PricingPage.d.ts → general-purpose/PricingPage.d.ts} +1 -1
  332. package/dist/components/{PricingPage.js → general-purpose/PricingPage.js} +2 -2
  333. package/dist/components/{PricingPlanCard.d.ts → general-purpose/PricingPlanCard.d.ts} +1 -1
  334. package/dist/components/{PricingPlanCard.js → general-purpose/PricingPlanCard.js} +8 -8
  335. package/dist/components/{PricingUsageCalculator.d.ts → general-purpose/PricingUsageCalculator.d.ts} +1 -1
  336. package/dist/components/{PricingUsageCalculator.js → general-purpose/PricingUsageCalculator.js} +6 -6
  337. package/dist/components/{ResizableSidePanel.d.ts → general-purpose/ResizableSidePanel.d.ts} +8 -2
  338. package/dist/components/{ResizableSidePanel.js → general-purpose/ResizableSidePanel.js} +14 -6
  339. package/dist/{ResponsiveSidebarShell-CsAh4NyL.d.ts → components/general-purpose/ResponsiveSidebarShell.d.ts} +2 -2
  340. package/dist/components/{ResponsiveSidebarShell.js → general-purpose/ResponsiveSidebarShell.js} +6 -6
  341. package/dist/components/{SettingsFormDialog.d.ts → general-purpose/SettingsFormDialog.d.ts} +1 -1
  342. package/dist/components/{SettingsFormDialog.js → general-purpose/SettingsFormDialog.js} +8 -7
  343. package/dist/components/{SetupChecklist.d.ts → general-purpose/SetupChecklist.d.ts} +4 -1
  344. package/dist/components/{SetupChecklist.js → general-purpose/SetupChecklist.js} +23 -17
  345. package/dist/components/{Shell.d.ts → general-purpose/Shell.d.ts} +1 -1
  346. package/dist/components/{Shell.js → general-purpose/Shell.js} +2 -2
  347. package/dist/components/{Terminal.d.ts → general-purpose/Terminal.d.ts} +3 -3
  348. package/dist/components/{Terminal.js → general-purpose/Terminal.js} +7 -7
  349. package/dist/components/{TestResults.d.ts → general-purpose/TestResults.d.ts} +2 -2
  350. package/dist/components/{TestResults.js → general-purpose/TestResults.js} +6 -6
  351. package/dist/components/{ThemeModeControl.d.ts → general-purpose/ThemeModeControl.d.ts} +1 -1
  352. package/dist/components/{ThemeModeControl.js → general-purpose/ThemeModeControl.js} +4 -4
  353. package/dist/components/{WebPreview.d.ts → general-purpose/WebPreview.d.ts} +4 -4
  354. package/dist/components/{WebPreview.js → general-purpose/WebPreview.js} +12 -12
  355. package/dist/components/{AgentConnection.d.ts → nanites/AgentConnection.d.ts} +2 -36
  356. package/dist/components/{AgentConnection.js → nanites/AgentConnection.js} +7 -149
  357. package/dist/components/{AgentToolDetail.d.ts → nanites/AgentToolDetail.d.ts} +4 -4
  358. package/dist/components/{AgentToolDetail.js → nanites/AgentToolDetail.js} +8 -8
  359. package/dist/components/{GithubMotionMark.d.ts → nanites/GithubMotionMark.d.ts} +1 -1
  360. package/dist/components/{GithubMotionMark.js → nanites/GithubMotionMark.js} +2 -2
  361. package/dist/components/{NaniteScene.d.ts → nanites/NaniteScene.d.ts} +1 -1
  362. package/dist/components/{NaniteScene.js → nanites/NaniteScene.js} +2 -2
  363. package/dist/{copy-button-7ttJAorN.js → copy-button-4YvddK4e.js} +1 -1
  364. package/dist/{copy-button-EBv_B9F6.d.ts → copy-button-C0JyjClr.d.ts} +1 -1
  365. package/dist/{format-S6uWyoSb.js → format-CmopcfqJ.js} +4 -1
  366. package/dist/mcp-server-U71zhxFF.js +26 -0
  367. package/dist/{navigation-link-Cob7KBlM.js → navigation-link-kqMa81v5.js} +5 -1
  368. package/dist/{progress-ring-BjqTZqBk.js → progress-ring-Dz_ztrW2.js} +1 -1
  369. package/dist/styles/activity-header.css +5 -1
  370. package/dist/styles/agent-activity-preview-overlay.css +43 -5
  371. package/dist/styles/app-frame.css +15 -0
  372. package/dist/styles/file-tree.css +17 -2
  373. package/dist/styles/index.css +3 -1
  374. package/dist/styles/mcp-server-picker.css +1 -3
  375. package/dist/styles/menu-disclosure-group.css +13 -0
  376. package/dist/styles/message-scroller.css +2 -3
  377. package/dist/styles/sources.css +8 -0
  378. package/dist/styles/think-execution-status.css +57 -0
  379. package/dist/styles/think-execution-workbench.css +1 -50
  380. package/dist/styles/think-full-app.css +1 -1
  381. package/dist/styles/think-routine-library.css +0 -27
  382. package/dist/styles/workspace-explorer.css +0 -9
  383. package/dist/utils/structured-code.d.ts +1 -1
  384. package/package.json +2 -2
  385. package/dist/components/BrowserLiveView.d.ts +0 -2
  386. package/dist/components/BrowserReplay.d.ts +0 -2
  387. package/dist/components/CodeBlock.d.ts +0 -2
  388. package/dist/components/Collapsible.d.ts +0 -2
  389. package/dist/components/Combobox.d.ts +0 -2
  390. package/dist/components/IconButton.d.ts +0 -2
  391. package/dist/components/Message.js +0 -2
  392. package/dist/components/PromptInput.d.ts +0 -2
  393. package/dist/components/ResponsiveSidebarShell.d.ts +0 -2
  394. package/dist/components/SessionCompaction.d.ts +0 -2
  395. package/dist/components/ThinkChatToolParts.d.ts +0 -2
  396. package/dist/components/ThinkExecutionStatus.d.ts +0 -22
  397. package/dist/components/ThinkExecutionStatus.js +0 -36
  398. package/dist/components/ThinkRecoveryNotice.d.ts +0 -2
  399. package/dist/components/ThinkRoutineRuns.js +0 -76
  400. package/dist/components/ToggleGroup.d.ts +0 -2
  401. package/dist/components/WorkspaceFileView.js +0 -2
@@ -1,10 +1,11 @@
1
- import { Button } from "./Button.js";
2
- import { Dialog } from "./Dialog.js";
3
- import { Field } from "./Field.js";
4
- import { Form } from "./Form.js";
1
+ import { Button } from "../foundations/Button.js";
2
+ import { Field } from "../foundations/Field.js";
3
+ import { Form } from "../foundations/Form.js";
4
+ import { Dialog } from "../foundations/Dialog.js";
5
+ import { i as formatErrorMessage } from "../../format-CmopcfqJ.js";
5
6
  import * as React from "react";
6
7
  import { jsx, jsxs } from "react/jsx-runtime";
7
- //#region src/components/SettingsFormDialog.tsx
8
+ //#region src/components/general-purpose/SettingsFormDialog.tsx
8
9
  function readSettingsValues(data, fields) {
9
10
  return Object.fromEntries(fields.map((field) => {
10
11
  const value = data[field.name];
@@ -31,7 +32,7 @@ function SettingsFormDialogContent({ fields, initialValues, submitLabel, submitt
31
32
  onOpenChange(false);
32
33
  } catch (cause) {
33
34
  if (!active.current) return;
34
- setSubmission({ error: cause instanceof Error ? cause.message : String(cause) });
35
+ setSubmission({ error: formatErrorMessage(cause) });
35
36
  }
36
37
  }
37
38
  async function remove() {
@@ -44,7 +45,7 @@ function SettingsFormDialogContent({ fields, initialValues, submitLabel, submitt
44
45
  onOpenChange(false);
45
46
  } catch (cause) {
46
47
  if (!active.current) return;
47
- setSubmission({ error: cause instanceof Error ? cause.message : String(cause) });
48
+ setSubmission({ error: formatErrorMessage(cause) });
48
49
  }
49
50
  }
50
51
  return /* @__PURE__ */ jsxs(Form, {
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
 
3
- //#region src/components/SetupChecklist.d.ts
3
+ //#region src/components/general-purpose/SetupChecklist.d.ts
4
4
  interface SetupChecklistEntry<Id extends string = string> {
5
5
  id: Id;
6
6
  /** Accessible subject, announced as "<name>, complete" or "<name>, not set up". */
@@ -15,6 +15,8 @@ interface SetupChecklistGroupProps<Id extends string = string> {
15
15
  /** Quiet visible heading above the checklist rows. */
16
16
  label: React.ReactNode;
17
17
  entries: readonly SetupChecklistEntry<Id>[];
18
+ /** Whether rows are visible when the containing menu first opens. */
19
+ defaultOpen?: boolean;
18
20
  /** Called with the selected entry id — complete rows re-run their setup. */
19
21
  onSelect: (id: Id) => void;
20
22
  }
@@ -22,6 +24,7 @@ interface SetupChecklistGroupProps<Id extends string = string> {
22
24
  declare function SetupChecklistGroup<Id extends string = string>({
23
25
  label,
24
26
  entries,
27
+ defaultOpen,
25
28
  onSelect
26
29
  }: SetupChecklistGroupProps<Id>): React.JSX.Element;
27
30
  interface SetupChecklistActionProps<Id extends string = string> extends SetupChecklistGroupProps<Id> {
@@ -1,23 +1,28 @@
1
- import { Button } from "./Button.js";
2
- import { H as PlusIcon, d as CheckIcon, tt as WarningIcon } from "../icons-B4mGvCvc.js";
3
- import { Menu } from "./Menu.js";
1
+ import { H as PlusIcon, d as CheckIcon, tt as WarningIcon } from "../../icons-B4mGvCvc.js";
2
+ import { Button } from "../foundations/Button.js";
3
+ import { Menu } from "../foundations/Menu.js";
4
+ import { t as MenuDisclosureGroup } from "../../MenuDisclosureGroup-BUOZ42me.js";
4
5
  import "react";
5
6
  import { jsx, jsxs } from "react/jsx-runtime";
6
- //#region src/components/SetupChecklist.tsx
7
+ //#region src/components/general-purpose/SetupChecklist.tsx
7
8
  /** Checklist rows for any Menu surface (composer plus menu, tray menu). */
8
- function SetupChecklistGroup({ label, entries, onSelect }) {
9
- return /* @__PURE__ */ jsxs(Menu.Group, { children: [/* @__PURE__ */ jsx(Menu.GroupLabel, { children: label }), entries.map((entry) => /* @__PURE__ */ jsxs(Menu.Item, {
10
- "aria-label": `${entry.name}, ${entry.complete ? "complete" : "not set up"}`,
11
- onClick: () => onSelect(entry.id),
12
- children: [
13
- entry.icon,
14
- /* @__PURE__ */ jsx("span", {
15
- className: "sigvelo-truncate-grow",
16
- children: entry.description
17
- }),
18
- entry.complete ? /* @__PURE__ */ jsx(CheckIcon, { "aria-hidden": "true" }) : /* @__PURE__ */ jsx(PlusIcon, { "aria-hidden": "true" })
19
- ]
20
- }, entry.id))] });
9
+ function SetupChecklistGroup({ label, entries, defaultOpen = false, onSelect }) {
10
+ return /* @__PURE__ */ jsx(MenuDisclosureGroup, {
11
+ label,
12
+ defaultOpen,
13
+ children: entries.map((entry) => /* @__PURE__ */ jsxs(Menu.Item, {
14
+ "aria-label": `${entry.name}, ${entry.complete ? "complete" : "not set up"}`,
15
+ onClick: () => onSelect(entry.id),
16
+ children: [
17
+ entry.icon,
18
+ /* @__PURE__ */ jsx("span", {
19
+ className: "sigvelo-truncate-grow",
20
+ children: entry.description
21
+ }),
22
+ entry.complete ? /* @__PURE__ */ jsx(CheckIcon, { "aria-hidden": "true" }) : /* @__PURE__ */ jsx(PlusIcon, { "aria-hidden": "true" })
23
+ ]
24
+ }, entry.id))
25
+ });
21
26
  }
22
27
  /** Progress-aware tray trigger opening the checklist in its own menu. */
23
28
  function SetupChecklistAction({ actionLabel, label, entries, onSelect }) {
@@ -35,6 +40,7 @@ function SetupChecklistAction({ actionLabel, label, entries, onSelect }) {
35
40
  align: "start",
36
41
  sideOffset: 4,
37
42
  children: /* @__PURE__ */ jsx(Menu.Popup, { children: /* @__PURE__ */ jsx(SetupChecklistGroup, {
43
+ defaultOpen: true,
38
44
  label,
39
45
  entries,
40
46
  onSelect
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
 
3
- //#region src/components/Shell.d.ts
3
+ //#region src/components/general-purpose/Shell.d.ts
4
4
  /**
5
5
  * Props for the Shell.Root component.
6
6
  */
@@ -1,7 +1,7 @@
1
- import { t as cx } from "../class-names-BiMDVpUo.js";
1
+ import { t as cx } from "../../class-names-BiMDVpUo.js";
2
2
  import "react";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
- //#region src/components/Shell.tsx
4
+ //#region src/components/general-purpose/Shell.tsx
5
5
  /**
6
6
  * Root container for the shell layout.
7
7
  * Provides a structured layout with optional header, action bar, panel, and content areas.
@@ -1,8 +1,8 @@
1
- import { n as IconButtonProps } from "../IconButton-CFKhu6OR.js";
2
- import { t as CopyButtonProps } from "../copy-button-EBv_B9F6.js";
1
+ import { n as IconButtonProps } from "../../IconButton-BAUFhUk8.js";
2
+ import { t as CopyButtonProps } from "../../copy-button-C0JyjClr.js";
3
3
  import * as React from "react";
4
4
 
5
- //#region src/components/Terminal.d.ts
5
+ //#region src/components/general-purpose/Terminal.d.ts
6
6
  interface TerminalProps extends React.HTMLAttributes<HTMLDivElement> {
7
7
  /** Terminal output; may include ANSI escape codes. */
8
8
  output: string;
@@ -1,9 +1,9 @@
1
- import { t as cx } from "../class-names-BiMDVpUo.js";
2
- import { $ as TerminalIcon, rt as XIcon } from "../icons-B4mGvCvc.js";
3
- import { IconButton } from "./IconButton.js";
4
- import { t as CopyButton } from "../copy-button-7ttJAorN.js";
5
- import { Badge } from "./Badge.js";
6
- import { ScrollArea } from "./ScrollArea.js";
1
+ import { t as cx } from "../../class-names-BiMDVpUo.js";
2
+ import { $ as TerminalIcon, rt as XIcon } from "../../icons-B4mGvCvc.js";
3
+ import { IconButton } from "../foundations/IconButton.js";
4
+ import { t as CopyButton } from "../../copy-button-4YvddK4e.js";
5
+ import { Badge } from "../foundations/Badge.js";
6
+ import { ScrollArea } from "../foundations/ScrollArea.js";
7
7
  import * as React from "react";
8
8
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
9
9
  import Anser from "anser";
@@ -58,7 +58,7 @@ function parseAnsi(input) {
58
58
  }));
59
59
  }
60
60
  //#endregion
61
- //#region src/components/Terminal.tsx
61
+ //#region src/components/general-purpose/Terminal.tsx
62
62
  const TerminalContext = React.createContext(null);
63
63
  function useTerminalContext() {
64
64
  const ctx = React.useContext(TerminalContext);
@@ -1,7 +1,7 @@
1
- import { t as Collapsible } from "../Collapsible-N64ASIQr.js";
1
+ import { Collapsible } from "../foundations/Collapsible.js";
2
2
  import * as React from "react";
3
3
 
4
- //#region src/components/TestResults.d.ts
4
+ //#region src/components/general-purpose/TestResults.d.ts
5
5
  type TestStatusValue = "passed" | "failed" | "skipped" | "running";
6
6
  interface TestSummary {
7
7
  /** Number of passed tests. */
@@ -1,11 +1,11 @@
1
- import { t as cx } from "../class-names-BiMDVpUo.js";
2
- import { Collapsible } from "./Collapsible.js";
3
- import { J as SpinnerIcon, d as CheckIcon, m as ChevronRightIcon, rt as XIcon } from "../icons-B4mGvCvc.js";
4
- import { Progress } from "./Progress.js";
5
- import { Badge } from "./Badge.js";
1
+ import { t as cx } from "../../class-names-BiMDVpUo.js";
2
+ import { Collapsible } from "../foundations/Collapsible.js";
3
+ import { J as SpinnerIcon, d as CheckIcon, m as ChevronRightIcon, rt as XIcon } from "../../icons-B4mGvCvc.js";
4
+ import { Badge } from "../foundations/Badge.js";
5
+ import { Progress } from "../foundations/Progress.js";
6
6
  import * as React from "react";
7
7
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
8
- //#region src/components/TestResults.tsx
8
+ //#region src/components/general-purpose/TestResults.tsx
9
9
  const STATUS_COLOR = {
10
10
  passed: "success",
11
11
  failed: "destructive",
@@ -1,4 +1,4 @@
1
- //#region src/components/ThemeModeControl.d.ts
1
+ //#region src/components/general-purpose/ThemeModeControl.d.ts
2
2
  interface ThemeModeControlProps {
3
3
  /** Show text beside each icon. @default true */
4
4
  showLabels?: boolean;
@@ -1,8 +1,8 @@
1
- import { F as MonitorIcon, I as MoonIcon, Z as SunIcon } from "../icons-B4mGvCvc.js";
2
- import { Radio, RadioGroup } from "./RadioGroup.js";
3
- import { useTheme } from "./ThemeProvider.js";
1
+ import { F as MonitorIcon, I as MoonIcon, Z as SunIcon } from "../../icons-B4mGvCvc.js";
2
+ import { Radio, RadioGroup } from "../foundations/RadioGroup.js";
3
+ import { useTheme } from "../foundations/ThemeProvider.js";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
- //#region src/components/ThemeModeControl.tsx
5
+ //#region src/components/general-purpose/ThemeModeControl.tsx
6
6
  const modes = [
7
7
  {
8
8
  value: "light",
@@ -1,7 +1,7 @@
1
- import { n as IconButtonProps } from "../IconButton-CFKhu6OR.js";
1
+ import { n as IconButtonProps } from "../../IconButton-BAUFhUk8.js";
2
2
  import * as React from "react";
3
3
 
4
- //#region src/components/WebPreview.d.ts
4
+ //#region src/components/general-purpose/WebPreview.d.ts
5
5
  interface WebPreviewContextValue {
6
6
  url: string;
7
7
  setUrl: (next: string) => void;
@@ -35,8 +35,8 @@ interface WebPreviewProps extends React.HTMLAttributes<HTMLDivElement> {
35
35
  * known URL with local navigation controls. Do not use it for trusted app
36
36
  * embedding that needs custom iframe permissions; add those explicitly here.
37
37
  *
38
- * Sigvelo changes: composes IconButton, Input, ScrollArea, and Badge;
39
- * keeps a conservative sandbox; maps navigation and console UI to Sigvelo CSS
38
+ * Sigvelo changes: composes IconButton, Input, ScrollArea, and Badge; keeps a
39
+ * conservative sandbox; and maps navigation and console UI to Sigvelo CSS
40
40
  * tokens.
41
41
  *
42
42
  * The iframe has a fixed title and sandbox. Navigation buttons provide
@@ -1,13 +1,13 @@
1
- import { t as cx } from "../class-names-BiMDVpUo.js";
2
- import { Collapsible } from "./Collapsible.js";
3
- import { W as RefreshIcon, f as ChevronDownIcon, i as ArrowRightIcon, r as ArrowLeftIcon } from "../icons-B4mGvCvc.js";
4
- import { IconButton } from "./IconButton.js";
5
- import { Badge } from "./Badge.js";
6
- import { Input } from "./Input.js";
7
- import { ScrollArea } from "./ScrollArea.js";
1
+ import { t as cx } from "../../class-names-BiMDVpUo.js";
2
+ import { Collapsible } from "../foundations/Collapsible.js";
3
+ import { W as RefreshIcon, f as ChevronDownIcon, i as ArrowRightIcon, r as ArrowLeftIcon } from "../../icons-B4mGvCvc.js";
4
+ import { IconButton } from "../foundations/IconButton.js";
5
+ import { Badge } from "../foundations/Badge.js";
6
+ import { ScrollArea } from "../foundations/ScrollArea.js";
7
+ import { Input } from "../foundations/Input.js";
8
8
  import * as React from "react";
9
9
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
- //#region src/components/WebPreview.tsx
10
+ //#region src/components/general-purpose/WebPreview.tsx
11
11
  const WebPreviewContext = React.createContext(null);
12
12
  function useWebPreviewContext() {
13
13
  const ctx = React.useContext(WebPreviewContext);
@@ -23,8 +23,8 @@ function useWebPreviewContext() {
23
23
  * known URL with local navigation controls. Do not use it for trusted app
24
24
  * embedding that needs custom iframe permissions; add those explicitly here.
25
25
  *
26
- * Sigvelo changes: composes IconButton, Input, ScrollArea, and Badge;
27
- * keeps a conservative sandbox; maps navigation and console UI to Sigvelo CSS
26
+ * Sigvelo changes: composes IconButton, Input, ScrollArea, and Badge; keeps a
27
+ * conservative sandbox; and maps navigation and console UI to Sigvelo CSS
28
28
  * tokens.
29
29
  *
30
30
  * The iframe has a fixed title and sandbox. Navigation buttons provide
@@ -269,7 +269,7 @@ function WebPreviewConsole({ className, logs = [], children, ref, ...props }) {
269
269
  children: logs.length === 0 ? /* @__PURE__ */ jsx("li", {
270
270
  className: "web-preview__console-empty",
271
271
  children: "No console output"
272
- }) : logs.map((log, i) => /* @__PURE__ */ jsxs("li", {
272
+ }) : logs.map((log, index) => /* @__PURE__ */ jsxs("li", {
273
273
  className: cx("web-preview__console-item", `web-preview__console-item--${log.level}`),
274
274
  children: [
275
275
  /* @__PURE__ */ jsx(Badge, {
@@ -286,7 +286,7 @@ function WebPreviewConsole({ className, logs = [], children, ref, ...props }) {
286
286
  children: log.timestamp.toLocaleTimeString()
287
287
  })
288
288
  ]
289
- }, i))
289
+ }, index))
290
290
  }), children]
291
291
  }), /* @__PURE__ */ jsx(ScrollArea.Scrollbar, {
292
292
  orientation: "vertical",
@@ -1,7 +1,6 @@
1
- import { d as McpServerSetupAuthFieldName, l as McpServerSetupAuth } from "../mcp-server-catalog-CO7GAl1f.js";
2
1
  import * as React from "react";
3
2
 
4
- //#region src/components/AgentConnection.d.ts
3
+ //#region src/components/nanites/AgentConnection.d.ts
5
4
  type AgentConnectionTarget = string;
6
5
  type AgentConnectionCommand = {
7
6
  readonly target: AgentConnectionTarget;
@@ -34,22 +33,6 @@ type AgentConnectionPanelProps = {
34
33
  type AgentConnectionPopoverProps = Omit<AgentConnectionPanelProps, "section"> & {
35
34
  readonly className?: string;
36
35
  };
37
- type CredentialFieldName = Exclude<McpServerSetupAuthFieldName, "redirectUrl">;
38
- type McpConnectorFormValues = Readonly<Partial<Record<CredentialFieldName, string>> & {
39
- readonly name: string;
40
- readonly url: string;
41
- }>;
42
- type McpConnectorFormProps = Omit<React.FormHTMLAttributes<HTMLFormElement>, "onSubmit" | "status"> & {
43
- /** Authentication metadata that decides which credential fields render. */readonly auth?: McpServerSetupAuth; /** Initial connector values. Publisher client credentials remain app-owned. */
44
- readonly defaults?: Partial<McpConnectorFormValues>; /** Optional pattern used to validate the MCP name field. */
45
- readonly namePattern?: string; /** Keep a catalog-owned MCP name and URL visible but immutable. */
46
- readonly readOnlyServer?: boolean; /** Read-only redirect URL shown for manual OAuth client setup. */
47
- readonly redirectUrl?: string; /** Inline connection status announced politely to assistive tech. */
48
- readonly status?: React.ReactNode; /** Label for the submit button. */
49
- readonly submitLabel?: string; /** Label shown while submit is pending. */
50
- readonly submittingLabel?: string; /** Called with normalized connector values after native form validation passes. */
51
- readonly onSubmit: (values: McpConnectorFormValues) => void | Promise<void>;
52
- };
53
36
  declare function Connection({
54
37
  fromX,
55
38
  fromY,
@@ -77,23 +60,6 @@ declare function AgentConnectionPanel({
77
60
  origin,
78
61
  section
79
62
  }: AgentConnectionPanelProps): React.JSX.Element | null;
80
- /** Collects MCP connector settings and optional credentials with native form validation. */
81
- declare function McpConnectorForm({
82
- auth,
83
- className,
84
- defaults,
85
- namePattern,
86
- readOnlyServer,
87
- redirectUrl,
88
- status,
89
- submitLabel,
90
- submittingLabel,
91
- onSubmit,
92
- ref,
93
- ...props
94
- }: McpConnectorFormProps & {
95
- ref?: React.Ref<HTMLFormElement>;
96
- }): React.JSX.Element;
97
63
  /**
98
64
  * Compact popover trigger for showing AgentConnectionPanel inline.
99
65
  */
@@ -102,4 +68,4 @@ declare function AgentConnectionPopover({
102
68
  ...props
103
69
  }: AgentConnectionPopoverProps): React.JSX.Element;
104
70
  //#endregion
105
- export { AgentConnectionCommand, AgentConnectionPanel, AgentConnectionPanelProps, AgentConnectionPopover, AgentConnectionPopoverProps, AgentConnectionTarget, Connection, ConnectionProps, McpConnectorForm, McpConnectorFormProps, McpConnectorFormValues, NanitesAgentConnectionOptions, buildNanitesAgentConnectionCommands };
71
+ export { AgentConnectionCommand, AgentConnectionPanel, AgentConnectionPanelProps, AgentConnectionPopover, AgentConnectionPopoverProps, AgentConnectionTarget, Connection, ConnectionProps, NanitesAgentConnectionOptions, buildNanitesAgentConnectionCommands };
@@ -1,21 +1,13 @@
1
- import { t as cx } from "../class-names-BiMDVpUo.js";
2
- import { Button } from "./Button.js";
3
- import { k as LinkIcon } from "../icons-B4mGvCvc.js";
4
- import { Popover } from "./Popover.js";
5
- import { Field } from "./Field.js";
6
- import { Form } from "./Form.js";
7
- import { a as CodeBlockCopyButton, i as CodeBlockContent, n as CodeBlockActions, p as CodeBlockTitle, r as CodeBlockContainer, s as CodeBlockHeader, t as CodeBlock } from "../CodeBlock-BUfEhDia.js";
8
- import { CUSTOM_MCP_SERVER_CARD } from "../utils/mcp-server-catalog.js";
1
+ import { t as cx } from "../../class-names-BiMDVpUo.js";
2
+ import { k as LinkIcon } from "../../icons-B4mGvCvc.js";
3
+ import { Button } from "../foundations/Button.js";
4
+ import { a as CodeBlockCopyButton, i as CodeBlockContent, n as CodeBlockActions, p as CodeBlockTitle, r as CodeBlockContainer, s as CodeBlockHeader, t as CodeBlock } from "../../CodeBlock-B5I7wje1.js";
5
+ import { Popover } from "../foundations/Popover.js";
9
6
  import * as React from "react";
10
7
  import { jsx, jsxs } from "react/jsx-runtime";
11
- //#region src/components/AgentConnection.tsx
8
+ //#region src/components/nanites/AgentConnection.tsx
12
9
  const DEFAULT_LOCAL_ORIGIN = "http://localhost:5173";
13
10
  const CONNECTION_CURVE_MIDPOINT = .5;
14
- const CUSTOM_AUTH_FIELDS = [{
15
- inputType: "password",
16
- label: "Bearer",
17
- name: "bearerToken"
18
- }];
19
11
  function Connection({ fromX, fromY, toX, toY, ...props }) {
20
12
  const controlX = fromX + (toX - fromX) * CONNECTION_CURVE_MIDPOINT;
21
13
  return /* @__PURE__ */ jsxs("g", {
@@ -154,140 +146,6 @@ function AgentConnectionPanel({ className, commands: commandsProp, defaultTarget
154
146
  ]
155
147
  });
156
148
  }
157
- /** Collects MCP connector settings and optional credentials with native form validation. */
158
- function McpConnectorForm({ auth, className, defaults, namePattern, readOnlyServer = false, redirectUrl = "", status, submitLabel = "Connect MCP", submittingLabel = "Connecting", onSubmit, ref, ...props }) {
159
- const [submission, setSubmission] = React.useState(null);
160
- const credentialFields = (auth?.fields ?? CUSTOM_AUTH_FIELDS).filter(isCredentialAuthField);
161
- const redirectUrlField = auth?.fields.find((field) => field.name === "redirectUrl");
162
- async function handleSubmit(values) {
163
- setSubmission(true);
164
- try {
165
- await onSubmit(readMcpConnectorFormValues(values));
166
- setSubmission(null);
167
- } catch (error) {
168
- setSubmission(error instanceof Error ? error.message : String(error));
169
- }
170
- }
171
- return /* @__PURE__ */ jsxs(Form, {
172
- ref,
173
- "aria-label": "MCP connector",
174
- className: cx("agent-connect__mcp-form", className),
175
- onFormSubmit: handleSubmit,
176
- ...props,
177
- children: [
178
- /* @__PURE__ */ jsxs(Field.Root, {
179
- name: "name",
180
- children: [
181
- /* @__PURE__ */ jsx(Field.Label, { children: "MCP name" }),
182
- /* @__PURE__ */ jsx(Field.Control, {
183
- defaultValue: defaults?.name ?? CUSTOM_MCP_SERVER_CARD.id,
184
- pattern: namePattern,
185
- readOnly: readOnlyServer,
186
- required: true,
187
- title: namePattern ? "Use the required name format." : void 0
188
- }),
189
- /* @__PURE__ */ jsx(Field.Error, {
190
- match: "valueMissing",
191
- children: "MCP name is required."
192
- }),
193
- /* @__PURE__ */ jsx(Field.Error, {
194
- match: "patternMismatch",
195
- children: "Use the required name format."
196
- })
197
- ]
198
- }),
199
- /* @__PURE__ */ jsxs(Field.Root, {
200
- name: "url",
201
- children: [
202
- /* @__PURE__ */ jsx(Field.Label, { children: "MCP URL" }),
203
- /* @__PURE__ */ jsx(Field.Control, {
204
- defaultValue: defaults?.url ?? "",
205
- placeholder: "http://127.0.0.1:8787/mcp",
206
- readOnly: readOnlyServer,
207
- required: true,
208
- type: "url"
209
- }),
210
- /* @__PURE__ */ jsx(Field.Error, {
211
- match: "valueMissing",
212
- children: "MCP URL is required."
213
- }),
214
- /* @__PURE__ */ jsx(Field.Error, {
215
- match: "typeMismatch",
216
- children: "MCP URL must use http or https."
217
- })
218
- ]
219
- }),
220
- redirectUrlField ? /* @__PURE__ */ jsxs(Field.Root, {
221
- name: "redirectUrl",
222
- children: [/* @__PURE__ */ jsx(Field.Label, { children: redirectUrlField.label }), /* @__PURE__ */ jsx(Field.Control, {
223
- readOnly: true,
224
- type: "url",
225
- value: redirectUrl
226
- })]
227
- }) : null,
228
- credentialFields.length > 0 ? /* @__PURE__ */ jsxs(Field.Set, { children: [/* @__PURE__ */ jsx(Field.Legend, {
229
- variant: "label",
230
- children: auth?.label ?? "Credentials"
231
- }), /* @__PURE__ */ jsx(Field.Group, { children: credentialFields.map((authField) => /* @__PURE__ */ jsxs(Field.Root, {
232
- name: authField.name,
233
- children: [
234
- /* @__PURE__ */ jsx(Field.Label, { children: authField.label }),
235
- /* @__PURE__ */ jsx(Field.Control, {
236
- autoComplete: "off",
237
- defaultValue: defaults?.[authField.name],
238
- placeholder: authField.placeholder,
239
- required: authField.required,
240
- type: authField.inputType ?? "text"
241
- }),
242
- /* @__PURE__ */ jsxs(Field.Error, {
243
- match: "valueMissing",
244
- children: [authField.label, " is required."]
245
- })
246
- ]
247
- }, authField.name)) })] }) : null,
248
- /* @__PURE__ */ jsx("div", {
249
- className: "agent-connect__mcp-form-actions",
250
- children: /* @__PURE__ */ jsx(Button, {
251
- type: "submit",
252
- size: "sm",
253
- disabled: submission === true,
254
- focusableWhenDisabled: submission === true,
255
- children: submission === true ? submittingLabel : submitLabel
256
- })
257
- }),
258
- typeof submission === "string" ? /* @__PURE__ */ jsx("span", {
259
- className: "agent-connect__mcp-form-status",
260
- "aria-atomic": "true",
261
- role: "alert",
262
- children: submission
263
- }) : status ? /* @__PURE__ */ jsx("span", {
264
- className: "agent-connect__mcp-form-status",
265
- "aria-atomic": "true",
266
- role: "status",
267
- children: status
268
- }) : null
269
- ]
270
- });
271
- }
272
- function readMcpConnectorFormValues(data) {
273
- const bearerToken = readFormString(data, "bearerToken");
274
- const clientId = readFormString(data, "clientId");
275
- const clientSecret = readFormString(data, "clientSecret");
276
- return {
277
- ...bearerToken ? { bearerToken } : {},
278
- ...clientId ? { clientId } : {},
279
- ...clientSecret ? { clientSecret } : {},
280
- name: readFormString(data, "name"),
281
- url: readFormString(data, "url")
282
- };
283
- }
284
- function readFormString(data, name) {
285
- const value = data[name];
286
- return typeof value === "string" ? value.trim() : "";
287
- }
288
- function isCredentialAuthField(field) {
289
- return field.name !== "redirectUrl";
290
- }
291
149
  /**
292
150
  * Compact popover trigger for showing AgentConnectionPanel inline.
293
151
  */
@@ -319,4 +177,4 @@ function AgentConnectionPopover({ className, ...props }) {
319
177
  }) })] });
320
178
  }
321
179
  //#endregion
322
- export { AgentConnectionPanel, AgentConnectionPopover, Connection, McpConnectorForm, buildNanitesAgentConnectionCommands };
180
+ export { AgentConnectionPanel, AgentConnectionPopover, Connection, buildNanitesAgentConnectionCommands };
@@ -1,12 +1,12 @@
1
- import { i as ThinkChatValue } from "../ThinkChatContext-B-Nk84Wi.js";
2
- import { ThinkChatMessagesProps } from "./ThinkChat.js";
3
- import { t as ThinkAgent } from "../think-agent-Cip5KAPj.js";
1
+ import { i as ThinkChatValue } from "../../ThinkChatContext-COIgzkYp.js";
2
+ import { ThinkChatMessagesProps } from "../agents-sdk/ThinkChat.js";
3
+ import { t as ThinkAgent } from "../../think-agent-Cip5KAPj.js";
4
4
  import * as React from "react";
5
5
  import { UIMessage } from "ai";
6
6
  import { UseAgentOptions, useAgent } from "agents/react";
7
7
  import { AgentToolRunState } from "agents/agent-tools";
8
8
 
9
- //#region src/components/AgentToolDetail.d.ts
9
+ //#region src/components/nanites/AgentToolDetail.d.ts
10
10
  interface AgentToolDetailProps<State = unknown, MessageT extends UIMessage = UIMessage> extends React.HTMLAttributes<HTMLDivElement> {
11
11
  /** Whole retained run selected from the parent `useAgentToolEvents` result. */
12
12
  run: AgentToolRunState<MessageT["parts"][number]>;
@@ -1,16 +1,16 @@
1
- import { t as cx } from "../class-names-BiMDVpUo.js";
2
- import { r as ArrowLeftIcon } from "../icons-B4mGvCvc.js";
3
- import { TransitionSurface } from "./TransitionSurface.js";
4
- import { AppTopBar } from "./AppTopBar.js";
1
+ import { t as cx } from "../../class-names-BiMDVpUo.js";
2
+ import { r as ArrowLeftIcon } from "../../icons-B4mGvCvc.js";
3
+ import { TransitionSurface } from "../foundations/TransitionSurface.js";
4
+ import { SubagentRunMilestone, SubagentRunMilestones, SubagentRunProgress } from "../agents-sdk/SubagentRunDetails.js";
5
+ import { SubagentRunIndicator, getSubagentRunName } from "../agents-sdk/SubagentRunIndicator.js";
6
+ import { t as ThinkChat } from "../../ThinkChat-yid8e_Jb.js";
7
+ import { AppTopBar } from "../general-purpose/AppTopBar.js";
5
8
  import { NaniteMark } from "./NaniteScene.js";
6
- import { SubagentRunIndicator, getSubagentRunName } from "./SubagentRunIndicator.js";
7
- import { SubagentRunMilestone, SubagentRunMilestones, SubagentRunProgress } from "./SubagentRunDetails.js";
8
- import { t as ThinkChat } from "../ThinkChat-Bp-nAnoW.js";
9
9
  import * as React from "react";
10
10
  import { jsx, jsxs } from "react/jsx-runtime";
11
11
  import { useAgentChat } from "@cloudflare/think/react";
12
12
  import { useAgent } from "agents/react";
13
- //#region src/components/AgentToolDetail.tsx
13
+ //#region src/components/nanites/AgentToolDetail.tsx
14
14
  /**
15
15
  * Live retained-child detail composed from upstream connection and chat values.
16
16
  * The full child transcript comes from `chat.messages`; `run.parts` remains a
@@ -1,4 +1,4 @@
1
- //#region src/components/GithubMotionMark.d.ts
1
+ //#region src/components/nanites/GithubMotionMark.d.ts
2
2
  /**
3
3
  * Small GitHub motion mark used next to install or repository connection text.
4
4
  */
@@ -1,6 +1,6 @@
1
- import { t as cx } from "../class-names-BiMDVpUo.js";
1
+ import { t as cx } from "../../class-names-BiMDVpUo.js";
2
2
  import { jsx } from "react/jsx-runtime";
3
- //#region src/components/GithubMotionMark.tsx
3
+ //#region src/components/nanites/GithubMotionMark.tsx
4
4
  /**
5
5
  * Small GitHub motion mark used next to install or repository connection text.
6
6
  */
@@ -1,4 +1,4 @@
1
- //#region src/components/NaniteScene.d.ts
1
+ //#region src/components/nanites/NaniteScene.d.ts
2
2
  type NaniteSceneVariant = "idle" | "helmet" | "working" | "celebrating" | "concerned";
3
3
  type NaniteSceneProps = {
4
4
  /** Visual state to render. */readonly variant: NaniteSceneVariant; /** Render three compact Nanites or one status Nanite with optional screen art. */
@@ -1,6 +1,6 @@
1
- import { t as cx } from "../class-names-BiMDVpUo.js";
1
+ import { t as cx } from "../../class-names-BiMDVpUo.js";
2
2
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
- //#region src/components/NaniteScene.tsx
3
+ //#region src/components/nanites/NaniteScene.tsx
4
4
  const BODY_COLORS = [
5
5
  "#0f7b6c",
6
6
  "#2d5a8a",
@@ -1,5 +1,5 @@
1
1
  import { d as CheckIcon, g as CopyIcon } from "./icons-B4mGvCvc.js";
2
- import { IconButton } from "./components/IconButton.js";
2
+ import { IconButton } from "./components/foundations/IconButton.js";
3
3
  import * as React from "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region src/components/_internal/copy-button.tsx
@@ -1,4 +1,4 @@
1
- import { n as IconButtonProps } from "./IconButton-CFKhu6OR.js";
1
+ import { n as IconButtonProps } from "./IconButton-BAUFhUk8.js";
2
2
  import * as React from "react";
3
3
 
4
4
  //#region src/components/_internal/copy-button.d.ts
@@ -34,5 +34,8 @@ function formatClock(totalSeconds) {
34
34
  const seconds = String(total % 60).padStart(2, "0");
35
35
  return hours > 0 ? `${hours}:${String(minutes).padStart(2, "0")}:${seconds}` : `${minutes}:${seconds}`;
36
36
  }
37
+ function formatErrorMessage(error) {
38
+ return error instanceof Error ? error.message : String(error);
39
+ }
37
40
  //#endregion
38
- export { titleCase as i, clamp as n, formatClock as r, capitalize as t };
41
+ export { titleCase as a, formatErrorMessage as i, clamp as n, formatClock as r, capitalize as t };