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.
- package/dist/chat/SessionList.d.ts +1 -1
- package/dist/chat/SessionList.js +1 -1
- package/dist/chat/Transcript.js +6 -2
- package/dist/chat/composer/ComposerEditor.js +1 -1
- package/dist/chat/composer/DraftPickers.d.ts +8 -2
- package/dist/chat/composer/DraftPickers.js +5 -3
- package/dist/chat/composer/ScopeToggle.d.ts +5 -2
- package/dist/chat/composer/ScopeToggle.js +3 -2
- package/dist/chat/composer/ServerScopeToggle.d.ts +5 -2
- package/dist/chat/composer/ServerScopeToggle.js +2 -1
- package/dist/chat/composer/use-draft-target.d.ts +7 -1
- package/dist/chat/composer/use-draft-target.js +19 -10
- package/dist/chat/headless/fixtures/demo-transcript-all-kinds.d.ts +6 -0
- package/dist/chat/headless/fixtures/demo-transcript-all-kinds.js +90 -2
- package/dist/chat/headless/index.d.ts +6 -5
- package/dist/chat/headless/index.js +4 -3
- package/dist/chat/headless/labels.d.ts +9 -0
- package/dist/chat/headless/labels.js +12 -3
- package/dist/chat/headless/session-list.d.ts +8 -0
- package/dist/chat/headless/session-list.js +7 -0
- package/dist/chat/headless/sidebar/inbox.d.ts +21 -5
- package/dist/chat/headless/sidebar/inbox.js +30 -12
- package/dist/chat/headless/sidebar/index.d.ts +2 -2
- package/dist/chat/headless/sidebar/index.js +2 -2
- package/dist/chat/headless/sidebar/labels.d.ts +7 -1
- package/dist/chat/headless/sidebar/labels.js +1 -1
- package/dist/chat/headless/sidebar/rows.d.ts +62 -5
- package/dist/chat/headless/sidebar/rows.js +93 -17
- package/dist/chat/headless/transcript/derive.d.ts +1 -0
- package/dist/chat/headless/transcript/derive.js +3 -1
- package/dist/chat/headless/transcript/fold.js +1 -0
- package/dist/chat/headless/transcript/index.d.ts +3 -2
- package/dist/chat/headless/transcript/index.js +2 -1
- package/dist/chat/headless/transcript/rail.js +1 -0
- package/dist/chat/headless/transcript/rows.d.ts +26 -2
- package/dist/chat/headless/transcript/select-stops.js +1 -0
- package/dist/chat/headless/transcript/session-groups.d.ts +36 -0
- package/dist/chat/headless/transcript/session-groups.js +94 -0
- package/dist/chat/index.d.ts +4 -3
- package/dist/chat/index.js +7 -6
- package/dist/chat/sidebar/InboxList.d.ts +14 -1
- package/dist/chat/sidebar/InboxList.js +33 -13
- package/dist/chat/sidebar/SessionSidebar.d.ts +13 -5
- package/dist/chat/sidebar/SessionSidebar.js +54 -34
- package/dist/chat/sidebar/SidebarGroupHeader.d.ts +7 -2
- package/dist/chat/sidebar/SidebarGroupHeader.js +22 -6
- package/dist/chat/sidebar/useInboxRows.d.ts +4 -1
- package/dist/chat/sidebar/useInboxRows.js +6 -3
- package/dist/chat/sidebar/useInboxTriage.d.ts +3 -0
- package/dist/chat/sidebar/useInboxTriage.js +3 -2
- package/dist/chat/testing/index.d.ts +2 -2
- package/dist/chat/testing/index.js +2 -2
- package/dist/chat/transcript/BadgeMenu.d.ts +9 -2
- package/dist/chat/transcript/BadgeMenu.js +20 -2
- package/dist/chat/transcript/SubagentBlock.js +24 -7
- package/dist/chat/transcript/TranscriptRail.js +3 -3
- package/dist/chat/transcript/TranscriptRow.js +8 -0
- package/dist/chat/transcript/frame.d.ts +7 -0
- package/dist/chat/transcript/frame.js +51 -5
- package/dist/chat/transcript/index.d.ts +4 -3
- package/dist/chat/transcript/index.js +3 -2
- package/dist/chat/transcript/notices.d.ts +9 -9
- package/dist/chat/transcript/notices.js +78 -81
- package/dist/chat/transcript/receipt-parts.d.ts +29 -2
- package/dist/chat/transcript/receipt-parts.js +40 -7
- package/dist/chat/transcript/row-estimate.js +4 -1
- package/dist/chat/transcript/run-rows.js +2 -5
- package/dist/chat/transcript/script-input.d.ts +1 -1
- package/dist/chat/transcript/session-groups.d.ts +21 -0
- package/dist/chat/transcript/session-groups.js +154 -0
- package/dist/chat/transcript/session-line.d.ts +63 -0
- package/dist/chat/transcript/session-line.js +114 -0
- package/dist/dist/{index-Bsp5Ku7r.d.ts → index-BsoTsm0E.d.ts} +17 -17
- package/dist/dist/index.d.ts +1 -1
- package/dist/session/ProjectName.js +1 -1
- package/dist/session/SessionHeader.js +1 -1
- package/dist/session/headless/labels.d.ts +1 -1
- package/dist/session/use-home-projects.d.ts +10 -3
- package/dist/session/use-home-projects.js +40 -4
- package/dist/settings/headless/mcp-requirement.js +4 -3
- package/dist/settings/headless/mcp.d.ts +2 -0
- package/dist/settings/headless/mcp.js +3 -2
- package/dist/settings/headless/search.d.ts +1 -1
- package/dist/settings/index.js +3 -3
- package/dist/settings/sections/mcp/McpSection.js +3 -5
- package/dist/styles.css +43 -0
- package/package.json +2 -2
- package/src/styles/transcript.css +39 -0
|
@@ -10,4 +10,5 @@ import { EMPTY_RAIL, computeRailModel, computeRailModelParts, createTranscriptRa
|
|
|
10
10
|
import { firstRowId, parseBashExitMeta } from "./rows.js";
|
|
11
11
|
import { failureTooltip, markRunFailures } from "./run-failures.js";
|
|
12
12
|
import { computeSelectStops, rowTurnIds, stopForRow } from "./select-stops.js";
|
|
13
|
-
|
|
13
|
+
import { groupSessionEvents, latestPerConversation } from "./session-groups.js";
|
|
14
|
+
export { EMPTY_RAIL, authFailureDetails, batchTaskRuns, batchThinkingRuns, batchToolRuns, clusterByOwner, collapseEvents, computeRailModel, computeRailModelParts, computeSelectStops, createAuthFixes, createTranscriptRailStore, dataRowSelector, dockRunReceipts, dotVariantFor, exchangesMedia, failureTooltip, findLastStreamingRow, firstRowId, foldActionItems, foldExchanges, foldWorkerRows, groupSessionEvents, inheritRowIdentity, isAuthFixed, latestPerConversation, markRunFailures, mediaRefsOf, mediumKey, nestToolCalls, nestedCallVisible, pairToolEvents, parseBashExitMeta, plainPreview, planAuthCard, railWithOutline, refusedSpawn, rowTurnIds, sameRail, stopForRow, toolAction, toolFailed };
|
|
@@ -50,6 +50,7 @@ function* rowsWithin(row) {
|
|
|
50
50
|
for (const r of row.between) yield* rowsWithin(r);
|
|
51
51
|
yield* rowsWithin(row.current);
|
|
52
52
|
}
|
|
53
|
+
if (row.kind === "session-event-group") for (const r of row.rows) yield* rowsWithin(r);
|
|
53
54
|
}
|
|
54
55
|
/**
|
|
55
56
|
* Works out the rail's exchanges from the root clusters a transcript paints.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { ChatAttachment } from "../host.js";
|
|
7
7
|
import { PromptOrigin } from "../prompt-origin.js";
|
|
8
8
|
import { EnvironmentSetupRecord, McpJobView, PromptSegmentRef, ScriptProgress } from "zidane/chat/pure";
|
|
9
|
-
import { SessionEventStatus, StreamEvent, ToolFormatLine } from "zidane/chat";
|
|
9
|
+
import { SessionEventStatus as SessionEventStatus$1, StreamEvent, ToolFormatLine } from "zidane/chat";
|
|
10
10
|
import { SkillGroupUse } from "zidane/skills";
|
|
11
11
|
/**
|
|
12
12
|
* Every row carries the optional ownership metadata from its source
|
|
@@ -344,7 +344,31 @@ export type Row = (Owned & {
|
|
|
344
344
|
* that reply, as in the TUI.
|
|
345
345
|
*/
|
|
346
346
|
between: Row[];
|
|
347
|
+
}) | (Owned & {
|
|
348
|
+
/**
|
|
349
|
+
* Orchestration: updates from other sessions that came in a row, behind
|
|
350
|
+
* one line ({@link groupSessionEvents}). One kind at every level:
|
|
351
|
+
* `updates` is the whole run, `project` one project's updates when the
|
|
352
|
+
* run spans several, `worktree` the updates from one worktree of a
|
|
353
|
+
* project, `conversation` one session's updates when it sent two or
|
|
354
|
+
* more. `rows` is what the group paints, in order: sections, conversation
|
|
355
|
+
* groups and the `session-event` rows of sessions that sent one update.
|
|
356
|
+
*/
|
|
357
|
+
kind: 'session-event-group';
|
|
358
|
+
id: string;
|
|
359
|
+
level: SessionEventGroupLevel;
|
|
360
|
+
rows: Row[];
|
|
361
|
+
/** Every update in the group, in transcript order. */
|
|
362
|
+
events: SessionEventRowModel[];
|
|
363
|
+
/** The section's name: the project's folder (`project`; `undefined` for updates with no folder), the worktree's branch (`worktree`). */
|
|
364
|
+
place?: string;
|
|
347
365
|
});
|
|
366
|
+
/** How far in a {@link Row} `session-event-group` sits: the run of updates, one project's, one conversation's. */
|
|
367
|
+
export type SessionEventGroupLevel = 'updates' | 'project' | 'worktree' | 'conversation';
|
|
368
|
+
/** A worker's report row: what `SessionEventRow` paints. */
|
|
369
|
+
export type SessionEventRowModel = Extract<Row, {
|
|
370
|
+
kind: 'session-event';
|
|
371
|
+
}>;
|
|
348
372
|
/** A background task that ended: its id, command, outcome, duration and log file. */
|
|
349
373
|
export type TaskInfo = NonNullable<StreamEvent['task']>;
|
|
350
374
|
/** Counts shown on the summary line of a folded exchange. */
|
|
@@ -414,4 +438,4 @@ export interface BashExitMeta {
|
|
|
414
438
|
*/
|
|
415
439
|
export declare function parseBashExitMeta(text: string): BashExitMeta | null;
|
|
416
440
|
/** The status dot a row shows, chosen by {@link dotVariantFor}: a row kind, a tool state, or a session event status. */
|
|
417
|
-
export type DotVariant = 'user' | 'thinking' | 'text' | 'tool-running' | 'tool-ok' | 'tool-err' | 'info' | 'note' | 'error' | 'stopped' | 'spawn-start' | 'spawn-end' | 'compact' | 'messages' | `session-${SessionEventStatus}`;
|
|
441
|
+
export type DotVariant = 'user' | 'thinking' | 'text' | 'tool-running' | 'tool-ok' | 'tool-err' | 'info' | 'note' | 'error' | 'stopped' | 'spawn-start' | 'spawn-end' | 'compact' | 'messages' | 'session-group' | 'session-project' | 'session-worktree' | `session-${SessionEventStatus$1}`;
|
|
@@ -22,6 +22,7 @@ function rowTurnIds(row) {
|
|
|
22
22
|
for (const r of row.between) ids.push(...rowTurnIds(r));
|
|
23
23
|
ids.push(...rowTurnIds(row.current));
|
|
24
24
|
}
|
|
25
|
+
if (row.kind === "session-event-group") for (const r of row.events) ids.push(...rowTurnIds(r));
|
|
25
26
|
return ids;
|
|
26
27
|
}
|
|
27
28
|
const BOUNDARY = /* @__PURE__ */ new Set([
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Orchestration: updates from other sessions (`session-event` rows) that
|
|
3
|
+
* come in a row fold behind one group, like an exchange's messages. A busy
|
|
4
|
+
* Main hears a dozen at a time, and one line each buried its own replies.
|
|
5
|
+
*
|
|
6
|
+
* - Two or more top-level updates next to each other make a group. Any other
|
|
7
|
+
* row between them (a reply of the Main, a prompt) ends it, so the Main's
|
|
8
|
+
* answers stay where they happened.
|
|
9
|
+
* - A run of one session's updates is that conversation's group.
|
|
10
|
+
* - Inside, a group that spans several projects holds one section per
|
|
11
|
+
* project (a project's Main hears only its own, so it never has these).
|
|
12
|
+
* In a project, the updates from a worktree gather in a section per
|
|
13
|
+
* worktree; the ones from the project's checkout sit in the project as
|
|
14
|
+
* they are. In each, a session that sent two or more updates gets its own
|
|
15
|
+
* group, and a session that sent one stays its update row. Order is first
|
|
16
|
+
* appearance. Where a session ran is `sessionEventPlace`.
|
|
17
|
+
*
|
|
18
|
+
* A group never spans an exchange start (a prompt ends it), so the incremental
|
|
19
|
+
* deriver's parts never cut one. Each group keeps its id and its object while
|
|
20
|
+
* its updates do: a new update re-renders only the groups it joins.
|
|
21
|
+
*/
|
|
22
|
+
import { Row, SessionEventRowModel } from "./rows.js";
|
|
23
|
+
/**
|
|
24
|
+
* Folds every run of two or more top-level updates into one
|
|
25
|
+
* `session-event-group` row, in place of the run.
|
|
26
|
+
*
|
|
27
|
+
* @param rows - The transcript rows, oldest first.
|
|
28
|
+
*/
|
|
29
|
+
export declare function groupSessionEvents(rows: readonly Row[]): Row[];
|
|
30
|
+
/**
|
|
31
|
+
* The newest update of each conversation in a group: what the session's
|
|
32
|
+
* status is now. The header counts these by status.
|
|
33
|
+
*
|
|
34
|
+
* @param events - The group's updates, in transcript order.
|
|
35
|
+
*/
|
|
36
|
+
export declare function latestPerConversation(events: readonly SessionEventRowModel[]): SessionEventRowModel[];
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { sameMembers } from "./batch.js";
|
|
2
|
+
import { noteTranscriptPass, sessionEventPlace } from "zidane/chat/pure";
|
|
3
|
+
// src/chat/headless/transcript/session-groups.ts
|
|
4
|
+
/** The fewest updates in a row that make a group. */
|
|
5
|
+
const MIN_GROUP = 2;
|
|
6
|
+
/** Groups by their first update, then by id: the same update leads a run, its project and its conversation. */
|
|
7
|
+
const GROUP_CACHE = /* @__PURE__ */ new WeakMap();
|
|
8
|
+
function groupable(row) {
|
|
9
|
+
return row.kind === "session-event" && row.sessionEvent !== void 0 && !row.childId && !row.depth;
|
|
10
|
+
}
|
|
11
|
+
/** `items` in buckets by `key`, in the order each key first appears. */
|
|
12
|
+
function bucket(items, key) {
|
|
13
|
+
const out = /* @__PURE__ */ new Map();
|
|
14
|
+
for (const item of items) {
|
|
15
|
+
const k = key(item);
|
|
16
|
+
const list = out.get(k);
|
|
17
|
+
if (list) list.push(item);
|
|
18
|
+
else out.set(k, [item]);
|
|
19
|
+
}
|
|
20
|
+
return [...out.values()];
|
|
21
|
+
}
|
|
22
|
+
const sessionOf = (row) => row.sessionEvent.sessionId;
|
|
23
|
+
const projectOf = (row) => sessionEventPlace(row.sessionEvent).project ?? "";
|
|
24
|
+
const worktreeOf = (row) => sessionEventPlace(row.sessionEvent).worktree ?? "";
|
|
25
|
+
/** A session's updates: its own group from two of them, else its one row. */
|
|
26
|
+
function conversations(events, parentId) {
|
|
27
|
+
return bucket(events, sessionOf).map((list) => list.length >= MIN_GROUP ? group(list, `${parentId}/c:${sessionOf(list[0])}`, "conversation") : list[0]);
|
|
28
|
+
}
|
|
29
|
+
/** A project's updates: a section per worktree, the checkout's as they are. */
|
|
30
|
+
function places(events, parentId) {
|
|
31
|
+
return bucket(events, worktreeOf).flatMap((list) => {
|
|
32
|
+
const worktree = worktreeOf(list[0]);
|
|
33
|
+
return worktree ? [group(list, `${parentId}/w:${worktree}`, "worktree", worktree)] : conversations(list, parentId);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function group(events, id, level, place) {
|
|
37
|
+
const first = events[0];
|
|
38
|
+
const hit = GROUP_CACHE.get(first)?.get(id);
|
|
39
|
+
if (hit && sameMembers(hit.events, events)) return hit;
|
|
40
|
+
const projects = level === "updates" ? bucket(events, projectOf) : [];
|
|
41
|
+
const rows = level === "conversation" ? events : level === "worktree" ? conversations(events, id) : projects.length > 1 ? projects.map((list) => group(list, `${id}/p:${projectOf(list[0])}`, "project", projectOf(list[0]) || void 0)) : places(events, id);
|
|
42
|
+
const row = {
|
|
43
|
+
...first.turnId ? { turnId: first.turnId } : {},
|
|
44
|
+
kind: "session-event-group",
|
|
45
|
+
id,
|
|
46
|
+
level,
|
|
47
|
+
rows,
|
|
48
|
+
events,
|
|
49
|
+
...place !== void 0 ? { place } : {}
|
|
50
|
+
};
|
|
51
|
+
let byId = GROUP_CACHE.get(first);
|
|
52
|
+
if (!byId) {
|
|
53
|
+
byId = /* @__PURE__ */ new Map();
|
|
54
|
+
GROUP_CACHE.set(first, byId);
|
|
55
|
+
}
|
|
56
|
+
byId.set(id, row);
|
|
57
|
+
return row;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Folds every run of two or more top-level updates into one
|
|
61
|
+
* `session-event-group` row, in place of the run.
|
|
62
|
+
*
|
|
63
|
+
* @param rows - The transcript rows, oldest first.
|
|
64
|
+
*/
|
|
65
|
+
function groupSessionEvents(rows) {
|
|
66
|
+
noteTranscriptPass("group-session-events", rows.length);
|
|
67
|
+
const out = [];
|
|
68
|
+
let run = [];
|
|
69
|
+
const flush = () => {
|
|
70
|
+
if (run.length >= MIN_GROUP) out.push(group(run, `seg-${run[0].id}`, new Set(run.map(sessionOf)).size === 1 ? "conversation" : "updates"));
|
|
71
|
+
else out.push(...run);
|
|
72
|
+
run = [];
|
|
73
|
+
};
|
|
74
|
+
for (const row of rows) {
|
|
75
|
+
if (groupable(row)) {
|
|
76
|
+
run.push(row);
|
|
77
|
+
continue;
|
|
78
|
+
}
|
|
79
|
+
flush();
|
|
80
|
+
out.push(row);
|
|
81
|
+
}
|
|
82
|
+
flush();
|
|
83
|
+
return out;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* The newest update of each conversation in a group: what the session's
|
|
87
|
+
* status is now. The header counts these by status.
|
|
88
|
+
*
|
|
89
|
+
* @param events - The group's updates, in transcript order.
|
|
90
|
+
*/
|
|
91
|
+
function latestPerConversation(events) {
|
|
92
|
+
return bucket(events, sessionOf).map((list) => list.at(-1));
|
|
93
|
+
}
|
|
94
|
+
export { groupSessionEvents, latestPerConversation };
|
package/dist/chat/index.d.ts
CHANGED
|
@@ -110,7 +110,7 @@ import { TRANSCRIPT_OPTION_KEYS, useTranscriptOptions } from "./transcript-optio
|
|
|
110
110
|
import { TranscriptAccounts, TranscriptActions, TranscriptActionsProvider, TranscriptActionsProviderProps, attachmentSrcOf, toolMediaSrcOf, useModelName, useTranscriptActions } from "./transcript/actions.js";
|
|
111
111
|
import { AnsiSpans, AnsiSpansProps, AnsiText, AnsiTextProps } from "./transcript/AnsiText.js";
|
|
112
112
|
import { AuthFailureCard, AuthFailureCardProps } from "./transcript/AuthFailureCard.js";
|
|
113
|
-
import { BadgeEffectContext, BadgeMenuBrowser, BadgeMenuComposer, BadgeMenuProvider, BadgeMenuProviderProps, BadgeMenuSystem, OpenBadgeMenu, useBadgeMenu } from "./transcript/BadgeMenu.js";
|
|
113
|
+
import { BadgeEffectContext, BadgeMenuBrowser, BadgeMenuComposer, BadgeMenuOpenAction, BadgeMenuProvider, BadgeMenuProviderProps, BadgeMenuSystem, OpenBadgeMenu, useBadgeMenu } from "./transcript/BadgeMenu.js";
|
|
114
114
|
import { BADGE_GLYPH, FileBadgeIcon, FileBadgeIconProps, LinkBadge, LinkBadgeProps, LinkIcon, LinkIconProps, fileBadgeName, fileBadgeSpec, linkGlyph, siteIconValue } from "./transcript/badges.js";
|
|
115
115
|
import { CardMarkdown, CardMarkdownProps } from "./transcript/CardMarkdown.js";
|
|
116
116
|
import { useCommand, useCommitInfo, useReferencedSession, useSkill, useTokenSession } from "./transcript/chip-details.js";
|
|
@@ -121,7 +121,7 @@ import { CodemodeScript, CodemodeScriptProps } from "./transcript/CodemodeScript
|
|
|
121
121
|
import { DiffLines, DiffLinesProps } from "./transcript/DiffLines.js";
|
|
122
122
|
import { AUTO_FILL_PAGES, FILL_MIN_PROMPTS, LoadEarlierRow, LoadEarlierRowProps, useFillViewportScrollback } from "./transcript/EarlierHistory.js";
|
|
123
123
|
import { EditDiffBlock, EditDiffBlockProps } from "./transcript/EditDiffBlock.js";
|
|
124
|
-
import { Caret, CaretProps, Dot, DotProps, FailedMark, FailedMarkProps, GUTTER_STEP_PX, LineState, RowFrame, RowFrameProps, RowIconsContext, lineStateOf, useRowIcons } from "./transcript/frame.js";
|
|
124
|
+
import { Caret, CaretProps, Dot, DotProps, FailedMark, FailedMarkProps, GUTTER_STEP_PX, LineState, RowFrame, RowFrameProps, RowIconsContext, SESSION_EVENT_DOT, lineStateOf, useRowIcons } from "./transcript/frame.js";
|
|
125
125
|
import { EnvironmentSetupDetails, EnvironmentSetupDetailsProps, EnvironmentSetupRow, EnvironmentSetupRowProps } from "./transcript/environment-setup.js";
|
|
126
126
|
import { ParsedRef, RefMatch, classifyInlineRef, findRefs, numberRef, parseRefUrl, refHref, remarkRefs } from "./transcript/remark-refs.js";
|
|
127
127
|
import { InlineCode, InlineCodeProps, RefChip, RefChipProps } from "./transcript/FileChip.js";
|
|
@@ -150,6 +150,7 @@ import { CompactSummaryRow, CompactSummaryRowProps, RunReceiptInline, RunReceipt
|
|
|
150
150
|
import { SelectCursor, SelectCursorProps } from "./transcript/SelectCursor.js";
|
|
151
151
|
import { SelectTurnExit, SelectTurnHintKeys, SelectTurnHintKeysProps } from "./transcript/SelectTurnHint.js";
|
|
152
152
|
import { SelectTurnCommands, SelectTurnProvider, SelectTurnProviderProps, SelectTurnState, SelectTurnValue, useSelectTurn } from "./transcript/SelectTurnProvider.js";
|
|
153
|
+
import { SessionEventGroupRow, SessionEventGroupRowProps } from "./transcript/session-groups.js";
|
|
153
154
|
import { RunnableCodeBlockProps, ShellBlockScope, useShellBlockScope } from "./transcript/shell-block-scope.js";
|
|
154
155
|
import { RunnableCodeBlock, ShellBlockProvider, ShellBlockProviderProps } from "./transcript/shell-block.js";
|
|
155
156
|
import { useSiteIcon } from "./transcript/site-icons.js";
|
|
@@ -179,4 +180,4 @@ import { useWheelHoverPause } from "./transcript/useWheelHoverPause.js";
|
|
|
179
180
|
import { MarkdownViews, MarkdownViewsProps } from "./transcript/view-scope.js";
|
|
180
181
|
import "./transcript/index.js";
|
|
181
182
|
import { useChatLabels } from "./useChatLabels.js";
|
|
182
|
-
export { ATTACHMENT_NOTICE_MS, AUTO_FILL_PAGES, AgentPicker, AgentPickerDialog, AgentPickerDialogProps, AgentPickerProps, AgentProfile, AnsiSpans, type AnsiSpansProps, AnsiText, type AnsiTextProps, AnsweredQuestions, AnsweredQuestionsProps, ApprovalDock, ApprovalDockProps, ArchivedBanner, ArchivedBannerProps, AttachmentIcon, AttachmentIconProps, AttachmentLabelFn, AttachmentLabelParts, AttachmentNotices, AttachmentNoticesProps, AttachmentRefusedError, AttachmentRow, AttachmentRowProps, AttachmentTextState, AttachmentTiles, AttachmentTilesProps, AuthFailureCard, AuthFailureCardProps, BADGE_GLYPH, BadgeEffectContext, BadgeMenuBrowser, BadgeMenuComposer, BadgeMenuProvider, BadgeMenuProviderProps, BadgeMenuSystem, CHIP_CARD_WIDTH, CODE_PANEL, COMMAND_DETAIL_LINE, CardMarkdown, CardMarkdownProps, Caret, CaretProps, ChatProvider, ChatProviderProps, ChipCard, ChipCardProps, ChipHover, ChipHoverProps, ChipOpener, CodeBlockSlotProps, CodemodeScript, type CodemodeScriptProps, CommandCard, CommandCardProps, CommandDetailRow, CommandDetailRowProps, CommandNoteRow, CommandNoteRowProps, CommandScope, CommandScopeContext, CommitCard, CommitCardProps, CompactSummaryRow, CompactSummaryRowProps, Composer, type ComposerAttachment, ComposerBadge, ComposerBadgeTone, ComposerBadges, ComposerBadgesProps, ComposerControls, ComposerControlsProps, ComposerDefaults, ComposerDock, ComposerDockProps, ComposerDraft, ComposerHandle, ComposerHostProvider, ComposerHostProviderProps, ComposerProps, ComposerResult, ComposerRetry, ComposerSearch, ComposerStatusPills, ComposerStatusPillsProps, ComposerSubmit, ComposerTarget, ContextBreakdown, type ContextBreakdownData, ContextBreakdownProps, ContextBreakdownShape, ContextCost, ContextGauge, ContextOrb, ContextOrbProps, ContextUsage, ConversationBadges, ConversationBadgesProps, Cursor, CvRow, CvRowProps, CycleAgentOptions, DEFAULT_BADGE_ORDER, DEFAULT_CONTEXT_BREAKDOWN_SHAPE, DEFAULT_TRANSCRIPT_OPTIONS, DEFAULT_TRANSCRIPT_RENDERERS, DaemonOrb, DaemonOrbButton, DaemonOrbButtonProps, DaemonOrbProps, DefaultInlineText, DefaultInlineTextProps, DefaultMarkdown, DefaultMarkdownProps, DefaultPrompt, DefaultPromptProps, DefaultSessionTitle, DefaultSessionTitleProps, DiffLines, DiffLinesProps, DockCard, DockCardProps, DockRow, DockRowProps, Dot, DotProps, DraftPickers, DraftPickersProps, DraftServer, DraftTarget, DraftTargetOptions, DraftTargetRequest, EFFORT_LEVELS, EditDiffBlock, EditDiffBlockProps, EffortLevel, EffortPickerDialog, EffortPickerDialogProps, ElicitationCard, ElicitationCardProps, EnvironmentSetupDetails, EnvironmentSetupDetailsProps, EnvironmentSetupRow, EnvironmentSetupRowProps, ErrorRow, ErrorRowProps, ExchangeFoldRow, ExchangeFoldRowProps, FILL_MIN_PROMPTS, FailedMark, FailedMarkProps, FailureRow, FailureRowProps, FileBadgeIcon, FileBadgeIconProps, FoldHeader, FoldHeaderProps, ForcedRows, GUTTER_STEP_PX, GroupGlyph, GroupGlyphProps, HostAgentPicker, HostAgentPickerProps, HostBadge, HostBadgeProps, HostComposer, HostComposerProps, HostContextOrb, HostContextOrbProps, HostInteractions, HostInteractionsProps, HostModelChainList, HostModelChainListProps, HostModelImages, HostModelOptionsPicker, HostModelOptionsPickerProps, HostModelPicker, HostModelPickerProps, HostPicker, HostPickerProps, HostStatusDot, HostStatusDotProps, HostTranscript, HostTranscriptProps, HostTurnMenuOptions, INLINE_CODE_CLASS, ImageGenerationBlock, ImageGenerationBlockProps, ImageModelList, ImageModelListProps, type ImageModelRow, InboxPanel, InboxPanelProps, InfoRow, InfoRowProps, InlineChipText, InlineChipTextProps, InlineCode, InlineCodeProps, InlineTextSlotProps, InteractionCard, InteractionCardProps, InteractionTool, InteractionToolBody, InteractionToolBodyProps, LazyRow, LazyRowProps, LineState, LinkBadge, LinkBadgeProps, LinkIcon, LinkIconProps, LiveOutput, type LiveOutputProps, LiveScriptsContext, LoadEarlierRow, LoadEarlierRowProps, LoadFullOutputButton, LoadFullOutputButtonProps, MAX_FILE_ATTACHMENT_BYTES, MAX_IMAGE_ATTACHMENT_BYTES, MAX_MATCHES, MAX_MEDIA_ATTACHMENT_BYTES, MAX_TEXT_PREVIEW_BYTES, Markdown, MarkdownContext, MarkdownContextValue, MarkdownDiagrams, MarkdownDiagramsProps, MarkdownImageProps, MarkdownLinkProps, MarkdownProps, MarkdownSlotProps, MarkdownViews, type MarkdownViewsProps, MentionItem, MermaidDiagram, type MermaidDiagramProps, MessageGroupRow, MessageGroupRowProps, type ModelCatalogRow, ModelCatalogState, ModelChainFooter, ModelChainFooterProps, ModelChainHeader, ModelChainHeaderProps, ModelChainImages, ModelChainList, ModelChainListProps, ModelChainPopover, ModelChainPopoverProps, ModelChainRow, ModelChainRowProps, ModelChainRows, ModelChainRowsProps, ModelChainTooltip, ModelChainTooltipProps, ModelChoice, ModelFlag, ModelFlagProps, ModelGroupHeader, ModelGroupHeaderProps, ModelKind, ModelMeta, ModelMetaProps, ModelOption, ModelOptionsPicker, ModelOptionsPickerProps, type ModelPickRef, ModelPicker, ModelPickerDialog, ModelPickerDialogProps, ModelPickerFrame, ModelPickerFrameProps, ModelPickerProps, ModelProviderChip, ModelProviderChipProps, ModelProviderPills, ModelProviderPillsProps, ModelReasoning, ModelReasoningProps, ModelVerdict, ModelVerdictProps, ModelWindow, ModelWindowProps, NO_COMPOSER_HINT, NestedToolCalls, NestedToolCallsProps, NewChatsDefault, NewSessionDefaults, NewSessionModelSource, NoticeRow, NoticeRowProps, OPTION_ICON, OpenBadgeMenu, OpenSessionContext, OrbState, OrchestratorBadge, OrchestratorBadgeProps, OrderedBadge, PASTE_FOLD_CHAR_THRESHOLD, PASTE_FOLD_LINE_THRESHOLD, ParsedRef, ParsedReferenceUrl, PdfPreview, PdfPreviewProps, PickerGroup, PickerPill, PickerPillProps, PlacePicker, PlacePickerHosts, PlacePickerProps, PlanBody, PlanBodyProps, PlanCard, PlanCardProps, ProjectMenu, ProjectMenuProps, PromptEcho, PromptEchoProps, PromptHistoryProvider, PromptHistoryProviderProps, PromptHistoryValue, PromptLines, PromptLinesProps, PromptSlotProps, ProseMarkdown, ProseMarkdownProps, QuestionField, QuestionFieldProps, QuestionForm, QuestionFormProps, ReadFileBlock, ReadFileBlockProps, RefChip, RefChipProps, RefMatch, ReferenceChip, ReferenceChipProps, ReferenceText, ReferenceTextProps, RepairedRow, RepairedRowProps, RetryPill, RetryPillProps, type RowActionItem, RowContext, RowFrame, RowFrameProps, RowIconsContext, RowPlace, RunEstimateChip, RunEstimateChipProps, RunEstimatesProvider, RunEstimatesProviderProps, RunReceiptInline, RunReceiptInlineProps, RunStatusChip, RunStatusChipProps, RunSummaryRow, RunSummaryRowProps, RunnableCodeBlock, type RunnableCodeBlockProps, ScopeToggle, ScopeToggleProps, ScrollPosition, SearchHighlightStyle, SecretInput, SecretInputProps, SelectCursor, SelectCursorProps, SelectTurnCommands, SelectTurnExit, SelectTurnHint, SelectTurnHintKeys, SelectTurnHintKeysProps, type SelectTurnHintProps, SelectTurnKeysOptions, SelectTurnProvider, SelectTurnProviderProps, SelectTurnState, SelectTurnValue, SendButton, SendButtonProps, SendPromptControls, SendPromptOptions, SendRoute, ServerScopeToggle, ServerScopeToggleProps, SessionActivityFilter, SessionArchiveFilter, SessionCard, SessionCardProps, SessionDotState, SessionEventRow, SessionEventRowProps, SessionFilterAction, SessionFilterAxis, SessionFilterExtra, SessionFilterMenu, SessionFilterMenuProps, SessionFilterPlacement, SessionGroupHeader, SessionGroupHeaderProps, SessionHostHeader, SessionHostHeaderProps, SessionList, SessionListProps, SessionListRow, SessionListRowProps, SessionMeters, SessionMetersTarget, SessionProjectAxis, SessionRow, SessionRowBadge, SessionRowList, SessionRowListProps, SessionRowProps, SessionRowState, SessionStreamsProvider, SessionStreamsProviderProps, SessionTitleSlotProps, SessionView, SetupChangedRow, SetupChangedRowProps, ShellBlockProvider, type ShellBlockProviderProps, type ShellBlockScope, ShowMoreRow, ShowMoreRowProps, SkillCard, SkillCardProps, SkillGroupCard, SkillGroupCardProps, SlotEntry, SpawnEndRow, SpawnEndRowProps, SpawnStartRow, SpawnStartRowProps, StatusDot, StatusDotProps, StatusOrb, StatusOrbProps, StickToBottomOptions, SubagentBlock, SubagentBlockProps, SuggestionKind, SuggestionPopup, SuggestionPopupProps, SuggestionSource, SuggestionState, THINKING_LEVELS, TRANSCRIPT_OPTION_KEYS, TRIGGER, TaskBatchRow, TaskBatchRowProps, TaskRow, TaskRowProps, TextPreview, TextPreviewProps, TextPreviewSlotProps, TextRow, TextRowProps, ThinkingBatchRow, ThinkingBatchRowProps, ThinkingLevel, ThinkingRow, ThinkingRowProps, Throbber, ThrobberProps, ThrobberVariant, ToolBatchRow, ToolBatchRowProps, ToolBodySlotProps, ToolDetails, ToolDetailsProps, ToolGlyph, ToolGlyphProps, ToolInput, ToolInputProps, ToolMedia, type ToolMediaItem, ToolMediaProps, ToolRow, ToolRowProps, ToolTiming, ToolTimingProps, Transcript, TranscriptAccounts, TranscriptActions, TranscriptActionsProvider, TranscriptActionsProviderProps, TranscriptFind, TranscriptFindKeyOptions, TranscriptFindOptions, TranscriptFindTarget, TranscriptOptions, TranscriptProps, TranscriptRail, type TranscriptRailProps, TranscriptRailProvider, type TranscriptRailProviderProps, TranscriptRenderers, TranscriptRenderersProvider, type TranscriptRenderersProviderProps, TranscriptRow, TranscriptRowProps, TranscriptRowSlot, TranscriptRowSlotProps, TranscriptRows, TranscriptRowsInput, TranscriptScrollInputs, TranscriptSearch, TranscriptSearchOptions, TranscriptSearchProps, TranscriptSearchState, TranscriptSelection, TranscriptSettling, TranscriptSource, TranscriptTurnMenu, TurnCommands, TurnCommandsOptions, TurnMenuActions, TurnMenuTarget, UserBashRow, UserBashRowProps, UserPromptAttachments, UserPromptAttachmentsProps, UserPromptRow, UserPromptRowProps, WORK_HOLD_MS, WORK_SHOW_MS, WorkerDetails, WorkerDetailsProps, __resetComposerScopesForTests, attachmentErrorText, attachmentLightboxItems, attachmentSrcOf, catalogFromProviders, claimComposerFocus, classifyInlineRef, colorForCategory, compactWindow, contextBreakdownShape, contextGauge, copyPromptLines, createTurnCommands, decodeDataUrlAsText, defaultAttachmentLabel, defaultAttachmentTileLabel, detectLanguage, dotStateFor, drawsImageGeneration, effectiveImageModel, fileBadgeName, fileBadgeSpec, findModel, findRefs, focusComposer, focusComposerWhenReady, formatBytes, groupKeyOf, hasComposerFor, hasFocusedComposer, hasInteractionBody, holdForceMountRows, imageCatalogRows, imageModelKey, imageRequestsOf, isAudioAttachment, isCaretAtEnd, isCaretAtStart, isFocusedComposer, isHiddenRow, isPdfAttachment, isRequired, isTextLike, isVideoAttachment, lineStateOf, lineupKeyOf, linkGlyph, mergeBadgeOrder, modelKey, modelLineup, modelNameOf, modelSearchScore, nextProfileId, numberRef, offCatalogRows, onComposerAttachment, onComposerDraft, onComposerFocus, onComposerInsert, onComposerMention, onComposerPrompt, optionTitle, orbState, orderComposerBadges, parseRefUrl, parseReferenceUrl, parseToolMedia, pastedTextFilename, pickRefOf, pickerGroups, plainTextToDocJson, providerAccountLabel, providerColor, providerHue, providerTint, pushComposerAttachment, pushComposerDraft, pushComposerInsert, pushComposerMention, pushComposerPrompt, readAttachment, refHref, refKey, referenceUrl, registerComposerScope, remarkReferences, remarkRefs, resolveChain, resolvePick, resourceErrorText, revealRow, rowKey, savedPaths, seedDefaults, shouldFoldPasteToAttachment, siteIconValue, suggestionExtension, takePendingComposerFocus, textAttachment, toolMediaSrcOf, turnViewsOf, unresolveChain, useAgentProfiles, useAllInteractions, useAttachmentIngest, useAttachmentNotices, useAttachmentRemoval, useAttachmentText, useBackgroundMount, useBadgeMenu, useCacheHints, useCaptureRunState, useChatHost, useChatLabels, useChipResolution, useClearDraftKnobs, useCommand, useCommitInfo, useComposerFor, useComposerHost, useComposerLabels, useComposerModelName, useComposerProviderLabel, useComposerSearch, useCycleAgent, useDraftKnobs, useDraftTarget, useFillViewportScrollback, useForceMountRows, useForcedRows, useFullOutput, useFullToolCall, useHasFocusedComposer, useHasSessionEvents, useHostResource, useHostSessions, useHostTurnMenu, useInteractionHead, useIsSessionHydrated, useJoinedRunProgress, useModelCatalog, useModelKnobs, useModelName, useModelPickerPrefs, useModelPickerPrefsStore, useNewChatsDefault, useNewSessionDefaults, useOptionalChatHost, useOptionalSessionStreamActions, usePeekRunSeq, usePeekSessionEvents, usePeekSessionRunning, usePendingInteractions, usePromptHistory, useProviderReadyPoll, useRailOutline, useReferenceMatches, useReferenceProviders, useReferenceView, useReferencedSession, useRememberedKnobs, useResolveChipNow, useRowIcons, useRunAccruedCost, useRunElapsedSec, useRunEstimate, useRunMeterValue, useRunOutputTokens, useRunProgress, useRunStartedAt, useSelectStops, useSelectTurn, useSelectTurnKeys, useSendPrompt, useSessionContextStatus, useSessionEdits, useSessionEvents, useSessionEventsSelector, useSessionFallbackModel, useSessionMeters, useSessionPage, useSessionRetry, useSessionRunning, useSessionStreamActions, useSessionStreams, useSessionSystemMd, useSessionTranscript, useSettledReveal, useShellBlockScope, useSiteIcon, useSkill, useStickToBottom, useSustainedWork, useTokenSession, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptOptions, useTranscriptRailStore, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause, withPrimary, workShowDelay };
|
|
183
|
+
export { ATTACHMENT_NOTICE_MS, AUTO_FILL_PAGES, AgentPicker, AgentPickerDialog, AgentPickerDialogProps, AgentPickerProps, AgentProfile, AnsiSpans, type AnsiSpansProps, AnsiText, type AnsiTextProps, AnsweredQuestions, AnsweredQuestionsProps, ApprovalDock, ApprovalDockProps, ArchivedBanner, ArchivedBannerProps, AttachmentIcon, AttachmentIconProps, AttachmentLabelFn, AttachmentLabelParts, AttachmentNotices, AttachmentNoticesProps, AttachmentRefusedError, AttachmentRow, AttachmentRowProps, AttachmentTextState, AttachmentTiles, AttachmentTilesProps, AuthFailureCard, AuthFailureCardProps, BADGE_GLYPH, BadgeEffectContext, BadgeMenuBrowser, BadgeMenuComposer, BadgeMenuOpenAction, BadgeMenuProvider, BadgeMenuProviderProps, BadgeMenuSystem, CHIP_CARD_WIDTH, CODE_PANEL, COMMAND_DETAIL_LINE, CardMarkdown, CardMarkdownProps, Caret, CaretProps, ChatProvider, ChatProviderProps, ChipCard, ChipCardProps, ChipHover, ChipHoverProps, ChipOpener, CodeBlockSlotProps, CodemodeScript, type CodemodeScriptProps, CommandCard, CommandCardProps, CommandDetailRow, CommandDetailRowProps, CommandNoteRow, CommandNoteRowProps, CommandScope, CommandScopeContext, CommitCard, CommitCardProps, CompactSummaryRow, CompactSummaryRowProps, Composer, type ComposerAttachment, ComposerBadge, ComposerBadgeTone, ComposerBadges, ComposerBadgesProps, ComposerControls, ComposerControlsProps, ComposerDefaults, ComposerDock, ComposerDockProps, ComposerDraft, ComposerHandle, ComposerHostProvider, ComposerHostProviderProps, ComposerProps, ComposerResult, ComposerRetry, ComposerSearch, ComposerStatusPills, ComposerStatusPillsProps, ComposerSubmit, ComposerTarget, ContextBreakdown, type ContextBreakdownData, ContextBreakdownProps, ContextBreakdownShape, ContextCost, ContextGauge, ContextOrb, ContextOrbProps, ContextUsage, ConversationBadges, ConversationBadgesProps, Cursor, CvRow, CvRowProps, CycleAgentOptions, DEFAULT_BADGE_ORDER, DEFAULT_CONTEXT_BREAKDOWN_SHAPE, DEFAULT_TRANSCRIPT_OPTIONS, DEFAULT_TRANSCRIPT_RENDERERS, DaemonOrb, DaemonOrbButton, DaemonOrbButtonProps, DaemonOrbProps, DefaultInlineText, DefaultInlineTextProps, DefaultMarkdown, DefaultMarkdownProps, DefaultPrompt, DefaultPromptProps, DefaultSessionTitle, DefaultSessionTitleProps, DiffLines, DiffLinesProps, DockCard, DockCardProps, DockRow, DockRowProps, Dot, DotProps, DraftPickers, DraftPickersProps, DraftServer, DraftTarget, DraftTargetOptions, DraftTargetRequest, EFFORT_LEVELS, EditDiffBlock, EditDiffBlockProps, EffortLevel, EffortPickerDialog, EffortPickerDialogProps, ElicitationCard, ElicitationCardProps, EnvironmentSetupDetails, EnvironmentSetupDetailsProps, EnvironmentSetupRow, EnvironmentSetupRowProps, ErrorRow, ErrorRowProps, ExchangeFoldRow, ExchangeFoldRowProps, FILL_MIN_PROMPTS, FailedMark, FailedMarkProps, FailureRow, FailureRowProps, FileBadgeIcon, FileBadgeIconProps, FoldHeader, FoldHeaderProps, ForcedRows, GUTTER_STEP_PX, GroupGlyph, GroupGlyphProps, HostAgentPicker, HostAgentPickerProps, HostBadge, HostBadgeProps, HostComposer, HostComposerProps, HostContextOrb, HostContextOrbProps, HostInteractions, HostInteractionsProps, HostModelChainList, HostModelChainListProps, HostModelImages, HostModelOptionsPicker, HostModelOptionsPickerProps, HostModelPicker, HostModelPickerProps, HostPicker, HostPickerProps, HostStatusDot, HostStatusDotProps, HostTranscript, HostTranscriptProps, HostTurnMenuOptions, INLINE_CODE_CLASS, ImageGenerationBlock, ImageGenerationBlockProps, ImageModelList, ImageModelListProps, type ImageModelRow, InboxPanel, InboxPanelProps, InfoRow, InfoRowProps, InlineChipText, InlineChipTextProps, InlineCode, InlineCodeProps, InlineTextSlotProps, InteractionCard, InteractionCardProps, InteractionTool, InteractionToolBody, InteractionToolBodyProps, LazyRow, LazyRowProps, LineState, LinkBadge, LinkBadgeProps, LinkIcon, LinkIconProps, LiveOutput, type LiveOutputProps, LiveScriptsContext, LoadEarlierRow, LoadEarlierRowProps, LoadFullOutputButton, LoadFullOutputButtonProps, MAX_FILE_ATTACHMENT_BYTES, MAX_IMAGE_ATTACHMENT_BYTES, MAX_MATCHES, MAX_MEDIA_ATTACHMENT_BYTES, MAX_TEXT_PREVIEW_BYTES, Markdown, MarkdownContext, MarkdownContextValue, MarkdownDiagrams, MarkdownDiagramsProps, MarkdownImageProps, MarkdownLinkProps, MarkdownProps, MarkdownSlotProps, MarkdownViews, type MarkdownViewsProps, MentionItem, MermaidDiagram, type MermaidDiagramProps, MessageGroupRow, MessageGroupRowProps, type ModelCatalogRow, ModelCatalogState, ModelChainFooter, ModelChainFooterProps, ModelChainHeader, ModelChainHeaderProps, ModelChainImages, ModelChainList, ModelChainListProps, ModelChainPopover, ModelChainPopoverProps, ModelChainRow, ModelChainRowProps, ModelChainRows, ModelChainRowsProps, ModelChainTooltip, ModelChainTooltipProps, ModelChoice, ModelFlag, ModelFlagProps, ModelGroupHeader, ModelGroupHeaderProps, ModelKind, ModelMeta, ModelMetaProps, ModelOption, ModelOptionsPicker, ModelOptionsPickerProps, type ModelPickRef, ModelPicker, ModelPickerDialog, ModelPickerDialogProps, ModelPickerFrame, ModelPickerFrameProps, ModelPickerProps, ModelProviderChip, ModelProviderChipProps, ModelProviderPills, ModelProviderPillsProps, ModelReasoning, ModelReasoningProps, ModelVerdict, ModelVerdictProps, ModelWindow, ModelWindowProps, NO_COMPOSER_HINT, NestedToolCalls, NestedToolCallsProps, NewChatsDefault, NewSessionDefaults, NewSessionModelSource, NoticeRow, NoticeRowProps, OPTION_ICON, OpenBadgeMenu, OpenSessionContext, OrbState, OrchestratorBadge, OrchestratorBadgeProps, OrderedBadge, PASTE_FOLD_CHAR_THRESHOLD, PASTE_FOLD_LINE_THRESHOLD, ParsedRef, ParsedReferenceUrl, PdfPreview, PdfPreviewProps, PickerGroup, PickerPill, PickerPillProps, PlacePicker, PlacePickerHosts, PlacePickerProps, PlanBody, PlanBodyProps, PlanCard, PlanCardProps, ProjectMenu, ProjectMenuProps, PromptEcho, PromptEchoProps, PromptHistoryProvider, PromptHistoryProviderProps, PromptHistoryValue, PromptLines, PromptLinesProps, PromptSlotProps, ProseMarkdown, ProseMarkdownProps, QuestionField, QuestionFieldProps, QuestionForm, QuestionFormProps, ReadFileBlock, ReadFileBlockProps, RefChip, RefChipProps, RefMatch, ReferenceChip, ReferenceChipProps, ReferenceText, ReferenceTextProps, RepairedRow, RepairedRowProps, RetryPill, RetryPillProps, type RowActionItem, RowContext, RowFrame, RowFrameProps, RowIconsContext, RowPlace, RunEstimateChip, RunEstimateChipProps, RunEstimatesProvider, RunEstimatesProviderProps, RunReceiptInline, RunReceiptInlineProps, RunStatusChip, RunStatusChipProps, RunSummaryRow, RunSummaryRowProps, RunnableCodeBlock, type RunnableCodeBlockProps, SESSION_EVENT_DOT, ScopeToggle, ScopeToggleProps, ScrollPosition, SearchHighlightStyle, SecretInput, SecretInputProps, SelectCursor, SelectCursorProps, SelectTurnCommands, SelectTurnExit, SelectTurnHint, SelectTurnHintKeys, SelectTurnHintKeysProps, type SelectTurnHintProps, SelectTurnKeysOptions, SelectTurnProvider, SelectTurnProviderProps, SelectTurnState, SelectTurnValue, SendButton, SendButtonProps, SendPromptControls, SendPromptOptions, SendRoute, ServerScopeToggle, ServerScopeToggleProps, SessionActivityFilter, SessionArchiveFilter, SessionCard, SessionCardProps, SessionDotState, SessionEventGroupRow, SessionEventGroupRowProps, SessionEventRow, SessionEventRowProps, SessionFilterAction, SessionFilterAxis, SessionFilterExtra, SessionFilterMenu, SessionFilterMenuProps, SessionFilterPlacement, SessionGroupHeader, SessionGroupHeaderProps, SessionHostHeader, SessionHostHeaderProps, SessionList, SessionListProps, SessionListRow, SessionListRowProps, SessionMeters, SessionMetersTarget, SessionProjectAxis, SessionRow, SessionRowBadge, SessionRowList, SessionRowListProps, SessionRowProps, SessionRowState, SessionStreamsProvider, SessionStreamsProviderProps, SessionTitleSlotProps, SessionView, SetupChangedRow, SetupChangedRowProps, ShellBlockProvider, type ShellBlockProviderProps, type ShellBlockScope, ShowMoreRow, ShowMoreRowProps, SkillCard, SkillCardProps, SkillGroupCard, SkillGroupCardProps, SlotEntry, SpawnEndRow, SpawnEndRowProps, SpawnStartRow, SpawnStartRowProps, StatusDot, StatusDotProps, StatusOrb, StatusOrbProps, StickToBottomOptions, SubagentBlock, SubagentBlockProps, SuggestionKind, SuggestionPopup, SuggestionPopupProps, SuggestionSource, SuggestionState, THINKING_LEVELS, TRANSCRIPT_OPTION_KEYS, TRIGGER, TaskBatchRow, TaskBatchRowProps, TaskRow, TaskRowProps, TextPreview, TextPreviewProps, TextPreviewSlotProps, TextRow, TextRowProps, ThinkingBatchRow, ThinkingBatchRowProps, ThinkingLevel, ThinkingRow, ThinkingRowProps, Throbber, ThrobberProps, ThrobberVariant, ToolBatchRow, ToolBatchRowProps, ToolBodySlotProps, ToolDetails, ToolDetailsProps, ToolGlyph, ToolGlyphProps, ToolInput, ToolInputProps, ToolMedia, type ToolMediaItem, ToolMediaProps, ToolRow, ToolRowProps, ToolTiming, ToolTimingProps, Transcript, TranscriptAccounts, TranscriptActions, TranscriptActionsProvider, TranscriptActionsProviderProps, TranscriptFind, TranscriptFindKeyOptions, TranscriptFindOptions, TranscriptFindTarget, TranscriptOptions, TranscriptProps, TranscriptRail, type TranscriptRailProps, TranscriptRailProvider, type TranscriptRailProviderProps, TranscriptRenderers, TranscriptRenderersProvider, type TranscriptRenderersProviderProps, TranscriptRow, TranscriptRowProps, TranscriptRowSlot, TranscriptRowSlotProps, TranscriptRows, TranscriptRowsInput, TranscriptScrollInputs, TranscriptSearch, TranscriptSearchOptions, TranscriptSearchProps, TranscriptSearchState, TranscriptSelection, TranscriptSettling, TranscriptSource, TranscriptTurnMenu, TurnCommands, TurnCommandsOptions, TurnMenuActions, TurnMenuTarget, UserBashRow, UserBashRowProps, UserPromptAttachments, UserPromptAttachmentsProps, UserPromptRow, UserPromptRowProps, WORK_HOLD_MS, WORK_SHOW_MS, WorkerDetails, WorkerDetailsProps, __resetComposerScopesForTests, attachmentErrorText, attachmentLightboxItems, attachmentSrcOf, catalogFromProviders, claimComposerFocus, classifyInlineRef, colorForCategory, compactWindow, contextBreakdownShape, contextGauge, copyPromptLines, createTurnCommands, decodeDataUrlAsText, defaultAttachmentLabel, defaultAttachmentTileLabel, detectLanguage, dotStateFor, drawsImageGeneration, effectiveImageModel, fileBadgeName, fileBadgeSpec, findModel, findRefs, focusComposer, focusComposerWhenReady, formatBytes, groupKeyOf, hasComposerFor, hasFocusedComposer, hasInteractionBody, holdForceMountRows, imageCatalogRows, imageModelKey, imageRequestsOf, isAudioAttachment, isCaretAtEnd, isCaretAtStart, isFocusedComposer, isHiddenRow, isPdfAttachment, isRequired, isTextLike, isVideoAttachment, lineStateOf, lineupKeyOf, linkGlyph, mergeBadgeOrder, modelKey, modelLineup, modelNameOf, modelSearchScore, nextProfileId, numberRef, offCatalogRows, onComposerAttachment, onComposerDraft, onComposerFocus, onComposerInsert, onComposerMention, onComposerPrompt, optionTitle, orbState, orderComposerBadges, parseRefUrl, parseReferenceUrl, parseToolMedia, pastedTextFilename, pickRefOf, pickerGroups, plainTextToDocJson, providerAccountLabel, providerColor, providerHue, providerTint, pushComposerAttachment, pushComposerDraft, pushComposerInsert, pushComposerMention, pushComposerPrompt, readAttachment, refHref, refKey, referenceUrl, registerComposerScope, remarkReferences, remarkRefs, resolveChain, resolvePick, resourceErrorText, revealRow, rowKey, savedPaths, seedDefaults, shouldFoldPasteToAttachment, siteIconValue, suggestionExtension, takePendingComposerFocus, textAttachment, toolMediaSrcOf, turnViewsOf, unresolveChain, useAgentProfiles, useAllInteractions, useAttachmentIngest, useAttachmentNotices, useAttachmentRemoval, useAttachmentText, useBackgroundMount, useBadgeMenu, useCacheHints, useCaptureRunState, useChatHost, useChatLabels, useChipResolution, useClearDraftKnobs, useCommand, useCommitInfo, useComposerFor, useComposerHost, useComposerLabels, useComposerModelName, useComposerProviderLabel, useComposerSearch, useCycleAgent, useDraftKnobs, useDraftTarget, useFillViewportScrollback, useForceMountRows, useForcedRows, useFullOutput, useFullToolCall, useHasFocusedComposer, useHasSessionEvents, useHostResource, useHostSessions, useHostTurnMenu, useInteractionHead, useIsSessionHydrated, useJoinedRunProgress, useModelCatalog, useModelKnobs, useModelName, useModelPickerPrefs, useModelPickerPrefsStore, useNewChatsDefault, useNewSessionDefaults, useOptionalChatHost, useOptionalSessionStreamActions, usePeekRunSeq, usePeekSessionEvents, usePeekSessionRunning, usePendingInteractions, usePromptHistory, useProviderReadyPoll, useRailOutline, useReferenceMatches, useReferenceProviders, useReferenceView, useReferencedSession, useRememberedKnobs, useResolveChipNow, useRowIcons, useRunAccruedCost, useRunElapsedSec, useRunEstimate, useRunMeterValue, useRunOutputTokens, useRunProgress, useRunStartedAt, useSelectStops, useSelectTurn, useSelectTurnKeys, useSendPrompt, useSessionContextStatus, useSessionEdits, useSessionEvents, useSessionEventsSelector, useSessionFallbackModel, useSessionMeters, useSessionPage, useSessionRetry, useSessionRunning, useSessionStreamActions, useSessionStreams, useSessionSystemMd, useSessionTranscript, useSettledReveal, useShellBlockScope, useSiteIcon, useSkill, useStickToBottom, useSustainedWork, useTokenSession, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptOptions, useTranscriptRailStore, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause, withPrimary, workShowDelay };
|
package/dist/chat/index.js
CHANGED
|
@@ -23,7 +23,8 @@ import { Markdown, MarkdownDiagrams } from "./transcript/markdown.js";
|
|
|
23
23
|
import { parseToolMedia } from "./headless/transcript/tool-media.js";
|
|
24
24
|
import { HostBadge } from "./HostBadge.js";
|
|
25
25
|
import { AttachmentRefusedError, MAX_FILE_ATTACHMENT_BYTES, MAX_IMAGE_ATTACHMENT_BYTES, MAX_MEDIA_ATTACHMENT_BYTES, PASTE_FOLD_CHAR_THRESHOLD, PASTE_FOLD_LINE_THRESHOLD, attachmentErrorText, decodeDataUrlAsText, detectLanguage, formatBytes, isAudioAttachment, isPdfAttachment, isTextLike, isVideoAttachment, pastedTextFilename, readAttachment, shouldFoldPasteToAttachment } from "./composer/attachment-ingest.js";
|
|
26
|
-
import {
|
|
26
|
+
import { HostStatusDot } from "./HostStatusDot.js";
|
|
27
|
+
import { Caret, Dot, FailedMark, GUTTER_STEP_PX, RowFrame, RowIconsContext, SESSION_EVENT_DOT, lineStateOf, useRowIcons } from "./transcript/frame.js";
|
|
27
28
|
import { PromptLines, copyPromptLines } from "./transcript/prompt-lines.js";
|
|
28
29
|
import { AnsiSpans, AnsiText } from "./transcript/AnsiText.js";
|
|
29
30
|
import { LiveOutput } from "./transcript/LiveOutput.js";
|
|
@@ -36,12 +37,12 @@ import { ToolMedia, useToolMedia } from "./transcript/tool-media.js";
|
|
|
36
37
|
import { TranscriptRenderersProvider } from "./transcript/renderer-slots.js";
|
|
37
38
|
import { DEFAULT_TRANSCRIPT_RENDERERS, DefaultInlineText, DefaultMarkdown, DefaultPrompt, DefaultSessionTitle, defaultAttachmentLabel, useTranscriptRenderers } from "./transcript/renderers.js";
|
|
38
39
|
import { AttachmentIcon, UserPromptAttachments, UserPromptRow } from "./transcript/prompt.js";
|
|
39
|
-
import {
|
|
40
|
+
import { HostTranscript } from "./HostTranscript.js";
|
|
40
41
|
import { parseReferenceUrl, referenceUrl, remarkReferences } from "./transcript/remark-references.js";
|
|
41
42
|
import { ProseMarkdown } from "./transcript/ProseMarkdown.js";
|
|
42
|
-
import { HostTranscript } from "./HostTranscript.js";
|
|
43
43
|
import { OrchestratorBadge } from "./OrchestratorBadge.js";
|
|
44
44
|
import { PdfPreview } from "./PdfPreview.js";
|
|
45
|
+
import { providerColor, providerHue, providerTint } from "./provider-color.js";
|
|
45
46
|
import { EnvironmentSetupDetails, EnvironmentSetupRow } from "./transcript/environment-setup.js";
|
|
46
47
|
import { WorkerDetails } from "./transcript/fold-worker.js";
|
|
47
48
|
import { ToolDetails } from "./transcript/tool-details.js";
|
|
@@ -49,13 +50,14 @@ import { ImageGenerationBlock, drawsImageGeneration, imageRequestsOf, savedPaths
|
|
|
49
50
|
import { ModelVerdict, NestedToolCalls, ToolRow } from "./transcript/tool-row.js";
|
|
50
51
|
import { ExchangeFoldRow, FoldHeader, LiveScriptsContext } from "./transcript/fold.js";
|
|
51
52
|
import { SelectCursor } from "./transcript/SelectCursor.js";
|
|
52
|
-
import {
|
|
53
|
+
import { RunEstimateChip, RunEstimatesProvider, useRunEstimate } from "./RunEstimateChip.js";
|
|
53
54
|
import { SubagentBlock } from "./transcript/SubagentBlock.js";
|
|
54
55
|
import { TranscriptRail, TranscriptRailProvider, useRailOutline, useTranscriptRailStore } from "./transcript/TranscriptRail.js";
|
|
55
56
|
import { MessageGroupRow } from "./transcript/messages.js";
|
|
56
57
|
import { AuthFailureCard } from "./transcript/AuthFailureCard.js";
|
|
57
58
|
import { COMMAND_DETAIL_LINE, CommandDetailRow, CommandNoteRow, ErrorRow, FailureRow, InfoRow, NoticeRow, RepairedRow, SessionEventRow, SetupChangedRow, SpawnEndRow, SpawnStartRow } from "./transcript/notices.js";
|
|
58
59
|
import { CompactSummaryRow, RunReceiptInline, RunSummaryRow } from "./transcript/run-rows.js";
|
|
60
|
+
import { SessionEventGroupRow } from "./transcript/session-groups.js";
|
|
59
61
|
import { NO_COMPOSER_HINT, __resetComposerScopesForTests, claimComposerFocus, focusComposer, focusComposerWhenReady, hasComposerFor, hasFocusedComposer, isFocusedComposer, onComposerAttachment, onComposerDraft, onComposerFocus, onComposerInsert, onComposerMention, onComposerPrompt, pushComposerAttachment, pushComposerDraft, pushComposerInsert, pushComposerMention, pushComposerPrompt, registerComposerScope, takePendingComposerFocus, textAttachment, useComposerFor, useHasFocusedComposer } from "./composer/composer-bus.js";
|
|
60
62
|
import { RunnableCodeBlock, ShellBlockProvider } from "./transcript/shell-block.js";
|
|
61
63
|
import { TaskBatchRow, TaskRow } from "./transcript/tasks.js";
|
|
@@ -64,7 +66,6 @@ import { UserBashRow } from "./transcript/user-bash.js";
|
|
|
64
66
|
import { TranscriptRow, TranscriptRowSlot, isHiddenRow } from "./transcript/TranscriptRow.js";
|
|
65
67
|
import { useSelectStops, useTranscriptRows } from "./transcript/use-transcript-rows.js";
|
|
66
68
|
import { useTranscriptSelectionCopy } from "./transcript/useTranscriptSelectionCopy.js";
|
|
67
|
-
import { RunEstimateChip, RunEstimatesProvider, useRunEstimate } from "./RunEstimateChip.js";
|
|
68
69
|
import { SessionFilterMenu } from "./SessionFilterMenu.js";
|
|
69
70
|
import { GroupGlyph, SessionGroupHeader, ShowMoreRow } from "./SessionGroupHeader.js";
|
|
70
71
|
import { SessionHostHeader } from "./SessionHostHeader.js";
|
|
@@ -166,4 +167,4 @@ import { useTranscriptFindKey } from "./transcript/useTranscriptFindKey.js";
|
|
|
166
167
|
import { useTranscriptFind } from "./transcript/useTranscriptFind.js";
|
|
167
168
|
import { useWheelHoverPause } from "./transcript/useWheelHoverPause.js";
|
|
168
169
|
import { useTranscriptScroll } from "./transcript/useTranscriptScroll.js";
|
|
169
|
-
export { ATTACHMENT_NOTICE_MS, AUTO_FILL_PAGES, AgentPicker, AgentPickerDialog, AnsiSpans, AnsiText, AnsweredQuestions, ApprovalDock, ArchivedBanner, AttachmentIcon, AttachmentNotices, AttachmentRefusedError, AttachmentRow, AttachmentTiles, AuthFailureCard, BADGE_GLYPH, BadgeMenuProvider, CHIP_CARD_WIDTH, CODE_PANEL, COMMAND_DETAIL_LINE, CardMarkdown, Caret, ChatProvider, ChipCard, ChipHover, CodemodeScript, CommandCard, CommandDetailRow, CommandNoteRow, CommandScopeContext, CommitCard, CompactSummaryRow, Composer, ComposerBadges, ComposerControls, ComposerDock, ComposerHostProvider, ComposerStatusPills, ContextBreakdown, ContextOrb, ConversationBadges, CvRow, DEFAULT_BADGE_ORDER, DEFAULT_CONTEXT_BREAKDOWN_SHAPE, DEFAULT_TRANSCRIPT_OPTIONS, DEFAULT_TRANSCRIPT_RENDERERS, DaemonOrb, DaemonOrbButton, DefaultInlineText, DefaultMarkdown, DefaultPrompt, DefaultSessionTitle, DiffLines, DockCard, DockRow, Dot, DraftPickers, EFFORT_LEVELS, EditDiffBlock, EffortPickerDialog, ElicitationCard, EnvironmentSetupDetails, EnvironmentSetupRow, ErrorRow, ExchangeFoldRow, FILL_MIN_PROMPTS, FailedMark, FailureRow, FileBadgeIcon, FoldHeader, GUTTER_STEP_PX, GroupGlyph, HostAgentPicker, HostBadge, HostComposer, HostContextOrb, HostInteractions, HostModelChainList, HostModelOptionsPicker, HostModelPicker, HostPicker, HostStatusDot, HostTranscript, INLINE_CODE_CLASS, ImageGenerationBlock, ImageModelList, InboxPanel, InfoRow, InlineChipText, InlineCode, InteractionCard, InteractionToolBody, LazyRow, LinkBadge, LinkIcon, LiveOutput, LiveScriptsContext, LoadEarlierRow, LoadFullOutputButton, MAX_FILE_ATTACHMENT_BYTES, MAX_IMAGE_ATTACHMENT_BYTES, MAX_MATCHES, MAX_MEDIA_ATTACHMENT_BYTES, MAX_TEXT_PREVIEW_BYTES, Markdown, MarkdownContext, MarkdownDiagrams, MarkdownViews, MermaidDiagram, MessageGroupRow, ModelChainFooter, ModelChainHeader, ModelChainList, ModelChainPopover, ModelChainRow, ModelChainRows, ModelChainTooltip, ModelFlag, ModelGroupHeader, ModelMeta, ModelOptionsPicker, ModelPicker, ModelPickerDialog, ModelPickerFrame, ModelProviderChip, ModelProviderPills, ModelReasoning, ModelVerdict, ModelWindow, NO_COMPOSER_HINT, NestedToolCalls, NoticeRow, OPTION_ICON, OpenSessionContext, OrchestratorBadge, PASTE_FOLD_CHAR_THRESHOLD, PASTE_FOLD_LINE_THRESHOLD, PdfPreview, PickerPill, PlacePicker, PlanBody, PlanCard, ProjectMenu, PromptEcho, PromptHistoryProvider, PromptLines, ProseMarkdown, QuestionField, QuestionForm, ReadFileBlock, RefChip, ReferenceChip, ReferenceText, RepairedRow, RetryPill, RowFrame, RowIconsContext, RunEstimateChip, RunEstimatesProvider, RunReceiptInline, RunStatusChip, RunSummaryRow, RunnableCodeBlock, ScopeToggle, SearchHighlightStyle, SecretInput, SelectCursor, SelectTurnExit, SelectTurnHint, SelectTurnHintKeys, SelectTurnProvider, SendButton, ServerScopeToggle, SessionCard, SessionEventRow, SessionFilterMenu, SessionGroupHeader, SessionHostHeader, SessionList, SessionListRow, SessionRow, SessionRowList, SessionStreamsProvider, SetupChangedRow, ShellBlockProvider, ShowMoreRow, SkillCard, SkillGroupCard, SpawnEndRow, SpawnStartRow, StatusDot, StatusOrb, SubagentBlock, SuggestionPopup, THINKING_LEVELS, TRANSCRIPT_OPTION_KEYS, TRIGGER, TaskBatchRow, TaskRow, TextPreview, TextRow, ThinkingBatchRow, ThinkingRow, Throbber, ToolBatchRow, ToolDetails, ToolGlyph, ToolInput, ToolMedia, ToolRow, ToolTiming, Transcript, TranscriptActionsProvider, TranscriptRail, TranscriptRailProvider, TranscriptRenderersProvider, TranscriptRow, TranscriptRowSlot, TranscriptSearch, TranscriptSettling, UserBashRow, UserPromptAttachments, UserPromptRow, WORK_HOLD_MS, WORK_SHOW_MS, WorkerDetails, __resetComposerScopesForTests, attachmentErrorText, attachmentLightboxItems, attachmentSrcOf, catalogFromProviders, claimComposerFocus, classifyInlineRef, colorForCategory, compactWindow, contextBreakdownShape, contextGauge, copyPromptLines, createTurnCommands, decodeDataUrlAsText, defaultAttachmentLabel, defaultAttachmentTileLabel, detectLanguage, dotStateFor, drawsImageGeneration, effectiveImageModel, fileBadgeName, fileBadgeSpec, findModel, findRefs, focusComposer, focusComposerWhenReady, formatBytes, groupKeyOf, hasComposerFor, hasFocusedComposer, hasInteractionBody, holdForceMountRows, imageCatalogRows, imageModelKey, imageRequestsOf, isAudioAttachment, isCaretAtEnd, isCaretAtStart, isFocusedComposer, isHiddenRow, isPdfAttachment, isRequired, isTextLike, isVideoAttachment, lineStateOf, lineupKeyOf, linkGlyph, mergeBadgeOrder, modelKey, modelLineup, modelNameOf, modelSearchScore, nextProfileId, numberRef, offCatalogRows, onComposerAttachment, onComposerDraft, onComposerFocus, onComposerInsert, onComposerMention, onComposerPrompt, optionTitle, orbState, orderComposerBadges, parseRefUrl, parseReferenceUrl, parseToolMedia, pastedTextFilename, pickRefOf, pickerGroups, plainTextToDocJson, providerAccountLabel, providerColor, providerHue, providerTint, pushComposerAttachment, pushComposerDraft, pushComposerInsert, pushComposerMention, pushComposerPrompt, readAttachment, refHref, refKey, referenceUrl, registerComposerScope, remarkReferences, remarkRefs, resolveChain, resolvePick, resourceErrorText, revealRow, rowKey, savedPaths, seedDefaults, shouldFoldPasteToAttachment, siteIconValue, suggestionExtension, takePendingComposerFocus, textAttachment, toolMediaSrcOf, turnViewsOf, unresolveChain, useAgentProfiles, useAllInteractions, useAttachmentIngest, useAttachmentNotices, useAttachmentRemoval, useAttachmentText, useBackgroundMount, useBadgeMenu, useCacheHints, useCaptureRunState, useChatHost, useChatLabels, useChipResolution, useClearDraftKnobs, useCommand, useCommitInfo, useComposerFor, useComposerHost, useComposerLabels, useComposerModelName, useComposerProviderLabel, useComposerSearch, useCycleAgent, useDraftKnobs, useDraftTarget, useFillViewportScrollback, useForceMountRows, useForcedRows, useFullOutput, useFullToolCall, useHasFocusedComposer, useHasSessionEvents, useHostResource, useHostSessions, useHostTurnMenu, useInteractionHead, useIsSessionHydrated, useJoinedRunProgress, useModelCatalog, useModelKnobs, useModelName, useModelPickerPrefs, useModelPickerPrefsStore, useNewChatsDefault, useNewSessionDefaults, useOptionalChatHost, useOptionalSessionStreamActions, usePeekRunSeq, usePeekSessionEvents, usePeekSessionRunning, usePendingInteractions, usePromptHistory, useProviderReadyPoll, useRailOutline, useReferenceMatches, useReferenceProviders, useReferenceView, useReferencedSession, useRememberedKnobs, useResolveChipNow, useRowIcons, useRunAccruedCost, useRunElapsedSec, useRunEstimate, useRunMeterValue, useRunOutputTokens, useRunProgress, useRunStartedAt, useSelectStops, useSelectTurn, useSelectTurnKeys, useSendPrompt, useSessionContextStatus, useSessionEdits, useSessionEvents, useSessionEventsSelector, useSessionFallbackModel, useSessionMeters, useSessionPage, useSessionRetry, useSessionRunning, useSessionStreamActions, useSessionStreams, useSessionSystemMd, useSessionTranscript, useSettledReveal, useShellBlockScope, useSiteIcon, useSkill, useStickToBottom, useSustainedWork, useTokenSession, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptOptions, useTranscriptRailStore, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause, withPrimary, workShowDelay };
|
|
170
|
+
export { ATTACHMENT_NOTICE_MS, AUTO_FILL_PAGES, AgentPicker, AgentPickerDialog, AnsiSpans, AnsiText, AnsweredQuestions, ApprovalDock, ArchivedBanner, AttachmentIcon, AttachmentNotices, AttachmentRefusedError, AttachmentRow, AttachmentTiles, AuthFailureCard, BADGE_GLYPH, BadgeMenuProvider, CHIP_CARD_WIDTH, CODE_PANEL, COMMAND_DETAIL_LINE, CardMarkdown, Caret, ChatProvider, ChipCard, ChipHover, CodemodeScript, CommandCard, CommandDetailRow, CommandNoteRow, CommandScopeContext, CommitCard, CompactSummaryRow, Composer, ComposerBadges, ComposerControls, ComposerDock, ComposerHostProvider, ComposerStatusPills, ContextBreakdown, ContextOrb, ConversationBadges, CvRow, DEFAULT_BADGE_ORDER, DEFAULT_CONTEXT_BREAKDOWN_SHAPE, DEFAULT_TRANSCRIPT_OPTIONS, DEFAULT_TRANSCRIPT_RENDERERS, DaemonOrb, DaemonOrbButton, DefaultInlineText, DefaultMarkdown, DefaultPrompt, DefaultSessionTitle, DiffLines, DockCard, DockRow, Dot, DraftPickers, EFFORT_LEVELS, EditDiffBlock, EffortPickerDialog, ElicitationCard, EnvironmentSetupDetails, EnvironmentSetupRow, ErrorRow, ExchangeFoldRow, FILL_MIN_PROMPTS, FailedMark, FailureRow, FileBadgeIcon, FoldHeader, GUTTER_STEP_PX, GroupGlyph, HostAgentPicker, HostBadge, HostComposer, HostContextOrb, HostInteractions, HostModelChainList, HostModelOptionsPicker, HostModelPicker, HostPicker, HostStatusDot, HostTranscript, INLINE_CODE_CLASS, ImageGenerationBlock, ImageModelList, InboxPanel, InfoRow, InlineChipText, InlineCode, InteractionCard, InteractionToolBody, LazyRow, LinkBadge, LinkIcon, LiveOutput, LiveScriptsContext, LoadEarlierRow, LoadFullOutputButton, MAX_FILE_ATTACHMENT_BYTES, MAX_IMAGE_ATTACHMENT_BYTES, MAX_MATCHES, MAX_MEDIA_ATTACHMENT_BYTES, MAX_TEXT_PREVIEW_BYTES, Markdown, MarkdownContext, MarkdownDiagrams, MarkdownViews, MermaidDiagram, MessageGroupRow, ModelChainFooter, ModelChainHeader, ModelChainList, ModelChainPopover, ModelChainRow, ModelChainRows, ModelChainTooltip, ModelFlag, ModelGroupHeader, ModelMeta, ModelOptionsPicker, ModelPicker, ModelPickerDialog, ModelPickerFrame, ModelProviderChip, ModelProviderPills, ModelReasoning, ModelVerdict, ModelWindow, NO_COMPOSER_HINT, NestedToolCalls, NoticeRow, OPTION_ICON, OpenSessionContext, OrchestratorBadge, PASTE_FOLD_CHAR_THRESHOLD, PASTE_FOLD_LINE_THRESHOLD, PdfPreview, PickerPill, PlacePicker, PlanBody, PlanCard, ProjectMenu, PromptEcho, PromptHistoryProvider, PromptLines, ProseMarkdown, QuestionField, QuestionForm, ReadFileBlock, RefChip, ReferenceChip, ReferenceText, RepairedRow, RetryPill, RowFrame, RowIconsContext, RunEstimateChip, RunEstimatesProvider, RunReceiptInline, RunStatusChip, RunSummaryRow, RunnableCodeBlock, SESSION_EVENT_DOT, ScopeToggle, SearchHighlightStyle, SecretInput, SelectCursor, SelectTurnExit, SelectTurnHint, SelectTurnHintKeys, SelectTurnProvider, SendButton, ServerScopeToggle, SessionCard, SessionEventGroupRow, SessionEventRow, SessionFilterMenu, SessionGroupHeader, SessionHostHeader, SessionList, SessionListRow, SessionRow, SessionRowList, SessionStreamsProvider, SetupChangedRow, ShellBlockProvider, ShowMoreRow, SkillCard, SkillGroupCard, SpawnEndRow, SpawnStartRow, StatusDot, StatusOrb, SubagentBlock, SuggestionPopup, THINKING_LEVELS, TRANSCRIPT_OPTION_KEYS, TRIGGER, TaskBatchRow, TaskRow, TextPreview, TextRow, ThinkingBatchRow, ThinkingRow, Throbber, ToolBatchRow, ToolDetails, ToolGlyph, ToolInput, ToolMedia, ToolRow, ToolTiming, Transcript, TranscriptActionsProvider, TranscriptRail, TranscriptRailProvider, TranscriptRenderersProvider, TranscriptRow, TranscriptRowSlot, TranscriptSearch, TranscriptSettling, UserBashRow, UserPromptAttachments, UserPromptRow, WORK_HOLD_MS, WORK_SHOW_MS, WorkerDetails, __resetComposerScopesForTests, attachmentErrorText, attachmentLightboxItems, attachmentSrcOf, catalogFromProviders, claimComposerFocus, classifyInlineRef, colorForCategory, compactWindow, contextBreakdownShape, contextGauge, copyPromptLines, createTurnCommands, decodeDataUrlAsText, defaultAttachmentLabel, defaultAttachmentTileLabel, detectLanguage, dotStateFor, drawsImageGeneration, effectiveImageModel, fileBadgeName, fileBadgeSpec, findModel, findRefs, focusComposer, focusComposerWhenReady, formatBytes, groupKeyOf, hasComposerFor, hasFocusedComposer, hasInteractionBody, holdForceMountRows, imageCatalogRows, imageModelKey, imageRequestsOf, isAudioAttachment, isCaretAtEnd, isCaretAtStart, isFocusedComposer, isHiddenRow, isPdfAttachment, isRequired, isTextLike, isVideoAttachment, lineStateOf, lineupKeyOf, linkGlyph, mergeBadgeOrder, modelKey, modelLineup, modelNameOf, modelSearchScore, nextProfileId, numberRef, offCatalogRows, onComposerAttachment, onComposerDraft, onComposerFocus, onComposerInsert, onComposerMention, onComposerPrompt, optionTitle, orbState, orderComposerBadges, parseRefUrl, parseReferenceUrl, parseToolMedia, pastedTextFilename, pickRefOf, pickerGroups, plainTextToDocJson, providerAccountLabel, providerColor, providerHue, providerTint, pushComposerAttachment, pushComposerDraft, pushComposerInsert, pushComposerMention, pushComposerPrompt, readAttachment, refHref, refKey, referenceUrl, registerComposerScope, remarkReferences, remarkRefs, resolveChain, resolvePick, resourceErrorText, revealRow, rowKey, savedPaths, seedDefaults, shouldFoldPasteToAttachment, siteIconValue, suggestionExtension, takePendingComposerFocus, textAttachment, toolMediaSrcOf, turnViewsOf, unresolveChain, useAgentProfiles, useAllInteractions, useAttachmentIngest, useAttachmentNotices, useAttachmentRemoval, useAttachmentText, useBackgroundMount, useBadgeMenu, useCacheHints, useCaptureRunState, useChatHost, useChatLabels, useChipResolution, useClearDraftKnobs, useCommand, useCommitInfo, useComposerFor, useComposerHost, useComposerLabels, useComposerModelName, useComposerProviderLabel, useComposerSearch, useCycleAgent, useDraftKnobs, useDraftTarget, useFillViewportScrollback, useForceMountRows, useForcedRows, useFullOutput, useFullToolCall, useHasFocusedComposer, useHasSessionEvents, useHostResource, useHostSessions, useHostTurnMenu, useInteractionHead, useIsSessionHydrated, useJoinedRunProgress, useModelCatalog, useModelKnobs, useModelName, useModelPickerPrefs, useModelPickerPrefsStore, useNewChatsDefault, useNewSessionDefaults, useOptionalChatHost, useOptionalSessionStreamActions, usePeekRunSeq, usePeekSessionEvents, usePeekSessionRunning, usePendingInteractions, usePromptHistory, useProviderReadyPoll, useRailOutline, useReferenceMatches, useReferenceProviders, useReferenceView, useReferencedSession, useRememberedKnobs, useResolveChipNow, useRowIcons, useRunAccruedCost, useRunElapsedSec, useRunEstimate, useRunMeterValue, useRunOutputTokens, useRunProgress, useRunStartedAt, useSelectStops, useSelectTurn, useSelectTurnKeys, useSendPrompt, useSessionContextStatus, useSessionEdits, useSessionEvents, useSessionEventsSelector, useSessionFallbackModel, useSessionMeters, useSessionPage, useSessionRetry, useSessionRunning, useSessionStreamActions, useSessionStreams, useSessionSystemMd, useSessionTranscript, useSettledReveal, useShellBlockScope, useSiteIcon, useSkill, useStickToBottom, useSustainedWork, useTokenSession, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptOptions, useTranscriptRailStore, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause, withPrimary, workShowDelay };
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { InboxRow, InboxSection, InboxShelfId } from "../headless/sidebar/inbox.js";
|
|
13
13
|
import { ProjectIcon } from "../headless/sidebar/project-icons.js";
|
|
14
14
|
import { SidebarListSession } from "../headless/sidebar/types.js";
|
|
15
|
+
import { SidebarProjectRecord } from "./SessionSidebar.js";
|
|
15
16
|
import { SidebarProjectRef } from "./SidebarGroupHeader.js";
|
|
16
17
|
import { ReactNode } from "react";
|
|
17
18
|
/** Props of {@link InboxList}. */
|
|
@@ -38,7 +39,19 @@ export interface InboxListProps<S extends SidebarListSession> {
|
|
|
38
39
|
onOpenProject?: (project: SidebarProjectRef) => void;
|
|
39
40
|
/** The project home on show: its folder's name is current. */
|
|
40
41
|
openProject?: SidebarProjectRef | null;
|
|
42
|
+
/** Starts a new chat with no folder from the Chats folder's name. Absent: the name folds. */
|
|
43
|
+
onOpenChats?: () => void;
|
|
44
|
+
/** A new chat with no folder shows: the Chats folder's name is current. */
|
|
45
|
+
chatsOpen?: boolean;
|
|
46
|
+
/** The projects with no folder, by id: their folders' icons. */
|
|
47
|
+
projectRecords?: ReadonlyMap<string, SidebarProjectRecord>;
|
|
48
|
+
/** Opens the home of a project with no folder from its folder's name. Absent: the name folds. */
|
|
49
|
+
onOpenProjectRecord?: (projectId: string) => void;
|
|
50
|
+
/** The project with no folder whose home shows: its folder's name is current. */
|
|
51
|
+
openProjectId?: string | null;
|
|
52
|
+
/** Picks (or resets) the icon of a project with no folder. Absent: its icon shows with no picker. */
|
|
53
|
+
onSetProjectIcon?: (projectId: string, icon: ProjectIcon | null) => void;
|
|
41
54
|
}
|
|
42
55
|
/** Draws the inbox rows as `<li>` children of the sidebar's list. */
|
|
43
|
-
export declare function InboxList<S extends SidebarListSession>({ rows, renderSession, onToggleShelf, onToggleFolder, onShowMore, onNewSessionIn, projectIcons, onAssignIcon, onOpenProject, openProject }: InboxListProps<S>): import("react").JSX.Element;
|
|
56
|
+
export declare function InboxList<S extends SidebarListSession>({ rows, renderSession, onToggleShelf, onToggleFolder, onShowMore, onNewSessionIn, projectIcons, onAssignIcon, onOpenProject, openProject, onOpenChats, chatsOpen, projectRecords, onOpenProjectRecord, openProjectId, onSetProjectIcon }: InboxListProps<S>): import("react").JSX.Element;
|
|
44
57
|
export type { InboxSection };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IconButton } from "../../components/IconButton.js";
|
|
2
2
|
import { GroupGlyph, SessionGroupHeader } from "../SessionGroupHeader.js";
|
|
3
|
-
import { ProjectIconButton } from "./ProjectIcon.js";
|
|
3
|
+
import { ProjectIconButton, ProjectIconGlyph } from "./ProjectIcon.js";
|
|
4
4
|
import { SidebarFold } from "./SidebarFold.js";
|
|
5
5
|
import { useSidebarLabels } from "./useSidebarLabels.js";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -15,7 +15,7 @@ const SHELF_ICONS = {
|
|
|
15
15
|
const HEAD = "zg-sticky-head zg-no-drag group flex items-center gap-1.5 -mx-2 px-3 pt-3 pb-1 text-sm text-[var(--zg-text-muted)] select-none";
|
|
16
16
|
const HEAD_BUTTON = "zg-press-soft flex flex-1 items-center gap-1.5 min-w-0 bg-transparent border-0 cursor-pointer p-0 font-medium text-[var(--zg-sidebar-label-fg,var(--zg-text-muted))] hover:text-[var(--zg-text)] transition-colors";
|
|
17
17
|
/** Draws the inbox rows as `<li>` children of the sidebar's list. */
|
|
18
|
-
function InboxList({ rows, renderSession, onToggleShelf, onToggleFolder, onShowMore, onNewSessionIn, projectIcons, onAssignIcon, onOpenProject, openProject }) {
|
|
18
|
+
function InboxList({ rows, renderSession, onToggleShelf, onToggleFolder, onShowMore, onNewSessionIn, projectIcons, onAssignIcon, onOpenProject, openProject, onOpenChats, chatsOpen = false, projectRecords, onOpenProjectRecord, openProjectId = null, onSetProjectIcon }) {
|
|
19
19
|
const labels = useSidebarLabels();
|
|
20
20
|
const out = [];
|
|
21
21
|
/** A heading's rows: the shelf's or the folder's, up to the next heading. */
|
|
@@ -63,25 +63,45 @@ function InboxList({ rows, renderSession, onToggleShelf, onToggleFolder, onShowM
|
|
|
63
63
|
if (row.kind === "folder") {
|
|
64
64
|
const to = rowsUnder(i + 1, (r) => r.kind === "session" && r.folder === row.id);
|
|
65
65
|
const current = openProject != null && openProject.path === row.path && openProject.hostId === row.hostId;
|
|
66
|
+
const projectId = row.projectId;
|
|
67
|
+
const record = projectId !== void 0 ? projectRecords?.get(projectId) : void 0;
|
|
68
|
+
const label = row.chats ? labels.chats : row.label;
|
|
69
|
+
const open = row.chats ? onOpenChats ? {
|
|
70
|
+
onOpen: onOpenChats,
|
|
71
|
+
active: chatsOpen
|
|
72
|
+
} : {} : projectId !== void 0 ? onOpenProjectRecord ? {
|
|
73
|
+
onOpen: () => onOpenProjectRecord(projectId),
|
|
74
|
+
active: openProjectId === projectId
|
|
75
|
+
} : {} : onOpenProject ? {
|
|
76
|
+
onOpen: () => onOpenProject({
|
|
77
|
+
path: row.path,
|
|
78
|
+
...row.hostId ? { hostId: row.hostId } : {}
|
|
79
|
+
}),
|
|
80
|
+
active: current
|
|
81
|
+
} : {};
|
|
66
82
|
const heading = /* @__PURE__ */ jsx(SessionGroupHeader, {
|
|
67
83
|
id: row.id,
|
|
68
|
-
label
|
|
84
|
+
label,
|
|
69
85
|
collapsed: row.collapsed,
|
|
86
|
+
collapsible: row.count > 0,
|
|
70
87
|
onToggle: onToggleFolder,
|
|
71
|
-
...
|
|
72
|
-
onOpen: () => onOpenProject({
|
|
73
|
-
path: row.path,
|
|
74
|
-
...row.hostId ? { hostId: row.hostId } : {}
|
|
75
|
-
}),
|
|
76
|
-
active: current
|
|
77
|
-
} : {},
|
|
88
|
+
...open,
|
|
78
89
|
className: "zg-sticky-head zg-inbox-folder",
|
|
79
90
|
dataAttributes: {
|
|
80
91
|
"data-flip-key": row.id,
|
|
81
92
|
"data-inbox-section": "pinned",
|
|
82
93
|
"data-inbox-folder": row.id
|
|
83
94
|
},
|
|
84
|
-
icon:
|
|
95
|
+
icon: row.chats ? /* @__PURE__ */ jsx(GroupGlyph, { icon: "i-ph-chats" }) : projectId !== void 0 ? onSetProjectIcon && !record?.iconLocked ? /* @__PURE__ */ jsx(ProjectIconButton, {
|
|
96
|
+
fullPath: projectId,
|
|
97
|
+
label,
|
|
98
|
+
...record?.icon ? { icon: record.icon } : {},
|
|
99
|
+
isGitRepo: false,
|
|
100
|
+
onAssign: onSetProjectIcon
|
|
101
|
+
}) : /* @__PURE__ */ jsx(ProjectIconGlyph, {
|
|
102
|
+
...record?.icon ? { icon: record.icon } : {},
|
|
103
|
+
isGitRepo: false
|
|
104
|
+
}) : onAssignIcon && !row.hostId ? /* @__PURE__ */ jsx(ProjectIconButton, {
|
|
85
105
|
fullPath: row.path,
|
|
86
106
|
label: row.label,
|
|
87
107
|
icon: projectIcons?.[row.path],
|
|
@@ -97,9 +117,9 @@ function InboxList({ rows, renderSession, onToggleShelf, onToggleFolder, onShowM
|
|
|
97
117
|
className: "zg-inbox-urgency shrink-0 ml-1.5",
|
|
98
118
|
"data-urgency": row.urgency
|
|
99
119
|
})] }),
|
|
100
|
-
action: /* @__PURE__ */ jsx(Fragment, { children: onNewSessionIn && /* @__PURE__ */ jsx(IconButton, {
|
|
120
|
+
action: /* @__PURE__ */ jsx(Fragment, { children: onNewSessionIn && !row.chats && (projectId === void 0 || onOpenProjectRecord) && /* @__PURE__ */ jsx(IconButton, {
|
|
101
121
|
icon: "i-ph-plus",
|
|
102
|
-
label: labels.inboxNewSessionIn(
|
|
122
|
+
label: labels.inboxNewSessionIn(label),
|
|
103
123
|
size: "xs",
|
|
104
124
|
className: "zg-row-dots",
|
|
105
125
|
onClick: () => onNewSessionIn(row.path)
|
|
@@ -33,6 +33,11 @@ export interface SidebarProjectRecord {
|
|
|
33
33
|
icon?: ProjectIcon;
|
|
34
34
|
/** The person can't change its icon (a member's in organization mode): it shows with no picker. */
|
|
35
35
|
iconLocked?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* The ids of this host's sessions filed in it (`projects.sessions`): in a view grouped by folder they are listed
|
|
38
|
+
* under it, whatever their folder. Absent: its folder's sessions (a project with a home), or none.
|
|
39
|
+
*/
|
|
40
|
+
sessions?: readonly string[];
|
|
36
41
|
}
|
|
37
42
|
/** A project with a home folder, as the sidebar names that folder's group. */
|
|
38
43
|
export interface SidebarHomeProject extends SidebarProjectRecord {
|
|
@@ -94,9 +99,11 @@ export interface SessionSidebarProps<S extends SidebarRowSession> {
|
|
|
94
99
|
/** A new chat with no folder shows: the Chats header wears the active chip. */
|
|
95
100
|
chatsOpen?: boolean;
|
|
96
101
|
/**
|
|
97
|
-
* Projects with no folder (`Settings.projectHome`): a
|
|
98
|
-
* folder
|
|
99
|
-
*
|
|
102
|
+
* Projects with no folder (`Settings.projectHome`, with `onOpenProjectRecord`): a group each in a view grouped by
|
|
103
|
+
* folder (the inbox's too), with the sessions filed in it (`sessions`), ordered and pinned like a folder's, listed
|
|
104
|
+
* with none too. Its name opens the project's home (`onOpenProjectRecord`), and so does its "+" (a chat with no
|
|
105
|
+
* folder, filed in it on its first send). Its icon picker (`onSetProjectIcon`) is for whoever can set it.
|
|
106
|
+
* Absent: none listed.
|
|
100
107
|
*/
|
|
101
108
|
folderlessProjects?: readonly SidebarProjectRecord[];
|
|
102
109
|
/** Opens the home of a project with no folder. */
|
|
@@ -206,8 +213,9 @@ export interface NewSessionButtonProps {
|
|
|
206
213
|
style?: CSSProperties;
|
|
207
214
|
}
|
|
208
215
|
/**
|
|
209
|
-
* The New
|
|
210
|
-
* session is open, its ⌘N hint fading in on
|
|
216
|
+
* The New row (a new chat with no project, `labels.newSession`; its tooltip says New session and the keys): the same
|
|
217
|
+
* grid as a session row (an 18px glyph column, `text-sm`), raised while no session is open, its ⌘N hint fading in on
|
|
218
|
+
* hover or focus.
|
|
211
219
|
*
|
|
212
220
|
* @param props - What it starts, whether it is the current selection, `className` and `style`.
|
|
213
221
|
*/
|