zidane-ui 9.2.2 → 9.2.3

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 (207) hide show
  1. package/dist/adapters/browser-keybindings-host.js +3 -1
  2. package/dist/adapters/server-settings-host.js +30 -3
  3. package/dist/adapters/server-settings-sections.js +23 -1
  4. package/dist/adapters/server-sidebar-host.d.ts +3 -1
  5. package/dist/adapters/server-sidebar-host.js +10 -1
  6. package/dist/app/ModalProvider.js +1 -1
  7. package/dist/approvals/ApprovalShell.js +1 -1
  8. package/dist/chat/DaemonOrb.d.ts +29 -1
  9. package/dist/chat/DaemonOrb.js +25 -12
  10. package/dist/chat/StatusDot.js +8 -2
  11. package/dist/chat/Transcript.js +11 -4
  12. package/dist/chat/headless/index.d.ts +3 -2
  13. package/dist/chat/headless/index.js +11 -10
  14. package/dist/chat/headless/labels.d.ts +13 -0
  15. package/dist/chat/headless/labels.js +12 -0
  16. package/dist/chat/headless/session-list.d.ts +10 -0
  17. package/dist/chat/headless/sidebar/directory.d.ts +8 -1
  18. package/dist/chat/headless/sidebar/directory.js +40 -4
  19. package/dist/chat/headless/sidebar/environment.d.ts +5 -2
  20. package/dist/chat/headless/sidebar/environment.js +11 -2
  21. package/dist/chat/headless/sidebar/host.d.ts +15 -0
  22. package/dist/chat/headless/sidebar/inbox.d.ts +12 -3
  23. package/dist/chat/headless/sidebar/inbox.js +18 -9
  24. package/dist/chat/headless/sidebar/index.d.ts +2 -2
  25. package/dist/chat/headless/sidebar/index.js +2 -2
  26. package/dist/chat/headless/sidebar/labels.d.ts +28 -2
  27. package/dist/chat/headless/sidebar/labels.js +16 -0
  28. package/dist/chat/headless/transcript/fold-actions.d.ts +8 -3
  29. package/dist/chat/headless/transcript/fold-actions.js +16 -0
  30. package/dist/chat/headless/transcript/fold.d.ts +2 -1
  31. package/dist/chat/headless/transcript/fold.js +22 -2
  32. package/dist/chat/headless/transcript/index.d.ts +2 -1
  33. package/dist/chat/headless/transcript/index.js +2 -1
  34. package/dist/chat/headless/transcript/rail.d.ts +93 -0
  35. package/dist/chat/headless/transcript/rail.js +148 -0
  36. package/dist/chat/headless/transcript/rows.d.ts +6 -0
  37. package/dist/chat/headless/transcript/run-failures.d.ts +4 -0
  38. package/dist/chat/headless/transcript/run-failures.js +29 -1
  39. package/dist/chat/headless/transcript-labels.d.ts +1 -0
  40. package/dist/chat/headless/turn-labels.d.ts +1 -0
  41. package/dist/chat/headless/turn-labels.js +2 -1
  42. package/dist/chat/index.d.ts +4 -3
  43. package/dist/chat/index.js +14 -13
  44. package/dist/chat/interactions/ElicitationCard.js +1 -1
  45. package/dist/chat/interactions/InteractionCard.js +1 -1
  46. package/dist/chat/interactions/PlanCard.js +3 -3
  47. package/dist/chat/interactions/QuestionField.js +4 -4
  48. package/dist/chat/interactions/QuestionForm.js +3 -3
  49. package/dist/chat/interactions/SecretInput.js +1 -1
  50. package/dist/chat/sidebar/ProjectIcon.d.ts +1 -1
  51. package/dist/chat/sidebar/ProjectIcon.js +1 -1
  52. package/dist/chat/sidebar/RowChips.d.ts +3 -2
  53. package/dist/chat/sidebar/RowChips.js +6 -3
  54. package/dist/chat/sidebar/SessionSidebar.js +13 -14
  55. package/dist/chat/sidebar/SidebarFrame.d.ts +2 -0
  56. package/dist/chat/sidebar/SidebarFrame.js +5 -2
  57. package/dist/chat/sidebar/SidebarSessionRow.d.ts +3 -1
  58. package/dist/chat/sidebar/SidebarSessionRow.js +3 -1
  59. package/dist/chat/sidebar/SpacesSection.d.ts +20 -1
  60. package/dist/chat/sidebar/SpacesSection.js +34 -13
  61. package/dist/chat/sidebar/index.d.ts +2 -2
  62. package/dist/chat/sidebar/session-menu.d.ts +11 -2
  63. package/dist/chat/sidebar/session-menu.js +50 -5
  64. package/dist/chat/sidebar/sidebar-live.js +1 -1
  65. package/dist/chat/sidebar/useInboxRows.js +43 -2
  66. package/dist/chat/sidebar/useInboxTriage.js +19 -14
  67. package/dist/chat/testing/fixture-sidebar-host.d.ts +7 -1
  68. package/dist/chat/testing/fixture-sidebar-host.js +12 -0
  69. package/dist/chat/testing/sidebar.contract.d.ts +6 -0
  70. package/dist/chat/testing/sidebar.contract.js +24 -0
  71. package/dist/chat/transcript/InteractionToolBody.js +1 -1
  72. package/dist/chat/transcript/SelectCursor.d.ts +11 -1
  73. package/dist/chat/transcript/SelectCursor.js +10 -5
  74. package/dist/chat/transcript/TranscriptRail.d.ts +86 -0
  75. package/dist/chat/transcript/TranscriptRail.js +421 -0
  76. package/dist/chat/transcript/TranscriptRow.js +5 -2
  77. package/dist/chat/transcript/actions.d.ts +6 -2
  78. package/dist/chat/transcript/fold.js +19 -1
  79. package/dist/chat/transcript/index.d.ts +3 -2
  80. package/dist/chat/transcript/index.js +3 -2
  81. package/dist/chat/transcript/notices.d.ts +23 -1
  82. package/dist/chat/transcript/notices.js +108 -27
  83. package/dist/chat/transcript/prose.js +1 -0
  84. package/dist/chat/transcript/receipt-parts.d.ts +22 -0
  85. package/dist/chat/transcript/receipt-parts.js +87 -0
  86. package/dist/chat/transcript/run-rows.js +3 -76
  87. package/dist/chat/transcript/script-input.d.ts +1 -1
  88. package/dist/chat/transcript/scroll-clamp.js +1 -1
  89. package/dist/chat/transcript/useSettledReveal.js +15 -3
  90. package/dist/chat/transcript/useStickToBottom.js +2 -1
  91. package/dist/components/ChoiceCards.js +1 -1
  92. package/dist/components/ConfirmDialog.js +1 -1
  93. package/dist/components/CopyValue.d.ts +33 -0
  94. package/dist/components/CopyValue.js +54 -0
  95. package/dist/components/Form.js +1 -1
  96. package/dist/components/HowItWorks.js +1 -1
  97. package/dist/components/Menu.js +1 -1
  98. package/dist/components/StepFrame.js +2 -2
  99. package/dist/components/SwatchPicker.js +1 -1
  100. package/dist/components/ToggleCard.js +1 -1
  101. package/dist/components/floating/HoverCard.js +2 -3
  102. package/dist/components/floating/hover-delay.d.ts +4 -0
  103. package/dist/components/floating/hover-delay.js +6 -0
  104. package/dist/core.css +14 -12
  105. package/dist/dist/index-De9AbmxS.d.ts +1 -0
  106. package/dist/dist/{index-Betz0OWq.d.ts → index-E1Z0aPmi.d.ts} +20 -2
  107. package/dist/dist/index.d.ts +5 -5
  108. package/dist/dist/sandbox-CSUihARm.d.ts +2 -0
  109. package/dist/dist/{timeout-CyU7HLyz.d.ts → timeout-CmTx6V9y.d.ts} +1 -0
  110. package/dist/extensions/ExtensionDialogHost.js +1 -1
  111. package/dist/files/TreeColumn.js +3 -1
  112. package/dist/files/headless/host.d.ts +2 -2
  113. package/dist/git/ImportRepoDialog.js +1 -1
  114. package/dist/git/MoveSessionDialog.js +2 -2
  115. package/dist/git/SandboxManager.d.ts +42 -0
  116. package/dist/git/SandboxManager.js +297 -0
  117. package/dist/git/SyncChip.js +1 -1
  118. package/dist/git/headless/index.d.ts +2 -1
  119. package/dist/git/headless/index.js +2 -1
  120. package/dist/git/headless/labels.d.ts +29 -0
  121. package/dist/git/headless/labels.js +34 -1
  122. package/dist/git/headless/sandboxes.d.ts +43 -0
  123. package/dist/git/headless/sandboxes.js +52 -0
  124. package/dist/git/index.d.ts +2 -1
  125. package/dist/git/index.js +2 -1
  126. package/dist/index.d.ts +2 -1
  127. package/dist/index.js +2 -1
  128. package/dist/keybindings/headless/catalog.d.ts +1 -1
  129. package/dist/keybindings/headless/catalog.js +12 -0
  130. package/dist/machines/HostsSection.d.ts +1 -1
  131. package/dist/machines/headless/labels.js +2 -2
  132. package/dist/motion/flip-list.js +3 -10
  133. package/dist/motion/presence.d.ts +10 -0
  134. package/dist/motion/presence.js +20 -1
  135. package/dist/motion/swap.d.ts +8 -2
  136. package/dist/motion/swap.js +5 -2
  137. package/dist/onboarding/conversation.js +27 -15
  138. package/dist/onboarding/demos/how-it-works.js +1 -1
  139. package/dist/onboarding/skills/parts.js +4 -4
  140. package/dist/onboarding/sources/SourceBrowser.js +1 -1
  141. package/dist/onboarding/steps/ReadyStep.js +1 -1
  142. package/dist/onboarding/steps/connect/KeyForm.js +1 -1
  143. package/dist/palette/headless/app-sources.js +20 -0
  144. package/dist/palette/headless/labels.js +2 -0
  145. package/dist/session/PlanTracker.js +3 -3
  146. package/dist/session/SecretsPanel.js +1 -1
  147. package/dist/session/SessionHeader.d.ts +18 -6
  148. package/dist/session/SessionHeader.js +67 -12
  149. package/dist/session/SessionPlaceMenu.d.ts +35 -0
  150. package/dist/session/SessionPlaceMenu.js +299 -0
  151. package/dist/session/SessionShell.js +1 -1
  152. package/dist/session/TurnDetailsDialog.js +1 -1
  153. package/dist/session/headless/index.d.ts +2 -1
  154. package/dist/session/headless/index.js +2 -1
  155. package/dist/session/headless/labels.d.ts +73 -0
  156. package/dist/session/headless/labels.js +73 -0
  157. package/dist/session/headless/place.d.ts +49 -0
  158. package/dist/session/headless/place.js +57 -0
  159. package/dist/session/index.d.ts +2 -1
  160. package/dist/session/index.js +2 -1
  161. package/dist/settings/ConversationPresetsCard.js +1 -1
  162. package/dist/settings/SettingCard.js +2 -2
  163. package/dist/settings/SettingsRowsPage.js +1 -1
  164. package/dist/settings/headless/fixture-sections.js +7 -0
  165. package/dist/settings/headless/labels.d.ts +1 -1
  166. package/dist/settings/headless/labels.js +1 -1
  167. package/dist/settings/headless/layout.d.ts +4 -4
  168. package/dist/settings/headless/layout.js +1 -1
  169. package/dist/settings/headless/search.d.ts +2 -2
  170. package/dist/settings/headless/sections-host.d.ts +20 -2
  171. package/dist/settings/sections/claude-import/ClaudeImportDialog.js +1 -1
  172. package/dist/settings/sections/enabled-list/EnabledListSection.js +2 -2
  173. package/dist/settings/sections/environments/EnvironmentsSection.d.ts +9 -3
  174. package/dist/settings/sections/environments/EnvironmentsSection.js +292 -52
  175. package/dist/settings/sections/environments/labels.d.ts +15 -0
  176. package/dist/settings/sections/environments/labels.js +18 -3
  177. package/dist/settings/sections/extensions/ChangeOriginDialog.js +1 -1
  178. package/dist/settings/sections/extensions/ExtensionSourceBrowser.js +1 -1
  179. package/dist/settings/sections/extensions/ExtensionsSection.d.ts +3 -2
  180. package/dist/settings/sections/extensions/ExtensionsSection.js +9 -3
  181. package/dist/settings/sections/host-catalog/HostCatalogSection.js +15 -5
  182. package/dist/settings/sections/keybindings/labels.d.ts +2 -0
  183. package/dist/settings/sections/keybindings/labels.js +2 -0
  184. package/dist/settings/sections/keybindings/rows.js +8 -0
  185. package/dist/settings/sections/models/SpacesDefaultsSection.d.ts +7 -3
  186. package/dist/settings/sections/models/SpacesDefaultsSection.js +11 -5
  187. package/dist/settings/sections/skills/SkillGroups.js +1 -1
  188. package/dist/settings/server-app.d.ts +4 -2
  189. package/dist/settings/server-app.js +7 -3
  190. package/dist/settings/testing/sections.contract.d.ts +7 -1
  191. package/dist/settings/testing/sections.contract.js +37 -0
  192. package/dist/styles.css +212 -19
  193. package/dist/terminal/TerminalDrawer.js +3 -1
  194. package/dist/workspace/SidePanel.js +3 -1
  195. package/package.json +2 -2
  196. package/src/styles/base.css +13 -0
  197. package/src/styles/chat.css +30 -0
  198. package/src/styles/components.css +0 -10
  199. package/src/styles/files.css +5 -0
  200. package/src/styles/sidebar.css +29 -7
  201. package/src/styles/terminal.css +6 -0
  202. package/src/styles/tokens.css +5 -0
  203. package/src/styles/transcript.css +107 -0
  204. package/src/styles/workspace.css +6 -0
  205. package/dist/dist/index-QcFzZlao.d.ts +0 -1
  206. package/dist/dist/sandbox-D0zsW8I1.d.ts +0 -2
  207. /package/dist/dist/{types-_Dtoq_No.d.ts → execution-failure-SREfl-EZ.d.ts} +0 -0
