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
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Settings › Accounts › Hosts: This computer and the saved zidane-servers,
2
+ * Settings › Advanced › Hosts: This computer and the saved zidane-servers,
3
3
  * each with its status, the server's own name and version, what it can do
4
4
  * and its last sync. Add a server with its URL and a device token
5
5
  * (`AddServerForm`: typed masked, tested before anything is saved). A
@@ -37,8 +37,8 @@ const DEFAULT_MACHINES_LABELS = {
37
37
  machinesAgo: (short) => `${short} ago`,
38
38
  machinesThisServer: "This server",
39
39
  machinesOfflineRemoved: (name) => `${name} was removed from your hosts.`,
40
- machinesOfflineAuthRefused: (name) => `${name} refused this computer's token. Remove it in Settings › Accounts › Hosts, then add it again with a new token.`,
41
- machinesOfflineIdentity: (name) => `A different server answers at ${name}'s address. If it was reinstalled, remove it and add it again in Settings › Accounts › Hosts.`,
40
+ machinesOfflineAuthRefused: (name) => `${name} refused this computer's token. Remove it in Settings › Advanced › Hosts, then add it again with a new token.`,
41
+ machinesOfflineIdentity: (name) => `A different server answers at ${name}'s address. If it was reinstalled, remove it and add it again in Settings › Advanced › Hosts.`,
42
42
  machinesOfflineVersion: (name, error) => `${name} speaks another protocol version${error ? ` (${error})` : ""}. This session is read-only until one side is upgraded.`,
43
43
  machinesOfflineConnecting: (name) => `${name} is still connecting. This session is read-only until it is connected.`,
44
44
  machinesOfflineOther: (name, status) => `${name} is ${status}. This session is read-only until it reconnects.`,
@@ -132,23 +132,16 @@ function createFlipList(container, options = {}) {
132
132
  };
133
133
  /** A region's top on screen, without its glide in flight. */
134
134
  const regionTopOf = (region) => region.getBoundingClientRect().top - (running.has(region) ? translateYOf(region) : 0);
135
- const seen = /* @__PURE__ */ new WeakSet();
136
- let revealFrame = 0;
135
+ const measured = /* @__PURE__ */ new WeakSet();
137
136
  const revealNew = (nodes) => {
138
137
  const fresh = [];
139
138
  for (const node of nodes) {
140
- if (seen.has(node)) continue;
141
- seen.add(node);
139
+ if (measured.has(node)) continue;
140
+ measured.add(node);
142
141
  if (!node.style.contentVisibility) fresh.push(node);
143
142
  }
144
143
  if (!last || fresh.length === 0 || fresh.length > maxChanges) return;
145
144
  for (const node of fresh) node.style.contentVisibility = "visible";
146
- cancelAnimationFrame(revealFrame);
147
- revealFrame = requestAnimationFrame(() => {
148
- revealFrame = requestAnimationFrame(() => {
149
- for (const node of fresh) if (node.style.contentVisibility === "visible") node.style.contentVisibility = "";
150
- });
151
- });
152
145
  };
153
146
  /** Every tracked row's box on screen, from the list's top; `visual` keeps transforms in (a drag's). */
154
147
  const measure = (visual = false) => {
@@ -61,6 +61,16 @@ export declare const transitionState: (state: PresenceState) => "open" | "closed
61
61
  * (`exitMs`, in ms or a function read when the close starts), and whose node it is (`key`).
62
62
  */
63
63
  export declare function usePresence(open: boolean, { enter, exitMs, key }?: PresenceOptions): Presence;
64
+ /**
65
+ * Whether a panel that slides on the panel clock is open and done opening. A panel's frame animates its size while
66
+ * the sheet inside keeps the full size, so the content never reflows while it slides open or shut. Once it is
67
+ * settled the sheet follows the frame instead: a size change while open (the layout budget, the other sidebar
68
+ * toggling) animates the frame, and the content flows with it, as on a window resize, instead of jumping to the
69
+ * new size on the first frame. A panel open on mount is settled at once; closing unsettles it on the same render.
70
+ *
71
+ * @param state - The panel's phase, from {@link usePresence}.
72
+ */
73
+ export declare function usePanelSettled(state: PresenceState): boolean;
64
74
  /**
65
75
  * Locks page scroll while `active` (menus, dialogs). Counted: with layers
66
76
  * stacked, the page stays locked until the last one lets go, whatever order
@@ -110,6 +110,25 @@ function usePresence(open, { enter = false, exitMs = 0, key = null } = {}) {
110
110
  state: shown
111
111
  };
112
112
  }
113
+ /**
114
+ * Whether a panel that slides on the panel clock is open and done opening. A panel's frame animates its size while
115
+ * the sheet inside keeps the full size, so the content never reflows while it slides open or shut. Once it is
116
+ * settled the sheet follows the frame instead: a size change while open (the layout budget, the other sidebar
117
+ * toggling) animates the frame, and the content flows with it, as on a window resize, instead of jumping to the
118
+ * new size on the first frame. A panel open on mount is settled at once; closing unsettles it on the same render.
119
+ *
120
+ * @param state - The panel's phase, from {@link usePresence}.
121
+ */
122
+ function usePanelSettled(state) {
123
+ const [settled, setSettled] = useState(state === "open");
124
+ if (state !== "open" && settled) setSettled(false);
125
+ useEffect(() => {
126
+ if (state !== "open" || settled) return void 0;
127
+ const timer = window.setTimeout(setSettled, readPanelMs(), true);
128
+ return () => window.clearTimeout(timer);
129
+ }, [state, settled]);
130
+ return settled && state === "open";
131
+ }
113
132
  /** How many active locks hold the page, and the root's own styles from before the first. */
114
133
  let scrollLocks = 0;
115
134
  let unlocked = null;
@@ -146,4 +165,4 @@ function useScrollLock(active) {
146
165
  return unlockScroll;
147
166
  }, [active]);
148
167
  }
