zidane-ui 9.2.2 → 9.3.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 (320) hide show
  1. package/dist/adapters/browser-keybindings-host.js +3 -1
  2. package/dist/adapters/live.d.ts +6 -0
  3. package/dist/adapters/live.js +16 -8
  4. package/dist/adapters/server-composer-host.js +22 -9
  5. package/dist/adapters/server-host.js +143 -18
  6. package/dist/adapters/server-media.d.ts +9 -1
  7. package/dist/adapters/server-media.js +14 -1
  8. package/dist/adapters/server-settings-host.js +30 -3
  9. package/dist/adapters/server-settings-sections.js +23 -1
  10. package/dist/adapters/server-sidebar-host.d.ts +3 -1
  11. package/dist/adapters/server-sidebar-host.js +10 -1
  12. package/dist/app/ModalProvider.js +1 -1
  13. package/dist/approvals/ApprovalShell.js +1 -1
  14. package/dist/chat/DaemonOrb.d.ts +29 -1
  15. package/dist/chat/DaemonOrb.js +25 -12
  16. package/dist/chat/HostTranscript.d.ts +0 -12
  17. package/dist/chat/HostTranscript.js +6 -1
  18. package/dist/chat/SessionStreamsProvider.d.ts +8 -0
  19. package/dist/chat/SessionStreamsProvider.js +11 -2
  20. package/dist/chat/StatusDot.js +8 -2
  21. package/dist/chat/Transcript.d.ts +20 -11
  22. package/dist/chat/Transcript.js +335 -162
  23. package/dist/chat/composer/ComposerEditor.js +1 -1
  24. package/dist/chat/headless/host.d.ts +43 -7
  25. package/dist/chat/headless/index.d.ts +8 -6
  26. package/dist/chat/headless/index.js +11 -9
  27. package/dist/chat/headless/labels.d.ts +30 -0
  28. package/dist/chat/headless/labels.js +29 -0
  29. package/dist/chat/headless/markdown-chunks.d.ts +2 -1
  30. package/dist/chat/headless/markdown-chunks.js +12 -20
  31. package/dist/chat/headless/markdown-scan.d.ts +66 -0
  32. package/dist/chat/headless/markdown-scan.js +124 -0
  33. package/dist/chat/headless/markdown-stream.d.ts +64 -0
  34. package/dist/chat/headless/markdown-stream.js +143 -0
  35. package/dist/chat/headless/output-pager.d.ts +68 -0
  36. package/dist/chat/headless/output-pager.js +113 -0
  37. package/dist/chat/headless/session-list.d.ts +20 -0
  38. package/dist/chat/headless/sidebar/activity.d.ts +14 -0
  39. package/dist/chat/headless/sidebar/activity.js +32 -0
  40. package/dist/chat/headless/sidebar/directory.d.ts +17 -2
  41. package/dist/chat/headless/sidebar/directory.js +50 -54
  42. package/dist/chat/headless/sidebar/environment.d.ts +5 -2
  43. package/dist/chat/headless/sidebar/environment.js +11 -2
  44. package/dist/chat/headless/sidebar/host.d.ts +15 -0
  45. package/dist/chat/headless/sidebar/inbox.d.ts +12 -3
  46. package/dist/chat/headless/sidebar/inbox.js +18 -9
  47. package/dist/chat/headless/sidebar/index.d.ts +2 -2
  48. package/dist/chat/headless/sidebar/index.js +2 -2
  49. package/dist/chat/headless/sidebar/labels.d.ts +38 -2
  50. package/dist/chat/headless/sidebar/labels.js +16 -0
  51. package/dist/chat/headless/sidebar/prewarm.d.ts +68 -0
  52. package/dist/chat/headless/sidebar/prewarm.js +114 -0
  53. package/dist/chat/headless/streams/actions.d.ts +2 -0
  54. package/dist/chat/headless/streams/actions.js +1 -0
  55. package/dist/chat/headless/streams/event-bytes.d.ts +6 -0
  56. package/dist/chat/headless/streams/event-bytes.js +34 -0
  57. package/dist/chat/headless/streams/live-events.d.ts +25 -1
  58. package/dist/chat/headless/streams/live-events.js +53 -2
  59. package/dist/chat/headless/streams/selectors.d.ts +3 -0
  60. package/dist/chat/headless/streams/selectors.js +8 -1
  61. package/dist/chat/headless/streams/session-streams.d.ts +15 -3
  62. package/dist/chat/headless/streams/session-streams.js +31 -3
  63. package/dist/chat/headless/streams/store.d.ts +24 -1
  64. package/dist/chat/headless/streams/store.js +51 -26
  65. package/dist/chat/headless/streams/transcript-map.d.ts +57 -0
  66. package/dist/chat/headless/streams/transcript-map.js +88 -0
  67. package/dist/chat/headless/streams/transcript.d.ts +4 -2
  68. package/dist/chat/headless/streams/transcript.js +19 -7
  69. package/dist/chat/headless/transcript/batch.js +5 -1
  70. package/dist/chat/headless/transcript/blob-media.d.ts +15 -0
  71. package/dist/chat/headless/transcript/blob-media.js +23 -0
  72. package/dist/chat/headless/transcript/collapse.d.ts +10 -0
  73. package/dist/chat/headless/transcript/collapse.js +32 -6
  74. package/dist/chat/headless/transcript/derive.d.ts +98 -0
  75. package/dist/chat/headless/transcript/derive.js +89 -0
  76. package/dist/chat/headless/transcript/exchange-media.d.ts +3 -1
  77. package/dist/chat/headless/transcript/exchange-media.js +8 -5
  78. package/dist/chat/headless/transcript/fold-actions.d.ts +8 -3
  79. package/dist/chat/headless/transcript/fold-actions.js +16 -0
  80. package/dist/chat/headless/transcript/fold-attachments.d.ts +2 -0
  81. package/dist/chat/headless/transcript/fold-attachments.js +3 -2
  82. package/dist/chat/headless/transcript/fold.d.ts +4 -2
  83. package/dist/chat/headless/transcript/fold.js +37 -7
  84. package/dist/chat/headless/transcript/incremental.d.ts +53 -0
  85. package/dist/chat/headless/transcript/incremental.js +181 -0
  86. package/dist/chat/headless/transcript/index.d.ts +2 -1
  87. package/dist/chat/headless/transcript/index.js +2 -1
  88. package/dist/chat/headless/transcript/nesting.js +2 -1
  89. package/dist/chat/headless/transcript/rail.d.ts +142 -0
  90. package/dist/chat/headless/transcript/rail.js +290 -0
  91. package/dist/chat/headless/transcript/rows.d.ts +11 -1
  92. package/dist/chat/headless/transcript/run-failures.d.ts +4 -0
  93. package/dist/chat/headless/transcript/run-failures.js +31 -2
  94. package/dist/chat/headless/transcript/seams.d.ts +78 -0
  95. package/dist/chat/headless/transcript/seams.js +116 -0
  96. package/dist/chat/headless/transcript/tool-media.d.ts +6 -7
  97. package/dist/chat/headless/transcript/tool-media.js +27 -9
  98. package/dist/chat/headless/transcript-labels.d.ts +1 -0
  99. package/dist/chat/headless/turn-labels.d.ts +1 -0
  100. package/dist/chat/headless/turn-labels.js +2 -1
  101. package/dist/chat/index.d.ts +10 -8
  102. package/dist/chat/index.js +9 -7
  103. package/dist/chat/interactions/ElicitationCard.js +1 -1
  104. package/dist/chat/interactions/InteractionCard.js +1 -1
  105. package/dist/chat/interactions/PlanCard.js +3 -3
  106. package/dist/chat/interactions/QuestionField.js +4 -4
  107. package/dist/chat/interactions/QuestionForm.js +3 -3
  108. package/dist/chat/interactions/SecretInput.js +1 -1
  109. package/dist/chat/sidebar/ProjectIcon.d.ts +1 -1
  110. package/dist/chat/sidebar/ProjectIcon.js +1 -1
  111. package/dist/chat/sidebar/RowChips.d.ts +3 -2
  112. package/dist/chat/sidebar/RowChips.js +6 -3
  113. package/dist/chat/sidebar/SessionSidebar.js +13 -14
  114. package/dist/chat/sidebar/SidebarFooter.d.ts +8 -5
  115. package/dist/chat/sidebar/SidebarFooter.js +6 -6
  116. package/dist/chat/sidebar/SidebarFrame.d.ts +2 -0
  117. package/dist/chat/sidebar/SidebarFrame.js +5 -2
  118. package/dist/chat/sidebar/SidebarSessionRow.d.ts +3 -1
  119. package/dist/chat/sidebar/SidebarSessionRow.js +3 -1
  120. package/dist/chat/sidebar/SpacesSection.d.ts +20 -1
  121. package/dist/chat/sidebar/SpacesSection.js +34 -13
  122. package/dist/chat/sidebar/index.d.ts +2 -2
  123. package/dist/chat/sidebar/session-menu.d.ts +11 -2
  124. package/dist/chat/sidebar/session-menu.js +50 -5
  125. package/dist/chat/sidebar/sidebar-live.js +1 -1
  126. package/dist/chat/sidebar/useInboxRows.js +43 -2
  127. package/dist/chat/sidebar/useInboxTriage.js +19 -14
  128. package/dist/chat/testing/contract.d.ts +5 -3
  129. package/dist/chat/testing/contract.js +66 -1
  130. package/dist/chat/testing/fixture-sidebar-host.d.ts +7 -1
  131. package/dist/chat/testing/fixture-sidebar-host.js +12 -0
  132. package/dist/chat/testing/sidebar.contract.d.ts +6 -0
  133. package/dist/chat/testing/sidebar.contract.js +24 -0
  134. package/dist/chat/transcript/DiffLines.d.ts +6 -1
  135. package/dist/chat/transcript/DiffLines.js +35 -20
  136. package/dist/chat/transcript/EditDiffBlock.d.ts +5 -1
  137. package/dist/chat/transcript/EditDiffBlock.js +89 -30
  138. package/dist/chat/transcript/InteractionToolBody.js +1 -1
  139. package/dist/chat/transcript/LazyRow.d.ts +40 -40
  140. package/dist/chat/transcript/LazyRow.js +101 -149
  141. package/dist/chat/transcript/MermaidDiagram.js +2 -1
  142. package/dist/chat/transcript/SelectCursor.d.ts +11 -1
  143. package/dist/chat/transcript/SelectCursor.js +10 -5
  144. package/dist/chat/transcript/SubagentBlock.js +3 -2
  145. package/dist/chat/transcript/TranscriptRail.d.ts +109 -0
  146. package/dist/chat/transcript/TranscriptRail.js +579 -0
  147. package/dist/chat/transcript/TranscriptRow.d.ts +4 -7
  148. package/dist/chat/transcript/TranscriptRow.js +9 -5
  149. package/dist/chat/transcript/actions.d.ts +43 -3
  150. package/dist/chat/transcript/actions.js +27 -1
  151. package/dist/chat/transcript/clipped-output.d.ts +58 -0
  152. package/dist/chat/transcript/clipped-output.js +131 -0
  153. package/dist/chat/transcript/fold-attachments.js +10 -5
  154. package/dist/chat/transcript/fold-worker.js +3 -2
  155. package/dist/chat/transcript/fold.js +21 -2
  156. package/dist/chat/transcript/index.d.ts +11 -9
  157. package/dist/chat/transcript/index.js +10 -8
  158. package/dist/chat/transcript/markdown-cache.d.ts +7 -1
  159. package/dist/chat/transcript/markdown-cache.js +12 -1
  160. package/dist/chat/transcript/markdown.js +116 -54
  161. package/dist/chat/transcript/media-gallery.d.ts +3 -2
  162. package/dist/chat/transcript/media-gallery.js +10 -7
  163. package/dist/chat/transcript/notices.d.ts +23 -1
  164. package/dist/chat/transcript/notices.js +110 -28
  165. package/dist/chat/transcript/prompt.js +6 -4
  166. package/dist/chat/transcript/prose.js +3 -1
  167. package/dist/chat/transcript/receipt-parts.d.ts +22 -0
  168. package/dist/chat/transcript/receipt-parts.js +87 -0
  169. package/dist/chat/transcript/root-items.d.ts +96 -0
  170. package/dist/chat/transcript/root-items.js +180 -0
  171. package/dist/chat/transcript/row-mount.d.ts +165 -0
  172. package/dist/chat/transcript/row-mount.js +498 -0
  173. package/dist/chat/transcript/row-parking.d.ts +125 -0
  174. package/dist/chat/transcript/row-parking.js +135 -0
  175. package/dist/chat/transcript/row-ui-state.d.ts +37 -0
  176. package/dist/chat/transcript/row-ui-state.js +53 -0
  177. package/dist/chat/transcript/run-rows.js +6 -78
  178. package/dist/chat/transcript/script-input.d.ts +1 -1
  179. package/dist/chat/transcript/scroll-clamp.js +1 -1
  180. package/dist/chat/transcript/tasks.js +3 -2
  181. package/dist/chat/transcript/tool-media.d.ts +4 -2
  182. package/dist/chat/transcript/tool-media.js +15 -7
  183. package/dist/chat/transcript/tool-parts.d.ts +27 -4
  184. package/dist/chat/transcript/tool-parts.js +31 -5
  185. package/dist/chat/transcript/tool-payload.js +26 -11
  186. package/dist/chat/transcript/tool-row.d.ts +2 -1
  187. package/dist/chat/transcript/tool-row.js +38 -19
  188. package/dist/chat/transcript/use-transcript-rows.d.ts +24 -7
  189. package/dist/chat/transcript/use-transcript-rows.js +28 -46
  190. package/dist/chat/transcript/useSettledReveal.js +15 -3
  191. package/dist/chat/transcript/useStickToBottom.js +4 -4
  192. package/dist/chat/transcript/useTranscriptSearch.js +30 -14
  193. package/dist/chat/transcript/view-scope.d.ts +26 -6
  194. package/dist/chat/transcript/view-scope.js +106 -20
  195. package/dist/components/ChoiceCards.js +1 -1
  196. package/dist/components/ConfirmDialog.js +1 -1
  197. package/dist/components/CopyValue.d.ts +33 -0
  198. package/dist/components/CopyValue.js +54 -0
  199. package/dist/components/Form.js +1 -1
  200. package/dist/components/HowItWorks.js +1 -1
  201. package/dist/components/Menu.js +1 -1
  202. package/dist/components/StepFrame.js +2 -2
  203. package/dist/components/SwatchPicker.js +1 -1
  204. package/dist/components/ToggleCard.js +1 -1
  205. package/dist/components/floating/HoverCard.js +2 -3
  206. package/dist/components/floating/hover-delay.d.ts +4 -0
  207. package/dist/components/floating/hover-delay.js +6 -0
  208. package/dist/core.css +14 -12
  209. package/dist/dist/{index-Betz0OWq.d.ts → index-C6-t1SS9.d.ts} +21 -2
  210. package/dist/dist/index-De9AbmxS.d.ts +1 -0
  211. package/dist/dist/index.d.ts +5 -5
  212. package/dist/dist/sandbox-CSUihARm.d.ts +2 -0
  213. package/dist/dist/{timeout-CyU7HLyz.d.ts → timeout-CmTx6V9y.d.ts} +1 -0
  214. package/dist/extensions/ExtensionDialogHost.js +1 -1
  215. package/dist/files/TreeColumn.js +3 -1
  216. package/dist/files/headless/host.d.ts +2 -2
  217. package/dist/git/ImportRepoDialog.js +1 -1
  218. package/dist/git/MoveSessionDialog.js +2 -2
  219. package/dist/git/SandboxManager.d.ts +42 -0
  220. package/dist/git/SandboxManager.js +297 -0
  221. package/dist/git/SyncChip.js +1 -1
  222. package/dist/git/headless/index.d.ts +2 -1
  223. package/dist/git/headless/index.js +2 -1
  224. package/dist/git/headless/labels.d.ts +29 -0
  225. package/dist/git/headless/labels.js +34 -1
  226. package/dist/git/headless/sandboxes.d.ts +43 -0
  227. package/dist/git/headless/sandboxes.js +52 -0
  228. package/dist/git/index.d.ts +2 -1
  229. package/dist/git/index.js +2 -1
  230. package/dist/index.d.ts +2 -1
  231. package/dist/index.js +2 -1
  232. package/dist/keybindings/headless/catalog.d.ts +1 -1
  233. package/dist/keybindings/headless/catalog.js +12 -0
  234. package/dist/machines/HostsSection.d.ts +1 -1
  235. package/dist/machines/headless/labels.js +2 -2
  236. package/dist/motion/flip-list.js +3 -10
  237. package/dist/motion/presence.d.ts +10 -0
  238. package/dist/motion/presence.js +20 -1
  239. package/dist/motion/swap.d.ts +8 -2
  240. package/dist/motion/swap.js +5 -2
  241. package/dist/onboarding/conversation.js +27 -15
  242. package/dist/onboarding/demos/how-it-works.js +1 -1
  243. package/dist/onboarding/skills/parts.js +4 -4
  244. package/dist/onboarding/sources/SourceBrowser.js +1 -1
  245. package/dist/onboarding/steps/ReadyStep.js +1 -1
  246. package/dist/onboarding/steps/connect/KeyForm.js +1 -1
  247. package/dist/palette/headless/app-sources.js +20 -0
  248. package/dist/palette/headless/labels.js +2 -0
  249. package/dist/session/PlanTracker.js +3 -3
  250. package/dist/session/SecretsPanel.js +1 -1
  251. package/dist/session/SessionHeader.d.ts +18 -6
  252. package/dist/session/SessionHeader.js +68 -12
  253. package/dist/session/SessionPlaceMenu.d.ts +35 -0
  254. package/dist/session/SessionPlaceMenu.js +299 -0
  255. package/dist/session/SessionShell.js +1 -1
  256. package/dist/session/TurnDetailsDialog.js +1 -1
  257. package/dist/session/headless/index.d.ts +2 -1
  258. package/dist/session/headless/index.js +2 -1
  259. package/dist/session/headless/labels.d.ts +73 -0
  260. package/dist/session/headless/labels.js +73 -0
  261. package/dist/session/headless/place.d.ts +49 -0
  262. package/dist/session/headless/place.js +57 -0
  263. package/dist/session/index.d.ts +2 -1
  264. package/dist/session/index.js +2 -1
  265. package/dist/settings/ConversationPresetsCard.js +1 -1
  266. package/dist/settings/SettingCard.js +2 -2
  267. package/dist/settings/SettingsRowsPage.js +1 -1
  268. package/dist/settings/headless/fixture-performance.js +4 -2
  269. package/dist/settings/headless/fixture-sections.js +7 -0
  270. package/dist/settings/headless/labels.d.ts +1 -1
  271. package/dist/settings/headless/labels.js +1 -1
  272. package/dist/settings/headless/layout.d.ts +4 -4
  273. package/dist/settings/headless/layout.js +1 -1
  274. package/dist/settings/headless/performance.d.ts +4 -0
  275. package/dist/settings/headless/search.d.ts +2 -2
  276. package/dist/settings/headless/sections-host.d.ts +20 -2
  277. package/dist/settings/sections/claude-import/ClaudeImportDialog.js +1 -1
  278. package/dist/settings/sections/enabled-list/EnabledListSection.js +2 -2
  279. package/dist/settings/sections/environments/EnvironmentsSection.d.ts +9 -3
  280. package/dist/settings/sections/environments/EnvironmentsSection.js +292 -52
  281. package/dist/settings/sections/environments/labels.d.ts +15 -0
  282. package/dist/settings/sections/environments/labels.js +18 -3
  283. package/dist/settings/sections/extensions/ChangeOriginDialog.js +1 -1
  284. package/dist/settings/sections/extensions/ExtensionSourceBrowser.js +1 -1
  285. package/dist/settings/sections/extensions/ExtensionsSection.d.ts +3 -2
  286. package/dist/settings/sections/extensions/ExtensionsSection.js +9 -3
  287. package/dist/settings/sections/host-catalog/HostCatalogSection.js +15 -5
  288. package/dist/settings/sections/keybindings/labels.d.ts +2 -0
  289. package/dist/settings/sections/keybindings/labels.js +2 -0
  290. package/dist/settings/sections/keybindings/rows.js +8 -0
  291. package/dist/settings/sections/models/SpacesDefaultsSection.d.ts +7 -3
  292. package/dist/settings/sections/models/SpacesDefaultsSection.js +11 -5
  293. package/dist/settings/sections/performance/PerformanceSection.js +8 -1
  294. package/dist/settings/sections/performance/labels.d.ts +2 -0
  295. package/dist/settings/sections/performance/labels.js +2 -0
  296. package/dist/settings/sections/skills/SkillGroups.js +1 -1
  297. package/dist/settings/server-app.d.ts +4 -2
  298. package/dist/settings/server-app.js +7 -3
  299. package/dist/settings/testing/sections.contract.d.ts +7 -1
  300. package/dist/settings/testing/sections.contract.js +37 -0
  301. package/dist/styles.css +243 -19
  302. package/dist/terminal/TerminalDrawer.js +3 -1
  303. package/dist/views/headless/answers.d.ts +8 -2
  304. package/dist/views/headless/answers.js +58 -1
  305. package/dist/views/headless/placement.d.ts +78 -0
  306. package/dist/views/headless/placement.js +154 -44
  307. package/dist/workspace/SidePanel.js +3 -1
  308. package/package.json +2 -2
  309. package/src/styles/base.css +13 -0
  310. package/src/styles/chat.css +30 -0
  311. package/src/styles/components.css +0 -10
  312. package/src/styles/files.css +5 -0
  313. package/src/styles/sidebar.css +29 -7
  314. package/src/styles/terminal.css +6 -0
  315. package/src/styles/tokens.css +5 -0
  316. package/src/styles/transcript.css +138 -0
  317. package/src/styles/workspace.css +6 -0
  318. package/dist/dist/index-QcFzZlao.d.ts +0 -1
  319. package/dist/dist/sandbox-D0zsW8I1.d.ts +0 -2
  320. /package/dist/dist/{types-_Dtoq_No.d.ts → execution-failure-SREfl-EZ.d.ts} +0 -0