@@ -10,7 +10,7 @@
10
10
  */
11
11
  const ESTIMATE = "contain-intrinsic-size";
12
12
  const INERT_STYLE = /* @__PURE__ */ new Set([ESTIMATE]);
13
- /** Classes that draw nothing: the reply still arriving (`.zg-streaming`). */
13
+ /** Classes that cannot shorten the content: text still arriving (`.zg-streaming`). Dropping it turns on `text-wrap-style: pretty`, which never needs fewer lines than plain wrapping. */
14
14
  const INERT_CLASSES = /* @__PURE__ */ new Set(["zg-streaming"]);
15
15
  /** A style attribute's declarations, without the inert ones, in a comparable form. */
16
16
  function layoutStyle(style) {
@@ -10,7 +10,9 @@ import { useLayoutEffect, useState } from "react";
10
10
  * visibly jumps while it loads.
11
11
  *
12
12
  * Veiled from the frame `ready` (the transcript hydrated) holds for `key`,
13
- * before paint. Revealed once no lookup has been in flight for two frames
13
+ * before paint, only when it loads after the thread opened: a thread already
14
+ * loaded when it opens (switching back to it) shows at once. Its chips are
15
+ * known, and hiding it to fade it back in is the blink this exists to avoid. Revealed once no lookup has been in flight for two frames
14
16
  * (a lookup's answer re-renders rows, which may start the next one), or at
15
17
  * `maxMs`, so a slow server (a Linear MCP call) never holds a thread back
16
18
  * for long: what lands later still moves, but that is the rare cold read;
@@ -37,8 +39,17 @@ async function settled(deadline) {
37
39
  */
38
40
  function useSettledReveal(key, ready, maxMs = REVEAL_MAX_MS) {
39
41
  const [veiledFor, setVeiledFor] = useState(null);
42
+ const [opened, setOpened] = useState({
43
+ key,
44
+ loaded: ready
45
+ });
46
+ if (opened.key !== key) setOpened({
47
+ key,
48
+ loaded: ready
49
+ });
50
+ const loadedAtOpen = opened.key === key ? opened.loaded : ready;
40
51
  useLayoutEffect(() => {
41
- if (!key || !ready) return void 0;
52
+ if (!key || !ready || loadedAtOpen) return void 0;
42
53
  setVeiledFor(key);
43
54
  let live = true;
44
55
  settled(performance.now() + maxMs).then(() => {
@@ -50,7 +61,8 @@ function useSettledReveal(key, ready, maxMs = REVEAL_MAX_MS) {
50
61
  }, [
51
62
  key,
52
63
  ready,
53
- maxMs
64
+ maxMs,
65
+ loadedAtOpen
54
66
  ]);
55
67
  return key !== null && veiledFor === key;
56
68
  }
@@ -1,4 +1,5 @@
1
1
  import { currentMotionTransition } from "../../motion/springs.js";
2
+ import { dataRowSelector } from "../headless/transcript/rail.js";
2
3
  import { mountRowNow } from "./LazyRow.js";
3
4
  import { mayShrink } from "./scroll-clamp.js";
4
5
  import { viewAbove } from "./view-anchor.js";
@@ -358,7 +359,7 @@ function useStickToBottom(scrollRef, { paused = false, rowSelector = ".zg-cv-row
358
359
  settle();
359
360
  };
360
361
  restoreRows.current = (rows) => {
361
- const find = (id) => el.querySelector(`[data-row="${id.replace(/["\\]/g, (c) => `\\${c}`)}"]`);
362
+ const find = (id) => el.querySelector(dataRowSelector(id));
362
363
  const outer = rows.length > 0 ? find(rows[rows.length - 1].id) : null;
363
364
  if (outer) mountRowNow(outer);
364
365
  for (const [i, place] of rows.entries()) {
@@ -92,7 +92,7 @@ function ChoiceCards({ value, onChange, options, columns = 3, numbered = false,
92
92
  }),
93
93
  o.description && /* @__PURE__ */ jsx("span", {
94
94
  id: `${id}-${i}-description`,
95
- className: "text-zg-label text-[var(--zg-text-muted)] text-pretty",
95
+ className: "text-zg-label text-[var(--zg-text-muted)]",
96
96
  children: o.description
97
97
  })
98
98
  ]
@@ -47,7 +47,7 @@ function ConfirmDialog({ title, message, confirmLabel, cancelLabel, destructive
47
47
  children: title
48
48
  }), message && /* @__PURE__ */ jsx("div", {
49
49
  id: messageId,
50
- className: "mt-1.5 text-zg-ui leading-relaxed text-[var(--zg-text-muted)] zg-pretty",
50
+ className: "mt-1.5 text-zg-ui leading-relaxed text-[var(--zg-text-muted)]",
51
51
  children: message
52
52
  })]
53
53
  }), /* @__PURE__ */ jsxs("footer", {
@@ -0,0 +1,33 @@
1
+ /**
2
+ * A machine value that copies itself on click (an id, a branch): its glyph and the value in the mono voice,
3
+ * then a copy glyph that shows on hover or focus and turns into a check for a moment after a copy. The
4
+ * tooltip says what a click copies, then that it did.
5
+ */
6
+ import { CSSProperties } from "react";
7
+ /** Props for {@link CopyValue}. */
8
+ export interface CopyValueProps {
9
+ /** The value shown and copied. */
10
+ text: string;
11
+ /** What a click does ("Copy branch"): the tooltip, and the accessible name with the value. */
12
+ label: string;
13
+ /** The tooltip once copied ("Copied"). */
14
+ copiedLabel: string;
15
+ /** A glyph before the value (`i-ph-git-branch`). */
16
+ icon?: string;
17
+ /**
18
+ * When the copy glyph shows: on hover or focus, or always, faint (in a badge, where its hidden room would
19
+ * read as a gap).
20
+ * @default 'hover'
21
+ */
22
+ glyph?: 'hover' | 'always';
23
+ /** Extra classes on the button. */
24
+ className?: string;
25
+ /** Inline styles on the button. */
26
+ style?: CSSProperties;
27
+ }
28
+ /**
29
+ * Renders the value as a button that copies it. A refused clipboard write changes nothing.
30
+ *
31
+ * @param props - {@link CopyValueProps}.
32
+ */
33
+ export declare function CopyValue({ text, label, copiedLabel, icon, glyph, className, style }: CopyValueProps): import("react").JSX.Element;
@@ -0,0 +1,54 @@
1
+ import { SwapIcon } from "../motion/SwapIcon.js";
2
+ import { useTooltip } from "./Tooltip.js";
3
+ import { useEffect, useState } from "react";
4
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
5
+ // src/components/CopyValue.tsx
6
+ const FEEDBACK_MS = 1200;
7
+ /**
8
+ * Renders the value as a button that copies it. A refused clipboard write changes nothing.
9
+ *
10
+ * @param props - {@link CopyValueProps}.
11
+ */
12
+ function CopyValue({ text, label, copiedLabel, icon, glyph = "hover", className = "", style }) {
13
+ const [copied, setCopied] = useState(false);
14
+ const tip = useTooltip(copied ? copiedLabel : label);
15
+ useEffect(() => {
16
+ if (!copied) return void 0;
17
+ const timer = setTimeout(setCopied, FEEDBACK_MS, false);
18
+ return () => clearTimeout(timer);
19
+ }, [copied]);
20
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("button", {
21
+ ...tip.anchorProps,
22
+ type: "button",
23
+ "aria-label": `${label}: ${text}`,
24
+ className: `group/copy flex max-w-full items-center gap-1 min-w-0 p-0 border-0 bg-transparent cursor-pointer text-[var(--zg-text-muted)] hover:text-[var(--zg-text)] zg-focus-ring rounded-zg-sm ${className}`.trimEnd(),
25
+ style,
26
+ onClick: (event) => {
27
+ event.stopPropagation();
28
+ navigator.clipboard.writeText(text).then(() => setCopied(true)).catch(() => void 0);
29
+ },
30
+ children: [
31
+ icon && /* @__PURE__ */ jsx("span", {
32
+ "aria-hidden": true,
33
+ className: `${icon} text-zg-meta shrink-0`
34
+ }),
35
+ /* @__PURE__ */ jsx("span", {
36
+ dir: "auto",
37
+ className: "zg-meta truncate",
38
+ children: text
39
+ }),
40
+ /* @__PURE__ */ jsx("span", {
41
+ className: `inline-flex shrink-0 transition-opacity duration-150 ${copied ? "opacity-100" : glyph === "always" ? "opacity-40 group-hover/copy:opacity-80" : "opacity-0 group-hover/copy:opacity-60 group-focus-visible/copy:opacity-60"}`,
42
+ children: /* @__PURE__ */ jsx(SwapIcon, {
43
+ icons: {
44
+ copy: "i-ph-copy",
45
+ done: "i-ph-check text-zg-success"
46
+ },
47
+ current: copied ? "done" : "copy",
48
+ className: "text-zg-meta"
49
+ })
50
+ })
51
+ ]
52
+ }), tip.tip] });
53
+ }
54
+ export { CopyValue };
@@ -103,7 +103,7 @@ function RowText({ label, description, truncate = true, className, style }) {
103
103
  className: "text-sm text-[var(--zg-text)]",
104
104
  children: label
105
105
  }), description && /* @__PURE__ */ jsx("div", {
106
- className: `text-xs text-[var(--zg-text-muted)] ${truncate ? "truncate" : "zg-pretty"}`,
106
+ className: `text-xs text-[var(--zg-text-muted)] ${truncate ? "truncate" : ""}`,
107
107
  children: description
108
108
  })]
109
109
  });