149
- export { readDurationVar, readExitMs, readMenuExitMs, readMotionMs, readPanelMs, transitionState, usePresence, useScrollLock };
168
+ export { readDurationVar, readExitMs, readMenuExitMs, readMotionMs, readPanelMs, transitionState, usePanelSettled, usePresence, useScrollLock };
@@ -3,7 +3,8 @@
3
3
  * content is swapped by key (spinner → check → x).
4
4
  *
5
5
  * Presence keeps a leaving node mounted through a short exit and stamps
6
- * `data-state="enter" | "exit"` for CSS (`.zg-presence`)
6
+ * `data-state="enter" | "exit"` for CSS (`.zg-presence`); content
7
+ * shown since it mounted is `"shown"`: drawn as it is, no entrance
7
8
  * Crossfade stacks the outgoing and incoming nodes in one grid cell so one
8
9
  * fades / scales out while the other fades / scales in
9
10
  * useCadencedValue holds a fast-changing value to a readable cadence
@@ -30,6 +31,11 @@ export interface PresenceProps {
30
31
  display?: 'inline' | 'block';
31
32
  /** `scale` (default) for glyphs; `text` blurs a line of words in and out, anchored left. */
32
33
  variant?: 'scale' | 'text';
34
+ /**
35
+ * Plays the entrance when it mounts shown. Default false: content shown from the start was already there (a
36
+ * row mounting again in another section, a panel opening), and only a later `show` plays the entrance.
37
+ */
38
+ appear?: boolean;
33
39
  }
34
40
  /**
35
41
  * Keeps `children` mounted for the exit (`readExitMs()`) after `show` flips
@@ -37,7 +43,7 @@ export interface PresenceProps {
37
43
  *
38
44
  * @param props - Component props.
39
45
  */
40
- export declare function Presence({ show, children, className, style, display, variant }: PresenceProps): import("react").JSX.Element | null;
46
+ export declare function Presence({ show, children, className, style, display, variant, appear }: PresenceProps): import("react").JSX.Element | null;
41
47
  /** Props for {@link Crossfade}. */
