zidane-ui 9.1.14 → 9.1.17

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 (674) hide show
  1. package/dist/adapters/browser-keybindings-host.d.ts +10 -2
  2. package/dist/adapters/browser-keybindings-host.js +40 -2
  3. package/dist/adapters/index.d.ts +3 -2
  4. package/dist/adapters/index.js +3 -2
  5. package/dist/adapters/server-custom-frame.d.ts +22 -0
  6. package/dist/adapters/server-custom-frame.js +163 -0
  7. package/dist/adapters/server-extensions-host.js +1 -1
  8. package/dist/adapters/server-host.js +8 -3
  9. package/dist/adapters/server-machines-host.js +3 -2
  10. package/dist/adapters/server-settings-host.js +1 -1
  11. package/dist/adapters/server-views-host.d.ts +24 -0
  12. package/dist/adapters/server-views-host.js +78 -0
  13. package/dist/app/AppHostProvider.d.ts +4 -1
  14. package/dist/app/AppHostProvider.js +11 -5
  15. package/dist/app/ModalProvider.js +2 -2
  16. package/dist/app/NoticeStack.js +1 -1
  17. package/dist/app/headless/app-host.d.ts +3 -0
  18. package/dist/app/useConfirm.js +1 -1
  19. package/dist/appearance/AppearanceProvider.js +3 -3
  20. package/dist/appearance/headless/index.js +1 -1
  21. package/dist/approvals/ApprovalBar.js +27 -15
  22. package/dist/approvals/ApprovalShell.js +1 -1
  23. package/dist/approvals/ApprovalsProvider.js +1 -1
  24. package/dist/approvals/FileEditApproval.js +1 -1
  25. package/dist/approvals/HunkPreviews.js +2 -2
  26. package/dist/approvals/SafelistPanel.js +2 -2
  27. package/dist/approvals/headless/index.js +2 -2
  28. package/dist/approvals/headless/labels.d.ts +3 -0
  29. package/dist/approvals/headless/labels.js +3 -0
  30. package/dist/chat/ChatProvider.js +1 -1
  31. package/dist/chat/DaemonOrb.js +1 -1
  32. package/dist/chat/HostBadge.js +1 -1
  33. package/dist/chat/HostTranscript.js +1 -1
  34. package/dist/chat/PdfPreview.js +1 -1
  35. package/dist/chat/RunEstimateChip.js +1 -1
  36. package/dist/chat/SessionFilterMenu.js +2 -2
  37. package/dist/chat/SessionList.js +1 -1
  38. package/dist/chat/SessionListRow.js +2 -2
  39. package/dist/chat/SessionStreamsProvider.d.ts +3 -1
  40. package/dist/chat/SessionStreamsProvider.js +6 -2
  41. package/dist/chat/StatusDot.js +1 -1
  42. package/dist/chat/TextPreview.js +1 -1
  43. package/dist/chat/Throbber.js +1 -1
  44. package/dist/chat/Transcript.d.ts +1 -1
  45. package/dist/chat/Transcript.js +96 -27
  46. package/dist/chat/composer/AgentPicker.js +1 -1
  47. package/dist/chat/composer/AgentPickerDialog.js +1 -1
  48. package/dist/chat/composer/ApprovalDock.js +1 -1
  49. package/dist/chat/composer/AttachmentTiles.js +2 -2
  50. package/dist/chat/composer/Composer.js +2 -3
  51. package/dist/chat/composer/ComposerBadges.js +2 -2
  52. package/dist/chat/composer/ComposerControls.js +1 -1
  53. package/dist/chat/composer/ComposerEditor.js +2 -2
  54. package/dist/chat/composer/ComposerHostProvider.js +1 -1
  55. package/dist/chat/composer/ComposerShell.js +1 -1
  56. package/dist/chat/composer/ContextBreakdown.js +23 -23
  57. package/dist/chat/composer/ConversationBadges.js +2 -2
  58. package/dist/chat/composer/DraftPickers.d.ts +38 -0
  59. package/dist/chat/composer/DraftPickers.js +72 -0
  60. package/dist/chat/composer/EffortPickerDialog.js +1 -1
  61. package/dist/chat/composer/HostComposer.js +2 -2
  62. package/dist/chat/composer/HostContextOrb.js +2 -2
  63. package/dist/chat/composer/HostModelChainList.js +1 -1
  64. package/dist/chat/composer/HostPickers.js +1 -1
  65. package/dist/chat/composer/ImageModelList.js +1 -1
  66. package/dist/chat/composer/ModelChainList.js +1 -1
  67. package/dist/chat/composer/ModelChainParts.js +1 -1
  68. package/dist/chat/composer/ModelChainRow.js +1 -1
  69. package/dist/chat/composer/ModelChainRows.js +1 -1
  70. package/dist/chat/composer/ModelOptionsPicker.js +1 -1
  71. package/dist/chat/composer/ModelPicker.js +2 -2
  72. package/dist/chat/composer/ModelPickerDialog.js +1 -1
  73. package/dist/chat/composer/ModelProviderPills.js +1 -1
  74. package/dist/chat/composer/PickerPill.js +1 -1
  75. package/dist/chat/composer/ProjectMenu.js +1 -1
  76. package/dist/chat/composer/PromptHistoryProvider.js +1 -1
  77. package/dist/chat/composer/RunStatusChip.js +1 -1
  78. package/dist/chat/composer/attachment-ingest.js +4 -2
  79. package/dist/chat/composer/heif.d.ts +12 -0
  80. package/dist/chat/composer/heif.js +115 -0
  81. package/dist/chat/composer/index.d.ts +5 -3
  82. package/dist/chat/composer/index.js +4 -2
  83. package/dist/chat/composer/suggestions.js +1 -1
  84. package/dist/chat/composer/use-composer-stores.d.ts +3 -1
  85. package/dist/chat/composer/use-composer-stores.js +8 -3
  86. package/dist/chat/composer/use-draft-target.d.ts +5 -0
  87. package/dist/chat/composer/use-draft-target.js +11 -9
  88. package/dist/chat/composer/use-new-chats-default.d.ts +25 -0
  89. package/dist/chat/composer/use-new-chats-default.js +32 -0
  90. package/dist/chat/composer/use-run-meter.js +1 -1
  91. package/dist/chat/composer/use-send-prompt.d.ts +11 -1
  92. package/dist/chat/composer/use-send-prompt.js +6 -4
  93. package/dist/chat/headless/composer/index.js +2 -2
  94. package/dist/chat/headless/composer/labels-editor.d.ts +0 -2
  95. package/dist/chat/headless/composer/labels-editor.js +0 -2
  96. package/dist/chat/headless/host.d.ts +9 -0
  97. package/dist/chat/headless/index.d.ts +5 -4
  98. package/dist/chat/headless/index.js +16 -14
  99. package/dist/chat/headless/labels.d.ts +82 -3
  100. package/dist/chat/headless/labels.js +13 -5
  101. package/dist/chat/headless/notifications.d.ts +2 -0
  102. package/dist/chat/headless/notifications.js +1 -0
  103. package/dist/chat/headless/prompt-origin.d.ts +53 -2
  104. package/dist/chat/headless/prompt-origin.js +55 -5
  105. package/dist/chat/headless/session-list.d.ts +79 -2
  106. package/dist/chat/headless/sidebar/labels.d.ts +81 -4
  107. package/dist/chat/headless/transcript/batch.d.ts +12 -1
  108. package/dist/chat/headless/transcript/batch.js +47 -1
  109. package/dist/chat/headless/transcript/collapse.js +11 -0
  110. package/dist/chat/headless/transcript/fold.js +23 -7
  111. package/dist/chat/headless/transcript/index.d.ts +3 -3
  112. package/dist/chat/headless/transcript/index.js +2 -2
  113. package/dist/chat/headless/transcript/rows.d.ts +31 -2
  114. package/dist/chat/headless/transcript/select-stops.js +4 -0
  115. package/dist/chat/headless/transcript-labels.d.ts +1 -0
  116. package/dist/chat/headless/turn-labels.d.ts +2 -0
  117. package/dist/chat/headless/turn-labels.js +2 -0
  118. package/dist/chat/index.d.ts +10 -5
  119. package/dist/chat/index.js +9 -4
  120. package/dist/chat/interactions/HostInteractions.js +1 -1
  121. package/dist/chat/interactions/InboxPanel.js +2 -2
  122. package/dist/chat/interactions/PlanCard.js +4 -4
  123. package/dist/chat/interactions/QuestionField.js +2 -2
  124. package/dist/chat/interactions/QuestionForm.js +1 -1
  125. package/dist/chat/interactions/SecretInput.js +1 -1
  126. package/dist/chat/interactions/card-ui.js +1 -1
  127. package/dist/chat/rich-composer/MentionList.js +1 -1
  128. package/dist/chat/rich-composer/RichComposer.js +2 -8
  129. package/dist/chat/rich-composer/composer-extensions.d.ts +0 -2
  130. package/dist/chat/rich-composer/composer-extensions.js +2 -2
  131. package/dist/chat/rich-composer/use-composer-editor.d.ts +0 -2
  132. package/dist/chat/rich-composer/use-composer-editor.js +1 -2
  133. package/dist/chat/sidebar/MainSessionRow.js +1 -1
  134. package/dist/chat/sidebar/ProjectIcon.js +3 -3
  135. package/dist/chat/sidebar/SessionSidebar.js +2 -2
  136. package/dist/chat/sidebar/SidebarDecoration.js +2 -2
  137. package/dist/chat/sidebar/SidebarFilterMenu.js +1 -1
  138. package/dist/chat/sidebar/SidebarFooter.js +1 -1
  139. package/dist/chat/sidebar/SidebarFrame.js +2 -2
  140. package/dist/chat/sidebar/SidebarGroupHeader.js +3 -3
  141. package/dist/chat/sidebar/SidebarHostProvider.js +1 -1
  142. package/dist/chat/sidebar/SidebarRowView.js +1 -1
  143. package/dist/chat/sidebar/SidebarSessionRow.js +6 -6
  144. package/dist/chat/sidebar/SpaceSwitcher.js +1 -1
  145. package/dist/chat/sidebar/SpacesSection.js +2 -2
  146. package/dist/chat/sidebar/sidebar-live.js +3 -3
  147. package/dist/chat/transcript/AnsiText.js +4 -4
  148. package/dist/chat/transcript/AuthFailureCard.js +2 -2
  149. package/dist/chat/transcript/BadgeMenu.js +1 -1
  150. package/dist/chat/transcript/CardMarkdown.js +1 -1
  151. package/dist/chat/transcript/ChipCards.js +1 -1
  152. package/dist/chat/transcript/CodemodeScript.js +11 -6
  153. package/dist/chat/transcript/DiffLines.js +1 -1
  154. package/dist/chat/transcript/EarlierHistory.js +1 -1
  155. package/dist/chat/transcript/EditDiffBlock.js +1 -1
  156. package/dist/chat/transcript/FileChip.js +5 -5
  157. package/dist/chat/transcript/ImageGenerationBlock.js +1 -1
  158. package/dist/chat/transcript/LazyRow.js +1 -1
  159. package/dist/chat/transcript/LiveOutput.js +1 -1
  160. package/dist/chat/transcript/MermaidDiagram.d.ts +68 -2
  161. package/dist/chat/transcript/MermaidDiagram.js +344 -32
  162. package/dist/chat/transcript/PromptEcho.js +1 -1
  163. package/dist/chat/transcript/ProseMarkdown.js +1 -1
  164. package/dist/chat/transcript/ReferenceText.js +8 -8
  165. package/dist/chat/transcript/SelectCursor.js +1 -1
  166. package/dist/chat/transcript/SelectTurnProvider.js +1 -1
  167. package/dist/chat/transcript/SubagentBlock.js +1 -1
  168. package/dist/chat/transcript/TranscriptRow.js +20 -5
  169. package/dist/chat/transcript/TranscriptSearch.js +1 -1
  170. package/dist/chat/transcript/TurnMenu.js +1 -1
  171. package/dist/chat/transcript/actions.js +1 -1
  172. package/dist/chat/transcript/diagrams-scope.d.ts +4 -0
  173. package/dist/chat/transcript/diagrams-scope.js +11 -0
  174. package/dist/chat/transcript/extension-renderers.js +1 -1
  175. package/dist/chat/transcript/fold-attachments.js +1 -1
  176. package/dist/chat/transcript/fold-status.js +1 -1
  177. package/dist/chat/transcript/fold-worker.js +1 -1
  178. package/dist/chat/transcript/fold.js +5 -5
  179. package/dist/chat/transcript/frame.js +1 -1
  180. package/dist/chat/transcript/index.d.ts +5 -2
  181. package/dist/chat/transcript/index.js +5 -2
  182. package/dist/chat/transcript/markdown.js +95 -14
  183. package/dist/chat/transcript/messages.js +19 -10
  184. package/dist/chat/transcript/notices.js +2 -2
  185. package/dist/chat/transcript/prompt-lines.js +5 -5
  186. package/dist/chat/transcript/prompt.js +2 -2
  187. package/dist/chat/transcript/prose.js +1 -1
  188. package/dist/chat/transcript/renderer-slots.js +1 -1
  189. package/dist/chat/transcript/renderers.js +3 -3
  190. package/dist/chat/transcript/row-estimate.js +5 -1
  191. package/dist/chat/transcript/run-rows.js +2 -2
  192. package/dist/chat/transcript/script-input.d.ts +1 -1
  193. package/dist/chat/transcript/shell-block.js +5 -5
  194. package/dist/chat/transcript/tasks.d.ts +35 -0
  195. package/dist/chat/transcript/tasks.js +100 -0
  196. package/dist/chat/transcript/tool-batch.js +2 -2
  197. package/dist/chat/transcript/tool-media.js +1 -1
  198. package/dist/chat/transcript/tool-parts.js +1 -1
  199. package/dist/chat/transcript/tool-row.js +8 -8
  200. package/dist/chat/transcript/turn-commands.d.ts +15 -1
  201. package/dist/chat/transcript/turn-commands.js +43 -4
  202. package/dist/chat/transcript/use-host-turn-menu.d.ts +25 -0
  203. package/dist/chat/transcript/use-host-turn-menu.js +57 -0
  204. package/dist/chat/transcript/use-transcript-rows.js +2 -2
  205. package/dist/chat/transcript/useStickToBottom.js +1 -1
  206. package/dist/chat/transcript/useTranscriptSearch.js +1 -1
  207. package/dist/chat/transcript/user-bash.js +1 -1
  208. package/dist/chat/transcript/view-scope.d.ts +163 -0
  209. package/dist/chat/transcript/view-scope.js +224 -0
  210. package/dist/chat/transcript-options.d.ts +1 -1
  211. package/dist/chat/transcript-options.js +4 -1
  212. package/dist/code/CodeHighlightProvider.js +1 -1
  213. package/dist/code/HighlightedCode.js +1 -1
  214. package/dist/code/editor/CodeCompletion.js +3 -3
  215. package/dist/code/editor/CodeEditor.js +1 -1
  216. package/dist/code/editor/CodeHover.js +1 -1
  217. package/dist/code/editor/DiffView.js +1 -1
  218. package/dist/code/editor/EditorColumn.js +1 -1
  219. package/dist/code/editor/FileIcon.js +1 -1
  220. package/dist/code/editor/FileTree.js +1 -1
  221. package/dist/code/editor/FileView.js +1 -1
  222. package/dist/code/editor/HighlightWorkers.js +2 -2
  223. package/dist/code/editor/LanguageEditor.js +1 -1
  224. package/dist/code/editor/environment.js +1 -1
  225. package/dist/code/editor/find/FindBar.js +1 -1
  226. package/dist/components/Accordion.d.ts +30 -0
  227. package/dist/components/Accordion.js +96 -0
  228. package/dist/components/Breadcrumb.js +1 -1
  229. package/dist/components/Breakdown.d.ts +82 -0
  230. package/dist/components/Breakdown.js +212 -0
  231. package/dist/components/BrowserChrome.js +1 -1
  232. package/dist/components/BrowserSignIn.js +4 -4
  233. package/dist/components/Callout.d.ts +29 -0
  234. package/dist/components/Callout.js +60 -0
  235. package/dist/components/Checklist.d.ts +53 -0
  236. package/dist/components/Checklist.js +189 -0
  237. package/dist/components/ChoiceCards.d.ts +7 -1
  238. package/dist/components/ChoiceCards.js +11 -7
  239. package/dist/components/CodeFrame.js +1 -1
  240. package/dist/components/Compare.d.ts +65 -0
  241. package/dist/components/Compare.js +242 -0
  242. package/dist/components/ConfirmDialog.js +1 -1
  243. package/dist/components/CopyButton.js +1 -1
  244. package/dist/components/EditableTitle.js +1 -1
  245. package/dist/components/ErrorBoundary.js +1 -1
  246. package/dist/components/Form.d.ts +3 -1
  247. package/dist/components/Form.js +2 -1
  248. package/dist/components/HowItWorks.js +2 -2
  249. package/dist/components/IconButton.js +2 -2
  250. package/dist/components/KeyValue.d.ts +37 -0
  251. package/dist/components/KeyValue.js +43 -0
  252. package/dist/components/Lightbox.js +2 -2
  253. package/dist/components/Menu.js +2 -2
  254. package/dist/components/Overlay.js +2 -2
  255. package/dist/components/Progress.d.ts +55 -0
  256. package/dist/components/Progress.js +94 -0
  257. package/dist/components/ReorderTabs.js +1 -1
  258. package/dist/components/RowActionsMenu.js +3 -3
  259. package/dist/components/RowMenuButton.d.ts +24 -0
  260. package/dist/components/RowMenuButton.js +42 -0
  261. package/dist/components/Segmented.js +1 -1
  262. package/dist/components/Stat.d.ts +105 -0
  263. package/dist/components/Stat.js +131 -0
  264. package/dist/components/StepFrame.js +1 -1
  265. package/dist/components/Steps.d.ts +38 -0
  266. package/dist/components/Steps.js +49 -0
  267. package/dist/components/Surface.d.ts +1 -1
  268. package/dist/components/Surface.js +1 -1
  269. package/dist/components/SwatchPicker.js +1 -1
  270. package/dist/components/Table.d.ts +123 -0
  271. package/dist/components/Table.js +437 -0
  272. package/dist/components/Tabs.d.ts +41 -0
  273. package/dist/components/Tabs.js +103 -0
  274. package/dist/components/ToggleCard.js +3 -3
  275. package/dist/components/Tooltip.js +2 -2
  276. package/dist/components/ZidaneMark.js +1 -1
  277. package/dist/components/ZoomableImage.js +1 -1
  278. package/dist/components/charts/AreaChart.d.ts +24 -0
  279. package/dist/components/charts/AreaChart.js +210 -0
  280. package/dist/components/charts/BarChart.d.ts +112 -0
  281. package/dist/components/charts/BarChart.js +686 -0
  282. package/dist/components/charts/LineChart.d.ts +34 -0
  283. package/dist/components/charts/LineChart.js +299 -0
  284. package/dist/components/charts/ScatterChart.d.ts +83 -0
  285. package/dist/components/charts/ScatterChart.js +702 -0
  286. package/dist/components/charts/Sparkline.d.ts +31 -0
  287. package/dist/components/charts/Sparkline.js +82 -0
  288. package/dist/components/charts/Trend.d.ts +86 -0
  289. package/dist/components/charts/Trend.js +233 -0
  290. package/dist/components/charts/frame.d.ts +225 -0
  291. package/dist/components/charts/frame.js +475 -0
  292. package/dist/components/charts/index.d.ts +10 -0
  293. package/dist/components/charts/index.js +9 -0
  294. package/dist/components/charts/interact.d.ts +89 -0
  295. package/dist/components/charts/interact.js +296 -0
  296. package/dist/components/charts/measure.d.ts +29 -0
  297. package/dist/components/charts/measure.js +79 -0
  298. package/dist/components/charts/xy.d.ts +230 -0
  299. package/dist/components/charts/xy.js +488 -0
  300. package/dist/components/charts/zoom-reset.d.ts +7 -0
  301. package/dist/components/charts/zoom-reset.js +23 -0
  302. package/dist/components/floating/FloatingSurface.js +1 -1
  303. package/dist/components/floating/HoverCard.js +2 -2
  304. package/dist/components/floating/Popover.js +2 -2
  305. package/dist/components/lazy-part.d.ts +17 -0
  306. package/dist/components/lazy-part.js +33 -0
  307. package/dist/components/numbers.d.ts +74 -0
  308. package/dist/components/numbers.js +157 -0
  309. package/dist/components/palette/PaletteList.js +5 -5
  310. package/dist/components/palette/PalettePanel.js +2 -2
  311. package/dist/core.css +517 -3
  312. package/dist/dist/index-BUHcyEqA.d.ts +1 -0
  313. package/dist/dist/{index-C6rzc-tt.d.ts → index-CGCMyhB3.d.ts} +182 -126
  314. package/dist/dist/index.d.ts +5 -5
  315. package/dist/dist/sandbox-Cib3Qf4t.d.ts +2 -0
  316. package/dist/dist/{timeout-Cz9dRF8Q.d.ts → timeout-Cyx3VGPz.d.ts} +1 -1
  317. package/dist/extensions/ExtensionComponent.js +6 -5
  318. package/dist/extensions/ExtensionDialogHost.js +1 -1
  319. package/dist/extensions/ExtensionRenderer.js +1 -1
  320. package/dist/extensions/ExtensionScreen.js +1 -1
  321. package/dist/extensions/ExtensionSettingsPage.js +2 -2
  322. package/dist/extensions/ExtensionSettingsSection.js +2 -2
  323. package/dist/extensions/ExtensionSettingsSidebar.js +2 -2
  324. package/dist/extensions/ExtensionSlot.js +2 -2
  325. package/dist/extensions/ExtensionWebview.js +1 -1
  326. package/dist/extensions/ExtensionsProvider.js +1 -1
  327. package/dist/extensions/headless/fixture-host.js +1 -1
  328. package/dist/extensions/headless/index.d.ts +2 -2
  329. package/dist/extensions/headless/index.js +4 -4
  330. package/dist/extensions/headless/wire.d.ts +5 -1
  331. package/dist/extensions/headless/wire.js +2 -1
  332. package/dist/extensions/hooks.js +1 -1
  333. package/dist/extensions/links.js +1 -1
  334. package/dist/files/CodeViewer.js +1 -1
  335. package/dist/files/DiffFileViewer.js +1 -1
  336. package/dist/files/DiffsTab.js +2 -2
  337. package/dist/files/EditorColumn.js +63 -29
  338. package/dist/files/EditorEnvironmentRoot.js +1 -1
  339. package/dist/files/FilePreview.d.ts +24 -0
  340. package/dist/files/FilePreview.js +283 -0
  341. package/dist/files/FilesProvider.js +1 -1
  342. package/dist/files/FilesTab.js +2 -2
  343. package/dist/files/MediaDiff.js +2 -2
  344. package/dist/files/MediaView.js +1 -1
  345. package/dist/files/ReviewDraft.js +1 -1
  346. package/dist/files/ReviewableDiff.js +2 -2
  347. package/dist/files/SearchPanel.js +2 -2
  348. package/dist/files/TreeColumn.js +2 -2
  349. package/dist/files/file-actions.js +1 -0
  350. package/dist/files/headless/labels.d.ts +5 -0
  351. package/dist/files/headless/labels.js +5 -0
  352. package/dist/files/headless/preview.d.ts +44 -0
  353. package/dist/files/headless/preview.js +103 -0
  354. package/dist/files/lazy-tabs.js +1 -1
  355. package/dist/files/useCodeReview.js +1 -1
  356. package/dist/files/useEntryActions.js +1 -1
  357. package/dist/files/useLsp.js +1 -1
  358. package/dist/files/useOpenFiles.d.ts +2 -0
  359. package/dist/files/useOpenFiles.js +15 -1
  360. package/dist/git/BranchMenu.js +8 -8
  361. package/dist/git/GitBar.js +1 -1
  362. package/dist/git/GitProvider.js +1 -1
  363. package/dist/git/ImportRepoDialog.js +1 -1
  364. package/dist/git/MoveSessionDialog.js +3 -3
  365. package/dist/git/RemoteFolderPicker.js +5 -5
  366. package/dist/git/SyncChip.js +1 -1
  367. package/dist/git/WherePicker.d.ts +2 -0
  368. package/dist/git/WherePicker.js +16 -13
  369. package/dist/git/headless/index.js +1 -1
  370. package/dist/git/index.d.ts +1 -1
  371. package/dist/git/index.js +1 -1
  372. package/dist/git/useEnvironmentChoices.js +1 -1
  373. package/dist/hooks/useDisplayPath.js +1 -1
  374. package/dist/index.d.ts +14 -1
  375. package/dist/index.js +16 -3
  376. package/dist/keybindings/KeyCommands.js +2 -2
  377. package/dist/keybindings/KeybindingsProvider.js +5 -3
  378. package/dist/keybindings/headless/host.d.ts +5 -0
  379. package/dist/keybindings/headless/index.js +2 -2
  380. package/dist/keybindings/headless/overrides.d.ts +2 -1
  381. package/dist/keybindings/headless/overrides.js +3 -2
  382. package/dist/keybindings/testing/contract.js +1 -0
  383. package/dist/labels.d.ts +97 -0
  384. package/dist/labels.js +104 -1
  385. package/dist/machines/AddMachineDialog.js +3 -3
  386. package/dist/machines/AddServerForm.js +1 -1
  387. package/dist/machines/DaemonMenu.js +3 -3
  388. package/dist/machines/HostCapabilities.js +5 -5
  389. package/dist/machines/HostIcon.d.ts +21 -0
  390. package/dist/machines/HostIcon.js +19 -0
  391. package/dist/machines/HostSignIn.js +1 -1
  392. package/dist/machines/HostSyncPanel.js +2 -2
  393. package/dist/machines/HostsSection.d.ts +27 -1
  394. package/dist/machines/HostsSection.js +60 -46
  395. package/dist/machines/MachinesProvider.js +1 -1
  396. package/dist/machines/ServerCard.d.ts +1 -2
  397. package/dist/machines/ServerCard.js +4 -9
  398. package/dist/machines/ServerMachinesPanel.js +161 -196
  399. package/dist/machines/ServerUpdatePanel.js +94 -111
  400. package/dist/machines/ShareThisComputerForm.js +1 -1
  401. package/dist/machines/SyncAccounts.js +1 -1
  402. package/dist/machines/SyncMarker.js +2 -2
  403. package/dist/machines/SyncOutcomeBadge.js +1 -1
  404. package/dist/machines/TokensPanel.js +225 -124
  405. package/dist/machines/headless/fixture-host.js +1 -1
  406. package/dist/machines/headless/index.d.ts +2 -1
  407. package/dist/machines/headless/index.js +4 -3
  408. package/dist/machines/headless/labels.d.ts +22 -0
  409. package/dist/machines/headless/labels.js +25 -0
  410. package/dist/machines/headless/update-store.d.ts +29 -0
  411. package/dist/machines/headless/update-store.js +83 -0
  412. package/dist/machines/index.d.ts +5 -3
  413. package/dist/machines/index.js +5 -3
  414. package/dist/machines/server-update.d.ts +23 -0
  415. package/dist/machines/server-update.js +106 -0
  416. package/dist/motion/grow.js +1 -1
  417. package/dist/motion/provider.js +1 -1
  418. package/dist/motion/roll.js +2 -2
  419. package/dist/motion/size.js +1 -1
  420. package/dist/motion/springs.js +1 -1
  421. package/dist/motion/swap.js +1 -1
  422. package/dist/motion/title-text.js +2 -2
  423. package/dist/onboarding/OnboardingFlow.js +1 -1
  424. package/dist/onboarding/OnboardingProvider.js +1 -1
  425. package/dist/onboarding/conversation.js +1 -1
  426. package/dist/onboarding/demos/features.js +1 -1
  427. package/dist/onboarding/demos/tour.js +1 -1
  428. package/dist/onboarding/headless/labels.d.ts +74 -0
  429. package/dist/onboarding/skills/SkillSourceBrowser.js +1 -1
  430. package/dist/onboarding/skills/parts.js +1 -1
  431. package/dist/onboarding/sources/SourceBrowser.js +4 -4
  432. package/dist/onboarding/steps/ConnectStep.js +1 -1
  433. package/dist/onboarding/steps/ConnectorsStep.js +2 -2
  434. package/dist/onboarding/steps/ConversationStep.js +2 -2
  435. package/dist/onboarding/steps/FeatureExample.js +2 -2
  436. package/dist/onboarding/steps/ImportStep.js +2 -2
  437. package/dist/onboarding/steps/LookStep.js +1 -1
  438. package/dist/onboarding/steps/ReadyStep.js +2 -2
  439. package/dist/onboarding/steps/connect/KeyForm.js +1 -1
  440. package/dist/onboarding/steps/connect/ProviderPanel.js +1 -1
  441. package/dist/onboarding/steps/connect/ProviderReady.js +2 -2
  442. package/dist/palette/CommandPalette.d.ts +3 -1
  443. package/dist/palette/CommandPalette.js +11 -3
  444. package/dist/palette/PaletteDialog.js +25 -2
  445. package/dist/palette/PaletteProvider.js +1 -1
  446. package/dist/palette/PaletteRows.js +5 -5
  447. package/dist/palette/app-sources.js +1 -1
  448. package/dist/palette/headless/index.d.ts +2 -2
  449. package/dist/palette/headless/index.js +2 -2
  450. package/dist/palette/headless/labels.d.ts +2 -0
  451. package/dist/palette/headless/labels.js +2 -0
  452. package/dist/palette/headless/sources.d.ts +26 -2
  453. package/dist/palette/headless/sources.js +40 -1
  454. package/dist/session/ArtifactsPanel.js +3 -3
  455. package/dist/session/DiffFileTree.js +1 -1
  456. package/dist/session/PlanTracker.js +2 -2
  457. package/dist/session/ProjectHome.js +4 -4
  458. package/dist/session/ProviderUsageProvider.js +2 -2
  459. package/dist/session/QueueTab.js +6 -6
  460. package/dist/session/RemindersPanel.js +3 -3
  461. package/dist/session/RunningWorkDialog.js +3 -2
  462. package/dist/session/SecretsPanel.js +2 -2
  463. package/dist/session/SessionCacheFacts.js +56 -57
  464. package/dist/session/SessionDetailsDialog.js +29 -17
  465. package/dist/session/SessionHeader.js +1 -1
  466. package/dist/session/SessionProvider.js +1 -1
  467. package/dist/session/SessionShell.js +2 -2
  468. package/dist/session/SideChat.js +1 -1
  469. package/dist/session/StepStatusIcon.js +1 -1
  470. package/dist/session/TurnDetailsDialog.js +1 -1
  471. package/dist/session/UsagePanel.js +9 -5
  472. package/dist/session/WelcomeScreen.js +1 -1
  473. package/dist/session/headless/host.d.ts +1 -1
  474. package/dist/session/headless/index.js +1 -1
  475. package/dist/session/headless/labels.d.ts +1 -0
  476. package/dist/session/headless/labels.js +4 -2
  477. package/dist/settings/SettingsFooter.d.ts +51 -0
  478. package/dist/settings/SettingsFooter.js +91 -0
  479. package/dist/settings/SettingsHeadingText.js +1 -1
  480. package/dist/settings/SettingsNav.js +1 -1
  481. package/dist/settings/SettingsProvider.js +1 -1
  482. package/dist/settings/SettingsRestricted.js +2 -2
  483. package/dist/settings/SettingsRowsPage.js +2 -2
  484. package/dist/settings/SettingsShell.js +3 -3
  485. package/dist/settings/headless/app-update.d.ts +27 -0
  486. package/dist/settings/headless/app-update.js +0 -0
  487. package/dist/settings/headless/catalog.js +61 -1
  488. package/dist/settings/headless/fixture-accounts.js +7 -0
  489. package/dist/settings/headless/index.d.ts +2 -1
  490. package/dist/settings/headless/index.js +3 -3
  491. package/dist/settings/headless/labels.d.ts +13 -0
  492. package/dist/settings/headless/labels.js +16 -1
  493. package/dist/settings/headless/layout.js +30 -12
  494. package/dist/settings/headless/mcp.d.ts +4 -0
  495. package/dist/settings/headless/search.d.ts +1 -1
  496. package/dist/settings/index.d.ts +3 -1
  497. package/dist/settings/index.js +11 -9
  498. package/dist/settings/section.js +1 -1
  499. package/dist/settings/sections/appearance/AppearanceSection.js +3 -3
  500. package/dist/settings/sections/claude-import/ClaudeImportDialog.js +3 -3
  501. package/dist/settings/sections/descriptors.js +4 -4
  502. package/dist/settings/sections/editor/EditorSection.js +3 -3
  503. package/dist/settings/sections/enabled-list/EnabledListSection.js +1 -1
  504. package/dist/settings/sections/environments/EnvironmentsSection.js +5 -5
  505. package/dist/settings/sections/extensions/ChangeOriginDialog.js +2 -2
  506. package/dist/settings/sections/extensions/CreateExtensionDialog.js +2 -2
  507. package/dist/settings/sections/extensions/ExtensionConfigRows.js +2 -2
  508. package/dist/settings/sections/extensions/ExtensionOptionsSection.js +2 -2
  509. package/dist/settings/sections/extensions/ExtensionPicksBar.js +1 -1
  510. package/dist/settings/sections/extensions/ExtensionSourceBrowser.js +1 -1
  511. package/dist/settings/sections/extensions/ExtensionsSection.js +3 -3
  512. package/dist/settings/sections/host-catalog/HostCatalogSection.js +5 -5
  513. package/dist/settings/sections/index.js +8 -8
  514. package/dist/settings/sections/instructions/InstructionsSection.js +4 -4
  515. package/dist/settings/sections/keybindings/KeybindingsSection.js +2 -2
  516. package/dist/settings/sections/logs/LogsSection.js +1 -1
  517. package/dist/settings/sections/mcp/McpAddForm.js +48 -22
  518. package/dist/settings/sections/mcp/McpSection.js +15 -3
  519. package/dist/settings/sections/mcp/McpServerRow.d.ts +3 -1
  520. package/dist/settings/sections/mcp/McpServerRow.js +105 -11
  521. package/dist/settings/sections/mcp/labels.d.ts +18 -0
  522. package/dist/settings/sections/mcp/labels.js +18 -0
  523. package/dist/settings/sections/models/AgentDefaults.js +4 -4
  524. package/dist/settings/sections/models/ModelListPicker.js +1 -1
  525. package/dist/settings/sections/models/ModelPickField.js +1 -1
  526. package/dist/settings/sections/models/ModelRows.js +2 -2
  527. package/dist/settings/sections/models/model-test.js +1 -1
  528. package/dist/settings/sections/performance/PerfSparkline.js +1 -1
  529. package/dist/settings/sections/performance/PerformanceSection.js +14 -14
  530. package/dist/settings/sections/plugins/PluginsSection.js +1 -1
  531. package/dist/settings/sections/providers/CredentialSources.js +3 -3
  532. package/dist/settings/sections/providers/ProvidersSection.js +2 -2
  533. package/dist/settings/sections/providers/ServerProvidersSection.js +2 -2
  534. package/dist/settings/sections/providers/ServerSignIn.js +2 -2
  535. package/dist/settings/sections/shared/catalog.js +3 -3
  536. package/dist/settings/sections/skills/SkillList.js +5 -5
  537. package/dist/settings/sections/skills/SkillsSection.js +3 -3
  538. package/dist/settings/server-app.d.ts +41 -0
  539. package/dist/settings/server-app.js +155 -0
  540. package/dist/settings/testing/accounts.contract.d.ts +1 -1
  541. package/dist/settings/testing/accounts.contract.js +10 -1
  542. package/dist/styles.css +686 -30
  543. package/dist/terminal/HostTerminalSurface.js +6 -5
  544. package/dist/terminal/TerminalDrawer.js +2 -2
  545. package/dist/terminal/TerminalPanel.js +3 -3
  546. package/dist/terminal/TerminalProvider.d.ts +13 -2
  547. package/dist/terminal/TerminalProvider.js +15 -7
  548. package/dist/terminal/TerminalSurface.d.ts +3 -1
  549. package/dist/terminal/TerminalSurface.js +5 -4
  550. package/dist/terminal/assets.d.ts +10 -0
  551. package/dist/terminal/assets.js +23 -0
  552. package/dist/terminal/fonts/LICENSE +21 -0
  553. package/dist/terminal/fonts/SymbolsNerdFontMono-Regular.woff2 +0 -0
  554. package/dist/terminal/ghostty.d.ts +3 -1
  555. package/dist/terminal/ghostty.js +25 -4
  556. package/dist/terminal/index.d.ts +2 -2
  557. package/dist/theme/derive.d.ts +3 -2
  558. package/dist/theme/derive.js +3 -2
  559. package/dist/uno.js +2 -1
  560. package/dist/url-imports.d.ts +6 -0
  561. package/dist/views/BoolMark.d.ts +15 -0
  562. package/dist/views/BoolMark.js +28 -0
  563. package/dist/views/SvgImage.d.ts +19 -0
  564. package/dist/views/SvgImage.js +89 -0
  565. package/dist/views/TranscriptViews.d.ts +31 -0
  566. package/dist/views/TranscriptViews.js +59 -0
  567. package/dist/views/ViewAutoRefresh.d.ts +23 -0
  568. package/dist/views/ViewAutoRefresh.js +73 -0
  569. package/dist/views/ViewBlock.d.ts +40 -0
  570. package/dist/views/ViewBlock.js +482 -0
  571. package/dist/views/ViewCharts.d.ts +20 -0
  572. package/dist/views/ViewCharts.js +331 -0
  573. package/dist/views/ViewControls.d.ts +49 -0
  574. package/dist/views/ViewControls.js +208 -0
  575. package/dist/views/ViewCustom.d.ts +40 -0
  576. package/dist/views/ViewCustom.js +354 -0
  577. package/dist/views/ViewExpanded.d.ts +32 -0
  578. package/dist/views/ViewExpanded.js +107 -0
  579. package/dist/views/ViewExtension.d.ts +21 -0
  580. package/dist/views/ViewExtension.js +125 -0
  581. package/dist/views/ViewInputs.d.ts +24 -0
  582. package/dist/views/ViewInputs.js +561 -0
  583. package/dist/views/ViewMcpApp.d.ts +26 -0
  584. package/dist/views/ViewMcpApp.js +569 -0
  585. package/dist/views/ViewNodes.d.ts +92 -0
  586. package/dist/views/ViewNodes.js +1073 -0
  587. package/dist/views/ViewPreviewPage.d.ts +42 -0
  588. package/dist/views/ViewPreviewPage.js +214 -0
  589. package/dist/views/ViewTables.d.ts +15 -0
  590. package/dist/views/ViewTables.js +305 -0
  591. package/dist/views/ViewsProvider.d.ts +32 -0
  592. package/dist/views/ViewsProvider.js +50 -0
  593. package/dist/views/badge-tone.d.ts +20 -0
  594. package/dist/views/badge-tone.js +100 -0
  595. package/dist/views/expanded.d.ts +7 -0
  596. package/dist/views/expanded.js +14 -0
  597. package/dist/views/format.d.ts +18 -0
  598. package/dist/views/format.js +37 -0
  599. package/dist/views/headless/answers.d.ts +50 -0
  600. package/dist/views/headless/answers.js +85 -0
  601. package/dist/views/headless/custom-slots.d.ts +35 -0
  602. package/dist/views/headless/custom-slots.js +59 -0
  603. package/dist/views/headless/download.d.ts +10 -0
  604. package/dist/views/headless/download.js +26 -0
  605. package/dist/views/headless/frame-name.d.ts +17 -0
  606. package/dist/views/headless/frame-name.js +24 -0
  607. package/dist/views/headless/host.d.ts +197 -0
  608. package/dist/views/headless/host.js +0 -0
  609. package/dist/views/headless/index.d.ts +13 -0
  610. package/dist/views/headless/index.js +12 -0
  611. package/dist/views/headless/labels.d.ts +144 -0
  612. package/dist/views/headless/labels.js +147 -0
  613. package/dist/views/headless/live.d.ts +12 -0
  614. package/dist/views/headless/live.js +50 -0
  615. package/dist/views/headless/lru.d.ts +31 -0
  616. package/dist/views/headless/lru.js +62 -0
  617. package/dist/views/headless/mcp-app-bridge.d.ts +128 -0
  618. package/dist/views/headless/mcp-app-bridge.js +330 -0
  619. package/dist/views/headless/placement.d.ts +98 -0
  620. package/dist/views/headless/placement.js +227 -0
  621. package/dist/views/headless/records.d.ts +53 -0
  622. package/dist/views/headless/records.js +114 -0
  623. package/dist/views/headless/refs.d.ts +10 -0
  624. package/dist/views/headless/refs.js +13 -0
  625. package/dist/views/headless/safe.d.ts +35 -0
  626. package/dist/views/headless/safe.js +58 -0
  627. package/dist/views/headless/store.d.ts +54 -0
  628. package/dist/views/headless/store.js +228 -0
  629. package/dist/views/headless/streaming.d.ts +43 -0
  630. package/dist/views/headless/streaming.js +136 -0
  631. package/dist/views/headless/view-state.d.ts +20 -0
  632. package/dist/views/headless/view-state.js +55 -0
  633. package/dist/views/index.d.ts +2 -0
  634. package/dist/views/index.js +1 -0
  635. package/dist/views/input-preview.d.ts +5 -0
  636. package/dist/views/input-preview.js +11 -0
  637. package/dist/views/preview-style.d.ts +10 -0
  638. package/dist/views/preview-style.js +262 -0
  639. package/dist/views/preview.d.ts +2 -0
  640. package/dist/views/preview.js +1 -0
  641. package/dist/views/testing/contract.d.ts +50 -0
  642. package/dist/views/testing/contract.js +266 -0
  643. package/dist/views/testing/fixture-host.d.ts +29 -0
  644. package/dist/views/testing/fixture-host.js +77 -0
  645. package/dist/views/testing/index.d.ts +2 -0
  646. package/dist/views/testing/index.js +1 -0
  647. package/dist/views/theme-watch.d.ts +28 -0
  648. package/dist/views/theme-watch.js +65 -0
  649. package/dist/views/trusted.d.ts +17 -0
  650. package/dist/views/trusted.js +17 -0
  651. package/dist/views/viewport.d.ts +30 -0
  652. package/dist/views/viewport.js +87 -0
  653. package/dist/workspace/LayoutBudget.js +1 -1
  654. package/dist/workspace/PanelContentView.js +2 -2
  655. package/dist/workspace/PanelGroups.js +1 -1
  656. package/dist/workspace/PanelHome.js +1 -1
  657. package/dist/workspace/PanelItems.js +2 -2
  658. package/dist/workspace/PanelStrip.js +2 -2
  659. package/dist/workspace/PanelToolbar.js +2 -2
  660. package/dist/workspace/SidePanel.js +4 -4
  661. package/dist/workspace/TabParking.js +2 -2
  662. package/dist/workspace/WorkspaceProvider.js +2 -2
  663. package/dist/workspace/dnd/parking.js +2 -2
  664. package/dist/workspace/extension-tabs.js +3 -3
  665. package/dist/workspace/headless/index.js +1 -1
  666. package/package.json +49 -2
  667. package/src/styles/components.css +421 -0
  668. package/src/styles/files.css +15 -0
  669. package/src/styles/primitives.css +10 -0
  670. package/src/styles/tokens.css +20 -1
  671. package/src/styles/transcript.css +174 -18
  672. package/dist/dist/index-f-XWIoYo.d.ts +0 -1
  673. package/dist/dist/sandbox-B4OW6oNx.d.ts +0 -2
  674. /package/dist/dist/{types-2HrgolQz.d.ts → types-CgfAUN48.d.ts} +0 -0
