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
@@ -21,7 +21,9 @@ const OTHER_BROWSER_DEFAULTS = {
21
21
  navigateForward: "alt+right",
22
22
  tabNext: "ctrl+alt+right",
23
23
  tabPrev: "ctrl+alt+left",
24
- toggleTerminal: "ctrl+`"
24
+ toggleTerminal: "ctrl+`",
25
+ previousPrompt: "alt+[",
26
+ nextPrompt: "alt+]"
25
27
  };
26
28
  /**
27
29
  * The chords a browser page receives, for the actions whose catalog chord it doesn't.
@@ -1,10 +1,11 @@
1
1
  import { writable } from "../chat/headless/store.js";
2
- import { DEFAULT_SETTINGS } from "../settings/headless/catalog.js";
2
+ import { DEFAULT_SETTINGS as DEFAULT_SETTINGS$1 } from "../settings/headless/catalog.js";
3
3
  import { closableClient } from "./closable-client.js";
4
4
  import { serverSettingsAccounts } from "./server-settings-accounts.js";
5
5
  import { serverSettingsModels } from "./server-settings-models.js";
6
6
  import { serverSettingsPerformance } from "./server-settings-performance.js";
7
7
  import { serverSettingsSections } from "./server-settings-sections.js";
8
+ import { spaceOps, spacesStateOf } from "zidane/chat/pure";
8
9
  import { ServerConnectionError } from "zidane/ipc/browser";
9
10
  // src/adapters/server-settings-host.ts
10
11
  function errorOf(error) {
@@ -30,7 +31,7 @@ function createServerSettingsHost(options) {
30
31
  return {
31
32
  status: "ready",
32
33
  values: {
33
- ...DEFAULT_SETTINGS,
34
+ ...DEFAULT_SETTINGS$1,
34
35
  ...local ? local.merge(values) : values
35
36
  }
36
37
  };
@@ -80,6 +81,27 @@ function createServerSettingsHost(options) {
80
81
  const next = client.can("settings.set");
81
82
  if (writableStore.get() !== next) writableStore.set(next);
82
83
  });
84
+ /** `patch` without its spaces part, once that part is written with `spaces.*` (a server that offers them). */
85
+ const writeSpaces = async (patch) => {
86
+ if (!("spaceList" in patch) && !("spaces" in patch) || !client.can("spaces.upsert") || !server) return patch;
87
+ const { spaceList, spaces, ...rest } = patch;
88
+ const before = spacesStateOf(server);
89
+ const ops = spaceOps(before, spacesStateOf({
90
+ spaces: "spaces" in patch ? spaces : server.spaces,
91
+ spaceList: "spaceList" in patch ? spaceList : server.spaceList
92
+ }));
93
+ for (const op of ops) if (op.kind === "upsert") await client.call("spaces.upsert", {
94
+ space: op.space,
95
+ index: op.index
96
+ });
97
+ else if (op.kind === "remove") await client.call("spaces.remove", { spaceId: op.spaceId });
98
+ else if (op.kind === "move") await client.call("spaces.move", {
99
+ spaceId: op.spaceId,
100
+ index: op.index
101
+ });
102
+ else await client.call("spaces.setEnabled", { enabled: op.enabled });
103
+ return rest;
104
+ };
83
105
  const update = async (patch) => {
84
106
  const current = document.get();
85
107
  if (current.status === "ready") document.set({
@@ -105,7 +127,12 @@ function createServerSettingsHost(options) {
105
127
  }
106
128
  generation += 1;
107
129
  try {
108
- const values = await client.call("settings.set", { patch: host });
130
+ const rest = await writeSpaces(host);
131
+ if (Object.keys(rest).length === 0) {
132
+ await refresh();
133
+ return;
134
+ }
135
+ const values = await client.call("settings.set", { patch: rest });
109
136
  generation += 1;
110
137
  document.set(ready(values));
111
138
  } catch (error) {
@@ -50,6 +50,9 @@ function serverSettingsSections(client) {
50
50
  const browse = (input) => call("extensions.browse", { source: input });
51
51
  const extensions = {
52
52
  list: async (cwd) => (await call("catalog.extensions", cwd ? { cwd } : {})).extensions,
53
+ subscribe: (_cwd, onChange) => client.onSignal((signal) => {
54
+ if (signal.kind === "catalog:changed" && signal.catalog === "extensions") onChange();
55
+ }),
53
56
  configSchema: extensionsResource((cwd) => call("extensions.configSchema", { cwd })),
54
57
  actions: extensionsResource((cwd) => call("extensions.actions", { cwd })),
55
58
  actionStatuses: (cwd) => call("extensions.actionStatuses", { cwd }),
@@ -124,7 +127,26 @@ function serverSettingsSections(client) {
124
127
  update: async (change) => {
125
128
  await call("environments.update", change);
126
129
  },
127
- verify: (kind) => call("environments.verify", { kind })
130
+ verify: (kind) => call("environments.verify", { kind }),
131
+ ...client.can("environments.fieldChoices") ? { fieldChoices: (kind, key) => call("environments.fieldChoices", {
132
+ kind,
133
+ key
134
+ }) } : {},
135
+ ...client.can("environments.sandboxes") ? {
136
+ sandboxes: (kind) => call("environments.sandboxes", { kind }),
137
+ pauseSandbox: async (kind, sandboxId) => {
138
+ await call("environments.pauseSandbox", {
139
+ kind,
140
+ sandboxId
141
+ });
142
+ },
143
+ deleteSandbox: async (kind, sandboxId) => {
144
+ await call("environments.deleteSandbox", {
145
+ kind,
146
+ sandboxId
147
+ });
148
+ }
149
+ } : {}
128
150
  },
129
151
  instructions: {
130
152
  segments: (sessionId) => call("sessions.contextSegments", { sessionId }),
@@ -2,7 +2,9 @@
2
2
  * A `SidebarHost` on a running zidane-server: when the handshake lists
3
3
  * `sessions.environmentActions`, a session's environment commands
4
4
  * (`sessions.environmentActions`, `sessions.runEnvironmentAction`) and
5
- * setting a failed environment up again (`sessions.retryEnvironment`), and,
5
+ * setting a failed environment up again (`sessions.retryEnvironment`), waking
6
+ * a paused one when the handshake lists `sessions.wakeEnvironment`, pausing one and deleting its sandbox when
7
+ * it lists `sessions.pauseEnvironment` and `sessions.deleteEnvironment`, and,
6
8
  * when the handshake lists it, the rows' badges (`artifacts.badges`, read again on a session's `artifact:recorded` /
7
9
  * `artifact:changed` and on `catalog:changed` for extensions).
8
10
  *
@@ -16,7 +16,16 @@ function createServerSidebarHost(options) {
16
16
  }),
17
17
  retry: async (sessionId) => {
18
18
  await client.call("sessions.retryEnvironment", { sessionId });
19
- }
19
+ },
20
+ ...client.can("sessions.wakeEnvironment") ? { wake: async (sessionId) => {
21
+ await client.call("sessions.wakeEnvironment", { sessionId });
22
+ } } : {},
23
+ ...client.can("sessions.pauseEnvironment") ? { pause: async (sessionId) => {
24
+ await client.call("sessions.pauseEnvironment", { sessionId });
25
+ } } : {},
26
+ ...client.can("sessions.deleteEnvironment") ? { remove: async (sessionId) => {
27
+ await client.call("sessions.deleteEnvironment", { sessionId });
28
+ } } : {}
20
29
  } } : {},
21
30
  ...client.can("artifacts.badges") ? { badges: {
22
31
  read: (sessionIds) => client.call("artifacts.badges", { sessionIds: [...sessionIds] }),
@@ -358,7 +358,7 @@ function ModalShell({ title, description, onClose, onBack, footer, actions, chil
358
358
  className: "text-sm font-semibold text-[var(--zg-text)] m-0 zg-balance",
359
359
  children: title
360
360
  }), description && /* @__PURE__ */ jsx("p", {
361
- className: "text-xs text-[var(--zg-text-muted)] mt-0.5 m-0 zg-pretty",
361
+ className: "text-xs text-[var(--zg-text-muted)] mt-0.5 m-0",
362
362
  children: description
363
363
  })]
364
364
  }),
@@ -26,7 +26,7 @@ function ApprovalShell({ title, description, onClose, footer, children, classNam
26
26
  className: "text-sm font-semibold text-[var(--zg-text)] m-0 zg-balance",
27
27
  children: title
28
28
  }), description && /* @__PURE__ */ jsx("p", {
29
- className: "text-xs text-[var(--zg-text-muted)] mt-0.5 m-0 zg-pretty",
29
+ className: "text-xs text-[var(--zg-text-muted)] mt-0.5 m-0",
30
30
  children: description
31
31
  })]
