zidane-ui 9.5.2 → 9.6.1

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 (201) hide show
  1. package/dist/adapters/index.d.ts +2 -1
  2. package/dist/adapters/index.js +2 -1
  3. package/dist/adapters/server-git-host.js +67 -0
  4. package/dist/adapters/server-host.js +9 -0
  5. package/dist/adapters/server-oauth-flow.d.ts +2 -2
  6. package/dist/adapters/server-oauth-flow.js +1 -1
  7. package/dist/adapters/server-projects.d.ts +53 -2
  8. package/dist/adapters/server-projects.js +4 -3
  9. package/dist/adapters/server-session-host.js +112 -4
  10. package/dist/channels/BindingEditorDialog.js +1 -1
  11. package/dist/channels/ChannelDefaultsSection.js +1 -1
  12. package/dist/channels/ChannelsSettingsSection.js +1 -1
  13. package/dist/channels/ConnectionSetupDialog.js +1 -1
  14. package/dist/channels/HeldRepliesList.js +1 -1
  15. package/dist/channels/ProjectChannelsSection.js +1 -1
  16. package/dist/chat/HostTranscript.js +1 -0
  17. package/dist/chat/SessionGroupHeader.js +2 -2
  18. package/dist/chat/composer/ComposerBadges.d.ts +27 -1
  19. package/dist/chat/composer/ComposerBadges.js +41 -5
  20. package/dist/chat/composer/ConversationBadges.d.ts +6 -0
  21. package/dist/chat/composer/ConversationBadges.js +70 -3
  22. package/dist/chat/composer/DraftPickers.js +4 -0
  23. package/dist/chat/composer/ServerScopeToggle.d.ts +16 -1
  24. package/dist/chat/composer/ServerScopeToggle.js +90 -47
  25. package/dist/chat/composer/index.d.ts +2 -2
  26. package/dist/chat/composer/use-draft-target.d.ts +18 -2
  27. package/dist/chat/composer/use-draft-target.js +74 -7
  28. package/dist/chat/composer/use-new-session-defaults.d.ts +3 -1
  29. package/dist/chat/composer/use-new-session-defaults.js +19 -14
  30. package/dist/chat/composer/use-send-prompt.js +2 -2
  31. package/dist/chat/headless/composer/index.d.ts +2 -2
  32. package/dist/chat/headless/composer/index.js +2 -2
  33. package/dist/chat/headless/composer/labels-chrome.d.ts +7 -0
  34. package/dist/chat/headless/composer/labels-chrome.js +7 -0
  35. package/dist/chat/headless/composer/labels-editor.d.ts +4 -0
  36. package/dist/chat/headless/composer/labels-editor.js +4 -0
  37. package/dist/chat/headless/composer/models.d.ts +2 -0
  38. package/dist/chat/headless/composer/new-session-defaults.d.ts +12 -1
  39. package/dist/chat/headless/composer/new-session-defaults.js +30 -1
  40. package/dist/chat/headless/draft-target.d.ts +27 -6
  41. package/dist/chat/headless/draft-target.js +36 -3
  42. package/dist/chat/headless/host.d.ts +7 -0
  43. package/dist/chat/headless/index.d.ts +4 -4
  44. package/dist/chat/headless/index.js +29 -29
  45. package/dist/chat/headless/labels.d.ts +4 -0
  46. package/dist/chat/headless/send-flow.d.ts +2 -0
  47. package/dist/chat/headless/send-flow.js +2 -1
  48. package/dist/chat/headless/session-list.d.ts +4 -0
  49. package/dist/chat/headless/sidebar/index.d.ts +2 -2
  50. package/dist/chat/headless/sidebar/labels.d.ts +9 -1
  51. package/dist/chat/headless/sidebar/labels.js +4 -0
  52. package/dist/chat/headless/sidebar/rows.d.ts +48 -7
  53. package/dist/chat/headless/sidebar/rows.js +121 -22
  54. package/dist/chat/headless/sidebar/types.d.ts +5 -0
  55. package/dist/chat/headless/transcript/fold-actions.d.ts +8 -3
  56. package/dist/chat/headless/transcript/fold-actions.js +29 -1
  57. package/dist/chat/index.d.ts +2 -2
  58. package/dist/chat/index.js +2 -2
  59. package/dist/chat/rich-composer/RichComposer.js +58 -11
  60. package/dist/chat/rich-composer/composer-controls.d.ts +5 -1
  61. package/dist/chat/rich-composer/composer-controls.js +4 -4
  62. package/dist/chat/rich-composer/composer-keys.js +2 -2
  63. package/dist/chat/rich-composer/draft-collab.d.ts +91 -0
  64. package/dist/chat/rich-composer/draft-collab.js +310 -0
  65. package/dist/chat/rich-composer/use-composer-editor.d.ts +2 -0
  66. package/dist/chat/rich-composer/use-draft-collab.d.ts +53 -0
  67. package/dist/chat/rich-composer/use-draft-collab.js +92 -0
  68. package/dist/chat/rich-composer/use-draft-mirror.d.ts +11 -0
  69. package/dist/chat/rich-composer/use-draft-mirror.js +38 -9
  70. package/dist/chat/sidebar/InboxList.js +1 -1
  71. package/dist/chat/sidebar/ProjectIcon.d.ts +6 -2
  72. package/dist/chat/sidebar/ProjectIcon.js +7 -3
  73. package/dist/chat/sidebar/SessionSidebar.d.ts +30 -1
  74. package/dist/chat/sidebar/SessionSidebar.js +79 -7
  75. package/dist/chat/sidebar/SidebarGroupHeader.d.ts +12 -4
  76. package/dist/chat/sidebar/SidebarGroupHeader.js +70 -28
  77. package/dist/chat/sidebar/index.d.ts +2 -2
  78. package/dist/chat/transcript/actions.d.ts +6 -0
  79. package/dist/chat/transcript/fold.d.ts +2 -1
  80. package/dist/chat/transcript/fold.js +26 -1
  81. package/dist/chat/transcript/index.js +3 -3
  82. package/dist/chat/transcript/notices.d.ts +5 -2
  83. package/dist/chat/transcript/notices.js +23 -3
  84. package/dist/chat/transcript/script-input.d.ts +1 -1
  85. package/dist/components/Avatar.d.ts +36 -0
  86. package/dist/components/Avatar.js +56 -0
  87. package/dist/components/AvatarStack.d.ts +58 -0
  88. package/dist/components/AvatarStack.js +187 -0
  89. package/dist/components/Tabs.d.ts +6 -1
  90. package/dist/components/Tabs.js +43 -39
  91. package/dist/core.css +19 -1
  92. package/dist/dist/{index-DPbpsCtl.d.ts → index-ChabiHpR.d.ts} +1 -1
  93. package/dist/dist/index.d.ts +1 -1
  94. package/dist/git/headless/environment.d.ts +15 -0
  95. package/dist/git/headless/environment.js +18 -1
  96. package/dist/git/headless/github.d.ts +11 -0
  97. package/dist/git/headless/github.js +15 -0
  98. package/dist/git/headless/host.d.ts +109 -0
  99. package/dist/git/headless/index.d.ts +5 -4
  100. package/dist/git/headless/index.js +4 -3
  101. package/dist/git/headless/labels.d.ts +16 -1
  102. package/dist/git/headless/labels.js +25 -1
  103. package/dist/git/testing/contract.d.ts +22 -4
  104. package/dist/git/testing/contract.js +173 -3
  105. package/dist/git/testing/index.d.ts +22 -1
  106. package/dist/git/testing/index.js +135 -1
  107. package/dist/index.d.ts +3 -1
  108. package/dist/index.js +3 -1
  109. package/dist/labels.d.ts +4 -0
  110. package/dist/labels.js +4 -0
  111. package/dist/onboarding/headless/labels.d.ts +4 -0
  112. package/dist/session/DraftPeopleStack.d.ts +24 -0
  113. package/dist/session/DraftPeopleStack.js +48 -0
  114. package/dist/session/NewProjectDialog.d.ts +28 -8
  115. package/dist/session/NewProjectDialog.js +225 -40
  116. package/dist/session/PersonCard.d.ts +29 -0
  117. package/dist/session/PersonCard.js +199 -0
  118. package/dist/session/ProjectArtifactsSection.d.ts +4 -1
  119. package/dist/session/ProjectArtifactsSection.js +149 -34
  120. package/dist/session/ProjectHome.d.ts +1 -1
  121. package/dist/session/ProjectHome.js +23 -4
  122. package/dist/session/ProjectName.d.ts +11 -6
  123. package/dist/session/ProjectName.js +27 -13
  124. package/dist/session/ProjectPeopleStack.d.ts +26 -0
  125. package/dist/session/ProjectPeopleStack.js +56 -0
  126. package/dist/session/ProjectPublishDialog.js +9 -3
  127. package/dist/session/ProjectSettingsDialog.d.ts +1 -1
  128. package/dist/session/ProjectSettingsDialog.js +171 -66
  129. package/dist/session/ProjectShareDialog.d.ts +1 -1
  130. package/dist/session/ProjectShareDialog.js +16 -6
  131. package/dist/session/ProjectToolsSection.js +88 -96
  132. package/dist/session/ProjectUsage.d.ts +4 -1
  133. package/dist/session/ProjectUsage.js +13 -4
  134. package/dist/session/SessionDetailsDialog.d.ts +5 -1
  135. package/dist/session/SessionDetailsDialog.js +67 -10
  136. package/dist/session/SessionPeopleStack.js +19 -37
  137. package/dist/session/SessionProjectPicker.d.ts +54 -0
  138. package/dist/session/SessionProjectPicker.js +175 -0
  139. package/dist/session/SessionProvider.d.ts +15 -1
  140. package/dist/session/SessionProvider.js +28 -6
  141. package/dist/session/UsageSection.d.ts +2 -4
  142. package/dist/session/UsageSection.js +57 -55
  143. package/dist/session/headless/draft-collab.d.ts +55 -0
  144. package/dist/session/headless/draft-collab.js +127 -0
  145. package/dist/session/headless/draft-room.d.ts +124 -0
  146. package/dist/session/headless/draft-room.js +340 -0
  147. package/dist/session/headless/drafts.d.ts +93 -0
  148. package/dist/session/headless/drafts.js +79 -0
  149. package/dist/session/headless/fixture-drafts.d.ts +54 -0
  150. package/dist/session/headless/fixture-drafts.js +286 -0
  151. package/dist/session/headless/fixture-host.d.ts +18 -2
  152. package/dist/session/headless/fixture-host.js +41 -7
  153. package/dist/session/headless/fixture-projects.d.ts +6 -4
  154. package/dist/session/headless/fixture-projects.js +25 -4
  155. package/dist/session/headless/host.d.ts +34 -6
  156. package/dist/session/headless/index.d.ts +6 -3
  157. package/dist/session/headless/index.js +6 -3
  158. package/dist/session/headless/labels.d.ts +47 -2
  159. package/dist/session/headless/labels.js +17 -1
  160. package/dist/session/headless/people.d.ts +27 -3
  161. package/dist/session/headless/people.js +38 -20
  162. package/dist/session/headless/project-artifact-labels.d.ts +7 -0
  163. package/dist/session/headless/project-artifact-labels.js +7 -0
  164. package/dist/session/headless/project-artifacts.d.ts +8 -0
  165. package/dist/session/headless/project-artifacts.js +15 -1
  166. package/dist/session/headless/project-labels.d.ts +25 -0
  167. package/dist/session/headless/project-labels.js +25 -0
  168. package/dist/session/headless/shared-with.d.ts +28 -0
  169. package/dist/session/headless/shared-with.js +51 -0
  170. package/dist/session/host-context.d.ts +11 -0
  171. package/dist/session/host-context.js +14 -0
  172. package/dist/session/index.d.ts +7 -3
  173. package/dist/session/index.js +6 -2
  174. package/dist/session/new-project-parts.d.ts +67 -0
  175. package/dist/session/new-project-parts.js +470 -0
  176. package/dist/session/project-artifact-parts.d.ts +2 -1
  177. package/dist/session/project-artifact-parts.js +5 -2
  178. package/dist/session/project-people.d.ts +14 -0
  179. package/dist/session/project-people.js +86 -0
  180. package/dist/session/share-people.d.ts +12 -0
  181. package/dist/session/share-people.js +1 -1
  182. package/dist/session/testing/contract.d.ts +6 -3
  183. package/dist/session/testing/contract.js +24 -3
  184. package/dist/session/testing/drafts.contract.d.ts +30 -0
  185. package/dist/session/testing/drafts.contract.js +126 -0
  186. package/dist/session/testing/index.d.ts +2 -1
  187. package/dist/session/testing/index.js +2 -1
  188. package/dist/session/use-home-projects.d.ts +11 -2
  189. package/dist/session/use-home-projects.js +142 -5
  190. package/dist/session/useDraftCollab.d.ts +24 -0
  191. package/dist/session/useDraftCollab.js +78 -0
  192. package/dist/settings/headless/search.d.ts +1 -1
  193. package/dist/settings/index.js +9 -9
  194. package/dist/settings/sections/index.js +1 -1
  195. package/dist/settings/sections/providers/CredentialSources.d.ts +5 -5
  196. package/dist/settings/sections/providers/CredentialSources.js +5 -22
  197. package/dist/settings/sections/providers/labels.d.ts +1 -9
  198. package/dist/settings/sections/providers/labels.js +1 -9
  199. package/dist/styles.css +20 -9
  200. package/package.json +4 -3
  201. package/src/styles/sidebar.css +2 -3