@@ -3,24 +3,36 @@ import { IconButton } from "../../../components/IconButton.js";
3
3
  import { BTN_DANGER, BTN_DANGER_CONFIRM, BTN_PRIMARY, BTN_SECONDARY } from "../../../components/button.js";
4
4
  import { Notice } from "../../../components/Notice.js";
5
5
  import { Tray } from "../../../components/Surface.js";
6
- import { HostRow, MetaChip, ToggleSwitch } from "../../../components/Form.js";
7
- import { RoutedLink } from "../../../extensions/links.js";
6
+ import { HostRow, INPUT_CLASS, MetaChip, ToggleSwitch } from "../../../components/Form.js";
8
7
  import { mcpBadge } from "../../headless/mcp.js";
8
+ import { RoutedLink } from "../../../extensions/links.js";
9
9
  import { useSignIn } from "../../../onboarding/useSignIn.js";
10
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
+ import { useState } from "react";
11
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
11
12
  import { CONNECTORS, ageString, connectorInstalled } from "zidane/chat/pure";
12
13
  //#region src/settings/sections/mcp/McpServerRow.tsx
13
14
  /**
15
+ * One server of Settings › MCP servers: its name, transport, badge (sign-in
16
+ * state or how its last test failed), process badge (shared or per session,
17
+ * while one runs), tool count, address, last test, and the actions the host
18
+ * offers (Test, Restart, Sign in / again / out, Remove with an inline
19
+ * confirm, the config file's reveal button) before its switch. It runs its
20
+ * own browser sign-in, so several servers can sign in at once. Expanded, it
21
+ * shows its options card (the Shared switch of a local `stdio` server, the
22
+ * tool timeout) and lists the tools, each with its own switch.
23
+ */
24
+ /**
14
25
  * Renders one server row.
15
26
  *
16
27
  * @param props - The server, its state, the actions the host offers and the labels.
17
28
  */