@@ -211,7 +211,80 @@ const SESSION_SURFACE_LABELS = {
211
211
  headerChangeFolder: (cwd) => `${cwd}. Click to change folder`,
212
212
  headerServerGone: "This server is no longer saved",
213
213
  headerOnServer: (server) => `on ${server ?? "a removed server"}`,
214
+ headerBranch: (branch) => `Branch ${branch}`,
215
+ headerSwitchBranch: (branch) => `Branch ${branch}. Click to switch`,
214
216
  headerRename: "Rename session",
217
+ placeMenu: "Where this session runs",
218
+ placeTones: {
219
+ ready: "Ready",
220
+ busy: "Setting up",
221
+ reconnecting: "Reconnecting",
222
+ failed: "Setup failed",
223
+ resuming: "Resuming",
224
+ paused: "Paused",
225
+ removed: "Deleted"
226
+ },
227
+ placeServerTones: {
228
+ ready: "Connected",
229
+ busy: "Connecting",
230
+ reconnecting: "Reconnecting",
231
+ failed: "Unreachable",
232
+ resuming: "Connected",
233
+ paused: "Connected",
234
+ removed: "Connected"
235
+ },
236
+ /** The state of an environment that broke after setup (`failure`), in place of `placeTones.failed`. */
237
+ placeBroken: {
238
+ lost: "Gone",
239
+ unreachable: "Not answering"
240
+ },
241
+ placeTip: (where, state) => `${where}: ${state}`,
242
+ placeResumes: "resumes on your next prompt",
243
+ /** After `placeTones.removed`: when the new sandbox comes. */
244
+ placeRecreates: "a new one on your next prompt",
245
+ /** Copies a detail line (the branch, the sandbox id). */
246
+ placeCopyBranch: "Copy branch",
247
+ placeCopySandboxId: "Copy sandbox id",
248
+ placeCopiedValue: "Copied",
249
+ placeOnServer: (server) => `On ${server}`,
250
+ placeServerGone: "A removed server",
251
+ placeServerGoneDetail: "This server is no longer saved.",
252
+ placeSetup: "Setup",
253
+ placeServer: "Server",
254
+ placeActions: "Actions",
255
+ placeRetry: "Retry setup",
256
+ placeRetryHint: "Sets the environment up again",
257
+ /** The retry of an environment that broke after setup, by how it broke. */
258
+ placeRetryBroken: {
259
+ lost: {
260
+ title: "Set up again",
261
+ hint: "Sets up a new one"
262
+ },
263
+ unreachable: {
264
+ title: "Reconnect",
265
+ hint: "Tries to reach it again"
266
+ }
267
+ },
268
+ /** `placeRetryBroken.lost`'s hint for a remote sandbox, which held the only copy of the work. */
269
+ placeRetryLostSandboxHint: "A new one; work not pushed or saved at its last pause is lost",
270
+ /** Starts a paused environment now. */
271
+ placeWake: "Wake up",
272
+ placeWakeHint: "Starts it now, before your next prompt",
273
+ placeWakeReadyHint: "Starts it if it fell asleep on its own",
274
+ /** Pauses an idle sandbox now. */
275
+ placePause: "Pause",
276
+ placePauseHint: "Stops it until your next prompt",
277
+ /** Deletes the sandbox and keeps the session (after a confirmation). */
278
+ placeDelete: "Delete sandbox",
279
+ placeDeleteHint: "A new one gets set up on your next prompt",
280
+ placeDeleteConfirmTitle: "Delete this sandbox?",
281
+ placeDeleteConfirmMessage: "Work not pushed or saved at its last pause is lost. Your next prompt sets up a new sandbox.",
282
+ placeDeleteConfirm: "Delete",
283
+ /** The retry of a deleted sandbox: set the new one up now. */
284
+ placeRecreate: "Set up now",
285
+ placeRecreateHint: "Sets up a new sandbox",
286
+ placeCopy: "Copy details",
287
+ placeCopied: "Details copied",
215
288
  headerDetails: "Session details",
216
289
  detailsTitle: "Session details",
217
290
  detailsMainDescription: "Main runs your other sessions",
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Where a session runs, for the header's dot (`SessionPlaceMenu`): whether it runs somewhere other than this
3
+ * machine's folders (a sandbox, another machine, a saved server), and one tone for its state.
4
+ */
5
+ import { HostView } from "../../chat/headless/hosts.js";
6
+ import { SessionEnvironmentSummary } from "zidane/chat";
7
+ /**
8
+ * The dot's state: ready, setting up or connecting, reconnecting to an environment that stopped answering, failed
9
+ * or unreachable, starting back up after a pause, paused while idle, its sandbox deleted (a new one comes with the
10
+ * next prompt).
11
+ */
12
+ export type SessionPlaceTone = 'ready' | 'busy' | 'reconnecting' | 'failed' | 'resuming' | 'paused' | 'removed';
13
+ /**
14
+ * Whether the environment stopped answering and the host is still reconnecting to it: its window
15
+ * (`reconnectUntil`) has not passed. Past it, the host gave up (or went away): it reads as failed.
16
+ *
17
+ * @param environment - The session's environment, if any.
18
+ * @param now - The current time, epoch ms.
19
+ */
20
+ export declare function isReconnecting(environment: SessionEnvironmentSummary | undefined, now?: number): boolean;
21
+ /**
22
+ * Whether the environment runs outside this machine's own folders: a sandbox, an extension's kind or another
23
+ * machine. A local folder and a worktree here do not.
24
+ *
25
+ * @param environment - The session's environment, if any.
26
+ */
27
+ export declare function isExternalEnvironment(environment: SessionEnvironmentSummary | undefined): boolean;
28
+ /**
29
+ * The environment's state in words: how it broke when it broke after setup (`failure`), else its tone.
30
+ *
31
+ * @param labels - The tone words and the broken-state words.
32
+ * @param labels.placeTones - A word per tone.
33
+ * @param labels.placeBroken - A word per way an environment breaks.
34
+ * @param environment - The session's environment.
35
+ * @param tone - Its tone (`sessionPlaceTone`).
36
+ */
37
+ export declare function environmentStateLabel(labels: {
38
+ placeTones: Record<SessionPlaceTone, string>;
39
+ placeBroken: Record<'lost' | 'unreachable', string>;
40
+ }, environment: SessionEnvironmentSummary | undefined, tone: SessionPlaceTone): string;
41
+ /**
42
+ * One tone for where a session runs: a failure wins (unless the host is reconnecting to it, or it is a sandbox
43
+ * deleted on purpose), then work in progress, then a paused environment starting back up, then a pause.
44
+ *
45
+ * @param environment - Its environment when it runs outside this machine's folders, else `undefined`.
46
+ * @param server - Its server: the host, `null` once it is no longer saved, `undefined` for a session here.
47
+ * @param now - The current time, epoch ms (a reconnect window that passed reads as failed).
48
+ */
49
+ export declare function sessionPlaceTone(environment: SessionEnvironmentSummary | undefined, server: HostView | null | undefined, now?: number): SessionPlaceTone;
@@ -0,0 +1,57 @@
1
+ // src/session/headless/place.ts
2
+ /**
3
+ * Whether the environment stopped answering and the host is still reconnecting to it: its window
4
+ * (`reconnectUntil`) has not passed. Past it, the host gave up (or went away): it reads as failed.
5
+ *
6
+ * @param environment - The session's environment, if any.
7
+ * @param now - The current time, epoch ms.
8
+ */
9
+ function isReconnecting(environment, now = Date.now()) {
10
+ return environment?.state === "failed" && environment.failure === "unreachable" && environment.reconnectUntil !== void 0 && environment.reconnectUntil > now;
11
+ }
12
+ /**
13
+ * Whether the environment runs outside this machine's own folders: a sandbox, an extension's kind or another
14
+ * machine. A local folder and a worktree here do not.
15
+ *
16
+ * @param environment - The session's environment, if any.
17
+ */
18
+ function isExternalEnvironment(environment) {
19
+ return environment !== void 0 && environment.kind !== "local" && environment.kind !== "worktree";
20
+ }
21
+ /**
22
+ * The environment's state in words: how it broke when it broke after setup (`failure`), else its tone.
23
+ *
24
+ * @param labels - The tone words and the broken-state words.
25
+ * @param labels.placeTones - A word per tone.
26
+ * @param labels.placeBroken - A word per way an environment breaks.
27
+ * @param environment - The session's environment.
28
+ * @param tone - Its tone (`sessionPlaceTone`).
29
+ */
30
+ function environmentStateLabel(labels, environment, tone) {
31
+ return tone === "failed" && environment?.failure ? labels.placeBroken[environment.failure] : labels.placeTones[tone];
32
+ }
33
+ const SERVER_DOWN = /* @__PURE__ */ new Set([
34
+ "offline",
35
+ "auth-refused",
36
+ "identity",
37
+ "version-mismatch"
38
+ ]);
39
+ /**
40
+ * One tone for where a session runs: a failure wins (unless the host is reconnecting to it, or it is a sandbox
41
+ * deleted on purpose), then work in progress, then a paused environment starting back up, then a pause.
42
+ *
43
+ * @param environment - Its environment when it runs outside this machine's folders, else `undefined`.
44
+ * @param server - Its server: the host, `null` once it is no longer saved, `undefined` for a session here.
45
+ * @param now - The current time, epoch ms (a reconnect window that passed reads as failed).
46
+ */
47
+ function sessionPlaceTone(environment, server, now = Date.now()) {
48
+ const serverDown = server === null || server !== void 0 && SERVER_DOWN.has(server.status);
49
+ if (!serverDown && isReconnecting(environment, now)) return "reconnecting";
50
+ if (!serverDown && environment?.state === "failed" && environment.removed) return "removed";
51
+ if (environment?.state === "failed" || server === null || server && SERVER_DOWN.has(server.status)) return "failed";
52
+ if (environment?.state === "provisioning" || server?.status === "connecting" || server?.status === "reconnecting") return "busy";
53
+ if (environment?.resuming) return "resuming";
54
+ if (environment?.suspended) return "paused";
55
+ return "ready";
56
+ }
57
+ export { environmentStateLabel, isExternalEnvironment, isReconnecting, sessionPlaceTone };
@@ -13,6 +13,7 @@ import { SecretsPanel, SecretsPanelProps } from "./SecretsPanel.js";
13
13
  import { SessionCacheFacts, SessionCacheFactsProps, useSessionCacheReport } from "./SessionCacheFacts.js";
14
14
  import { SessionDetailsDialog, SessionDetailsDialogProps, SessionDetailsFacts, SessionDetailsSpace, SessionDetailsStatus, SessionFolderLocation } from "./SessionDetailsDialog.js";
15
15
  import { SessionHeader, SessionHeaderOrigin, SessionHeaderProps, SessionHeaderServer } from "./SessionHeader.js";
16
+ import { SessionPlaceMenu, SessionPlaceMenuProps } from "./SessionPlaceMenu.js";
16
17
  import { SessionProvider, SessionProviderProps, useAllSchedules, useSchedulesStatus, useSessionArtifacts, useSessionHost, useSessionPlans, useSessionQueue, useSessionRunningWork, useSessionSchedules, useSessionSecrets } from "./SessionProvider.js";
17
18
  import { RenderSessionShell, SessionShell, SessionShellProps } from "./SessionShell.js";
18
19
  import { SideChat, SideChatProps } from "./SideChat.js";
@@ -23,4 +24,4 @@ import { useSessionActionError } from "./useSessionActionError.js";
23
24
  import { useSessionLabels } from "./useSessionLabels.js";
24
25
  import { UsageSummaryView, useUsageSummary } from "./useUsageSummary.js";
25
26
  import { WelcomeScreen, WelcomeScreenProps } from "./WelcomeScreen.js";
26
- export { ArtifactOpenEvent, ArtifactRowChips, ArtifactRowChipsFields, ArtifactRowChipsProps, ArtifactsPanel, ArtifactsPanelFocus, ArtifactsPanelProps, ArtifactsSavedViews, AttentionActions, BADGE_ICONS, DiffFacts, DiffFactsProps, DiffFileTree, DiffFileTreeProps, FindingCounts, InboxAttention, InboxAttentionProps, PanelAttentionProps, PlanTracker, PlanTrackerProps, ProjectHome, ProjectHomeProject, ProjectHomeProps, ProjectHomeRepo, ProjectHomeStartResult, ProjectHomeSwitcher, ProviderUsage, ProviderUsageProvider, ProviderUsageProviderProps, QueueAttachmentRowProps, QueueAttachmentsSlot, QueueAttention, QueueTab, QueueTabProps, RecentPlans, RecentPlansProps, RemindersPanel, RemindersPanelProps, RemindersScope, type RenderSessionShell, RunningWorkDialog, RunningWorkDialogProps, SecretsAttention, SecretsAttentionProps, SecretsPanel, SecretsPanelProps, SessionCacheFacts, SessionCacheFactsProps, SessionDetailsDialog, SessionDetailsDialogProps, SessionDetailsFacts, SessionDetailsSpace, SessionDetailsStatus, SessionFolderLocation, SessionHeader, SessionHeaderOrigin, SessionHeaderProps, SessionHeaderServer, SessionProvider, SessionProviderProps, SessionShell, type SessionShellProps, SideChat, SideChatProps, TODO_ROW_CLASS, TodoListItem, TodoListView, TodoListViewProps, TodoTally, TodoTallyProps, TurnDetailsDialog, TurnDetailsDialogProps, UsagePanel, UsagePanelProps, UsageSummaryView, WelcomeScreen, WelcomeScreenProps, badgeColorStyle, badgeToneClass, hasArtifactRowChips, isDoneTodo, planStateTone, renderSessionModalShell, renderWideSessionModalShell, todoGlyphTone, useAllSchedules, useInboxPlans, useProviderUsage, useSchedulesStatus, useSessionActionError, useSessionArtifacts, useSessionCacheReport, useSessionHost, useSessionLabels, useSessionPlans, useSessionQueue, useSessionRunningWork, useSessionSchedules, useSessionSecrets, useUsageSummary };
27
+ export { ArtifactOpenEvent, ArtifactRowChips, ArtifactRowChipsFields, ArtifactRowChipsProps, ArtifactsPanel, ArtifactsPanelFocus, ArtifactsPanelProps, ArtifactsSavedViews, AttentionActions, BADGE_ICONS, DiffFacts, DiffFactsProps, DiffFileTree, DiffFileTreeProps, FindingCounts, InboxAttention, InboxAttentionProps, PanelAttentionProps, PlanTracker, PlanTrackerProps, ProjectHome, ProjectHomeProject, ProjectHomeProps, ProjectHomeRepo, ProjectHomeStartResult, ProjectHomeSwitcher, ProviderUsage, ProviderUsageProvider, ProviderUsageProviderProps, QueueAttachmentRowProps, QueueAttachmentsSlot, QueueAttention, QueueTab, QueueTabProps, RecentPlans, RecentPlansProps, RemindersPanel, RemindersPanelProps, RemindersScope, type RenderSessionShell, RunningWorkDialog, RunningWorkDialogProps, SecretsAttention, SecretsAttentionProps, SecretsPanel, SecretsPanelProps, SessionCacheFacts, SessionCacheFactsProps, SessionDetailsDialog, SessionDetailsDialogProps, SessionDetailsFacts, SessionDetailsSpace, SessionDetailsStatus, SessionFolderLocation, SessionHeader, SessionHeaderOrigin, SessionHeaderProps, SessionHeaderServer, SessionPlaceMenu, SessionPlaceMenuProps, SessionProvider, SessionProviderProps, SessionShell, type SessionShellProps, SideChat, SideChatProps, TODO_ROW_CLASS, TodoListItem, TodoListView, TodoListViewProps, TodoTally, TodoTallyProps, TurnDetailsDialog, TurnDetailsDialogProps, UsagePanel, UsagePanelProps, UsageSummaryView, WelcomeScreen, WelcomeScreenProps, badgeColorStyle, badgeToneClass, hasArtifactRowChips, isDoneTodo, planStateTone, renderSessionModalShell, renderWideSessionModalShell, todoGlyphTone, useAllSchedules, useInboxPlans, useProviderUsage, useSchedulesStatus, useSessionActionError, useSessionArtifacts, useSessionCacheReport, useSessionHost, useSessionLabels, useSessionPlans, useSessionQueue, useSessionRunningWork, useSessionSchedules, useSessionSecrets, useUsageSummary };
@@ -13,6 +13,7 @@ import { SecretsPanel } from "./SecretsPanel.js";
13
13
  import { SessionCacheFacts, useSessionCacheReport } from "./SessionCacheFacts.js";
14
14
  import { SessionDetailsDialog } from "./SessionDetailsDialog.js";
15
15
  import { SessionHeader } from "./SessionHeader.js";
16
+ import { SessionPlaceMenu } from "./SessionPlaceMenu.js";
16
17
  import { SessionProvider, useAllSchedules, useSchedulesStatus, useSessionArtifacts, useSessionHost, useSessionPlans, useSessionQueue, useSessionRunningWork, useSessionSchedules, useSessionSecrets } from "./SessionProvider.js";
17
18
  import { SessionShell } from "./SessionShell.js";
18
19
  import { SideChat } from "./SideChat.js";
@@ -23,4 +24,4 @@ import { useSessionActionError } from "./useSessionActionError.js";
23
24
  import { useSessionLabels } from "./useSessionLabels.js";
24
25
  import { useUsageSummary } from "./useUsageSummary.js";
25
26
  import { WelcomeScreen } from "./WelcomeScreen.js";
26
- export { ArtifactRowChips, ArtifactsPanel, BADGE_ICONS, DiffFacts, DiffFileTree, InboxAttention, PlanTracker, ProjectHome, ProviderUsageProvider, QueueAttention, QueueTab, RecentPlans, RemindersPanel, RunningWorkDialog, SecretsAttention, SecretsPanel, SessionCacheFacts, SessionDetailsDialog, SessionHeader, SessionProvider, SessionShell, SideChat, TODO_ROW_CLASS, TodoListView, TodoTally, TurnDetailsDialog, UsagePanel, WelcomeScreen, badgeColorStyle, badgeToneClass, hasArtifactRowChips, isDoneTodo, planStateTone, renderSessionModalShell, renderWideSessionModalShell, todoGlyphTone, useAllSchedules, useInboxPlans, useProviderUsage, useSchedulesStatus, useSessionActionError, useSessionArtifacts, useSessionCacheReport, useSessionHost, useSessionLabels, useSessionPlans, useSessionQueue, useSessionRunningWork, useSessionSchedules, useSessionSecrets, useUsageSummary };
27
+ export { ArtifactRowChips, ArtifactsPanel, BADGE_ICONS, DiffFacts, DiffFileTree, InboxAttention, PlanTracker, ProjectHome, ProviderUsageProvider, QueueAttention, QueueTab, RecentPlans, RemindersPanel, RunningWorkDialog, SecretsAttention, SecretsPanel, SessionCacheFacts, SessionDetailsDialog, SessionHeader, SessionPlaceMenu, SessionProvider, SessionShell, SideChat, TODO_ROW_CLASS, TodoListView, TodoTally, TurnDetailsDialog, UsagePanel, WelcomeScreen, badgeColorStyle, badgeToneClass, hasArtifactRowChips, isDoneTodo, planStateTone, renderSessionModalShell, renderWideSessionModalShell, todoGlyphTone, useAllSchedules, useInboxPlans, useProviderUsage, useSchedulesStatus, useSessionActionError, useSessionArtifacts, useSessionCacheReport, useSessionHost, useSessionLabels, useSessionPlans, useSessionQueue, useSessionRunningWork, useSessionSchedules, useSessionSecrets, useUsageSummary };
@@ -36,7 +36,7 @@ function ConversationPresetsCard({ label, description, badges, settings, onApply
36
36
  })]