42
48
  export interface CrossfadeProps {
43
49
  /** Identity of the current content; a change triggers the swap. */
@@ -10,13 +10,16 @@ const SETTLE_MS = 200;
10
10
  *
11
11
  * @param props - Component props.
12
12
  */
13
- function Presence({ show, children, className = "", style, display = "inline", variant = "scale" }) {
13
+ function Presence({ show, children, className = "", style, display = "inline", variant = "scale", appear = false }) {
14
14
  const { mounted } = usePresence(show, { exitMs: readExitMs });
15
+ const [shownAtMount] = useState(show && !appear);
16
+ const [changed, setChanged] = useState(false);
17
+ if (!changed && show !== shownAtMount) setChanged(true);
15
18
  if (!mounted) return null;
16
19
  return /* @__PURE__ */ jsx("span", {
17
20
  className: `zg-presence ${display === "block" ? "block" : "inline-flex items-center"} ${className}`,
18
21
  style,
19
- "data-state": show ? "enter" : "exit",
22
+ "data-state": show ? changed || !shownAtMount ? "enter" : "shown" : "exit",
20
23
  "data-variant": variant,
21
24
  children
22
25
  });
@@ -1,12 +1,13 @@
1
1
  import { Transcript } from "../chat/Transcript.js";
2
+ import { TranscriptRail, TranscriptRailProvider } from "../chat/transcript/TranscriptRail.js";
2
3
  import { buttonClass } from "../components/button.js";
3
4
  import { PreviewWindow } from "../components/PreviewWindow.js";
4
5
  import { Segmented } from "../components/Segmented.js";
5
6
  import { useOnboardingLabels } from "./OnboardingProvider.js";
6
7
  import { withPreviewAttachments } from "./preview-attachments.js";
7
- import { useId, useMemo, useState } from "react";
8
+ import { useId, useMemo, useRef, useState } from "react";
8
9
  import { jsx, jsxs } from "react/jsx-runtime";
9
- import { ONBOARDING_PREVIEW_EVENTS, TRANSCRIPT_PRESETS, transcriptPreset, transcriptPresetOf } from "zidane/chat/pure";
10
+ import { ONBOARDING_PREVIEW_EVENTS, ONBOARDING_PREVIEW_FOLLOW_UP, TRANSCRIPT_PRESETS, transcriptPreset, transcriptPresetOf } from "zidane/chat/pure";
10
11
  // src/onboarding/conversation.tsx
11
12
  /** The diagram the sample's answer ends on, so the preview shows the Diagrams setting at work. */
12
13
  const ANSWER_DIAGRAM = [
@@ -25,8 +26,11 @@ function withAnswerDiagram(events) {
25
26
  text: `${event.text}\n\n${ANSWER_DIAGRAM}`
26
27
  } : event);
27
28
  }
28
- /** The sample conversation, with the chart and the notes its prompt attaches, and a diagram in its answer. */
29
- const SAMPLE = withAnswerDiagram(withPreviewAttachments(ONBOARDING_PREVIEW_EVENTS));
29
+ /**
30
+ * The sample conversation, with the chart and the notes its prompt attaches, a diagram in its answer, and a short
31
+ * follow-up: two messages for the message rail to step between.
32
+ */
33
+ const SAMPLE = [...withAnswerDiagram(withPreviewAttachments(ONBOARDING_PREVIEW_EVENTS)), ...ONBOARDING_PREVIEW_FOLLOW_UP];
30
34
  /** The settings that change how the transcript draws the sample. */
31
35
  const OPTION_KEYS = [
32
36
  "showRowIcons",
@@ -63,21 +67,29 @@ function ConversationPreview({ settings, title, maxHeight = 440, className = "",
63
67
  const labels = useOnboardingLabels();
64
68
  const options = useMemo(() => transcriptPreviewOptions(settings), [settings]);
65
69
  const sessionId = useId();
70
+ const scroller = useRef(null);
66
71
  return /* @__PURE__ */ jsx(PreviewWindow, {
67
72
  title: title ?? labels.preview,
68
73
  label: title ?? labels.preview,
69
74
  className,
70
75
  style,
71
- children: /* @__PURE__ */ jsx("div", {
72
- className: "overflow-y-auto p-3",
73
- style: { maxHeight },
74
- children: /* @__PURE__ */ jsx(Transcript, {
75
- events: SAMPLE,
76
- streaming: false,
77
- sessionId,
78
- options
79
- })
80
- })
76
+ children: /* @__PURE__ */ jsx(TranscriptRailProvider, { children: /* @__PURE__ */ jsxs("div", {
77
+ className: "relative",
78
+ children: [/* @__PURE__ */ jsx("div", {
79
+ ref: scroller,
80
+ className: "overflow-y-auto p-3",
81
+ style: { maxHeight },
82
+ children: /* @__PURE__ */ jsx("div", {
83
+ className: "zg-transcript-column",
84
+ children: /* @__PURE__ */ jsx(Transcript, {
85
+ events: SAMPLE,
86
+ streaming: false,
87
+ sessionId,
88
+ options
89
+ })
90
+ })
91
+ }), settings.transcriptRail === true && /* @__PURE__ */ jsx(TranscriptRail, { scroller })]
92
+ }) })
81
93
  });
82
94
  }
83
95
  /**
@@ -133,7 +145,7 @@ function ConversationPresetPreview({ settings, onApply, maxHeight = 360, classNa
133
145
  })]
134
146
  }),
135
147
  tab !== "yours" && /* @__PURE__ */ jsx("p", {
136
- className: "m-0 px-1 text-zg-label text-[var(--zg-text-muted)] text-pretty",
148
+ className: "m-0 px-1 text-zg-label text-[var(--zg-text-muted)]",
137
149
  children: transcriptPreset(tab).description
138
150
  }),
139
151
  /* @__PURE__ */ jsx(ConversationPreview, {
@@ -543,7 +543,7 @@ function EnvironmentsScene({ step, className, style }) {
543
543
  /* @__PURE__ */ jsx(Node, {
544
544
  label: labels.sceneSession,
545
545
  children: /* @__PURE__ */ jsx(Glyph, {
546
- icon: "i-ph-chat-circle-dots-fill",
546
+ icon: "i-ph-cube-fill",
547
547
  className: "text-[var(--zg-accent)]"
548
548
  })
549
549
  }),
@@ -116,7 +116,7 @@ function SourceRows({ sources, images, picked, onOpen, className, style }) {
116
116
  ]
117
117
  }), /* @__PURE__ */ jsx("span", {
118
118
  id: `${id}-${source.id}`,
119
- className: "text-zg-label text-[var(--zg-text-muted)] text-pretty line-clamp-2",
119
+ className: "text-zg-label text-[var(--zg-text-muted)] line-clamp-2",
120
120
  children: source.description
121
121
  })]
122
122
  }),
@@ -248,11 +248,11 @@ function SourceHeader({ source, count, images, picked, allPicked, selectable, on
248
248
  ]
249
249
  }),
250
250
  source.description && /* @__PURE__ */ jsx("p", {
251
- className: "m-0 text-zg-label text-[var(--zg-text-muted)] text-pretty line-clamp-2",
251
+ className: "m-0 text-zg-label text-[var(--zg-text-muted)] line-clamp-2",
252
252
  children: source.description
253
253
  }),
254
254
  source.collection && /* @__PURE__ */ jsx("p", {
255
- className: "m-0 text-zg-label text-[var(--zg-text-muted)] text-pretty",
255
+ className: "m-0 text-zg-label text-[var(--zg-text-muted)]",
256
256
  children: labels.packHint
257
257
  }),
258
258
  /* @__PURE__ */ jsxs("div", {
@@ -322,7 +322,7 @@ function SkillRow({ skill, picked, installed, onToggle, className, style }) {
322
322
  })
323
323
  ]
324
324
  }), skill.description && /* @__PURE__ */ jsx("span", {
325
- className: "text-zg-label text-[var(--zg-text-muted)] text-pretty line-clamp-2",
325
+ className: "text-zg-label text-[var(--zg-text-muted)] line-clamp-2",
326
326
  children: skill.description
327
327
  })]