18
- function McpServerRow({ server: mcp, enabled, expanded, probing, enabledTools, removeArmed, labels: l, signIn: beginSignIn, onSignOut, onTest, onSignedIn, onToggle, onToggleTool, onToggleExpanded, onArmRemove, onRemove, trailing, shared, onToggleShared, running, onRestart, restarting = false }) {
29
+ function McpServerRow({ server: mcp, enabled, expanded, probing, enabledTools, removeArmed, labels: l, signIn: beginSignIn, onSignOut, onTest, onSignedIn, onToggle, onToggleTool, onToggleExpanded, onArmRemove, onRemove, onSetToolTimeout, trailing, shared, onToggleShared, running, onRestart, restarting = false }) {
19
30
  const signIn = useSignIn(onSignedIn);
20
31
  const flow = signIn.state && signIn.state.kind !== "done" ? signIn.state : null;
21
32
  const isHttp = mcp.transport === "http";
22
33
  const tools = mcp.tools ?? [];
23
34
  const hasTools = tools.length > 0;
35
+ const timeoutEditable = onSetToolTimeout !== void 0 && mcp.removable === true;
24
36
  const connector = CONNECTORS.find((entry) => connectorInstalled(entry, [{
25
37
  name: mcp.name,
26
38
  ...mcp.url ? { url: mcp.url } : {}
@@ -103,7 +115,7 @@ function McpServerRow({ server: mcp, enabled, expanded, probing, enabledTools, r
103
115
  test: mcp.test,
104
116
  probing,
105
117
  labels: l
106
- }) : /* @__PURE__ */ jsxs(Fragment, { children: [mcp.toolError && /* @__PURE__ */ jsx(Notice, {
118
+ }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [mcp.toolError && /* @__PURE__ */ jsx(Notice, {
107
119
  tone: "error",
108
120
  compact: true,
109
121
  detail: mcp.toolError,
@@ -158,7 +170,7 @@ function McpServerRow({ server: mcp, enabled, expanded, probing, enabledTools, r
158
170
  className: BTN_DANGER,
159
171
  children: l.mcpSectionRemove
160
172
  }),
161
- onArmRemove && mcp.removable && removeArmed && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("button", {
173
+ onArmRemove && mcp.removable && removeArmed && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("button", {
162
174
  type: "button",
163
175
  onClick: onRemove,
164
176
  className: BTN_DANGER_CONFIRM,
@@ -221,11 +233,12 @@ function McpServerRow({ server: mcp, enabled, expanded, probing, enabledTools, r
221
233
  })]
222
234
  }), expanded && /* @__PURE__ */ jsxs("div", {
223
235
  className: "border-t border-[var(--zg-hairline)] p-1.5 flex flex-col gap-1.5",
224
- children: [shared !== void 0 && /* @__PURE__ */ jsx(Tray, {
225
- radius: "sm",
226
- className: "p-1",
227
- children: /* @__PURE__ */ jsxs(HostRow, {
236
+ children: [(shared !== void 0 || timeoutEditable || mcp.toolTimeout !== void 0) && /* @__PURE__ */ jsxs("ul", {
237
+ "aria-label": l.mcpSectionOptions(mcp.name),
238
+ className: "zg-tray rounded-zg-sm m-0 list-none p-1 flex flex-col",
239
+ children: [shared !== void 0 && /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(HostRow, {
228
240
  className: "!items-start !px-2.5",
241
+ disabled: !onToggleShared,
229
242
  children: [/* @__PURE__ */ jsxs("div", {
230
243
  className: "min-w-0 flex-1",
231
244
  children: [/* @__PURE__ */ jsx("div", {
@@ -245,8 +258,14 @@ function McpServerRow({ server: mcp, enabled, expanded, probing, enabledTools, r
245
258
  label: l.mcpSectionSharedSwitch(mcp.name)
246
259
  })
247
260
  })]
248
- })
261
+ }) }), (timeoutEditable || mcp.toolTimeout !== void 0) && /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(McpTimeoutRow, {
262
+ name: mcp.name,
263
+ current: mcp.toolTimeout,
264
+ ...timeoutEditable ? { onSave: onSetToolTimeout } : {},
265
+ labels: l
266
+ }, mcp.toolTimeout ?? "default") })]
249
267
  }), hasTools ? /* @__PURE__ */ jsx("ul", {
268
+ "aria-label": l.mcpSectionTools(mcp.name),
250
269
  className: "zg-tray rounded-zg-sm m-0 list-none p-1 flex flex-col",
251
270
  children: tools.map((tool) => /* @__PURE__ */ jsx(McpToolRow, {
252
271
  tool,
@@ -263,6 +282,81 @@ function McpServerRow({ server: mcp, enabled, expanded, probing, enabledTools, r
263
282
  })]
264
283
  });
265
284
  }
285
+ /**
286
+ * The tool timeout of one server, a row of its options card: seconds in, ms
287
+ * out. Empty goes back to the default. Without `onSave` it only shows the value.
288
+ */
289
+ function McpTimeoutRow({ name, current, onSave, labels: l }) {
290
+ const saved = current === void 0 ? "" : String(current / 1e3);
291
+ const [draft, setDraft] = useState(saved);
292
+ const [saving, setSaving] = useState(false);
293
+ const trimmed = draft.trim();
294
+ const seconds = Number(trimmed);
295
+ const dirty = trimmed !== saved;
296
+ const invalid = dirty && trimmed !== "" && (!Number.isInteger(seconds) || seconds <= 0);
297
+ const save = async () => {
298
+ if (!onSave || invalid || !dirty || saving) return;
299
+ setSaving(true);
300
+ try {
301
+ await onSave(trimmed === "" ? null : seconds * 1e3);
302
+ } finally {
303
+ setSaving(false);
304
+ }
305
+ };
306
+ return /* @__PURE__ */ jsxs(HostRow, {
307
+ className: "!items-start !px-2.5",
308
+ disabled: !onSave,
309
+ children: [/* @__PURE__ */ jsxs("div", {
310
+ className: "min-w-0 flex-1",
311
+ children: [/* @__PURE__ */ jsx("div", {
312
+ className: "text-zg-label text-[var(--zg-text)]",
313
+ children: l.mcpSectionToolTimeout
314
+ }), invalid ? /* @__PURE__ */ jsx(Notice, {
315
+ tone: "error",
316
+ compact: true,
317
+ className: "mt-0.5",
318
+ children: l.mcpSectionToolTimeoutInvalid
319
+ }) : /* @__PURE__ */ jsx("div", {
320
+ className: "mt-0.5 text-zg-meta leading-4 text-[var(--zg-text-muted)]",
321
+ children: l.mcpSectionToolTimeoutHint
322
+ })]
323
+ }), /* @__PURE__ */ jsxs("span", {
324
+ className: "inline-flex shrink-0 items-center gap-1.5",
325
+ children: [onSave && dirty && /* @__PURE__ */ jsx("button", {
326
+ type: "button",
327
+ onClick: () => void save(),
328
+ disabled: invalid || saving,
329
+ className: `${BTN_SECONDARY} disabled:cursor-not-allowed`,
330
+ children: l.mcpSectionToolTimeoutSave
331
+ }), /* @__PURE__ */ jsxs("span", {
332
+ className: "relative inline-flex items-center",
333
+ children: [/* @__PURE__ */ jsx("input", {
334
+ "data-row-control": true,
335
+ type: "text",
336
+ inputMode: "numeric",
337
+ value: draft,
338
+ onChange: (e) => setDraft(e.target.value),
339
+ onKeyDown: (e) => {
340
+ if (e.key === "Enter") save();
341
+ if (e.key === "Escape" && dirty) {
342
+ e.stopPropagation();
343
+ setDraft(saved);
344
+ }
345
+ },
346
+ disabled: !onSave || saving,
347
+ "aria-invalid": invalid,
348
+ "aria-label": l.mcpSectionToolTimeoutField(name),
349
+ placeholder: l.mcpSectionToolTimeoutPlaceholder,
350
+ className: `${INPUT_CLASS} !w-20 pr-6 text-right font-mono`
351
+ }), /* @__PURE__ */ jsx("span", {
352
+ "aria-hidden": true,
353
+ className: "zg-meta pointer-events-none absolute right-2",
354
+ children: l.mcpSectionSecondsUnit
355
+ })]
356
+ })]
357
+ })]
358
+ });
359
+ }
266
360
  function McpToolRow({ tool, enabled, serverEnabled, onToggle, labels: l }) {
267
361
  const description = typeof tool.description === "string" && tool.description.trim().length > 0 ? tool.description.trim() : l.mcpSectionNoDescription;
268
362
  return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(HostRow, {
@@ -153,6 +153,24 @@ declare const DEFAULT_MCP_SECTION_LABELS: {
153
153
  mcpSectionCallbackPort: string;
154
154
  /** Its placeholder. */
155
155
  mcpSectionCallbackPortPlaceholder: string;
156
+ /** The per-call tool timeout: the add form's field, the options card's row. */
157
+ mcpSectionToolTimeout: string;
158
+ /** Its placeholder: the default, in seconds. */
159
+ mcpSectionToolTimeoutPlaceholder: string;
160
+ /** The unit after its value. */
161
+ mcpSectionSecondsUnit: string;
162
+ /** The timeout field's name. */
163
+ mcpSectionToolTimeoutField: (name: string) => string;
164
+ /** Saves an edited timeout. */
165
+ mcpSectionToolTimeoutSave: string;
166
+ /** Under the timeout row. */
167
+ mcpSectionToolTimeoutHint: string;
168
+ /** A timeout that is not a positive whole number of seconds. */
169
+ mcpSectionToolTimeoutInvalid: string;
170
+ /** The options card's name. */
171
+ mcpSectionOptions: (name: string) => string;
172
+ /** The tool list's name. */
173
+ mcpSectionTools: (name: string) => string;
156
174
  /** The scopes field. */
157
175
  mcpSectionScopes: string;
158
176
  /** Before the redirect URL. */
@@ -159,6 +159,24 @@ const DEFAULT_MCP_SECTION_LABELS = {
159
159
  mcpSectionCallbackPort: "Callback port",
160
160
  /** Its placeholder. */
161
161
  mcpSectionCallbackPortPlaceholder: "3118",
162
+ /** The per-call tool timeout: the add form's field, the options card's row. */
163
+ mcpSectionToolTimeout: "Tool timeout",
164
+ /** Its placeholder: the default, in seconds. */
165
+ mcpSectionToolTimeoutPlaceholder: "60",
166
+ /** The unit after its value. */
167
+ mcpSectionSecondsUnit: "s",
168
+ /** The timeout field's name. */
169
+ mcpSectionToolTimeoutField: (name) => `Tool timeout of ${name}, in seconds`,
170
+ /** Saves an edited timeout. */
171
+ mcpSectionToolTimeoutSave: "Save",
172
+ /** Under the timeout row. */
173
+ mcpSectionToolTimeoutHint: "How long one tool call may run. Empty: 60 s.",
174
+ /** A timeout that is not a positive whole number of seconds. */
175
+ mcpSectionToolTimeoutInvalid: "Use a positive whole number of seconds.",
176
+ /** The options card's name. */
177
+ mcpSectionOptions: (name) => `${name} options`,
178
+ /** The tool list's name. */
179
+ mcpSectionTools: (name) => `${name} tools`,
162
180
  /** The scopes field. */
163
181
  mcpSectionScopes: "Scopes (optional, space-separated)",
164
182
  /** Before the redirect URL. */
@@ -8,8 +8,8 @@ import { useModelCatalog } from "../../../chat/composer/use-composer-stores.js";
8
8
  import { useModelRowsLabels } from "./model-test.js";
9
9
  import { ValueChip } from "../../rows.js";
10
10
  import { ModelPickField } from "./ModelPickField.js";
11
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
12
11
  import { useEffect, useState } from "react";
12
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
13
13
  import { DEFAULT_MODEL_PICK, formatModelSetting, parseModelSetting } from "zidane/chat/pure";
14
14
  //#region src/settings/sections/models/AgentDefaults.tsx
15
15
  /**
@@ -61,7 +61,7 @@ function AgentDefaultsRows({ value, onChange, cwd, inherited, className, style }
61
61
  const l = useModelRowsLabels();
62
62
  const where = inherited ? l.modelRowsNewSessionsInSpace : l.modelRowsNewSessions;
63
63
  const lastUsed = useLastUsedModel();
64
- return /* @__PURE__ */ jsxs(Fragment, { children: [
64
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
65
65
  /* @__PURE__ */ jsx(AgentRow, {
66
66
  label: l.modelRowsDefaultAgent,
67
67
  description: l.modelRowsStartOn(where),
@@ -227,8 +227,8 @@ function KnobsLabel({ effort, options, enabled }) {
227
227
  const on = options.filter((o) => enabled[o.id]);
228
228
  const words = [...effort ? [effort] : [], ...on.filter((o) => !OPTION_ICON[o.id]).map((o) => o.id)];
229
229
  const glyphs = on.filter((o) => OPTION_ICON[o.id]);
230
- if (words.length === 0 && glyphs.length === 0) return /* @__PURE__ */ jsx(Fragment, { children: l.modelRowsLastUsed });
231
- return /* @__PURE__ */ jsxs(Fragment, { children: [words.length > 0 && /* @__PURE__ */ jsx("span", {
230
+ if (words.length === 0 && glyphs.length === 0) return /* @__PURE__ */ jsx(Fragment$1, { children: l.modelRowsLastUsed });
231
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [words.length > 0 && /* @__PURE__ */ jsx("span", {
232
232
  className: "truncate",
233
233
  children: words.join(", ")
234
234
  }), glyphs.map((o) => /* @__PURE__ */ jsx("span", {
@@ -3,8 +3,8 @@ import { MenuNote } from "../../../components/Menu.js";
3
3
  import { FloatingSurface } from "../../../components/floating/FloatingSurface.js";
4
4
  import { providerColor, providerTint } from "../../../chat/provider-color.js";
5
5
  import { useModelRowsLabels } from "./model-test.js";
6
- import { jsx, jsxs } from "react/jsx-runtime";
7
6
  import { forwardRef, useEffect, useMemo, useRef, useState } from "react";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
8
  import { modelDisplayName } from "zidane/chat/pure";
9
9
  //#region src/settings/sections/models/ModelListPicker.tsx
10
10
  /**
@@ -7,8 +7,8 @@ import { useModelCatalog } from "../../../chat/composer/use-composer-stores.js";
7
7
  import { HostModelChainList } from "../../../chat/composer/HostModelChainList.js";
8
8
  import { ModelTestButton, ModelTestLine, useModelRowsLabels, useModelTest } from "./model-test.js";
9
9
  import { ValueChip } from "../../rows.js";
10
- import { jsx, jsxs } from "react/jsx-runtime";
11
10
  import { useEffect, useRef, useState } from "react";
11
+ import { jsx, jsxs } from "react/jsx-runtime";
12
12
  import { formatModelSetting, modelDisplayName } from "zidane/chat/pure";
13
13
  //#region src/settings/sections/models/ModelPickField.tsx
14
14
  /**
@@ -1,8 +1,8 @@
1
1
  import { IconButton } from "../../../components/IconButton.js";
2
2
  import { BTN_SECONDARY } from "../../../components/button.js";
3
3
  import { HostRow, ROW_TRIGGER_CLASS, RowText } from "../../../components/Form.js";
4
- import { useSettingsHost } from "../../SettingsProvider.js";
5
4
  import { toSettingsError } from "../../headless/host.js";
5
+ import { useSettingsHost } from "../../SettingsProvider.js";
6
6
  import { useComposerModelName, useModelCatalog } from "../../../chat/composer/use-composer-stores.js";
7
7
  import { ModelTestButton, ModelTestLine, useModelRowsLabels, useModelTest } from "./model-test.js";
8
8
  import { ModelListPicker } from "./ModelListPicker.js";
@@ -10,8 +10,8 @@ import { useSettingsResource } from "../shared/catalog.js";
10
10
  import { ConversationPresetPreview } from "../../../onboarding/conversation.js";
11
11
  import { SelectRow, ValueChip } from "../../rows.js";
12
12
  import { ModelPickField } from "./ModelPickField.js";
13
- import { jsx, jsxs } from "react/jsx-runtime";
14
13
  import { useEffect, useMemo, useRef, useState } from "react";
14
+ import { jsx, jsxs } from "react/jsx-runtime";
15
15
  import { APPROVAL_MODE_OPTIONS, autoTextModelId, formatModelSetting, modelDisplayName, parseModelSetting, transcriptPreset } from "zidane/chat/pure";
16
16
  //#region src/settings/sections/models/ModelRows.tsx
17
17
  /**
@@ -5,8 +5,8 @@ import { toSettingsError } from "../../headless/host.js";
5
5
  import { useComposerModelName, useComposerProviderLabel } from "../../../chat/composer/use-composer-stores.js";
6
6
  import { useSectionLabels } from "../use-section-labels.js";
7
7
  import { DEFAULT_MODEL_ROWS_LABELS } from "./labels.js";
8
- import { jsx, jsxs } from "react/jsx-runtime";
9
8
  import { useState } from "react";
9
+ import { jsx, jsxs } from "react/jsx-runtime";
10
10
  //#region src/settings/sections/models/model-test.tsx
11
11
  /**
12
12
  * A model row's Test: one tiny request to the model the row names, with the
@@ -1,5 +1,5 @@
1
- import { jsx } from "react/jsx-runtime";
2
1
  import { memo } from "react";
2
+ import { jsx } from "react/jsx-runtime";
3
3
  //#region src/settings/sections/performance/PerfSparkline.tsx
4
4
  /**
5
5
  * A small line over a series of values, in the current text colour. Pure
@@ -1,3 +1,4 @@
1
+ import { useStaysMounted } from "../../../motion/collapse.js";
1
2
  import { IconButton } from "../../../components/IconButton.js";
2
3
  import { BTN_PRIMARY, BTN_SECONDARY } from "../../../components/button.js";
3
4
  import { Notice } from "../../../components/Notice.js";
@@ -6,7 +7,6 @@ import { EmptyState, Tray } from "../../../components/Surface.js";
6
7
  import { MetaChip } from "../../../components/Form.js";
7
8
  import { errorMessage } from "../../../components/report-error.js";
8
9
  import { CountBadge } from "../../../components/TabPill.js";
9
- import { useStaysMounted } from "../../../motion/collapse.js";
10
10
  import { useSettingsHost, useSettingsLabels } from "../../SettingsProvider.js";
11
11
  import { Caret } from "../../../chat/transcript/frame.js";
12
12
  import { SettingsPanel, SettingsPanelActions, SettingsPanelBody, useSettingsSection } from "../../section.js";
@@ -16,8 +16,8 @@ import { formatDuration, formatMemory, formatPercent, hasLaunched, nestProcesses
16
16
  import { DEFAULT_PERFORMANCE_SECTION_LABELS } from "./labels.js";
17
17
  import { PerfSparkline } from "./PerfSparkline.js";
18
18
  import { usePerfMonitor } from "./use-perf-monitor.js";
19
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
20
19
  import { memo, useCallback, useMemo, useState } from "react";
20
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
21
21
  //#region src/settings/sections/performance/PerformanceSection.tsx
22
22
  /**
23
23
  * Settings › Performance: what the app's processes and threads use, live, over
@@ -96,7 +96,7 @@ function PerformanceSection({ className, style }) {
96
96
  host
97
97
  }),
98
98
  /* @__PURE__ */ jsx(Threads, { latest }),
99
- host.resetCounters && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Frames, { latest }), /* @__PURE__ */ jsx(Channels, { latest })] }),
99
+ host.resetCounters && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Frames, { latest }), /* @__PURE__ */ jsx(Channels, { latest })] }),
100
100
  host.profile && /* @__PURE__ */ jsx(Profile, {
101
101
  host,
102
102
  reveal: settings.paths?.reveal
@@ -310,7 +310,7 @@ function ProcessViews({ samples, latest, host }) {
310
310
  span: samples.length,
311
311
  threads: host.threads
312
312
  };
313
- return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Processes, {
313
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Processes, {
314
314
  latest,
315
315
  tree
316
316
  }), /* @__PURE__ */ jsx(Sessions, {
@@ -363,7 +363,7 @@ function Sessions({ latest, tree }) {
363
363
  tone: "neutral",
364
364
  text: String(sessions.length)
365
365
  }),
366
- children: sessions.length === 0 ? /* @__PURE__ */ jsx(Empty, { text: l.perfSessionsEmpty }) : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Heads, { names: [l.perfColCpu, l.perfColMemory] }), sessions.map((session) => /* @__PURE__ */ jsx(ProcessGroup, {
366
+ children: sessions.length === 0 ? /* @__PURE__ */ jsx(Empty, { text: l.perfSessionsEmpty }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Heads, { names: [l.perfColCpu, l.perfColMemory] }), sessions.map((session) => /* @__PURE__ */ jsx(ProcessGroup, {
367
367
  label: session.title ?? l.perfSessionUntitled,
368
368
  ...session.title ? { title: session.title } : {},
369
369
  roots: session.roots,
@@ -374,7 +374,7 @@ function Sessions({ latest, tree }) {
374
374
  }
375
375
  /** CPU and memory as chips, with the icons every list uses for them. */
376
376
  function UsageChips({ totals, cpuTitle, memoryTitle }) {
377
- return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs(MetaChip, {
377
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs(MetaChip, {
378
378
  title: cpuTitle,
379
379
  children: [/* @__PURE__ */ jsx("span", {
380
380
  className: "i-ph-cpu",
@@ -442,13 +442,13 @@ const ProcessNode = memo(function ProcessNode({ node, depth, tree }) {
442
442
  tree.threads(process.pid).then(setThreads, () => setThreads([]));
443
443
  }
444
444
  };
445
- const label = /* @__PURE__ */ jsxs(Fragment, { children: [
445
+ const label = /* @__PURE__ */ jsxs(Fragment$1, { children: [
446
446
  children.length > 0 ? /* @__PURE__ */ jsx(Caret, { open }) : /* @__PURE__ */ jsx("span", { className: "w-3 shrink-0" }),
447
447
  /* @__PURE__ */ jsx("span", {
448
448
  className: "text-sm text-[var(--zg-text)] truncate",
449
449
  children: process.label
450
450
  }),
451
- !open && descendants > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(CountBadge, {
451
+ !open && descendants > 0 && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(CountBadge, {
452
452
  tone: "neutral",
453
453
  text: String(descendants)
454
454
  }), /* @__PURE__ */ jsx(UsageChips, {
@@ -529,7 +529,7 @@ function Threads({ latest }) {
529
529
  const busiest = threads[0];
530
530
  return /* @__PURE__ */ jsxs(Section, {
531
531
  title: l.perfThreads,
532
- badges: /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(CountBadge, {
532
+ badges: /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(CountBadge, {
533
533
  tone: "neutral",
534
534
  text: String(threads.length)
535
535
  }), busiest && /* @__PURE__ */ jsx(MetaChip, {
@@ -567,7 +567,7 @@ function Frames({ latest }) {
567
567
  const windows = new Set(frames.map((frame) => frame.window)).size;
568
568
  return /* @__PURE__ */ jsx(Section, {
569
569
  title: l.perfFrames,
570
- badges: /* @__PURE__ */ jsxs(Fragment, { children: [
570
+ badges: /* @__PURE__ */ jsxs(Fragment$1, { children: [
571
571
  /* @__PURE__ */ jsx(CountBadge, {
572
572
  tone: "neutral",
573
573
  text: String(latest.frames.length)
@@ -575,7 +575,7 @@ function Frames({ latest }) {
575
575
  total > 0 && /* @__PURE__ */ jsx(MetaChip, { children: formatDuration(total) }),
576
576
  /* @__PURE__ */ jsx(MetaChip, { children: l.perfSince(since(latest.countersSince)) })
577
577
  ] }),
578
- children: frames.length === 0 ? /* @__PURE__ */ jsx(Empty, { text: l.perfFramesEmpty }) : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Heads, { names: [
578
+ children: frames.length === 0 ? /* @__PURE__ */ jsx(Empty, { text: l.perfFramesEmpty }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Heads, { names: [
579
579
  l.perfColFrames,
580
580
  l.perfColTotal,
581
581
  l.perfColWorst
@@ -620,7 +620,7 @@ function Channels({ latest }) {
620
620
  const total = latest.channels.reduce((sum, channel) => sum + channel.totalMs, 0);
621
621
  return /* @__PURE__ */ jsx(Section, {
622
622
  title: l.perfChannels,
623
- badges: /* @__PURE__ */ jsxs(Fragment, { children: [
623
+ badges: /* @__PURE__ */ jsxs(Fragment$1, { children: [
624
624
  /* @__PURE__ */ jsx(CountBadge, {
625
625
  tone: "neutral",
626
626
  text: String(latest.channels.length)
@@ -628,7 +628,7 @@ function Channels({ latest }) {
628
628
  total > 0 && /* @__PURE__ */ jsx(MetaChip, { children: formatDuration(total) }),
629
629
  /* @__PURE__ */ jsx(MetaChip, { children: l.perfSince(since(latest.countersSince)) })
630
630
  ] }),
631
- children: channels.length === 0 ? /* @__PURE__ */ jsx(Empty, { text: l.perfChannelsEmpty }) : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Heads, { names: [
631
+ children: channels.length === 0 ? /* @__PURE__ */ jsx(Empty, { text: l.perfChannelsEmpty }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Heads, { names: [
632
632
  l.perfColCalls,
633
633
  l.perfColTotal,
634
634
  l.perfColP95,
@@ -745,7 +745,7 @@ function Profile({ host, reveal }) {
745
745
  children: l.perfProfileError
746
746
  })
747
747
  }),
748
- outcome?.ok && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Heads, { names: [l.perfColShare, l.perfColSelf] }), outcome.profile.top.slice(0, LIST_CAP).map((fn) => /* @__PURE__ */ jsxs("div", {
748
+ outcome?.ok && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Heads, { names: [l.perfColShare, l.perfColSelf] }), outcome.profile.top.slice(0, LIST_CAP).map((fn) => /* @__PURE__ */ jsxs("div", {
749
749
  className: ROW,
750
750
  title: fn.url ? `${fn.url}:${fn.line}` : void 0,
751
751
  children: [
@@ -6,8 +6,8 @@ import { SettingsPanel, SettingsPanelBody } from "../../section.js";
6
6
  import { useSectionLabels } from "../use-section-labels.js";
7
7
  import { EnabledList, RevealPathButton, useCatalogSharedLabels, useSettingsResource } from "../shared/catalog.js";
8
8
  import { DEFAULT_PLUGINS_SECTION_LABELS } from "./labels.js";
9
- import { jsx, jsxs } from "react/jsx-runtime";
10
9
  import { useCallback, useMemo } from "react";
10
+ import { jsx, jsxs } from "react/jsx-runtime";
11
11
  //#region src/settings/sections/plugins/PluginsSection.tsx
12
12
  /**
13
13
  * Settings › Plugins: the Agent Plugins found near a folder with the
@@ -1,6 +1,6 @@
1
1
  import { toSettingsError } from "../../headless/host.js";
2
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
2
  import { useState } from "react";
3
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
4
4
  //#region src/settings/sections/providers/CredentialSources.tsx
5
5
  /**
6
6
  * The credential sources of a provider holding more than one stored (an API
@@ -13,7 +13,7 @@ import { useState } from "react";
13
13
  * action and is never in use.
14
14
  */
15
15
  /** Small ghost action inline with the source it acts on. */
16
- const SOURCE_BTN = "zg-press ml-1 h-5 px-1.5 shrink-0 rounded-zg-sm text-zg-meta leading-none text-[var(--zg-text-muted)] hover:text-[var(--zg-text)] hover:before:bg-[var(--zg-row-hover)] border-0 bg-transparent cursor-pointer disabled:opacity-zg-disabled focus-visible:outline focus-visible:outline-2 focus-visible:outline-[var(--zg-ring)]";
16
+ const SOURCE_BTN = "zg-press ml-1 h-5 px-1.5 shrink-0 rounded-zg-sm text-zg-meta leading-none text-[var(--zg-text-muted)] hover:text-[var(--zg-text)] hover:before:bg-[var(--zg-row-hover)] border-0 bg-transparent cursor-pointer disabled:opacity-zg-disabled zg-focus-ring";
17
17
  /**
18
18
  * Renders the credential sources of a provider.
19
19
  *
@@ -108,7 +108,7 @@ function CredentialSources({ provider, cwd, host, labels: l, confirm, onError, o
108
108
  className: "zg-meta shrink-0",
109
109
  children: l.accountsInUse
110
110
  }),
111
- isRenaming && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("button", {
111
+ isRenaming && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("button", {
112
112
  type: "button",
113
113
  onClick: () => void commitRename(method),
114
114
  className: SOURCE_BTN,
@@ -3,8 +3,8 @@ import { BTN_DANGER, BTN_PRIMARY, BTN_SECONDARY } from "../../../components/butt
3
3
  import { Notice } from "../../../components/Notice.js";
4
4
  import { MetaChip } from "../../../components/Form.js";
5
5
  import { BrowserSignIn } from "../../../components/BrowserSignIn.js";
6
- import { useSettingsHost } from "../../SettingsProvider.js";
7
6
  import { toSettingsError } from "../../headless/host.js";
7
+ import { useSettingsHost } from "../../SettingsProvider.js";
8
8
  import { useSignIn } from "../../../onboarding/useSignIn.js";
9
9
  import { SettingFocus, SettingFocusContext, SettingsPanel, SettingsPanelBody } from "../../section.js";
10
10
  import { useSectionLabels } from "../use-section-labels.js";
@@ -13,8 +13,8 @@ import { SettingsRestricted, useSettingsRestricted } from "../../SettingsRestric
13
13
  import { useSettingsResource } from "../shared/catalog.js";
14
14
  import { CredentialSources } from "./CredentialSources.js";
15
15
  import { DEFAULT_ACCOUNTS_SECTION_LABELS } from "./labels.js";
16
- import { jsx, jsxs } from "react/jsx-runtime";
17
16
  import { useContext, useMemo, useRef, useState } from "react";
17
+ import { jsx, jsxs } from "react/jsx-runtime";
18
18
  import { providerBrand } from "zidane/chat/pure";
19
19
  //#region src/settings/sections/providers/ProvidersSection.tsx
20
20
  /**
@@ -1,8 +1,8 @@
1
1
  import { BTN_DANGER, BTN_PRIMARY, BTN_SECONDARY } from "../../../components/button.js";
2
2
  import { Notice } from "../../../components/Notice.js";
3
3
  import { ErrorNote, FormCard, FormSection, MetaChip, OpLine, RowText } from "../../../components/Form.js";
4
- import { useSettingsHost } from "../../SettingsProvider.js";
5
4
  import { toSettingsError } from "../../headless/host.js";
5
+ import { useSettingsHost } from "../../SettingsProvider.js";
6
6
  import { SettingsPanel, SettingsPanelBody } from "../../section.js";
7
7
  import { hasCredentialChoice } from "../../headless/providers.js";
8
8
  import { SettingsRestricted } from "../../SettingsRestricted.js";
@@ -10,8 +10,8 @@ import { useSettingsResource } from "../shared/catalog.js";
10
10
  import { CredentialSources } from "./CredentialSources.js";
11
11
  import { useAccountsSectionLabels } from "./ProvidersSection.js";
12
12
  import { ServerSignIn } from "./ServerSignIn.js";
13
- import { jsx, jsxs } from "react/jsx-runtime";
14
13
  import { useMemo, useState } from "react";
14
+ import { jsx, jsxs } from "react/jsx-runtime";
15
15
  //#region src/settings/sections/providers/ServerProvidersSection.tsx
16
16
  /**
17
17
  * Settings › Accounts of a server's session, over the settings host's
@@ -3,8 +3,8 @@ import { OpLine } from "../../../components/Form.js";
3
3
  import { RoutedLink } from "../../../extensions/links.js";
4
4
  import { useSignIn } from "../../../onboarding/useSignIn.js";
5
5
  import { useAccountsSectionLabels } from "./ProvidersSection.js";
6
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
6
  import { useEffect, useState } from "react";
7
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
8
8
  //#region src/settings/sections/providers/ServerSignIn.tsx
9
9
  /**
10
10
  * A browser sign-in whose tokens stay on a server (a provider on its
@@ -66,7 +66,7 @@ function ServerSignIn({ begin, hostName, label, onClose, className, style }) {
66
66
  kind: line.kind,
67
67
  children: line.text
68
68
  }),
69
- !done && /* @__PURE__ */ jsxs(Fragment, { children: [
69
+ !done && /* @__PURE__ */ jsxs(Fragment$1, { children: [
70
70
  page?.kind === "device" && /* @__PURE__ */ jsxs("p", {
71
71
  className: "m-0 text-xs",
72
72
  children: [
@@ -2,14 +2,14 @@ import { IconButton } from "../../../components/IconButton.js";
2
2
  import { Segmented } from "../../../components/Segmented.js";
3
3
  import { EmptyState } from "../../../components/Surface.js";
4
4
  import { Checkbox } from "../../../components/Form.js";
5
- import { useSettingsDocument, useSettingsHost, useSettingsWritable } from "../../SettingsProvider.js";
6
5
  import { toSettingsError } from "../../headless/host.js";
6
+ import { useSettingsDocument, useSettingsHost, useSettingsWritable } from "../../SettingsProvider.js";
7
7
  import { useSectionLabels } from "../use-section-labels.js";
8
8
  import { SettingsRestricted } from "../../SettingsRestricted.js";
9
9
  import { enabledNames, toggleEnabled } from "../../headless/enabled.js";
10
10
  import { DEFAULT_CATALOG_SHARED_LABELS } from "./labels.js";
11
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
12
11
  import { useCallback, useMemo, useState, useSyncExternalStore } from "react";
12
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
13
13
  //#region src/settings/sections/shared/catalog.tsx
14
14
  /**
15
15
  * The pieces the catalog sections share: the enabled-allowlist hook over the
@@ -140,7 +140,7 @@ function EnabledList({ catalog, keyOf, labelOf, detailOf, leadOf, badgeOf, statu
140
140
  const canToggle = forcedEnabled === void 0 && writable;
141
141
  const action = actionOf?.(entry);
142
142
  const status = statusOf?.(entry);
143
- const content = /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Checkbox, { checked: enabled }), /* @__PURE__ */ jsxs("div", {
143
+ const content = /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Checkbox, { checked: enabled }), /* @__PURE__ */ jsxs("div", {
144
144
  className: "flex-1 min-w-0",
145
145
  children: [/* @__PURE__ */ jsxs("div", {
146
146
  className: "text-sm flex items-center gap-2",
@@ -6,13 +6,13 @@ import { Checkbox, MetaChip } from "../../../components/Form.js";
6
6
  import { LoadError } from "../../../components/LoadError.js";
7
7
  import { useSettingsHost } from "../../SettingsProvider.js";
8
8
  import { useSectionLabels } from "../use-section-labels.js";
9
- import { useCodeDocument } from "../../../code/editor/useCodeDocument.js";
10
9
  import { SettingsRestricted } from "../../SettingsRestricted.js";
11
10
  import { OpenFileButton, RevealPathButton, useCatalogSharedLabels, useEnabledList, useSettingsResource } from "../shared/catalog.js";
11
+ import { useCodeDocument } from "../../../code/editor/useCodeDocument.js";
12
12
  import { formatTokens } from "../../../session/headless/usage-format.js";
13
13
  import { DEFAULT_SKILLS_SECTION_LABELS } from "./labels.js";
14
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
15
14
  import { Suspense, lazy, useMemo, useRef, useState } from "react";
15
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
16
16
  import { skillTokenWeights } from "zidane/chat/pure";
17
17
  //#region src/settings/sections/skills/SkillList.tsx
18
18
  /**
@@ -161,7 +161,7 @@ function SkillActions({ name, dir, armed, onArm, onDelete, onEdit }) {
161
161
  children: l.skillsSectionKeep
162
162
  })]
163
163
  });
164
- return /* @__PURE__ */ jsxs(Fragment, { children: [
164
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
165
165
  dir && onEdit && /* @__PURE__ */ jsx(IconButton, {
166
166
  icon: "i-ph-pencil-simple",
167
167
  label: l.skillsSectionEdit(name),
@@ -216,7 +216,7 @@ function CatalogBar({ skills, weights }) {
216
216
  function SkillCard({ cwd, entry, enabled, weight, expanded, canToggle, onToggleEnabled, onToggleExpanded, action, onSaved }) {
217
217
  const l = useSkillsSectionLabels();
218
218
  const skill = entry.skill;
219
- const head = /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("span", {
219
+ const head = /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("span", {
220
220
  className: "flex items-center gap-2 min-w-0",
221
221
  children: [
222
222
  skill && /* @__PURE__ */ jsx("span", {
@@ -228,7 +228,7 @@ function SkillCard({ cwd, entry, enabled, weight, expanded, canToggle, onToggleE
228
228
  children: entry.name
229
229
  }),
230
230
  /* @__PURE__ */ jsx(MetaChip, { children: entry.contributed ? l.skillsSectionFrom(entry.contributed.origin, entry.contributed.by) : entry.source ?? "project" }),
231
- weight && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs(MetaChip, {
231
+ weight && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs(MetaChip, {
232
232
  className: "tabular-nums",
233
233
  title: l.skillsSectionInPromptTitle(weight.catalog.toLocaleString("en-US")),
234
234
  children: [/* @__PURE__ */ jsx("span", {