37
37
  }) : null]
38
38
  }), description && /* @__PURE__ */ jsx("span", {
39
- className: "text-xs text-[var(--zg-text-muted)] zg-pretty",
39
+ className: "text-xs text-[var(--zg-text-muted)]",
40
40
  children: description
41
41
  })]
42
42
  }), /* @__PURE__ */ jsx(ChoiceCards, {
@@ -43,7 +43,7 @@ function SettingNoteLine({ note, className, style }) {
43
43
  const warn = note.tone === "warn";
44
44
  return /* @__PURE__ */ jsxs("span", {
45
45
  "data-setting-note": note.tone,
46
- className: ["flex items-start gap-1.5 mt-1.5 text-zg-label text-[var(--zg-text-muted)] text-pretty", className].filter(Boolean).join(" "),
46
+ className: ["flex items-start gap-1.5 mt-1.5 text-zg-label text-[var(--zg-text-muted)]", className].filter(Boolean).join(" "),
47
47
  style,
48
48
  children: [/* @__PURE__ */ jsx("span", {
49
49
  role: "img",
@@ -113,7 +113,7 @@ function SettingChoiceCards({ label, description, badges, marks, value, options,
113
113
  children: [/* @__PURE__ */ jsx(SettingBadges, { badges }), marks]
114
114
  }) : null]
115
115
  }), description && /* @__PURE__ */ jsx("span", {
116
- className: "text-xs text-[var(--zg-text-muted)] zg-pretty",
116
+ className: "text-xs text-[var(--zg-text-muted)]",
117
117
  children: description
118
118
  })]
119
119
  }), /* @__PURE__ */ jsx(ChoiceCards, {
@@ -336,7 +336,7 @@ function SettingsRowsPage({ page, server = false, surface = "desktop", spacesOnS
336
336
  children: [/* @__PURE__ */ jsxs("div", {
337
337
  className: "flex flex-col gap-0.5 px-4 mb-1.5 min-h-5",
338
338
  children: [/* @__PURE__ */ jsx(SectionLabel, { children: section.title }), section.description && /* @__PURE__ */ jsx("p", {
339
- className: "m-0 text-xs text-[var(--zg-text-muted)] zg-pretty",
339
+ className: "m-0 text-xs text-[var(--zg-text-muted)]",
340
340
  children: section.description
341
341
  })]
342
342
  }), /* @__PURE__ */ jsx(Tray, {
@@ -204,12 +204,14 @@ function fixturePerfSample(n, at) {
204
204
  p95Ms: 90
205
205
  },
206
206
  {
207
- channel: "chat:stream",
207
+ channel: "chat:stream-port",
208
208
  direction: "push",
209
209
  count: 3e3 + n * 40,
210
210
  totalMs: 410 + n * 3,
211
211
  maxMs: 6,
212
- p95Ms: .4
212
+ p95Ms: .4,
213
+ bytes: 15e5,
214
+ bytesPerMessage: 500
213
215
  },
214
216
  {
215
217
  channel: "sessions:list",
@@ -116,6 +116,13 @@ function createFixtureSettingsSections(data = {}) {
116
116
  if (held.extensions) {
117
117
  out.extensions = {
118
118
  list: async () => [...held.extensions ?? []],
119
+ subscribe: (_cwd, onChange) => {
120
+ const listener = (kind) => {
121
+ if (kind === "extensions") onChange();
122
+ };
123
+ catalogListeners.add(listener);
124
+ return () => void catalogListeners.delete(listener);
125
+ },
119
126
  install: async (_cwd, request, onProgress) => {
120
127
  const name = request.extension ?? request.source.split("/").pop() ?? request.source;
121
128
  onProgress?.(`installing ${name}`);
@@ -82,7 +82,7 @@ export declare const DEFAULT_SETTINGS_LABELS: {
82
82
  settingsServerStart: string;
83
83
  /** Copies that command. */
84
84
  settingsCopyCommand: string;
85
- /** Accounts › Hosts in an app a server serves: that server's page. */
85
+ /** Advanced › Hosts in an app a server serves: that server's page. */
86
86
  settingsServerHostsDescription: (host: string) => string;
87
87
  /** The foot of the nav: closes Settings and opens the setup wizard. */
88
88
  settingsRunSetup: string;
@@ -73,7 +73,7 @@ const DEFAULT_SETTINGS_LABELS = {
73
73
  settingsServerStart: "zidane server start",
74
74
  /** Copies that command. */
75
75
  settingsCopyCommand: "Copy the command",
76
- /** Accounts › Hosts in an app a server serves: that server's page. */
76
+ /** Advanced › Hosts in an app a server serves: that server's page. */
77
77
  settingsServerHostsDescription: (host) => `${host}: its version, updates, machines, browsers and tokens.`,
78
78
  /** The foot of the nav: closes Settings and opens the setup wizard. */
79
79
  settingsRunSetup: "Run setup again",
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * zidane's settings layout for the kit: core's settings table
3
3
  * (`SETTINGS_PAGES` and `SETTINGS_ROWS` in `zidane/chat/pure`) as pages the
4
- * kit draws. The nine rail entries (General, Models, Agent, Safety,
5
- * Conversation, Workspace, Extensions, Accounts, Advanced) and their
4
+ * kit draws. The seven rail entries (General, Accounts, Appearance, Agent,
5
+ * Workspace, Extensions, Advanced) and their
6
6
  * sub-pages, each page either a list of sections of rows or one panel an app
7
7
  * draws. Everything else reads this list: `SettingsRowsPage` renders a page
8
8
  * of rows, search indexes it (`search.ts`), the placement test checks it
@@ -13,9 +13,9 @@ import { SettingsSearchEntry } from "./registry.js";
13
13
  import { SettingScope, SettingSurface, SettingsActionId, SettingsCustomRowId, SettingsPageId, SettingsSectionNoteId, SettingsSectionPanelId } from "zidane/chat/pure";
14
14
  import { Settings } from "zidane/chat";
15
15
  /** Pages of rows. */
16
- export type SettingsSectionsPageId = 'general' | 'models' | 'agent' | 'safety' | 'conversation' | 'workspace' | 'advanced' | 'views' | 'hosts' | 'sidebar';
16
+ export type SettingsSectionsPageId = 'general' | 'models' | 'agent' | 'safety' | 'conversation' | 'workspace' | 'spaces' | 'advanced' | 'views' | 'hosts' | 'sidebar';
17
17
  /** The rail's entries. */
18
- export type SettingsTopId = 'general' | 'models' | 'agent' | 'safety' | 'conversation' | 'workspace' | 'extensions' | 'accounts' | 'advanced';
18
+ export type SettingsTopId = 'general' | 'accounts' | 'appearance' | 'agent' | 'workspace' | 'extensions' | 'advanced';
19
19
  /** Pages drawn by one panel component, mounted on first visit and then kept alive (their async state survives). */
20
20
  export type SettingsPanelId = Exclude<SettingsPageId, SettingsSectionsPageId>;
21
21
  /** Every page's id. */
@@ -181,7 +181,7 @@ function visiblePages(opts) {
181
181
  */
182
182
  function shown(part, server, spacesOnServer = false, surface) {
183
183
  if (surface !== void 0 && !onSurface(part, surface)) return false;
184
- if (spacesOnServer && "panel" in part && part.panel === "spaces") return true;
184
+ if (spacesOnServer && ("panel" in part && part.panel === "spaces" || "sections" in part && part.id === "spaces")) return true;
185
185
  if (spacesOnServer && "custom" in part && part.custom === "agentDefaults") return true;
186
186
  return !(server && "localOnly" in part && part.localOnly);
187
187
  }
@@ -94,6 +94,10 @@ export interface PerfChannel {
94
94
  maxMs: number;
95
95
  /** 95th percentile. */
96
96
  p95Ms: number;
97
+ /** Bytes carried, estimated from a sample of the messages counted while measured. Absent: not measured. */
98
+ bytes?: number;
99
+ /** The average size of a measured message, bytes. */
100
+ bytesPerMessage?: number;
97
101
  }
98
102
  /** Where long frames (over 50 ms) spent their time: one script and function, summed. */
99
103
  export interface PerfSlowFrame {
@@ -12,7 +12,7 @@
12
12
  * best first, once each, and `groupSettingsResults` groups them by page
13
13
  * and section.
14
14
  */
15
- import { bO as Settings } from "../../dist/index-Betz0OWq.js";
15
+ import { UO as Settings } from "../../dist/index-C6-t1SS9.js";
16
16
  import { SettingsActionId, SettingsPage } from "./layout.js";
17
17
  import { SettingsSearchEntry, SettingsSection } from "./registry.js";
18
18
  import { SettingSurface } from "zidane/chat/pure";
@@ -100,7 +100,7 @@ export interface PanelSearchSources {
100
100
  name: string;
101
101
  description?: string | null;
102
102
  }[];
103
- /** Accounts › Hosts: This computer and the saved servers. */
103
+ /** Advanced › Hosts: This computer and the saved servers. */
104
104
  hosts?: readonly {
105
105
  name: string;
106
106
  url?: string;
@@ -13,7 +13,7 @@
13
13
  import { SettingsError } from "./host.js";
14
14
  import { ExtensionInstallOrigin, ExtensionSourceListing, LogRecord, SkillSourceListing } from "zidane/chat/pure";
15
15
  import { SkillConfig, WireExtensionConfigSchema } from "zidane";
16
- import { ContextSegmentsReport, EnvironmentDescriptor, EnvironmentSettingsChange, EnvironmentVerifyResult } from "zidane/chat";
16
+ import { ContextSegmentsReport, EnvironmentDescriptor, EnvironmentFieldChoice, EnvironmentSandboxSummary, EnvironmentSettingsChange, EnvironmentVerifyResult } from "zidane/chat";
17
17
  import { HostCatalogExtension, HostCatalogMcp, HostCatalogPlugin, HostCatalogSkill } from "zidane/ipc";
18
18
  import { ResolvedSkillGroup, SkillGroupFile, SkillGroupInput } from "zidane/skills";
19
19
  /** What a {@link SettingsResource} holds now. */
@@ -144,6 +144,12 @@ export interface SettingsExtensionInstall {
144
144
  export interface SettingsExtensionsHost {
145
145
  /** The extensions for `cwd`. Read again after each toggle (their state follows the allowlist). */
146
146
  list: (cwd: string) => Promise<readonly SettingsExtension[]>;
147
+ /**
148
+ * Calls `onChange` when the extensions for `cwd` may have changed, wherever that happened (another
149
+ * window, an agent editing one, a reload). Returns its unsubscribe. Absent: the list is read again
150
+ * only after the section's own actions.
151
+ */
152
+ subscribe?: (cwd: string, onChange: () => void) => () => void;
147
153
  /** Installs one; `onProgress` gets the installer's lines. Resolves with its name. Absent: no install. */
148
154
  install?: (cwd: string, request: SettingsExtensionInstall, onProgress?: (line: string) => void) => Promise<{
149
155
  name: string;
@@ -171,7 +177,11 @@ export interface SettingsExtensionsHost {
171
177
  actionStatuses?: (cwd: string) => Promise<Record<string, SettingsExtensionActionStatus>>;
172
178
  /** Runs an action. Absent: no Run buttons. */
173
179
  runAction?: (cwd: string, extension: string, key: string) => Promise<SettingsExtensionActionResult>;
174
- /** Scaffolds a new extension. Absent: no create flow. */
180
+ /**
181
+ * Scaffolds a new extension. When `enabledExtensions` is set, the host adds a user one to it, so it
182
+ * loads at once. A project one stays out of that list (it is matched by name in every project), so it
183
+ * stays off until the user enables it. Absent: no create flow.
184
+ */
175
185
  create?: (request: SettingsExtensionCreate) => Promise<SettingsExtensionCreated>;
176
186
  }
177
187
  /** An action an extension declares (`registerConfigItem` type `'action'`); it runs on the host. */
@@ -266,6 +276,14 @@ export interface SettingsEnvironmentsHost {
266
276
  update?: (change: EnvironmentSettingsChange) => Promise<void>;
267
277
  /** Tests a kind's connection. Absent: no test button. */
268
278
  verify?: (kind: string) => Promise<EnvironmentVerifyResult>;
279
+ /** The values a kind's `listed` option can take (a sandbox's images). Absent: a free text field. */
280
+ fieldChoices?: (kind: string, key: string) => Promise<readonly EnvironmentFieldChoice[]>;
281
+ /** Every sandbox a kind's provider holds, each with its session (Settings › Environments › Manage). Absent: no Manage tab. */
282
+ sandboxes?: (kind: string) => Promise<readonly EnvironmentSandboxSummary[]>;
283
+ /** Pauses one of them. Absent: no Pause. */
284
+ pauseSandbox?: (kind: string, sandboxId: string) => Promise<void>;
285
+ /** Deletes one of them. Absent: no Delete. */
286
+ deleteSandbox?: (kind: string, sandboxId: string) => Promise<void>;
269
287
  }
270
288
  /** The host's log funnel. */
271
289
  export interface SettingsLogsHost {
@@ -142,7 +142,7 @@ function ClaudeImportDialog({ cwd, onClose, onBack, onImported, activeServerName
142
142
  title: l.claudeImportNone
143
143
  }),
144
144
  activeServerName && /* @__PURE__ */ jsx("p", {
145
- className: "m-0 mb-3 text-xs text-[var(--zg-text-muted)] zg-pretty",
145
+ className: "m-0 mb-3 text-xs text-[var(--zg-text-muted)]",
146
146
  "data-testid": "claude-import-host-note",
147
147
  children: l.claudeImportHostNote(activeServerName)
148
148
  }),
@@ -35,7 +35,7 @@ function EnabledListSection({ settingKey, hostName, className, style }) {
35
35
  className,
36
36
  style,
37
37
  children: /* @__PURE__ */ jsx(SettingsPanelBody, { children: /* @__PURE__ */ jsx("p", {
38
- className: "text-xs text-[var(--zg-text-muted)] px-1 m-0 zg-pretty",
38
+ className: "text-xs text-[var(--zg-text-muted)] px-1 m-0",
39
39
  "data-testid": "host-list-unset",
40
40
  children: l.enabledListUnset(l.enabledListOne(settingKey), noun, hostName)
41
41
  }) })
@@ -67,7 +67,7 @@ function EnabledListSection({ settingKey, hostName, className, style }) {
67
67
  })
68
68
  })]
69
69
  }) }), /* @__PURE__ */ jsx("p", {
70
- className: "text-xs text-[var(--zg-text-muted)] px-1 mt-3 mb-0 zg-pretty",
70
+ className: "text-xs text-[var(--zg-text-muted)] px-1 mt-3 mb-0",
71
71
  children: l.enabledListNote(noun)
72
72
  })] })
73
73
  });
@@ -4,8 +4,12 @@
4
4
  * OS sandbox, Worktree, any provider), drawn from its descriptors, so a new
5
5
  * provider shows up here with no change.
6
6
  *
7
- * The default picker on top, then a card per kind: icon, name, description,
8
- * status, on/off switch, and its options below it while it is on. Choice
7
+ * Two tabs once a kind lists its sandboxes and the host can read them: Setup
8
+ * and Manage. Setup has the default picker on top, then the kinds in two
9
+ * groups (on your machines, cloud sandboxes), a card each: icon, name,
10
+ * description, status, on/off switch, and its options below it while it is
11
+ * on. Manage is `SandboxManager` (`zidane-ui/git`) over the turned-on kinds
12
+ * that list their sandboxes. Choice
9
13
  * options with details or long labels stack as a radio list, short ones sit
10
14
  * in a segmented control.
11
15
  *
@@ -22,6 +26,8 @@ export declare function useEnvironmentsSectionLabels(): EnvironmentsSectionLabel
22
26
  export interface EnvironmentsSectionProps {
23
27
  /** The folder new sessions would start in (`null`: none; kinds are described without one). */
24
28
  cwd: string | null;
29
+ /** Opens a session (the app closes Settings): Manage's session names become buttons. Absent: plain text. */
30
+ onOpenSession?: (sessionId: string) => void;
25
31
  /** Extra classes on the root. */
26
32
  className?: string;
27
33
  /** Inline styles on the root. */
@@ -33,4 +39,4 @@ export interface EnvironmentsSectionProps {
33
39
  *
34
40
  * @param props - The folder, `className` and `style`.
35
41
  */
36
- export declare function EnvironmentsSection({ cwd, className, style }: EnvironmentsSectionProps): import("react").JSX.Element;
42
+ export declare function EnvironmentsSection({ cwd, onOpenSession, className, style }: EnvironmentsSectionProps): import("react").JSX.Element;