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,10 +1,11 @@
1
1
  /**
2
- * Settings › General › Spaces: `SpacesSection` (`zidane-ui/chat/sidebar`,
2
+ * Settings › Workspace › Spaces: `SpacesSection` (`zidane-ui/chat/sidebar`,
3
3
  * over the settings host) with each space's defaults for new sessions under
4
4
  * it (agent, model, effort and options, where new chats start), each falling
5
5
  * back to Settings › Agent › Defaults while unset.
6
6
  */
7
7
  import { PlacePickerHosts } from "../../../chat/composer/PlacePicker.js";
8
+ import { SpacesHomeChoice } from "../../../chat/sidebar/SpacesSection.js";
8
9
  import { AgentDefaultsValue } from "./AgentDefaults.js";
9
10
  import { CSSProperties } from "react";
10
11
  import { Space } from "zidane/chat/pure";
@@ -14,6 +15,8 @@ export interface SpacesDefaultsSectionProps {
14
15
  cwd: string | null;
15
16
  /** What each space's place picker lists (the hosts, their machines). Absent: no place row. */
16
17
  places?: PlacePickerHosts;
18
+ /** Where the spaces come from (`SpacesSection`'s `home`). Absent: no row. */
19
+ home?: SpacesHomeChoice;
17
20
  /** Extra classes on each space's rows. */
18
21
  className?: string;
19
22
  /** Inline styles on each space's rows. */
@@ -24,7 +27,7 @@ export interface SpacesDefaultsSectionProps {
24
27
  *
25
28
  * @param props - Component props.
26
29
  */
27
- export declare function SpacesDefaultsSection({ cwd, places, className, style }: SpacesDefaultsSectionProps): import("react").JSX.Element;
30
+ export declare function SpacesDefaultsSection({ cwd, places, home, className, style }: SpacesDefaultsSectionProps): import("react").JSX.Element;
28
31
  /**
29
32
  * A space's defaults for new sessions, as the rows edit them.
30
33
  *
@@ -37,5 +40,6 @@ export declare function spaceDefaults(space: Space): AgentDefaultsValue;
37
40
  *
38
41
  * @param space - The space.
39
42
  * @param next - Its new defaults.
43
+ * @param accountLabel - The label of `next.model.account`, when known: kept beside the id (`Space.accountLabel`).
40
44
  */
41
- export declare function withSpaceDefaults(space: Space, next: AgentDefaultsValue): Space;
45
+ export declare function withSpaceDefaults(space: Space, next: AgentDefaultsValue, accountLabel?: string): Space;
@@ -1,3 +1,4 @@
1
+ import { useModelCatalog } from "../../../chat/composer/use-composer-stores.js";
1
2
  import { SpacesSection } from "../../../chat/sidebar/SpacesSection.js";
2
3
  import { SettingDemo } from "../../SettingDemo.js";
3
4
  import { useSettings } from "../../SettingsProvider.js";
@@ -11,17 +12,20 @@ import { readNewChatPlace } from "zidane/chat/pure";
11
12
  *
12
13
  * @param props - Component props.
13
14
  */
14
- function SpacesDefaultsSection({ cwd, places, className, style }) {
15
+ function SpacesDefaultsSection({ cwd, places, home, className, style }) {
15
16
  const { settings } = useSettings();
16
17
  const inherited = agentDefaultsOf(settings);
18
+ const { catalog } = useModelCatalog(null, cwd ?? void 0);
19
+ const labelOf = (model) => model?.account ? catalog?.find((e) => e.providerKey === model.providerKey && e.account?.id === model.account)?.account?.label : void 0;
17
20
  return /* @__PURE__ */ jsx(SpacesSection, {
21
+ ...home ? { home } : {},
18
22
  media: /* @__PURE__ */ jsx(SettingDemo, {
19
23
  demo: "spaces",
20
24
  on: settings.spaces === true
21
25
  }),
22
26
  renderDefaults: (space, update) => /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(AgentDefaultsRows, {
23
27
  value: spaceDefaults(space),
24
- onChange: (next) => update((s) => withSpaceDefaults(s, next)),
28
+ onChange: (next) => update((s) => withSpaceDefaults(s, next, labelOf(next.model))),
25
29
  cwd,
26
30
  inherited,
27
31
  className,
@@ -66,9 +70,10 @@ function spaceDefaults(space) {
66
70
  *
67
71
  * @param space - The space.
68
72
  * @param next - Its new defaults.
73
+ * @param accountLabel - The label of `next.model.account`, when known: kept beside the id (`Space.accountLabel`).
69
74
  */
70
- function withSpaceDefaults(space, next) {
71
- const { providerKey: _p, modelId: _m, account: _a, fallbacks, effort: _e, modelOptions: _o, agentId: _g, ...rest } = space;
75
+ function withSpaceDefaults(space, next, accountLabel) {
76
+ const { providerKey: _p, modelId: _m, account: _a, accountLabel: _l, fallbacks, effort: _e, modelOptions: _o, agentId: _g, ...rest } = space;
72
77
  const model = next.model;
73
78
  const chain = model ? fallbacks?.filter((f) => f.providerKey !== model.providerKey || f.modelId !== model.modelId) : void 0;
74
79
  return {
@@ -76,7 +81,8 @@ function withSpaceDefaults(space, next) {
76
81
  ...model ? {
77
82
  providerKey: model.providerKey,
78
83
  modelId: model.modelId,
79
- ...model.account ? { account: model.account } : {}
84
+ ...model.account ? { account: model.account } : {},
85
+ ...model.account && accountLabel ? { accountLabel } : {}
80
86
  } : {},
81
87
  ...chain && chain.length > 0 ? { fallbacks: chain } : {},
82
88
  ...next.effort ? { effort: next.effort } : {},
@@ -128,7 +128,7 @@ function SkillGroupsArea({ cwd, groups, error, loaded, onRetry, skills, editing,
128
128
  });
129
129
  else if (!loaded) body = null;
130
130
  else if (groups.length === 0) body = /* @__PURE__ */ jsx("p", {
131
- className: "m-0 px-1 text-xs text-[var(--zg-text-muted)] zg-pretty",
131
+ className: "m-0 px-1 text-xs text-[var(--zg-text-muted)]",
132
132
  children: l.skillGroupsEmpty
133
133
  });
134
134
  else body = /* @__PURE__ */ jsx("ul", {
@@ -4,7 +4,7 @@
4
4
  * desktop, with the server's own sections for the panels. Its pages of rows
5
5
  * draw what the desktop's do: the cards, the model pickers, the agent
6
6
  * defaults and the conversation presets, over the server's catalogs. The server is the
7
- * app's only host: Accounts › Hosts draws its page (the `hosts` section), and the pages the
7
+ * app's only host: Advanced › Hosts draws its page (the `hosts` section), and the pages the
8
8
  * desktop keeps for this computer (Instructions, Environments, Keybindings)
9
9
  * are the server's or this browser's. A page the host leaves out hides:
10
10
  * Logs, Performance, and Files & editor without a files host.
@@ -24,7 +24,7 @@ export interface ServerAppSettingsOptions {
24
24
  cwd: string | null;
25
25
  /** The open session (`null`: none): Instructions shows its prompt. */
26
26
  sessionId: string | null;
27
- /** Accounts › Hosts: the server's own section (`ServerDetail`, `zidane-ui/machines`). */
27
+ /** Advanced › Hosts: the server's own section (`ServerDetail`, `zidane-ui/machines`). */
28
28
  hosts: () => ReactNode;
29
29
  /** The app's actions (`{ action }` rows). */
30
30
  actions?: readonly SettingsAction[];
@@ -36,6 +36,8 @@ export interface ServerAppSettingsOptions {
36
36
  files?: boolean;
37
37
  /** What Files & editor takes besides the folder. */
38
38
  editor?: Omit<EditorSectionProps, 'cwd'>;
39
+ /** Opens one of the server's sessions (the app closes Settings): Environments › Manage links to it. */
40
+ onOpenSession?: (sessionId: string) => void;
39
41
  }
40
42
  /** The sections and the nav's counts. */
41
43
  export interface ServerAppSettings {
@@ -29,7 +29,7 @@ const NO_ACTIONS = [];
29
29
  * @param options - The server's name, the folder and session, the server page and the app's extras.
30
30
  */
31
31
  function useServerAppSettingsSections(options) {
32
- const { hostName, cwd, sessionId, hosts, actions = NO_ACTIONS, spaces, extensions, files = false, editor } = options;
32
+ const { hostName, cwd, sessionId, hosts, actions = NO_ACTIONS, spaces, extensions, files = false, editor, onOpenSession } = options;
33
33
  const host = useSettingsHost();
34
34
  const labels = useSettingsLabels();
35
35
  const hasLogs = Boolean(host.logs);
@@ -60,7 +60,10 @@ function useServerAppSettingsSections(options) {
60
60
  sessionId,
61
61
  localFiles: false
62
62
  });
63
- case "environments": return /* @__PURE__ */ jsx(EnvironmentsSection, { cwd });
63
+ case "environments": return /* @__PURE__ */ jsx(EnvironmentsSection, {
64
+ cwd,
65
+ ...onOpenSession ? { onOpenSession } : {}
66
+ });
64
67
  case "logs": return /* @__PURE__ */ jsx(LogsSection, {});
65
68
  case "performance": return /* @__PURE__ */ jsx(PerformanceSection, {});
66
69
  case "appearance": return /* @__PURE__ */ jsx(AppearanceSection, {});
@@ -108,7 +111,8 @@ function useServerAppSettingsSections(options) {
108
111
  spaces,
109
112
  extensions,
110
113
  editor,
111
- labels
114
+ labels,
115
+ onOpenSession
112
116
  ]),
113
117
  counts: useServerAppPageCounts(pages, cwd)
114
118
  };
@@ -18,7 +18,7 @@ import { SettingsHost } from "../headless/host.js";
18
18
  import { SettingsCatalogKind, SettingsExtension, SettingsPlugin } from "../headless/sections-host.js";
19
19
  import { LogRecord } from "zidane/chat/pure";
20
20
  import { SkillConfig } from "zidane";
21
- import { ContextSegmentsReport, EnvironmentDescriptor, EnvironmentSettingsChange } from "zidane/chat";
21
+ import { ContextSegmentsReport, EnvironmentDescriptor, EnvironmentFieldChoice, EnvironmentSandboxSummary, EnvironmentSettingsChange } from "zidane/chat";
22
22
  /** A catalog or diagnostics group of `SettingsHost`. */
23
23
  export type SettingsSectionsCapability = 'skills' | 'extensions' | 'plugins' | 'instructions' | 'environments' | 'logs' | 'hostCatalog' | 'paths';
24
24
  /** What the backend behind the host holds. */
@@ -33,6 +33,10 @@ export interface SettingsSectionsBackend {
33
33
  instructions: Record<string, ContextSegmentsReport>;
34
34
  /** The environment kinds. */
35
35
  environments: EnvironmentDescriptor[];
36
+ /** Each kind's sandboxes at its provider (Manage). Absent: the contract's own. */
37
+ sandboxes?: Record<string, EnvironmentSandboxSummary[]>;
38
+ /** Each listed option's values, by `kind:key`. Absent: the contract's own. */
39
+ fieldChoices?: Record<string, EnvironmentFieldChoice[]>;
36
40
  /** The log records held. */
37
41
  logs: LogRecord[];
38
42
  /** `null`: the host can't list its catalogs (an older server). */
@@ -46,6 +50,8 @@ export interface SettingsSectionsControl {
46
50
  extensionNames: () => string[];
47
51
  /** Environment edits the backend took, in order. */
48
52
  environmentChanges: () => readonly EnvironmentSettingsChange[];
53
+ /** What was done to the sandboxes (`pause:e2b:sb-1`), in order. Given exactly when the host offers `environments.sandboxes`. */
54
+ sandboxActions?: () => readonly string[];
49
55
  /** The backend logs a record. */
50
56
  log: (record: LogRecord) => void;
51
57
  /** One of the host's catalogs changed there (another client installed something). */
@@ -76,6 +76,25 @@ const ENVIRONMENTS = [{
76
76
  canVerify: false,
77
77
  fields: []
78
78
  }];
79
+ const SANDBOXES = { e2b: [{
80
+ id: "sb-1",
81
+ state: "running",
82
+ session: {
83
+ id: "s1",
84
+ title: "Fix the parser",
85
+ current: true
86
+ }
87
+ }, {
88
+ id: "sb-2",
89
+ state: "paused",
90
+ template: "base"
91
+ }] };
92
+ const FIELD_CHOICES = { "e2b:template": [{
93
+ value: "base",
94
+ label: "base",
95
+ facts: ["2 CPU"],
96
+ origin: "platform"
97
+ }] };
79
98
  const LOG = {
80
99
  level: "warn",
81
100
  message: "setup() slow",
@@ -115,6 +134,8 @@ function backendOf(over = {}) {
115
134
  plugins: structuredClone(PLUGINS),
116
135
  instructions: { s1: structuredClone(REPORT) },
117
136
  environments: structuredClone(ENVIRONMENTS),
137
+ sandboxes: structuredClone(SANDBOXES),
138
+ fieldChoices: structuredClone(FIELD_CHOICES),
118
139
  logs: [structuredClone(LOG)],
119
140
  hostCatalog: structuredClone(CATALOGS),
120
141
  ...over
@@ -202,6 +223,22 @@ function describeSettingsSectionsContract(name, makeHarness, capabilities) {
202
223
  enabled: true
203
224
  }]);
204
225
  });
226
+ it.skipIf(!has("environments"))("environments: lists a kind's sandboxes and pauses or deletes one, when it offers that", async () => {
227
+ const { host, control } = await setup();
228
+ const environments = host.environments;
229
+ expect(environments.sandboxes === void 0).toBe(control.sandboxActions === void 0);
230
+ if (!environments.sandboxes) return;
231
+ expect(await environments.sandboxes("e2b")).toEqual(SANDBOXES.e2b);
232
+ await environments.pauseSandbox?.("e2b", "sb-1");
233
+ await environments.deleteSandbox?.("e2b", "sb-2");
234
+ expect(control.sandboxActions?.()).toEqual([...environments.pauseSandbox ? ["pause:e2b:sb-1"] : [], ...environments.deleteSandbox ? ["delete:e2b:sb-2"] : []]);
235
+ });
236
+ it.skipIf(!has("environments"))("environments: lists a listed option's values, when it offers that", async () => {
237
+ const { host } = await setup();
238
+ const fieldChoices = host.environments.fieldChoices;
239
+ if (!fieldChoices) return;
240
+ expect(await fieldChoices("e2b", "template")).toEqual(FIELD_CHOICES["e2b:template"]);
241
+ });
205
242
  it.skipIf(!has("logs"))("logs: lists the held records and follows new ones", async () => {
206
243
  const { host, control } = await setup();
207
244
  expect((await host.logs.list()).map((r) => r.message)).toEqual(["setup() slow"]);
package/dist/styles.css CHANGED
@@ -89,6 +89,7 @@
89
89
  .i-ph-corners-out{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M216 48v40a8 8 0 0 1-16 0V56h-32a8 8 0 0 1 0-16h40a8 8 0 0 1 8 8M88 200H56v-32a8 8 0 0 0-16 0v40a8 8 0 0 0 8 8h40a8 8 0 0 0 0-16m120-40a8 8 0 0 0-8 8v32h-32a8 8 0 0 0 0 16h40a8 8 0 0 0 8-8v-40a8 8 0 0 0-8-8M88 40H48a8 8 0 0 0-8 8v40a8 8 0 0 0 16 0V56h32a8 8 0 0 0 0-16'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
90
90
  .i-ph-cpu{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M152 96h-48a8 8 0 0 0-8 8v48a8 8 0 0 0 8 8h48a8 8 0 0 0 8-8v-48a8 8 0 0 0-8-8m-8 48h-32v-32h32Zm88 0h-16v-32h16a8 8 0 0 0 0-16h-16V56a16 16 0 0 0-16-16h-40V24a8 8 0 0 0-16 0v16h-32V24a8 8 0 0 0-16 0v16H56a16 16 0 0 0-16 16v40H24a8 8 0 0 0 0 16h16v32H24a8 8 0 0 0 0 16h16v40a16 16 0 0 0 16 16h40v16a8 8 0 0 0 16 0v-16h32v16a8 8 0 0 0 16 0v-16h40a16 16 0 0 0 16-16v-40h16a8 8 0 0 0 0-16m-32 56H56V56h144z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
91
91
  .i-ph-cube{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m223.68 66.15l-88-48.15a15.88 15.88 0 0 0-15.36 0l-88 48.17a16 16 0 0 0-8.32 14v95.64a16 16 0 0 0 8.32 14l88 48.17a15.88 15.88 0 0 0 15.36 0l88-48.17a16 16 0 0 0 8.32-14V80.18a16 16 0 0 0-8.32-14.03M128 32l80.34 44L128 120L47.66 76ZM40 90l80 43.78v85.79l-80-43.75Zm96 129.57v-85.75L216 90v85.78Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
92
+ .i-ph-cube-fill{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m223.68 66.15l-88-48.15a15.88 15.88 0 0 0-15.36 0l-88 48.17a16 16 0 0 0-8.32 14v95.64a16 16 0 0 0 8.32 14l88 48.17a15.88 15.88 0 0 0 15.36 0l88-48.17a16 16 0 0 0 8.32-14V80.18a16 16 0 0 0-8.32-14.03M128 120L47.65 76L128 32l80.35 44Zm8 99.64v-85.81l80-43.78v85.76Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
92
93
  .i-ph-cube-transparent{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m221.66 90.34l-56-56A8 8 0 0 0 160 32H40a8 8 0 0 0-8 8v120a8 8 0 0 0 2.3 5.61l56 56A8 8 0 0 0 96 224h120a8 8 0 0 0 8-8V96a8 8 0 0 0-2.34-5.66M168 59.31L196.69 88H168ZM88 196.69L59.31 168H88ZM88 152H48V59.31l40 40ZM59.31 48H152v40H99.31ZM152 104v48h-48v-48Zm-48 104v-40h52.69l40 40Zm104-11.31l-40-40V104h40Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
93
94
  .i-ph-cursor-fill{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m220.49 207.8l-12.69 12.69a12 12 0 0 1-17 0l-56.57-56.57L115 214.08l-.13.33a15.84 15.84 0 0 1-14.61 9.59h-.78a15.82 15.82 0 0 1-14.41-11L32.8 52.92A15.95 15.95 0 0 1 52.92 32.8L213 85.07a16 16 0 0 1 1.41 29.8l-.33.13l-50.16 19.27l56.57 56.56a12 12 0 0 1 0 16.97'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
94
95
  .i-ph-cursor-text{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M184 208a8 8 0 0 1-8 8h-16a40 40 0 0 1-32-16a40 40 0 0 1-32 16H80a8 8 0 0 1 0-16h16a24 24 0 0 0 24-24v-40h-16a8 8 0 0 1 0-16h16V80a24 24 0 0 0-24-24H80a8 8 0 0 1 0-16h16a40 40 0 0 1 32 16a40 40 0 0 1 32-16h16a8 8 0 0 1 0 16h-16a24 24 0 0 0-24 24v40h16a8 8 0 0 1 0 16h-16v40a24 24 0 0 0 24 24h16a8 8 0 0 1 8 8'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
@@ -396,6 +397,7 @@
396
397
  .top-7{top:1.75rem;}
397
398
  .top-full{top:100%;}
398
399
  .line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;}
400
+ .line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;}
399
401
  .line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;}
400
402
  .isolate{isolation:isolate;}
401
403
  .z-\[-1\]{z-index:-1;}
@@ -461,6 +463,7 @@
461
463
  .mx-2{margin-left:0.5rem;margin-right:0.5rem;}
462
464
  .mx-3{margin-left:0.75rem;margin-right:0.75rem;}
463
465
  .mx-auto{margin-left:auto;margin-right:auto;}
466
+ .mx-px{margin-left:1px;margin-right:1px;}
464
467
  .my{margin-top:1rem;margin-bottom:1rem;}
465
468
  .my-1\.5{margin-top:0.375rem;margin-bottom:0.375rem;}
466
469
  .my-2{margin-top:0.5rem;margin-bottom:0.5rem;}
@@ -805,6 +808,7 @@
805
808
  .shrink,
806
809
  .shrink-0\.,
807
810
  .shrink-0\${flex-shrink:1;}
811
+ .shrink-\[2\]{flex-shrink:2;}
808
812
  .shrink-0{flex-shrink:0;}
809
813
  .flex-grow,
810
814
  .grow{flex-grow:1;}
@@ -899,6 +903,7 @@
899
903
  .gap-8{gap:2rem;}
900
904
  .gap-px{gap:1px;}
901
905
  .gap-x-1{column-gap:0.25rem;}
906
+ .gap-x-1\.5{column-gap:0.375rem;}
902
907
  .gap-x-2{column-gap:0.5rem;}
903
908
  .gap-x-2\.5{column-gap:0.625rem;}
904
909
  .gap-x-3{column-gap:0.75rem;}
@@ -1120,6 +1125,7 @@
1120
1125
  .pl-\[19px\]{padding-left:19px;}
1121
1126
  .pl-\[22px\]{padding-left:22px;}
1122
1127
  .pl-\[26px\]{padding-left:26px;}
1128
+ .pl-\[34px\]{padding-left:34px;}
1123
1129
  .pl-\[35px\]{padding-left:35px;}
1124
1130
  .pl-\[3px\]{padding-left:3px;}
1125
1131
  .pl-\[42px\]{padding-left:42px;}
@@ -1172,7 +1178,6 @@
1172
1178
  .text-right{text-align:right;}
1173
1179
  .indent{text-indent:1.5rem;}
1174
1180
  .text-balance{text-wrap:balance;}
1175
- .text-pretty{text-wrap:pretty;}
1176
1181
  .align-\[-0\.125em\]{vertical-align:-0.125em;}
1177
1182
  .align-\[-2px\]{vertical-align:-2px;}
1178
1183
  .align-\[calc\(0\.625cap_-_0\.5em\)\]{vertical-align:calc(0.625cap - 0.5em);}
@@ -1182,6 +1187,7 @@
1182
1187
  .\!text-xs{font-size:0.75rem !important;line-height:1rem !important;}
1183
1188
  .\!text-zg-label{font-size:var(--zg-font-size-label) !important;}
1184
1189
  .\!text-zg-meta{font-size:var(--zg-font-size-meta) !important;}
1190
+ .\!text-zg-ui{font-size:var(--zg-font-size-ui) !important;}
1185
1191
  .text-\[0\.85em\]{font-size:0.85em;}
1186
1192
  .text-\[0\.8em\]{font-size:0.8em;}
1187
1193
  .text-\[10px\]{font-size:10px;}
@@ -1298,7 +1304,8 @@
1298
1304
  .opacity-40{opacity:0.4;}
1299
1305
  .opacity-45{opacity:0.45;}
1300
1306
  .opacity-50{opacity:0.5;}
1301
- .opacity-60{opacity:0.6;}
1307
+ .opacity-60,
1308
+ .group\/copy:focus-visible .group-focus-visible\/copy\:opacity-60{opacity:0.6;}
1302
1309
  .opacity-70{opacity:0.7;}
1303
1310
  .opacity-75{opacity:0.75;}
1304
1311
  .opacity-80{opacity:0.8;}
@@ -1425,6 +1432,8 @@
1425
1432
  .group\/head:hover .group-hover\/head\:opacity-100,
1426
1433
  .group\/queued:hover .group-hover\/queued\:opacity-100,
1427
1434
  .group\/step:hover .group-hover\/step\:opacity-100{opacity:1;}
1435
+ .group\/copy:hover .group-hover\/copy\:opacity-60{opacity:0.6;}
1436
+ .group\/copy:hover .group-hover\/copy\:opacity-80{opacity:0.8;}
1428
1437
  .hover\:opacity-100:hover{opacity:1;}
1429
1438
  .hover\:\!bg-zg-danger\/10:hover{background-color:color-mix(in srgb, var(--zg-danger) 10%, transparent) !important;}
1430
1439
  .hover\:before\:bg-zg-danger\/10:hover::before{background-color:color-mix(in srgb, var(--zg-danger) 10%, transparent);}
@@ -1608,6 +1617,11 @@
1608
1617
  --zg-radius-xl: 16px;
1609
1618
  --zg-radius-2xl: 24px;
1610
1619
 
1620
+ /* The transcript's and the composer's columns pad their sides by this
1621
+ (`.zg-transcript-column`), so both keep one edge and the prompt rail
1622
+ (`TranscriptRail`) has room beside the text whether it shows or not. */
1623
+ --zg-transcript-gutter: 12px;
1624
+
1611
1625
  /* Interface type scale: every size outside the transcript and composer
1612
1626
  bodies comes from it, never ad hoc (scale-guard.test.ts). In Uno:
1613
1627
  `text-zg-badge` … `text-zg-body` (font-size only, line-height untouched).
@@ -1905,6 +1919,19 @@ html {
1905
1919
  box-sizing: border-box;
1906
1920
  }
1907
1921
 
1922
+ /* Text wraps without a lone last word, everywhere (inherited). Text that
1923
+ changes as you read it opts out: a word would hop between lines on each
1924
+ keystroke or token. Headings balance their lines instead. */
1925
+ html {
1926
+ text-wrap-style: pretty;
1927
+ }
1928
+ :is(input, textarea, [contenteditable]:not([contenteditable='false']), pre, .zg-streaming) {
1929
+ text-wrap-style: auto;
1930
+ }
1931
+ :is(h1, h2, h3, h4, h5, h6, .zg-balance) {
1932
+ text-wrap-style: balance;
1933
+ }
1934
+
1908
1935
  /* Thin, neutral scrollbars; the transparent track lets each surface show through. */
1909
1936
  * {
1910
1937
  scrollbar-width: thin;
@@ -3566,16 +3593,6 @@ html[data-motion='reduced'] .zg-attention::after {
3566
3593
  0 0 0 2px var(--zg-bg),
3567
3594
  0 0 0 4px var(--zg-ring);
3568
3595
  }
3569
- /* `text-wrap: balance` keeps short headings on roughly equal-width lines
3570
- (no orphan words). Applied via class to opt-in surfaces — modals,
3571
- session titles — so body copy keeps its default flow. */
3572
- .zg-balance {
3573
- text-wrap: balance;
3574
- }
3575
- /* `text-wrap: pretty` avoids single-word orphan lines in body copy. */
3576
- .zg-pretty {
3577
- text-wrap: pretty;
3578
- }
3579
3596
  /* Segment spinner (`SegmentSpinner.tsx`) — GUI twin of the TUI `▀▁▁▁▁` bar.
3580
3597
  Each pill is lit for the first half of an 800 ms cycle and dim for the
3581
3598
  rest; per-pill `animation-delay` (i × 80 ms) produces the fill → drain
@@ -5216,6 +5233,36 @@ html[data-motion='full'] .zg-orb:not([data-state='down']) {
5216
5233
  }
5217
5234
  }
5218
5235
 
5236
+ /* The cube: the same light on the Environments icon. The sphere's fill and
5237
+ rim give way to the glyph, which takes the gradient through its mask, and a
5238
+ drop-shadow in the state colour stands in for the halo. */
5239
+ .zg-orb[data-shape='cube'],
5240
+ html[data-motion='full'] .zg-orb[data-shape='cube'],
5241
+ .zg-orb[data-shape='cube'][data-state='down'] {
5242
+ background: none;
5243
+ box-shadow: none;
5244
+ }
5245
+ .zg-orb[data-shape='cube'] > .zg-orb-cube {
5246
+ position: absolute;
5247
+ inset: 0;
5248
+ width: 100%;
5249
+ height: 100%;
5250
+ background: linear-gradient(
5251
+ 150deg,
5252
+ color-mix(in oklab, var(--orb) 45%, white) 0%,
5253
+ var(--orb) 45%,
5254
+ color-mix(in oklab, var(--orb), var(--zg-orb-tone) var(--zg-orb-shade)) 100%
5255
+ );
5256
+ filter: drop-shadow(0 0 4px color-mix(in oklab, var(--orb) calc(90% * var(--zg-orb-glow)), transparent));
5257
+ }
5258
+ .zg-orb[data-shape='cube'][data-state='down'] > .zg-orb-cube {
5259
+ filter: none;
5260
+ }
5261
+ /* The breathing halo is round: on a cube it reads as a disc behind it. */
5262
+ .zg-orb[data-shape='cube']::before {
5263
+ display: none;
5264
+ }
5265
+
5219
5266
  html[data-motion='off'] .zg-orb,
5220
5267
  html[data-motion='off'] .zg-orb::before,
5221
5268
  html[data-motion='off'] .zg-orb::after,
@@ -5303,6 +5350,12 @@ html[data-motion='reduced'] .zg-orb-ripple {
5303
5350
  transition: opacity var(--zg-motion-fade);
5304
5351
  }
5305
5352
 
5353
+ /* Open and done opening (`usePanelSettled`): the sheet follows the aside's width, so a width change while open
5354
+ (the layout budget) flows the content with the edge instead of jumping it to the new width. */
5355
+ .zg-sidebar[data-settled] .zg-sidebar-sheet {
5356
+ width: 100%;
5357
+ }
5358
+
5306
5359
  .zg-sidebar[data-collapsed='true'] .zg-sidebar-sheet {
5307
5360
  opacity: 0.4;
5308
5361
  pointer-events: none;
@@ -5332,6 +5385,11 @@ html[data-motion='reduced'] .zg-orb-ripple {
5332
5385
  .zg-sidebar-list {
5333
5386
  /* Positioned: rows that leave fade out as stand-ins placed in it (motion/flip-list.ts). */
5334
5387
  position: relative;
5388
+ /* The list scrolls down, never sideways: a scroller's `overflow-x` would compute to `auto` and turn
5389
+ anything a row lets poke out (badges, a title line on a narrow sidebar) into a horizontal scroll.
5390
+ `clip`, not `hidden`: the inbox's list holds its scrollers and must not become one itself (where it
5391
+ scrolls, the Groups layout, clip computes to hidden). */
5392
+ overflow-x: clip;
5335
5393
  --zg-sticky-head-h: 36px;
5336
5394
  scroll-padding-top: calc(var(--zg-sticky-head-h) + 4px);
5337
5395
  }
@@ -5401,17 +5459,23 @@ html[data-motion='reduced'] .zg-orb-ripple {
5401
5459
  top: var(--zg-sticky-head-h);
5402
5460
  }
5403
5461
 
5404
- /* A sidebar row's badges: one line; badges keep their width (not a squeeze)
5405
- and the ones past the edge fade out there (a fixed 12px end fade). Clipped,
5406
- not a scroller: it sits inside the row's button, where a scroller could
5407
- never take keyboard focus, and every badge is also in the session's details. */
5462
+ /* A sidebar row's badges: one line; badges keep their width (not a squeeze). Past the row's edge the line
5463
+ scrolls sideways (a trackpad swipe, shift + wheel), without a scrollbar, and fades only on the side that
5464
+ has more (`.zg-scroll-fade-x`, primitives.css). The scroll stays in the line, never the sidebar's.
5465
+ `min-width: 0`: as a grid or flex item it never widens the row to its badges' whole width. */
5408
5466
  .zg-badge-strip {
5409
5467
  display: flex;
5410
5468
  align-items: center;
5411
5469
  column-gap: 0.25rem;
5412
- overflow: clip;
5413
- -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 12px), transparent);
5414
- mask-image: linear-gradient(to right, #000 calc(100% - 12px), transparent);
5470
+ min-width: 0;
5471
+ overflow-x: auto;
5472
+ overflow-y: hidden;
5473
+ overscroll-behavior-x: contain;
5474
+ scrollbar-width: none;
5475
+ --zg-fade-size: 12px;
5476
+ }
5477
+ .zg-badge-strip::-webkit-scrollbar {
5478
+ display: none;
5415
5479
  }
5416
5480
 
5417
5481
  .zg-badge-strip > * {
@@ -5435,6 +5499,9 @@ html[data-motion='reduced'] .zg-orb-ripple {
5435
5499
  .zg-row-extra {
5436
5500
  display: grid;
5437
5501
  grid-template-rows: 1fr;
5502
+ /* The track takes the row's width, never its badges': the strip clips at the row's edge. */
5503
+ grid-template-columns: minmax(0, 1fr);
5504
+ min-width: 0;
5438
5505
  }
5439
5506
  .zg-row-extra[data-grow] {
5440
5507
  animation:
@@ -5491,6 +5558,7 @@ html[data-motion='reduced'] .zg-orb-ripple {
5491
5558
  .zg-inbox-scroll {
5492
5559
  flex: 1;
5493
5560
  min-height: 0;
5561
+ overflow-x: hidden;
5494
5562
  overflow-y: auto;
5495
5563
  }
5496
5564
  /* The dock sits on the tray; its first shelf's line is the edge against the rows above. */
@@ -5507,6 +5575,7 @@ html[data-motion='reduced'] .zg-orb-ripple {
5507
5575
  }
5508
5576
  .zg-inbox-dock-body {
5509
5577
  min-height: 0;
5578
+ overflow-x: hidden;
5510
5579
  overflow-y: auto;
5511
5580
  }
5512
5581
  .zg-inbox-dock .zg-inbox-shelf {
@@ -5775,6 +5844,13 @@ html[data-motion='reduced'] .zg-arc::after {
5775
5844
  content: '\200b';
5776
5845
  }
5777
5846
 
5847
+ /* The column a transcript and its composer share: the same side padding on
5848
+ both, always, so their edges line up and the prompt rail appearing or
5849
+ leaving moves nothing. */
5850
+ .zg-transcript-column {
5851
+ padding-inline: var(--zg-transcript-gutter);
5852
+ }
5853
+
5778
5854
  /* Select-turn highlight (Timeline SelectCursor): one tint behind the
5779
5855
  transcript that fades in, then slides and resizes between selections.
5780
5856
  The timeline isolates so it can sit behind the rows (z-index -1) and
@@ -5809,6 +5885,106 @@ html[data-motion='reduced'] .zg-arc::after {
5809
5885
  height var(--zg-motion-snap);
5810
5886
  }
5811
5887
 
5888
+ /* The prompt rail's hovered exchange (`RailTint`): the select cursor's
5889
+ element in the row hover's tone, so it never reads as a selection. */
5890
+ .zg-select-cursor.zg-rail-tint {
5891
+ background: var(--zg-hover-wash);
5892
+ }
5893
+
5894
+ /* The prompt rail (`TranscriptRail`): ticks left of the transcript's text,
5895
+ centred in that space (near the pane's edge once it is wide) and on the
5896
+ view's height, over the layout (never in it). A tick is a
5897
+ short line; the one in view and the one under the pointer stretch to full
5898
+ length and take the text's tone. Touch screens get no rail. */
5899
+ .zg-prompt-rail {
5900
+ position: absolute;
5901
+ z-index: 2;
5902
+ transform: translateY(-50%);
5903
+ opacity: 0;
5904
+ visibility: hidden;
5905
+ pointer-events: none;
5906
+ transition:
5907
+ opacity var(--zg-motion-fade-out),
5908
+ visibility 0s linear var(--zg-motion-fade-out-duration, 0s);
5909
+ }
5910
+
5911
+ .zg-prompt-rail[data-on='true'] {
5912
+ opacity: 1;
5913
+ visibility: visible;
5914
+ pointer-events: auto;
5915
+ transition: opacity var(--zg-motion-fade);
5916
+ }
5917
+
5918
+ .zg-prompt-rail-ticks {
5919
+ display: flex;
5920
+ flex-direction: column;
5921
+ max-height: 192px;
5922
+ overflow-y: auto;
5923
+ scrollbar-width: none;
5924
+ }
5925
+
5926
+ .zg-prompt-rail-ticks::-webkit-scrollbar {
5927
+ display: none;
5928
+ }
5929
+
5930
+ .zg-prompt-rail-tick {
5931
+ position: relative;
5932
+ flex: none;
5933
+ width: 100%;
5934
+ height: 8px;
5935
+ padding: 0;
5936
+ border: 0;
5937
+ background: none;
5938
+ cursor: pointer;
5939
+ }
5940
+
5941
+ .zg-prompt-rail-tick::before {
5942
+ content: '';
5943
+ position: absolute;
5944
+ top: 3px;
5945
+ left: 0;
5946
+ width: 14px;
5947
+ height: 2px;
5948
+ border-radius: 9999px;
5949
+ background: var(--zg-text-subtle);
5950
+ transform: scaleX(0.55);
5951
+ transform-origin: left center;
5952
+ transition:
5953
+ transform var(--zg-motion-snap),
5954
+ background-color var(--zg-motion-hover);
5955
+ }
5956
+
5957
+ .zg-prompt-rail-tick[aria-current='location']::before {
5958
+ background: var(--zg-text);
5959
+ transform: scaleX(1);
5960
+ }
5961
+
5962
+ .zg-prompt-rail-tick[data-hover]::before {
5963
+ background: var(--zg-text-muted);
5964
+ transform: scaleX(1);
5965
+ }
5966
+
5967
+ .zg-prompt-rail-tick[aria-current='location'][data-hover]::before {
5968
+ background: var(--zg-text);
5969
+ }
5970
+
5971
+ .zg-prompt-rail-tick:focus-visible {
5972
+ outline: 2px solid var(--zg-ring);
5973
+ outline-offset: 1px;
5974
+ border-radius: var(--zg-radius-xs);
5975
+ }
5976
+
5977
+ /* A preview, not a menu: the pointer goes through it to the rail. */
5978
+ .zg-prompt-rail-card {
5979
+ pointer-events: none;
5980
+ }
5981
+
5982
+ @media (hover: none) {
5983
+ .zg-prompt-rail {
5984
+ display: none;
5985
+ }
5986
+ }
5987
+
5812
5988
  /* In select mode (the only time rows carry `data-stop`) a row is clickable. */
5813
5989
  [data-stop] {
5814
5990
  cursor: pointer;
@@ -8222,6 +8398,12 @@ html[data-motion='reduced'] .zg-toaster [data-sonner-toast].zg-toast {
8222
8398
  clip-path var(--zg-panel-ms) var(--zg-panel-ease);
8223
8399
  }
8224
8400
 
8401
+ /* Open and done opening (`usePanelSettled`): the sheet follows the aside, so a width change while open
8402
+ (the budget, the sidebar toggling) flows the content with the edge instead of jumping it to the new width. */
8403
+ .zg-side-panel[data-settled] .zg-side-panel-sheet {
8404
+ width: 100%;
8405
+ }
8406
+
8225
8407
  /* Full screen (`SidePanel`'s `expanded`): the aside keeps its width in the row (nothing
8226
8408
  beside it reflows), its clip opens to the parent at once (`data-full`), and the sheet,
8227
8409
  pinned to the outer edge, grows to the parent's width on the panel clock
@@ -9457,6 +9639,11 @@ html[data-motion='off'] .zg-tour-part[data-active] {
9457
9639
  transition: opacity var(--zg-motion-fade);
9458
9640
  }
9459
9641
 
9642
+ /* Open and done opening (`usePanelSettled`): the sheet follows the column's width. */
9643
+ .zg-files-tree[data-settled] .zg-files-tree-sheet {
9644
+ width: 100%;
9645
+ }
9646
+
9460
9647
  .zg-files-tree[data-collapsed='true'] .zg-files-tree-sheet {
9461
9648
  opacity: 0.4;
9462
9649
  pointer-events: none;
@@ -9543,6 +9730,12 @@ html[data-motion='off'] .zg-tour-part[data-active] {
9543
9730
  transition: opacity var(--zg-motion-fade);
9544
9731
  }
9545
9732
 
9733
+ /* Open and done opening (`usePanelSettled`): the sheet follows the drawer's height (the clip's: the drawer less
9734
+ its border). */
9735
+ .zg-terminal-drawer[data-settled] .zg-terminal-drawer-sheet {
9736
+ height: 100%;
9737
+ }
9738
+
9546
9739
  .zg-terminal-drawer[data-collapsed='true'] .zg-terminal-drawer-sheet {
9547
9740
  opacity: 0.4;
9548
9741
  pointer-events: none;