32
32
  }), onClose && /* @__PURE__ */ jsx(IconButton, {
@@ -47,12 +47,40 @@ export interface DaemonOrbProps {
47
47
  /** Inline styles on the root element, merged after the component's own. */
48
48
  style?: CSSProperties;
49
49
  }
50
+ /** Props for {@link StatusOrb}. */
51
+ export interface StatusOrbProps {
52
+ /** What the orb shows. */
53
+ state: OrbState;
54
+ /** A count of work in progress: the orb ripples once when it drops (a run ended). Absent: only state changes ripple. */
55
+ activity?: number;
56
+ /**
57
+ * What the light falls on: a sphere, or a cube (the Environments icon) for where a session runs.
58
+ * @default 'sphere'
59
+ */
60
+ shape?: 'sphere' | 'cube';
61
+ /**
62
+ * Diameter of the orb in pixels. Defaults to 10.
63
+ * @default 10
64
+ */
65
+ size?: number;
66
+ /** Extra classes on the root element. */
67
+ className?: string;
68
+ /** Inline styles on the root element, merged after the component's own. */
69
+ style?: CSSProperties;
70
+ }
71
+ /**
72
+ * Renders a status orb in a given state: the daemon's, or another place's (a session's sandbox or server). It
73
+ * ripples once when the state changes or `activity` drops.
74
+ *
75
+ * @param props - The {@link StatusOrbProps}.
76
+ */
77
+ export declare function StatusOrb({ state, activity, shape, size, className, style }: StatusOrbProps): import("react").JSX.Element;
50
78
  /**
51
79
  * Renders the daemon status orb for the given health and activity counts. It ripples once when the state changes or a run ends.
52
80
  *
53
81
  * @param props - The {@link DaemonOrbProps}.
54
82
  */
55
- export declare function DaemonOrb({ health, running, attention, size, className, style }: DaemonOrbProps): import("react").JSX.Element;
83
+ export declare function DaemonOrb({ health, running, attention, ...rest }: DaemonOrbProps): import("react").JSX.Element;
56
84
  /** Props for {@link DaemonOrbButton}: the orb's `health`, `running`, and `attention` plus the attributes of a `button` (without `children`). */
57
85
  export interface DaemonOrbButtonProps extends Pick<DaemonOrbProps, 'health' | 'running' | 'attention'>, Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {}
58
86
  /** Renders the daemon orb inside an icon-button-sized `button`. The caller supplies the label (for example `aria-label`) and the click handler. */
@@ -1,6 +1,6 @@
1
1
  import { iconButtonClass } from "../components/IconButton.js";
2
2
  import { forwardRef, useEffect, useRef, useState } from "react";
3
- import { jsx } from "react/jsx-runtime";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
4
  // src/chat/DaemonOrb.tsx
5
5
  /**
6
6
  * Maps daemon health and activity counts to an {@link OrbState}. A disconnected daemon is `down` and a connecting one is `connecting`; otherwise waiting sessions win over running ones, and no activity is `idle`.
@@ -16,35 +16,48 @@ function orbState(health, running, attention) {
16
16
  return running > 0 ? "running" : "idle";
17
17
  }
18
18
  /**
19
- * Renders the daemon status orb for the given health and activity counts. It ripples once when the state changes or a run ends.
19
+ * Renders a status orb in a given state: the daemon's, or another place's (a session's sandbox or server). It
20
+ * ripples once when the state changes or `activity` drops.
20
21
  *
21
- * @param props - The {@link DaemonOrbProps}.
22
+ * @param props - The {@link StatusOrbProps}.
22
23
  */
23
- function DaemonOrb({ health, running = 0, attention = 0, size = 10, className, style }) {
24
- const state = orbState(health, running, attention);
24
+ function StatusOrb({ state, activity = 0, shape = "sphere", size = 10, className, style }) {
25
25
  const [ripple, setRipple] = useState(0);
26
26
  const last = useRef({
27
27
  state,
28
- running
28
+ activity
29
29
  });
30
30
  useEffect(() => {
31
31
  const prev = last.current;
32
32
  last.current = {
33
33
  state,
34
- running
34
+ activity
35
35
  };
36
- if (prev.state !== state || running < prev.running) setRipple((n) => n + 1);
37
- }, [state, running]);
38
- return /* @__PURE__ */ jsx("span", {
36
+ if (prev.state !== state || activity < prev.activity) setRipple((n) => n + 1);
37
+ }, [state, activity]);
38
+ return /* @__PURE__ */ jsxs("span", {
39
39
  className: ["zg-orb", className].filter(Boolean).join(" "),
40
40
  "data-state": state,
41
+ "data-shape": shape === "cube" ? "cube" : void 0,
41
42
  style: {
42
43
  width: size,
43
44
  height: size,
44
45
  ...style
45
46
  },
46
47
  "aria-hidden": true,
47
- children: ripple > 0 && /* @__PURE__ */ jsx("span", { className: "zg-orb-ripple" }, ripple)
48
+ children: [shape === "cube" && /* @__PURE__ */ jsx("span", { className: "zg-orb-cube i-ph-cube-fill" }), ripple > 0 && /* @__PURE__ */ jsx("span", { className: "zg-orb-ripple" }, ripple)]
49
+ });
50
+ }
51
+ /**
52
+ * Renders the daemon status orb for the given health and activity counts. It ripples once when the state changes or a run ends.
53
+ *
54
+ * @param props - The {@link DaemonOrbProps}.
55
+ */
56
+ function DaemonOrb({ health, running = 0, attention = 0, ...rest }) {
57
+ return /* @__PURE__ */ jsx(StatusOrb, {
58
+ state: orbState(health, running, attention),
59
+ activity: running,
60
+ ...rest
48
61
  });
49
62
  }
50
63
  /** Renders the daemon orb inside an icon-button-sized `button`. The caller supplies the label (for example `aria-label`) and the click handler. */
@@ -62,4 +75,4 @@ const DaemonOrbButton = forwardRef(({ health, running, attention, className = ""
62
75
  });
63
76
  });
64
77
  DaemonOrbButton.displayName = "DaemonOrbButton";
65
- export { DaemonOrb, DaemonOrbButton, orbState };
78
+ export { DaemonOrb, DaemonOrbButton, StatusOrb, orbState };
@@ -1,7 +1,7 @@
1
1
  import { ZidaneMark } from "../components/ZidaneMark.js";
2
2
  import { Presence } from "../motion/swap.js";
3
3
  import { useChatLabels } from "./useChatLabels.js";
4
- import { memo } from "react";
4
+ import { memo, useState } from "react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  // src/chat/StatusDot.tsx
7
7
  /**
@@ -75,9 +75,15 @@ const RIPPLE_STYLE = {
75
75
  background: "var(--zg-warn-dot)",
76
76
  animation: "zg-dot 1.8s ease-in-out infinite"
77
77
  };
78
+ /** The completed dot without its pop: drawn so when a row mounts already completed (the pop is for the change). */
79
+ const COMPLETED_STILL = { background: "var(--zg-success-dot)" };
78
80
  function StatusDotInner({ state, label, className, style }) {
79
81
  const labels = useChatLabels();
82
+ const [stateAtMount] = useState(state);
83
+ const [changed, setChanged] = useState(false);
84
+ if (!changed && state !== stateAtMount) setChanged(true);
80
85
  const cfg = STYLES[state];
86
+ const coreStyle = state === "completed" && !changed ? COMPLETED_STILL : cfg.style;
81
87
  const name = label ?? labels[cfg.label];
82
88
  return /* @__PURE__ */ jsxs("span", {
83
89
  role: "img",
@@ -89,7 +95,7 @@ function StatusDotInner({ state, label, className, style }) {
89
95
  /* @__PURE__ */ jsx("span", {
90
96
  "aria-hidden": true,
91
97
  className: `zg-state-tween absolute inset-0 rounded-full${state === "attention" ? " zg-loop" : ""}`,
92
- style: cfg.style,
98
+ style: coreStyle,
93
99
  "data-core": true
94
100
  }),
95
101
  /* @__PURE__ */ jsx(Presence, {
@@ -14,6 +14,7 @@ import { MediaGalleryProvider } from "./transcript/media-gallery.js";
14
14
  import { rowCvStyle, rowEstimatePx } from "./transcript/row-estimate.js";
15
15
  import { SelectCursor } from "./transcript/SelectCursor.js";
16
16
  import { SubagentBlock } from "./transcript/SubagentBlock.js";
17
+ import { RailTint, useRailPublish } from "./transcript/TranscriptRail.js";
17
18
  import { TranscriptRow, TranscriptRowSlot, isHiddenRow } from "./transcript/TranscriptRow.js";
18
19
  import { useSelectStops, useTranscriptRows } from "./transcript/use-transcript-rows.js";
19
20
  import { useTranscriptSelectionCopy } from "./transcript/useTranscriptSelectionCopy.js";
@@ -193,6 +194,8 @@ const Transcript = memo(({ events, streaming, sessionId, options, selection, tur
193
194
  ]);
194
195
  const selectedTurnId = selection?.selected ?? null;
195
196
  const stops = useSelectStops(visibleRows, events, showThinking, selectedTurnId !== null, selection?.registerStops);
197
+ const hiddenRow = useCallback((row) => isHiddenRow(row, showThinking), [showThinking]);
198
+ const rail = useRailPublish(clusters, hiddenRow, receiptByRowId, selectedTurnId);
196
199
  const containerRef = useRef(null);
197
200
  const rowCtx = useMemo(() => ({
198
201
  sessionId,
@@ -405,10 +408,14 @@ const Transcript = memo(({ events, streaming, sessionId, options, selection, tur
405
408
  children: [
406
409
  /* @__PURE__ */ jsxs("div", {
407
410
  className: "zg-timeline relative pl-2 pr-1 py-1",
408
- children: [/* @__PURE__ */ jsx(SelectCursor, {
409
- selected: selectedTurnId,
410
- layout: stops
411
- }), viewsReady || settle.current.shown ? rootRows : null]
411
+ children: [
412
+ /* @__PURE__ */ jsx(SelectCursor, {
413
+ selected: selectedTurnId,
414
+ layout: stops
415
+ }),
416
+ rail && /* @__PURE__ */ jsx(RailTint, { store: rail }),
417
+ viewsReady || settle.current.shown ? rootRows : null
418
+ ]
412
419
  }),
413
420
  sessionId && !streaming && events.length > 0 && /* @__PURE__ */ jsx(ExtensionSlot, {
414
421
  at: "transcript.turn-end",
@@ -58,7 +58,7 @@ import { DotStateInput, SidebarDotState, deriveDotState } from "./sidebar/dot-st
58
58
  import { deleteSessionPrompt, environmentKindLabel, environmentSummaryText, runsInRemoteSandbox } from "./sidebar/environment.js";
59
59
  import { RunEstimatesRow, RunEstimatesSignal, RunEstimatesStore, createRunEstimates, pickRunEstimate } from "./sidebar/estimates.js";
60
60
  import { SESSION_HISTORY_LIMIT, SessionHistory, SessionHistoryDirection, SessionHistoryOptions, SessionHistoryPage, SessionHistoryState, SessionHistoryStore, createSessionHistory, parseSessionHistory } from "./sidebar/history.js";
61
- import { INBOX_EARLIER_AFTER_MS, INBOX_PAGE, INBOX_PAGE_MORE, INBOX_SHELVES, INBOX_SHELVES_FOLDED, INBOX_SHELVES_KEY, InboxRow, InboxRowsOptions, InboxSection, InboxShelfId, InboxUrgency, buildInboxRows, compareInboxSection, inboxDockStart, inboxEarlierAfterMs, inboxFolderOf, inboxSectionOf, inboxSessionOrder, nextInboxChangeAt } from "./sidebar/inbox.js";
61
+ import { INBOX_EARLIER_AFTER_MS, INBOX_PAGE, INBOX_PAGE_MORE, INBOX_RUN_HOLD_MS, INBOX_SHELVES, INBOX_SHELVES_FOLDED, INBOX_SHELVES_KEY, InboxRow, InboxRowsOptions, InboxSection, InboxShelfId, InboxUrgency, buildInboxRows, compareInboxSection, inboxDockStart, inboxEarlierAfterMs, inboxFolderOf, inboxSectionOf, inboxSessionOrder, nextInboxChangeAt } from "./sidebar/inbox.js";
62
62
  import { SessionInboxFields, SessionInboxPatch, applyInboxPatch, isSettled, isSnoozed, nextWakeAt } from "./sidebar/inbox-state.js";
63
63
  import { PINNED_PROJECTS_KEY, PinsBySpace, parsePinnedProjects, withPinnedProject } from "./sidebar/pinned-projects.js";
64
64
  import { pinSession, pinnedSessions } from "./sidebar/pinned-sessions.js";
@@ -80,8 +80,9 @@ import { dockRunReceipts, dotVariantFor, findLastStreamingRow, foldExchanges, fo
80
80
  import { FoldActionItem, FoldActionState, foldActionItems, toolAction } from "./transcript/fold-actions.js";
81
81
  import { nestToolCalls, nestedCallVisible } from "./transcript/nesting.js";
82
82
  import { PairingResult, ToolPairing, pairToolEvents } from "./transcript/pairing.js";
83
+ import { EMPTY_RAIL, RailExchange, RailModel, TranscriptRailState, TranscriptRailStore, computeRailModel, createTranscriptRailStore, dataRowSelector, plainPreview, sameRail } from "./transcript/rail.js";
83
84
  import { RunFailure, failureTooltip, markRunFailures } from "./transcript/run-failures.js";
84
85
  import { SelectStops, computeSelectStops, rowTurnIds, stopForRow } from "./transcript/select-stops.js";
85
86
  import { ChatBadgeActions, ChatChipDetails, ChatCommandFacts, ChatCommit, ChatContextFacts, ChatPaths, ChatReferences, ChatReferencesChange, ChatResolvedPath, ChatSearchState, ChatSearchSync, ChatSessionFacts, ChatSiteIcons, ChatSkillFacts } from "./transcript-host.js";
86
87
  import { TurnPromptDraft, promptDraftOf } from "./turn-prompt.js";
87
- export { AGENT_GROUPING, type AuthCardPlan, type AuthFixes, type AuthSettingsTarget, type BashExitMeta, BookDraft, BuildQuerySidebarRowsOptions, BuildSidebarRowsOptions, CHATS_BUCKET, CHUNK_THRESHOLD, COMMON_EMOJI, CalendarOptions, ChatAttachment, ChatAttachmentOriginal, ChatBadgeActions, ChatBlockRunOptions, ChatBlockRunTransport, ChatBlockRuns, ChatChipDetails, ChatCommandFacts, ChatCommit, ChatContextFacts, ChatEvent, ChatHost, ChatInteraction, ChatLabels, ChatModel, ChatModelProvider, ChatPaths, ChatReferences, ChatReferencesChange, ChatResolvedPath, ChatSearchState, ChatSearchSync, ChatSession, ChatSessionFacts, ChatSessionStatus, ChatSiteIcons, ChatSkillFacts, ChipResolution, ChipViewLabels, type Cluster, type CommandArgSuggestionSummary, type CommandSummary, CompactionProgress, CompactionProgressStore, CompactionSignal, ComposerAgentProfile, ComposerAgents, ComposerAttachment, ComposerAutocomplete, ComposerCacheImpact, ComposerCacheImpactChange, ComposerChromeLabels, ComposerCommandArgs, ComposerCompletions, ComposerContext, ComposerContextBreakdown, ComposerContextStatus, ComposerControls, ComposerCostStatus, ComposerDraftAttachmentsListener, ComposerDraftStorage, ComposerDrafts, ComposerEffort, ComposerExtensionItem, ComposerExtensionProvider, ComposerFolderLocation, ComposerFolders, ComposerHost, ComposerLabels, type ComposerListScope, type ComposerLists, ComposerMode, ComposerModelEntry, ComposerModelOption, ComposerModels, ComposerPrefs, ComposerPrefsState, ComposerPromptSuggestion, ComposerRememberedModel, ComposerRunProgress, ComposerRuns, ComposerScope, ComposerSessionView, ComposerSharedGhost, ComposerSkillGroup, ComposerSuggestions, ConversationBadge, ConversationBadgeData, ConversationBadgeInput, DEFAULT_CHAT_LABELS, DEFAULT_COMPOSER_CHROME_LABELS, DEFAULT_COMPOSER_LABELS, DEFAULT_MODEL_PICKER_PREFS, DEFAULT_SIDEBAR_LABELS, DEFAULT_SIDEBAR_VIEW, DEFAULT_SIDEBAR_VIEW_DEFAULTS, DEFAULT_SWITCHER_PREFS, DeltaBucket, DirectoryServer, DirectorySettings, DotStateInput, type DotVariant, DraftBook, DraftFolderSource, DraftFolderState, DraftPlaceIssue, DraftScope, DraftScopeState, DraftScopeStore, DraftScopeStoreOptions, type DrainPlan, EMPTY_RUN_METER, EffortPickerTarget, type ExchangeFoldStats, type ExchangeMedium, FileChip, FileChipKind, type FileEntry, type FoldActionItem, type FoldActionState, type FrameScheduler, type GroupCluster, HostStatus, HostView, INBOX_EARLIER_AFTER_MS, INBOX_PAGE, INBOX_PAGE_MORE, INBOX_SHELVES, INBOX_SHELVES_FOLDED, INBOX_SHELVES_KEY, ImageModelRow, InboxRow, InboxRowsOptions, InboxSection, InboxShelfId, InboxSummary, InboxUrgency, LIVE_BLOCK_RUN_LINES, type LazyList, ListableSession, LiveBlockRun, LiveCostStatus, LiveStreamProgress, type LoadEarlierOptions, MAIN_SESSION_ICON_KEY, MAX_EXTENSION_COMPOSER_BADGES, MAX_ROW_CHIPS, MODEL_PICKER_STORAGE_KEY, type MediaRef, ModelCatalogRow, ModelKnobs, ModelKnobsMemory, ModelKnobsStore, ModelNames, ModelNamesProvider, ModelNamesStore, ModelPickRef, ModelPickerPrefs, ModelPickerPrefsStorage, ModelPickerPrefsStore, NO_PROVIDER_ERROR, NO_SIDEBAR_CONTRIBUTIONS, NewChatPlaceKey, NewSessionDefaults, NewSessionRequest, type NotificationSettings, type NotifyEvent, OpenFence, type OtherStreamSignal, type Owned, PINNED_PROJECTS_KEY, PROJECT_GROUP_CAP, PROJECT_ICONS_KEY, type PairingResult, PathResolver, PathResolverOptions, type PendingEcho, PinsBySpace, ProjectIcon, ProjectIconMap, ProjectInSpace, type PromptAttachment, type PromptOrigin, type PromptOriginWire, type PromptViewOrigin, REFERENCES_STORAGE_KEY, RELATIVE_TIME_DATE_AFTER_DAYS, Readable, ReferenceStore, ReferenceStoreOptions, ReferenceViewEntry, type ResourceSnapshot, type Row, RunEstimatesRow, RunEstimatesSignal, RunEstimatesStore, type RunFailure, RunMeter, RunMeterRow, RunMeterSignal, RunMeterState, RuntimeNow, RuntimeOrigin, SESSION_HISTORY_LIMIT, SIDEBAR_SPACE_KEY, SIDEBAR_SWITCHER_KEY, SIDEBAR_VIEW_KEY, SIDEBAR_VIEW_VERSION, SMOOTH_TICK_MS, SecretTimeLeft, type SelectStops, SendAttachment, SendDraft, SendFlowDeps, SendInput, SendPromptAttachment, SendRequest, SessionActivity, SessionActivityFilter, SessionActivitySignal, SessionActivityStore, SessionArchiveFilter, SessionBadgesEntry, SessionBadgesSource, SessionBadgesStore, SessionDirectory, SessionDirectoryOptions, SessionDirectorySource, SessionDirectoryState, SessionDirectoryStreams, type SessionFallbackModel, SessionGroupBy, SessionHistory, SessionHistoryDirection, SessionHistoryOptions, SessionHistoryPage, SessionHistoryState, SessionHistoryStore, type SessionInboxFields, type SessionInboxPatch, SessionListOptions, SessionListRow, SessionNotification, SessionNotificationStore, type SessionPageState, SessionRef, SessionRemoval, type SessionRetryState, SessionRowChange, SessionSearchHit, SessionSortBy, type SessionStreamActions, type SessionStreamPage, type SessionStreamSignal, SessionStreamStore, type SessionStreamStoreOptions, type SessionStreamWrite, type SessionStreams, type SessionStreamsOptions, SessionWindowMode, SetDefaultModel, SharedDraft, SharedDraftAttachmentsChange, SharedDraftChange, SidebarContributionStores, SidebarContributions, SidebarDotState, SidebarEnvironmentHost, SidebarExtensionView, SidebarGroupBy, SidebarGrouping, SidebarHost, SidebarInboxGroupBy, SidebarItemEntry, SidebarLabels, SidebarLastSessions, type SidebarLayout, SidebarListRow, SidebarListSession, SidebarNode, SidebarOrigin, SidebarQueryLayer, SidebarRowChip, SidebarRowDecoration, SidebarSortBy, SidebarSpace, SidebarView, SidebarViewDefaults, SidebarViewMap, SidebarViewPicks, SidebarViewRecord, SidebarViews, SidebarViewsHost, SidebarViewsOptions, SidebarViewsStorage, type SkillConfig, SpaceSwitcherPrefs, type SpawnMeta, StoredComposerDraft, type TaskInfo, type ToolPairing, type ToolRowModel, Transcript, TranscriptState, TurnPromptDraft, UNDECIDED_NEW_CHAT_DRAFT_KEY, VIEW_CHOICE, WebStorageDraftStorageOptions, Writable, activityLabel, applyInboxPatch, approvalNotificationDetail, authFailureDetails, availableProjectsOf, batchTaskRuns, batchThinkingRuns, batchToolRuns, beginChipWork, buildHostSidebarRows, buildInboxRows, buildQuerySidebarRows, buildSessionRows, buildSidebarRows, caretEffectivelyAtStart, chipForPath, chipWorkBusy, claimChildSessions, classifyInlineCode, clearedViewFilters, clusterByOwner, collapseEvents, commandName, commandRef, commandView, commitModelPick, commitView, compareInboxSection, compareSessions, composeLiveCost, composeSubmitText, computeSelectStops, constant, conversationBadges, createAuthFixes, createChatBlockRuns, createCompactionProgress, createComposerLists, createDecorator, createDraftBook, createDraftScopeStore, createModelKnobs, createModelNames, createModelPickerPrefs, createNotificationStore, createPathResolver, createReferenceStore, createRunEstimates, createRunMeter, createSessionActivity, createSessionBadges, createSessionDirectory, createSessionHistory, createSessionStreamActions, createSessionStreams, createSidebarViews, createSiteIcons, createWebStorageDraftStorage, dateBucket, decodeHistoryEntry, defaultFrameScheduler, defaultModelPatch, defaultSidebarLayout, deleteSessionPrompt, deriveDotState, dockRunReceipts, dotVariantFor, draftBookOf, draftFolderPath, draftLocalFolder, draftScopeOf, drainBucket, effortPickerTarget, encodeHistoryDraft, environmentKindLabel, environmentSummaryText, exchangesMedia, exitsModeOnKey, extensionSpaceOf, failureTooltip, filterDirectorySessions, filterQueryOf, filterSessions, filtersForSpace, findCommand, findLastStreamingRow, firstGrapheme, firstRowId, foldActionItems, foldExchanges, foldWorkerRows, formatElapsedShort, formatSessionCostLabel, groupsByFolder, hostReachable, hostStatusLabel, inboxDockStart, inboxEarlierAfterMs, inboxFolderOf, inboxSectionOf, inboxSessionOrder, inheritRowIdentity, isAuthFixed, isProjectIcon, isProjectMember, isSettled, isSnoozed, itemRows, itemsForSpace, lastModelChainOf, markRunFailures, mediaRefsOf, mediumKey, mergeLiveTail, mergePromptPreviews, mergeSidebarSpaces, missingPreviewData, modeForTypedChar, modelKnobsOf, modelNamesOf, namerFor, nestSidebarRows, nestToolCalls, nestedCallVisible, newChatDraftKey, newSessionRequest, nextInboxChangeAt, nextSavedViewName, nextWakeAt, notificationContent, openFenceOf, pairToolEvents, parseBashExitMeta, parseModelPickerPrefs, parsePinnedProjects, parseProjectIcons, parseSessionHistory, parseSidebarView, parseSidebarViewPicks, parseSwitcherPrefs, partitionMainSession, pickRunEstimate, pinSession, pinnedSessions, planAuthCard, positionSuffix, projectKeyOf, projectPathOf, promptAttachments, promptDraftOf, promptOriginWire, promptRefs, questionNotificationDetail, readSidebarViews, recentHostFolders, recentLocalFolders, reduceActivity, reduceCompaction, refusedSpawn, relativeTime, rememberableChain, rememberedDefaultModel, rememberedPick, repoGroups, resetChipWorkForTests, resolveBadgePanel, resolveChipPath, resolveGrouping, resolveSidebarView, resolveSort, rowTurnIds, runsInRemoteSandbox, safeSurrogateSlice, secretExpiryWords, secretTimeLeft, secretTimeLeftIso, selectEditEvents, sendPrompt, sessionForToken, sessionRefsOf, sessionView, settledResource, shellCommandOf, shortUrl, shouldNotify, sidebarContributionsOf, sidebarLayoutOf, sidebarViewDefaults, siteOrigin, skillGroupView, skillName, skillView, spaceMembership, splitMarkdown, stableSelection, stopForRow, switcherSpaces, tickBucket, toolAction, toolFailed, unsentDraft, urlRefs, useReadable, viewFilterOf, viewFiltersOn, whenChipsSettle, wireAttachmentsToChat, wireOriginal, withPinnedProject, withoutPartialEmphasis, withoutPartialFence, writable };
88
+ export { AGENT_GROUPING, type AuthCardPlan, type AuthFixes, type AuthSettingsTarget, type BashExitMeta, BookDraft, BuildQuerySidebarRowsOptions, BuildSidebarRowsOptions, CHATS_BUCKET, CHUNK_THRESHOLD, COMMON_EMOJI, CalendarOptions, ChatAttachment, ChatAttachmentOriginal, ChatBadgeActions, ChatBlockRunOptions, ChatBlockRunTransport, ChatBlockRuns, ChatChipDetails, ChatCommandFacts, ChatCommit, ChatContextFacts, ChatEvent, ChatHost, ChatInteraction, ChatLabels, ChatModel, ChatModelProvider, ChatPaths, ChatReferences, ChatReferencesChange, ChatResolvedPath, ChatSearchState, ChatSearchSync, ChatSession, ChatSessionFacts, ChatSessionStatus, ChatSiteIcons, ChatSkillFacts, ChipResolution, ChipViewLabels, type Cluster, type CommandArgSuggestionSummary, type CommandSummary, CompactionProgress, CompactionProgressStore, CompactionSignal, ComposerAgentProfile, ComposerAgents, ComposerAttachment, ComposerAutocomplete, ComposerCacheImpact, ComposerCacheImpactChange, ComposerChromeLabels, ComposerCommandArgs, ComposerCompletions, ComposerContext, ComposerContextBreakdown, ComposerContextStatus, ComposerControls, ComposerCostStatus, ComposerDraftAttachmentsListener, ComposerDraftStorage, ComposerDrafts, ComposerEffort, ComposerExtensionItem, ComposerExtensionProvider, ComposerFolderLocation, ComposerFolders, ComposerHost, ComposerLabels, type ComposerListScope, type ComposerLists, ComposerMode, ComposerModelEntry, ComposerModelOption, ComposerModels, ComposerPrefs, ComposerPrefsState, ComposerPromptSuggestion, ComposerRememberedModel, ComposerRunProgress, ComposerRuns, ComposerScope, ComposerSessionView, ComposerSharedGhost, ComposerSkillGroup, ComposerSuggestions, ConversationBadge, ConversationBadgeData, ConversationBadgeInput, DEFAULT_CHAT_LABELS, DEFAULT_COMPOSER_CHROME_LABELS, DEFAULT_COMPOSER_LABELS, DEFAULT_MODEL_PICKER_PREFS, DEFAULT_SIDEBAR_LABELS, DEFAULT_SIDEBAR_VIEW, DEFAULT_SIDEBAR_VIEW_DEFAULTS, DEFAULT_SWITCHER_PREFS, DeltaBucket, DirectoryServer, DirectorySettings, DotStateInput, type DotVariant, DraftBook, DraftFolderSource, DraftFolderState, DraftPlaceIssue, DraftScope, DraftScopeState, DraftScopeStore, DraftScopeStoreOptions, type DrainPlan, EMPTY_RAIL, EMPTY_RUN_METER, EffortPickerTarget, type ExchangeFoldStats, type ExchangeMedium, FileChip, FileChipKind, type FileEntry, type FoldActionItem, type FoldActionState, type FrameScheduler, type GroupCluster, HostStatus, HostView, INBOX_EARLIER_AFTER_MS, INBOX_PAGE, INBOX_PAGE_MORE, INBOX_RUN_HOLD_MS, INBOX_SHELVES, INBOX_SHELVES_FOLDED, INBOX_SHELVES_KEY, ImageModelRow, InboxRow, InboxRowsOptions, InboxSection, InboxShelfId, InboxSummary, InboxUrgency, LIVE_BLOCK_RUN_LINES, type LazyList, ListableSession, LiveBlockRun, LiveCostStatus, LiveStreamProgress, type LoadEarlierOptions, MAIN_SESSION_ICON_KEY, MAX_EXTENSION_COMPOSER_BADGES, MAX_ROW_CHIPS, MODEL_PICKER_STORAGE_KEY, type MediaRef, ModelCatalogRow, ModelKnobs, ModelKnobsMemory, ModelKnobsStore, ModelNames, ModelNamesProvider, ModelNamesStore, ModelPickRef, ModelPickerPrefs, ModelPickerPrefsStorage, ModelPickerPrefsStore, NO_PROVIDER_ERROR, NO_SIDEBAR_CONTRIBUTIONS, NewChatPlaceKey, NewSessionDefaults, NewSessionRequest, type NotificationSettings, type NotifyEvent, OpenFence, type OtherStreamSignal, type Owned, PINNED_PROJECTS_KEY, PROJECT_GROUP_CAP, PROJECT_ICONS_KEY, type PairingResult, PathResolver, PathResolverOptions, type PendingEcho, PinsBySpace, ProjectIcon, ProjectIconMap, ProjectInSpace, type PromptAttachment, type PromptOrigin, type PromptOriginWire, type PromptViewOrigin, REFERENCES_STORAGE_KEY, RELATIVE_TIME_DATE_AFTER_DAYS, type RailExchange, type RailModel, Readable, ReferenceStore, ReferenceStoreOptions, ReferenceViewEntry, type ResourceSnapshot, type Row, RunEstimatesRow, RunEstimatesSignal, RunEstimatesStore, type RunFailure, RunMeter, RunMeterRow, RunMeterSignal, RunMeterState, RuntimeNow, RuntimeOrigin, SESSION_HISTORY_LIMIT, SIDEBAR_SPACE_KEY, SIDEBAR_SWITCHER_KEY, SIDEBAR_VIEW_KEY, SIDEBAR_VIEW_VERSION, SMOOTH_TICK_MS, SecretTimeLeft, type SelectStops, SendAttachment, SendDraft, SendFlowDeps, SendInput, SendPromptAttachment, SendRequest, SessionActivity, SessionActivityFilter, SessionActivitySignal, SessionActivityStore, SessionArchiveFilter, SessionBadgesEntry, SessionBadgesSource, SessionBadgesStore, SessionDirectory, SessionDirectoryOptions, SessionDirectorySource, SessionDirectoryState, SessionDirectoryStreams, type SessionFallbackModel, SessionGroupBy, SessionHistory, SessionHistoryDirection, SessionHistoryOptions, SessionHistoryPage, SessionHistoryState, SessionHistoryStore, type SessionInboxFields, type SessionInboxPatch, SessionListOptions, SessionListRow, SessionNotification, SessionNotificationStore, type SessionPageState, SessionRef, SessionRemoval, type SessionRetryState, SessionRowChange, SessionSearchHit, SessionSortBy, type SessionStreamActions, type SessionStreamPage, type SessionStreamSignal, SessionStreamStore, type SessionStreamStoreOptions, type SessionStreamWrite, type SessionStreams, type SessionStreamsOptions, SessionWindowMode, SetDefaultModel, SharedDraft, SharedDraftAttachmentsChange, SharedDraftChange, SidebarContributionStores, SidebarContributions, SidebarDotState, SidebarEnvironmentHost, SidebarExtensionView, SidebarGroupBy, SidebarGrouping, SidebarHost, SidebarInboxGroupBy, SidebarItemEntry, SidebarLabels, SidebarLastSessions, type SidebarLayout, SidebarListRow, SidebarListSession, SidebarNode, SidebarOrigin, SidebarQueryLayer, SidebarRowChip, SidebarRowDecoration, SidebarSortBy, SidebarSpace, SidebarView, SidebarViewDefaults, SidebarViewMap, SidebarViewPicks, SidebarViewRecord, SidebarViews, SidebarViewsHost, SidebarViewsOptions, SidebarViewsStorage, type SkillConfig, SpaceSwitcherPrefs, type SpawnMeta, StoredComposerDraft, type TaskInfo, type ToolPairing, type ToolRowModel, Transcript, type TranscriptRailState, type TranscriptRailStore, TranscriptState, TurnPromptDraft, UNDECIDED_NEW_CHAT_DRAFT_KEY, VIEW_CHOICE, WebStorageDraftStorageOptions, Writable, activityLabel, applyInboxPatch, approvalNotificationDetail, authFailureDetails, availableProjectsOf, batchTaskRuns, batchThinkingRuns, batchToolRuns, beginChipWork, buildHostSidebarRows, buildInboxRows, buildQuerySidebarRows, buildSessionRows, buildSidebarRows, caretEffectivelyAtStart, chipForPath, chipWorkBusy, claimChildSessions, classifyInlineCode, clearedViewFilters, clusterByOwner, collapseEvents, commandName, commandRef, commandView, commitModelPick, commitView, compareInboxSection, compareSessions, composeLiveCost, composeSubmitText, computeRailModel, computeSelectStops, constant, conversationBadges, createAuthFixes, createChatBlockRuns, createCompactionProgress, createComposerLists, createDecorator, createDraftBook, createDraftScopeStore, createModelKnobs, createModelNames, createModelPickerPrefs, createNotificationStore, createPathResolver, createReferenceStore, createRunEstimates, createRunMeter, createSessionActivity, createSessionBadges, createSessionDirectory, createSessionHistory, createSessionStreamActions, createSessionStreams, createSidebarViews, createSiteIcons, createTranscriptRailStore, createWebStorageDraftStorage, dataRowSelector, dateBucket, decodeHistoryEntry, defaultFrameScheduler, defaultModelPatch, defaultSidebarLayout, deleteSessionPrompt, deriveDotState, dockRunReceipts, dotVariantFor, draftBookOf, draftFolderPath, draftLocalFolder, draftScopeOf, drainBucket, effortPickerTarget, encodeHistoryDraft, environmentKindLabel, environmentSummaryText, exchangesMedia, exitsModeOnKey, extensionSpaceOf, failureTooltip, filterDirectorySessions, filterQueryOf, filterSessions, filtersForSpace, findCommand, findLastStreamingRow, firstGrapheme, firstRowId, foldActionItems, foldExchanges, foldWorkerRows, formatElapsedShort, formatSessionCostLabel, groupsByFolder, hostReachable, hostStatusLabel, inboxDockStart, inboxEarlierAfterMs, inboxFolderOf, inboxSectionOf, inboxSessionOrder, inheritRowIdentity, isAuthFixed, isProjectIcon, isProjectMember, isSettled, isSnoozed, itemRows, itemsForSpace, lastModelChainOf, markRunFailures, mediaRefsOf, mediumKey, mergeLiveTail, mergePromptPreviews, mergeSidebarSpaces, missingPreviewData, modeForTypedChar, modelKnobsOf, modelNamesOf, namerFor, nestSidebarRows, nestToolCalls, nestedCallVisible, newChatDraftKey, newSessionRequest, nextInboxChangeAt, nextSavedViewName, nextWakeAt, notificationContent, openFenceOf, pairToolEvents, parseBashExitMeta, parseModelPickerPrefs, parsePinnedProjects, parseProjectIcons, parseSessionHistory, parseSidebarView, parseSidebarViewPicks, parseSwitcherPrefs, partitionMainSession, pickRunEstimate, pinSession, pinnedSessions, plainPreview, planAuthCard, positionSuffix, projectKeyOf, projectPathOf, promptAttachments, promptDraftOf, promptOriginWire, promptRefs, questionNotificationDetail, readSidebarViews, recentHostFolders, recentLocalFolders, reduceActivity, reduceCompaction, refusedSpawn, relativeTime, rememberableChain, rememberedDefaultModel, rememberedPick, repoGroups, resetChipWorkForTests, resolveBadgePanel, resolveChipPath, resolveGrouping, resolveSidebarView, resolveSort, rowTurnIds, runsInRemoteSandbox, safeSurrogateSlice, sameRail, secretExpiryWords, secretTimeLeft, secretTimeLeftIso, selectEditEvents, sendPrompt, sessionForToken, sessionRefsOf, sessionView, settledResource, shellCommandOf, shortUrl, shouldNotify, sidebarContributionsOf, sidebarLayoutOf, sidebarViewDefaults, siteOrigin, skillGroupView, skillName, skillView, spaceMembership, splitMarkdown, stableSelection, stopForRow, switcherSpaces, tickBucket, toolAction, toolFailed, unsentDraft, urlRefs, useReadable, viewFilterOf, viewFiltersOn, whenChipsSettle, wireAttachmentsToChat, wireOriginal, withPinnedProject, withoutPartialEmphasis, withoutPartialFence, writable };
@@ -32,24 +32,28 @@ import { exchangesMedia, mediaRefsOf, mediumKey } from "./transcript/exchange-me
32
32
  import { foldActionItems, toolAction } from "./transcript/fold-actions.js";
33
33
  import { dockRunReceipts, dotVariantFor, findLastStreamingRow, foldExchanges, foldWorkerRows } from "./transcript/fold.js";
34
34
  import { nestToolCalls, nestedCallVisible } from "./transcript/nesting.js";
35
- import { failureTooltip, markRunFailures } from "./transcript/run-failures.js";
36
35
  import { computeSelectStops, rowTurnIds, stopForRow } from "./transcript/select-stops.js";
36
+ import { EMPTY_RAIL, computeRailModel, createTranscriptRailStore, dataRowSelector, plainPreview, sameRail } from "./transcript/rail.js";
37
+ import { failureTooltip, markRunFailures } from "./transcript/run-failures.js";
37
38
  import { secretTimeLeft, secretTimeLeftIso } from "./secrets.js";
39
+ import { createModelKnobs, modelKnobsOf } from "./composer/model-knobs.js";
40
+ import { createModelNames, modelNamesOf, namerFor } from "./composer/model-names.js";
41
+ import { NO_PROVIDER_ERROR, newSessionRequest, promptAttachments, promptRefs, sendPrompt, shellCommandOf, wireOriginal } from "./send-flow.js";
38
42
  import { createRunEstimates, pickRunEstimate } from "./sidebar/estimates.js";
39
43
  import { createSessionStreamActions } from "./streams/actions.js";
40
44
  import { selectEditEvents, stableSelection } from "./streams/selectors.js";
41
45
  import { createSessionStreams } from "./streams/session-streams.js";
42
46
  import { composeLiveCost, formatSessionCostLabel } from "./composer/live-cost.js";
43
- import { createModelKnobs, modelKnobsOf } from "./composer/model-knobs.js";
44
- import { createModelNames, modelNamesOf, namerFor } from "./composer/model-names.js";
45
47
  import { commitModelPick, lastModelChainOf, rememberableChain, rememberedPick, settledResource } from "./composer/remember-model-pick.js";
46
48
  import { MAX_EXTENSION_COMPOSER_BADGES, conversationBadges, resolveBadgePanel } from "./composer/conversation-badges.js";
47
- import { NO_PROVIDER_ERROR, newSessionRequest, promptAttachments, promptRefs, sendPrompt, shellCommandOf, wireOriginal } from "./send-flow.js";
48
- import { defaultModelPatch, effortPickerTarget, rememberedDefaultModel } from "./composer/new-session-defaults.js";
49
49
  import { PROJECT_GROUP_CAP, RELATIVE_TIME_DATE_AFTER_DAYS, buildSessionRows, compareSessions, dateBucket, filterSessions, formatElapsedShort, relativeTime } from "./session-list.js";
50
+ import { defaultModelPatch, effortPickerTarget, rememberedDefaultModel } from "./composer/new-session-defaults.js";
50
51
  import { wireAttachmentsToChat } from "./composer/draft-sync.js";
51
52
  import { createSiteIcons, siteOrigin } from "./site-icons.js";
53
+ import { COMMON_EMOJI, MAIN_SESSION_ICON_KEY, PROJECT_ICONS_KEY, firstGrapheme, isProjectIcon, parseProjectIcons } from "./sidebar/project-icons.js";
52
54
  import { DEFAULT_SIDEBAR_LABELS } from "./sidebar/labels.js";
55
+ import { deleteSessionPrompt, environmentKindLabel, environmentSummaryText, runsInRemoteSandbox } from "./sidebar/environment.js";
56
+ import { pinSession, pinnedSessions } from "./sidebar/pinned-sessions.js";
53
57
  import { activityLabel, createSessionActivity, reduceActivity } from "./sidebar/activity.js";
54
58
  import { createSessionBadges } from "./sidebar/badges.js";
55
59
  import { createCompactionProgress, reduceCompaction } from "./sidebar/compaction.js";
@@ -60,15 +64,12 @@ import { CHATS_BUCKET, buildHostSidebarRows, buildQuerySidebarRows, buildSidebar
60
64
  import { DEFAULT_SIDEBAR_VIEW, DEFAULT_SIDEBAR_VIEW_DEFAULTS, DEFAULT_SWITCHER_PREFS, SIDEBAR_SPACE_KEY, SIDEBAR_SWITCHER_KEY, SIDEBAR_VIEW_KEY, SIDEBAR_VIEW_VERSION, createSidebarViews, defaultSidebarLayout, parseSidebarView, parseSidebarViewPicks, parseSwitcherPrefs, readSidebarViews, resolveSidebarView, sidebarLayoutOf, sidebarViewDefaults } from "./sidebar/view.js";
61
65
  import { availableProjectsOf, createSessionDirectory, filterDirectorySessions, projectKeyOf, sessionRefsOf } from "./sidebar/directory.js";
62
66
  import { deriveDotState } from "./sidebar/dot-state.js";
63
- import { deleteSessionPrompt, environmentKindLabel, environmentSummaryText, runsInRemoteSandbox } from "./sidebar/environment.js";
64
67
  import { SESSION_HISTORY_LIMIT, createSessionHistory, parseSessionHistory } from "./sidebar/history.js";
65
- import { INBOX_EARLIER_AFTER_MS, INBOX_PAGE, INBOX_PAGE_MORE, INBOX_SHELVES, INBOX_SHELVES_FOLDED, INBOX_SHELVES_KEY, buildInboxRows, compareInboxSection, inboxDockStart, inboxEarlierAfterMs, inboxFolderOf, inboxSectionOf, inboxSessionOrder, nextInboxChangeAt } from "./sidebar/inbox.js";
68
+ import { INBOX_EARLIER_AFTER_MS, INBOX_PAGE, INBOX_PAGE_MORE, INBOX_RUN_HOLD_MS, INBOX_SHELVES, INBOX_SHELVES_FOLDED, INBOX_SHELVES_KEY, buildInboxRows, compareInboxSection, inboxDockStart, inboxEarlierAfterMs, inboxFolderOf, inboxSectionOf, inboxSessionOrder, nextInboxChangeAt } from "./sidebar/inbox.js";
66
69
  import { PINNED_PROJECTS_KEY, parsePinnedProjects, withPinnedProject } from "./sidebar/pinned-projects.js";
67
- import { pinSession, pinnedSessions } from "./sidebar/pinned-sessions.js";
68
- import { COMMON_EMOJI, MAIN_SESSION_ICON_KEY, PROJECT_ICONS_KEY, firstGrapheme, isProjectIcon, parseProjectIcons } from "./sidebar/project-icons.js";
69
70
  import { SMOOTH_TICK_MS, drainBucket, safeSurrogateSlice, tickBucket } from "./smooth-stream.js";
70
71
  import { constant, useReadable, writable } from "./store.js";
71
72
  import { createComposerLists } from "./composer/composer-sources.js";
72
73
  import { UNDECIDED_NEW_CHAT_DRAFT_KEY, createDraftBook, createWebStorageDraftStorage, draftBookOf, newChatDraftKey } from "./composer/draft-book.js";
73
74
  import { promptDraftOf } from "./turn-prompt.js";
74
- export { AGENT_GROUPING, CHATS_BUCKET, CHUNK_THRESHOLD, COMMON_EMOJI, DEFAULT_CHAT_LABELS, DEFAULT_COMPOSER_CHROME_LABELS, DEFAULT_COMPOSER_LABELS, DEFAULT_MODEL_PICKER_PREFS, DEFAULT_SIDEBAR_LABELS, DEFAULT_SIDEBAR_VIEW, DEFAULT_SIDEBAR_VIEW_DEFAULTS, DEFAULT_SWITCHER_PREFS, EMPTY_RUN_METER, INBOX_EARLIER_AFTER_MS, INBOX_PAGE, INBOX_PAGE_MORE, INBOX_SHELVES, INBOX_SHELVES_FOLDED, INBOX_SHELVES_KEY, LIVE_BLOCK_RUN_LINES, MAIN_SESSION_ICON_KEY, MAX_EXTENSION_COMPOSER_BADGES, MAX_ROW_CHIPS, MODEL_PICKER_STORAGE_KEY, NO_PROVIDER_ERROR, NO_SIDEBAR_CONTRIBUTIONS, PINNED_PROJECTS_KEY, PROJECT_GROUP_CAP, PROJECT_ICONS_KEY, REFERENCES_STORAGE_KEY, RELATIVE_TIME_DATE_AFTER_DAYS, SESSION_HISTORY_LIMIT, SIDEBAR_SPACE_KEY, SIDEBAR_SWITCHER_KEY, SIDEBAR_VIEW_KEY, SIDEBAR_VIEW_VERSION, SMOOTH_TICK_MS, SessionStreamStore, UNDECIDED_NEW_CHAT_DRAFT_KEY, VIEW_CHOICE, activityLabel, applyInboxPatch, approvalNotificationDetail, authFailureDetails, availableProjectsOf, batchTaskRuns, batchThinkingRuns, batchToolRuns, beginChipWork, buildHostSidebarRows, buildInboxRows, buildQuerySidebarRows, buildSessionRows, buildSidebarRows, caretEffectivelyAtStart, chipForPath, chipWorkBusy, claimChildSessions, classifyInlineCode, clearedViewFilters, clusterByOwner, collapseEvents, commandName, commandRef, commandView, commitModelPick, commitView, compareInboxSection, compareSessions, composeLiveCost, composeSubmitText, computeSelectStops, constant, conversationBadges, createAuthFixes, createChatBlockRuns, createCompactionProgress, createComposerLists, createDecorator, createDraftBook, createDraftScopeStore, createModelKnobs, createModelNames, createModelPickerPrefs, createNotificationStore, createPathResolver, createReferenceStore, createRunEstimates, createRunMeter, createSessionActivity, createSessionBadges, createSessionDirectory, createSessionHistory, createSessionStreamActions, createSessionStreams, createSidebarViews, createSiteIcons, createWebStorageDraftStorage, dateBucket, decodeHistoryEntry, defaultFrameScheduler, defaultModelPatch, defaultSidebarLayout, deleteSessionPrompt, deriveDotState, dockRunReceipts, dotVariantFor, draftBookOf, draftFolderPath, draftLocalFolder, draftScopeOf, drainBucket, effortPickerTarget, encodeHistoryDraft, environmentKindLabel, environmentSummaryText, exchangesMedia, exitsModeOnKey, extensionSpaceOf, failureTooltip, filterDirectorySessions, filterQueryOf, filterSessions, filtersForSpace, findCommand, findLastStreamingRow, firstGrapheme, firstRowId, foldActionItems, foldExchanges, foldWorkerRows, formatElapsedShort, formatSessionCostLabel, groupsByFolder, hostReachable, hostStatusLabel, inboxDockStart, inboxEarlierAfterMs, inboxFolderOf, inboxSectionOf, inboxSessionOrder, inheritRowIdentity, isAuthFixed, isProjectIcon, isProjectMember, isSettled, isSnoozed, itemRows, itemsForSpace, lastModelChainOf, markRunFailures, mediaRefsOf, mediumKey, mergeLiveTail, mergePromptPreviews, mergeSidebarSpaces, missingPreviewData, modeForTypedChar, modelKnobsOf, modelNamesOf, namerFor, nestSidebarRows, nestToolCalls, nestedCallVisible, newChatDraftKey, newSessionRequest, nextInboxChangeAt, nextSavedViewName, nextWakeAt, notificationContent, openFenceOf, pairToolEvents, parseBashExitMeta, parseModelPickerPrefs, parsePinnedProjects, parseProjectIcons, parseSessionHistory, parseSidebarView, parseSidebarViewPicks, parseSwitcherPrefs, partitionMainSession, pickRunEstimate, pinSession, pinnedSessions, planAuthCard, positionSuffix, projectKeyOf, projectPathOf, promptAttachments, promptDraftOf, promptOriginWire, promptRefs, questionNotificationDetail, readSidebarViews, recentHostFolders, recentLocalFolders, reduceActivity, reduceCompaction, refusedSpawn, relativeTime, rememberableChain, rememberedDefaultModel, rememberedPick, repoGroups, resetChipWorkForTests, resolveBadgePanel, resolveChipPath, resolveGrouping, resolveSidebarView, resolveSort, rowTurnIds, runsInRemoteSandbox, safeSurrogateSlice, secretExpiryWords, secretTimeLeft, secretTimeLeftIso, selectEditEvents, sendPrompt, sessionForToken, sessionRefsOf, sessionView, settledResource, shellCommandOf, shortUrl, shouldNotify, sidebarContributionsOf, sidebarLayoutOf, sidebarViewDefaults, siteOrigin, skillGroupView, skillName, skillView, spaceMembership, splitMarkdown, stableSelection, stopForRow, switcherSpaces, tickBucket, toolAction, toolFailed, unsentDraft, urlRefs, useReadable, viewFilterOf, viewFiltersOn, whenChipsSettle, wireAttachmentsToChat, wireOriginal, withPinnedProject, withoutPartialEmphasis, withoutPartialFence, writable };
75
+ export { AGENT_GROUPING, CHATS_BUCKET, CHUNK_THRESHOLD, COMMON_EMOJI, DEFAULT_CHAT_LABELS, DEFAULT_COMPOSER_CHROME_LABELS, DEFAULT_COMPOSER_LABELS, DEFAULT_MODEL_PICKER_PREFS, DEFAULT_SIDEBAR_LABELS, DEFAULT_SIDEBAR_VIEW, DEFAULT_SIDEBAR_VIEW_DEFAULTS, DEFAULT_SWITCHER_PREFS, EMPTY_RAIL, EMPTY_RUN_METER, INBOX_EARLIER_AFTER_MS, INBOX_PAGE, INBOX_PAGE_MORE, INBOX_RUN_HOLD_MS, INBOX_SHELVES, INBOX_SHELVES_FOLDED, INBOX_SHELVES_KEY, LIVE_BLOCK_RUN_LINES, MAIN_SESSION_ICON_KEY, MAX_EXTENSION_COMPOSER_BADGES, MAX_ROW_CHIPS, MODEL_PICKER_STORAGE_KEY, NO_PROVIDER_ERROR, NO_SIDEBAR_CONTRIBUTIONS, PINNED_PROJECTS_KEY, PROJECT_GROUP_CAP, PROJECT_ICONS_KEY, REFERENCES_STORAGE_KEY, RELATIVE_TIME_DATE_AFTER_DAYS, SESSION_HISTORY_LIMIT, SIDEBAR_SPACE_KEY, SIDEBAR_SWITCHER_KEY, SIDEBAR_VIEW_KEY, SIDEBAR_VIEW_VERSION, SMOOTH_TICK_MS, SessionStreamStore, UNDECIDED_NEW_CHAT_DRAFT_KEY, VIEW_CHOICE, activityLabel, applyInboxPatch, approvalNotificationDetail, authFailureDetails, availableProjectsOf, batchTaskRuns, batchThinkingRuns, batchToolRuns, beginChipWork, buildHostSidebarRows, buildInboxRows, buildQuerySidebarRows, buildSessionRows, buildSidebarRows, caretEffectivelyAtStart, chipForPath, chipWorkBusy, claimChildSessions, classifyInlineCode, clearedViewFilters, clusterByOwner, collapseEvents, commandName, commandRef, commandView, commitModelPick, commitView, compareInboxSection, compareSessions, composeLiveCost, composeSubmitText, computeRailModel, computeSelectStops, constant, conversationBadges, createAuthFixes, createChatBlockRuns, createCompactionProgress, createComposerLists, createDecorator, createDraftBook, createDraftScopeStore, createModelKnobs, createModelNames, createModelPickerPrefs, createNotificationStore, createPathResolver, createReferenceStore, createRunEstimates, createRunMeter, createSessionActivity, createSessionBadges, createSessionDirectory, createSessionHistory, createSessionStreamActions, createSessionStreams, createSidebarViews, createSiteIcons, createTranscriptRailStore, createWebStorageDraftStorage, dataRowSelector, dateBucket, decodeHistoryEntry, defaultFrameScheduler, defaultModelPatch, defaultSidebarLayout, deleteSessionPrompt, deriveDotState, dockRunReceipts, dotVariantFor, draftBookOf, draftFolderPath, draftLocalFolder, draftScopeOf, drainBucket, effortPickerTarget, encodeHistoryDraft, environmentKindLabel, environmentSummaryText, exchangesMedia, exitsModeOnKey, extensionSpaceOf, failureTooltip, filterDirectorySessions, filterQueryOf, filterSessions, filtersForSpace, findCommand, findLastStreamingRow, firstGrapheme, firstRowId, foldActionItems, foldExchanges, foldWorkerRows, formatElapsedShort, formatSessionCostLabel, groupsByFolder, hostReachable, hostStatusLabel, inboxDockStart, inboxEarlierAfterMs, inboxFolderOf, inboxSectionOf, inboxSessionOrder, inheritRowIdentity, isAuthFixed, isProjectIcon, isProjectMember, isSettled, isSnoozed, itemRows, itemsForSpace, lastModelChainOf, markRunFailures, mediaRefsOf, mediumKey, mergeLiveTail, mergePromptPreviews, mergeSidebarSpaces, missingPreviewData, modeForTypedChar, modelKnobsOf, modelNamesOf, namerFor, nestSidebarRows, nestToolCalls, nestedCallVisible, newChatDraftKey, newSessionRequest, nextInboxChangeAt, nextSavedViewName, nextWakeAt, notificationContent, openFenceOf, pairToolEvents, parseBashExitMeta, parseModelPickerPrefs, parsePinnedProjects, parseProjectIcons, parseSessionHistory, parseSidebarView, parseSidebarViewPicks, parseSwitcherPrefs, partitionMainSession, pickRunEstimate, pinSession, pinnedSessions, plainPreview, planAuthCard, positionSuffix, projectKeyOf, projectPathOf, promptAttachments, promptDraftOf, promptOriginWire, promptRefs, questionNotificationDetail, readSidebarViews, recentHostFolders, recentLocalFolders, reduceActivity, reduceCompaction, refusedSpawn, relativeTime, rememberableChain, rememberedDefaultModel, rememberedPick, repoGroups, resetChipWorkForTests, resolveBadgePanel, resolveChipPath, resolveGrouping, resolveSidebarView, resolveSort, rowTurnIds, runsInRemoteSandbox, safeSurrogateSlice, sameRail, secretExpiryWords, secretTimeLeft, secretTimeLeftIso, selectEditEvents, sendPrompt, sessionForToken, sessionRefsOf, sessionView, settledResource, shellCommandOf, shortUrl, shouldNotify, sidebarContributionsOf, sidebarLayoutOf, sidebarViewDefaults, siteOrigin, skillGroupView, skillName, skillView, spaceMembership, splitMarkdown, stableSelection, stopForRow, switcherSpaces, tickBucket, toolAction, toolFailed, unsentDraft, urlRefs, useReadable, viewFilterOf, viewFiltersOn, whenChipsSettle, wireAttachmentsToChat, wireOriginal, withPinnedProject, withoutPartialEmphasis, withoutPartialFence, writable };
@@ -84,6 +84,18 @@ export declare const DEFAULT_CHAT_LABELS: {
84
84
  stoppedByYou: string;
85
85
  retry: string;
86
86
  retryHint: string;
87
+ /** Retry after the run's environment broke: it is repaired (reconnected or set up anew) first. */
88
+ retryEnvironmentHint: string;
89
+ environmentRepaired: {
90
+ lost: string;
91
+ unreachable: string;
92
+ };
93
+ /** Asked before a Retry sets a gone environment up anew. */
94
+ retryEnvironmentLostTitle: string;
95
+ retryEnvironmentLostDetail: string;
96
+ /** The detail for a remote sandbox, which held the only copy of the work (the header's warning). */
97
+ retryEnvironmentLostSandboxDetail: string;
98
+ retryEnvironmentLostConfirm: string;
87
99
  continueRun: string;
88
100
  continueHint: string;
89
101
  resetsAt: (time: string) => string;
@@ -574,6 +586,7 @@ export declare const DEFAULT_CHAT_LABELS: {
574
586
  selectTurnCopied: string;
575
587
  selectTurnNothingToCopy: string;
576
588
  selectTurnForkFailed: string;
589
+ promptRail: string;
577
590
  copy: string;
578
591
  copied: string;
579
592
  copyCode: string;
@@ -122,6 +122,18 @@ const DEFAULT_CHAT_LABELS = {
122
122
  stoppedByYou: "Stopped by you",
123
123
  retry: "Retry",
124
124
  retryHint: "Send your message again",
125
+ /** Retry after the run's environment broke: it is repaired (reconnected or set up anew) first. */
126
+ retryEnvironmentHint: "Repair the environment, then send your message again",
127
+ environmentRepaired: {
128
+ lost: "Environment set up again",
129
+ unreachable: "Environment answered again"
130
+ },
131
+ /** Asked before a Retry sets a gone environment up anew. */
132
+ retryEnvironmentLostTitle: "Set the environment up again?",
133
+ retryEnvironmentLostDetail: "A new one replaces it.",
134
+ /** The detail for a remote sandbox, which held the only copy of the work (the header's warning). */
135
+ retryEnvironmentLostSandboxDetail: "A new one replaces it; work not pushed or saved at its last pause is lost.",
136
+ retryEnvironmentLostConfirm: "Set up again",
125
137
  continueRun: "Continue",
126
138
  continueHint: "Ask the model to continue",
127
139
  resetsAt: (time) => `Resets at ${time}`,
@@ -200,6 +200,15 @@ export declare function dateBucket(at: number, now: number, labels?: {
200
200
  stoppedByYou: string;
201
201
  retry: string;
202
202
  retryHint: string;
203
+ retryEnvironmentHint: string;
204
+ environmentRepaired: {
205
+ lost: string;
206
+ unreachable: string;
207
+ };
208
+ retryEnvironmentLostTitle: string;
209
+ retryEnvironmentLostDetail: string;
210
+ retryEnvironmentLostSandboxDetail: string;
211
+ retryEnvironmentLostConfirm: string;
203
212
  continueRun: string;
204
213
  continueHint: string;
205
214
  resetsAt: (time: string) => string;
@@ -641,6 +650,7 @@ export declare function dateBucket(at: number, now: number, labels?: {
641
650
  selectTurnCopied: string;
642
651
  selectTurnNothingToCopy: string;
643
652
  selectTurnForkFailed: string;
653
+ promptRail: string;
644
654
  copy: string;
645
655
  copied: string;
646
656
  copyCode: string;
@@ -43,7 +43,7 @@ import { SessionNotificationStore } from "./notifications.js";
43
43
  import { SidebarContributions, SidebarSpace } from "./query.js";
44
44
  import { SessionActivityFilter, SessionArchiveFilter, SidebarListSession } from "./types.js";
45
45
  import { SidebarViewDefaults, SidebarViews } from "./view.js";
46
- import { SessionInboxPatch } from "zidane/chat/pure";
46
+ import { SessionInboxPatch, Space } from "zidane/chat/pure";
47
47
  /** A project as one space lists it: its path (`projectPathOf`), the host it is on, the space. */
48
48
  export interface ProjectInSpace {
49
49
  /** The project's folder (`projectPathOf`). */
@@ -164,6 +164,11 @@ export interface DirectorySettings {
164
164
  orchestration: boolean;
165
165
  /** The Sidebar settings: what a space follows until it picks its own (`sidebarViewDefaults`). Absent: the built-in defaults. */
166
166
  sidebar?: SidebarViewDefaults;
167
+ /**
168
+ * The list is a home server's (`Settings.spacesHome`): the switcher's order and hidden spaces are the
169
+ * list's own, saved with it (`saveSpaceList`), so every device shows the same switcher.
170
+ */
171
+ spacesShared?: boolean;
167
172
  }
168
173
  /** Options of {@link createSessionDirectory}: the ports it reads and acts through. */
169
174
  export interface SessionDirectoryOptions<S extends SidebarListSession, P, C = unknown> {
@@ -233,6 +238,8 @@ export interface SessionDirectoryOptions<S extends SidebarListSession, P, C = un
233
238
  contributions?: Readable<SidebarContributions>;
234
239
  /** Adds a space to the user's list (the settings' `spaceList`). Absent: a view can't be saved as a space. */
235
240
  saveSpace?: (space: SidebarSpace) => Promise<void>;
241
+ /** Replaces the user's list (the settings' `spaceList`): the switcher's arrangement while `spacesShared`. */
242
+ saveSpaceList?: (list: Space[]) => Promise<void>;
236
243
  }
237
244
  /** The directory's state as one snapshot: a new object whenever any field changes. */
238
245
  export interface SessionDirectoryState<S extends SidebarListSession> {