@@ -75,7 +75,7 @@ function StepText({ number, step, ring }) {
75
75
  className: "zg-how-step-title text-zg-ui",
76
76
  children: step.title
77
77
  }), step.detail && /* @__PURE__ */ jsx("span", {
78
- className: "text-zg-label text-[var(--zg-text-muted)] text-pretty",
78
+ className: "text-zg-label text-[var(--zg-text-muted)]",
79
79
  children: step.detail
80
80
  })]
81
81
  })] });
@@ -218,7 +218,7 @@ function MenuNote({ icon, children, className = "", style }) {
218
218
  "aria-hidden": true,
219
219
  className: `${icon} text-zg-label shrink-0 mt-px`
220
220
  }), /* @__PURE__ */ jsx("span", {
221
- className: "min-w-0 zg-pretty",
221
+ className: "min-w-0",
222
222
  children
223
223
  })]
224
224
  });
@@ -29,7 +29,7 @@ function StepFrame({ eyebrow, title, lede, aside, footer, className = "", childr
29
29
  children: title
30
30
  }),
31
31
  lede && /* @__PURE__ */ jsx("p", {
32
- className: "m-0 text-zg-ui text-[var(--zg-text-muted)] text-pretty",
32
+ className: "m-0 text-zg-ui text-[var(--zg-text-muted)]",
33
33
  children: lede
34
34
  })
