zidane-ui 9.1.6 → 9.1.9

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 (224) hide show
  1. package/dist/adapters/run-host.js +17 -20
  2. package/dist/adapters/server-files-host.js +3 -1
  3. package/dist/adapters/server-host.js +18 -11
  4. package/dist/adapters/server-machines-host.js +3 -1
  5. package/dist/adapters/server-session-host.js +2 -1
  6. package/dist/adapters/server-settings-accounts.js +2 -1
  7. package/dist/adapters/server-settings-host.js +3 -3
  8. package/dist/adapters/sse-host.js +9 -7
  9. package/dist/chat/SessionGroupHeader.js +2 -2
  10. package/dist/chat/SessionHostHeader.js +1 -1
  11. package/dist/chat/StatusDot.js +24 -20
  12. package/dist/chat/composer/Composer.d.ts +13 -8
  13. package/dist/chat/composer/Composer.js +14 -10
  14. package/dist/chat/composer/ComposerEditor.js +1 -1
  15. package/dist/chat/composer/HostComposer.d.ts +1 -1
  16. package/dist/chat/composer/HostComposer.js +7 -10
  17. package/dist/chat/composer/RunStatusChip.js +13 -1
  18. package/dist/chat/composer/attachment-ingest.d.ts +4 -1
  19. package/dist/chat/composer/attachment-ingest.js +27 -10
  20. package/dist/chat/composer/composer-bus.d.ts +9 -1
  21. package/dist/chat/composer/composer-bus.js +49 -6
  22. package/dist/chat/composer/index.d.ts +2 -2
  23. package/dist/chat/composer/index.js +2 -2
  24. package/dist/chat/composer/use-draft-target.d.ts +4 -0
  25. package/dist/chat/composer/use-draft-target.js +15 -4
  26. package/dist/chat/composer/use-send-prompt.d.ts +5 -1
  27. package/dist/chat/composer/use-send-prompt.js +2 -12
  28. package/dist/chat/headless/chip-labels.d.ts +2 -0
  29. package/dist/chat/headless/chip-labels.js +3 -1
  30. package/dist/chat/headless/composer/labels-editor.d.ts +2 -0
  31. package/dist/chat/headless/composer/labels-editor.js +2 -0
  32. package/dist/chat/headless/file-chip.d.ts +12 -13
  33. package/dist/chat/headless/file-chip.js +40 -2
  34. package/dist/chat/headless/fixture-host.js +14 -17
  35. package/dist/chat/headless/host.d.ts +24 -6
  36. package/dist/chat/headless/index.d.ts +4 -4
  37. package/dist/chat/headless/index.js +4 -4
  38. package/dist/chat/headless/labels.d.ts +16 -0
  39. package/dist/chat/headless/labels.js +15 -2
  40. package/dist/chat/headless/send-flow.d.ts +21 -4
  41. package/dist/chat/headless/send-flow.js +25 -6
  42. package/dist/chat/headless/session-list.d.ts +11 -0
  43. package/dist/chat/headless/sidebar/index.js +1 -1
  44. package/dist/chat/headless/sidebar/labels.d.ts +12 -1
  45. package/dist/chat/headless/transcript-host.d.ts +8 -1
  46. package/dist/chat/headless/transcript-labels.d.ts +2 -0
  47. package/dist/chat/index.d.ts +3 -3
  48. package/dist/chat/index.js +2 -2
  49. package/dist/chat/interactions/InboxPanel.js +2 -2
  50. package/dist/chat/interactions/QuestionField.js +2 -2
  51. package/dist/chat/rich-composer/RichComposer.d.ts +9 -2
  52. package/dist/chat/rich-composer/RichComposer.js +28 -7
  53. package/dist/chat/rich-composer/composer-extensions.d.ts +2 -0
  54. package/dist/chat/rich-composer/composer-extensions.js +2 -2
  55. package/dist/chat/rich-composer/composer-keys.js +1 -1
  56. package/dist/chat/rich-composer/use-composer-bus.js +2 -1
  57. package/dist/chat/rich-composer/use-composer-editor.d.ts +4 -1
  58. package/dist/chat/rich-composer/use-composer-editor.js +2 -1
  59. package/dist/chat/sidebar/SessionSidebar.js +1 -2
  60. package/dist/chat/sidebar/SidebarSearchRow.js +1 -1
  61. package/dist/chat/sidebar/useSidebarKeyboardNav.d.ts +0 -2
  62. package/dist/chat/sidebar/useSidebarKeyboardNav.js +7 -13
  63. package/dist/chat/testing/contract.d.ts +1 -1
  64. package/dist/chat/testing/contract.js +8 -7
  65. package/dist/chat/transcript/BadgeMenu.d.ts +12 -3
  66. package/dist/chat/transcript/BadgeMenu.js +20 -3
  67. package/dist/chat/transcript/CodemodeScript.js +147 -44
  68. package/dist/chat/transcript/EditDiffBlock.js +1 -4
  69. package/dist/chat/transcript/FileChip.js +60 -14
  70. package/dist/chat/transcript/LiveOutput.js +7 -3
  71. package/dist/chat/transcript/badges.js +2 -2
  72. package/dist/chat/transcript/index.d.ts +2 -2
  73. package/dist/chat/transcript/markdown-context.d.ts +4 -1
  74. package/dist/chat/transcript/rolling.d.ts +12 -0
  75. package/dist/chat/transcript/rolling.js +22 -0
  76. package/dist/chat/transcript/script-input.d.ts +1 -1
  77. package/dist/chat/transcript/shell-block.js +70 -60
  78. package/dist/chat/transcript/tool-row.js +21 -5
  79. package/dist/code/editor/FileTree.d.ts +3 -1
  80. package/dist/code/editor/FileTree.js +29 -1
  81. package/dist/components/Restricted.d.ts +25 -0
  82. package/dist/components/Restricted.js +32 -0
  83. package/dist/components/StepFrame.d.ts +1 -1
  84. package/dist/components/ZidaneMark.d.ts +28 -0
  85. package/dist/components/ZidaneMark.js +114 -0
  86. package/dist/components/palette/PalettePanel.d.ts +7 -1
  87. package/dist/components/palette/PalettePanel.js +37 -11
  88. package/dist/components/zidane-mark.d.ts +52 -0
  89. package/dist/components/zidane-mark.js +94 -0
  90. package/dist/core.css +59 -6
  91. package/dist/dist/{index-DqCio7Nd.d.ts → index-Bq87OcGy.d.ts} +19 -12
  92. package/dist/dist/index.d.ts +1 -1
  93. package/dist/extensions/ExtensionSettingsSection.d.ts +18 -0
  94. package/dist/extensions/ExtensionSettingsSection.js +227 -0
  95. package/dist/extensions/headless/host.d.ts +1 -1
  96. package/dist/extensions/headless/labels.d.ts +41 -1
  97. package/dist/extensions/headless/labels.js +57 -0
  98. package/dist/extensions/headless/select.js +1 -2
  99. package/dist/extensions/index.d.ts +2 -1
  100. package/dist/extensions/index.js +2 -1
  101. package/dist/files/FilesTab.js +2 -0
  102. package/dist/files/TreeColumn.d.ts +5 -1
  103. package/dist/files/TreeColumn.js +6 -0
  104. package/dist/files/headless/fixture-host.js +5 -3
  105. package/dist/files/headless/host.d.ts +24 -6
  106. package/dist/files/headless/index.d.ts +2 -2
  107. package/dist/files/headless/labels.d.ts +1 -0
  108. package/dist/files/headless/labels.js +1 -0
  109. package/dist/files/testing/contract.js +9 -2
  110. package/dist/files/useWorkspace.d.ts +14 -2
  111. package/dist/files/useWorkspace.js +87 -9
  112. package/dist/git/BranchMenu.js +1 -1
  113. package/dist/git/MoveSessionDialog.js +1 -1
  114. package/dist/git/RemoteFolderPicker.js +1 -1
  115. package/dist/git/WherePicker.js +1 -1
  116. package/dist/git/headless/index.js +1 -1
  117. package/dist/git/useEnvironmentChoices.js +1 -1
  118. package/dist/index.d.ts +4 -2
  119. package/dist/index.js +4 -2
  120. package/dist/keybindings/headless/catalog.js +1 -1
  121. package/dist/labels.d.ts +1 -0
  122. package/dist/labels.js +1 -0
  123. package/dist/machines/DaemonMenu.js +1 -1
  124. package/dist/machines/HostCapabilities.d.ts +23 -1
  125. package/dist/machines/HostCapabilities.js +149 -65
  126. package/dist/machines/HostSyncPanel.js +129 -123
  127. package/dist/machines/HostsSection.js +5 -1
  128. package/dist/machines/ServerCard.d.ts +4 -2
  129. package/dist/machines/ServerCard.js +222 -99
  130. package/dist/machines/ServerMachinesPanel.js +16 -13
  131. package/dist/machines/ServerUpdatePanel.js +31 -21
  132. package/dist/machines/TokensPanel.js +75 -53
  133. package/dist/machines/headless/fixture-host.d.ts +5 -0
  134. package/dist/machines/headless/fixture-host.js +13 -4
  135. package/dist/machines/headless/fixtures.js +1 -1
  136. package/dist/machines/headless/host.d.ts +22 -2
  137. package/dist/machines/headless/index.d.ts +2 -2
  138. package/dist/machines/headless/labels.d.ts +22 -1
  139. package/dist/machines/headless/labels.js +22 -2
  140. package/dist/machines/testing/contract.d.ts +3 -1
  141. package/dist/machines/testing/contract.js +9 -0
  142. package/dist/motion/size.d.ts +22 -1
  143. package/dist/motion/size.js +82 -4
  144. package/dist/onboarding/demos/delivery.d.ts +16 -0
  145. package/dist/onboarding/demos/delivery.js +132 -0
  146. package/dist/onboarding/demos/index.d.ts +2 -1
  147. package/dist/onboarding/demos/index.js +2 -1
  148. package/dist/onboarding/headless/labels.d.ts +8 -0
  149. package/dist/onboarding/headless/labels.js +7 -0
  150. package/dist/onboarding/index.d.ts +2 -1
  151. package/dist/onboarding/index.js +2 -1
  152. package/dist/onboarding/steps/ConversationStep.js +46 -4
  153. package/dist/palette/CommandPalette.js +3 -0
  154. package/dist/palette/PaletteDialog.js +7 -3
  155. package/dist/palette/usePaletteController.d.ts +10 -0
  156. package/dist/palette/usePaletteController.js +25 -3
  157. package/dist/server/sse-handler.js +6 -1
  158. package/dist/session/ArtifactsPanel.js +1 -1
  159. package/dist/session/SideChat.js +1 -2
  160. package/dist/session/UsagePanel.js +1 -1
  161. package/dist/session/headless/host.d.ts +3 -1
  162. package/dist/session/headless/index.js +2 -2
  163. package/dist/settings/SettingsRestricted.d.ts +25 -0
  164. package/dist/settings/SettingsRestricted.js +44 -0
  165. package/dist/settings/SettingsRowsPage.js +31 -37
  166. package/dist/settings/headless/catalog.js +7 -6
  167. package/dist/settings/headless/labels.d.ts +4 -2
  168. package/dist/settings/headless/labels.js +4 -2
  169. package/dist/settings/headless/layout.js +1 -1
  170. package/dist/settings/headless/providers.d.ts +2 -0
  171. package/dist/settings/headless/search.d.ts +1 -1
  172. package/dist/settings/index.d.ts +2 -2
  173. package/dist/settings/index.js +2 -2
  174. package/dist/settings/rows.d.ts +51 -8
  175. package/dist/settings/rows.js +81 -26
  176. package/dist/settings/sections/enabled-list/EnabledListSection.js +3 -2
  177. package/dist/settings/sections/environments/EnvironmentsSection.js +4 -3
  178. package/dist/settings/sections/extensions/ExtensionConfigRows.d.ts +2 -2
  179. package/dist/settings/sections/extensions/ExtensionConfigRows.js +22 -25
  180. package/dist/settings/sections/extensions/ExtensionOptionsSection.js +3 -2
  181. package/dist/settings/sections/extensions/options-labels.d.ts +2 -2
  182. package/dist/settings/sections/extensions/options-labels.js +2 -2
  183. package/dist/settings/sections/host-catalog/HostCatalogSection.d.ts +5 -3
  184. package/dist/settings/sections/host-catalog/HostCatalogSection.js +7 -4
  185. package/dist/settings/sections/instructions/InstructionsSection.js +24 -17
  186. package/dist/settings/sections/logs/LogsSection.d.ts +2 -1
  187. package/dist/settings/sections/logs/LogsSection.js +64 -56
  188. package/dist/settings/sections/mcp/McpSection.d.ts +1 -1
  189. package/dist/settings/sections/mcp/McpSection.js +18 -17
  190. package/dist/settings/sections/models/ModelRows.d.ts +3 -3
  191. package/dist/settings/sections/models/ModelRows.js +8 -7
  192. package/dist/settings/sections/performance/PerformanceSection.js +13 -4
  193. package/dist/settings/sections/performance/labels.d.ts +0 -1
  194. package/dist/settings/sections/performance/labels.js +0 -1
  195. package/dist/settings/sections/providers/CredentialSources.js +18 -8
  196. package/dist/settings/sections/providers/ProvidersSection.d.ts +2 -2
  197. package/dist/settings/sections/providers/ProvidersSection.js +20 -17
  198. package/dist/settings/sections/providers/ServerProvidersSection.d.ts +1 -1
  199. package/dist/settings/sections/providers/ServerProvidersSection.js +10 -14
  200. package/dist/settings/sections/shared/catalog.js +3 -2
  201. package/dist/settings/sections/skills/SkillList.js +3 -2
  202. package/dist/settings/testing/accounts-demo.js +1 -0
  203. package/dist/settings/testing/accounts.contract.js +2 -0
  204. package/dist/styles.css +160 -24
  205. package/dist/terminal/HostTerminalSurface.js +1 -1
  206. package/dist/terminal/headless/links.d.ts +19 -1
  207. package/dist/terminal/headless/links.js +26 -2
  208. package/dist/theme/css-vars.js +1 -0
  209. package/dist/theme/derive.d.ts +4 -0
  210. package/dist/theme/derive.js +2 -0
  211. package/dist/workspace/PanelContentView.js +1 -1
  212. package/dist/workspace/PanelHome.d.ts +3 -1
  213. package/dist/workspace/PanelHome.js +4 -3
  214. package/dist/workspace/SidePanel.d.ts +3 -1
  215. package/dist/workspace/SidePanel.js +3 -2
  216. package/dist/workspace/headless/open-target.d.ts +1 -1
  217. package/dist/workspace/headless/open-target.js +2 -2
  218. package/package.json +2 -2
  219. package/src/styles/chat.css +10 -10
  220. package/src/styles/motion.css +37 -0
  221. package/src/styles/primitives.css +11 -3
  222. package/src/styles/sidebar.css +12 -0
  223. package/src/styles/tokens.css +6 -0
  224. package/src/styles/transcript.css +69 -5
