zidane-ui 9.5.0 → 9.5.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 (88) hide show
  1. package/dist/chat/SessionList.d.ts +1 -1
  2. package/dist/chat/SessionList.js +1 -1
  3. package/dist/chat/Transcript.js +6 -2
  4. package/dist/chat/composer/ComposerEditor.js +1 -1
  5. package/dist/chat/composer/DraftPickers.d.ts +8 -2
  6. package/dist/chat/composer/DraftPickers.js +5 -3
  7. package/dist/chat/composer/ScopeToggle.d.ts +5 -2
  8. package/dist/chat/composer/ScopeToggle.js +3 -2
  9. package/dist/chat/composer/ServerScopeToggle.d.ts +5 -2
  10. package/dist/chat/composer/ServerScopeToggle.js +2 -1
  11. package/dist/chat/composer/use-draft-target.d.ts +7 -1
  12. package/dist/chat/composer/use-draft-target.js +19 -10
  13. package/dist/chat/headless/fixtures/demo-transcript-all-kinds.d.ts +6 -0
  14. package/dist/chat/headless/fixtures/demo-transcript-all-kinds.js +90 -2
  15. package/dist/chat/headless/index.d.ts +6 -5
  16. package/dist/chat/headless/index.js +4 -3
  17. package/dist/chat/headless/labels.d.ts +9 -0
  18. package/dist/chat/headless/labels.js +12 -3
  19. package/dist/chat/headless/session-list.d.ts +8 -0
  20. package/dist/chat/headless/session-list.js +7 -0
  21. package/dist/chat/headless/sidebar/inbox.d.ts +21 -5
  22. package/dist/chat/headless/sidebar/inbox.js +30 -12
  23. package/dist/chat/headless/sidebar/index.d.ts +2 -2
  24. package/dist/chat/headless/sidebar/index.js +2 -2
  25. package/dist/chat/headless/sidebar/labels.d.ts +7 -1
  26. package/dist/chat/headless/sidebar/labels.js +1 -1
  27. package/dist/chat/headless/sidebar/rows.d.ts +62 -5
  28. package/dist/chat/headless/sidebar/rows.js +93 -17
  29. package/dist/chat/headless/transcript/derive.d.ts +1 -0
  30. package/dist/chat/headless/transcript/derive.js +3 -1
  31. package/dist/chat/headless/transcript/fold.js +1 -0
  32. package/dist/chat/headless/transcript/index.d.ts +3 -2
  33. package/dist/chat/headless/transcript/index.js +2 -1
  34. package/dist/chat/headless/transcript/rail.js +1 -0
  35. package/dist/chat/headless/transcript/rows.d.ts +26 -2
  36. package/dist/chat/headless/transcript/select-stops.js +1 -0
  37. package/dist/chat/headless/transcript/session-groups.d.ts +36 -0
  38. package/dist/chat/headless/transcript/session-groups.js +94 -0
  39. package/dist/chat/index.d.ts +4 -3
  40. package/dist/chat/index.js +7 -6
  41. package/dist/chat/sidebar/InboxList.d.ts +14 -1
  42. package/dist/chat/sidebar/InboxList.js +33 -13
  43. package/dist/chat/sidebar/SessionSidebar.d.ts +13 -5
  44. package/dist/chat/sidebar/SessionSidebar.js +54 -34
  45. package/dist/chat/sidebar/SidebarGroupHeader.d.ts +7 -2
  46. package/dist/chat/sidebar/SidebarGroupHeader.js +22 -6
  47. package/dist/chat/sidebar/useInboxRows.d.ts +4 -1
  48. package/dist/chat/sidebar/useInboxRows.js +6 -3
  49. package/dist/chat/sidebar/useInboxTriage.d.ts +3 -0
  50. package/dist/chat/sidebar/useInboxTriage.js +3 -2
  51. package/dist/chat/testing/index.d.ts +2 -2
  52. package/dist/chat/testing/index.js +2 -2
  53. package/dist/chat/transcript/BadgeMenu.d.ts +9 -2
  54. package/dist/chat/transcript/BadgeMenu.js +20 -2
  55. package/dist/chat/transcript/SubagentBlock.js +24 -7
  56. package/dist/chat/transcript/TranscriptRail.js +3 -3
  57. package/dist/chat/transcript/TranscriptRow.js +8 -0
  58. package/dist/chat/transcript/frame.d.ts +7 -0
  59. package/dist/chat/transcript/frame.js +51 -5
  60. package/dist/chat/transcript/index.d.ts +4 -3
  61. package/dist/chat/transcript/index.js +3 -2
  62. package/dist/chat/transcript/notices.d.ts +9 -9
  63. package/dist/chat/transcript/notices.js +78 -81
  64. package/dist/chat/transcript/receipt-parts.d.ts +29 -2
  65. package/dist/chat/transcript/receipt-parts.js +40 -7
  66. package/dist/chat/transcript/row-estimate.js +4 -1
  67. package/dist/chat/transcript/run-rows.js +2 -5
  68. package/dist/chat/transcript/script-input.d.ts +1 -1
  69. package/dist/chat/transcript/session-groups.d.ts +21 -0
  70. package/dist/chat/transcript/session-groups.js +154 -0
  71. package/dist/chat/transcript/session-line.d.ts +63 -0
  72. package/dist/chat/transcript/session-line.js +114 -0
  73. package/dist/dist/{index-Bsp5Ku7r.d.ts → index-BsoTsm0E.d.ts} +17 -17
  74. package/dist/dist/index.d.ts +1 -1
  75. package/dist/session/ProjectName.js +1 -1
  76. package/dist/session/SessionHeader.js +1 -1
  77. package/dist/session/headless/labels.d.ts +1 -1
  78. package/dist/session/use-home-projects.d.ts +10 -3
  79. package/dist/session/use-home-projects.js +40 -4
  80. package/dist/settings/headless/mcp-requirement.js +4 -3
  81. package/dist/settings/headless/mcp.d.ts +2 -0
  82. package/dist/settings/headless/mcp.js +3 -2
  83. package/dist/settings/headless/search.d.ts +1 -1
  84. package/dist/settings/index.js +3 -3
  85. package/dist/settings/sections/mcp/McpSection.js +3 -5
  86. package/dist/styles.css +43 -0
  87. package/package.json +2 -2
  88. package/src/styles/transcript.css +39 -0
@@ -43,7 +43,7 @@ export interface SessionListProps {
43
43
  'sortBy'?: SessionSortBy;
44
44
  /** Show the title search field above the list. */
45
45
  'search'?: boolean;
46
- /** Shows a "New session" button (and is called by it). */
46
+ /** Shows a "New" button (and is called by it). */
47
47
  'onNewSession'?: () => void;
48
48
  /** Called with the group's path when the user clicks "+" on a group header. The app creates the session. */
49
49
  'onNewSessionIn'?: (group: string) => void;
@@ -203,7 +203,7 @@ function SessionList({ activeId = null, onSelect, sessions: sessionsProp, groupB
203
203
  value: query,
204
204
  onChange: (e) => setQuery(e.target.value),
205
205
  placeholder: labels.searchSessions,
206
- "aria-label": labels.searchSessions,
206
+ "aria-label": labels.searchSessionsName,
207
207
  className: "flex-1 min-w-0 bg-transparent border-0 outline-none text-[var(--zg-text)] placeholder:text-[var(--zg-text-subtle)]"
208
208
  })]
209
209
  })]
@@ -30,6 +30,10 @@ const NO_SLICE = {
30
30
  clusters: []
31
31
  };
32
32
  const NO_KEYS = [];
33
+ /** Rows that hold other rows and paint them with the transcript's own renderer. */
34
+ function holdsRows(row) {
35
+ return row.kind === "exchange-fold" || row.kind === "message-group" || row.kind === "session-event-group";
36
+ }
33
37
  /** The tail that mounts with its first render: `EAGER_SCREENS` views' worth of rows (estimated), never fewer than `EAGER_MIN` rows nor more than `EAGER_MAX`. */
34
38
  const EAGER_SCREENS = 1.5;
35
39
  const EAGER_MIN = 6;