35
35
  ]
@@ -78,7 +78,7 @@ function StepActions({ onBack, onSkip, skipLabel, onContinue, continueLabel, con
78
78
  className: "ml-auto flex items-center gap-2 min-w-0",
79
79
  children: [
80
80
  note && /* @__PURE__ */ jsx("span", {
81
- className: "min-w-0 text-right text-zg-label text-[var(--zg-text-muted)] text-pretty",
81
+ className: "min-w-0 text-right text-zg-label text-[var(--zg-text-muted)]",
82
82
  children: note
83
83
  }),
84
84
  onSkip && /* @__PURE__ */ jsx("button", {
@@ -72,7 +72,7 @@ function SwatchPicker({ value, onChange, options, ariaLabel, shape = "dot", colu
72
72
  children: caption ? caption(named) : named.label
73
73
  }),
74
74
  note && /* @__PURE__ */ jsx("p", {
75
- className: "m-0 -mt-1.5 px-1 text-zg-label text-[var(--zg-text-muted)] text-pretty",
75
+ className: "m-0 -mt-1.5 px-1 text-zg-label text-[var(--zg-text-muted)]",
76
76
  children: note
77
77
  })
78
78
  ]
@@ -30,7 +30,7 @@ function ToggleCard({ title, description, checked, onChange, badges, icon, lead,
30
30
  })]
31
31
  }), description && /* @__PURE__ */ jsx("span", {
32
32
  id: `${id}-description`,
33
- className: `${asRow ? "text-xs" : "text-zg-label"} text-[var(--zg-text-muted)] text-pretty`,
33
+ className: `${asRow ? "text-xs" : "text-zg-label"} text-[var(--zg-text-muted)]`,
34
34
  children: description
35
35
  })]
36
36
  }),
@@ -1,9 +1,8 @@
1
1
  import { FloatingSurface } from "./FloatingSurface.js";
2
+ import "./hover-delay.js";
2
3
  import { useCallback, useEffect, useRef, useState } from "react";
3
4
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
4
5
  // src/components/floating/HoverCard.tsx
