zidane-ui 9.2.2 → 9.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/browser-keybindings-host.js +3 -1
- package/dist/adapters/server-settings-host.js +30 -3
- package/dist/adapters/server-settings-sections.js +23 -1
- package/dist/adapters/server-sidebar-host.d.ts +3 -1
- package/dist/adapters/server-sidebar-host.js +10 -1
- package/dist/app/ModalProvider.js +1 -1
- package/dist/approvals/ApprovalShell.js +1 -1
- package/dist/chat/DaemonOrb.d.ts +29 -1
- package/dist/chat/DaemonOrb.js +25 -12
- package/dist/chat/StatusDot.js +8 -2
- package/dist/chat/Transcript.js +11 -4
- package/dist/chat/headless/index.d.ts +3 -2
- package/dist/chat/headless/index.js +11 -10
- package/dist/chat/headless/labels.d.ts +13 -0
- package/dist/chat/headless/labels.js +12 -0
- package/dist/chat/headless/session-list.d.ts +10 -0
- package/dist/chat/headless/sidebar/directory.d.ts +8 -1
- package/dist/chat/headless/sidebar/directory.js +40 -4
- package/dist/chat/headless/sidebar/environment.d.ts +5 -2
- package/dist/chat/headless/sidebar/environment.js +11 -2
- package/dist/chat/headless/sidebar/host.d.ts +15 -0
- package/dist/chat/headless/sidebar/inbox.d.ts +12 -3
- package/dist/chat/headless/sidebar/inbox.js +18 -9
- 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 +28 -2
- package/dist/chat/headless/sidebar/labels.js +16 -0
- package/dist/chat/headless/transcript/fold-actions.d.ts +8 -3
- package/dist/chat/headless/transcript/fold-actions.js +16 -0
- package/dist/chat/headless/transcript/fold.d.ts +2 -1
- package/dist/chat/headless/transcript/fold.js +22 -2
- package/dist/chat/headless/transcript/index.d.ts +2 -1
- package/dist/chat/headless/transcript/index.js +2 -1
- package/dist/chat/headless/transcript/rail.d.ts +93 -0
- package/dist/chat/headless/transcript/rail.js +148 -0
- package/dist/chat/headless/transcript/rows.d.ts +6 -0
- package/dist/chat/headless/transcript/run-failures.d.ts +4 -0
- package/dist/chat/headless/transcript/run-failures.js +29 -1
- package/dist/chat/headless/transcript-labels.d.ts +1 -0
- package/dist/chat/headless/turn-labels.d.ts +1 -0
- package/dist/chat/headless/turn-labels.js +2 -1
- package/dist/chat/index.d.ts +4 -3
- package/dist/chat/index.js +14 -13
- package/dist/chat/interactions/ElicitationCard.js +1 -1
- package/dist/chat/interactions/InteractionCard.js +1 -1
- package/dist/chat/interactions/PlanCard.js +3 -3
- package/dist/chat/interactions/QuestionField.js +4 -4
- package/dist/chat/interactions/QuestionForm.js +3 -3
- package/dist/chat/interactions/SecretInput.js +1 -1
- package/dist/chat/sidebar/ProjectIcon.d.ts +1 -1
- package/dist/chat/sidebar/ProjectIcon.js +1 -1
- package/dist/chat/sidebar/RowChips.d.ts +3 -2
- package/dist/chat/sidebar/RowChips.js +6 -3
- package/dist/chat/sidebar/SessionSidebar.js +13 -14
- package/dist/chat/sidebar/SidebarFrame.d.ts +2 -0
- package/dist/chat/sidebar/SidebarFrame.js +5 -2
- package/dist/chat/sidebar/SidebarSessionRow.d.ts +3 -1
- package/dist/chat/sidebar/SidebarSessionRow.js +3 -1
- package/dist/chat/sidebar/SpacesSection.d.ts +20 -1
- package/dist/chat/sidebar/SpacesSection.js +34 -13
- package/dist/chat/sidebar/index.d.ts +2 -2
- package/dist/chat/sidebar/session-menu.d.ts +11 -2
- package/dist/chat/sidebar/session-menu.js +50 -5
- package/dist/chat/sidebar/sidebar-live.js +1 -1
- package/dist/chat/sidebar/useInboxRows.js +43 -2
- package/dist/chat/sidebar/useInboxTriage.js +19 -14
- package/dist/chat/testing/fixture-sidebar-host.d.ts +7 -1
- package/dist/chat/testing/fixture-sidebar-host.js +12 -0
- package/dist/chat/testing/sidebar.contract.d.ts +6 -0
- package/dist/chat/testing/sidebar.contract.js +24 -0
- package/dist/chat/transcript/InteractionToolBody.js +1 -1
- package/dist/chat/transcript/SelectCursor.d.ts +11 -1
- package/dist/chat/transcript/SelectCursor.js +10 -5
- package/dist/chat/transcript/TranscriptRail.d.ts +86 -0
- package/dist/chat/transcript/TranscriptRail.js +421 -0
- package/dist/chat/transcript/TranscriptRow.js +5 -2
- package/dist/chat/transcript/actions.d.ts +6 -2
- package/dist/chat/transcript/fold.js +19 -1
- package/dist/chat/transcript/index.d.ts +3 -2
- package/dist/chat/transcript/index.js +3 -2
- package/dist/chat/transcript/notices.d.ts +23 -1
- package/dist/chat/transcript/notices.js +108 -27
- package/dist/chat/transcript/prose.js +1 -0
- package/dist/chat/transcript/receipt-parts.d.ts +22 -0
- package/dist/chat/transcript/receipt-parts.js +87 -0
- package/dist/chat/transcript/run-rows.js +3 -76
- package/dist/chat/transcript/script-input.d.ts +1 -1
- package/dist/chat/transcript/scroll-clamp.js +1 -1
- package/dist/chat/transcript/useSettledReveal.js +15 -3
- package/dist/chat/transcript/useStickToBottom.js +2 -1
- package/dist/components/ChoiceCards.js +1 -1
- package/dist/components/ConfirmDialog.js +1 -1
- package/dist/components/CopyValue.d.ts +33 -0
- package/dist/components/CopyValue.js +54 -0
- package/dist/components/Form.js +1 -1
- package/dist/components/HowItWorks.js +1 -1
- package/dist/components/Menu.js +1 -1
- package/dist/components/StepFrame.js +2 -2
- package/dist/components/SwatchPicker.js +1 -1
- package/dist/components/ToggleCard.js +1 -1
- package/dist/components/floating/HoverCard.js +2 -3
- package/dist/components/floating/hover-delay.d.ts +4 -0
- package/dist/components/floating/hover-delay.js +6 -0
- package/dist/core.css +14 -12
- package/dist/dist/index-De9AbmxS.d.ts +1 -0
- package/dist/dist/{index-Betz0OWq.d.ts → index-E1Z0aPmi.d.ts} +20 -2
- package/dist/dist/index.d.ts +5 -5
- package/dist/dist/sandbox-CSUihARm.d.ts +2 -0
- package/dist/dist/{timeout-CyU7HLyz.d.ts → timeout-CmTx6V9y.d.ts} +1 -0
- package/dist/extensions/ExtensionDialogHost.js +1 -1
- package/dist/files/TreeColumn.js +3 -1
- package/dist/files/headless/host.d.ts +2 -2
- package/dist/git/ImportRepoDialog.js +1 -1
- package/dist/git/MoveSessionDialog.js +2 -2
- package/dist/git/SandboxManager.d.ts +42 -0
- package/dist/git/SandboxManager.js +297 -0
- package/dist/git/SyncChip.js +1 -1
- package/dist/git/headless/index.d.ts +2 -1
- package/dist/git/headless/index.js +2 -1
- package/dist/git/headless/labels.d.ts +29 -0
- package/dist/git/headless/labels.js +34 -1
- package/dist/git/headless/sandboxes.d.ts +43 -0
- package/dist/git/headless/sandboxes.js +52 -0
- package/dist/git/index.d.ts +2 -1
- package/dist/git/index.js +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/keybindings/headless/catalog.d.ts +1 -1
- package/dist/keybindings/headless/catalog.js +12 -0
- package/dist/machines/HostsSection.d.ts +1 -1
- package/dist/machines/headless/labels.js +2 -2
- package/dist/motion/flip-list.js +3 -10
- package/dist/motion/presence.d.ts +10 -0
- package/dist/motion/presence.js +20 -1
- package/dist/motion/swap.d.ts +8 -2
- package/dist/motion/swap.js +5 -2
- package/dist/onboarding/conversation.js +27 -15
- package/dist/onboarding/demos/how-it-works.js +1 -1
- package/dist/onboarding/skills/parts.js +4 -4
- package/dist/onboarding/sources/SourceBrowser.js +1 -1
- package/dist/onboarding/steps/ReadyStep.js +1 -1
- package/dist/onboarding/steps/connect/KeyForm.js +1 -1
- package/dist/palette/headless/app-sources.js +20 -0
- package/dist/palette/headless/labels.js +2 -0
- package/dist/session/PlanTracker.js +3 -3
- package/dist/session/SecretsPanel.js +1 -1
- package/dist/session/SessionHeader.d.ts +18 -6
- package/dist/session/SessionHeader.js +67 -12
- package/dist/session/SessionPlaceMenu.d.ts +35 -0
- package/dist/session/SessionPlaceMenu.js +299 -0
- package/dist/session/SessionShell.js +1 -1
- package/dist/session/TurnDetailsDialog.js +1 -1
- package/dist/session/headless/index.d.ts +2 -1
- package/dist/session/headless/index.js +2 -1
- package/dist/session/headless/labels.d.ts +73 -0
- package/dist/session/headless/labels.js +73 -0
- package/dist/session/headless/place.d.ts +49 -0
- package/dist/session/headless/place.js +57 -0
- package/dist/session/index.d.ts +2 -1
- package/dist/session/index.js +2 -1
- package/dist/settings/ConversationPresetsCard.js +1 -1
- package/dist/settings/SettingCard.js +2 -2
- package/dist/settings/SettingsRowsPage.js +1 -1
- package/dist/settings/headless/fixture-sections.js +7 -0
- package/dist/settings/headless/labels.d.ts +1 -1
- package/dist/settings/headless/labels.js +1 -1
- package/dist/settings/headless/layout.d.ts +4 -4
- package/dist/settings/headless/layout.js +1 -1
- package/dist/settings/headless/search.d.ts +2 -2
- package/dist/settings/headless/sections-host.d.ts +20 -2
- package/dist/settings/sections/claude-import/ClaudeImportDialog.js +1 -1
- package/dist/settings/sections/enabled-list/EnabledListSection.js +2 -2
- package/dist/settings/sections/environments/EnvironmentsSection.d.ts +9 -3
- package/dist/settings/sections/environments/EnvironmentsSection.js +292 -52
- package/dist/settings/sections/environments/labels.d.ts +15 -0
- package/dist/settings/sections/environments/labels.js +18 -3
- package/dist/settings/sections/extensions/ChangeOriginDialog.js +1 -1
- package/dist/settings/sections/extensions/ExtensionSourceBrowser.js +1 -1
- package/dist/settings/sections/extensions/ExtensionsSection.d.ts +3 -2
- package/dist/settings/sections/extensions/ExtensionsSection.js +9 -3
- package/dist/settings/sections/host-catalog/HostCatalogSection.js +15 -5
- package/dist/settings/sections/keybindings/labels.d.ts +2 -0
- package/dist/settings/sections/keybindings/labels.js +2 -0
- package/dist/settings/sections/keybindings/rows.js +8 -0
- package/dist/settings/sections/models/SpacesDefaultsSection.d.ts +7 -3
- package/dist/settings/sections/models/SpacesDefaultsSection.js +11 -5
- package/dist/settings/sections/skills/SkillGroups.js +1 -1
- package/dist/settings/server-app.d.ts +4 -2
- package/dist/settings/server-app.js +7 -3
- package/dist/settings/testing/sections.contract.d.ts +7 -1
- package/dist/settings/testing/sections.contract.js +37 -0
- package/dist/styles.css +212 -19
- package/dist/terminal/TerminalDrawer.js +3 -1
- package/dist/workspace/SidePanel.js +3 -1
- package/package.json +2 -2
- package/src/styles/base.css +13 -0
- package/src/styles/chat.css +30 -0
- package/src/styles/components.css +0 -10
- package/src/styles/files.css +5 -0
- package/src/styles/sidebar.css +29 -7
- package/src/styles/terminal.css +6 -0
- package/src/styles/tokens.css +5 -0
- package/src/styles/transcript.css +107 -0
- package/src/styles/workspace.css +6 -0
- package/dist/dist/index-QcFzZlao.d.ts +0 -1
- package/dist/dist/sandbox-D0zsW8I1.d.ts +0 -2
- /package/dist/dist/{types-_Dtoq_No.d.ts → execution-failure-SREfl-EZ.d.ts} +0 -0
|
@@ -5,7 +5,7 @@ import { ExchangeFoldRow } from "./fold.js";
|
|
|
5
5
|
import { Dot, RowFrame, lineStateOf, useRowIcons } from "./frame.js";
|
|
6
6
|
import { LazyRow } from "./LazyRow.js";
|
|
7
7
|
import { MessageGroupRow } from "./messages.js";
|
|
8
|
-
import { COMMAND_DETAIL_LINE, CommandDetailRow, CommandNoteRow, ErrorRow, FailureRow, InfoRow, NoticeRow, SessionEventRow, SpawnEndRow, SpawnStartRow } from "./notices.js";
|
|
8
|
+
import { COMMAND_DETAIL_LINE, CommandDetailRow, CommandNoteRow, ErrorRow, FailureRow, InfoRow, NoticeRow, RepairedRow, SessionEventRow, SpawnEndRow, SpawnStartRow } from "./notices.js";
|
|
9
9
|
import { UserPromptRow } from "./prompt.js";
|
|
10
10
|
import { PromptOriginLabel } from "./PromptOriginLabel.js";
|
|
11
11
|
import { TextRow, ThinkingBatchRow, ThinkingRow } from "./prose.js";
|
|
@@ -157,7 +157,10 @@ const TranscriptRow = memo(({ row, showCaret, receipt, resumable, ctx, renderRow
|
|
|
157
157
|
notice: row.notice,
|
|
158
158
|
text: row.text
|
|
159
159
|
}) : /* @__PURE__ */ jsx(InfoRow, { text: row.text })),
|
|
160
|
-
row.kind === "error" && (row.
|
|
160
|
+
row.kind === "error" && (row.repaired ? /* @__PURE__ */ jsx(RepairedRow, {
|
|
161
|
+
text: row.text,
|
|
162
|
+
detail: row.detail
|
|
163
|
+
}) : row.failure ? /* @__PURE__ */ jsx(FailureRow, {
|
|
161
164
|
text: row.text,
|
|
162
165
|
detail: row.detail,
|
|
163
166
|
failure: row.failure,
|
|
@@ -47,8 +47,12 @@ export interface TranscriptActions {
|
|
|
47
47
|
toolOutput?: (callId: string, turnId?: string) => Promise<string | null>;
|
|
48
48
|
/** Stops a running call (`ChatHost.cancelTool`). */
|
|
49
49
|
cancelTool?: (callId: string) => void;
|
|
50
|
-
/**
|
|
51
|
-
|
|
50
|
+
/**
|
|
51
|
+
* Sets the session's failed environment up again (or reconnects it). Without it a failed setup step
|
|
52
|
+
* offers no Retry. A promise that settles once the host took the request lets a row send what waited
|
|
53
|
+
* for the repair after it.
|
|
54
|
+
*/
|
|
55
|
+
retryEnvironment?: () => void | Promise<void>;
|
|
52
56
|
/** Shows another session, named by its id (a worker a tool call addresses). */
|
|
53
57
|
openSession?: (sessionId: string) => void;
|
|
54
58
|
/** Sends a prompt as the user's next message. */
|
|
@@ -11,7 +11,9 @@ import { FoldAttachments } from "./fold-attachments.js";
|
|
|
11
11
|
import { FoldStatusTime, useLiveFoldStatus } from "./fold-status.js";
|
|
12
12
|
import { WorkerDetails } from "./fold-worker.js";
|
|
13
13
|
import { Caret, Dot, RowFrame } from "./frame.js";
|
|
14
|
+
import { CompactMeta } from "./receipt-parts.js";
|
|
14
15
|
import { createRecentMap } from "./recent-map.js";
|
|
16
|
+
import { useTranscriptRenderers } from "./renderers.js";
|
|
15
17
|
import { ToolDetails } from "./tool-details.js";
|
|
16
18
|
import { ToolTiming } from "./tool-parts.js";
|
|
17
19
|
import { ModelVerdict } from "./tool-row.js";
|
|
@@ -357,6 +359,7 @@ function hasActionDetails(item) {
|
|
|
357
359
|
if (item.kind === "thought") return (item.thoughts ?? []).some((t) => t.text.trim() !== "");
|
|
358
360
|
if (item.kind === "worker") return (item.workerRows ?? []).length > 0;
|
|
359
361
|
if (item.kind === "setup") return item.setup !== void 0;
|
|
362
|
+
if (item.kind === "compact") return (item.compact?.text ?? "").trim() !== "";
|
|
360
363
|
return item.tool !== void 0;
|
|
361
364
|
}
|
|
362
365
|
/**
|
|
@@ -378,10 +381,20 @@ function ActionLine({ item, open = false, onToggle }) {
|
|
|
378
381
|
/* @__PURE__ */ jsxs("span", {
|
|
379
382
|
className: "min-w-0 flex items-baseline gap-2 overflow-hidden",
|
|
380
383
|
children: [
|
|
381
|
-
/* @__PURE__ */
|
|
384
|
+
item.compact ? /* @__PURE__ */ jsxs("span", {
|
|
385
|
+
className: "truncate",
|
|
386
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
387
|
+
className: "tabular-nums",
|
|
388
|
+
children: item.compact.compact.replacedCount
|
|
389
|
+
}), ` ${labels.turnsCompacted}`]
|
|
390
|
+
}) : /* @__PURE__ */ jsx("span", {
|
|
382
391
|
className: `truncate ${running ? "zg-shimmer" : ""}`,
|
|
383
392
|
children: item.label
|
|
384
393
|
}),
|
|
394
|
+
item.compact && /* @__PURE__ */ jsx(CompactMeta, {
|
|
395
|
+
meta: item.compact.compact,
|
|
396
|
+
className: "self-center"
|
|
397
|
+
}),
|
|
385
398
|
item.hint && /* @__PURE__ */ jsx("span", {
|
|
386
399
|
className: "min-w-0 truncate text-[var(--zg-text-subtle)]",
|
|
387
400
|
children: item.hint
|
|
@@ -491,12 +504,17 @@ function ActionGlyph({ state }) {
|
|
|
491
504
|
* Code stays code (monospace, 12px); reasoning stays prose.
|
|
492
505
|
*/
|
|
493
506
|
function ActionDetails({ item, renderRows }) {
|
|
507
|
+
const { Markdown } = useTranscriptRenderers();
|
|
494
508
|
const body = (() => {
|
|
495
509
|
if (item.kind === "thought") return /* @__PURE__ */ jsx("div", {
|
|
496
510
|
className: "text-zg-ui italic leading-relaxed text-[var(--zg-text-muted)] whitespace-pre-line",
|
|
497
511
|
children: (item.thoughts ?? []).map((t) => t.text.replace(/\n{2,}/g, "\n")).join("\n\n")
|
|
498
512
|
});
|
|
499
513
|
if (item.kind === "setup" && item.setup) return /* @__PURE__ */ jsx(EnvironmentSetupDetails, { row: item.setup });
|
|
514
|
+
if (item.kind === "compact" && item.compact) return /* @__PURE__ */ jsx("div", {
|
|
515
|
+
className: "text-zg-ui leading-relaxed text-[var(--zg-text-muted)]",
|
|
516
|
+
children: /* @__PURE__ */ jsx(Markdown, { children: item.compact.text })
|
|
517
|
+
});
|
|
500
518
|
if (item.kind === "worker" || item.tool?.name === "spawn") return /* @__PURE__ */ jsx(WorkerDetails, {
|
|
501
519
|
item,
|
|
502
520
|
renderRows
|
|
@@ -33,7 +33,7 @@ import { Markdown, MarkdownDiagrams, MarkdownDiagramsProps, MarkdownImageProps,
|
|
|
33
33
|
import { ChipOpener, CommandScope, CommandScopeContext, INLINE_CODE_CLASS, MarkdownContext, MarkdownContextValue, OpenSessionContext } from "./markdown-context.js";
|
|
34
34
|
import { MermaidDiagram, MermaidDiagramProps } from "./MermaidDiagram.js";
|
|
35
35
|
import { MessageGroupRow, MessageGroupRowProps } from "./messages.js";
|
|
36
|
-
import { COMMAND_DETAIL_LINE, CommandDetailRow, CommandDetailRowProps, CommandNoteRow, CommandNoteRowProps, ErrorRow, ErrorRowProps, FailureRow, FailureRowProps, InfoRow, InfoRowProps, NoticeRow, NoticeRowProps, SessionEventRow, SessionEventRowProps, SpawnEndRow, SpawnEndRowProps, SpawnStartRow, SpawnStartRowProps } from "./notices.js";
|
|
36
|
+
import { COMMAND_DETAIL_LINE, CommandDetailRow, CommandDetailRowProps, CommandNoteRow, CommandNoteRowProps, ErrorRow, ErrorRowProps, FailureRow, FailureRowProps, InfoRow, InfoRowProps, NoticeRow, NoticeRowProps, RepairedRow, RepairedRowProps, SessionEventRow, SessionEventRowProps, SpawnEndRow, SpawnEndRowProps, SpawnStartRow, SpawnStartRowProps } from "./notices.js";
|
|
37
37
|
import { AttachmentIcon, AttachmentIconProps, UserPromptAttachments, UserPromptAttachmentsProps, UserPromptRow, UserPromptRowProps } from "./prompt.js";
|
|
38
38
|
import { PromptLines, PromptLinesProps, copyPromptLines } from "./prompt-lines.js";
|
|
39
39
|
import { PromptEcho, PromptEchoProps } from "./PromptEcho.js";
|
|
@@ -58,6 +58,7 @@ import { ToolDetails, ToolDetailsProps } from "./tool-details.js";
|
|
|
58
58
|
import { ToolMedia, ToolMediaProps, useToolMedia } from "./tool-media.js";
|
|
59
59
|
import { CODE_PANEL, LoadFullOutputButton, LoadFullOutputButtonProps, ReadFileBlock, ReadFileBlockProps, ToolGlyph, ToolGlyphProps, ToolInput, ToolInputProps, ToolTiming, ToolTimingProps, useFullOutput } from "./tool-parts.js";
|
|
60
60
|
import { ModelVerdict, ModelVerdictProps, NestedToolCalls, NestedToolCallsProps, ToolRow, ToolRowProps } from "./tool-row.js";
|
|
61
|
+
import { TranscriptRail, TranscriptRailProps, TranscriptRailProvider, TranscriptRailProviderProps, useTranscriptRailStore } from "./TranscriptRail.js";
|
|
61
62
|
import { RowContext, SlotEntry, TranscriptRow, TranscriptRowProps, TranscriptRowSlot, TranscriptRowSlotProps, TranscriptTurnMenu, TurnMenuTarget, isHiddenRow } from "./TranscriptRow.js";
|
|
62
63
|
import { TranscriptSearch, TranscriptSearchProps } from "./TranscriptSearch.js";
|
|
63
64
|
import { TurnCommands, TurnCommandsOptions, createTurnCommands, turnViewsOf, useTurnCommands } from "./turn-commands.js";
|
|
@@ -76,4 +77,4 @@ import { MAX_MATCHES, SearchHighlightStyle, TranscriptSearchOptions, TranscriptS
|
|
|
76
77
|
import { useTranscriptSelectionCopy } from "./useTranscriptSelectionCopy.js";
|
|
77
78
|
import { useWheelHoverPause } from "./useWheelHoverPause.js";
|
|
78
79
|
import { MarkdownViews, MarkdownViewsProps } from "./view-scope.js";
|
|
79
|
-
export { AUTO_FILL_PAGES, AnsiSpans, type AnsiSpansProps, AnsiText, type AnsiTextProps, AttachmentIcon, AttachmentIconProps, AttachmentLabelParts, AuthFailureCard, AuthFailureCardProps, BADGE_GLYPH, BadgeEffectContext, BadgeMenuBrowser, BadgeMenuComposer, BadgeMenuProvider, BadgeMenuProviderProps, BadgeMenuSystem, CHIP_CARD_WIDTH, CODE_PANEL, COMMAND_DETAIL_LINE, CardMarkdown, CardMarkdownProps, Caret, CaretProps, ChipCard, ChipCardProps, ChipHover, ChipHoverProps, ChipOpener, CodeBlockSlotProps, CodemodeScript, type CodemodeScriptProps, CommandCard, CommandCardProps, CommandDetailRow, CommandDetailRowProps, CommandNoteRow, CommandNoteRowProps, CommandScope, CommandScopeContext, CommitCard, CommitCardProps, CompactSummaryRow, CompactSummaryRowProps, ComposerSearch, CvRow, CvRowProps, DEFAULT_TRANSCRIPT_RENDERERS, DefaultInlineText, DefaultInlineTextProps, DefaultMarkdown, DefaultMarkdownProps, DefaultPrompt, DefaultPromptProps, DefaultSessionTitle, DefaultSessionTitleProps, DiffLines, DiffLinesProps, Dot, DotProps, EditDiffBlock, EditDiffBlockProps, EnvironmentSetupDetails, EnvironmentSetupDetailsProps, EnvironmentSetupRow, EnvironmentSetupRowProps, ErrorRow, ErrorRowProps, ExchangeFoldRow, ExchangeFoldRowProps, FILL_MIN_PROMPTS, FailedMark, FailedMarkProps, FailureRow, FailureRowProps, FileBadgeIcon, FileBadgeIconProps, FoldHeader, FoldHeaderProps, GUTTER_STEP_PX, HostTurnMenuOptions, INLINE_CODE_CLASS, ImageGenerationBlock, ImageGenerationBlockProps, InfoRow, InfoRowProps, InlineChipText, InlineChipTextProps, InlineCode, InlineCodeProps, InlineTextSlotProps, InteractionTool, InteractionToolBody, InteractionToolBodyProps, LazyRow, LazyRowProps, LineState, LinkBadge, LinkBadgeProps, LinkIcon, LinkIconProps, LiveOutput, type LiveOutputProps, LiveScriptsContext, LoadEarlierRow, LoadEarlierRowProps, LoadFullOutputButton, LoadFullOutputButtonProps, MAX_MATCHES, Markdown, MarkdownContext, MarkdownContextValue, MarkdownDiagrams, MarkdownDiagramsProps, MarkdownImageProps, MarkdownLinkProps, MarkdownProps, MarkdownSlotProps, MarkdownViews, type MarkdownViewsProps, MermaidDiagram, type MermaidDiagramProps, MessageGroupRow, MessageGroupRowProps, ModelVerdict, ModelVerdictProps, NestedToolCalls, NestedToolCallsProps, NoticeRow, NoticeRowProps, OpenBadgeMenu, OpenSessionContext, ParsedRef, ParsedReferenceUrl, PromptEcho, PromptEchoProps, PromptLines, PromptLinesProps, PromptSlotProps, ProseMarkdown, ProseMarkdownProps, ReadFileBlock, ReadFileBlockProps, RefChip, RefChipProps, RefMatch, ReferenceChip, ReferenceChipProps, ReferenceText, ReferenceTextProps, RowContext, RowFrame, RowFrameProps, RowIconsContext, RowPlace, RunReceiptInline, RunReceiptInlineProps, RunSummaryRow, RunSummaryRowProps, RunnableCodeBlock, type RunnableCodeBlockProps, ScrollPosition, SearchHighlightStyle, SelectCursor, SelectCursorProps, SelectTurnCommands, SelectTurnExit, SelectTurnHintKeys, SelectTurnHintKeysProps, SelectTurnKeysOptions, SelectTurnProvider, SelectTurnProviderProps, SelectTurnState, SelectTurnValue, SessionCard, SessionCardProps, SessionEventRow, SessionEventRowProps, SessionTitleSlotProps, ShellBlockProvider, type ShellBlockProviderProps, type ShellBlockScope, SkillCard, SkillCardProps, SkillGroupCard, SkillGroupCardProps, SlotEntry, SpawnEndRow, SpawnEndRowProps, SpawnStartRow, SpawnStartRowProps, StickToBottomOptions, SubagentBlock, SubagentBlockProps, TaskBatchRow, TaskBatchRowProps, TaskRow, TaskRowProps, TextPreviewSlotProps, TextRow, TextRowProps, ThinkingBatchRow, ThinkingBatchRowProps, ThinkingRow, ThinkingRowProps, ToolBatchRow, ToolBatchRowProps, ToolBodySlotProps, ToolDetails, ToolDetailsProps, ToolGlyph, ToolGlyphProps, ToolInput, ToolInputProps, ToolMedia, type ToolMediaItem, ToolMediaProps, ToolRow, ToolRowProps, ToolTiming, ToolTimingProps, TranscriptAccounts, TranscriptActions, TranscriptActionsProvider, TranscriptActionsProviderProps, TranscriptFind, TranscriptFindKeyOptions, TranscriptFindOptions, TranscriptFindTarget, TranscriptRenderers, TranscriptRenderersProvider, type TranscriptRenderersProviderProps, TranscriptRow, TranscriptRowProps, TranscriptRowSlot, TranscriptRowSlotProps, TranscriptRows, TranscriptRowsInput, TranscriptScrollInputs, TranscriptSearch, TranscriptSearchOptions, TranscriptSearchProps, TranscriptSearchState, TranscriptSettling, TranscriptTurnMenu, TurnCommands, TurnCommandsOptions, TurnMenuActions, TurnMenuTarget, UserBashRow, UserBashRowProps, UserPromptAttachments, UserPromptAttachmentsProps, UserPromptRow, UserPromptRowProps, WorkerDetails, WorkerDetailsProps, classifyInlineRef, copyPromptLines, createTurnCommands, defaultAttachmentLabel, drawsImageGeneration, fileBadgeName, fileBadgeSpec, findRefs, hasInteractionBody, holdForceMountRows, imageRequestsOf, isHiddenRow, lineStateOf, linkGlyph, mountRowNow, numberRef, parseRefUrl, parseReferenceUrl, parseToolMedia, refHref, referenceUrl, remarkReferences, remarkRefs, savedPaths, siteIconValue, turnViewsOf, useBackgroundMount, useBadgeMenu, useChipResolution, useCommand, useCommitInfo, useComposerSearch, useFillViewportScrollback, useForceMountRows, useFullOutput, useHostTurnMenu, useModelName, useReferenceMatches, useReferenceProviders, useReferenceView, useReferencedSession, useResolveChipNow, useRowIcons, useSelectStops, useSelectTurn, useSelectTurnKeys, useSettledReveal, useShellBlockScope, useSiteIcon, useSkill, useStickToBottom, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause };
|
|
80
|
+
export { AUTO_FILL_PAGES, AnsiSpans, type AnsiSpansProps, AnsiText, type AnsiTextProps, AttachmentIcon, AttachmentIconProps, AttachmentLabelParts, AuthFailureCard, AuthFailureCardProps, BADGE_GLYPH, BadgeEffectContext, BadgeMenuBrowser, BadgeMenuComposer, BadgeMenuProvider, BadgeMenuProviderProps, BadgeMenuSystem, CHIP_CARD_WIDTH, CODE_PANEL, COMMAND_DETAIL_LINE, CardMarkdown, CardMarkdownProps, Caret, CaretProps, ChipCard, ChipCardProps, ChipHover, ChipHoverProps, ChipOpener, CodeBlockSlotProps, CodemodeScript, type CodemodeScriptProps, CommandCard, CommandCardProps, CommandDetailRow, CommandDetailRowProps, CommandNoteRow, CommandNoteRowProps, CommandScope, CommandScopeContext, CommitCard, CommitCardProps, CompactSummaryRow, CompactSummaryRowProps, ComposerSearch, CvRow, CvRowProps, DEFAULT_TRANSCRIPT_RENDERERS, DefaultInlineText, DefaultInlineTextProps, DefaultMarkdown, DefaultMarkdownProps, DefaultPrompt, DefaultPromptProps, DefaultSessionTitle, DefaultSessionTitleProps, DiffLines, DiffLinesProps, Dot, DotProps, EditDiffBlock, EditDiffBlockProps, EnvironmentSetupDetails, EnvironmentSetupDetailsProps, EnvironmentSetupRow, EnvironmentSetupRowProps, ErrorRow, ErrorRowProps, ExchangeFoldRow, ExchangeFoldRowProps, FILL_MIN_PROMPTS, FailedMark, FailedMarkProps, FailureRow, FailureRowProps, FileBadgeIcon, FileBadgeIconProps, FoldHeader, FoldHeaderProps, GUTTER_STEP_PX, HostTurnMenuOptions, INLINE_CODE_CLASS, ImageGenerationBlock, ImageGenerationBlockProps, InfoRow, InfoRowProps, InlineChipText, InlineChipTextProps, InlineCode, InlineCodeProps, InlineTextSlotProps, InteractionTool, InteractionToolBody, InteractionToolBodyProps, LazyRow, LazyRowProps, LineState, LinkBadge, LinkBadgeProps, LinkIcon, LinkIconProps, LiveOutput, type LiveOutputProps, LiveScriptsContext, LoadEarlierRow, LoadEarlierRowProps, LoadFullOutputButton, LoadFullOutputButtonProps, MAX_MATCHES, Markdown, MarkdownContext, MarkdownContextValue, MarkdownDiagrams, MarkdownDiagramsProps, MarkdownImageProps, MarkdownLinkProps, MarkdownProps, MarkdownSlotProps, MarkdownViews, type MarkdownViewsProps, MermaidDiagram, type MermaidDiagramProps, MessageGroupRow, MessageGroupRowProps, ModelVerdict, ModelVerdictProps, NestedToolCalls, NestedToolCallsProps, NoticeRow, NoticeRowProps, OpenBadgeMenu, OpenSessionContext, ParsedRef, ParsedReferenceUrl, PromptEcho, PromptEchoProps, PromptLines, PromptLinesProps, PromptSlotProps, ProseMarkdown, ProseMarkdownProps, ReadFileBlock, ReadFileBlockProps, RefChip, RefChipProps, RefMatch, ReferenceChip, ReferenceChipProps, ReferenceText, ReferenceTextProps, RepairedRow, RepairedRowProps, RowContext, RowFrame, RowFrameProps, RowIconsContext, RowPlace, RunReceiptInline, RunReceiptInlineProps, RunSummaryRow, RunSummaryRowProps, RunnableCodeBlock, type RunnableCodeBlockProps, ScrollPosition, SearchHighlightStyle, SelectCursor, SelectCursorProps, SelectTurnCommands, SelectTurnExit, SelectTurnHintKeys, SelectTurnHintKeysProps, SelectTurnKeysOptions, SelectTurnProvider, SelectTurnProviderProps, SelectTurnState, SelectTurnValue, SessionCard, SessionCardProps, SessionEventRow, SessionEventRowProps, SessionTitleSlotProps, ShellBlockProvider, type ShellBlockProviderProps, type ShellBlockScope, SkillCard, SkillCardProps, SkillGroupCard, SkillGroupCardProps, SlotEntry, SpawnEndRow, SpawnEndRowProps, SpawnStartRow, SpawnStartRowProps, StickToBottomOptions, SubagentBlock, SubagentBlockProps, TaskBatchRow, TaskBatchRowProps, TaskRow, TaskRowProps, TextPreviewSlotProps, TextRow, TextRowProps, ThinkingBatchRow, ThinkingBatchRowProps, ThinkingRow, ThinkingRowProps, ToolBatchRow, ToolBatchRowProps, ToolBodySlotProps, ToolDetails, ToolDetailsProps, ToolGlyph, ToolGlyphProps, ToolInput, ToolInputProps, ToolMedia, type ToolMediaItem, ToolMediaProps, ToolRow, ToolRowProps, ToolTiming, ToolTimingProps, TranscriptAccounts, TranscriptActions, TranscriptActionsProvider, TranscriptActionsProviderProps, TranscriptFind, TranscriptFindKeyOptions, TranscriptFindOptions, TranscriptFindTarget, TranscriptRail, type TranscriptRailProps, TranscriptRailProvider, type TranscriptRailProviderProps, TranscriptRenderers, TranscriptRenderersProvider, type TranscriptRenderersProviderProps, TranscriptRow, TranscriptRowProps, TranscriptRowSlot, TranscriptRowSlotProps, TranscriptRows, TranscriptRowsInput, TranscriptScrollInputs, TranscriptSearch, TranscriptSearchOptions, TranscriptSearchProps, TranscriptSearchState, TranscriptSettling, TranscriptTurnMenu, TurnCommands, TurnCommandsOptions, TurnMenuActions, TurnMenuTarget, UserBashRow, UserBashRowProps, UserPromptAttachments, UserPromptAttachmentsProps, UserPromptRow, UserPromptRowProps, WorkerDetails, WorkerDetailsProps, classifyInlineRef, copyPromptLines, createTurnCommands, defaultAttachmentLabel, drawsImageGeneration, fileBadgeName, fileBadgeSpec, findRefs, hasInteractionBody, holdForceMountRows, imageRequestsOf, isHiddenRow, lineStateOf, linkGlyph, mountRowNow, numberRef, parseRefUrl, parseReferenceUrl, parseToolMedia, refHref, referenceUrl, remarkReferences, remarkRefs, savedPaths, siteIconValue, turnViewsOf, useBackgroundMount, useBadgeMenu, useChipResolution, useCommand, useCommitInfo, useComposerSearch, useFillViewportScrollback, useForceMountRows, useFullOutput, useHostTurnMenu, useModelName, useReferenceMatches, useReferenceProviders, useReferenceView, useReferencedSession, useResolveChipNow, useRowIcons, useSelectStops, useSelectTurn, useSelectTurnKeys, useSettledReveal, useShellBlockScope, useSiteIcon, useSkill, useStickToBottom, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptRailStore, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause };
|
|
@@ -29,7 +29,7 @@ import { CommandScopeContext, INLINE_CODE_CLASS, MarkdownContext, OpenSessionCon
|
|
|
29
29
|
import { MermaidDiagram } from "./MermaidDiagram.js";
|
|
30
30
|
import { TranscriptRenderersProvider } from "./renderer-slots.js";
|
|
31
31
|
import { MessageGroupRow } from "./messages.js";
|
|
32
|
-
import { COMMAND_DETAIL_LINE, CommandDetailRow, CommandNoteRow, ErrorRow, FailureRow, InfoRow, NoticeRow, SessionEventRow, SpawnEndRow, SpawnStartRow } from "./notices.js";
|
|
32
|
+
import { COMMAND_DETAIL_LINE, CommandDetailRow, CommandNoteRow, ErrorRow, FailureRow, InfoRow, NoticeRow, RepairedRow, SessionEventRow, SpawnEndRow, SpawnStartRow } from "./notices.js";
|
|
33
33
|
import { AttachmentIcon, UserPromptAttachments, UserPromptRow } from "./prompt.js";
|
|
34
34
|
import { PromptLines, copyPromptLines } from "./prompt-lines.js";
|
|
35
35
|
import { PromptEcho } from "./PromptEcho.js";
|
|
@@ -53,6 +53,7 @@ import { ToolDetails } from "./tool-details.js";
|
|
|
53
53
|
import { ToolMedia, useToolMedia } from "./tool-media.js";
|
|
54
54
|
import { CODE_PANEL, LoadFullOutputButton, ReadFileBlock, ToolGlyph, ToolInput, ToolTiming, useFullOutput } from "./tool-parts.js";
|
|
55
55
|
import { ModelVerdict, NestedToolCalls, ToolRow } from "./tool-row.js";
|
|
56
|
+
import { TranscriptRail, TranscriptRailProvider, useTranscriptRailStore } from "./TranscriptRail.js";
|
|
56
57
|
import { TranscriptRow, TranscriptRowSlot, isHiddenRow } from "./TranscriptRow.js";
|
|
57
58
|
import { TranscriptSearch } from "./TranscriptSearch.js";
|
|
58
59
|
import { createTurnCommands, turnViewsOf, useTurnCommands } from "./turn-commands.js";
|
|
@@ -71,4 +72,4 @@ import { MAX_MATCHES, SearchHighlightStyle, useTranscriptSearch } from "./useTra
|
|
|
71
72
|
import { useTranscriptSelectionCopy } from "./useTranscriptSelectionCopy.js";
|
|
72
73
|
import { useWheelHoverPause } from "./useWheelHoverPause.js";
|
|
73
74
|
import { MarkdownViews } from "./view-scope.js";
|
|
74
|
-
export { AUTO_FILL_PAGES, AnsiSpans, AnsiText, AttachmentIcon, AuthFailureCard, BADGE_GLYPH, BadgeMenuProvider, CHIP_CARD_WIDTH, CODE_PANEL, COMMAND_DETAIL_LINE, CardMarkdown, Caret, ChipCard, ChipHover, CodemodeScript, CommandCard, CommandDetailRow, CommandNoteRow, CommandScopeContext, CommitCard, CompactSummaryRow, CvRow, DEFAULT_TRANSCRIPT_RENDERERS, DefaultInlineText, DefaultMarkdown, DefaultPrompt, DefaultSessionTitle, DiffLines, Dot, EditDiffBlock, EnvironmentSetupDetails, EnvironmentSetupRow, ErrorRow, ExchangeFoldRow, FILL_MIN_PROMPTS, FailedMark, FailureRow, FileBadgeIcon, FoldHeader, GUTTER_STEP_PX, INLINE_CODE_CLASS, ImageGenerationBlock, InfoRow, InlineChipText, InlineCode, InteractionToolBody, LazyRow, LinkBadge, LinkIcon, LiveOutput, LiveScriptsContext, LoadEarlierRow, LoadFullOutputButton, MAX_MATCHES, Markdown, MarkdownContext, MarkdownDiagrams, MarkdownViews, MermaidDiagram, MessageGroupRow, ModelVerdict, NestedToolCalls, NoticeRow, OpenSessionContext, PromptEcho, PromptLines, ProseMarkdown, ReadFileBlock, RefChip, ReferenceChip, ReferenceText, RowFrame, RowIconsContext, RunReceiptInline, RunSummaryRow, RunnableCodeBlock, SearchHighlightStyle, SelectCursor, SelectTurnExit, SelectTurnHintKeys, SelectTurnProvider, SessionCard, SessionEventRow, ShellBlockProvider, SkillCard, SkillGroupCard, SpawnEndRow, SpawnStartRow, SubagentBlock, TaskBatchRow, TaskRow, TextRow, ThinkingBatchRow, ThinkingRow, ToolBatchRow, ToolDetails, ToolGlyph, ToolInput, ToolMedia, ToolRow, ToolTiming, TranscriptActionsProvider, TranscriptRenderersProvider, TranscriptRow, TranscriptRowSlot, TranscriptSearch, TranscriptSettling, UserBashRow, UserPromptAttachments, UserPromptRow, WorkerDetails, classifyInlineRef, copyPromptLines, createTurnCommands, defaultAttachmentLabel, drawsImageGeneration, fileBadgeName, fileBadgeSpec, findRefs, hasInteractionBody, holdForceMountRows, imageRequestsOf, isHiddenRow, lineStateOf, linkGlyph, mountRowNow, numberRef, parseRefUrl, parseReferenceUrl, parseToolMedia, refHref, referenceUrl, remarkReferences, remarkRefs, savedPaths, siteIconValue, turnViewsOf, useBackgroundMount, useBadgeMenu, useChipResolution, useCommand, useCommitInfo, useComposerSearch, useFillViewportScrollback, useForceMountRows, useFullOutput, useHostTurnMenu, useModelName, useReferenceMatches, useReferenceProviders, useReferenceView, useReferencedSession, useResolveChipNow, useRowIcons, useSelectStops, useSelectTurn, useSelectTurnKeys, useSettledReveal, useShellBlockScope, useSiteIcon, useSkill, useStickToBottom, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause };
|
|
75
|
+
export { AUTO_FILL_PAGES, AnsiSpans, AnsiText, AttachmentIcon, AuthFailureCard, BADGE_GLYPH, BadgeMenuProvider, CHIP_CARD_WIDTH, CODE_PANEL, COMMAND_DETAIL_LINE, CardMarkdown, Caret, ChipCard, ChipHover, CodemodeScript, CommandCard, CommandDetailRow, CommandNoteRow, CommandScopeContext, CommitCard, CompactSummaryRow, CvRow, DEFAULT_TRANSCRIPT_RENDERERS, DefaultInlineText, DefaultMarkdown, DefaultPrompt, DefaultSessionTitle, DiffLines, Dot, EditDiffBlock, EnvironmentSetupDetails, EnvironmentSetupRow, ErrorRow, ExchangeFoldRow, FILL_MIN_PROMPTS, FailedMark, FailureRow, FileBadgeIcon, FoldHeader, GUTTER_STEP_PX, INLINE_CODE_CLASS, ImageGenerationBlock, InfoRow, InlineChipText, InlineCode, InteractionToolBody, LazyRow, LinkBadge, LinkIcon, LiveOutput, LiveScriptsContext, LoadEarlierRow, LoadFullOutputButton, MAX_MATCHES, Markdown, MarkdownContext, MarkdownDiagrams, MarkdownViews, MermaidDiagram, MessageGroupRow, ModelVerdict, NestedToolCalls, NoticeRow, OpenSessionContext, PromptEcho, PromptLines, ProseMarkdown, ReadFileBlock, RefChip, ReferenceChip, ReferenceText, RepairedRow, RowFrame, RowIconsContext, RunReceiptInline, RunSummaryRow, RunnableCodeBlock, SearchHighlightStyle, SelectCursor, SelectTurnExit, SelectTurnHintKeys, SelectTurnProvider, SessionCard, SessionEventRow, ShellBlockProvider, SkillCard, SkillGroupCard, SpawnEndRow, SpawnStartRow, SubagentBlock, TaskBatchRow, TaskRow, TextRow, ThinkingBatchRow, ThinkingRow, ToolBatchRow, ToolDetails, ToolGlyph, ToolInput, ToolMedia, ToolRow, ToolTiming, TranscriptActionsProvider, TranscriptRail, TranscriptRailProvider, TranscriptRenderersProvider, TranscriptRow, TranscriptRowSlot, TranscriptSearch, TranscriptSettling, UserBashRow, UserPromptAttachments, UserPromptRow, WorkerDetails, classifyInlineRef, copyPromptLines, createTurnCommands, defaultAttachmentLabel, drawsImageGeneration, fileBadgeName, fileBadgeSpec, findRefs, hasInteractionBody, holdForceMountRows, imageRequestsOf, isHiddenRow, lineStateOf, linkGlyph, mountRowNow, numberRef, parseRefUrl, parseReferenceUrl, parseToolMedia, refHref, referenceUrl, remarkReferences, remarkRefs, savedPaths, siteIconValue, turnViewsOf, useBackgroundMount, useBadgeMenu, useChipResolution, useCommand, useCommitInfo, useComposerSearch, useFillViewportScrollback, useForceMountRows, useFullOutput, useHostTurnMenu, useModelName, useReferenceMatches, useReferenceProviders, useReferenceView, useReferencedSession, useResolveChipNow, useRowIcons, useSelectStops, useSelectTurn, useSelectTurnKeys, useSettledReveal, useShellBlockScope, useSiteIcon, useSkill, useStickToBottom, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptRailStore, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause };
|
|
@@ -67,6 +67,24 @@ export interface ErrorRowProps {
|
|
|
67
67
|
}
|
|
68
68
|
/** Renders an error line in the transcript's error tone. */
|
|
69
69
|
export declare const ErrorRow: import("react").MemoExoticComponent<({ text, className, style }: ErrorRowProps) => import("react").JSX.Element>;
|
|
70
|
+
/** Props for {@link RepairedRow}. */
|
|
71
|
+
export interface RepairedRowProps {
|
|
72
|
+
/** The error the run stopped on, for the tooltip. */
|
|
73
|
+
text: string;
|
|
74
|
+
/** Its detail: `environment.failure` picks the words. */
|
|
75
|
+
detail?: StreamEvent['detail'];
|
|
76
|
+
/** Extra classes on the root element. */
|
|
77
|
+
className?: string;
|
|
78
|
+
/** Inline styles on the root element, merged after the component's own. */
|
|
79
|
+
style?: CSSProperties;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* An error on a broken environment that was fixed since (a later setup or
|
|
83
|
+
* reply, `markRunFailures`' `repaired`): one quiet line, "Environment set up
|
|
84
|
+
* again" or "answered again", the error kept for its tooltip. No button:
|
|
85
|
+
* there is nothing left to do.
|
|
86
|
+
*/
|
|
87
|
+
export declare const RepairedRow: import("react").MemoExoticComponent<({ text, detail, className, style }: RepairedRowProps) => import("react").JSX.Element>;
|
|
70
88
|
/** Props for {@link FailureRow}. */
|
|
71
89
|
export interface FailureRowProps {
|
|
72
90
|
/** The reason the run stopped, in muted text after `Stopped`. */
|
|
@@ -91,7 +109,11 @@ export interface FailureRowProps {
|
|
|
91
109
|
* had done something, Retry (the same prompt) when it had not. Both hand
|
|
92
110
|
* their prompt to `onResume` (the desktop app: the composer's send); without
|
|
93
111
|
* it there is no button. A run stopped by a failed sign-in (`detail.auth`)
|
|
94
|
-
* shows the sign-in's card instead (`AuthFailureCard`).
|
|
112
|
+
* shows the sign-in's card instead (`AuthFailureCard`). A run stopped by a
|
|
113
|
+
* broken environment (`detail.environment`) repairs it first
|
|
114
|
+
* (`TranscriptActions.retryEnvironment`), then sends: the prompt waits in the
|
|
115
|
+
* host's queue until it is back. Setting a gone one up anew asks first (the
|
|
116
|
+
* app's confirm dialog), as it can cost work.
|
|
95
117
|
*/
|
|
96
118
|
export declare const FailureRow: import("react").MemoExoticComponent<({ text, detail, failure, resumable, onResume, className, style }: FailureRowProps) => import("react").JSX.Element>;
|
|
97
119
|
/** Props for {@link SessionEventRow}. */
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
import { useOptionalConfirm } from "../../app/useConfirm.js";
|
|
2
|
+
import { useTooltip } from "../../components/Tooltip.js";
|
|
1
3
|
import { useStaysMounted } from "../../motion/collapse.js";
|
|
2
4
|
import { failureTooltip } from "../headless/transcript/run-failures.js";
|
|
3
5
|
import { useChatLabels } from "../useChatLabels.js";
|
|
6
|
+
import { useTranscriptActions } from "./actions.js";
|
|
4
7
|
import { AuthFailureCard } from "./AuthFailureCard.js";
|
|
5
8
|
import { Caret } from "./frame.js";
|
|
6
9
|
import { useTranscriptRenderers } from "./renderers.js";
|
|
7
10
|
import { memo, useId, useState } from "react";
|
|
8
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
9
12
|
import { CONTINUE_PROMPT, SESSION_EVENT_STATUS_STYLE, describeSpawnEnd, sessionDirLabel, sessionEventExcerpt, sessionEventMeta, shortSessionId, spawnStartParts } from "zidane/chat/pure";
|
|
10
13
|
// src/chat/transcript/notices.tsx
|
|
11
14
|
/**
|
|
@@ -67,13 +70,17 @@ const NoticeRow = memo(({ notice, text, className, style }) => {
|
|
|
67
70
|
style,
|
|
68
71
|
title: notice.label,
|
|
69
72
|
children: [/* @__PURE__ */ jsxs("span", {
|
|
70
|
-
className: `inline-flex items-center gap-1.5 px-2 py-0.5 rounded-full shadow-[inset_0_0_0_1px_var(--zg-hairline)] font-medium ${tone}`,
|
|
73
|
+
className: `inline-flex max-w-full items-center gap-1.5 px-2 py-0.5 rounded-full shadow-[inset_0_0_0_1px_var(--zg-hairline)] font-medium ${tone}`,
|
|
71
74
|
children: [/* @__PURE__ */ jsx("span", {
|
|
72
75
|
"aria-hidden": true,
|
|
73
76
|
className: `${icon} shrink-0`
|
|
74
|
-
}),
|
|
77
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
78
|
+
className: "min-w-0 truncate",
|
|
79
|
+
title: head,
|
|
80
|
+
children: head
|
|
81
|
+
})]
|
|
75
82
|
}), details.length > 0 && /* @__PURE__ */ jsx("span", {
|
|
76
|
-
className: "min-w-0 flex flex-col gap-0.5
|
|
83
|
+
className: "min-w-0 max-w-full flex flex-col gap-0.5 px-2 break-words text-[var(--zg-text-muted)]",
|
|
77
84
|
children: details.map((line, i) => /* @__PURE__ */ jsx("span", { children: line }, i))
|
|
78
85
|
})]
|
|
79
86
|
});
|
|
@@ -89,16 +96,64 @@ const ErrorRow = memo(({ text, className, style }) => {
|
|
|
89
96
|
});
|
|
90
97
|
});
|
|
91
98
|
/**
|
|
99
|
+
* An error on a broken environment that was fixed since (a later setup or
|
|
100
|
+
* reply, `markRunFailures`' `repaired`): one quiet line, "Environment set up
|
|
101
|
+
* again" or "answered again", the error kept for its tooltip. No button:
|
|
102
|
+
* there is nothing left to do.
|
|
103
|
+
*/
|
|
104
|
+
const RepairedRow = memo(({ text, detail, className, style }) => {
|
|
105
|
+
const labels = useChatLabels();
|
|
106
|
+
const why = failureTooltip(text, detail, labels.resetsAt);
|
|
107
|
+
const tip = useTooltip(why ? /* @__PURE__ */ jsx("span", {
|
|
108
|
+
className: "whitespace-pre-line",
|
|
109
|
+
children: why
|
|
110
|
+
}) : null, { maxWidth: 360 });
|
|
111
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
112
|
+
className: [`flex items-center gap-1.5 min-w-0 ${BODY_TEXT} text-[var(--zg-text-muted)]`, className].filter(Boolean).join(" "),
|
|
113
|
+
style,
|
|
114
|
+
"data-testid": "environment-repaired",
|
|
115
|
+
children: [
|
|
116
|
+
/* @__PURE__ */ jsx("span", {
|
|
117
|
+
"aria-hidden": true,
|
|
118
|
+
className: "i-ph-arrow-counter-clockwise text-zg-ui shrink-0"
|
|
119
|
+
}),
|
|
120
|
+
/* @__PURE__ */ jsx("span", {
|
|
121
|
+
...tip.anchorProps,
|
|
122
|
+
className: "min-w-0 truncate",
|
|
123
|
+
children: labels.environmentRepaired[detail?.environment?.failure ?? "lost"]
|
|
124
|
+
}),
|
|
125
|
+
tip.tip
|
|
126
|
+
]
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
RepairedRow.displayName = "RepairedRow";
|
|
130
|
+
/**
|
|
92
131
|
* How a run that ended early reads: one quiet line (`Stopped`, then the
|
|
93
132
|
* reason in muted text, for a failure; `Stopped by you` for a stop), and on the transcript's last
|
|
94
133
|
* word a small button that picks the work back up: Continue when the run
|
|
95
134
|
* had done something, Retry (the same prompt) when it had not. Both hand
|
|
96
135
|
* their prompt to `onResume` (the desktop app: the composer's send); without
|
|
97
136
|
* it there is no button. A run stopped by a failed sign-in (`detail.auth`)
|
|
98
|
-
* shows the sign-in's card instead (`AuthFailureCard`).
|
|
137
|
+
* shows the sign-in's card instead (`AuthFailureCard`). A run stopped by a
|
|
138
|
+
* broken environment (`detail.environment`) repairs it first
|
|
139
|
+
* (`TranscriptActions.retryEnvironment`), then sends: the prompt waits in the
|
|
140
|
+
* host's queue until it is back. Setting a gone one up anew asks first (the
|
|
141
|
+
* app's confirm dialog), as it can cost work.
|
|
99
142
|
*/
|
|
100
143
|
const FailureRow = memo(({ text, detail, failure, resumable, onResume, className, style }) => {
|
|
101
144
|
const labels = useChatLabels();
|
|
145
|
+
const { retryEnvironment } = useTranscriptActions();
|
|
146
|
+
const confirm = useOptionalConfirm();
|
|
147
|
+
const [repairing, setRepairing] = useState(false);
|
|
148
|
+
const broken = detail?.environment;
|
|
149
|
+
const repairs = broken !== void 0 && retryEnvironment !== void 0;
|
|
150
|
+
const retry = failure.resume === "retry" && failure.prompt;
|
|
151
|
+
const tip = useTooltip(repairs ? labels.retryEnvironmentHint : retry ? labels.retryHint : labels.continueHint);
|
|
152
|
+
const whyText = failureTooltip(text, detail, labels.resetsAt);
|
|
153
|
+
const why = useTooltip(whyText ? /* @__PURE__ */ jsx("span", {
|
|
154
|
+
className: "whitespace-pre-line",
|
|
155
|
+
children: whyText
|
|
156
|
+
}) : null, { maxWidth: 360 });
|
|
102
157
|
if (detail?.auth && failure.cause === "error") return /* @__PURE__ */ jsx(AuthFailureCard, {
|
|
103
158
|
auth: detail.auth,
|
|
104
159
|
text,
|
|
@@ -109,33 +164,59 @@ const FailureRow = memo(({ text, detail, failure, resumable, onResume, className
|
|
|
109
164
|
className,
|
|
110
165
|
style
|
|
111
166
|
});
|
|
112
|
-
const retry = failure.resume === "retry" && failure.prompt;
|
|
113
167
|
const byUser = failure.cause === "aborted";
|
|
168
|
+
const resume = async (send) => {
|
|
169
|
+
const prompt = retry ? failure.prompt : CONTINUE_PROMPT;
|
|
170
|
+
if (!broken || !retryEnvironment) {
|
|
171
|
+
send(prompt);
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
if (broken.failure === "lost" && confirm) {
|
|
175
|
+
if (!await confirm({
|
|
176
|
+
title: labels.retryEnvironmentLostTitle,
|
|
177
|
+
message: broken.context === "sandbox" ? labels.retryEnvironmentLostSandboxDetail : labels.retryEnvironmentLostDetail,
|
|
178
|
+
confirmLabel: labels.retryEnvironmentLostConfirm,
|
|
179
|
+
destructive: true
|
|
180
|
+
})) return;
|
|
181
|
+
}
|
|
182
|
+
setRepairing(true);
|
|
183
|
+
try {
|
|
184
|
+
await Promise.resolve(retryEnvironment()).catch(() => void 0);
|
|
185
|
+
} finally {
|
|
186
|
+
setRepairing(false);
|
|
187
|
+
}
|
|
188
|
+
send(prompt);
|
|
189
|
+
};
|
|
114
190
|
return /* @__PURE__ */ jsxs("div", {
|
|
115
191
|
className: [`flex items-center gap-2 min-w-0 ${BODY_TEXT}`, className].filter(Boolean).join(" "),
|
|
116
192
|
style,
|
|
117
193
|
"data-testid": "run-failure",
|
|
118
194
|
"data-cause": failure.cause,
|
|
119
|
-
children: [
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
195
|
+
children: [
|
|
196
|
+
/* @__PURE__ */ jsxs("span", {
|
|
197
|
+
...why.anchorProps,
|
|
198
|
+
className: "min-w-0 truncate",
|
|
199
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
200
|
+
className: byUser ? "text-[var(--zg-text-muted)]" : ERROR_TONE,
|
|
201
|
+
children: byUser ? labels.stoppedByYou : labels.stopped
|
|
202
|
+
}), text && /* @__PURE__ */ jsxs("span", {
|
|
203
|
+
className: "text-[var(--zg-text-muted)]",
|
|
204
|
+
children: [" ", text]
|
|
205
|
+
})]
|
|
206
|
+
}),
|
|
207
|
+
why.tip,
|
|
208
|
+
resumable && onResume && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("button", {
|
|
209
|
+
...tip.anchorProps,
|
|
210
|
+
type: "button",
|
|
211
|
+
disabled: repairing,
|
|
212
|
+
onClick: () => void resume(onResume),
|
|
213
|
+
className: "zg-segment-item zg-press-soft shrink-0 inline-flex items-center gap-1 h-6 px-2 -my-px rounded-full border-0 bg-transparent cursor-pointer text-[var(--zg-text-muted)] zg-focus-ring",
|
|
214
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
215
|
+
className: "i-ph-arrow-clockwise text-zg-ui",
|
|
216
|
+
"aria-hidden": true
|
|
217
|
+
}), retry ? labels.retry : labels.continueRun]
|
|
218
|
+
}), tip.tip] })
|
|
219
|
+
]
|
|
139
220
|
});
|
|
140
221
|
});
|
|
141
222
|
/**
|
|
@@ -344,4 +425,4 @@ const SpawnEndRow = memo(({ row, className, style }) => {
|
|
|
344
425
|
}, value))]
|
|
345
426
|
});
|
|
346
427
|
});
|
|
347
|
-
export { COMMAND_DETAIL_LINE, CommandDetailRow, CommandNoteRow, ErrorRow, FailureRow, InfoRow, NoticeRow, SessionEventRow, SpawnEndRow, SpawnStartRow };
|
|
428
|
+
export { COMMAND_DETAIL_LINE, CommandDetailRow, CommandNoteRow, ErrorRow, FailureRow, InfoRow, NoticeRow, RepairedRow, SessionEventRow, SpawnEndRow, SpawnStartRow };
|
|
@@ -56,6 +56,7 @@ const ThinkingRow = memo(({ text, thinkingMs, live, autoExpand = false, classNam
|
|
|
56
56
|
children: mounted && /* @__PURE__ */ jsx("div", {
|
|
57
57
|
className: "pt-1 text-sm italic text-[var(--zg-text-muted)] leading-relaxed",
|
|
58
58
|
children: /* @__PURE__ */ jsx(Markdown, {
|
|
59
|
+
className: live ? "zg-streaming" : void 0,
|
|
59
60
|
streaming: live,
|
|
60
61
|
children: text
|
|
61
62
|
})
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The receipt's cells, shared by the run receipt and the compaction line
|
|
3
|
+
* (`run-rows.tsx`, the fold's compaction step). Internal: not re-exported.
|
|
4
|
+
*/
|
|
5
|
+
import { RunReceiptCell, RunReceiptSegment } from "zidane/chat/pure";
|
|
6
|
+
import { StreamEvent } from "zidane/chat";
|
|
7
|
+
export declare const RUN_RECEIPT_TINT: Record<RunReceiptCell['kind'], string>;
|
|
8
|
+
export declare const RUN_RECEIPT_SEGMENT_TINT: Record<RunReceiptSegment['kind'], string>;
|
|
9
|
+
/** A receipt value (`↻3`, `↑520k`), its leading glyph as an icon. */
|
|
10
|
+
export declare function ReceiptValue({ text, className }: {
|
|
11
|
+
text: string;
|
|
12
|
+
className: string;
|
|
13
|
+
}): import("react").JSX.Element;
|
|
14
|
+
/**
|
|
15
|
+
* A compaction's facts as one quiet line: the summary call's model, its cost
|
|
16
|
+
* when priced, and the tokens it sent and received. The compaction card and
|
|
17
|
+
* the run's fold step (`fold.tsx`) both show it.
|
|
18
|
+
*/
|
|
19
|
+
export declare function CompactMeta({ meta, className }: {
|
|
20
|
+
meta: NonNullable<StreamEvent['compact']>;
|
|
21
|
+
className?: string;
|
|
22
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { useModelName } from "./actions.js";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { RUN_RECEIPT_SWITCH_GLYPH, RUN_RECEIPT_TURN_GLYPH, formatCostUsd, formatTokenCount } from "zidane/chat/pure";
|
|
4
|
+
// src/chat/transcript/receipt-parts.tsx
|
|
5
|
+
const RUN_RECEIPT_TINT = {
|
|
6
|
+
agent: "text-zg-text/80",
|
|
7
|
+
model: "zg-soft-tint zg-tint-model",
|
|
8
|
+
turns: "zg-soft-tint zg-tint-accent",
|
|
9
|
+
cost: "zg-soft-tint zg-tint-money",
|
|
10
|
+
duration: "text-zg-text/80",
|
|
11
|
+
tokens: "text-zg-text/80",
|
|
12
|
+
speed: "zg-soft-tint zg-tint-warn"
|
|
13
|
+
};
|
|
14
|
+
const RUN_RECEIPT_SEGMENT_TINT = {
|
|
15
|
+
"tokens-in": "zg-soft-tint zg-tint-accent",
|
|
16
|
+
"tokens-out": "zg-soft-tint zg-tint-accent-alt"
|
|
17
|
+
};
|
|
18
|
+
const RECEIPT_GLYPH_ICON = {
|
|
19
|
+
[RUN_RECEIPT_TURN_GLYPH]: "i-ph-arrow-clockwise-bold",
|
|
20
|
+
[RUN_RECEIPT_SWITCH_GLYPH]: "i-ph-arrows-left-right-bold",
|
|
21
|
+
"↑": "i-ph-arrow-up-bold",
|
|
22
|
+
"↓": "i-ph-arrow-down-bold"
|
|
23
|
+
};
|
|
24
|
+
/** A receipt value (`↻3`, `↑520k`), its leading glyph as an icon. */
|
|
25
|
+
function ReceiptValue({ text, className }) {
|
|
26
|
+
const icon = RECEIPT_GLYPH_ICON[text.charAt(0)];
|
|
27
|
+
if (!icon) return /* @__PURE__ */ jsx("span", {
|
|
28
|
+
className,
|
|
29
|
+
children: text
|
|
30
|
+
});
|
|
31
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
32
|
+
className,
|
|
33
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
34
|
+
role: "img",
|
|
35
|
+
"aria-label": text.charAt(0),
|
|
36
|
+
className: `${icon} inline-block mr-px text-[0.8em] align-[calc(0.625cap_-_0.5em)]`
|
|
37
|
+
}), text.slice(1)]
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A compaction's facts as one quiet line: the summary call's model, its cost
|
|
42
|
+
* when priced, and the tokens it sent and received. The compaction card and
|
|
43
|
+
* the run's fold step (`fold.tsx`) both show it.
|
|
44
|
+
*/
|
|
45
|
+
function CompactMeta({ meta, className = "" }) {
|
|
46
|
+
const modelName = useModelName();
|
|
47
|
+
/**
|
|
48
|
+
* Effective `in` tokens: providers with prompt caching (Anthropic,
|
|
49
|
+
* OpenRouter→Anthropic, Gemini) report `inputTokens` as ONLY the new
|
|
50
|
+
* uncached prefix — the cached prefix lives in `cacheReadTokens` and
|
|
51
|
+
* any newly-cached tokens in `cacheCreationTokens`. The model still
|
|
52
|
+
* saw all three buckets, so the realistic input figure is their sum.
|
|
53
|
+
* Non-caching providers leave the cache fields at 0 and this
|
|
54
|
+
* collapses to `inputTokens` alone.
|
|
55
|
+
*/
|
|
56
|
+
const effectiveInputTokens = meta.inputTokens + (meta.cacheReadTokens ?? 0) + (meta.cacheCreationTokens ?? 0);
|
|
57
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
58
|
+
className: `zg-meta flex items-center gap-3 shrink-0 leading-none ${className}`,
|
|
59
|
+
children: [
|
|
60
|
+
/* @__PURE__ */ jsx("span", {
|
|
61
|
+
title: meta.model,
|
|
62
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
63
|
+
className: RUN_RECEIPT_TINT.model,
|
|
64
|
+
children: modelName(meta.model, meta.providerKey)
|
|
65
|
+
})
|
|
66
|
+
}),
|
|
67
|
+
meta.costUsd !== void 0 && /* @__PURE__ */ jsx("span", {
|
|
68
|
+
className: "shrink-0",
|
|
69
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
70
|
+
className: RUN_RECEIPT_TINT.cost,
|
|
71
|
+
children: formatCostUsd(meta.costUsd)
|
|
72
|
+
})
|
|
73
|
+
}),
|
|
74
|
+
/* @__PURE__ */ jsxs("span", {
|
|
75
|
+
className: "inline-flex items-center shrink-0 gap-1",
|
|
76
|
+
children: [/* @__PURE__ */ jsx(ReceiptValue, {
|
|
77
|
+
text: `↑${formatTokenCount(effectiveInputTokens)}`,
|
|
78
|
+
className: RUN_RECEIPT_SEGMENT_TINT["tokens-in"]
|
|
79
|
+
}), /* @__PURE__ */ jsx(ReceiptValue, {
|
|
80
|
+
text: `↓${formatTokenCount(meta.outputTokens)}`,
|
|
81
|
+
className: RUN_RECEIPT_SEGMENT_TINT["tokens-out"]
|
|
82
|
+
})]
|
|
83
|
+
})
|
|
84
|
+
]
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
export { CompactMeta, RUN_RECEIPT_SEGMENT_TINT, RUN_RECEIPT_TINT, ReceiptValue };
|
|
@@ -3,50 +3,16 @@ import { useStaysMounted } from "../../motion/collapse.js";
|
|
|
3
3
|
import { useChatLabels } from "../useChatLabels.js";
|
|
4
4
|
import { useModelName } from "./actions.js";
|
|
5
5
|
import { Caret } from "./frame.js";
|
|
6
|
+
import { CompactMeta, RUN_RECEIPT_SEGMENT_TINT, RUN_RECEIPT_TINT, ReceiptValue } from "./receipt-parts.js";
|
|
6
7
|
import { useTranscriptRenderers } from "./renderers.js";
|
|
7
8
|
import { memo, useState } from "react";
|
|
8
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
import {
|
|
10
|
+
import { formatRunReceiptCells, formatTokenCount } from "zidane/chat/pure";
|
|
10
11
|
// src/chat/transcript/run-rows.tsx
|
|
11
12
|
/**
|
|
12
13
|
* The per-run receipt: agent, model, time, round trips, cost, tokens, speed. Content
|
|
13
14
|
* comes from `formatRunReceiptCells`, the same cells the TUI and replay use.
|
|
14
15
|
*/
|
|
15
|
-
const RUN_RECEIPT_TINT = {
|
|
16
|
-
agent: "text-zg-text/80",
|
|
17
|
-
model: "zg-soft-tint zg-tint-model",
|
|
18
|
-
turns: "zg-soft-tint zg-tint-accent",
|
|
19
|
-
cost: "zg-soft-tint zg-tint-money",
|
|
20
|
-
duration: "text-zg-text/80",
|
|
21
|
-
tokens: "text-zg-text/80",
|
|
22
|
-
speed: "zg-soft-tint zg-tint-warn"
|
|
23
|
-
};
|
|
24
|
-
const RUN_RECEIPT_SEGMENT_TINT = {
|
|
25
|
-
"tokens-in": "zg-soft-tint zg-tint-accent",
|
|
26
|
-
"tokens-out": "zg-soft-tint zg-tint-accent-alt"
|
|
27
|
-
};
|
|
28
|
-
const RECEIPT_GLYPH_ICON = {
|
|
29
|
-
[RUN_RECEIPT_TURN_GLYPH]: "i-ph-arrow-clockwise-bold",
|
|
30
|
-
[RUN_RECEIPT_SWITCH_GLYPH]: "i-ph-arrows-left-right-bold",
|
|
31
|
-
"↑": "i-ph-arrow-up-bold",
|
|
32
|
-
"↓": "i-ph-arrow-down-bold"
|
|
33
|
-
};
|
|
34
|
-
/** A receipt value (`↻3`, `↑520k`), its leading glyph as an icon. */
|
|
35
|
-
function ReceiptValue({ text, className }) {
|
|
36
|
-
const icon = RECEIPT_GLYPH_ICON[text.charAt(0)];
|
|
37
|
-
if (!icon) return /* @__PURE__ */ jsx("span", {
|
|
38
|
-
className,
|
|
39
|
-
children: text
|
|
40
|
-
});
|
|
41
|
-
return /* @__PURE__ */ jsxs("span", {
|
|
42
|
-
className,
|
|
43
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
44
|
-
role: "img",
|
|
45
|
-
"aria-label": text.charAt(0),
|
|
46
|
-
className: `${icon} inline-block mr-px text-[0.8em] align-[calc(0.625cap_-_0.5em)]`
|
|
47
|
-
}), text.slice(1)]
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
16
|
/** What each chip means, shown on hover. */
|
|
51
17
|
function receiptTooltip(cell, receipt, labels) {
|
|
52
18
|
switch (cell.kind) {
|
|
@@ -118,19 +84,8 @@ function CompactSummaryRow({ text, meta, className, style }) {
|
|
|
118
84
|
const [open, setOpen] = useState(false);
|
|
119
85
|
const mounted = useStaysMounted(open);
|
|
120
86
|
const labels = useChatLabels();
|
|
121
|
-
const modelName = useModelName();
|
|
122
87
|
const { Markdown } = useTranscriptRenderers();
|
|
123
88
|
/**
|
|
124
|
-
* Effective `in` tokens: providers with prompt caching (Anthropic,
|
|
125
|
-
* OpenRouter→Anthropic, Gemini) report `inputTokens` as ONLY the new
|
|
126
|
-
* uncached prefix — the cached prefix lives in `cacheReadTokens` and
|
|
127
|
-
* any newly-cached tokens in `cacheCreationTokens`. The model still
|
|
128
|
-
* saw all three buckets, so the realistic input figure is their sum.
|
|
129
|
-
* Non-caching providers leave the cache fields at 0 and this
|
|
130
|
-
* collapses to `inputTokens` alone.
|
|
131
|
-
*/
|
|
132
|
-
const effectiveInputTokens = meta.inputTokens + (meta.cacheReadTokens ?? 0) + (meta.cacheCreationTokens ?? 0);
|
|
133
|
-
/**
|
|
134
89
|
* A context boundary, set in a tray so the summary never reads as agent
|
|
135
90
|
* output: the count, then the run receipt's facts (model, cost, sent /
|
|
136
91
|
* received) as the same quiet line. One line: the facts keep their size and
|
|
@@ -153,35 +108,7 @@ function CompactSummaryRow({ text, meta, className, style }) {
|
|
|
153
108
|
children: meta.replacedCount
|
|
154
109
|
}), ` ${labels.turnsCompacted}`]
|
|
155
110
|
}),
|
|
156
|
-
/* @__PURE__ */
|
|
157
|
-
className: "zg-meta flex items-center gap-3 shrink-0 leading-none",
|
|
158
|
-
children: [
|
|
159
|
-
/* @__PURE__ */ jsx("span", {
|
|
160
|
-
title: meta.model,
|
|
161
|
-
children: /* @__PURE__ */ jsx("span", {
|
|
162
|
-
className: RUN_RECEIPT_TINT.model,
|
|
163
|
-
children: modelName(meta.model, meta.providerKey)
|
|
164
|
-
})
|
|
165
|
-
}),
|
|
166
|
-
meta.costUsd !== void 0 && /* @__PURE__ */ jsx("span", {
|
|
167
|
-
className: "shrink-0",
|
|
168
|
-
children: /* @__PURE__ */ jsx("span", {
|
|
169
|
-
className: RUN_RECEIPT_TINT.cost,
|
|
170
|
-
children: formatCostUsd(meta.costUsd)
|
|
171
|
-
})
|
|
172
|
-
}),
|
|
173
|
-
/* @__PURE__ */ jsxs("span", {
|
|
174
|
-
className: "inline-flex items-center shrink-0 gap-1",
|
|
175
|
-
children: [/* @__PURE__ */ jsx(ReceiptValue, {
|
|
176
|
-
text: `↑${formatTokenCount(effectiveInputTokens)}`,
|
|
177
|
-
className: RUN_RECEIPT_SEGMENT_TINT["tokens-in"]
|
|
178
|
-
}), /* @__PURE__ */ jsx(ReceiptValue, {
|
|
179
|
-
text: `↓${formatTokenCount(meta.outputTokens)}`,
|
|
180
|
-
className: RUN_RECEIPT_SEGMENT_TINT["tokens-out"]
|
|
181
|
-
})]
|
|
182
|
-
})
|
|
183
|
-
]
|
|
184
|
-
}),
|
|
111
|
+
/* @__PURE__ */ jsx(CompactMeta, { meta }),
|
|
185
112
|
/* @__PURE__ */ jsx(Caret, {
|
|
186
113
|
open,
|
|
187
114
|
className: "ml-auto shrink-0"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** What a Codemode script's input panel reads besides its input. Internal to the transcript. */
|
|
2
|
-
import {
|
|
2
|
+
import { NA as ScriptProgress } from "../../dist/index-E1Z0aPmi.js";
|
|
3
3
|
import { ToolRowModel } from "../headless/transcript/rows.js";
|
|
4
4
|
import "../headless/transcript/index.js";
|
|
5
5
|
/**
|