@@ -314,7 +318,7 @@ const Transcript = memo(({ events, streaming, sessionId, options, selection, tur
314
318
  receipt: at.receipts.get(row.id),
315
319
  resumable: row.id === resumableId,
316
320
  ctx: rowCtx,
317
- renderRows: row.kind === "exchange-fold" || row.kind === "message-group" ? renderFoldRows : void 0,
321
+ renderRows: holdsRows(row) ? renderFoldRows : void 0,
318
322
  status: root && row.kind === "exchange-fold" && row.live ? liveStatus : void 0
319
323
  });
320
324
  const groupDeps = (cluster, deps, at) => {
@@ -324,7 +328,7 @@ const Transcript = memo(({ events, streaming, sessionId, options, selection, tur
324
328
  continue;
325
329
  }
326
330
  const row = item.row;
327
- deps.push(row === at.caret, at.receipts.get(row.id), row.kind === "exchange-fold" || row.kind === "message-group" ? renderFoldRows : void 0);
331
+ deps.push(row === at.caret, at.receipts.get(row.id), holdsRows(row) ? renderFoldRows : void 0);
328
332
  }
329
333
  return deps;
330
334
  };
@@ -2,8 +2,8 @@ import { plainTextToDocJson } from "./prompt-history-nav.js";
2
2
  import { suggestionExtension } from "./suggestion-extension.js";
3
3
  import { useLayoutEffect } from "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
- import Placeholder from "@tiptap/extension-placeholder";
6
5
  import { EditorContent, useEditor } from "@tiptap/react";
6
+ import Placeholder from "@tiptap/extension-placeholder";
7
7
  import StarterKit from "@tiptap/starter-kit";
8
8
  // src/chat/composer/ComposerEditor.tsx
9
9
  /** Builds the composer's editor and renders its view. */
@@ -3,7 +3,8 @@
3
3
  * the hosts, their machines, the isolation) and its folder there (a
4
4
  * machine's folders, a server's projects, or a folder on this computer).
5
5
  * Every app shows the same pickers over its `useDraftTarget`. "Use for new
6
- * chats" saves the draft's place when the app gives `newChatsDefault`.
6
+ * chats" saves the draft's place when the app gives `newChatsDefault`, and the
7
+ * folder menu offers "New project…" when it gives `onNewProject`.
7
8
  *
8
9
  * <DraftPickers draft={draft} hosts={hosts} onOpenSettings={openEnvironments} />
9
10
  */
@@ -30,6 +31,11 @@ export interface DraftPickersProps {
30
31
  newChatsDefault?: WhereMenuProps['newChatsDefault'];
31
32
  /** Opens the environment settings. Absent: no settings row. */
32
33
  onOpenSettings?: () => void;
34
+ /**
35
+ * Opens New project (`useNewProject`) from the folder menu of this computer or a server; the app moves the draft to
36
+ * the project made. Absent: not offered. A machine's folder picker never offers it.
37
+ */
38
+ onNewProject?: () => void;
33
39
  /** Extra classes on the root. */
34
40
  className?: string;
35
41
  /** Inline styles on the root. */
@@ -41,4 +47,4 @@ export interface DraftPickersProps {
41
47
  *
42
48
  * @param props - The draft, the hosts and the app's callbacks.
43
49
  */
44
- export declare function DraftPickers({ draft, hosts, local, hiddenMachines, serverMachines, onAddMachine, newChatsDefault, onOpenSettings, className, style }: DraftPickersProps): import("react").JSX.Element;
50
+ export declare function DraftPickers({ draft, hosts, local, hiddenMachines, serverMachines, onAddMachine, newChatsDefault, onOpenSettings, onNewProject, className, style }: DraftPickersProps): import("react").JSX.Element;
@@ -11,7 +11,7 @@ import { LOCAL_HOST_KEY, machineKind } from "zidane/chat/pure";
11
11
  *
12
12
  * @param props - The draft, the hosts and the app's callbacks.
13
13
  */
14
- function DraftPickers({ draft, hosts, local = true, hiddenMachines, serverMachines, onAddMachine, newChatsDefault, onOpenSettings, className = "", style }) {
14
+ function DraftPickers({ draft, hosts, local = true, hiddenMachines, serverMachines, onAddMachine, newChatsDefault, onOpenSettings, onNewProject, className = "", style }) {
15
15
  const { machine, server } = draft;
16
16
  return /* @__PURE__ */ jsxs("div", {
17
17
  className: `zg-chatbox-target flex items-center gap-2 ${className}`.trimEnd(),
@@ -49,7 +49,8 @@ function DraftPickers({ draft, hosts, local = true, hiddenMachines, serverMachin
49
49
  root: draft.remoteRoot,
50
50
  clone: draft.remoteClone,
51
51
  cloning: draft.cloning,
52
- ...draft.importRepoOnServer ? { onImportRepo: draft.importRepoOnServer } : {}
52
+ ...draft.importRepoOnServer ? { onImportRepo: draft.importRepoOnServer } : {},
53
+ ...onNewProject ? { onNewProject } : {}
53
54
  }) : local ? /* @__PURE__ */ jsx(ScopeToggle, {
54
55
  folderPath: draft.folderPath,
55
56
  onJustChat: draft.justChat,
@@ -57,7 +58,8 @@ function DraftPickers({ draft, hosts, local = true, hiddenMachines, serverMachin
57
58
  onImportRepo: draft.importRepoIntoDraft,
58
59
  recents: draft.recentFolders,
59
60
  roots: draft.folderRoots,
60
- onPickRecent: draft.pickRecent
61
+ onPickRecent: draft.pickRecent,
62
+ ...onNewProject ? { onNewProject } : {}
61
63
  }) : null]
62
64
  });
63
65
  }
@@ -5,7 +5,8 @@
5
5
  * - "Chat": directory-less draft (`folderPath === ''`).
6
6
  * - folder: bound draft, labeled with the folder's basename ("Select…"
7
7
  * while unbound). Opens a menu of recent folders, "Import repository…"
8
- * (clone a git / GitHub URL) and the native picker.
8
+ * (clone a git / GitHub URL), the native picker and, with `onNewProject`,
9
+ * "New project…".
9
10
  *
10
11
  * The undecided gate (`folderPath === null`) shows NEITHER side active:
11
12
  * the app's send then resolves it folderless, so the toggle is an affordance,
@@ -31,6 +32,8 @@ export interface ScopeToggleProps {
31
32
  roots?: Readonly<Record<string, string>>;
32
33
  /** Picks a recent folder. */
33
34
  onPickRecent: (dir: string) => void;
35
+ /** Opens New project (`useNewProject`). Absent: the menu doesn't offer it. */
36
+ onNewProject?: () => void;
34
37
  /** Extra classes on the group. */
35
38
  className?: string;
36
39
  /** Inline styles on the group. */
@@ -41,4 +44,4 @@ export interface ScopeToggleProps {
41
44
  *
42
45
  * @param props - The {@link ScopeToggleProps}.
43
46
  */
44
- export declare function ScopeToggle({ folderPath, onPickFolder, onJustChat, recents, roots, onPickRecent, onImportRepo, className, style }: ScopeToggleProps): import("react").JSX.Element;
47
+ export declare function ScopeToggle({ folderPath, onPickFolder, onJustChat, recents, roots, onPickRecent, onImportRepo, onNewProject, className, style }: ScopeToggleProps): import("react").JSX.Element;
@@ -9,7 +9,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
9
9
  *
10
10
  * @param props - The {@link ScopeToggleProps}.
11
11
  */
12
- function ScopeToggle({ folderPath, onPickFolder, onJustChat, recents, roots, onPickRecent, onImportRepo, className, style }) {
12
+ function ScopeToggle({ folderPath, onPickFolder, onJustChat, recents, roots, onPickRecent, onImportRepo, onNewProject, className, style }) {
13
13
  const labels = useComposerLabels();
14
14
  const chatActive = folderPath === "";
15
15
  const folderActive = typeof folderPath === "string" && folderPath.length > 0;
@@ -42,7 +42,8 @@ function ScopeToggle({ folderPath, onPickFolder, onJustChat, recents, roots, onP
42
42
  current: folderPath,
43
43
  onPick: onPickRecent,
44
44
  ...onImportRepo ? { onImportRepo } : {},
45
- onSelectDirectory: onPickFolder
45
+ onSelectDirectory: onPickFolder,
46
+ ...onNewProject ? { onNewProject } : {}
46
47
  })]
47
48
  });
48
49
  }
@@ -14,7 +14,8 @@
14
14
  * - "Import repository…", cloning a URL on the server (`onImportRepo`);
15
15
  * - "Select directory…", which turns the menu into the server's folder
16
16
  * browser (`RemoteFolderBrowser`: filter, a typed path, search below,
17
- * new folder).
17
+ * new folder);
18
+ * - "New project…", a project on the server (`onNewProject`).
18
19
  *
19
20
  * There is no Chat side: a session on a server always has a folder there.
20
21
  */
@@ -42,6 +43,8 @@ export interface ServerScopeToggleProps {
42
43
  cloning?: boolean;
43
44
  /** Clones a repository on the server into the draft. Absent: not offered. */
44
45
  onImportRepo?: () => void | Promise<void>;
46
+ /** Opens New project for the server (`useNewProject`). Absent: not offered. */
47
+ onNewProject?: () => void;
45
48
  /** Extra classes on the group. */
46
49
  className?: string;
47
50
  /** Inline styles on the group. */
@@ -52,4 +55,4 @@ export interface ServerScopeToggleProps {
52
55
  *
53
56
  * @param props - The {@link ServerScopeToggleProps}.
54
57
  */
55
- export declare function ServerScopeToggle({ hostId, hostName, folder, onChange, projects, roots, root, clone, cloning, onImportRepo, className, style }: ServerScopeToggleProps): import("react").JSX.Element;
58
+ export declare function ServerScopeToggle({ hostId, hostName, folder, onChange, projects, roots, root, clone, cloning, onImportRepo, onNewProject, className, style }: ServerScopeToggleProps): import("react").JSX.Element;
@@ -11,7 +11,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
11
11
  *
12
12
  * @param props - The {@link ServerScopeToggleProps}.
13
13
  */
14
- function ServerScopeToggle({ hostId, hostName, folder, onChange, projects, roots, root = null, clone = null, cloning = false, onImportRepo, className, style }) {
14
+ function ServerScopeToggle({ hostId, hostName, folder, onChange, projects, roots, root = null, clone = null, cloning = false, onImportRepo, onNewProject, className, style }) {
15
15
  const labels = useComposerLabels();
16
16
  const display = useDisplayPath();
17
17
  const pending = folder === null && clone?.state !== "off" ? clone : null;
@@ -79,6 +79,7 @@ function ServerScopeToggle({ hostId, hostName, folder, onChange, projects, roots
79
79
  }
80
80
  })] }),
81
81
  ...onImportRepo ? { onImportRepo } : {},
82
+ ...onNewProject ? { onNewProject } : {},
82
83
  browse: (close) => /* @__PURE__ */ jsx(RemoteFolderBrowser, {
83
84
  hostId,
84
85
  start: folder,
@@ -3,7 +3,8 @@
3
3
  * "just chat"), a saved server and its folder, or a machine's environment and
4
4
  * its folder. Every pick is the current draft's only: it resets when the
5
5
  * conversation moves to a session (the first send included), so the next new
6
- * chat asks again. The folder rules are `draft-target.ts`
6
+ * chat asks again. A new chat asked for by the app's New (`DraftTargetRequest.newChat`) starts over where the
7
+ * default place says, with no folder. The folder rules are `draft-target.ts`
7
8
  * (`zidane-ui/chat/headless`); the environment kinds come from the git host
8
9
  * (`useEnvironmentChoices`). The app holds the folder new chats open in and
9
10
  * the saved servers, and hears the draft's local folder (its draft scope).
@@ -78,6 +79,11 @@ export interface DraftTargetRequest {
78
79
  environment?: string;
79
80
  /** The folder on the machine {@link DraftTargetRequest.environment} names, once that machine resolves. */
80
81
  machineFolder?: string;
82
+ /**
83
+ * A new chat (the app's New): where the default place says (its host, isolation and machine, as a new draft
84
+ * starts), with no folder and no project. `hostId`, `folder`, `environment` and `machineFolder` are ignored.
85
+ */
86
+ newChat?: boolean;
81
87
  }
82
88
  /** The draft's target and its picks, as the composer's where menu and folder pickers read them. */
83
89
  export interface DraftTarget {
@@ -53,7 +53,7 @@ function useDraftTarget(options) {
53
53
  }
54
54
  const placeSaved = !place || place.hostId === LOCAL_HOST_KEY || servers.some((host) => host.id === place.hostId);
55
55
  const placeKey = `${place ? JSON.stringify(place) : ""}\u0000${placeSaved}`;
56
- if (isNewSession && appliedPlace !== placeKey) {
56
+ const applyPlace = (withFolder) => {
57
57
  setAppliedPlace(placeKey);
58
58
  const target = place && placeSaved && place.hostId !== LOCAL_HOST_KEY ? place.hostId : home;
59
59
  const kind = place && placeSaved && place.hostId === target ? placeEnvironmentKind(place) : void 0;
@@ -67,23 +67,32 @@ function useDraftTarget(options) {
67
67
  branch: ""
68
68
  } : null);
69
69
  const own = place?.hostId === target ? place : null;
70
- setRemoteFolder(target !== LOCAL_HOST_KEY && own && !own.machine ? own.folder ?? null : null);
71
- setRequestedMachineFolder(kind && place?.machine && place.folder ? {
70
+ const folder = withFolder ? own?.folder : void 0;
71
+ setRemoteFolder(target !== LOCAL_HOST_KEY && own && !own.machine ? folder ?? null : null);
72
+ setRequestedMachineFolder(kind && place?.machine && folder ? {
72
73
  kind,
73
- folder: place.folder
74
+ folder
74
75
  } : null);
75
76
  setPlaceIssue(place && !placeSaved ? {
76
77
  kind: "unsaved",
77
78
  hostName: place.hostName ?? place.hostId,
78
79
  ...place.hostUrl ? { hostUrl: place.hostUrl } : {}
79
80
  } : null);
80
- setPlaceCheck(target !== LOCAL_HOST_KEY && (own?.machine || own?.folder) ? {
81
- ...own.machine ? { machine: own.machine } : {},
82
- ...own.folder ? { folder: own.folder } : {}
81
+ setPlaceCheck(target !== LOCAL_HOST_KEY && (own?.machine || folder) ? {
82
+ ...own?.machine ? { machine: own.machine } : {},
83
+ ...folder ? { folder } : {}
83
84
  } : null);
84
- }
85
+ };
86
+ if (isNewSession && appliedPlace !== placeKey) applyPlace(true);
85
87
  const [appliedRequest, setAppliedRequest] = useState(0);
86
- if (isNewSession && request && request.seq !== appliedRequest) {
88
+ const [newChatSeq, setNewChatSeq] = useState(0);
89
+ if (isNewSession && request && request.seq !== appliedRequest && request.newChat) {
90
+ setAppliedRequest(request.seq);
91
+ setNewChatSeq(request.seq);
92
+ applyPlace(false);
93
+ setFolderlessDraft(true);
94
+ setError(null);
95
+ } else if (isNewSession && request && request.seq !== appliedRequest) {
87
96
  setAppliedRequest(request.seq);
88
97
  setHostId(request.hostId);
89
98
  setResetKeys((keys) => ({
@@ -117,7 +126,7 @@ function useDraftTarget(options) {
117
126
  const machine = descriptor?.machine;
118
127
  const [machineFolder, setMachineFolder] = useState(null);
119
128
  const machineHost = server?.id ?? LOCAL_HOST_KEY;
120
- const machineKey = `${machine?.id ?? ""}\u0000${machineHost}`;
129
+ const machineKey = `${machine?.id ?? ""}\u0000${machineHost}\u0000${newChatSeq}`;
121
130
  const [folderMachine, setFolderMachine] = useState(machineKey);
122
131
  if (folderMachine !== machineKey) {
123
132
  setFolderMachine(machineKey);
@@ -1,3 +1,9 @@
1
1
  import { ChatEvent } from "../host.js";
2
+ /**
3
+ * Updates from other sessions in a row, as a Main hears them: one group with
4
+ * a section per project, a worktree's updates under its branch, one
5
+ * session's three updates as a conversation.
6
+ */
7
+ export declare const DEMO_SESSION_UPDATES: ChatEvent[];
2
8
  /** A synthetic two-exchange session that covers every transcript row kind. Used by the kit's tests and the gallery; none of it is real. */
3
9
  export declare const DEMO_TRANSCRIPT_ALL_KINDS: ChatEvent[];
@@ -27,6 +27,93 @@ const RATE_LIMIT_AFTER = `export const chat = route('/chat', async (req) => {
27
27
  if (!verdict.ok) return tooMany(verdict.retryAfterMs);
28
28
  return stream(await agent.run(req.body));
29
29
  });`;
30
+ /** Where the demo's worktrees live. */
31
+ const WORKTREES = "/Users/demo/.zidane/worktrees/server-1a2b3c4d";
32
+ /**
33
+ * Updates from other sessions in a row, as a Main hears them: one group with
34
+ * a section per project, a worktree's updates under its branch, one
35
+ * session's three updates as a conversation.
36
+ */
37
+ const DEMO_SESSION_UPDATES = [
38
+ [
39
+ "rate-limit",
40
+ "Rate limit on chat",
41
+ "/repo/server",
42
+ void 0,
43
+ "done",
44
+ "Added the per-IP bucket. **20 a minute**, bursts of 5.",
45
+ 214e3,
46
+ 9
47
+ ],
48
+ [
49
+ "mobile-release",
50
+ "EAS TestFlight release",
51
+ "/repo/mobile-app",
52
+ void 0,
53
+ "error",
54
+ "The build failed: the provisioning profile expired.",
55
+ 95e3,
56
+ 4
57
+ ],
58
+ [
59
+ "rate-limit",
60
+ "Rate limit on chat",
61
+ "/repo/server",
62
+ void 0,
63
+ "done",
64
+ "The 429 answer carries `Retry-After` now.",
65
+ 61e3,
66
+ 3
67
+ ],
68
+ [
69
+ "docs-pass",
70
+ "Docs pass",
71
+ `${WORKTREES}/docs-limits`,
72
+ "docs-limits",
73
+ "needs-attention",
74
+ "Which page should hold the limits table?",
75
+ 4e4,
76
+ 2
77
+ ],
78
+ [
79
+ "rate-limit",
80
+ "Rate limit on chat",
81
+ "/repo/server",
82
+ void 0,
83
+ "done",
84
+ "All 44 server tests pass.",
85
+ 33e3,
86
+ 2
87
+ ],
88
+ [
89
+ "docs-typos",
90
+ "Docs typos",
91
+ `${WORKTREES}/docs-limits`,
92
+ "docs-limits",
93
+ "done",
94
+ "Fixed the 12 typos the spell check found.",
95
+ 21e3,
96
+ 2
97
+ ]
98
+ ].map(([sessionId, title, cwd, branch, status, summary, durationMs, turns], i) => ({
99
+ kind: "session-event",
100
+ text: summary,
101
+ sessionEvent: {
102
+ sessionId,
103
+ title,
104
+ status,
105
+ summary,
106
+ at: T0 + 2e5 + i * 6e4,
107
+ cwd,
108
+ ...branch ? {
109
+ projectRoot: "/repo/server",
110
+ branch
111
+ } : {},
112
+ durationMs,
113
+ turns,
114
+ worker: true
115
+ }
116
+ }));
30
117
  /** A synthetic two-exchange session that covers every transcript row kind. Used by the kit's tests and the gallery; none of it is real. */
31
118
  const DEMO_TRANSCRIPT_ALL_KINDS = [
32
119
  {
@@ -274,6 +361,7 @@ const DEMO_TRANSCRIPT_ALL_KINDS = [
274
361
  turnId: "t2",
275
362
  text: formatRunReceiptLine(RECEIPT_T2),
276
363
  runSummary: RECEIPT_T2
277
- }
364
+ },
365
+ ...DEMO_SESSION_UPDATES
278
366
  ];
279
- export { DEMO_TRANSCRIPT_ALL_KINDS };
367
+ export { DEMO_SESSION_UPDATES, DEMO_TRANSCRIPT_ALL_KINDS };
@@ -50,16 +50,16 @@ import { RunEstimatesRow, RunEstimatesSignal, RunEstimatesStore, createRunEstima
50
50
  import { SESSION_HISTORY_LIMIT, SessionHistory, SessionHistoryDirection, SessionHistoryOptions, SessionHistoryPage, SessionHistoryState, SessionHistoryStore, createSessionHistory, parseSessionHistory } from "./sidebar/history.js";
51
51
  import { SessionWindowMode, SidebarEnvironmentHost, SidebarHost } from "./sidebar/host.js";
52
52
  import { SessionActivityFilter, SessionArchiveFilter, SidebarExtensionView, SidebarGroupBy, SidebarInboxGroupBy, SidebarLayout, SidebarListSession, SidebarOrigin, SidebarProjectMain, SidebarSortBy, SidebarView, VIEW_CHOICE } from "./sidebar/types.js";
53
+ import { DEFAULT_SIDEBAR_VIEW, DEFAULT_SIDEBAR_VIEW_DEFAULTS, DEFAULT_SWITCHER_PREFS, SIDEBAR_SPACE_KEY, SIDEBAR_SWITCHER_KEY, SIDEBAR_VIEW_KEY, SIDEBAR_VIEW_VERSION, SidebarLastSessions, SidebarViewDefaults, SidebarViewMap, SidebarViewPicks, SidebarViewRecord, SidebarViews, SidebarViewsHost, SidebarViewsOptions, SidebarViewsStorage, SpaceSwitcherPrefs, createSidebarViews, defaultSidebarLayout, parseSidebarView, parseSidebarViewPicks, parseSwitcherPrefs, readSidebarViews, resolveSidebarView, sidebarLayoutOf, sidebarViewDefaults } from "./sidebar/view.js";
54
+ import { AGENT_GROUPING, MAX_ROW_CHIPS, NO_SIDEBAR_CONTRIBUTIONS, SidebarContributionStores, SidebarContributions, SidebarGrouping, SidebarItemEntry, SidebarQueryLayer, SidebarRowChip, SidebarRowDecoration, SidebarSpace, claimChildSessions, clearedViewFilters, createDecorator, extensionSpaceOf, filterQueryOf, filtersForSpace, itemsForSpace, mergeSidebarSpaces, nextSavedViewName, resolveGrouping, resolveSort, sidebarContributionsOf, spaceMembership, switcherSpaces, viewFilterOf, viewFiltersOn } from "./sidebar/query.js";
55
+ import { BuildQuerySidebarRowsOptions, BuildSidebarRowsOptions, CHATS_BUCKET, SidebarListRow, SidebarNode, SidebarProjectGroup, SidebarProjectIndex, buildHostSidebarRows, buildQuerySidebarRows, buildSidebarRows, groupsByFolder, isProjectMember, itemRows, nestSidebarRows, partitionMainSession, projectGroupPath, projectIdOfGroup, projectPathOf, repoGroups, sidebarGroupPathOf, sidebarProjectIndex } from "./sidebar/rows.js";
53
56
  import { INBOX_EARLIER_AFTER_MS, INBOX_PAGE, INBOX_PAGE_MORE, INBOX_RUN_HOLD_MS, INBOX_SHELVES, INBOX_SHELVES_FOLDED, INBOX_SHELVES_KEY, InboxRow, InboxRowsOptions, InboxSection, InboxShelfId, InboxUrgency, buildInboxRows, compareInboxSection, inboxDockStart, inboxEarlierAfterMs, inboxFolderIdOf, inboxFolderOf, inboxSectionOf, inboxSessionOrder, nextInboxChangeAt } from "./sidebar/inbox.js";
54
57
  import { SessionInboxFields, SessionInboxPatch, applyInboxPatch, isSettled, isSnoozed, nextWakeAt } from "./sidebar/inbox-state.js";
55
58
  import { SessionNotification, SessionNotificationStore, createNotificationStore } from "./sidebar/notifications.js";
56
59
  import { PINNED_PROJECTS_KEY, PinsBySpace, parsePinnedProjects, withPinnedProject } from "./sidebar/pinned-projects.js";
57
60
  import { pinSession, pinnedSessions } from "./sidebar/pinned-sessions.js";
58
61
  import { comparePinnedMains, isPinnedProjectMain, isSidebarPinned, isUnlistedProjectMain, sidebarProjectMainOf } from "./sidebar/project-main.js";
59
- import { DEFAULT_SIDEBAR_VIEW, DEFAULT_SIDEBAR_VIEW_DEFAULTS, DEFAULT_SWITCHER_PREFS, SIDEBAR_SPACE_KEY, SIDEBAR_SWITCHER_KEY, SIDEBAR_VIEW_KEY, SIDEBAR_VIEW_VERSION, SidebarLastSessions, SidebarViewDefaults, SidebarViewMap, SidebarViewPicks, SidebarViewRecord, SidebarViews, SidebarViewsHost, SidebarViewsOptions, SidebarViewsStorage, SpaceSwitcherPrefs, createSidebarViews, defaultSidebarLayout, parseSidebarView, parseSidebarViewPicks, parseSwitcherPrefs, readSidebarViews, resolveSidebarView, sidebarLayoutOf, sidebarViewDefaults } from "./sidebar/view.js";
60
- import { AGENT_GROUPING, MAX_ROW_CHIPS, NO_SIDEBAR_CONTRIBUTIONS, SidebarContributionStores, SidebarContributions, SidebarGrouping, SidebarItemEntry, SidebarQueryLayer, SidebarRowChip, SidebarRowDecoration, SidebarSpace, claimChildSessions, clearedViewFilters, createDecorator, extensionSpaceOf, filterQueryOf, filtersForSpace, itemsForSpace, mergeSidebarSpaces, nextSavedViewName, resolveGrouping, resolveSort, sidebarContributionsOf, spaceMembership, switcherSpaces, viewFilterOf, viewFiltersOn } from "./sidebar/query.js";
61
62
  import { SessionRowSignal, sessionRowChanges } from "./sidebar/row-changes.js";
62
- import { BuildQuerySidebarRowsOptions, BuildSidebarRowsOptions, CHATS_BUCKET, SidebarListRow, SidebarNode, buildHostSidebarRows, buildQuerySidebarRows, buildSidebarRows, groupsByFolder, isProjectMember, itemRows, nestSidebarRows, partitionMainSession, projectPathOf, repoGroups } from "./sidebar/rows.js";
63
63
  import { createSiteIcons, siteOrigin } from "./site-icons.js";
64
64
  import { DeltaBucket, SMOOTH_TICK_MS, drainBucket, safeSurrogateSlice, tickBucket } from "./smooth-stream.js";
65
65
  import { Readable, Writable, constant, useReadable, writable } from "./store.js";
@@ -74,7 +74,7 @@ import { mergePromptPreviews, missingPreviewData } from "./streams/prompt-previe
74
74
  import { selectEditEvents, stableSelection } from "./streams/selectors.js";
75
75
  import "./streams/index.js";
76
76
  import { AuthCardPlan, AuthFixes, AuthSettingsTarget, authFailureDetails, createAuthFixes, isAuthFixed, planAuthCard } from "./transcript/auth-failure.js";
77
- import { BashExitMeta, Cluster, DotVariant, ExchangeFoldStats, GroupCluster, Owned, Row, SpawnMeta, TaskInfo, ToolRowModel, firstRowId, parseBashExitMeta } from "./transcript/rows.js";
77
+ import { BashExitMeta, Cluster, DotVariant, ExchangeFoldStats, GroupCluster, Owned, Row, SessionEventGroupLevel, SessionEventRowModel, SpawnMeta, TaskInfo, ToolRowModel, firstRowId, parseBashExitMeta } from "./transcript/rows.js";
78
78
  import { batchTaskRuns, batchThinkingRuns, batchToolRuns, clusterByOwner } from "./transcript/batch.js";
79
79
  import { collapseEvents, inheritRowIdentity, refusedSpawn, toolFailed } from "./transcript/collapse.js";
80
80
  import { ExchangeMedium, MediaRef, exchangesMedia, mediaRefsOf, mediumKey } from "./transcript/exchange-media.js";
@@ -85,9 +85,10 @@ import { PairingResult, ToolPairing, pairToolEvents } from "./transcript/pairing
85
85
  import { EMPTY_RAIL, RailExchange, RailModel, TranscriptRailState, TranscriptRailStore, computeRailModel, computeRailModelParts, createTranscriptRailStore, dataRowSelector, plainPreview, railWithOutline, sameRail } from "./transcript/rail.js";
86
86
  import { RunFailure, failureTooltip, markRunFailures } from "./transcript/run-failures.js";
87
87
  import { SelectStops, computeSelectStops, rowTurnIds, stopForRow } from "./transcript/select-stops.js";
88
+ import { groupSessionEvents, latestPerConversation } from "./transcript/session-groups.js";
88
89
  import "./transcript/index.js";
89
90
  import { ChatBadgeActions, ChatChipDetails, ChatCommandFacts, ChatCommit, ChatContextFacts, ChatPaths, ChatReferences, ChatReferencesChange, ChatResolvedPath, ChatSearchState, ChatSearchSync, ChatSessionFacts, ChatSiteIcons, ChatSkillFacts } from "./transcript-host.js";
90
91
  import { DEFAULT_SIDEBAR_LABELS, SidebarLabels } from "./sidebar/labels.js";
91
92
  import { DirectoryServer, DirectorySettings, ProjectInSpace, RuntimeNow, RuntimeOrigin, SessionDirectory, SessionDirectoryOptions, SessionDirectorySource, SessionDirectoryState, SessionDirectoryStreams, SessionRef, SessionRemoval, SessionRowChange, availableProjectsOf, createSessionDirectory, filterDirectorySessions, projectKeyOf, sessionRefsOf } from "./sidebar/directory.js";
92
93
  import { TurnPromptDraft, promptDraftOf } from "./turn-prompt.js";
93
- export { AGENT_GROUPING, AnswerOutcome, type AuthCardPlan, type AuthFixes, type AuthSettingsTarget, type BashExitMeta, BookDraft, BuildQuerySidebarRowsOptions, BuildSidebarRowsOptions, CHATS_BUCKET, CHUNK_THRESHOLD, COMMON_EMOJI, CalendarOptions, ChatAttachment, ChatAttachmentOriginal, ChatBadgeActions, ChatBlockRunOptions, ChatBlockRunTransport, ChatBlockRuns, ChatChipDetails, ChatCommandFacts, ChatCommit, ChatContextFacts, ChatEvent, ChatHost, ChatInteraction, ChatLabels, ChatModel, ChatModelProvider, ChatPaths, ChatReferences, ChatReferencesChange, ChatResolvedPath, ChatSearchState, ChatSearchSync, ChatSession, ChatSessionFacts, ChatSessionStatus, ChatSiteIcons, ChatSkillFacts, ChipResolution, ChipViewLabels, type Cluster, type CommandArgSuggestionSummary, type CommandSummary, CompactionProgress, CompactionProgressStore, CompactionSignal, ComposerAgentProfile, ComposerAgents, ComposerArtifactEntry, ComposerAttachment, ComposerAutocomplete, ComposerCacheImpact, ComposerCacheImpactChange, ComposerChromeLabels, ComposerCommandArgs, ComposerCompletions, ComposerContext, ComposerContextBreakdown, ComposerContextStatus, ComposerControls, ComposerCostStatus, ComposerDraftAttachmentsListener, ComposerDraftStorage, ComposerDrafts, ComposerEffort, ComposerExtensionItem, ComposerExtensionProvider, ComposerFolderLocation, ComposerFolders, ComposerHost, ComposerLabels, type ComposerListScope, type ComposerLists, ComposerMode, ComposerModelEntry, ComposerModelOption, ComposerModels, ComposerPrefs, ComposerPrefsState, ComposerPromptSuggestion, ComposerRememberedModel, ComposerRunProgress, ComposerRuns, ComposerScope, ComposerSessionView, ComposerSharedGhost, ComposerSkillGroup, ComposerSuggestions, ConversationBadge, ConversationBadgeData, ConversationBadgeInput, DEFAULT_CHAT_LABELS, DEFAULT_COMPOSER_CHROME_LABELS, DEFAULT_COMPOSER_LABELS, DEFAULT_MODEL_PICKER_PREFS, DEFAULT_SIDEBAR_LABELS, DEFAULT_SIDEBAR_VIEW, DEFAULT_SIDEBAR_VIEW_DEFAULTS, DEFAULT_SWITCHER_PREFS, DeltaBucket, DirectoryServer, DirectorySettings, DotStateInput, type DotVariant, DraftBook, DraftFolderSource, DraftFolderState, DraftPlaceIssue, DraftScope, DraftScopeState, DraftScopeStore, DraftScopeStoreOptions, type DrainPlan, EMPTY_RAIL, EMPTY_RUN_METER, EffortPickerTarget, type ExchangeFoldStats, type ExchangeMedium, FileChip, FileChipKind, type FileEntry, type FoldActionItem, type FoldActionState, FolderGroup, FolderRootSource, type FrameScheduler, type GroupCluster, HostStatus, HostView, INBOX_EARLIER_AFTER_MS, INBOX_PAGE, INBOX_PAGE_MORE, INBOX_RUN_HOLD_MS, INBOX_SHELVES, INBOX_SHELVES_FOLDED, INBOX_SHELVES_KEY, ImageModelRow, InboxRow, InboxRowsOptions, InboxSection, InboxShelfId, InboxSummary, InboxUrgency, InteractionAnsweredFirst, LIVE_BLOCK_RUN_LINES, type LazyList, ListableSession, LiveBlockRun, LiveCostStatus, LiveStreamProgress, type LoadEarlierOptions, MAIN_SESSION_ICON_KEY, MAX_EXTENSION_COMPOSER_BADGES, MAX_ROW_CHIPS, MODEL_PICKER_STORAGE_KEY, type MediaRef, ModelCatalogRow, ModelKnobs, ModelKnobsMemory, ModelKnobsStore, ModelNames, ModelNamesProvider, ModelNamesStore, ModelPickRef, ModelPickerPrefs, ModelPickerPrefsStorage, ModelPickerPrefsStore, NO_PROVIDER_ERROR, NO_SIDEBAR_CONTRIBUTIONS, NewChatPlaceKey, NewSessionDefaults, NewSessionRequest, type NotificationSettings, type NotifyEvent, OpenFence, type OtherStreamSignal, type Owned, PINNED_PROJECTS_KEY, PROJECT_GROUP_CAP, PROJECT_ICONS_KEY, type PairingResult, PathResolver, PathResolverOptions, type PendingEcho, PinsBySpace, ProjectIcon, ProjectIconMap, ProjectInSpace, type PromptAttachment, type PromptOrigin, type PromptOriginWire, type PromptViewOrigin, REFERENCES_STORAGE_KEY, RELATIVE_TIME_DATE_AFTER_DAYS, type RailExchange, type RailModel, Readable, ReferenceStore, ReferenceStoreOptions, ReferenceViewEntry, type ResourceSnapshot, type Row, RunEstimatesRow, RunEstimatesSignal, RunEstimatesStore, type RunFailure, RunMeter, RunMeterRow, RunMeterSignal, RunMeterState, RuntimeNow, RuntimeOrigin, SESSION_HISTORY_LIMIT, SIDEBAR_SPACE_KEY, SIDEBAR_SWITCHER_KEY, SIDEBAR_VIEW_KEY, SIDEBAR_VIEW_VERSION, SMOOTH_TICK_MS, SecretTimeLeft, type SelectStops, SendAttachment, SendDraft, SendFlowDeps, SendInput, SendPromptAttachment, SendRequest, SessionActivity, SessionActivityFilter, SessionActivitySignal, SessionActivityStore, SessionArchiveFilter, SessionBadgesEntry, SessionBadgesSource, SessionBadgesStore, SessionDirectory, SessionDirectoryOptions, SessionDirectorySource, SessionDirectoryState, SessionDirectoryStreams, type SessionFallbackModel, SessionGroupBy, SessionHistory, SessionHistoryDirection, SessionHistoryOptions, SessionHistoryPage, SessionHistoryState, SessionHistoryStore, type SessionInboxFields, type SessionInboxPatch, SessionListOptions, SessionListRow, SessionNotification, SessionNotificationStore, type SessionPageState, SessionRef, SessionRemoval, type SessionRetryState, SessionRowChange, type SessionRowSignal, SessionSearchHit, SessionSortBy, type SessionStreamActions, type SessionStreamPage, type SessionStreamSignal, SessionStreamStore, type SessionStreamStoreOptions, type SessionStreamWrite, type SessionStreams, type SessionStreamsOptions, SessionWindowMode, SetDefaultModel, SharedDraft, SharedDraftAttachmentsChange, SharedDraftChange, SidebarContributionStores, SidebarContributions, SidebarDotState, SidebarEnvironmentHost, SidebarExtensionView, SidebarGroupBy, SidebarGrouping, SidebarHost, SidebarInboxGroupBy, SidebarItemEntry, SidebarLabels, SidebarLastSessions, type SidebarLayout, SidebarListRow, SidebarListSession, SidebarNode, SidebarOrigin, SidebarProjectMain, SidebarQueryLayer, SidebarRowChip, SidebarRowDecoration, SidebarSortBy, SidebarSpace, SidebarView, SidebarViewDefaults, SidebarViewMap, SidebarViewPicks, SidebarViewRecord, SidebarViews, SidebarViewsHost, SidebarViewsOptions, SidebarViewsStorage, type SkillConfig, SpaceSwitcherPrefs, type SpawnMeta, StoredComposerDraft, TOOL_OUTPUT_PAGE_SIZE, type TaskInfo, ToolOutputPager, ToolOutputPagerOptions, ToolOutputPagerState, ToolOutputRange, ToolOutputRangeReader, type ToolPairing, type ToolRowModel, Transcript, type TranscriptRailState, type TranscriptRailStore, TranscriptState, TurnPromptDraft, UNDECIDED_NEW_CHAT_DRAFT_KEY, VIEW_CHOICE, WebStorageDraftStorageOptions, Writable, activityLabel, answeredFirstOf, applyInboxPatch, approvalNotificationDetail, authFailureDetails, availableProjectsOf, batchTaskRuns, batchThinkingRuns, batchToolRuns, beginChipWork, buildHostSidebarRows, buildInboxRows, buildQuerySidebarRows, buildSessionRows, buildSidebarRows, caretEffectivelyAtStart, chipForPath, chipWorkBusy, claimChildSessions, classifyInlineCode, clearedViewFilters, clusterByOwner, collapseEvents, commandName, commandRef, commandView, commitModelPick, commitView, compareInboxSection, comparePinnedMains, compareSessions, composeLiveCost, composeSubmitText, computeRailModel, computeRailModelParts, computeSelectStops, constant, conversationBadges, createAuthFixes, createChatBlockRuns, createCompactionProgress, createComposerLists, createDecorator, createDraftBook, createDraftScopeStore, createModelKnobs, createModelNames, createModelPickerPrefs, createNotificationStore, createPathResolver, createReferenceStore, createRunEstimates, createRunMeter, createSessionActivity, createSessionBadges, createSessionDirectory, createSessionHistory, createSessionStreamActions, createSessionStreams, createSidebarViews, createSiteIcons, createToolOutputPager, createTranscriptRailStore, createWebStorageDraftStorage, dataRowSelector, dateBucket, decodeHistoryEntry, defaultFrameScheduler, defaultModelPatch, defaultSidebarLayout, deleteSessionPrompt, deriveDotState, dockRunReceipts, dotVariantFor, draftBookOf, draftFolderPath, draftLocalFolder, draftScopeOf, drainBucket, effortPickerTarget, encodeHistoryDraft, environmentKindLabel, environmentLabel, environmentSummaryText, exchangesMedia, exitsModeOnKey, extensionSpaceOf, failureTooltip, filterDirectorySessions, filterQueryOf, filterSessions, filtersForSpace, findCommand, findLastStreamingRow, firstGrapheme, firstRowId, foldActionItems, foldExchanges, foldWorkerRows, folderRoots, formatElapsedShort, formatSessionCostLabel, groupFolders, groupsByFolder, hostReachable, hostStatusLabel, inboxDockStart, inboxEarlierAfterMs, inboxFolderIdOf, inboxFolderOf, inboxSectionOf, inboxSessionOrder, inheritRowIdentity, isAuthFixed, isPinnedProjectMain, isProjectIcon, isProjectMember, isSettled, isSidebarPinned, isSnoozed, isUnlistedProjectMain, itemRows, itemsForSpace, lastModelChainOf, markRunFailures, mediaRefsOf, mediumKey, mergeLiveTail, mergePromptPreviews, mergeSidebarSpaces, missingPreviewData, modeForTypedChar, modelKnobsOf, modelNamesOf, namerFor, nestSidebarRows, nestToolCalls, nestedCallVisible, newChatDraftKey, newSessionRequest, nextInboxChangeAt, nextSavedViewName, nextWakeAt, notificationContent, openFenceOf, pairToolEvents, parseBashExitMeta, parseModelPickerPrefs, parsePinnedProjects, parseProjectIcons, parseSessionHistory, parseSidebarView, parseSidebarViewPicks, parseSwitcherPrefs, partitionMainSession, pickRunEstimate, pinSession, pinnedSessions, plainPreview, planAuthCard, positionSuffix, projectKeyOf, projectPathOf, promptAttachments, promptDraftOf, promptOriginWire, promptRefs, questionNotificationDetail, railWithOutline, readSidebarViews, recentHostFolders, recentLocalFolders, reduceActivity, reduceCompaction, refusedSpawn, relativeTime, rememberableChain, rememberedDefaultModel, rememberedPick, repoGroups, resetChipWorkForTests, resolveBadgePanel, resolveChipPath, resolveGrouping, resolveSidebarView, resolveSort, rowTurnIds, runsInRemoteSandbox, safeSurrogateSlice, sameRail, secretExpiryWords, secretTimeLeft, secretTimeLeftIso, selectEditEvents, sendPrompt, sessionForToken, sessionRefsOf, sessionRowChanges, sessionView, settledResource, shellCommandOf, shortUrl, shouldNotify, sidebarContributionsOf, sidebarLayoutOf, sidebarProjectMainOf, sidebarViewDefaults, siteOrigin, skillGroupView, skillName, skillView, sliceToolOutput, spaceMembership, splitMarkdown, stableSelection, stopForRow, switcherSpaces, tickBucket, toolAction, toolFailed, toolOutputPagerDone, unavailablePlaceIssue, unsentDraft, urlRefs, useReadable, viewFilterOf, viewFiltersOn, whenChipsSettle, wireAttachmentsToChat, wireOriginal, withPinnedProject, withoutPartialEmphasis, withoutPartialFence, writable };
94
+ export { AGENT_GROUPING, AnswerOutcome, type AuthCardPlan, type AuthFixes, type AuthSettingsTarget, type BashExitMeta, BookDraft, BuildQuerySidebarRowsOptions, BuildSidebarRowsOptions, CHATS_BUCKET, CHUNK_THRESHOLD, COMMON_EMOJI, CalendarOptions, ChatAttachment, ChatAttachmentOriginal, ChatBadgeActions, ChatBlockRunOptions, ChatBlockRunTransport, ChatBlockRuns, ChatChipDetails, ChatCommandFacts, ChatCommit, ChatContextFacts, ChatEvent, ChatHost, ChatInteraction, ChatLabels, ChatModel, ChatModelProvider, ChatPaths, ChatReferences, ChatReferencesChange, ChatResolvedPath, ChatSearchState, ChatSearchSync, ChatSession, ChatSessionFacts, ChatSessionStatus, ChatSiteIcons, ChatSkillFacts, ChipResolution, ChipViewLabels, type Cluster, type CommandArgSuggestionSummary, type CommandSummary, CompactionProgress, CompactionProgressStore, CompactionSignal, ComposerAgentProfile, ComposerAgents, ComposerArtifactEntry, ComposerAttachment, ComposerAutocomplete, ComposerCacheImpact, ComposerCacheImpactChange, ComposerChromeLabels, ComposerCommandArgs, ComposerCompletions, ComposerContext, ComposerContextBreakdown, ComposerContextStatus, ComposerControls, ComposerCostStatus, ComposerDraftAttachmentsListener, ComposerDraftStorage, ComposerDrafts, ComposerEffort, ComposerExtensionItem, ComposerExtensionProvider, ComposerFolderLocation, ComposerFolders, ComposerHost, ComposerLabels, type ComposerListScope, type ComposerLists, ComposerMode, ComposerModelEntry, ComposerModelOption, ComposerModels, ComposerPrefs, ComposerPrefsState, ComposerPromptSuggestion, ComposerRememberedModel, ComposerRunProgress, ComposerRuns, ComposerScope, ComposerSessionView, ComposerSharedGhost, ComposerSkillGroup, ComposerSuggestions, ConversationBadge, ConversationBadgeData, ConversationBadgeInput, DEFAULT_CHAT_LABELS, DEFAULT_COMPOSER_CHROME_LABELS, DEFAULT_COMPOSER_LABELS, DEFAULT_MODEL_PICKER_PREFS, DEFAULT_SIDEBAR_LABELS, DEFAULT_SIDEBAR_VIEW, DEFAULT_SIDEBAR_VIEW_DEFAULTS, DEFAULT_SWITCHER_PREFS, DeltaBucket, DirectoryServer, DirectorySettings, DotStateInput, type DotVariant, DraftBook, DraftFolderSource, DraftFolderState, DraftPlaceIssue, DraftScope, DraftScopeState, DraftScopeStore, DraftScopeStoreOptions, type DrainPlan, EMPTY_RAIL, EMPTY_RUN_METER, EffortPickerTarget, type ExchangeFoldStats, type ExchangeMedium, FileChip, FileChipKind, type FileEntry, type FoldActionItem, type FoldActionState, FolderGroup, FolderRootSource, type FrameScheduler, type GroupCluster, HostStatus, HostView, INBOX_EARLIER_AFTER_MS, INBOX_PAGE, INBOX_PAGE_MORE, INBOX_RUN_HOLD_MS, INBOX_SHELVES, INBOX_SHELVES_FOLDED, INBOX_SHELVES_KEY, ImageModelRow, InboxRow, InboxRowsOptions, InboxSection, InboxShelfId, InboxSummary, InboxUrgency, InteractionAnsweredFirst, LIVE_BLOCK_RUN_LINES, type LazyList, ListableSession, LiveBlockRun, LiveCostStatus, LiveStreamProgress, type LoadEarlierOptions, MAIN_SESSION_ICON_KEY, MAX_EXTENSION_COMPOSER_BADGES, MAX_ROW_CHIPS, MODEL_PICKER_STORAGE_KEY, type MediaRef, ModelCatalogRow, ModelKnobs, ModelKnobsMemory, ModelKnobsStore, ModelNames, ModelNamesProvider, ModelNamesStore, ModelPickRef, ModelPickerPrefs, ModelPickerPrefsStorage, ModelPickerPrefsStore, NO_PROVIDER_ERROR, NO_SIDEBAR_CONTRIBUTIONS, NewChatPlaceKey, NewSessionDefaults, NewSessionRequest, type NotificationSettings, type NotifyEvent, OpenFence, type OtherStreamSignal, type Owned, PINNED_PROJECTS_KEY, PROJECT_GROUP_CAP, PROJECT_ICONS_KEY, type PairingResult, PathResolver, PathResolverOptions, type PendingEcho, PinsBySpace, ProjectIcon, ProjectIconMap, ProjectInSpace, type PromptAttachment, type PromptOrigin, type PromptOriginWire, type PromptViewOrigin, REFERENCES_STORAGE_KEY, RELATIVE_TIME_DATE_AFTER_DAYS, type RailExchange, type RailModel, Readable, ReferenceStore, ReferenceStoreOptions, ReferenceViewEntry, type ResourceSnapshot, type Row, RunEstimatesRow, RunEstimatesSignal, RunEstimatesStore, type RunFailure, RunMeter, RunMeterRow, RunMeterSignal, RunMeterState, RuntimeNow, RuntimeOrigin, SESSION_HISTORY_LIMIT, SIDEBAR_SPACE_KEY, SIDEBAR_SWITCHER_KEY, SIDEBAR_VIEW_KEY, SIDEBAR_VIEW_VERSION, SMOOTH_TICK_MS, SecretTimeLeft, type SelectStops, SendAttachment, SendDraft, SendFlowDeps, SendInput, SendPromptAttachment, SendRequest, SessionActivity, SessionActivityFilter, SessionActivitySignal, SessionActivityStore, SessionArchiveFilter, SessionBadgesEntry, SessionBadgesSource, SessionBadgesStore, SessionDirectory, SessionDirectoryOptions, SessionDirectorySource, SessionDirectoryState, SessionDirectoryStreams, type SessionEventGroupLevel, type SessionEventRowModel, type SessionFallbackModel, SessionGroupBy, SessionHistory, SessionHistoryDirection, SessionHistoryOptions, SessionHistoryPage, SessionHistoryState, SessionHistoryStore, type SessionInboxFields, type SessionInboxPatch, SessionListOptions, SessionListRow, SessionNotification, SessionNotificationStore, type SessionPageState, SessionRef, SessionRemoval, type SessionRetryState, SessionRowChange, type SessionRowSignal, SessionSearchHit, SessionSortBy, type SessionStreamActions, type SessionStreamPage, type SessionStreamSignal, SessionStreamStore, type SessionStreamStoreOptions, type SessionStreamWrite, type SessionStreams, type SessionStreamsOptions, SessionWindowMode, SetDefaultModel, SharedDraft, SharedDraftAttachmentsChange, SharedDraftChange, SidebarContributionStores, SidebarContributions, SidebarDotState, SidebarEnvironmentHost, SidebarExtensionView, SidebarGroupBy, SidebarGrouping, SidebarHost, SidebarInboxGroupBy, SidebarItemEntry, SidebarLabels, SidebarLastSessions, type SidebarLayout, SidebarListRow, SidebarListSession, SidebarNode, SidebarOrigin, SidebarProjectGroup, SidebarProjectIndex, SidebarProjectMain, SidebarQueryLayer, SidebarRowChip, SidebarRowDecoration, SidebarSortBy, SidebarSpace, SidebarView, SidebarViewDefaults, SidebarViewMap, SidebarViewPicks, SidebarViewRecord, SidebarViews, SidebarViewsHost, SidebarViewsOptions, SidebarViewsStorage, type SkillConfig, SpaceSwitcherPrefs, type SpawnMeta, StoredComposerDraft, TOOL_OUTPUT_PAGE_SIZE, type TaskInfo, ToolOutputPager, ToolOutputPagerOptions, ToolOutputPagerState, ToolOutputRange, ToolOutputRangeReader, type ToolPairing, type ToolRowModel, Transcript, type TranscriptRailState, type TranscriptRailStore, TranscriptState, TurnPromptDraft, UNDECIDED_NEW_CHAT_DRAFT_KEY, VIEW_CHOICE, WebStorageDraftStorageOptions, Writable, activityLabel, answeredFirstOf, applyInboxPatch, approvalNotificationDetail, authFailureDetails, availableProjectsOf, batchTaskRuns, batchThinkingRuns, batchToolRuns, beginChipWork, buildHostSidebarRows, buildInboxRows, buildQuerySidebarRows, buildSessionRows, buildSidebarRows, caretEffectivelyAtStart, chipForPath, chipWorkBusy, claimChildSessions, classifyInlineCode, clearedViewFilters, clusterByOwner, collapseEvents, commandName, commandRef, commandView, commitModelPick, commitView, compareInboxSection, comparePinnedMains, compareSessions, composeLiveCost, composeSubmitText, computeRailModel, computeRailModelParts, computeSelectStops, constant, conversationBadges, createAuthFixes, createChatBlockRuns, createCompactionProgress, createComposerLists, createDecorator, createDraftBook, createDraftScopeStore, createModelKnobs, createModelNames, createModelPickerPrefs, createNotificationStore, createPathResolver, createReferenceStore, createRunEstimates, createRunMeter, createSessionActivity, createSessionBadges, createSessionDirectory, createSessionHistory, createSessionStreamActions, createSessionStreams, createSidebarViews, createSiteIcons, createToolOutputPager, createTranscriptRailStore, createWebStorageDraftStorage, dataRowSelector, dateBucket, decodeHistoryEntry, defaultFrameScheduler, defaultModelPatch, defaultSidebarLayout, deleteSessionPrompt, deriveDotState, dockRunReceipts, dotVariantFor, draftBookOf, draftFolderPath, draftLocalFolder, draftScopeOf, drainBucket, effortPickerTarget, encodeHistoryDraft, environmentKindLabel, environmentLabel, environmentSummaryText, exchangesMedia, exitsModeOnKey, extensionSpaceOf, failureTooltip, filterDirectorySessions, filterQueryOf, filterSessions, filtersForSpace, findCommand, findLastStreamingRow, firstGrapheme, firstRowId, foldActionItems, foldExchanges, foldWorkerRows, folderRoots, formatElapsedShort, formatSessionCostLabel, groupFolders, groupSessionEvents, groupsByFolder, hostReachable, hostStatusLabel, inboxDockStart, inboxEarlierAfterMs, inboxFolderIdOf, inboxFolderOf, inboxSectionOf, inboxSessionOrder, inheritRowIdentity, isAuthFixed, isPinnedProjectMain, isProjectIcon, isProjectMember, isSettled, isSidebarPinned, isSnoozed, isUnlistedProjectMain, itemRows, itemsForSpace, lastModelChainOf, latestPerConversation, markRunFailures, mediaRefsOf, mediumKey, mergeLiveTail, mergePromptPreviews, mergeSidebarSpaces, missingPreviewData, modeForTypedChar, modelKnobsOf, modelNamesOf, namerFor, nestSidebarRows, nestToolCalls, nestedCallVisible, newChatDraftKey, newSessionRequest, nextInboxChangeAt, nextSavedViewName, nextWakeAt, notificationContent, openFenceOf, pairToolEvents, parseBashExitMeta, parseModelPickerPrefs, parsePinnedProjects, parseProjectIcons, parseSessionHistory, parseSidebarView, parseSidebarViewPicks, parseSwitcherPrefs, partitionMainSession, pickRunEstimate, pinSession, pinnedSessions, plainPreview, planAuthCard, positionSuffix, projectGroupPath, projectIdOfGroup, projectKeyOf, projectPathOf, promptAttachments, promptDraftOf, promptOriginWire, promptRefs, questionNotificationDetail, railWithOutline, readSidebarViews, recentHostFolders, recentLocalFolders, reduceActivity, reduceCompaction, refusedSpawn, relativeTime, rememberableChain, rememberedDefaultModel, rememberedPick, repoGroups, resetChipWorkForTests, resolveBadgePanel, resolveChipPath, resolveGrouping, resolveSidebarView, resolveSort, rowTurnIds, runsInRemoteSandbox, safeSurrogateSlice, sameRail, secretExpiryWords, secretTimeLeft, secretTimeLeftIso, selectEditEvents, sendPrompt, sessionForToken, sessionRefsOf, sessionRowChanges, sessionView, settledResource, shellCommandOf, shortUrl, shouldNotify, sidebarContributionsOf, sidebarGroupPathOf, sidebarLayoutOf, sidebarProjectIndex, sidebarProjectMainOf, sidebarViewDefaults, siteOrigin, skillGroupView, skillName, skillView, sliceToolOutput, spaceMembership, splitMarkdown, stableSelection, stopForRow, switcherSpaces, tickBucket, toolAction, toolFailed, toolOutputPagerDone, unavailablePlaceIssue, unsentDraft, urlRefs, useReadable, viewFilterOf, viewFiltersOn, whenChipsSettle, wireAttachmentsToChat, wireOriginal, withPinnedProject, withoutPartialEmphasis, withoutPartialFence, writable };
@@ -25,6 +25,7 @@ import { nestToolCalls, nestedCallVisible } from "./transcript/nesting.js";
25
25
  import { computeSelectStops, rowTurnIds, stopForRow } from "./transcript/select-stops.js";
26
26
  import { EMPTY_RAIL, computeRailModel, computeRailModelParts, createTranscriptRailStore, dataRowSelector, plainPreview, railWithOutline, sameRail } from "./transcript/rail.js";
27
27
  import { failureTooltip, markRunFailures } from "./transcript/run-failures.js";
28
+ import { groupSessionEvents, latestPerConversation } from "./transcript/session-groups.js";
28
29
  import { CHUNK_THRESHOLD, openFenceOf, splitMarkdown, withoutPartialEmphasis, withoutPartialFence } from "./markdown-chunks.js";
29
30
  import { mergeLiveTail } from "./streams/merge.js";
30
31
  import { mergePromptPreviews, missingPreviewData } from "./streams/prompt-previews.js";
@@ -62,7 +63,7 @@ import { createCompactionProgress, reduceCompaction } from "./sidebar/compaction
62
63
  import { createNotificationStore } from "./sidebar/notifications.js";
63
64
  import { VIEW_CHOICE } from "./sidebar/types.js";
64
65
  import { AGENT_GROUPING, MAX_ROW_CHIPS, NO_SIDEBAR_CONTRIBUTIONS, claimChildSessions, clearedViewFilters, createDecorator, extensionSpaceOf, filterQueryOf, filtersForSpace, itemsForSpace, mergeSidebarSpaces, nextSavedViewName, resolveGrouping, resolveSort, sidebarContributionsOf, spaceMembership, switcherSpaces, viewFilterOf, viewFiltersOn } from "./sidebar/query.js";
65
- import { CHATS_BUCKET, buildHostSidebarRows, buildQuerySidebarRows, buildSidebarRows, groupsByFolder, isProjectMember, itemRows, nestSidebarRows, partitionMainSession, projectPathOf, repoGroups } from "./sidebar/rows.js";
66
+ import { CHATS_BUCKET, buildHostSidebarRows, buildQuerySidebarRows, buildSidebarRows, groupsByFolder, isProjectMember, itemRows, nestSidebarRows, partitionMainSession, projectGroupPath, projectIdOfGroup, projectPathOf, repoGroups, sidebarGroupPathOf, sidebarProjectIndex } from "./sidebar/rows.js";
66
67
  import { DEFAULT_SIDEBAR_VIEW, DEFAULT_SIDEBAR_VIEW_DEFAULTS, DEFAULT_SWITCHER_PREFS, SIDEBAR_SPACE_KEY, SIDEBAR_SWITCHER_KEY, SIDEBAR_VIEW_KEY, SIDEBAR_VIEW_VERSION, createSidebarViews, defaultSidebarLayout, parseSidebarView, parseSidebarViewPicks, parseSwitcherPrefs, readSidebarViews, resolveSidebarView, sidebarLayoutOf, sidebarViewDefaults } from "./sidebar/view.js";
67
68
  import { availableProjectsOf, createSessionDirectory, filterDirectorySessions, projectKeyOf, sessionRefsOf } from "./sidebar/directory.js";
68
69
  import { deriveDotState } from "./sidebar/dot-state.js";
@@ -73,8 +74,8 @@ import { PINNED_PROJECTS_KEY, parsePinnedProjects, withPinnedProject } from "./s
73
74
  import { pinSession, pinnedSessions } from "./sidebar/pinned-sessions.js";
74
75
  import { sessionRowChanges } from "./sidebar/row-changes.js";
75
76
  import { SMOOTH_TICK_MS, drainBucket, safeSurrogateSlice, tickBucket } from "./smooth-stream.js";
76
- import { constant, useReadable, writable } from "./store.js";
77
77
  import { createComposerLists } from "./composer/composer-sources.js";
78
78
  import { UNDECIDED_NEW_CHAT_DRAFT_KEY, createDraftBook, createWebStorageDraftStorage, draftBookOf, newChatDraftKey } from "./composer/draft-book.js";
79
+ import { constant, useReadable, writable } from "./store.js";
79
80
  import { promptDraftOf } from "./turn-prompt.js";
80
- export { AGENT_GROUPING, CHATS_BUCKET, CHUNK_THRESHOLD, COMMON_EMOJI, DEFAULT_CHAT_LABELS, DEFAULT_COMPOSER_CHROME_LABELS, DEFAULT_COMPOSER_LABELS, DEFAULT_MODEL_PICKER_PREFS, DEFAULT_SIDEBAR_LABELS, DEFAULT_SIDEBAR_VIEW, DEFAULT_SIDEBAR_VIEW_DEFAULTS, DEFAULT_SWITCHER_PREFS, EMPTY_RAIL, EMPTY_RUN_METER, INBOX_EARLIER_AFTER_MS, INBOX_PAGE, INBOX_PAGE_MORE, INBOX_RUN_HOLD_MS, INBOX_SHELVES, INBOX_SHELVES_FOLDED, INBOX_SHELVES_KEY, LIVE_BLOCK_RUN_LINES, MAIN_SESSION_ICON_KEY, MAX_EXTENSION_COMPOSER_BADGES, MAX_ROW_CHIPS, MODEL_PICKER_STORAGE_KEY, NO_PROVIDER_ERROR, NO_SIDEBAR_CONTRIBUTIONS, PINNED_PROJECTS_KEY, PROJECT_GROUP_CAP, PROJECT_ICONS_KEY, REFERENCES_STORAGE_KEY, RELATIVE_TIME_DATE_AFTER_DAYS, SESSION_HISTORY_LIMIT, SIDEBAR_SPACE_KEY, SIDEBAR_SWITCHER_KEY, SIDEBAR_VIEW_KEY, SIDEBAR_VIEW_VERSION, SMOOTH_TICK_MS, SessionStreamStore, TOOL_OUTPUT_PAGE_SIZE, UNDECIDED_NEW_CHAT_DRAFT_KEY, VIEW_CHOICE, activityLabel, answeredFirstOf, applyInboxPatch, approvalNotificationDetail, authFailureDetails, availableProjectsOf, batchTaskRuns, batchThinkingRuns, batchToolRuns, beginChipWork, buildHostSidebarRows, buildInboxRows, buildQuerySidebarRows, buildSessionRows, buildSidebarRows, caretEffectivelyAtStart, chipForPath, chipWorkBusy, claimChildSessions, classifyInlineCode, clearedViewFilters, clusterByOwner, collapseEvents, commandName, commandRef, commandView, commitModelPick, commitView, compareInboxSection, comparePinnedMains, compareSessions, composeLiveCost, composeSubmitText, computeRailModel, computeRailModelParts, computeSelectStops, constant, conversationBadges, createAuthFixes, createChatBlockRuns, createCompactionProgress, createComposerLists, createDecorator, createDraftBook, createDraftScopeStore, createModelKnobs, createModelNames, createModelPickerPrefs, createNotificationStore, createPathResolver, createReferenceStore, createRunEstimates, createRunMeter, createSessionActivity, createSessionBadges, createSessionDirectory, createSessionHistory, createSessionStreamActions, createSessionStreams, createSidebarViews, createSiteIcons, createToolOutputPager, createTranscriptRailStore, createWebStorageDraftStorage, dataRowSelector, dateBucket, decodeHistoryEntry, defaultFrameScheduler, defaultModelPatch, defaultSidebarLayout, deleteSessionPrompt, deriveDotState, dockRunReceipts, dotVariantFor, draftBookOf, draftFolderPath, draftLocalFolder, draftScopeOf, drainBucket, effortPickerTarget, encodeHistoryDraft, environmentKindLabel, environmentLabel, environmentSummaryText, exchangesMedia, exitsModeOnKey, extensionSpaceOf, failureTooltip, filterDirectorySessions, filterQueryOf, filterSessions, filtersForSpace, findCommand, findLastStreamingRow, firstGrapheme, firstRowId, foldActionItems, foldExchanges, foldWorkerRows, folderRoots, formatElapsedShort, formatSessionCostLabel, groupFolders, groupsByFolder, hostReachable, hostStatusLabel, inboxDockStart, inboxEarlierAfterMs, inboxFolderIdOf, inboxFolderOf, inboxSectionOf, inboxSessionOrder, inheritRowIdentity, isAuthFixed, isPinnedProjectMain, isProjectIcon, isProjectMember, isSettled, isSidebarPinned, isSnoozed, isUnlistedProjectMain, itemRows, itemsForSpace, lastModelChainOf, markRunFailures, mediaRefsOf, mediumKey, mergeLiveTail, mergePromptPreviews, mergeSidebarSpaces, missingPreviewData, modeForTypedChar, modelKnobsOf, modelNamesOf, namerFor, nestSidebarRows, nestToolCalls, nestedCallVisible, newChatDraftKey, newSessionRequest, nextInboxChangeAt, nextSavedViewName, nextWakeAt, notificationContent, openFenceOf, pairToolEvents, parseBashExitMeta, parseModelPickerPrefs, parsePinnedProjects, parseProjectIcons, parseSessionHistory, parseSidebarView, parseSidebarViewPicks, parseSwitcherPrefs, partitionMainSession, pickRunEstimate, pinSession, pinnedSessions, plainPreview, planAuthCard, positionSuffix, projectKeyOf, projectPathOf, promptAttachments, promptDraftOf, promptOriginWire, promptRefs, questionNotificationDetail, railWithOutline, readSidebarViews, recentHostFolders, recentLocalFolders, reduceActivity, reduceCompaction, refusedSpawn, relativeTime, rememberableChain, rememberedDefaultModel, rememberedPick, repoGroups, resetChipWorkForTests, resolveBadgePanel, resolveChipPath, resolveGrouping, resolveSidebarView, resolveSort, rowTurnIds, runsInRemoteSandbox, safeSurrogateSlice, sameRail, secretExpiryWords, secretTimeLeft, secretTimeLeftIso, selectEditEvents, sendPrompt, sessionForToken, sessionRefsOf, sessionRowChanges, sessionView, settledResource, shellCommandOf, shortUrl, shouldNotify, sidebarContributionsOf, sidebarLayoutOf, sidebarProjectMainOf, sidebarViewDefaults, siteOrigin, skillGroupView, skillName, skillView, sliceToolOutput, spaceMembership, splitMarkdown, stableSelection, stopForRow, switcherSpaces, tickBucket, toolAction, toolFailed, toolOutputPagerDone, unavailablePlaceIssue, unsentDraft, urlRefs, useReadable, viewFilterOf, viewFiltersOn, whenChipsSettle, wireAttachmentsToChat, wireOriginal, withPinnedProject, withoutPartialEmphasis, withoutPartialFence, writable };
81
+ export { AGENT_GROUPING, CHATS_BUCKET, CHUNK_THRESHOLD, COMMON_EMOJI, DEFAULT_CHAT_LABELS, DEFAULT_COMPOSER_CHROME_LABELS, DEFAULT_COMPOSER_LABELS, DEFAULT_MODEL_PICKER_PREFS, DEFAULT_SIDEBAR_LABELS, DEFAULT_SIDEBAR_VIEW, DEFAULT_SIDEBAR_VIEW_DEFAULTS, DEFAULT_SWITCHER_PREFS, EMPTY_RAIL, EMPTY_RUN_METER, INBOX_EARLIER_AFTER_MS, INBOX_PAGE, INBOX_PAGE_MORE, INBOX_RUN_HOLD_MS, INBOX_SHELVES, INBOX_SHELVES_FOLDED, INBOX_SHELVES_KEY, LIVE_BLOCK_RUN_LINES, MAIN_SESSION_ICON_KEY, MAX_EXTENSION_COMPOSER_BADGES, MAX_ROW_CHIPS, MODEL_PICKER_STORAGE_KEY, NO_PROVIDER_ERROR, NO_SIDEBAR_CONTRIBUTIONS, PINNED_PROJECTS_KEY, PROJECT_GROUP_CAP, PROJECT_ICONS_KEY, REFERENCES_STORAGE_KEY, RELATIVE_TIME_DATE_AFTER_DAYS, SESSION_HISTORY_LIMIT, SIDEBAR_SPACE_KEY, SIDEBAR_SWITCHER_KEY, SIDEBAR_VIEW_KEY, SIDEBAR_VIEW_VERSION, SMOOTH_TICK_MS, SessionStreamStore, TOOL_OUTPUT_PAGE_SIZE, UNDECIDED_NEW_CHAT_DRAFT_KEY, VIEW_CHOICE, activityLabel, answeredFirstOf, applyInboxPatch, approvalNotificationDetail, authFailureDetails, availableProjectsOf, batchTaskRuns, batchThinkingRuns, batchToolRuns, beginChipWork, buildHostSidebarRows, buildInboxRows, buildQuerySidebarRows, buildSessionRows, buildSidebarRows, caretEffectivelyAtStart, chipForPath, chipWorkBusy, claimChildSessions, classifyInlineCode, clearedViewFilters, clusterByOwner, collapseEvents, commandName, commandRef, commandView, commitModelPick, commitView, compareInboxSection, comparePinnedMains, compareSessions, composeLiveCost, composeSubmitText, computeRailModel, computeRailModelParts, computeSelectStops, constant, conversationBadges, createAuthFixes, createChatBlockRuns, createCompactionProgress, createComposerLists, createDecorator, createDraftBook, createDraftScopeStore, createModelKnobs, createModelNames, createModelPickerPrefs, createNotificationStore, createPathResolver, createReferenceStore, createRunEstimates, createRunMeter, createSessionActivity, createSessionBadges, createSessionDirectory, createSessionHistory, createSessionStreamActions, createSessionStreams, createSidebarViews, createSiteIcons, createToolOutputPager, createTranscriptRailStore, createWebStorageDraftStorage, dataRowSelector, dateBucket, decodeHistoryEntry, defaultFrameScheduler, defaultModelPatch, defaultSidebarLayout, deleteSessionPrompt, deriveDotState, dockRunReceipts, dotVariantFor, draftBookOf, draftFolderPath, draftLocalFolder, draftScopeOf, drainBucket, effortPickerTarget, encodeHistoryDraft, environmentKindLabel, environmentLabel, environmentSummaryText, exchangesMedia, exitsModeOnKey, extensionSpaceOf, failureTooltip, filterDirectorySessions, filterQueryOf, filterSessions, filtersForSpace, findCommand, findLastStreamingRow, firstGrapheme, firstRowId, foldActionItems, foldExchanges, foldWorkerRows, folderRoots, formatElapsedShort, formatSessionCostLabel, groupFolders, groupSessionEvents, groupsByFolder, hostReachable, hostStatusLabel, inboxDockStart, inboxEarlierAfterMs, inboxFolderIdOf, inboxFolderOf, inboxSectionOf, inboxSessionOrder, inheritRowIdentity, isAuthFixed, isPinnedProjectMain, isProjectIcon, isProjectMember, isSettled, isSidebarPinned, isSnoozed, isUnlistedProjectMain, itemRows, itemsForSpace, lastModelChainOf, latestPerConversation, markRunFailures, mediaRefsOf, mediumKey, mergeLiveTail, mergePromptPreviews, mergeSidebarSpaces, missingPreviewData, modeForTypedChar, modelKnobsOf, modelNamesOf, namerFor, nestSidebarRows, nestToolCalls, nestedCallVisible, newChatDraftKey, newSessionRequest, nextInboxChangeAt, nextSavedViewName, nextWakeAt, notificationContent, openFenceOf, pairToolEvents, parseBashExitMeta, parseModelPickerPrefs, parsePinnedProjects, parseProjectIcons, parseSessionHistory, parseSidebarView, parseSidebarViewPicks, parseSwitcherPrefs, partitionMainSession, pickRunEstimate, pinSession, pinnedSessions, plainPreview, planAuthCard, positionSuffix, projectGroupPath, projectIdOfGroup, projectKeyOf, projectPathOf, promptAttachments, promptDraftOf, promptOriginWire, promptRefs, questionNotificationDetail, railWithOutline, readSidebarViews, recentHostFolders, recentLocalFolders, reduceActivity, reduceCompaction, refusedSpawn, relativeTime, rememberableChain, rememberedDefaultModel, rememberedPick, repoGroups, resetChipWorkForTests, resolveBadgePanel, resolveChipPath, resolveGrouping, resolveSidebarView, resolveSort, rowTurnIds, runsInRemoteSandbox, safeSurrogateSlice, sameRail, secretExpiryWords, secretTimeLeft, secretTimeLeftIso, selectEditEvents, sendPrompt, sessionForToken, sessionRefsOf, sessionRowChanges, sessionView, settledResource, shellCommandOf, shortUrl, shouldNotify, sidebarContributionsOf, sidebarGroupPathOf, sidebarLayoutOf, sidebarProjectIndex, sidebarProjectMainOf, sidebarViewDefaults, siteOrigin, skillGroupView, skillName, skillView, sliceToolOutput, spaceMembership, splitMarkdown, stableSelection, stopForRow, switcherSpaces, tickBucket, toolAction, toolFailed, toolOutputPagerDone, unavailablePlaceIssue, unsentDraft, urlRefs, useReadable, viewFilterOf, viewFiltersOn, whenChipsSettle, wireAttachmentsToChat, wireOriginal, withPinnedProject, withoutPartialEmphasis, withoutPartialFence, writable };
@@ -36,8 +36,12 @@ export declare const DEFAULT_CHAT_LABELS: {
36
36
  collapseGroup: (label: string) => string;
37
37
  openGroup: (label: string) => string;
38
38
  newSessionIn: (label: string) => string;
39
+ /** The button that starts a new chat with no project (the sidebar's top row, the session list's). */
39
40
  newSession: string;
41
+ /** The search field's placeholder. */
40
42
  searchSessions: string;
43
+ /** The session list's search field, as a screen reader names it. */
44
+ searchSessionsName: string;
41
45
  noSessions: string;
42
46
  noMatches: (query: string) => string;
43
47
  sessions: string;
@@ -95,6 +99,7 @@ export declare const DEFAULT_CHAT_LABELS: {
95
99
  receiptCost: string;
96
100
  receiptTokens: (sent: string, received: string) => string;
97
101
  receiptSpeed: string;
102
+ receiptFast: string;
98
103
  stopped: string;
99
104
  stoppedByYou: string;
100
105
  stoppedByName: (name: string) => string;
@@ -144,6 +149,10 @@ export declare const DEFAULT_CHAT_LABELS: {
144
149
  authSignInFailed: string;
145
150
  sessionEventLabel: (title: string, verb: string, needsAttention: boolean) => string;
146
151
  clickToAnswer: string;
152
+ sessionUpdates: (updates: number, conversations: number) => string;
153
+ sessionUpdateCount: (count: number) => string;
154
+ sessionUpdatesNoProject: string;
155
+ sessionTurns: (count: number) => string;
147
156
  openSession: string;
148
157
  commandDetail: string;
149
158
  spawnTask: string;
@@ -70,8 +70,12 @@ const DEFAULT_CHAT_LABELS = {
70
70
  collapseGroup: (label) => `Collapse ${label}`,
71
71
  openGroup: (label) => `Open ${label}`,
72
72
  newSessionIn: (label) => `New session in ${label}`,
73
- newSession: "New session",
74
- searchSessions: "Search sessions",
73
+ /** The button that starts a new chat with no project (the sidebar's top row, the session list's). */
74
+ newSession: "New",
75
+ /** The search field's placeholder. */
76
+ searchSessions: "Search",
77
+ /** The session list's search field, as a screen reader names it. */
78
+ searchSessionsName: "Search sessions",
75
79
  noSessions: "No sessions yet",
76
80
  noMatches: (query) => `No sessions match "${query}"`,
77
81
  sessions: "Sessions",
@@ -133,6 +137,7 @@ const DEFAULT_CHAT_LABELS = {
133
137
  receiptCost: "Run cost",
134
138
  receiptTokens: (sent, received) => `${sent} tokens sent, ${received} received`,
135
139
  receiptSpeed: "Output speed while streaming",
140
+ receiptFast: "Fast mode",
136
141
  stopped: "Stopped",
137
142
  stoppedByYou: "Stopped by you",
138
143
  stoppedByName: (name) => `Stopped by ${name}`,
@@ -182,7 +187,11 @@ const DEFAULT_CHAT_LABELS = {
182
187
  authSignInFailed: "Sign-in didn't work.",
183
188
  sessionEventLabel: (title, verb, needsAttention) => `${title} ${verb}${needsAttention ? ". Click to answer" : ""}`,
184
189
  clickToAnswer: "Answer",
185
- openSession: "open →",
190
+ sessionUpdates: (updates, conversations) => `${updates} updates from ${conversations} conversation${conversations === 1 ? "" : "s"}`,
191
+ sessionUpdateCount: (count) => `${count} update${count === 1 ? "" : "s"}`,
192
+ sessionUpdatesNoProject: "No project",
193
+ sessionTurns: (count) => `${count} turn${count === 1 ? "" : "s"}`,
194
+ openSession: "Open session",
186
195
  commandDetail: "detail",
187
196
  spawnTask: "Task",
188
197
  spawnResumes: (childId) => `resumes ${childId}`,