5
- const OPEN_MS = 250;
6
- const CLOSE_MS = 150;
7
6
  /**
8
7
  * Renders a trigger and a card that opens while the trigger is hovered or focused. The card
9
8
  * opens after 250 ms, so sweeping the pointer across a list opens nothing, and stays open
@@ -19,7 +18,7 @@ function HoverCard({ trigger, children, side = "right", align = "start", width,
19
18
  const timer = useRef(void 0);
20
19
  const schedule = useCallback((next) => {
21
20
  window.clearTimeout(timer.current);
22
- timer.current = window.setTimeout(setOpen, next ? OPEN_MS : CLOSE_MS, next);
21
+ timer.current = window.setTimeout(setOpen, next ? 250 : 150, next);
23
22
  }, []);
24
23
  const stay = useCallback(() => window.clearTimeout(timer.current), []);
25
24
  useEffect(() => () => window.clearTimeout(timer.current), []);
@@ -0,0 +1,4 @@
1
+ /** The hover card's intent delay: sweeping the pointer across a list opens nothing. */
2
+ export declare const HOVER_CARD_OPEN_MS = 250;
3
+ /** The hover card's close delay once the pointer and focus have left it. */
4
+ export declare const HOVER_CARD_CLOSE_MS = 150;
@@ -0,0 +1,6 @@
1
+ // src/components/floating/hover-delay.ts
2
+ /** The hover card's intent delay: sweeping the pointer across a list opens nothing. */
3
+ const HOVER_CARD_OPEN_MS = 250;
4
+ /** The hover card's close delay once the pointer and focus have left it. */
5
+ const HOVER_CARD_CLOSE_MS = 150;
6
+ export { HOVER_CARD_CLOSE_MS, HOVER_CARD_OPEN_MS };
package/dist/core.css CHANGED
@@ -21,11 +21,13 @@
21
21
  .i-ph-circle-half-fill{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24M40 128a88.1 88.1 0 0 1 88-88v176a88.1 88.1 0 0 1-88-88'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
22
22
  .i-ph-circle-notch{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M232 128a104 104 0 0 1-208 0c0-41 23.81-78.36 60.66-95.27a8 8 0 0 1 6.68 14.54C60.15 61.59 40 93.27 40 128a88 88 0 0 0 176 0c0-34.73-20.15-66.41-51.34-80.73a8 8 0 0 1 6.68-14.54C208.19 49.64 232 87 232 128'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
23
23
  .i-ph-clipboard{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M200 32h-36.26a47.92 47.92 0 0 0-71.48 0H56a16 16 0 0 0-16 16v168a16 16 0 0 0 16 16h144a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16m-72 0a32 32 0 0 1 32 32H96a32 32 0 0 1 32-32m72 184H56V48h26.75A47.9 47.9 0 0 0 80 64v8a8 8 0 0 0 8 8h80a8 8 0 0 0 8-8v-8a47.9 47.9 0 0 0-2.75-16H200Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
24
+ .i-ph-copy{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M216 32H88a8 8 0 0 0-8 8v40H40a8 8 0 0 0-8 8v128a8 8 0 0 0 8 8h128a8 8 0 0 0 8-8v-40h40a8 8 0 0 0 8-8V40a8 8 0 0 0-8-8m-56 176H48V96h112Zm48-48h-32V88a8 8 0 0 0-8-8H96V48h112Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
24
25
  .i-ph-dot-outline{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M128 96a32 32 0 1 0 32 32a32 32 0 0 0-32-32m0 48a16 16 0 1 1 16-16a16 16 0 0 1-16 16'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
25
26
  .i-ph-dots-three-bold{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M144 128a16 16 0 1 1-16-16a16 16 0 0 1 16 16m-84-16a16 16 0 1 0 16 16a16 16 0 0 0-16-16m136 0a16 16 0 1 0 16 16a16 16 0 0 0-16-16'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
26
27
  .i-ph-file-code{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M181.66 146.34a8 8 0 0 1 0 11.32l-24 24a8 8 0 0 1-11.32-11.32L164.69 152l-18.35-18.34a8 8 0 0 1 11.32-11.32Zm-72-24a8 8 0 0 0-11.32 0l-24 24a8 8 0 0 0 0 11.32l24 24a8 8 0 0 0 11.32-11.32L91.31 152l18.35-18.34a8 8 0 0 0 0-11.32M216 88v128a16 16 0 0 1-16 16H56a16 16 0 0 1-16-16V40a16 16 0 0 1 16-16h96a8 8 0 0 1 5.66 2.34l56 56A8 8 0 0 1 216 88m-56-8h28.69L160 51.31Zm40 136V96h-48a8 8 0 0 1-8-8V40H56v176z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
27
28
  .i-ph-files{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m213.66 66.34l-40-40A8 8 0 0 0 168 24H88a16 16 0 0 0-16 16v16H56a16 16 0 0 0-16 16v144a16 16 0 0 0 16 16h112a16 16 0 0 0 16-16v-16h16a16 16 0 0 0 16-16V72a8 8 0 0 0-2.34-5.66M168 216H56V72h76.69L168 107.31zm32-32h-16v-80a8 8 0 0 0-2.34-5.66l-40-40A8 8 0 0 0 136 56H88V40h76.69L200 75.31Zm-56-32a8 8 0 0 1-8 8H88a8 8 0 0 1 0-16h48a8 8 0 0 1 8 8m0 32a8 8 0 0 1-8 8H88a8 8 0 0 1 0-16h48a8 8 0 0 1 8 8'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
28
29
  .i-ph-funnel-simple{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M200 136a8 8 0 0 1-8 8H64a8 8 0 0 1 0-16h128a8 8 0 0 1 8 8m32-56H24a8 8 0 0 0 0 16h208a8 8 0 0 0 0-16m-80 96h-48a8 8 0 0 0 0 16h48a8 8 0 0 0 0-16'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
30
+ .i-ph-git-branch{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M232 64a32 32 0 1 0-40 31v17a8 8 0 0 1-8 8H96a23.8 23.8 0 0 0-8 1.38V95a32 32 0 1 0-16 0v66a32 32 0 1 0 16 0v-17a8 8 0 0 1 8-8h88a24 24 0 0 0 24-24V95a32.06 32.06 0 0 0 24-31M64 64a16 16 0 1 1 16 16a16 16 0 0 1-16-16m32 128a16 16 0 1 1-16-16a16 16 0 0 1 16 16M200 80a16 16 0 1 1 16-16a16 16 0 0 1-16 16'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
29
31
  .i-ph-globe-simple{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M128 24a104 104 0 1 0 104 104A104.12 104.12 0 0 0 128 24m87.62 96h-39.83c-1.79-36.51-15.85-62.33-27.38-77.6a88.19 88.19 0 0 1 67.22 77.6ZM96.23 136h63.54c-2.31 41.61-22.23 67.11-31.77 77c-9.55-9.9-29.46-35.4-31.77-77m0-16c2.31-41.61 22.23-67.11 31.77-77c9.55 9.93 29.46 35.43 31.77 77Zm11.36-77.6C96.06 57.67 82 83.49 80.21 120H40.37a88.19 88.19 0 0 1 67.22-77.6M40.37 136h39.84c1.82 36.51 15.85 62.33 27.38 77.6A88.19 88.19 0 0 1 40.37 136m108 77.6c11.53-15.27 25.56-41.09 27.38-77.6h39.84a88.19 88.19 0 0 1-67.18 77.6Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
30
32
  .i-ph-info{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m0 192a88 88 0 1 1 88-88a88.1 88.1 0 0 1-88 88m16-40a8 8 0 0 1-8 8a16 16 0 0 1-16-16v-40a8 8 0 0 1 0-16a16 16 0 0 1 16 16v40a8 8 0 0 1 8 8m-32-92a12 12 0 1 1 12 12a12 12 0 0 1-12-12'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
31
33
  .i-ph-lock-simple{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M208 80h-32V56a48 48 0 0 0-96 0v24H48a16 16 0 0 0-16 16v112a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V96a16 16 0 0 0-16-16M96 56a32 32 0 0 1 64 0v24H96Zm112 152H48V96h160z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
@@ -397,7 +399,6 @@
397
399
  .text-left{text-align:left;}
398
400
  .text-right{text-align:right;}
399
401
  .text-balance{text-wrap:balance;}
400
- .text-pretty{text-wrap:pretty;}
401
402
  .align-middle{vertical-align:middle;}
402
403
  .text-\[10px\]{font-size:10px;}
403
404
  .text-\[15px\]{font-size:15px;}
@@ -461,8 +462,11 @@
461
462
  .underline-offset-2{text-underline-offset:2px;}
462
463
  .tab{-moz-tab-size:4;-o-tab-size:4;tab-size:4;}
463
464
  .opacity-0{opacity:0;}
464
- .opacity-60{opacity:0.6;}
465
+ .opacity-100,
465
466
  .group:focus-within .group-focus-within\:opacity-100{opacity:1;}
467
+ .opacity-40{opacity:0.4;}
468
+ .opacity-60,
469
+ .group\/copy:focus-visible .group-focus-visible\/copy\:opacity-60{opacity:0.6;}
466
470
  .shadow{--un-shadow:var(--un-shadow-inset) 0 1px 3px 0 var(--un-shadow-color, rgb(0 0 0 / 0.1)),var(--un-shadow-inset) 0 1px 2px -1px var(--un-shadow-color, rgb(0 0 0 / 0.1));box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);}
467
471
  .shadow-\[inset_-1px_0_0_var\(--zg-hairline\)\]{--un-shadow:inset -1px 0 0 var(--un-shadow-color, var(--zg-hairline));box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);}
468
472
  .shadow-\[inset_0_-1px_0_var\(--zg-hairline\)\]{--un-shadow:inset 0 -1px 0 var(--un-shadow-color, var(--zg-hairline));box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);}
@@ -488,6 +492,7 @@
488
492
  .transition-\[background-color\,box-shadow\]{transition-property:background-color,box-shadow;transition-timing-function:var(--zg-motion-hover-ease);transition-duration:var(--zg-motion-hover-duration);}
489
493
  .transition-\[transform\,background-color\]{transition-property:transform,background-color;transition-timing-function:var(--zg-motion-hover-ease);transition-duration:var(--zg-motion-hover-duration);}
490
494
  .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:var(--zg-motion-hover-ease);transition-duration:var(--zg-motion-hover-duration);}
495
+ .transition-opacity{transition-property:opacity;transition-timing-function:var(--zg-motion-hover-ease);transition-duration:var(--zg-motion-hover-duration);}
491
496
  .duration-150{transition-duration:150ms;}
492
497
  .duration-pop{transition-duration:var(--zg-motion-pop-duration);}
493
498
  .duration-snap{transition-duration:var(--zg-motion-snap-duration);}
@@ -518,6 +523,8 @@
518
523
  .hover\:\!text-zg-danger:hover{color:var(--zg-danger) !important;}
519
524
  .hover\:text-\[var\(--zg-text\)\]:hover{color:var(--zg-text);}
520
525
  .group:hover .group-hover\:opacity-100{opacity:1;}
526
+ .group\/copy:hover .group-hover\/copy\:opacity-60{opacity:0.6;}
527
+ .group\/copy:hover .group-hover\/copy\:opacity-80{opacity:0.8;}
521
528
  .hover\:before\:bg-zg-danger\/10:hover::before{background-color:color-mix(in srgb, var(--zg-danger) 10%, transparent);}
522
529
  }
523
530
  @media (min-width: 640px){
@@ -676,6 +683,11 @@
676
683
  --zg-radius-xl: 16px;
677
684
  --zg-radius-2xl: 24px;
678
685
 
686
+ /* The transcript's and the composer's columns pad their sides by this
687
+ (`.zg-transcript-column`), so both keep one edge and the prompt rail
688
+ (`TranscriptRail`) has room beside the text whether it shows or not. */
689
+ --zg-transcript-gutter: 12px;
690
+
679
691
  /* Interface type scale: every size outside the transcript and composer
680
692
  bodies comes from it, never ad hoc (scale-guard.test.ts). In Uno:
681
693
  `text-zg-badge` … `text-zg-body` (font-size only, line-height untouched).
@@ -2560,16 +2572,6 @@ html[data-motion='reduced'] .zg-attention::after {
2560
2572
  0 0 0 2px var(--zg-bg),
2561
2573
  0 0 0 4px var(--zg-ring);
2562
2574
  }
2563
- /* `text-wrap: balance` keeps short headings on roughly equal-width lines
2564
- (no orphan words). Applied via class to opt-in surfaces — modals,
2565
- session titles — so body copy keeps its default flow. */
2566
- .zg-balance {
2567
- text-wrap: balance;
2568
- }
2569
- /* `text-wrap: pretty` avoids single-word orphan lines in body copy. */
2570
- .zg-pretty {
2571
- text-wrap: pretty;
2572
- }
2573
2575
  /* Segment spinner (`SegmentSpinner.tsx`) — GUI twin of the TUI `▀▁▁▁▁` bar.
2574
2576
  Each pill is lit for the first half of an 800 ms cycle and dim for the
2575
2577
  rest; per-pill `animation-delay` (i × 80 ms) produces the fill → drain
@@ -0,0 +1 @@
1
+ import "./execution-failure-SREfl-EZ.js";
@@ -1,4 +1,5 @@
1
- import "./types-_Dtoq_No.js";
1
+ import "./execution-failure-SREfl-EZ.js";
2
+ import "./timeout-CmTx6V9y.js";
2
3
  import "./oauth-callback-page-CV9oTMGy.js";
3
4
  import "../node_modules/.bun/hookable@6.1.2/node_modules/hookable/dist/index.js";
4
5
  import "../node_modules/.bun/@earendil-works_pi-ai@1.5.2_46b80fae64c053ae/node_modules/@earendil-works/pi-ai/dist/index.js";
@@ -329,6 +330,8 @@ interface Space$1 {
329
330
  modelId?: string;
330
331
  /** The stored account of {@link providerKey} the default runs on (credential id); absent = its active account. */
331
332
  account?: string;
333
+ /** The label of {@link account}: another device runs the default on its account of that label (`resolveSpaceAccount`). */
334
+ accountLabel?: string;
332
335
  /** Fallback chain seeded with the default model (`provider`/`model` pairs). */
333
336
  fallbacks?: {
334
337
  providerKey: string;
@@ -690,6 +693,13 @@ interface Settings {
690
693
  * normalized (`normalizeSpaces`); ignored while {@link spaces} is off.
691
694
  */
692
695
  spaceList: Space$1[];
696
+ /**
697
+ * Where this computer's spaces come from: `''` or `'local'` for its own
698
+ * list, else a saved server's id (its home server). With a home server,
699
+ * {@link spaces} and {@link spaceList} mirror the server's (`spaces.get`)
700
+ * and edits go to it one space at a time (`./spaces-home`). Window-only.
701
+ */
702
+ spacesHome: string;
693
703
  /**
694
704
  * Auto-resume the previously-active session on launch. Default: on.
695
705
  * When off, the TUI always lands on the sessions list (or a fresh
@@ -1206,6 +1216,14 @@ interface Settings {
1206
1216
  * window until it reloads. Default: on.
1207
1217
  */
1208
1218
  preserveScroll: boolean;
1219
+ /**
1220
+ * The desktop and web apps show the prompt rail beside a conversation: one
1221
+ * tick per message you sent, the one in view raised. Hovering a tick
1222
+ * previews the message and its answer; a click (or the previous / next
1223
+ * prompt keys) scrolls to it. The column keeps room for it either way, so
1224
+ * turning it on moves nothing. Default: off.
1225
+ */
1226
+ transcriptRail: boolean;
1209
1227
  /**
1210
1228
  * The desktop and web apps draw a reply's ```mermaid fences as diagrams
1211
1229
  * (Pele, themed with the app's colors and fonts), each with a toggle to
@@ -1661,4 +1679,4 @@ interface Settings {
1661
1679
  */
1662
1680
  activeIcon: string;
1663
1681
  }
1664
- export { TaskOutcomeCounts as $j, SessionQueryAny as AI, SessionFieldPath as CI, ScriptOutputLine as DA, SessionGroupOrder as EI, ViewsMcp as EO, SpaceIcon as FO, OutputStream as GA, SessionSort as II, AnsiColor as JA, McpJobView as LM, ScriptProgress as OA, SessionQuery as OI, SessionQueryNot as PI, Space$1 as PO, TaskOutcome as Qj, McpJobViewStatus as RM, ScriptLineProgress as SA, SessionFieldName as SI, SessionGroupBy as TI, TranscriptDensity as TO, SecretTtl as UL, OutputLine as WA, AnsiSpan as XA, AnsiStyle as ZA, QueryValue as bI, Settings as bO, InteractionMode as cO, EnvironmentConfigValue as fN, OpenInTarget as fO, NewChatPlace as ij, SessionQueryAll as kI, MessageDelivery as lO, ApprovalMode as nO, DurabilityMode as pF, EnvironmentSettings as qM, EditDiffDisplay as rO, FacetPath as vI, ToolCallDisplay as wO, ScriptCallStatus as xA, ThinkingLevel as xH, SessionCondition as xI, SidebarLayout as xO, QueryBound as yI };
1682
+ export { AnsiColor as $A, SecretTtl as $L, QueryValue as AI, SessionQueryAny as BI, DurabilityMode as CF, ScriptLineProgress as DA, ScriptCallStatus as EA, ViewsMcp as EO, SessionGroupBy as FI, SpaceIcon as FO, McpJobView as HM, SessionGroupOrder as II, SessionSort as KI, ScriptOutputLine as MA, SessionFieldName as MI, ScriptProgress as NA, SessionFieldPath as NI, FacetPath as OI, Space$1 as PO, EnvironmentSettings as QM, SessionQuery as RI, TranscriptDensity as TO, McpJobViewStatus as UM, SessionQueryNot as WI, OutputStream as XA, OutputLine as YA, EnvironmentConfigValue as _N, Settings as bO, InteractionMode as cO, OpenInTarget as fO, TaskOutcomeCounts as iM, ThinkingLevel as jH, SessionCondition as jI, QueryBound as kI, MessageDelivery as lO, NewChatPlace as lj, ApprovalMode as nO, AnsiStyle as nj, TaskOutcome as rM, EditDiffDisplay as rO, AnsiSpan as tj, ToolCallDisplay as wO, SidebarLayout as xO, SessionQueryAll as zI };
@@ -1,6 +1,6 @@
1
- import { d as AuthFailureKind, u as AuthFailure } from "./timeout-CyU7HLyz.js";
2
- import { AI as SessionQueryAny, CI as SessionFieldPath, EI as SessionGroupOrder, II as SessionSort, OI as SessionQuery, PI as SessionQueryNot, SI as SessionFieldName, TI as SessionGroupBy, bI as QueryValue, kI as SessionQueryAll, vI as FacetPath, xH as ThinkingLevel, xI as SessionCondition, yI as QueryBound } from "./index-Betz0OWq.js";
3
- import "./types-_Dtoq_No.js";
4
- import "./index-QcFzZlao.js";
5
- import "./sandbox-D0zsW8I1.js";
1
+ import { AI as QueryValue, BI as SessionQueryAny, FI as SessionGroupBy, II as SessionGroupOrder, KI as SessionSort, MI as SessionFieldName, NI as SessionFieldPath, OI as FacetPath, RI as SessionQuery, WI as SessionQueryNot, jH as ThinkingLevel, jI as SessionCondition, kI as QueryBound, zI as SessionQueryAll } from "./index-E1Z0aPmi.js";
2
+ import "./execution-failure-SREfl-EZ.js";
3
+ import { d as AuthFailureKind, u as AuthFailure } from "./timeout-CmTx6V9y.js";
4
+ import "./index-De9AbmxS.js";
5
+ import "./sandbox-CSUihARm.js";
6
6
  import "./oauth-callback-page-CV9oTMGy.js";
@@ -0,0 +1,2 @@
1
+ import "./execution-failure-SREfl-EZ.js";
2
+ import "node:buffer";
@@ -1,3 +1,4 @@
1
+ import "./execution-failure-SREfl-EZ.js";
1
2
  /**
2
3
  * Why a sign-in stopped working:
3
4
  * - `expired`: the refresh failed for a reason that signing in again fixes.
@@ -153,7 +153,7 @@ function ConfirmView({ request, onAnswer }) {
153
153
  })]
154
154
  }),
155
155
  children: request.message && /* @__PURE__ */ jsx("p", {
156
- className: "m-0 text-zg-ui text-[var(--zg-text-muted)] zg-pretty",
156
+ className: "m-0 text-zg-ui text-[var(--zg-text-muted)]",
157
157
  children: request.message
158
158
  })
159
159
  });
@@ -4,7 +4,7 @@ import { IconToggle } from "../components/IconToggle.js";
4
4
  import { Notice } from "../components/Notice.js";
5
5
  import { PanelEmpty, PanelLoading } from "../components/PanelEmpty.js";
6
6
  import { useResizeDrag } from "../hooks/useResizeDrag.js";
7
- import { readPanelMs, usePresence } from "../motion/presence.js";
7
+ import { readPanelMs, usePanelSettled, usePresence } from "../motion/presence.js";
8
8
  import { useFilesLabels } from "./useFilesLabels.js";
9
9
  import { memo, useEffect, useRef, useState } from "react";
10
10
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -24,6 +24,7 @@ const TreeColumn = memo((p) => {
24
24
  exitMs: readPanelMs,
25
25
  key: p.scopeKey
26
26
  });
27
+ const settled = usePanelSettled(presence.state);
27
28
  const labels = useFilesLabels();
28
29
  const colRef = useRef(null);
29
30
  const drag = useResizeDrag({
@@ -54,6 +55,7 @@ const TreeColumn = memo((p) => {
54
55
  ref: colRef,
55
56
  className: "zg-files-tree relative shrink-0 min-h-0",
56
57
  "data-collapsed": presence.state !== "open",
58
+ "data-settled": settled || void 0,
57
59
  "data-side": p.side,
58
60
  style: { "--zg-files-tree-w": `${p.width}px` },
59
61
  children: [/* @__PURE__ */ jsxs("div", {
@@ -127,8 +127,8 @@ export interface FilesScope {
127
127
  /** Where a bound session's files live when they are not on this machine (`zidane-env://…`). */
128
128
  workspace?: string;
129
129
  }
130
- /** Why a folder may have changed: a tool result in it, or the repository moving. */
131
- export type FolderChange = 'tool-result' | 'git';
130
+ /** Why a folder may have changed: a tool result in it, the repository moving, or the environment it lives in waking up (a paused sandbox, up again). */
131
+ export type FolderChange = 'tool-result' | 'git' | 'environment';
132
132
  /** The severity of a finding. */
133
133
  export type DiagnosticSeverity = 'error' | 'warning' | 'info' | 'hint';
134
134
  /** One finding from a project tool or a language server, positions 1-based like editors show them. */
@@ -304,7 +304,7 @@ function RepoCard({ info, branch }) {
304
304
  ]
305
305
  }),
306
306
  info.description && /* @__PURE__ */ jsx("p", {
307
- className: "m-0 text-zg-label text-[var(--zg-text-muted)] text-pretty line-clamp-2",
307
+ className: "m-0 text-zg-label text-[var(--zg-text-muted)] line-clamp-2",
308
308
  children: info.description
309
309
  })
310
310
  ]
@@ -219,7 +219,7 @@ function MoveSessionDialog({ subject, onDone, onCancel, className, style }) {
219
219
  children: [/* @__PURE__ */ jsx(Checkbox, { checked: removeWorktree }), /* @__PURE__ */ jsx("span", { children: labels.gitMoveRemoveWorktree })]
220
220
  }),
221
221
  (subject.hasTurns ?? true) && shownFolder !== null && /* @__PURE__ */ jsx("p", {
222
- className: "m-0 text-zg-label leading-relaxed text-[var(--zg-text-muted)] zg-pretty",
222
+ className: "m-0 text-zg-label leading-relaxed text-[var(--zg-text-muted)]",
223
223
  "data-testid": "move-confirm",
224
224
  children: labels.gitMoveConfirmDetail
225
225
  })
@@ -227,7 +227,7 @@ function MoveSessionDialog({ subject, onDone, onCancel, className, style }) {
227
227
  }),
228
228
  kept && /* @__PURE__ */ jsx("p", {
229
229
  role: "status",
230
- className: "m-0 text-zg-label leading-relaxed text-[var(--zg-text-muted)] zg-pretty",
230
+ className: "m-0 text-zg-label leading-relaxed text-[var(--zg-text-muted)]",
231
231
  "data-testid": "move-worktree-kept",
232
232
  children: labels.gitMoveWorktreeKept(kept.reason)
233
233
  }),
@@ -0,0 +1,42 @@
1
+ /**
2
+ * The sandboxes the providers hold, live, in one list. A row has the sandbox's state (the header's cube), the
3
+ * session it belongs to (or that none does), then badges: its provider, its state, Replaced for one "Set up
4
+ * again" replaced, and its facts (template, CPUs, memory, region, age), and its id to copy. Pause and Delete
5
+ * show on hover; Delete asks first. Filters narrow them to the ones a session holds or the ones left
6
+ * behind, and to one provider; Refresh reads them again. A provider that can't be read says why above the list.
7
+ *
8
+ * It reads nothing on its own: `source` lists them and acts on them (`SandboxesSource`), so Settings ›
9
+ * Environments › Manage, a server's page or a session's menu can all show it.
10
+ */
11
+ import { SandboxesSource } from "./headless/sandboxes.js";
12
+ import { CSSProperties } from "react";
13
+ /** One kind whose sandboxes show. */
14
+ export interface SandboxManagerKind {
15
+ /** The kind (`e2b`). */
16
+ kind: string;
17
+ /** Its provider's name (`E2B`), on each of its rows. */
18
+ label: string;
19
+ /** Its glyph (`environmentKindIcon(kind)`). */
20
+ icon?: string;
21
+ /** Why it can't be read now (no API key): said above the list, and the kind is not read. */
22
+ unavailable?: string;
23
+ }
24
+ /** Props for {@link SandboxManager}. */
25
+ export interface SandboxManagerProps {
26
+ /** The kinds to show, in order. */
27
+ kinds: readonly SandboxManagerKind[];
28
+ /** Lists the sandboxes and acts on them. */
29
+ source: SandboxesSource;
30
+ /** Opens a session: a linked sandbox's session name becomes a button. Absent: plain text. */
31
+ onOpenSession?: (sessionId: string) => void;
32
+ /** Extra classes on the root. */
33
+ className?: string;
34
+ /** Inline styles on the root. */
35
+ style?: CSSProperties;
36
+ }
37
+ /**
38
+ * Renders the kinds' sandboxes.
39
+ *
40
+ * @param props - {@link SandboxManagerProps}.
41
+ */
42
+ export declare function SandboxManager({ kinds, source, onOpenSession, className, style }: SandboxManagerProps): import("react").JSX.Element;