@@ -348,8 +348,11 @@ const FailureRow = memo(({ text, detail, failure, stoppedBy, resumable, onResume
348
348
  * is the outcome, so there is no verb on screen), the title, the report's
349
349
  * excerpt, then the run's duration and turns in their fixed slots, the open
350
350
  * button, the caret. Opened, the report shows in full, rendered as markdown,
351
- * with the rest of the run's receipt under it. Under its conversation's
352
- * header the bar reads its time instead of the title. Where the session ran
351
+ * with the rest of the run's receipt under it. A report quotes the message
352
+ * cut (`summaryTruncated`, for the Main's context): opened, the row reads the
353
+ * whole message once (`TranscriptActions.sessionMessage`), the cut until it
354
+ * lands. Under its conversation's header the bar reads its time instead of
355
+ * the title. Where the session ran
353
356
  * is the group's to say (its project and worktree sections). Falls back to a
354
357
  * plain text row when `sessionEvent` is absent (malformed signal).
355
358
  */
@@ -358,8 +361,25 @@ const SessionEventRow = memo(({ event, onOpenSession, className, style }) => {
358
361
  const scope = useSessionEventScope();
359
362
  const icons = useRowIcons();
360
363
  const [open, setOpen] = useRowUiState(useRowPartKey("session-event"), false);
364
+ const [whole, setWhole] = useRowUiState(useRowPartKey("session-event-whole"), null);
365
+ const { sessionMessage } = useTranscriptActions();
361
366
  const mounted = useStaysMounted(open);
362
367
  const id = useId();
368
+ const quoted = event.sessionEvent?.summaryTruncated ? event.sessionEvent : void 0;
369
+ useEffect(() => {
370
+ if (!open || !quoted || !sessionMessage || whole !== null) return void 0;
371
+ let live = true;
372
+ sessionMessage(quoted.sessionId, quoted.summary).then((text) => live && text && setWhole(text)).catch(() => void 0);
373
+ return () => {
374
+ live = false;
375
+ };
376
+ }, [
377
+ open,
378
+ quoted,
379
+ sessionMessage,
380
+ whole,
381
+ setWhole
382
+ ]);
363
383
  if (!event.sessionEvent) return /* @__PURE__ */ jsxs("div", {
364
384
  className: ["flex items-start gap-2 text-xs", className].filter(Boolean).join(" "),
365
385
  style,
@@ -374,7 +394,7 @@ const SessionEventRow = memo(({ event, onOpenSession, className, style }) => {
374
394
  });
375
395
  const sessionEvent = event.sessionEvent;
376
396
  const { sessionId } = sessionEvent;
377
- const report = sessionEventReport(sessionEvent);
397
+ const report = whole ?? sessionEventReport(sessionEvent);
378
398
  const receipt = [
379
399
  ...sessionEvent.tokens !== void 0 ? [`${formatTokenCount(sessionEvent.tokens)} tok`] : [],
380
400
  ...sessionEvent.costUsd !== void 0 ? [fmtCost(sessionEvent.costUsd)] : [],
@@ -1,5 +1,5 @@
1
1
  /** What a Codemode script's input panel reads besides its input. Internal to the transcript. */
2
- import { gz as ScriptProgress } from "../../dist/index-DPbpsCtl.js";
2
+ import { vz as ScriptProgress } from "../../dist/index-ChabiHpR.js";
3
3
  import { ToolRowModel } from "../headless/transcript/rows.js";
4
4
  import "../headless/transcript/index.js";
5
5
  /**
@@ -0,0 +1,36 @@
1
+ /**
2
+ * One person's face: their photo, else the first letter of their name, on the track tone. A photo that fails to load
3
+ * falls back to the letter. With `online`, a small dot at the bottom right says they are connected now. `ring` draws
4
+ * a ring in the surface's color (`--zg-avatar-ring`, else `--zg-bg`), so overlapping faces read as separate ones. A face
5
+ * without a photo sits on `--zg-avatar-bg` (else `--zg-track`): a surface whose tone is the track's sets it.
6
+ * Hidden from assistive tech: what holds it names the person.
7
+ */
8
+ import { CSSProperties } from "react";
9
+ /** The face sizes: `sm` 20px (a header's stack), `md` 28px (a card's row). */
10
+ export type AvatarSize = 'sm' | 'md';
11
+ /** Props for {@link Avatar}. */
12
+ export interface AvatarProps {
13
+ /** The person's name: its first letter shows without a photo. */
14
+ name: string;
15
+ /** The photo's URL. */
16
+ avatar?: string;
17
+ /** `true`: the online dot. */
18
+ online?: boolean;
19
+ /**
20
+ * The face's size.
21
+ * @default 'sm'
22
+ */
23
+ size?: AvatarSize;
24
+ /** A ring in the surface's color around the face (a stack). */
25
+ ring?: boolean;
26
+ /** Extra classes on the root. */
27
+ className?: string;
28
+ /** Inline styles on the root. */
29
+ style?: CSSProperties;
30
+ }
31
+ /**
32
+ * Renders one person's face.
33
+ *
34
+ * @param props - The {@link AvatarProps}.
35
+ */
36
+ export declare function Avatar({ name, avatar, online, size, ring, className, style }: AvatarProps): import("react").JSX.Element;
@@ -0,0 +1,56 @@
1
+ import { useState } from "react";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ // src/components/Avatar.tsx
4
+ const BOX = {
5
+ sm: {
6
+ px: 20,
7
+ box: "size-5 text-zg-badge",
8
+ dot: "size-1.5"
9
+ },
10
+ md: {
11
+ px: 28,
12
+ box: "size-7 text-zg-label",
13
+ dot: "size-2"
14
+ }
15
+ };
16
+ const RING = "ring-2 ring-[var(--zg-avatar-ring,var(--zg-bg))]";
17
+ /**
18
+ * The first letter of a name, whole even outside the Basic Multilingual Plane (an emoji, a CJK extension).
19
+ *
20
+ * @param name - The name.
21
+ */
22
+ function initialOf(name) {
23
+ return (Array.from(name.trim())[0] ?? "?").toLocaleUpperCase();
24
+ }
25
+ /**
26
+ * Renders one person's face.
27
+ *
28
+ * @param props - The {@link AvatarProps}.
29
+ */
30
+ function Avatar({ name, avatar, online = false, size = "sm", ring = false, className = "", style }) {
31
+ const [failed, setFailed] = useState(null);
32
+ const { px, box, dot } = BOX[size];
33
+ const ringed = ring ? RING : "";
34
+ return /* @__PURE__ */ jsxs("span", {
35
+ "aria-hidden": true,
36
+ className: `relative inline-flex shrink-0 rounded-full ${className}`.trimEnd(),
37
+ style,
38
+ children: [avatar && failed !== avatar ? /* @__PURE__ */ jsx("img", {
39
+ src: avatar,
40
+ alt: "",
41
+ width: px,
42
+ height: px,
43
+ decoding: "async",
44
+ referrerPolicy: "no-referrer",
45
+ onError: () => setFailed(avatar),
46
+ className: `${box} shrink-0 rounded-full object-cover bg-[var(--zg-avatar-bg,var(--zg-track))] ${ringed}`
47
+ }) : /* @__PURE__ */ jsx("span", {
48
+ className: `${box} shrink-0 rounded-full inline-flex items-center justify-center bg-[var(--zg-avatar-bg,var(--zg-track))] font-semibold leading-none text-[var(--zg-text-muted)] select-none ${ringed}`,
49
+ children: initialOf(name)
50
+ }), online && /* @__PURE__ */ jsx("span", {
51
+ "data-online": "",
52
+ className: `absolute right-0 bottom-0 ${dot} rounded-full bg-[var(--zg-success-dot)] ring-2 ring-[var(--zg-avatar-ring,var(--zg-bg))]`
53
+ })]
54
+ });
55
+ }
56
+ export { Avatar };
@@ -0,0 +1,58 @@
1
+ /**
2
+ * A row of overlapping faces: the first `max` people, then a "+N" chip for the rest. Each face rings in the
3
+ * surface's color (`--zg-avatar-ring`) and wears an online dot when the person is online. It takes plain data, in
4
+ * the order given, keyed by each person's id: a face that comes in or goes out scales and fades on the motion
5
+ * vocabulary (`settle` in, `exit` out; reduced motion keeps the fade), and the faces that stay are not drawn again.
6
+ *
7
+ * Without `onPerson` or `renderCard` it is a picture: hidden from assistive tech, so it can sit inside a control that
8
+ * names who is there (`SessionPeopleStack`). With them, each face is a button named by the person: `onPerson` on a
9
+ * press, `renderCard` in a hover card (`HoverCard`), and the chip's card lists the rest.
10
+ */
11
+ import { AvatarSize } from "./Avatar.js";
12
+ import { CSSProperties, ReactNode } from "react";
13
+ /** A person as {@link AvatarStack} draws them. */
14
+ export interface AvatarStackPerson {
15
+ /** A stable id: the face's key. */
16
+ id: string;
17
+ /** Their name. A blank one reads as `avatarUnnamed`. */
18
+ name: string;
19
+ /** Their photo's URL. */
20
+ avatar?: string;
21
+ /** They are connected now: the online dot. */
22
+ online?: boolean;
23
+ /** When they were last active, epoch ms (for a card). */
24
+ lastSeenAt?: number;
25
+ }
26
+ /** Props for {@link AvatarStack}. */
27
+ export interface AvatarStackProps<P extends AvatarStackPerson = AvatarStackPerson> {
28
+ /** The people, in the order to draw them. */
29
+ people: readonly P[];
30
+ /**
31
+ * The most faces drawn; the rest count in the "+N" chip.
32
+ * @default 3
33
+ */
34
+ max?: number;
35
+ /**
36
+ * The faces' size.
37
+ * @default 'sm'
38
+ */
39
+ size?: AvatarSize;
40
+ /** A face (or a row of the chip's card) is pressed. Keep it stable: the faces are memoized on it. */
41
+ onPerson?: (person: P) => void;
42
+ /** A face's hover card. Keep it stable: the faces are memoized on it. */
43
+ renderCard?: (person: P) => ReactNode;
44
+ /** The group's accessible name, when the faces are buttons. */
45
+ label?: string;
46
+ /** Test id on the root. */
47
+ testId?: string;
48
+ /** Extra classes on the root. */
49
+ className?: string;
50
+ /** Inline styles on the root. */
51
+ style?: CSSProperties;
52
+ }
53
+ /**
54
+ * Renders overlapping faces, then "+N" for the rest.
55
+ *
56
+ * @param props - The {@link AvatarStackProps}.
57
+ */
58
+ export declare function AvatarStack<P extends AvatarStackPerson>({ people, max, size, onPerson, renderCard, label, testId, className, style }: AvatarStackProps<P>): import("react").JSX.Element;
@@ -0,0 +1,187 @@
1
+ import { useLabels } from "../labels.js";
2
+ import { useWithFade } from "../motion/springs.js";
3
+ import { Avatar } from "./Avatar.js";
4
+ import { HoverCard } from "./floating/HoverCard.js";
5
+ import { MenuRow } from "./Menu.js";
6
+ import { memo } from "react";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
+ import { AnimatePresence, LazyMotion, domAnimation, m } from "motion/react";
9
+ // src/components/AvatarStack.tsx
10
+ /** The same person, field for field: the face is not drawn again. */
11
+ function samePerson(a, b) {
12
+ if (a === b) return true;
13
+ const keys = Object.keys(a);
14
+ return keys.length === Object.keys(b).length && keys.every((key) => a[key] === b[key]);
15
+ }
16
+ const FACE_MOTION = {
17
+ initial: {
18
+ opacity: 0,
19
+ scale: .6
20
+ },
21
+ animate: {
22
+ opacity: 1,
23
+ scale: 1
24
+ }
25
+ };
26
+ const FACE_GONE = {
27
+ opacity: 0,
28
+ scale: .6
29
+ };
30
+ const PLAIN = "shrink-0 inline-flex rounded-full";
31
+ const BUTTON = "zg-focus-ring shrink-0 inline-flex rounded-full p-0 bg-transparent border-0";
32
+ const CHIP_BOX = {
33
+ sm: "h-5 min-w-5 px-1 text-zg-badge",
34
+ md: "h-7 min-w-7 px-1.5 text-zg-label"
35
+ };
36
+ /** Under the last face (its dot on top), the count starts past the overlap. */
37
+ const CHIP_UNDER = {
38
+ sm: "h-5 min-w-5 pl-2.5 pr-1 text-zg-badge",
39
+ md: "h-7 min-w-7 pl-3.5 pr-1.5 text-zg-label"
40
+ };
41
+ /** One face: a picture, or a button with its card. */
42
+ function FaceView({ person, size, onPerson, renderCard }) {
43
+ const labels = useLabels();
44
+ const face = /* @__PURE__ */ jsx(Avatar, {
45
+ name: person.name,
46
+ ...person.avatar ? { avatar: person.avatar } : {},
47
+ online: person.online === true,
48
+ size,
49
+ ring: true
50
+ });
51
+ if (!onPerson && !renderCard) return face;
52
+ const name = person.name.trim() || labels.avatarUnnamed;
53
+ const named = person.online ? labels.avatarOnline(name) : name;
54
+ const button = (props = {}) => /* @__PURE__ */ jsx("button", {
55
+ type: "button",
56
+ ...props,
57
+ "aria-label": named,
58
+ className: `${BUTTON} ${onPerson ? "cursor-pointer" : "cursor-default"}`,
59
+ onClick: (event) => {
60
+ event.stopPropagation();
61
+ onPerson?.(person);
62
+ },
63
+ children: face
64
+ });
65
+ if (!renderCard) return button();
66
+ return /* @__PURE__ */ jsx(HoverCard, {
67
+ ariaLabel: name,
68
+ side: "bottom",
69
+ align: "start",
70
+ width: 280,
71
+ trigger: (triggerProps) => button(triggerProps),
72
+ children: renderCard(person)
73
+ });
74
+ }
75
+ const Face = memo(FaceView, (a, b) => a.size === b.size && a.onPerson === b.onPerson && a.renderCard === b.renderCard && samePerson(a.person, b.person));
76
+ /** The "+N" chip; with cards on, its card lists the rest. */
77
+ function MoreChip({ rest, size, onPerson, interactive, under }) {
78
+ const labels = useLabels();
79
+ const chip = `${(under ? CHIP_UNDER : CHIP_BOX)[size]} shrink-0 rounded-full inline-flex items-center justify-center bg-[var(--zg-avatar-bg,var(--zg-track))] ring-2 ring-[var(--zg-avatar-ring,var(--zg-bg))] leading-none tabular-nums text-[var(--zg-text)]`;
80
+ if (!interactive) return /* @__PURE__ */ jsx("span", {
81
+ "aria-hidden": true,
82
+ className: chip,
83
+ children: labels.avatarMore(rest.length)
84
+ });
85
+ return /* @__PURE__ */ jsx(HoverCard, {
86
+ ariaLabel: labels.avatarMoreLabel(rest.length),
87
+ side: "bottom",
88
+ align: "start",
89
+ width: 240,
90
+ trigger: (triggerProps) => /* @__PURE__ */ jsx("button", {
91
+ type: "button",
92
+ ...triggerProps,
93
+ "aria-label": labels.avatarMoreLabel(rest.length),
94
+ onClick: (event) => event.stopPropagation(),
95
+ className: `zg-focus-ring ${chip} border-0 cursor-default`,
96
+ children: labels.avatarMore(rest.length)
97
+ }),
98
+ children: /* @__PURE__ */ jsx("ul", {
99
+ className: "m-0 p-1.5 list-none max-h-72 overflow-y-auto",
100
+ "data-testid": "avatar-stack-rest",
101
+ children: rest.map((person) => {
102
+ const name = person.name.trim() || labels.avatarUnnamed;
103
+ const face = /* @__PURE__ */ jsx(Avatar, {
104
+ name: person.name,
105
+ ...person.avatar ? { avatar: person.avatar } : {},
106
+ online: person.online === true
107
+ });
108
+ return /* @__PURE__ */ jsx("li", { children: onPerson ? /* @__PURE__ */ jsx(MenuRow, {
109
+ size: "sm",
110
+ icon: face,
111
+ title: name,
112
+ onClick: () => onPerson(person)
113
+ }) : /* @__PURE__ */ jsxs("span", {
114
+ className: "flex items-center gap-2.5 px-2 py-1.5 min-w-0 text-sm text-[var(--zg-text)]",
115
+ children: [face, /* @__PURE__ */ jsx("bdi", {
116
+ className: "truncate",
117
+ children: name
118
+ })]
119
+ }) }, person.id);
120
+ })
121
+ })
122
+ });
123
+ }
124
+ /**
125
+ * Renders overlapping faces, then "+N" for the rest.
126
+ *
127
+ * @param props - The {@link AvatarStackProps}.
128
+ */
129
+ function AvatarStack({ people, max = 3, size = "sm", onPerson, renderCard, label, testId, className = "", style }) {
130
+ const enter = useWithFade("settle");
131
+ const leave = useWithFade("exit");
132
+ const interactive = Boolean(onPerson || renderCard);
133
+ const shown = people.slice(0, Math.max(0, max));
134
+ const rest = people.slice(shown.length);
135
+ const dotted = shown.some((person) => person.online);
136
+ return /* @__PURE__ */ jsx("span", {
137
+ ...interactive ? {
138
+ role: "group",
139
+ ...label ? { "aria-label": label } : {}
140
+ } : { "aria-hidden": true },
141
+ "data-testid": testId,
142
+ className: `inline-flex items-center ${size === "sm" ? "-space-x-1.5" : "-space-x-2"} ${className}`.trimEnd(),
143
+ style,
144
+ children: /* @__PURE__ */ jsxs(LazyMotion, {
145
+ features: domAnimation,
146
+ children: [/* @__PURE__ */ jsx(AnimatePresence, {
147
+ initial: false,
148
+ children: shown.map((person, i) => /* @__PURE__ */ jsx(m.span, {
149
+ "data-person": person.id,
150
+ className: `${PLAIN} relative`,
151
+ ...dotted ? { style: { zIndex: shown.length - i } } : {},
152
+ ...FACE_MOTION,
153
+ exit: {
154
+ ...FACE_GONE,
155
+ transition: leave
156
+ },
157
+ transition: enter,
158
+ children: /* @__PURE__ */ jsx(Face, {
159
+ person,
160
+ size,
161
+ onPerson,
162
+ renderCard
163
+ })
164
+ }, person.id))
165
+ }), /* @__PURE__ */ jsx(AnimatePresence, {
166
+ initial: false,
167
+ children: rest.length > 0 && /* @__PURE__ */ jsx(m.span, {
168
+ className: `${PLAIN} relative`,
169
+ ...FACE_MOTION,
170
+ exit: {
171
+ ...FACE_GONE,
172
+ transition: leave
173
+ },
174
+ transition: enter,
175
+ children: /* @__PURE__ */ jsx(MoreChip, {
176
+ rest,
177
+ size,
178
+ onPerson,
179
+ interactive,
180
+ under: dotted
181
+ })
182
+ }, "+more")
183
+ })]
184
+ })
185
+ });
186
+ }
187
+ export { AvatarStack };
@@ -32,6 +32,11 @@ export interface TabsProps {
32
32
  * @default 'sm'
33
33
  */
34
34
  size?: 'sm' | 'md';
35
+ /**
36
+ * Classes on a box around the tab list (absent: no box). A surface that scrolls under its tabs makes it sticky here
37
+ * (`sticky top-0` and its own background), so the list stays in view.
38
+ */
39
+ listClassName?: string;
35
40
  /** Extra classes on the root element. */
36
41
  className?: string;
37
42
  /** Inline styles on the root element. */
@@ -42,4 +47,4 @@ export interface TabsProps {
42
47
  *
43
48
  * @param props - {@link TabsProps}.
44
49
  */
45
- export declare function Tabs({ items, value, defaultValue, onChange, ariaLabel, size, className, style }: TabsProps): import("react").JSX.Element;
50
+ export declare function Tabs({ items, value, defaultValue, onChange, ariaLabel, size, listClassName, className, style }: TabsProps): import("react").JSX.Element;
@@ -6,7 +6,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
6
6
  *
7
7
  * @param props - {@link TabsProps}.
8
8
  */
9
- function Tabs({ items, value, defaultValue, onChange, ariaLabel, size = "sm", className = "", style }) {
9
+ function Tabs({ items, value, defaultValue, onChange, ariaLabel, size = "sm", listClassName, className = "", style }) {
10
10
  const base = useId();
11
11
  const [own, setOwn] = useState(defaultValue ?? items[0]?.id ?? "");
12
12
  const wanted = value ?? own;
@@ -41,47 +41,51 @@ function Tabs({ items, value, defaultValue, onChange, ariaLabel, size = "sm", cl
41
41
  reveal(el);
42
42
  pick(items[next].id);
43
43
  };
44
+ const list = /* @__PURE__ */ jsx("div", {
45
+ ref: track,
46
+ className: "max-w-full overflow-x-auto zg-no-scrollbar -m-0.5 p-0.5",
47
+ children: /* @__PURE__ */ jsx("div", {
48
+ role: "tablist",
49
+ "aria-label": ariaLabel,
50
+ "aria-orientation": "horizontal",
51
+ className: "zg-segment",
52
+ children: items.map((item, i) => {
53
+ const on = item.id === selected;
54
+ return /* @__PURE__ */ jsx("button", {
55
+ ref: (el) => {
56
+ buttons.current[i] = el;
57
+ },
58
+ type: "button",
59
+ role: "tab",
60
+ id: `${base}-tab-${i}`,
61
+ "aria-selected": on,
62
+ "aria-controls": `${base}-panel-${i}`,
63
+ tabIndex: on ? 0 : -1,
64
+ "data-active": on ? "" : void 0,
65
+ onClick: () => pick(item.id),
66
+ onKeyDown: (e) => onKeyDown(e, i),
67
+ className: `zg-segment-item zg-press-subtle inline-flex items-center justify-center rounded-full border-0 bg-transparent cursor-pointer whitespace-nowrap zg-focus-ring ${size === "sm" ? "h-6 px-2.5 text-zg-label" : "h-7 px-3 text-zg-ui"} ${on ? "text-[var(--zg-text)] font-medium" : "text-[var(--zg-text-muted)]"}`,
68
+ children: /* @__PURE__ */ jsxs("span", {
69
+ className: "grid",
70
+ children: [/* @__PURE__ */ jsx("span", {
71
+ className: "[grid-area:1/1] invisible font-medium",
72
+ "aria-hidden": true,
73
+ children: item.label
74
+ }), /* @__PURE__ */ jsx("span", {
75
+ className: "[grid-area:1/1]",
76
+ children: item.label
77
+ })]
78
+ })
79
+ }, item.id);
80
+ })
81
+ })
82
+ });
44
83
  return /* @__PURE__ */ jsxs("div", {
45
84
  className: `flex flex-col gap-2 min-w-0 ${className}`,
46
85
  style,
47
- children: [/* @__PURE__ */ jsx("div", {
48
- ref: track,
49
- className: "max-w-full overflow-x-auto zg-no-scrollbar -m-0.5 p-0.5",
50
- children: /* @__PURE__ */ jsx("div", {
51
- role: "tablist",
52
- "aria-label": ariaLabel,
53
- "aria-orientation": "horizontal",
54
- className: "zg-segment",
55
- children: items.map((item, i) => {
56
- const on = item.id === selected;
57
- return /* @__PURE__ */ jsx("button", {
58
- ref: (el) => {
59
- buttons.current[i] = el;
60
- },
61
- type: "button",
62
- role: "tab",
63
- id: `${base}-tab-${i}`,
64
- "aria-selected": on,
65
- "aria-controls": `${base}-panel-${i}`,
66
- tabIndex: on ? 0 : -1,
67
- "data-active": on ? "" : void 0,
68
- onClick: () => pick(item.id),
69
- onKeyDown: (e) => onKeyDown(e, i),
70
- className: `zg-segment-item zg-press-subtle inline-flex items-center justify-center rounded-full border-0 bg-transparent cursor-pointer whitespace-nowrap zg-focus-ring ${size === "sm" ? "h-6 px-2.5 text-zg-label" : "h-7 px-3 text-zg-ui"} ${on ? "text-[var(--zg-text)] font-medium" : "text-[var(--zg-text-muted)]"}`,
71
- children: /* @__PURE__ */ jsxs("span", {
72
- className: "grid",
73
- children: [/* @__PURE__ */ jsx("span", {
74
- className: "[grid-area:1/1] invisible font-medium",
75
- "aria-hidden": true,
76
- children: item.label
77
- }), /* @__PURE__ */ jsx("span", {
78
- className: "[grid-area:1/1]",
79
- children: item.label
80
- })]
81
- })
82
- }, item.id);
83
- })
84
- })
86
+ children: [listClassName === void 0 ? list : /* @__PURE__ */ jsx("div", {
87
+ className: listClassName,
88
+ children: list
85
89
  }), items.map((item, i) => seen.has(item.id) ? /* @__PURE__ */ jsx("div", {
86
90
  role: "tabpanel",
87
91
  id: `${base}-panel-${i}`,
package/dist/core.css CHANGED
@@ -86,6 +86,7 @@
86
86
  .inset-0{inset:0;}
87
87
  .inset-x-0{left:0;right:0;}
88
88
  .inset-y-0{top:0;bottom:0;}
89
+ .bottom-0{bottom:0;}
89
90
  .bottom-full{bottom:100%;}
90
91
  .left-1\/2{left:50%;}
91
92
  .left-2{left:0.5rem;}
@@ -164,8 +165,12 @@
164
165
  .contents{display:contents;}
165
166
  .hidden{display:none;}
166
167
  .aspect-square{aspect-ratio:1/1;}
168
+ .size-1\.5{width:0.375rem;height:0.375rem;}
169
+ .size-2{width:0.5rem;height:0.5rem;}
167
170
  .size-3{width:0.75rem;height:0.75rem;}
168
171
  .size-3\.5{width:0.875rem;height:0.875rem;}
172
+ .size-5{width:1.25rem;height:1.25rem;}
173
+ .size-7{width:1.75rem;height:1.75rem;}
169
174
  .h-\[18px\]{height:18px;}
170
175
  .h-\[52px\]{height:52px;}
171
176
  .h-0\.5{height:0.125rem;}
@@ -188,6 +193,7 @@
188
193
  .h-9{height:2.25rem;}
189
194
  .h-full{height:100%;}
190
195
  .h23{height:5.75rem;}
196
+ .max-h-72{max-height:18rem;}
191
197
  .max-w-\[28rem\]{max-width:28rem;}
192
198
  .max-w-\[50vw\]{max-width:50vw;}
193
199
  .max-w-\[60\%\]{max-width:60%;}
@@ -210,6 +216,8 @@
210
216
  .min-w-\[12rem\]{min-width:12rem;}
211
217
  .min-w-0{min-width:0;}
212
218
  .min-w-4{min-width:1rem;}
219
+ .min-w-5{min-width:1.25rem;}
220
+ .min-w-7{min-width:1.75rem;}
213
221
  .w-\[400px\]{width:400px;}
214
222
  .w-\[40rem\]{width:40rem;}
215
223
  .w-1\.5{width:0.375rem;}
@@ -298,6 +306,8 @@
298
306
  .gap-y-1\.5{row-gap:0.375rem;}
299
307
  .gap-y-2{row-gap:0.5rem;}
300
308
  .gap-y-4{row-gap:1rem;}
309
+ .-space-x-1\.5>:not([hidden])~:not([hidden]){--un-space-x-reverse:0;margin-left:calc(calc(0.375rem * calc(1 - var(--un-space-x-reverse))) * -1);margin-right:calc(calc(0.375rem * var(--un-space-x-reverse)) * -1);}
310
+ .-space-x-2>:not([hidden])~:not([hidden]){--un-space-x-reverse:0;margin-left:calc(calc(0.5rem * calc(1 - var(--un-space-x-reverse))) * -1);margin-right:calc(calc(0.5rem * var(--un-space-x-reverse)) * -1);}
301
311
  .space-y-3>:not([hidden])~:not([hidden]){--un-space-y-reverse:0;margin-top:calc(0.75rem * calc(1 - var(--un-space-y-reverse)));margin-bottom:calc(0.75rem * var(--un-space-y-reverse));}
302
312
  .space-y-5>:not([hidden])~:not([hidden]){--un-space-y-reverse:0;margin-top:calc(1.25rem * calc(1 - var(--un-space-y-reverse)));margin-bottom:calc(1.25rem * var(--un-space-y-reverse));}
303
313
  .divide-y>:not([hidden])~:not([hidden]){--un-divide-y-reverse:0;border-top-width:calc(1px * calc(1 - var(--un-divide-y-reverse)));border-bottom-width:calc(1px * var(--un-divide-y-reverse));}
@@ -341,9 +351,12 @@
341
351
  .bg-\[var\(--zg-accent-fill\)\],
342
352
  .bg-zg-accent-fill{background-color:var(--zg-accent-fill);}
343
353
  .bg-\[var\(--zg-accent\)\]{background-color:var(--zg-accent);}
354
+ .bg-\[var\(--zg-avatar-bg\,var\(--zg-track\)\)\]{background-color:var(--zg-avatar-bg,var(--zg-track));}
344
355
  .bg-\[var\(--zg-bg-elevated\)\]{background-color:var(--zg-bg-elevated);}
345
356
  .bg-\[var\(--zg-bg\)\]{background-color:var(--zg-bg);}
346
357
  .bg-\[var\(--zg-overlay\)\]{background-color:var(--zg-overlay);}
358
+ .bg-\[var\(--zg-success-dot\)\],
359
+ .bg-zg-success-dot{background-color:var(--zg-success-dot);}
347
360
  .bg-\[var\(--zg-table-bg\,var\(--zg-tray\)\)\]{background-color:var(--zg-table-bg,var(--zg-tray));}
348
361
  .bg-\[var\(--zg-text-muted\)\],
349
362
  .bg-zg-muted{background-color:var(--zg-text-muted);}
@@ -359,10 +372,10 @@
359
372
  .bg-zg-danger-soft{background-color:var(--zg-danger-soft);}
360
373
  .bg-zg-info{background-color:var(--zg-info);}
361
374
  .bg-zg-raised{background-color:var(--zg-raised);}
362
- .bg-zg-success-dot{background-color:var(--zg-success-dot);}
363
375
  .bg-zg-warn-dot{background-color:var(--zg-warn-dot);}
364
376
  .before\:bg-\[var\(--zg-accent-soft\)\]::before{background-color:var(--zg-accent-soft);}
365
377
  .before\:bg-\[var\(--zg-code-bg\)\]::before{background-color:var(--zg-code-bg);}
378
+ .object-cover{object-fit:cover;}
366
379
  .object-contain{object-fit:contain;}
367
380
  .p-0,
368
381
  .p\[0\]{padding:0;}
@@ -403,12 +416,14 @@
403
416
  .pl-2{padding-left:0.5rem;}
404
417
  .pl-2\.5{padding-left:0.625rem;}
405
418
  .pl-3{padding-left:0.75rem;}
419
+ .pl-3\.5{padding-left:0.875rem;}
406
420
  .pl-5{padding-left:1.25rem;}
407
421
  .pl-6\.5{padding-left:1.625rem;}
408
422
  .pl-7{padding-left:1.75rem;}
409
423
  .pl-7\.5{padding-left:1.875rem;}
410
424
  .pl-9\.5{padding-left:2.375rem;}
411
425
  .pr-1{padding-right:0.25rem;}
426
+ .pr-1\.5{padding-right:0.375rem;}
412
427
  .pr-2{padding-right:0.5rem;}
413
428
  .pr-2\.5{padding-right:0.625rem;}
414
429
  .pr-3{padding-right:0.75rem;}
@@ -469,6 +484,7 @@
469
484
  .leading-5{line-height:1.25rem;}
470
485
  .leading-7{line-height:1.75rem;}
471
486
  .leading-8{line-height:2rem;}
487
+ .leading-none{line-height:1;}
472
488
  .leading-relaxed{line-height:1.625;}
473
489
  .leading-snug{line-height:1.375;}
474
490
  .leading-zg-label{line-height:var(--zg-leading-label);}
@@ -511,7 +527,9 @@
511
527
  .outline-none{outline:2px solid transparent;outline-offset:2px;}
512
528
  .ring{--un-ring-width:3px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);}
513
529
  .ring-1{--un-ring-width:1px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);}
530
+ .ring-2{--un-ring-width:2px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);}
514
531
  .ring-\[color-mix\(in_srgb\,var\(--zg-accent\)_55\%\,transparent\)\]{--un-ring-color:color-mix(in srgb,var(--zg-accent) 55%,transparent);}
532
+ .ring-\[var\(--zg-avatar-ring\,var\(--zg-bg\)\)\]{--un-ring-color:var(--zg-avatar-ring,var(--zg-bg));}
515
533
  .blur{--un-blur:blur(8px);filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia);}
516
534
  .filter{filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia);}
517
535
  .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:var(--zg-motion-hover-ease);transition-duration:var(--zg-motion-hover-duration);}
@@ -1811,4 +1811,4 @@ type SecretTtl = '1h' | '24h' | '7d' | 'never';
1811
1811
  declare const ARTIFACT_CONTEXT_LEVELS: readonly ["none", "index", "pinned"];
1812
1812
  /** One of {@link ARTIFACT_CONTEXT_LEVELS}. */
1813
1813
  type ArtifactContextLevel = typeof ARTIFACT_CONTEXT_LEVELS[number];
1814
- export { ToolCallDisplay as AF, QueryValue as AI, SessionQueryAny as BI, ProjectContentKind as BW, SidebarLayout as EF, EnvironmentConfigValue as EH, ARTIFACT_CONTEXT_LEVELS as Ey, SessionGroupBy as FI, McpJobViewStatus as FV, Space$1 as HF, SessionGroupOrder as II, AnsiColor as Iz, SessionSort as KI, ProjectInherit as KW, NewChatPlace as Kz, TranscriptDensity as MF, SessionFieldName as MI, OutputLine as Mz, ViewsMcp as NF, SessionFieldPath as NI, OutputStream as Nz, FacetPath as OI, McpJobView as PV, InheritMode as PW, SessionQuery as RI, AnsiSpan as Rz, Settings as TF, SpaceIcon as UF, SecretTtl as UN, SessionQueryNot as WI, EnvironmentSettings as WV, TaskOutcomeCounts as XB, TaskOutcome as YB, ApprovalMode as aF, InteractionMode as dF, MessageDelivery as fF, ScriptProgress as gz, OpenInTarget as hF, ScriptOutputLine as hz, SessionCondition as jI, QueryBound as kI, ArtifactContextLevel as ky, ScriptCallStatus as lz, DurabilityMode as nG, EditDiffDisplay as oF, ScriptLineProgress as uz, ProjectHomeIcon as vF, ThinkingLevel as wG, ProjectHomeLayout as yF, SessionQueryAll as zI, AnsiStyle as zz };
1814
+ export { FacetPath as AI, SessionQuery as BI, AnsiSpan as Bz, Settings as DF, ThinkingLevel as DG, ViewsMcp as FF, SessionFieldPath as FI, OutputStream as Fz, SpaceIcon as GF, SecretTtl as GN, SessionQueryAny as HI, SessionSort as JI, NewChatPlace as Jz, SessionQueryNot as KI, SessionGroupBy as LI, McpJobView as LV, InheritMode as LW, ToolCallDisplay as MF, QueryValue as MI, SessionCondition as NI, SidebarLayout as OF, ARTIFACT_CONTEXT_LEVELS as Oy, TranscriptDensity as PF, SessionFieldName as PI, OutputLine as Pz, TaskOutcomeCounts as QB, SessionGroupOrder as RI, McpJobViewStatus as RV, AnsiColor as Rz, ProjectContentKind as UW, SessionQueryAll as VI, AnsiStyle as Vz, Space$1 as WF, ProjectInherit as YW, TaskOutcome as ZB, OpenInTarget as _F, ScriptOutputLine as _z, DurabilityMode as aG, ProjectHomeIcon as bF, EditDiffDisplay as cF, ScriptCallStatus as dz, ScriptLineProgress as fz, QueryBound as jI, ArtifactContextLevel as jy, EnvironmentConfigValue as kH, MessageDelivery as mF, InteractionMode as pF, EnvironmentSettings as qV, ApprovalMode as sF, ScriptProgress as vz, ProjectHomeLayout as xF };
@@ -1,4 +1,4 @@
1
- import { AI as QueryValue, BI as SessionQueryAny, EH as EnvironmentConfigValue, FI as SessionGroupBy, II as SessionGroupOrder, KI as SessionSort, MI as SessionFieldName, NI as SessionFieldPath, OI as FacetPath, RI as SessionQuery, WI as SessionQueryNot, jI as SessionCondition, kI as QueryBound, wG as ThinkingLevel, zI as SessionQueryAll } from "./index-DPbpsCtl.js";
1
+ import { AI as FacetPath, BI as SessionQuery, DG as ThinkingLevel, FI as SessionFieldPath, HI as SessionQueryAny, JI as SessionSort, KI as SessionQueryNot, LI as SessionGroupBy, MI as QueryValue, NI as SessionCondition, PI as SessionFieldName, RI as SessionGroupOrder, VI as SessionQueryAll, jI as QueryBound, kH as EnvironmentConfigValue } from "./index-ChabiHpR.js";
2
2
  import "./execution-failure-_L2r_Qd-.js";
3
3
  import { d as AuthFailureKind, u as AuthFailure } from "./timeout-NoG7ppkm.js";
4
4
  import "./index-BmO8bRgK.js";
@@ -96,6 +96,21 @@ export declare function machineEnvironmentKind(machine: string, base?: 'local' |
96
96
  * @param kind - The environment kind.
97
97
  */
98
98
  export declare function environmentMachineName(kind: string): string | undefined;
99
+ /**
100
+ * Where a server's session browses for its folder: the machine its environment runs on (`local@gpu`), found by
101
+ * name in the server's machines; `undefined`: the server itself. `null`: a machine the server does not list,
102
+ * with nothing to browse.
103
+ *
104
+ * @param kind - The session's environment kind; absent: the host's own.
105
+ * @param machines - The server's machines (`useServerMachines`).
106
+ */
107
+ export declare function sessionFolderMachine(kind: string | undefined, machines: readonly {
108
+ id: string;
109
+ name: string;
110
+ }[]): {
111
+ id: string;
112
+ name: string;
113
+ } | null | undefined;
99
114
  /**
100
115
  * The environment kind a default place asks for (`worktree@gpu`, `docker`); `undefined` for the host's default.
101
116
  *