@@ -374,7 +374,7 @@ function ListRow({ item }) {
374
374
  className: `${item.icon.gui} shrink-0 text-zg-body ${item.wrap ? "mt-[3px]" : "mt-[2px]"} ${badgeToneClass(item.tone)}`,
375
375
  style: badgeColorStyle(item.color)
376
376
  }) : item.status && /* @__PURE__ */ jsx("span", {
377
- className: "zg-track-chip shrink-0 mt-[3px] inline-flex h-[14px] min-w-[14px] items-center justify-center px-1 font-mono text-[9px] uppercase text-[var(--zg-text-muted)]",
377
+ className: "zg-track-chip shrink-0 mt-[3px] inline-flex h-[14px] min-w-[14px] items-center justify-center px-1 font-mono text-[9px] text-[var(--zg-text-muted)]",
378
378
  children: item.status
379
379
  }),
380
380
  /* @__PURE__ */ jsxs("div", {
@@ -8,12 +8,14 @@ interface PanelHomeProps {
8
8
  onPick: (id: string) => void;
9
9
  /** A tab's one-line description. */
10
10
  describe?: (tab: WorkspaceTab) => string | undefined;
11
+ /** A count per tab id the app keeps (the session's artifacts). 0 or absent: none. */
12
+ counts?: Readonly<Record<string, number>>;
11
13
  }
12
14
  /**
13
15
  * Renders the start screen.
14
16
  *
15
17
  * @param props - The {@link PanelHomeProps}.
16
18
  */
17
- declare const PanelHome: import("react").MemoExoticComponent<({ tabs, onPick, describe }: PanelHomeProps) => import("react").JSX.Element | null>;
19
+ declare const PanelHome: import("react").MemoExoticComponent<({ tabs, onPick, describe, counts }: PanelHomeProps) => import("react").JSX.Element | null>;
18
20
  //#endregion
19
21
  export { PanelHome, PanelHomeProps };
@@ -10,7 +10,7 @@ import { panelBadgeText } from "zidane/chat/pure";
10
10
  * The side panel's start screen, shown while it is open with no tab: every
11
11
  * tab it offers as a card (icon, name, the app's one-line description, and a
12
12
  * count when the tab has one: what waits on you, an extension panel's
13
- * badge). A click opens the tab. Quiet like a browser's new-tab page: no
13
+ * badge, the app's own count). A click opens the tab. Quiet like a browser's new-tab page: no
14
14
  * heading beyond one label, nothing to configure.
15
15
  */
16
16
  /**
@@ -18,7 +18,7 @@ import { panelBadgeText } from "zidane/chat/pure";
18
18
  *
19
19
  * @param props - The {@link PanelHomeProps}.
20
20
  */
21
- const PanelHome = memo(function PanelHome({ tabs, onPick, describe }) {
21
+ const PanelHome = memo(function PanelHome({ tabs, onPick, describe, counts }) {
22
22
  const labels = useWorkspaceLabels();
23
23
  const { attention, contentFor } = useWorkspaceContent();
24
24
  if (tabs.length === 0) return null;
@@ -35,7 +35,8 @@ const PanelHome = memo(function PanelHome({ tabs, onPick, describe }) {
35
35
  className: "list-none m-0 p-0 grid grid-cols-2 gap-2",
36
36
  children: tabs.map((tab) => {
37
37
  const waiting = attention[tab.id];
38
- const badge = waiting && waiting.count > 0 ? String(waiting.count) : panelBadgeText(contentFor(tab.id).content?.badge);
38
+ const own = counts?.[tab.id] ?? 0;
39
+ const badge = waiting && waiting.count > 0 ? String(waiting.count) : panelBadgeText(contentFor(tab.id).content?.badge) ?? (own > 0 ? String(own) : void 0);
39
40
  const note = describe?.(tab);
40
41
  return /* @__PURE__ */ jsx("li", {
41
42
  className: "min-w-0",
@@ -36,6 +36,8 @@ interface SidePanelProps extends Omit<ComponentPropsWithoutRef<'aside'>, 'childr
36
36
  bodyKey?: string;
37
37
  /** The scope the panel draws (its key): tabs drop only into its strips, a change starts its frames afresh. Default: the provider's scope. */
38
38
  scopeKey?: string;
39
+ /** A count per tab id on its start-screen card (the session's artifacts). */
40
+ counts?: Readonly<Record<string, number>>;
39
41
  }
40
42
  /**
41
43
  * The side panel for the scope on screen: its tab groups, their bodies, the resize edge and, when it floats and slid
@@ -43,6 +45,6 @@ interface SidePanelProps extends Omit<ComponentPropsWithoutRef<'aside'>, 'childr
43
45
  *
44
46
  * @param props - The registry, the width and its bounds, the controls and the placement.
45
47
  */
46
- declare const SidePanel: import("react").MemoExoticComponent<({ registry, width, minWidth, maxWidth, defaultWidth, onWidthCommit, controls, endInset, startInset, expanded, overlay, slidAway, onReveal, fill, bodyKey, scopeKey, className, style, ...rest }: SidePanelProps) => import("react").JSX.Element | null>;
48
+ declare const SidePanel: import("react").MemoExoticComponent<({ registry, width, minWidth, maxWidth, defaultWidth, onWidthCommit, controls, endInset, startInset, expanded, overlay, slidAway, onReveal, fill, bodyKey, scopeKey, counts, className, style, ...rest }: SidePanelProps) => import("react").JSX.Element | null>;
47
49
  //#endregion
48
50
  export { SidePanel, SidePanelProps, type StripControls };
@@ -38,7 +38,7 @@ import { memo, useEffect, useRef } from "react";
38
38
  *
39
39
  * @param props - The registry, the width and its bounds, the controls and the placement.
40
40
  */
41
- const SidePanel = memo(function SidePanel({ registry, width, minWidth, maxWidth, defaultWidth = width, onWidthCommit, controls, endInset, startInset, expanded = false, overlay = false, slidAway = false, onReveal, fill = false, bodyKey, scopeKey, className, style, ...rest }) {
41
+ const SidePanel = memo(function SidePanel({ registry, width, minWidth, maxWidth, defaultWidth = width, onWidthCommit, controls, endInset, startInset, expanded = false, overlay = false, slidAway = false, onReveal, fill = false, bodyKey, scopeKey, counts, className, style, ...rest }) {
42
42
  const panels = useWorkspaceView();
43
43
  const { pick } = useWorkspaceActions();
44
44
  const labels = useWorkspaceLabels();
@@ -133,7 +133,8 @@ const SidePanel = memo(function SidePanel({ registry, width, minWidth, maxWidth,
133
133
  }), /* @__PURE__ */ jsx(PanelHome, {
134
134
  tabs: panels.closedTabs,
135
135
  onPick: pick,
136
- ...registry.describe ? { describe: (tab) => registry.describe(tab) } : {}
136
+ ...registry.describe ? { describe: (tab) => registry.describe(tab) } : {},
137
+ ...counts ? { counts } : {}
137
138
  })] })
138
139
  }), open && !fill && !sheetFull && onWidthCommit && /* @__PURE__ */ jsx("div", {
139
140
  ...drag.handleProps,
@@ -30,7 +30,7 @@ interface OpenTargetApi {
30
30
  * callers can hand over).
31
31
  */
32
32
  file: (absPath: string, event?: OpenTargetEvent,
33
- /** Position to reveal (1-based); the panel honours it, the editor gets the file only. */
33
+ /** Position to reveal (1-based): the panel's viewer and the editors that take one (`system.openPath`). */
34
34
  at?: {
35
35
  line: number;
36
36
  column?: number;
@@ -24,12 +24,12 @@ function createOpenTarget({ setting, system, revealFile, openProactive }) {
24
24
  const resolve = (event) => {
25
25
  return Boolean(event?.metaKey || event?.ctrlKey) ? setting === "panel" ? "editor" : "panel" : setting;
26
26
  };
27
- const openPath = (absPath) => system?.openPath(absPath).catch(() => false) ?? Promise.resolve(false);
27
+ const openPath = (absPath, at) => system?.openPath(absPath, ...at ? [at] : []).catch(() => false) ?? Promise.resolve(false);
28
28
  return {
29
29
  resolve,
30
30
  file: async (absPath, event, at) => {
31
31
  const target = isSandboxPath(absPath) ? "panel" : resolve(event);
32
- if (target === "editor") await openPath(absPath);
32
+ if (target === "editor") await openPath(absPath, at);
33
33
  else {
34
34
  if (at) setPendingReveal(absPath, at);
35
35
  revealFile(absPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zidane-ui",
3
- "version": "9.1.6",
3
+ "version": "9.1.9",
4
4
  "description": "Zidane design system and chat kit: tokens, surface primitives, theme engine, React components, the chat layer (sessions, transcript, composer) and ChatHost adapters.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -536,7 +536,7 @@
536
536
  "react": "^19.3.0",
537
537
  "react-dom": "^19.3.0",
538
538
  "unocss": ">=66.0.0",
539
- "zidane": "^9.1.6",
539
+ "zidane": "^9.1.9",
540
540
  "vitest": ">=3"
541
541
  },
542
542
  "peerDependenciesMeta": {
@@ -54,12 +54,10 @@
54
54
  contain-intrinsic-size: auto 28px;
55
55
  }
56
56
 
57
+ /* Active: a flat wash a step above hover, no raised chip (it read as a button). Hover keeps it. */
57
58
  .zg-session-row[data-active='true']::before,
58
- .zg-session-row[data-tentative-active='true']::before,
59
- .zg-session-row[data-active='true']:hover::before,
60
- .zg-session-row[data-tentative-active='true']:hover::before {
61
- background: var(--zg-raised);
62
- box-shadow: var(--zg-shadow-raised);
59
+ .zg-session-row[data-tentative-active='true']::before {
60
+ background: var(--zg-row-active);
63
61
  }
64
62
 
65
63
  .zg-session-row:hover:not([data-active='true']):not([data-tentative-active='true'])::before {
@@ -74,11 +72,6 @@
74
72
  box-shadow: var(--zg-shadow-well);
75
73
  }
76
74
 
77
- .zg-session-row[data-active='true'] .zg-session-title,
78
- .zg-session-row[data-tentative-active='true'] .zg-session-title {
79
- font-weight: 500;
80
- }
81
-
82
75
  /* The title's color; its fade lives on the clip around it (`.zg-title-clip`). */
83
76
  .zg-session-title {
84
77
  color: var(--zg-text-muted);
@@ -418,6 +411,13 @@ html[data-motion='reduced'] .zg-orb-ripple {
418
411
  transform-origin: var(--radix-dropdown-menu-content-transform-origin);
419
412
  }
420
413
 
414
+ /* Dark appearance: primary text at the theme's strongest, as in the sidebar. */
415
+ :root.dark .zg-inbox {
416
+ --zg-text: var(--zg-text-strong);
417
+ /* A question's unpicked choices (QuestionField), muted elsewhere. */
418
+ --zg-choice-fg: var(--zg-text-strong);
419
+ }
420
+
421
421
  /* Inbox card resolved: lifts away on `exit` and fades on `fade-out`, then
422
422
  unmounts (InboxPanel waits `readExitMs`). */
423
423
  .zg-inbox-card[data-state='leaving'] {
@@ -129,6 +129,16 @@ html[data-motion='reduced'] .zg-shimmer {
129
129
  white-space: nowrap;
130
130
  }
131
131
 
132
+ /* SmoothHeight: eases between two contents' heights while `data-easing`, then lets go. */
133
+ .zg-smooth-height[data-easing] {
134
+ overflow: hidden;
135
+ transition: height var(--zg-motion-settle);
136
+ }
137
+ /* The content's own margins stay inside what is measured. */
138
+ .zg-smooth-height-inner {
139
+ display: flow-root;
140
+ }
141
+
132
142
  /* HeldWidth: a trailing slot held to its widest content; content sits on
133
143
  the right edge and is revealed from the left as the slot grows. */
134
144
  .zg-held-width {
@@ -551,6 +561,33 @@ html[data-motion='reduced'] :is(.animate-spin, .zg-spin-ring, .zg-sendstop-ring)
551
561
  `running`, Timeline `tool-running`). Applied to an absolutely positioned
552
562
  ring sibling, never to the dot itself. */
553
563
 
564
+ /* The zidane mark spinning in and out (`ZidaneMark`): a quarter turn the way
565
+ its bands flow, from `--zg-mark-from` of its size (the dot it grows out
566
+ of in `StatusDot`). `.zg-mark-in` plays on mount; `.zg-mark-swap` on a
567
+ `Presence` plays both ways. Turn and scale ride `snap` in and `exit`
568
+ out, opacity `fade` / `fade-out`. */
569
+ .zg-mark-in,
570
+ .zg-presence.zg-mark-swap[data-state='enter'] {
571
+ animation:
572
+ zg-mark-in var(--zg-motion-snap) both,
573
+ zg-fade-in var(--zg-motion-fade) both;
574
+ }
575
+ .zg-presence.zg-mark-swap[data-state='exit'] {
576
+ animation:
577
+ zg-mark-out var(--zg-motion-exit) both,
578
+ zg-fade-out var(--zg-motion-fade-out) both;
579
+ }
580
+ @keyframes zg-mark-in {
581
+ from {
582
+ transform: scale(var(--zg-mark-from, 0.6)) rotate(-90deg);
583
+ }
584
+ }
585
+ @keyframes zg-mark-out {
586
+ to {
587
+ transform: scale(var(--zg-mark-from, 0.6)) rotate(45deg);
588
+ }
589
+ }
590
+
554
591
  @keyframes zg-orbit {
555
592
  to {
556
593
  transform: rotate(360deg);
@@ -84,6 +84,16 @@
84
84
  scale: 0.985;
85
85
  }
86
86
 
87
+ /* Restricted (`Restricted.tsx`): what a connection may read but not change,
88
+ dimmed by tone and opacity together; its tooltip says why. */
89
+ .zg-restricted {
90
+ cursor: not-allowed;
91
+ }
92
+ .zg-restricted > [inert] {
93
+ opacity: 0.55;
94
+ filter: saturate(0.6);
95
+ }
96
+
87
97
  /* Tooltip (`Tooltip.tsx`): visibility, the fade + 2px rise and the show
88
98
  delay are driven inline by the component (one timing model for inline and
89
99
  portalled bubbles). This is the hidden state before it renders. */
@@ -314,12 +324,10 @@
314
324
  background: var(--zg-row-hover);
315
325
  }
316
326
 
317
- /* The one uppercase section label. */
327
+ /* The section label: sentence case, as written. */
318
328
  .zg-section-label {
319
329
  font-size: var(--zg-font-size-badge);
320
330
  font-weight: 600;
321
- letter-spacing: 0.08em;
322
- text-transform: uppercase;
323
331
  /* A real label, read like any text: the muted tone (subtle is for decoration). */
324
332
  color: var(--zg-text-muted);
325
333
  }
@@ -26,6 +26,18 @@
26
26
  width: 0;
27
27
  }
28
28
 
29
+ /* Dark appearance: primary text at the theme's strongest (pure white unless the theme names its text); muted and
30
+ subtle keep the theme's gray. */
31
+ :root.dark .zg-sidebar {
32
+ --zg-text: var(--zg-text-strong);
33
+ /* Project names, the New session label, the search placeholder; muted elsewhere. */
34
+ --zg-sidebar-label-fg: var(--zg-text-strong);
35
+ }
36
+ /* Every session title, not only the active one (`.zg-session-title` is muted in chat.css). */
37
+ :root.dark .zg-sidebar .zg-session-title {
38
+ color: var(--zg-text);
39
+ }
40
+
29
41
  /* Content sheet: full panel width, pinned to the aside's right edge so it
30
42
  travels with it. A light opacity fade rides along (no blur, no
31
43
  re-layout: nothing inside changes position relative to the sheet). */
@@ -33,6 +33,7 @@
33
33
  --zg-ring: #26a9f1;
34
34
 
35
35
  --zg-text-raw: #e5e8ec;
36
+ --zg-text-strong-raw: #ffffff;
36
37
  --zg-text-muted-raw: #9499a0;
37
38
  --zg-text-subtle-raw: #5f636a;
38
39
 
@@ -299,6 +300,11 @@ html[data-motion='off'] {
299
300
  color-mix(in oklab, var(--zg-text-raw) var(--zg-contrast-base), var(--zg-bg)),
300
301
  var(--zg-contrast-target) var(--zg-contrast-boost)
301
302
  );
303
+ --zg-text-strong: color-mix(
304
+ in oklab,
305
+ color-mix(in oklab, var(--zg-text-strong-raw, var(--zg-text-raw)) var(--zg-contrast-base), var(--zg-bg)),
306
+ var(--zg-contrast-target) var(--zg-contrast-boost)
307
+ );
302
308
  --zg-text-muted: color-mix(
303
309
  in oklab,
304
310
  color-mix(in oklab, var(--zg-text-muted-raw) var(--zg-contrast-base), var(--zg-bg)),
@@ -639,7 +639,8 @@ a.zg-badge:hover,
639
639
  script has not reached are dim; the running one carries the accent and the
640
640
  running sweep; a call that ends washes its line once; a failed line is red,
641
641
  the script's own error under it. A running script past 15 lines scrolls to
642
- follow its running line. Motion stops under reduced / off. */
642
+ follow its running line, and keeps that window once it ends. Motion stops
643
+ under reduced / off. */
643
644
  /* The frame's hairline, drawn again over the lines: the sticky gutter and the
644
645
  tinted lines are opaque, and covered it where they meet the frame's edge. */
645
646
  .zg-script-frame::after {
@@ -665,13 +666,15 @@ a.zg-badge:hover,
665
666
  .zg-code-scroll[data-wrap] .zg-script-lines {
666
667
  width: auto;
667
668
  }
668
- .zg-script-lines[data-follow] {
669
- max-height: calc(15 * 1.5em + 1rem);
669
+ /* A long script's window: the frame's own scroller takes it, so one element
670
+ scrolls both ways and the sticky gutter stays put sideways too. */
671
+ .zg-code-scroll:has(> .zg-script-lines[data-window]) {
672
+ max-height: calc(15 * 1.5 * var(--zg-font-size-code) + 1rem);
670
673
  overflow-y: auto;
671
674
  scroll-behavior: smooth;
672
675
  }
673
- html[data-motion='off'] .zg-script-lines,
674
- html[data-motion='reduced'] .zg-script-lines {
676
+ html[data-motion='off'] .zg-code-scroll,
677
+ html[data-motion='reduced'] .zg-code-scroll {
675
678
  scroll-behavior: auto;
676
679
  }
677
680
  .zg-script-line {
@@ -722,6 +725,61 @@ html[data-motion='reduced'] .zg-script-lines {
722
725
  .zg-script-line[data-state='idle'] .zg-script-number {
723
726
  opacity: 0.4;
724
727
  }
728
+ /* In a loop that went round again: ran in the round before, not yet in this one. */
729
+ .zg-script-line[data-state='previous'] .zg-script-code {
730
+ opacity: 0.6;
731
+ }
732
+ .zg-script-line[data-state='previous'] .zg-script-mark {
733
+ opacity: 0.35;
734
+ }
735
+ /* A `sleep`: the running tint, softer, and its mark breathing. */
736
+ .zg-script-line[data-state='waiting'] {
737
+ --zg-script-tint: color-mix(in srgb, var(--zg-accent-wash) 40%, transparent);
738
+ --zg-script-bar: color-mix(in srgb, var(--zg-accent) 60%, transparent);
739
+ }
740
+ .zg-script-line[data-state='waiting'] .zg-script-gutter {
741
+ color: var(--zg-accent);
742
+ }
743
+ .zg-script-line[data-state='waiting'] .zg-script-mark {
744
+ animation: zg-script-breathe 2s ease-in-out infinite;
745
+ }
746
+ html[data-motion='off'] .zg-script-line .zg-script-mark,
747
+ html[data-motion='reduced'] .zg-script-line .zg-script-mark {
748
+ animation: none;
749
+ }
750
+
751
+ /* Loops: the first line's mark, and while the script is in a loop, its line
752
+ numbers in the running color. */
753
+ .zg-script-loop {
754
+ color: var(--zg-text-subtle);
755
+ transition: color var(--zg-motion-fade);
756
+ }
757
+ .zg-script-loop[data-active] {
758
+ color: var(--zg-accent);
759
+ }
760
+ .zg-script-line[data-in-loop] .zg-script-number {
761
+ color: color-mix(in srgb, var(--zg-accent) 75%, var(--zg-text-subtle));
762
+ }
763
+
764
+ /* After a line's code: a loop's round, a line's call count, a wait's time left. */
765
+ .zg-script-note {
766
+ display: inline-flex;
767
+ align-items: center;
768
+ gap: 0.25rem;
769
+ margin-inline-start: 0.625ch;
770
+ border-radius: var(--zg-radius-xs);
771
+ font-family: var(--zg-font-ui);
772
+ font-size: 0.85em;
773
+ color: var(--zg-text-subtle);
774
+ font-variant-numeric: tabular-nums;
775
+ vertical-align: 0.05em;
776
+ transition: color var(--zg-motion-fade);
777
+ }
778
+ .zg-script-note[data-active] {
779
+ padding-inline: 0.375rem;
780
+ color: var(--zg-accent);
781
+ background: color-mix(in srgb, var(--zg-accent-wash) 60%, transparent);
782
+ }
725
783
  /* A line's tint and bar come from its state. The gutter stays opaque (code
726
784
  scrolled sideways passes under it): the tint goes on a layer over its own
727
785
  background, and the bar sits on it, so both stay in place while scrolling. */
@@ -776,6 +834,12 @@ html[data-motion='reduced'] .zg-script-line::after {
776
834
  animation: none;
777
835
  }
778
836
 
837
+ @keyframes zg-script-breathe {
838
+ 50% {
839
+ opacity: 0.4;
840
+ }
841
+ }
842
+
779
843
  @keyframes zg-script-settle {
780
844
  from {
781
845
  background-color: color-mix(in srgb, var(--zg-success-soft) 80%, transparent);