328
328
  })]
@@ -221,7 +221,7 @@ function SourceBrowser({ browse, itemsOf, cardOf, pickOf, selectable: canPick, r
221
221
  onSelectAll: (on) => onToggle(selectable.map((item) => pickOf(item, listing)), on)
222
222
  }),
223
223
  note && /* @__PURE__ */ jsx("p", {
224
- className: "m-0 px-3 pb-2 text-zg-label text-[var(--zg-text-muted)] text-pretty",
224
+ className: "m-0 px-3 pb-2 text-zg-label text-[var(--zg-text-muted)]",
225
225
  children: note
226
226
  }),
227
227
  truncatedOf?.(listing) && /* @__PURE__ */ jsx(Notice, {
@@ -181,7 +181,7 @@ function ReadyStep({ className }) {
181
181
  })
182
182
  }),
183
183
  /* @__PURE__ */ jsx("p", {
184
- className: "m-0 px-1 text-zg-label text-[var(--zg-text-muted)] text-pretty",
184
+ className: "m-0 px-1 text-zg-label text-[var(--zg-text-muted)]",
185
185
  children: labels.changeLater
186
186
  })
187
187
  ]
@@ -93,7 +93,7 @@ function KeyForm({ provider, className, style }) {
93
93
  /* @__PURE__ */ jsxs("div", {
94
94
  className: "flex items-center gap-3",
95
95
  children: [setup.credentialsPath && /* @__PURE__ */ jsx("span", {
96
- className: "text-zg-label text-[var(--zg-text-muted)] text-pretty",
96
+ className: "text-zg-label text-[var(--zg-text-muted)]",
97
97
  children: labels.credentialsAt(setup.credentialsPath)
98
98
  }), /* @__PURE__ */ jsx("button", {
99
99
  type: "submit",
@@ -59,6 +59,26 @@ const ACTIONS = {
59
59
  icon: "i-ph-list-numbers",
60
60
  keywords: ["turn", "navigate"]
61
61
  },
62
+ previousPrompt: {
63
+ group: "navigate",
64
+ icon: "i-ph-arrow-up",
65
+ keywords: [
66
+ "prompt",
67
+ "message",
68
+ "scroll",
69
+ "rail"
70
+ ]
71
+ },
72
+ nextPrompt: {
73
+ group: "navigate",
74
+ icon: "i-ph-arrow-down",
75
+ keywords: [
76
+ "prompt",
77
+ "message",
78
+ "scroll",
79
+ "rail"
80
+ ]
81
+ },
62
82
  openArtifacts: {
63
83
  group: "navigate",
64
84
  icon: "i-ph-cube"
@@ -61,6 +61,8 @@ const DEFAULT_PALETTE_LABELS = {
61
61
  sessionDelete: "Delete session",
62
62
  cancelToolCall: "Cancel a running tool",
63
63
  enterSelectTurnMode: "Select a message",
64
+ previousPrompt: "Go to previous message",
65
+ nextPrompt: "Go to next message",
64
66
  openArtifacts: "Show artifacts",
65
67
  openUsagePanel: "Show usage",
66
68
  toggleSidebar: "Toggle sidebar",
@@ -159,7 +159,7 @@ function PlanTracker({ sessionId, plan, hideHeader = false, className, style })
159
159
  }),
160
160
  plan.body && /* @__PURE__ */ jsx("div", {
161
161
  "data-testid": "plan-body",
162
- className: "px-2 text-zg-ui text-[var(--zg-text)] zg-pretty",
162
+ className: "px-2 text-zg-ui text-[var(--zg-text)]",
163
163
  children: /* @__PURE__ */ jsx(ProseMarkdown, { children: plan.body })
164
164
  }),
165
165
  steps.length === 0 && /* @__PURE__ */ jsx("p", {
@@ -213,11 +213,11 @@ function PlanTracker({ sessionId, plan, hideHeader = false, className, style })
213
213
  children: step.title
214
214
  }),
215
215
  step.description && /* @__PURE__ */ jsx("span", {
216
- className: "text-zg-meta mt-0.5 text-[var(--zg-text-muted)] zg-pretty",
216
+ className: "text-zg-meta mt-0.5 text-[var(--zg-text-muted)]",
217
217
  children: step.description
218
218
  }),
219
219
  step.note && /* @__PURE__ */ jsx("span", {
220
- className: "text-zg-meta leading-4 text-[var(--zg-text-subtle)] italic zg-pretty",
220
+ className: "text-zg-meta leading-4 text-[var(--zg-text-subtle)] italic",
221
221
  children: labels.stepAgentNote(step.note)
222
222
  })
223
223
  ]
@@ -82,7 +82,7 @@ function SecretsPanel({ sessionId, className = "", style }) {
82
82
  })] }) : /* @__PURE__ */ jsxs("div", {
83
83
  className: "flex flex-col gap-2",
84
84
  children: [/* @__PURE__ */ jsx("p", {
85
- className: "m-0 text-zg-meta leading-4 text-[var(--zg-text-muted)] zg-pretty",
85
+ className: "m-0 text-zg-meta leading-4 text-[var(--zg-text-muted)]",
86
86
  children: labels.secretsNote
87
87
  }), /* @__PURE__ */ jsx("ul", {
88
88
  className: "m-0 p-0 list-none flex flex-col",
@@ -1,14 +1,18 @@
1
1
  /**
2
- * The session header: the folder chip (plus the server chip for a server
3
- * session), the title (a click opens the details; renamable in place) and
4
- * the app's toolbar on the right. Right-click on the folder or the title
5
- * opens the app's actions menu (`menuItems`); its Rename sets `renaming`.
2
+ * The session header, a breadcrumb: where the session runs (`place`, a dot for a
3
+ * sandbox or a server), its project (the original repository, a click changes
4
+ * the folder), its own branch for a worktree or a sandbox (a click opens the
5
+ * switcher), then the title (a click opens the details; renamable in place),
6
+ * and the app's toolbar on the right. A server session without a `place` names
7
+ * its server in a chip. Right-click on the project or the title opens the app's
8
+ * actions menu (`menuItems`); its Rename sets `renaming`.
6
9
  *
7
10
  * The title only ellipsizes when it would collide with the toolbar: a
8
11
  * ResizeObserver (rAF-debounced) compares its content width with its box.
9
12
  */
10
13
  import { RowActionItem } from "../components/RowActionsMenu.js";
11
- import { CSSProperties, ReactNode } from "react";
14
+ import { GitBarBranchMenuProps } from "../git/GitBar.js";
15
+ import { CSSProperties, ComponentType, ReactNode } from "react";
12
16
  /** The server a server session runs on. */
13
17
  export interface SessionHeaderServer {
14
18
  /** Its name; absent when it is no longer saved. */
@@ -39,6 +43,14 @@ export interface SessionHeaderProps {
39
43
  titleScope?: string;
40
44
  /** The session's folder; `''` for a chat without one. */
41
45
  cwd: string;
46
+ /** The repository the folder is a checkout of (a worktree's or a sandbox's source): named first. Default: `cwd`. */
47
+ projectRoot?: string;
48
+ /** The session's own branch (a worktree's or a sandbox's): between the project and the title. Absent: none. */
49
+ branch?: string;
50
+ /** The switcher a click on the branch opens (the git bar's). Absent: the branch is plain text. Keep it stable. */
51
+ BranchMenu?: ComponentType<GitBarBranchMenuProps>;
52
+ /** Leads the breadcrumb: where the session runs (`SessionPlaceMenu`). Absent: nothing, and a server session keeps its chip. */
53
+ place?: ReactNode;
42
54
  /** The orchestration main: no folder, a fixed name. */
43
55
  isMain?: boolean;
44
56
  /** A run is in progress (a folderless chat can't attach a folder mid-run). */
@@ -76,4 +88,4 @@ export interface SessionHeaderProps {
76
88
  * @param props - The session facts, the folder, details and rename handlers, the menu, the `toolbar`, `className` and
77
89
  * `style`.
78
90
  */
79
- export declare function SessionHeader({ title, titleDisplay, titleScope, cwd, isMain, running, server, onPickFolder, onOpenDetails, onRename, renaming, onRenamingChange, menuItems, onMenuOpenChange, startedFrom, toolbar, sessionId, className, style }: SessionHeaderProps): import("react").JSX.Element;
91
+ export declare function SessionHeader({ title, titleDisplay, titleScope, cwd, projectRoot, branch, BranchMenu, place, isMain, running, server, onPickFolder, onOpenDetails, onRename, renaming, onRenamingChange, menuItems, onMenuOpenChange, startedFrom, toolbar, sessionId, className, style }: SessionHeaderProps): import("react").JSX.Element;
@@ -1,11 +1,12 @@
1
1
  import { EditableTitle } from "../components/EditableTitle.js";
2
2
  import { RowActionsMenu } from "../components/RowActionsMenu.js";
3
+ import { useTooltip } from "../components/Tooltip.js";
3
4
  import { ExtensionSlot } from "../extensions/ExtensionSlot.js";
4
5
  import { RoutedLink } from "../extensions/links.js";
5
6
  import { TitleText } from "../motion/title-text.js";
6
7
  import { useSessionLabels } from "./useSessionLabels.js";
7
8
  import { useEffect, useRef, useState } from "react";
8
- import { jsx, jsxs } from "react/jsx-runtime";
9
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
9
10
  // src/session/SessionHeader.tsx
10
11
  function folderBasename(path) {
11
12
  const trimmed = path.replace(/[/\\]+$/, "");
@@ -18,7 +19,7 @@ function folderBasename(path) {
18
19
  * @param props - The session facts, the folder, details and rename handlers, the menu, the `toolbar`, `className` and
19
20
  * `style`.
20
21
  */
21
- function SessionHeader({ title, titleDisplay, titleScope, cwd, isMain = false, running = false, server, onPickFolder, onOpenDetails, onRename, renaming = false, onRenamingChange, menuItems, onMenuOpenChange, startedFrom, toolbar, sessionId = titleScope, className = "", style }) {
22
+ function SessionHeader({ title, titleDisplay, titleScope, cwd, projectRoot, branch, BranchMenu, place, isMain = false, running = false, server, onPickFolder, onOpenDetails, onRename, renaming = false, onRenamingChange, menuItems, onMenuOpenChange, startedFrom, toolbar, sessionId = titleScope, className = "", style }) {
22
23
  const labels = useSessionLabels();
23
24
  const [menuAt, setMenuAt] = useState(null);
24
25
  const setMenu = (at) => {
@@ -45,10 +46,12 @@ function SessionHeader({ title, titleDisplay, titleScope, cwd, isMain = false, r
45
46
  };
46
47
  const onServer = server !== void 0;
47
48
  const folderless = !cwd;
48
- const folderName = folderless ? labels.headerChat : folderBasename(cwd);
49
+ const folderName = folderless ? labels.headerChat : folderBasename(projectRoot || cwd);
50
+ const folderTip = useTooltip(isMain ? labels.headerMainFolder : folderless && running ? labels.headerChatRunning : onServer ? labels.headerFolderOnServer(cwd, server.name ?? null) : folderless ? labels.headerChatAttach : labels.headerChangeFolder(cwd));
49
51
  const titleRef = useRef(null);
50
52
  const [overflow, setOverflow] = useState(null);
51
53
  const needsTruncate = overflow?.title === title ? overflow.value : true;
54
+ const titleTip = useTooltip(needsTruncate ? `${title} · ${labels.headerDetails}` : labels.headerDetails);
52
55
  useEffect(() => {
53
56
  const el = titleRef.current;
54
57
  if (!el) return void 0;
@@ -82,16 +85,19 @@ function SessionHeader({ title, titleDisplay, titleScope, cwd, isMain = false, r
82
85
  ...style
83
86
  },
84
87
  children: [
88
+ place,
85
89
  /* @__PURE__ */ jsx("button", {
90
+ ...folderTip.anchorProps,
86
91
  type: "button",
87
92
  onClick: onPickFolder,
88
93
  onContextMenu: openMenu,
89
94
  disabled: !onPickFolder || isMain || onServer || folderless && running,
90
- title: isMain ? labels.headerMainFolder : folderless && running ? labels.headerChatRunning : onServer ? labels.headerFolderOnServer(cwd, server.name ?? null) : folderless ? labels.headerChatAttach : labels.headerChangeFolder(cwd),
91
- className: `zg-press-soft min-w-0 max-w-[200px] truncate text-left bg-transparent border-0 text-sm font-medium px-1.5 py-1 -mx-1.5 rounded-zg-sm transition-colors disabled:cursor-default enabled:cursor-pointer enabled:hover:before:bg-[var(--zg-row-hover)] ${folderless ? "italic text-[var(--zg-text-muted)]" : "text-[var(--zg-text)]"}`,
95
+ "data-testid": "session-project",
96
+ className: `zg-press-soft min-w-0 max-w-[200px] truncate text-left bg-transparent border-0 text-sm font-medium px-1.5 py-1 -mx-1.5 rounded-zg-sm transition-colors disabled:cursor-default enabled:cursor-pointer enabled:hover:before:bg-[var(--zg-row-hover)] ${folderless ? "text-[var(--zg-text-muted)]" : "text-[var(--zg-text)]"}`,
92
97
  children: folderName
93
98
  }),
94
- onServer && /* @__PURE__ */ jsxs("span", {
99
+ folderTip.tip,
100
+ onServer && !place && /* @__PURE__ */ jsxs("span", {
95
101
  className: "inline-flex items-center gap-1 shrink-0 text-xs text-[var(--zg-text-muted)] select-none",
96
102
  title: server.url ?? labels.headerServerGone,
97
103
  "data-testid": "session-host",
@@ -107,11 +113,13 @@ function SessionHeader({ title, titleDisplay, titleScope, cwd, isMain = false, r
107
113
  server.status
108
114
  ]
109
115
  }),
110
- /* @__PURE__ */ jsx("span", {
111
- className: "text-sm opacity-60 select-none",
112
- "aria-hidden": true,
113
- children: "/"
114
- }),
116
+ /* @__PURE__ */ jsx(Crumb, {}),
117
+ branch && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(HeaderBranch, {
118
+ branch,
119
+ cwd,
120
+ sessionId: sessionId ?? null,
121
+ BranchMenu
122
+ }), /* @__PURE__ */ jsx(Crumb, {})] }),
115
123
  renaming && onRename ? /* @__PURE__ */ jsx(EditableTitle, {
116
124
  text: renameValue,
117
125
  editing: true,
@@ -122,11 +130,11 @@ function SessionHeader({ title, titleDisplay, titleScope, cwd, isMain = false, r
122
130
  label: labels.headerRename,
123
131
  className: "zg-no-drag min-w-[8rem] max-w-full text-sm font-medium text-[var(--zg-text)] whitespace-nowrap overflow-hidden px-1.5 py-1 -mx-1.5 rounded-zg-sm bg-[var(--zg-row-hover)]"
124
132
  }) : /* @__PURE__ */ jsx("button", {
133
+ ...titleTip.anchorProps,
125
134
  ref: titleRef,
126
135
  type: "button",
127
136
  onClick: onOpenDetails,
128
137
  onContextMenu: openMenu,
129
- title: needsTruncate ? `${title} · ${labels.headerDetails}` : labels.headerDetails,
130
138
  dir: "auto",
131
139
  className: `zg-press-subtle min-w-0 max-w-full text-left bg-transparent border-0 cursor-pointer text-sm font-medium text-[var(--zg-text-muted)] whitespace-nowrap overflow-hidden px-1.5 py-1 -mx-1.5 rounded-zg-sm hover:before:bg-[var(--zg-row-hover)] hover:text-[var(--zg-text)] transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-[var(--zg-ring)] ${needsTruncate ? "text-ellipsis" : ""}`,
132
140
  children: /* @__PURE__ */ jsx(TitleText, {
@@ -135,6 +143,7 @@ function SessionHeader({ title, titleDisplay, titleScope, cwd, isMain = false, r
135
143
  ...titleScope ? { scope: titleScope } : {}
136
144
  })
137
145
  }),
146
+ !renaming && titleTip.tip,
138
147
  startedFrom && !renaming ? /* @__PURE__ */ jsx(HeaderOrigin, { origin: startedFrom }) : null,
139
148
  /* @__PURE__ */ jsx("span", { className: "flex-1" }),
140
149
  /* @__PURE__ */ jsx(ExtensionSlot, {
@@ -152,6 +161,52 @@ function SessionHeader({ title, titleDisplay, titleScope, cwd, isMain = false, r
152
161
  ]
153
162
  });
154
163
  }
164
+ /** The breadcrumb's separator. */
165
+ function Crumb() {
166
+ return /* @__PURE__ */ jsx("span", {
167
+ className: "mx-px text-sm text-[var(--zg-text-subtle)] select-none",
168
+ "aria-hidden": true,
169
+ children: "/"
170
+ });
171
+ }
172
+ /** The session's own branch: a click opens the switcher when the app gives one. */
173
+ function HeaderBranch({ branch, cwd, sessionId, BranchMenu }) {
174
+ const labels = useSessionLabels();
175
+ const ref = useRef(null);
176
+ const [open, setOpen] = useState(false);
177
+ const tip = useTooltip(BranchMenu ? labels.headerSwitchBranch(branch) : labels.headerBranch(branch));
178
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
179
+ /* @__PURE__ */ jsxs("button", {
180
+ ...tip.anchorProps,
181
+ ref,
182
+ type: "button",
183
+ disabled: !BranchMenu,
184
+ onClick: () => setOpen((v) => !v),
185
+ "aria-haspopup": BranchMenu ? "menu" : void 0,
186
+ "aria-expanded": BranchMenu ? open : void 0,
187
+ "data-testid": "session-branch",
188
+ className: "zg-press-soft zg-no-drag min-w-0 max-w-[180px] shrink-[2] inline-flex items-center gap-1 bg-transparent border-0 px-1.5 py-1 -mx-1.5 rounded-zg-sm text-[var(--zg-text-muted)] transition-colors disabled:cursor-default enabled:cursor-pointer enabled:hover:before:bg-[var(--zg-row-hover)] enabled:hover:text-[var(--zg-text)]",
189
+ children: [/* @__PURE__ */ jsx("span", {
190
+ "aria-hidden": true,
191
+ className: "i-ph-git-branch text-sm shrink-0"
192
+ }), /* @__PURE__ */ jsx("span", {
193
+ dir: "auto",
194
+ className: "font-mono text-sm tabular-nums truncate",
195
+ children: branch
196
+ })]
197
+ }),
198
+ tip.tip,
199
+ BranchMenu && /* @__PURE__ */ jsx(BranchMenu, {
200
+ open,
201
+ anchorRef: ref,
202
+ cwd,
203
+ sessionId,
204
+ current: branch,
205
+ onClose: () => setOpen(false),
206
+ onSwitched: () => setOpen(false)
207
+ })
208
+ ] });
209
+ }
155
210
  /** "From <view title>: <key>": the view opens the view, the key opens the row's link. */
156
211
  function HeaderOrigin({ origin }) {
157
212
  const labels = useSessionLabels();
@@ -0,0 +1,35 @@
1
+ /**
2
+ * The header's cube: where a session runs when that is not this machine's folders (a sandbox, another
3
+ * machine, a saved server), and how it is doing. It is the daemon's orb (`StatusOrb`) as a cube: calm when ready, an arc
4
+ * while it sets up or connects, red when setup failed or the server is unreachable, dimmed while paused.
5
+ *
6
+ * A click opens its menu: what and where it is, the setup steps while it sets up, the server and its
7
+ * connection, then Wake up while it is up or paused (when the host can: it starts a paused one, and checks one
8
+ * that should be up, which its provider may have paused on its own), Pause while a sandbox is up (when the host
9
+ * can), the environment's own actions (loaded while the menu shows), Retry setup after a failure (Set up now once
10
+ * its sandbox was deleted), Delete sandbox (when the host can: the session stays, its next prompt sets up a new
11
+ * one), and Copy details last. Its rows carry no icons. Under the kind and state, the branch and the sandbox id
12
+ * copy themselves on click. Renders nothing for a session in a local folder or a worktree here.
13
+ */
14
+ import { HostView } from "../chat/headless/hosts.js";
15
+ import { CSSProperties } from "react";
16
+ import { SessionEnvironmentSummary } from "zidane/chat";
17
+ /** Props for {@link SessionPlaceMenu}. */
18
+ export interface SessionPlaceMenuProps {
19
+ /** The session, for its environment's actions. */
20
+ sessionId: string;
21
+ /** Its environment. The dot shows for one outside this machine's folders (`isExternalEnvironment`). */
22
+ environment?: SessionEnvironmentSummary;
23
+ /** Its server: the host, `null` once it is no longer saved. Absent: a session on this computer. */
24
+ server?: HostView | null;
25
+ /** Extra classes on the trigger. */
26
+ className?: string;
27
+ /** Inline styles on the trigger. */
28
+ style?: CSSProperties;
29
+ }
30
+ /**
31
+ * Renders the dot and its menu, or nothing for a session in this machine's folders.
32
+ *
33
+ * @param props - The session, its environment and server, `className` and `style`.
34
+ */
35
+ export declare function SessionPlaceMenu({ environment, server, ...rest }: SessionPlaceMenuProps): import("react").JSX.Element | null;