zidane-ui 9.2.2 → 9.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/browser-keybindings-host.js +3 -1
- package/dist/adapters/live.d.ts +6 -0
- package/dist/adapters/live.js +16 -8
- package/dist/adapters/server-composer-host.js +22 -9
- package/dist/adapters/server-host.js +143 -18
- package/dist/adapters/server-media.d.ts +9 -1
- package/dist/adapters/server-media.js +14 -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/HostTranscript.d.ts +0 -12
- package/dist/chat/HostTranscript.js +6 -1
- package/dist/chat/SessionStreamsProvider.d.ts +8 -0
- package/dist/chat/SessionStreamsProvider.js +11 -2
- package/dist/chat/StatusDot.js +8 -2
- package/dist/chat/Transcript.d.ts +20 -11
- package/dist/chat/Transcript.js +335 -162
- package/dist/chat/composer/ComposerEditor.js +1 -1
- package/dist/chat/headless/host.d.ts +43 -7
- package/dist/chat/headless/index.d.ts +8 -6
- package/dist/chat/headless/index.js +11 -9
- package/dist/chat/headless/labels.d.ts +30 -0
- package/dist/chat/headless/labels.js +29 -0
- package/dist/chat/headless/markdown-chunks.d.ts +2 -1
- package/dist/chat/headless/markdown-chunks.js +12 -20
- package/dist/chat/headless/markdown-scan.d.ts +66 -0
- package/dist/chat/headless/markdown-scan.js +124 -0
- package/dist/chat/headless/markdown-stream.d.ts +64 -0
- package/dist/chat/headless/markdown-stream.js +143 -0
- package/dist/chat/headless/output-pager.d.ts +68 -0
- package/dist/chat/headless/output-pager.js +113 -0
- package/dist/chat/headless/session-list.d.ts +20 -0
- package/dist/chat/headless/sidebar/activity.d.ts +14 -0
- package/dist/chat/headless/sidebar/activity.js +32 -0
- package/dist/chat/headless/sidebar/directory.d.ts +17 -2
- package/dist/chat/headless/sidebar/directory.js +50 -54
- 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 +38 -2
- package/dist/chat/headless/sidebar/labels.js +16 -0
- package/dist/chat/headless/sidebar/prewarm.d.ts +68 -0
- package/dist/chat/headless/sidebar/prewarm.js +114 -0
- package/dist/chat/headless/streams/actions.d.ts +2 -0
- package/dist/chat/headless/streams/actions.js +1 -0
- package/dist/chat/headless/streams/event-bytes.d.ts +6 -0
- package/dist/chat/headless/streams/event-bytes.js +34 -0
- package/dist/chat/headless/streams/live-events.d.ts +25 -1
- package/dist/chat/headless/streams/live-events.js +53 -2
- package/dist/chat/headless/streams/selectors.d.ts +3 -0
- package/dist/chat/headless/streams/selectors.js +8 -1
- package/dist/chat/headless/streams/session-streams.d.ts +15 -3
- package/dist/chat/headless/streams/session-streams.js +31 -3
- package/dist/chat/headless/streams/store.d.ts +24 -1
- package/dist/chat/headless/streams/store.js +51 -26
- package/dist/chat/headless/streams/transcript-map.d.ts +57 -0
- package/dist/chat/headless/streams/transcript-map.js +88 -0
- package/dist/chat/headless/streams/transcript.d.ts +4 -2
- package/dist/chat/headless/streams/transcript.js +19 -7
- package/dist/chat/headless/transcript/batch.js +5 -1
- package/dist/chat/headless/transcript/blob-media.d.ts +15 -0
- package/dist/chat/headless/transcript/blob-media.js +23 -0
- package/dist/chat/headless/transcript/collapse.d.ts +10 -0
- package/dist/chat/headless/transcript/collapse.js +32 -6
- package/dist/chat/headless/transcript/derive.d.ts +98 -0
- package/dist/chat/headless/transcript/derive.js +89 -0
- package/dist/chat/headless/transcript/exchange-media.d.ts +3 -1
- package/dist/chat/headless/transcript/exchange-media.js +8 -5
- 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-attachments.d.ts +2 -0
- package/dist/chat/headless/transcript/fold-attachments.js +3 -2
- package/dist/chat/headless/transcript/fold.d.ts +4 -2
- package/dist/chat/headless/transcript/fold.js +37 -7
- package/dist/chat/headless/transcript/incremental.d.ts +53 -0
- package/dist/chat/headless/transcript/incremental.js +181 -0
- package/dist/chat/headless/transcript/index.d.ts +2 -1
- package/dist/chat/headless/transcript/index.js +2 -1
- package/dist/chat/headless/transcript/nesting.js +2 -1
- package/dist/chat/headless/transcript/rail.d.ts +142 -0
- package/dist/chat/headless/transcript/rail.js +290 -0
- package/dist/chat/headless/transcript/rows.d.ts +11 -1
- package/dist/chat/headless/transcript/run-failures.d.ts +4 -0
- package/dist/chat/headless/transcript/run-failures.js +31 -2
- package/dist/chat/headless/transcript/seams.d.ts +78 -0
- package/dist/chat/headless/transcript/seams.js +116 -0
- package/dist/chat/headless/transcript/tool-media.d.ts +6 -7
- package/dist/chat/headless/transcript/tool-media.js +27 -9
- 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 +10 -8
- package/dist/chat/index.js +9 -7
- 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/SidebarFooter.d.ts +8 -5
- package/dist/chat/sidebar/SidebarFooter.js +6 -6
- 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/contract.d.ts +5 -3
- package/dist/chat/testing/contract.js +66 -1
- 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/DiffLines.d.ts +6 -1
- package/dist/chat/transcript/DiffLines.js +35 -20
- package/dist/chat/transcript/EditDiffBlock.d.ts +5 -1
- package/dist/chat/transcript/EditDiffBlock.js +89 -30
- package/dist/chat/transcript/InteractionToolBody.js +1 -1
- package/dist/chat/transcript/LazyRow.d.ts +40 -40
- package/dist/chat/transcript/LazyRow.js +101 -149
- package/dist/chat/transcript/MermaidDiagram.js +2 -1
- package/dist/chat/transcript/SelectCursor.d.ts +11 -1
- package/dist/chat/transcript/SelectCursor.js +10 -5
- package/dist/chat/transcript/SubagentBlock.js +3 -2
- package/dist/chat/transcript/TranscriptRail.d.ts +109 -0
- package/dist/chat/transcript/TranscriptRail.js +579 -0
- package/dist/chat/transcript/TranscriptRow.d.ts +4 -7
- package/dist/chat/transcript/TranscriptRow.js +9 -5
- package/dist/chat/transcript/actions.d.ts +43 -3
- package/dist/chat/transcript/actions.js +27 -1
- package/dist/chat/transcript/clipped-output.d.ts +58 -0
- package/dist/chat/transcript/clipped-output.js +131 -0
- package/dist/chat/transcript/fold-attachments.js +10 -5
- package/dist/chat/transcript/fold-worker.js +3 -2
- package/dist/chat/transcript/fold.js +21 -2
- package/dist/chat/transcript/index.d.ts +11 -9
- package/dist/chat/transcript/index.js +10 -8
- package/dist/chat/transcript/markdown-cache.d.ts +7 -1
- package/dist/chat/transcript/markdown-cache.js +12 -1
- package/dist/chat/transcript/markdown.js +116 -54
- package/dist/chat/transcript/media-gallery.d.ts +3 -2
- package/dist/chat/transcript/media-gallery.js +10 -7
- package/dist/chat/transcript/notices.d.ts +23 -1
- package/dist/chat/transcript/notices.js +110 -28
- package/dist/chat/transcript/prompt.js +6 -4
- package/dist/chat/transcript/prose.js +3 -1
- package/dist/chat/transcript/receipt-parts.d.ts +22 -0
- package/dist/chat/transcript/receipt-parts.js +87 -0
- package/dist/chat/transcript/root-items.d.ts +96 -0
- package/dist/chat/transcript/root-items.js +180 -0
- package/dist/chat/transcript/row-mount.d.ts +165 -0
- package/dist/chat/transcript/row-mount.js +498 -0
- package/dist/chat/transcript/row-parking.d.ts +125 -0
- package/dist/chat/transcript/row-parking.js +135 -0
- package/dist/chat/transcript/row-ui-state.d.ts +37 -0
- package/dist/chat/transcript/row-ui-state.js +53 -0
- package/dist/chat/transcript/run-rows.js +6 -78
- package/dist/chat/transcript/script-input.d.ts +1 -1
- package/dist/chat/transcript/scroll-clamp.js +1 -1
- package/dist/chat/transcript/tasks.js +3 -2
- package/dist/chat/transcript/tool-media.d.ts +4 -2
- package/dist/chat/transcript/tool-media.js +15 -7
- package/dist/chat/transcript/tool-parts.d.ts +27 -4
- package/dist/chat/transcript/tool-parts.js +31 -5
- package/dist/chat/transcript/tool-payload.js +26 -11
- package/dist/chat/transcript/tool-row.d.ts +2 -1
- package/dist/chat/transcript/tool-row.js +38 -19
- package/dist/chat/transcript/use-transcript-rows.d.ts +24 -7
- package/dist/chat/transcript/use-transcript-rows.js +28 -46
- package/dist/chat/transcript/useSettledReveal.js +15 -3
- package/dist/chat/transcript/useStickToBottom.js +4 -4
- package/dist/chat/transcript/useTranscriptSearch.js +30 -14
- package/dist/chat/transcript/view-scope.d.ts +26 -6
- package/dist/chat/transcript/view-scope.js +106 -20
- 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-Betz0OWq.d.ts → index-C6-t1SS9.d.ts} +21 -2
- package/dist/dist/index-De9AbmxS.d.ts +1 -0
- 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 +68 -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-performance.js +4 -2
- 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/performance.d.ts +4 -0
- 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/performance/PerformanceSection.js +8 -1
- package/dist/settings/sections/performance/labels.d.ts +2 -0
- package/dist/settings/sections/performance/labels.js +2 -0
- 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 +243 -19
- package/dist/terminal/TerminalDrawer.js +3 -1
- package/dist/views/headless/answers.d.ts +8 -2
- package/dist/views/headless/answers.js +58 -1
- package/dist/views/headless/placement.d.ts +78 -0
- package/dist/views/headless/placement.js +154 -44
- 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 +138 -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
|
@@ -14,9 +14,12 @@
|
|
|
14
14
|
*/
|
|
15
15
|
import { SettingsMcpHost } from "../../settings/headless/mcp.js";
|
|
16
16
|
import { SettingsProvidersHost } from "../../settings/headless/providers.js";
|
|
17
|
+
import { ChatAttachment } from "../headless/host.js";
|
|
18
|
+
import { ToolOutputRange } from "../headless/output-pager.js";
|
|
17
19
|
import { AuthSettingsTarget } from "../headless/transcript/auth-failure.js";
|
|
18
20
|
import { ReactNode } from "react";
|
|
19
|
-
import { ModelNamer } from "zidane/chat/pure";
|
|
21
|
+
import { ModelNamer, ToolCallDetail } from "zidane/chat/pure";
|
|
22
|
+
import { ToolResultSlice } from "zidane/chat";
|
|
20
23
|
/**
|
|
21
24
|
* The accounts of the host that holds a session's credentials, for the card
|
|
22
25
|
* a run stopped by a failed sign-in shows (`AuthFailureCard`). Each member is
|
|
@@ -45,10 +48,18 @@ export interface TranscriptActions {
|
|
|
45
48
|
sessionId: string | null;
|
|
46
49
|
/** The whole text of a tool result that was clipped for transport (`ChatHost.toolOutput`). `turnId`: the call's turn, a hint where to look first. */
|
|
47
50
|
toolOutput?: (callId: string, turnId?: string) => Promise<string | null>;
|
|
51
|
+
/** One range of a clipped tool result (`ChatHost.toolOutputRange`): with it, "Load full output" pages through the result instead of reading it whole. */
|
|
52
|
+
toolOutputRange?: (callId: string, range: ToolOutputRange, turnId?: string) => Promise<ToolResultSlice | null>;
|
|
53
|
+
/** The whole of a tool call whose row went out lean: its input, every hunk of its edit (`ChatHost.toolCall`). `turnId`: the call's turn, a hint where to look first. */
|
|
54
|
+
toolCall?: (callId: string, turnId?: string) => Promise<ToolCallDetail | null>;
|
|
48
55
|
/** Stops a running call (`ChatHost.cancelTool`). */
|
|
49
56
|
cancelTool?: (callId: string) => void;
|
|
50
|
-
/**
|
|
51
|
-
|
|
57
|
+
/**
|
|
58
|
+
* Sets the session's failed environment up again (or reconnects it). Without it a failed setup step
|
|
59
|
+
* offers no Retry. A promise that settles once the host took the request lets a row send what waited
|
|
60
|
+
* for the repair after it.
|
|
61
|
+
*/
|
|
62
|
+
retryEnvironment?: () => void | Promise<void>;
|
|
52
63
|
/** Shows another session, named by its id (a worker a tool call addresses). */
|
|
53
64
|
openSession?: (sessionId: string) => void;
|
|
54
65
|
/** Sends a prompt as the user's next message. */
|
|
@@ -59,6 +70,13 @@ export interface TranscriptActions {
|
|
|
59
70
|
* inline instead of `[image: …]` stand-ins.
|
|
60
71
|
*/
|
|
61
72
|
toolMediaUrl?: (callId: string, index: number) => string;
|
|
73
|
+
/**
|
|
74
|
+
* The address of a medium the session store holds by content hash (a prompt's attachment, a tool result's media
|
|
75
|
+
* block held as `attachment://<hash>`). The same bytes for good: a page caches it for good. With it, such media
|
|
76
|
+
* load by hash; media still inline in their turn keep `toolMediaUrl` (and a prompt's own preview). `name` only ends
|
|
77
|
+
* the address. `undefined`: not served now (the older address stands).
|
|
78
|
+
*/
|
|
79
|
+
blobMediaUrl?: (hash: string, name?: string) => string | undefined;
|
|
62
80
|
/**
|
|
63
81
|
* Where a message's media loads from (`` in a reply or a
|
|
64
82
|
* prompt): `src` as written, or the app's address for a local file;
|
|
@@ -111,5 +129,27 @@ export interface TranscriptActionsProviderProps {
|
|
|
111
129
|
export declare function TranscriptActionsProvider({ value, children }: TranscriptActionsProviderProps): import("react").JSX.Element;
|
|
112
130
|
/** Returns the {@link TranscriptActions} from the nearest {@link TranscriptActionsProvider}. Without one it returns an object with no session and no actions. */
|
|
113
131
|
export declare function useTranscriptActions(): TranscriptActions;
|
|
132
|
+
/**
|
|
133
|
+
* Where a prompt's attachment loads from: its own preview (`dataUrl`), else its blob's address when the store holds
|
|
134
|
+
* it by hash and the app serves blobs.
|
|
135
|
+
*
|
|
136
|
+
* @param actions - The transcript's actions.
|
|
137
|
+
* @param att - The attachment.
|
|
138
|
+
*/
|
|
139
|
+
export declare function attachmentSrcOf(actions: Pick<TranscriptActions, 'blobMediaUrl'>, att: ChatAttachment): string | undefined;
|
|
140
|
+
/**
|
|
141
|
+
* Where a tool result's `index`-th media block loads from: by hash when the store holds it so and the app serves
|
|
142
|
+
* blobs, else by its call and position (`toolMediaUrl`); `undefined` when the app serves neither.
|
|
143
|
+
*
|
|
144
|
+
* @param actions - The transcript's actions.
|
|
145
|
+
* @param callId - The call that returned it.
|
|
146
|
+
* @param item - The block's position, and its hash when held by one.
|
|
147
|
+
* @param item.index - Its position among the result's media blocks.
|
|
148
|
+
* @param item.hash - Its blob hash, when held by one.
|
|
149
|
+
*/
|
|
150
|
+
export declare function toolMediaSrcOf(actions: Pick<TranscriptActions, 'toolMediaUrl' | 'blobMediaUrl'>, callId: string, item: {
|
|
151
|
+
index: number;
|
|
152
|
+
hash?: string;
|
|
153
|
+
}): string | undefined;
|
|
114
154
|
/** How the transcript names a model: the app's `modelName`, else from the id. */
|
|
115
155
|
export declare function useModelName(): ModelNamer;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { blobHashOf } from "../headless/transcript/blob-media.js";
|
|
1
2
|
import { createContext, useContext } from "react";
|
|
2
3
|
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import { nameFromModelId } from "zidane/chat/pure";
|
|
@@ -18,8 +19,33 @@ function TranscriptActionsProvider({ value, children }) {
|
|
|
18
19
|
function useTranscriptActions() {
|
|
19
20
|
return useContext(TranscriptActionsContext);
|
|
20
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Where a prompt's attachment loads from: its own preview (`dataUrl`), else its blob's address when the store holds
|
|
24
|
+
* it by hash and the app serves blobs.
|
|
25
|
+
*
|
|
26
|
+
* @param actions - The transcript's actions.
|
|
27
|
+
* @param att - The attachment.
|
|
28
|
+
*/
|
|
29
|
+
function attachmentSrcOf(actions, att) {
|
|
30
|
+
if (att.dataUrl !== void 0) return att.dataUrl;
|
|
31
|
+
const hash = blobHashOf(att.ref);
|
|
32
|
+
return hash && actions.blobMediaUrl ? actions.blobMediaUrl(hash, att.name) : void 0;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Where a tool result's `index`-th media block loads from: by hash when the store holds it so and the app serves
|
|
36
|
+
* blobs, else by its call and position (`toolMediaUrl`); `undefined` when the app serves neither.
|
|
37
|
+
*
|
|
38
|
+
* @param actions - The transcript's actions.
|
|
39
|
+
* @param callId - The call that returned it.
|
|
40
|
+
* @param item - The block's position, and its hash when held by one.
|
|
41
|
+
* @param item.index - Its position among the result's media blocks.
|
|
42
|
+
* @param item.hash - Its blob hash, when held by one.
|
|
43
|
+
*/
|
|
44
|
+
function toolMediaSrcOf(actions, callId, item) {
|
|
45
|
+
return (item.hash ? actions.blobMediaUrl?.(item.hash) : void 0) ?? actions.toolMediaUrl?.(callId, item.index);
|
|
46
|
+
}
|
|
21
47
|
/** How the transcript names a model: the app's `modelName`, else from the id. */
|
|
22
48
|
function useModelName() {
|
|
23
49
|
return useContext(TranscriptActionsContext).modelName ?? nameFromModelId;
|
|
24
50
|
}
|
|
25
|
-
export { TranscriptActionsProvider, useModelName, useTranscriptActions };
|
|
51
|
+
export { TranscriptActionsProvider, attachmentSrcOf, toolMediaSrcOf, useModelName, useTranscriptActions };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The rest of a tool result the host clipped for the wire. With
|
|
3
|
+
* `TranscriptActions.toolOutputRange` it pages: "Load full output" reads the
|
|
4
|
+
* first page (`TOOL_OUTPUT_PAGE_SIZE`), which replaces the clipped preview,
|
|
5
|
+
* then "Load more" and "Load all" read on, under a line that says how much is
|
|
6
|
+
* loaded. With `toolOutput` only, it reads the whole text in one go.
|
|
7
|
+
* Internal to the transcript: the tool rows use it.
|
|
8
|
+
*/
|
|
9
|
+
import { ToolOutputPagerState } from "../headless/output-pager.js";
|
|
10
|
+
import { ToolRowModel } from "../headless/transcript/rows.js";
|
|
11
|
+
import "../headless/transcript/index.js";
|
|
12
|
+
import { CSSProperties } from "react";
|
|
13
|
+
/** A clipped result's loaded text and the way to load more, from {@link useClippedOutput}. */
|
|
14
|
+
export interface ClippedOutput {
|
|
15
|
+
/** The text that replaces the clipped preview; `null` while none is loaded. */
|
|
16
|
+
text: string | null;
|
|
17
|
+
/** The app can load the result: without it the row offers no control. */
|
|
18
|
+
available: boolean;
|
|
19
|
+
/** The call can be addressed (a session and a call id). */
|
|
20
|
+
ready: boolean;
|
|
21
|
+
/** The pages loaded, when the app reads ranges; `null` when it reads the whole text. */
|
|
22
|
+
paged: (ToolOutputPagerState & {
|
|
23
|
+
/** The read in flight, as the user asked it. */
|
|
24
|
+
running: 'more' | 'all' | null;
|
|
25
|
+
/** Reads the next page (`more`) or the rest (`all`). */
|
|
26
|
+
run: (what: 'more' | 'all') => void;
|
|
27
|
+
/** Runs the last read again, from where it stopped. */
|
|
28
|
+
retry: () => void;
|
|
29
|
+
}) | null;
|
|
30
|
+
/** Reads the whole text in one go (an app without ranges), and its state. */
|
|
31
|
+
whole: {
|
|
32
|
+
full: string | 'loading' | null;
|
|
33
|
+
load: () => void;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The rest of a clipped result, read through the transcript's actions: paged
|
|
38
|
+
* with `toolOutputRange`, whole with `toolOutput` only.
|
|
39
|
+
*
|
|
40
|
+
* @param tool - The clipped tool row. Its `callId` (and `turnId`, a hint) address the result.
|
|
41
|
+
*/
|
|
42
|
+
export declare function useClippedOutput(tool: ToolRowModel): ClippedOutput;
|
|
43
|
+
/** Props for {@link ClippedOutputControls}. */
|
|
44
|
+
export interface ClippedOutputControlsProps {
|
|
45
|
+
/** The result's state, from {@link useClippedOutput}. */
|
|
46
|
+
output: ClippedOutput;
|
|
47
|
+
/** Extra classes on the root element. */
|
|
48
|
+
className?: string;
|
|
49
|
+
/** Inline styles on the root element. */
|
|
50
|
+
style?: CSSProperties;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* "Load full output" over a clipped result; once a page shows, how much is
|
|
54
|
+
* loaded with "Load more" and "Load all", and a failed read with Retry.
|
|
55
|
+
*
|
|
56
|
+
* @param props - The result's state, `className` and `style`.
|
|
57
|
+
*/
|
|
58
|
+
export declare function ClippedOutputControls({ output, className, style }: ClippedOutputControlsProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { LoadError } from "../../components/LoadError.js";
|
|
2
|
+
import { createToolOutputPager, toolOutputPagerDone } from "../headless/output-pager.js";
|
|
3
|
+
import { constant, useReadable } from "../headless/store.js";
|
|
4
|
+
import { useChatLabels } from "../useChatLabels.js";
|
|
5
|
+
import { useTranscriptActions } from "./actions.js";
|
|
6
|
+
import { LoadFullOutputButton, useFullOutput } from "./tool-parts.js";
|
|
7
|
+
import { useMemo, useState } from "react";
|
|
8
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { formatBytes } from "zidane/chat/pure";
|
|
10
|
+
// src/chat/transcript/clipped-output.tsx
|
|
11
|
+
const IDLE = constant({
|
|
12
|
+
text: "",
|
|
13
|
+
total: null,
|
|
14
|
+
missing: false,
|
|
15
|
+
loading: false,
|
|
16
|
+
error: null
|
|
17
|
+
});
|
|
18
|
+
/**
|
|
19
|
+
* The rest of a clipped result, read through the transcript's actions: paged
|
|
20
|
+
* with `toolOutputRange`, whole with `toolOutput` only.
|
|
21
|
+
*
|
|
22
|
+
* @param tool - The clipped tool row. Its `callId` (and `turnId`, a hint) address the result.
|
|
23
|
+
*/
|
|
24
|
+
function useClippedOutput(tool) {
|
|
25
|
+
const { sessionId, toolOutputRange } = useTranscriptActions();
|
|
26
|
+
const whole = useFullOutput(tool);
|
|
27
|
+
const { callId, turnId, resultClipped } = tool;
|
|
28
|
+
const pager = useMemo(() => toolOutputRange && sessionId && callId && resultClipped ? createToolOutputPager((range) => toolOutputRange(callId, range, turnId)) : null, [
|
|
29
|
+
toolOutputRange,
|
|
30
|
+
sessionId,
|
|
31
|
+
callId,
|
|
32
|
+
turnId,
|
|
33
|
+
resultClipped
|
|
34
|
+
]);
|
|
35
|
+
const state = useReadable(pager ?? IDLE);
|
|
36
|
+
const [running, setRunning] = useState(null);
|
|
37
|
+
const [last, setLast] = useState("more");
|
|
38
|
+
if (!pager) return {
|
|
39
|
+
text: typeof whole.full === "string" ? whole.full : null,
|
|
40
|
+
available: whole.available,
|
|
41
|
+
ready: whole.ready,
|
|
42
|
+
paged: null,
|
|
43
|
+
whole: {
|
|
44
|
+
full: whole.full,
|
|
45
|
+
load: whole.load
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
const run = (what) => {
|
|
49
|
+
setRunning(what);
|
|
50
|
+
setLast(what);
|
|
51
|
+
(what === "all" ? pager.loadAll() : pager.loadMore()).finally(() => setRunning(null));
|
|
52
|
+
};
|
|
53
|
+
return {
|
|
54
|
+
text: state.total !== null && !state.missing ? state.text : null,
|
|
55
|
+
available: true,
|
|
56
|
+
ready: true,
|
|
57
|
+
paged: {
|
|
58
|
+
...state,
|
|
59
|
+
running: state.loading ? running : null,
|
|
60
|
+
run,
|
|
61
|
+
retry: () => run(last)
|
|
62
|
+
},
|
|
63
|
+
whole: {
|
|
64
|
+
full: whole.full,
|
|
65
|
+
load: whole.load
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* "Load full output" over a clipped result; once a page shows, how much is
|
|
71
|
+
* loaded with "Load more" and "Load all", and a failed read with Retry.
|
|
72
|
+
*
|
|
73
|
+
* @param props - The result's state, `className` and `style`.
|
|
74
|
+
*/
|
|
75
|
+
function ClippedOutputControls({ output, className = "", style }) {
|
|
76
|
+
const labels = useChatLabels();
|
|
77
|
+
const { paged, whole } = output;
|
|
78
|
+
if (!output.available) return null;
|
|
79
|
+
if (!paged) {
|
|
80
|
+
if (typeof whole.full === "string") return null;
|
|
81
|
+
return /* @__PURE__ */ jsx(LoadFullOutputButton, {
|
|
82
|
+
loading: whole.full === "loading",
|
|
83
|
+
disabled: !output.ready,
|
|
84
|
+
onClick: whole.load,
|
|
85
|
+
className,
|
|
86
|
+
...style ? { style } : {}
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
if (paged.missing || toolOutputPagerDone(paged) && paged.error === null) return null;
|
|
90
|
+
const failed = paged.error !== null && /* @__PURE__ */ jsx(LoadError, {
|
|
91
|
+
detail: paged.error,
|
|
92
|
+
onRetry: paged.retry,
|
|
93
|
+
children: labels.outputLoadFailed
|
|
94
|
+
});
|
|
95
|
+
if (paged.total === null) return /* @__PURE__ */ jsxs("div", {
|
|
96
|
+
className: `flex flex-col items-start gap-1.5 ${className}`,
|
|
97
|
+
style,
|
|
98
|
+
children: [/* @__PURE__ */ jsx(LoadFullOutputButton, {
|
|
99
|
+
loading: paged.loading,
|
|
100
|
+
disabled: false,
|
|
101
|
+
onClick: () => paged.run("more"),
|
|
102
|
+
className: ""
|
|
103
|
+
}), failed]
|
|
104
|
+
});
|
|
105
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
106
|
+
className: `flex flex-col items-start gap-1.5 ${className}`,
|
|
107
|
+
style,
|
|
108
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
109
|
+
className: "flex flex-wrap items-baseline gap-3",
|
|
110
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
111
|
+
className: "zg-meta",
|
|
112
|
+
children: labels.outputLoaded(formatBytes(paged.text.length), formatBytes(paged.total))
|
|
113
|
+
}), !toolOutputPagerDone(paged) && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(LoadFullOutputButton, {
|
|
114
|
+
loading: paged.running === "more",
|
|
115
|
+
disabled: paged.loading,
|
|
116
|
+
onClick: () => paged.run("more"),
|
|
117
|
+
className: "",
|
|
118
|
+
label: labels.loadMoreOutput,
|
|
119
|
+
loadingLabel: labels.loadingOutput
|
|
120
|
+
}), /* @__PURE__ */ jsx(LoadFullOutputButton, {
|
|
121
|
+
loading: paged.running === "all",
|
|
122
|
+
disabled: paged.loading,
|
|
123
|
+
onClick: () => paged.run("all"),
|
|
124
|
+
className: "",
|
|
125
|
+
label: labels.loadAllOutput,
|
|
126
|
+
loadingLabel: labels.loadingOutput
|
|
127
|
+
})] })]
|
|
128
|
+
}), failed]
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
export { ClippedOutputControls, useClippedOutput };
|
|
@@ -3,7 +3,7 @@ import { Grow, GrowPresence } from "../../motion/grow.js";
|
|
|
3
3
|
import { RollingText } from "../../motion/roll.js";
|
|
4
4
|
import { mediumKey } from "../headless/transcript/exchange-media.js";
|
|
5
5
|
import { useChatLabels } from "../useChatLabels.js";
|
|
6
|
-
import { useTranscriptActions } from "./actions.js";
|
|
6
|
+
import { toolMediaSrcOf, useTranscriptActions } from "./actions.js";
|
|
7
7
|
import { useMediaGallery } from "./media-gallery.js";
|
|
8
8
|
import { useThumbnail } from "./thumbnails.js";
|
|
9
9
|
import { memo, useMemo, useState } from "react";
|
|
@@ -41,7 +41,7 @@ function stripLayout(images) {
|
|
|
41
41
|
*/
|
|
42
42
|
const FoldAttachments = memo(({ attachments, className, style }) => {
|
|
43
43
|
const labels = useChatLabels();
|
|
44
|
-
const
|
|
44
|
+
const actions = useTranscriptActions();
|
|
45
45
|
const lightbox = useLightbox();
|
|
46
46
|
const mediaGallery = useMediaGallery();
|
|
47
47
|
const [failed, setFailed] = useState(NO_FAILURES);
|
|
@@ -49,9 +49,14 @@ const FoldAttachments = memo(({ attachments, className, style }) => {
|
|
|
49
49
|
keys: new Set(attachments.map((a) => a.key)),
|
|
50
50
|
counted: attachments.length > STRIP_SIZE
|
|
51
51
|
}));
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
const servable = (a) => toolMediaSrcOf(actions, a.callId, a) !== void 0;
|
|
53
|
+
const { tiles, hidden } = useMemo(() => stripLayout(attachments.filter((a) => !failed.has(a.key) && toolMediaSrcOf(actions, a.callId, a) !== void 0)), [
|
|
54
|
+
attachments,
|
|
55
|
+
failed,
|
|
56
|
+
actions
|
|
57
|
+
]);
|
|
58
|
+
if (tiles.length === 0 || !servable(tiles[0])) return null;
|
|
59
|
+
const src = (a) => toolMediaSrcOf(actions, a.callId, a);
|
|
55
60
|
const fail = (a) => {
|
|
56
61
|
mediaGallery?.failed(mediumKey.tool(a.callId, a.index));
|
|
57
62
|
setFailed((prev) => new Set(prev).add(a.key));
|
|
@@ -5,7 +5,8 @@ import { useChatLabels } from "../useChatLabels.js";
|
|
|
5
5
|
import { useModelName } from "./actions.js";
|
|
6
6
|
import { Caret } from "./frame.js";
|
|
7
7
|
import { useTranscriptRenderers } from "./renderers.js";
|
|
8
|
-
import {
|
|
8
|
+
import { useRowPartKey, useRowUiState } from "./row-ui-state.js";
|
|
9
|
+
import { useMemo } from "react";
|
|
9
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
11
|
// src/chat/transcript/fold-worker.tsx
|
|
11
12
|
/**
|
|
@@ -64,7 +65,7 @@ function TaskStep({ task, model, type, resume, system }) {
|
|
|
64
65
|
const labels = useChatLabels();
|
|
65
66
|
const modelName = useModelName();
|
|
66
67
|
const { Markdown } = useTranscriptRenderers();
|
|
67
|
-
const [open, setOpen] =
|
|
68
|
+
const [open, setOpen] = useRowUiState(useRowPartKey("worker-task"), false);
|
|
68
69
|
const mounted = useStaysMounted(open);
|
|
69
70
|
const first = task.split("\n").find((line) => line.trim()) ?? "";
|
|
70
71
|
const settings = [
|
|
@@ -11,7 +11,10 @@ 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";
|
|
17
|
+
import { useRowUiState } from "./row-ui-state.js";
|
|
15
18
|
import { ToolDetails } from "./tool-details.js";
|
|
16
19
|
import { ToolTiming } from "./tool-parts.js";
|
|
17
20
|
import { ModelVerdict } from "./tool-row.js";
|
|
@@ -55,7 +58,7 @@ const ExchangeFoldRow = memo(({ row, renderRows, status: runStatus, showAttachme
|
|
|
55
58
|
const labels = useChatLabels();
|
|
56
59
|
const [openState, setOpenState] = useState(() => FOLD_OPEN_STATE.get(row.id) ?? false);
|
|
57
60
|
const [setupOpened] = useState(() => new Set(openSetupIds(row.rows)));
|
|
58
|
-
const [openIds, setOpenIds] =
|
|
61
|
+
const [openIds, setOpenIds] = useRowUiState(`fold-steps:${row.id}`, setupOpened.size > 0 ? new Set(setupOpened) : NO_OPEN_IDS);
|
|
59
62
|
const setOpen = (next) => {
|
|
60
63
|
FOLD_OPEN_STATE.set(row.id, next);
|
|
61
64
|
setOpenState(next);
|
|
@@ -357,6 +360,7 @@ function hasActionDetails(item) {
|
|
|
357
360
|
if (item.kind === "thought") return (item.thoughts ?? []).some((t) => t.text.trim() !== "");
|
|
358
361
|
if (item.kind === "worker") return (item.workerRows ?? []).length > 0;
|
|
359
362
|
if (item.kind === "setup") return item.setup !== void 0;
|
|
363
|
+
if (item.kind === "compact") return (item.compact?.text ?? "").trim() !== "";
|
|
360
364
|
return item.tool !== void 0;
|
|
361
365
|
}
|
|
362
366
|
/**
|
|
@@ -378,10 +382,20 @@ function ActionLine({ item, open = false, onToggle }) {
|
|
|
378
382
|
/* @__PURE__ */ jsxs("span", {
|
|
379
383
|
className: "min-w-0 flex items-baseline gap-2 overflow-hidden",
|
|
380
384
|
children: [
|
|
381
|
-
/* @__PURE__ */
|
|
385
|
+
item.compact ? /* @__PURE__ */ jsxs("span", {
|
|
386
|
+
className: "truncate",
|
|
387
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
388
|
+
className: "tabular-nums",
|
|
389
|
+
children: item.compact.compact.replacedCount
|
|
390
|
+
}), ` ${labels.turnsCompacted}`]
|
|
391
|
+
}) : /* @__PURE__ */ jsx("span", {
|
|
382
392
|
className: `truncate ${running ? "zg-shimmer" : ""}`,
|
|
383
393
|
children: item.label
|
|
384
394
|
}),
|
|
395
|
+
item.compact && /* @__PURE__ */ jsx(CompactMeta, {
|
|
396
|
+
meta: item.compact.compact,
|
|
397
|
+
className: "self-center"
|
|
398
|
+
}),
|
|
385
399
|
item.hint && /* @__PURE__ */ jsx("span", {
|
|
386
400
|
className: "min-w-0 truncate text-[var(--zg-text-subtle)]",
|
|
387
401
|
children: item.hint
|
|
@@ -491,12 +505,17 @@ function ActionGlyph({ state }) {
|
|
|
491
505
|
* Code stays code (monospace, 12px); reasoning stays prose.
|
|
492
506
|
*/
|
|
493
507
|
function ActionDetails({ item, renderRows }) {
|
|
508
|
+
const { Markdown } = useTranscriptRenderers();
|
|
494
509
|
const body = (() => {
|
|
495
510
|
if (item.kind === "thought") return /* @__PURE__ */ jsx("div", {
|
|
496
511
|
className: "text-zg-ui italic leading-relaxed text-[var(--zg-text-muted)] whitespace-pre-line",
|
|
497
512
|
children: (item.thoughts ?? []).map((t) => t.text.replace(/\n{2,}/g, "\n")).join("\n\n")
|
|
498
513
|
});
|
|
499
514
|
if (item.kind === "setup" && item.setup) return /* @__PURE__ */ jsx(EnvironmentSetupDetails, { row: item.setup });
|
|
515
|
+
if (item.kind === "compact" && item.compact) return /* @__PURE__ */ jsx("div", {
|
|
516
|
+
className: "text-zg-ui leading-relaxed text-[var(--zg-text-muted)]",
|
|
517
|
+
children: /* @__PURE__ */ jsx(Markdown, { children: item.compact.text })
|
|
518
|
+
});
|
|
500
519
|
if (item.kind === "worker" || item.tool?.name === "spawn") return /* @__PURE__ */ jsx(WorkerDetails, {
|
|
501
520
|
item,
|
|
502
521
|
renderRows
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* slots (`TranscriptRenderersProvider`) and actions (`TranscriptActionsProvider`).
|
|
4
4
|
* `Transcript` / `HostTranscript` themselves are in `zidane-ui/chat`.
|
|
5
5
|
*/
|
|
6
|
-
import { TranscriptAccounts, TranscriptActions, TranscriptActionsProvider, TranscriptActionsProviderProps, useModelName, useTranscriptActions } from "./actions.js";
|
|
7
|
-
import { TranscriptRenderersProvider, TranscriptRenderersProviderProps } from "./renderer-slots.js";
|
|
6
|
+
import { TranscriptAccounts, TranscriptActions, TranscriptActionsProvider, TranscriptActionsProviderProps, attachmentSrcOf, toolMediaSrcOf, useModelName, useTranscriptActions } from "./actions.js";
|
|
8
7
|
import { AnsiSpans, AnsiSpansProps, AnsiText, AnsiTextProps } from "./AnsiText.js";
|
|
9
|
-
import {
|
|
8
|
+
import { TranscriptRenderersProvider, TranscriptRenderersProviderProps } from "./renderer-slots.js";
|
|
10
9
|
import { AuthFailureCard, AuthFailureCardProps } from "./AuthFailureCard.js";
|
|
10
|
+
import { ToolMediaItem, parseToolMedia } from "../headless/transcript/tool-media.js";
|
|
11
11
|
import { BadgeEffectContext, BadgeMenuBrowser, BadgeMenuComposer, BadgeMenuProvider, BadgeMenuProviderProps, BadgeMenuSystem, OpenBadgeMenu, useBadgeMenu } from "./BadgeMenu.js";
|
|
12
12
|
import { BADGE_GLYPH, FileBadgeIcon, FileBadgeIconProps, LinkBadge, LinkBadgeProps, LinkIcon, LinkIconProps, fileBadgeName, fileBadgeSpec, linkGlyph, siteIconValue } from "./badges.js";
|
|
13
13
|
import { CardMarkdown, CardMarkdownProps } from "./CardMarkdown.js";
|
|
@@ -27,13 +27,13 @@ import { Caret, CaretProps, Dot, DotProps, FailedMark, FailedMarkProps, GUTTER_S
|
|
|
27
27
|
import { ImageGenerationBlock, ImageGenerationBlockProps, drawsImageGeneration, imageRequestsOf, savedPaths } from "./ImageGenerationBlock.js";
|
|
28
28
|
import { InlineChipText, InlineChipTextProps } from "./InlineChipText.js";
|
|
29
29
|
import { InteractionTool, InteractionToolBody, InteractionToolBodyProps, hasInteractionBody } from "./InteractionToolBody.js";
|
|
30
|
-
import { CvRow, CvRowProps, LazyRow, LazyRowProps, TranscriptSettling, holdForceMountRows,
|
|
30
|
+
import { CvRow, CvRowProps, ForcedRows, LazyRow, LazyRowProps, TranscriptSettling, holdForceMountRows, useBackgroundMount, useForceMountRows, useForcedRows } from "./LazyRow.js";
|
|
31
31
|
import { LiveOutput, LiveOutputProps } from "./LiveOutput.js";
|
|
32
32
|
import { Markdown, MarkdownDiagrams, MarkdownDiagramsProps, MarkdownImageProps, MarkdownLinkProps, MarkdownProps } from "./markdown.js";
|
|
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";
|
|
@@ -44,26 +44,28 @@ import { ReferenceChip, ReferenceChipProps, ReferenceText, ReferenceTextProps }
|
|
|
44
44
|
import { ParsedReferenceUrl, parseReferenceUrl, referenceUrl, remarkReferences } from "./remark-references.js";
|
|
45
45
|
import { ParsedRef, RefMatch, classifyInlineRef, findRefs, numberRef, parseRefUrl, refHref, remarkRefs } from "./remark-refs.js";
|
|
46
46
|
import { AttachmentLabelParts, CodeBlockSlotProps, DEFAULT_TRANSCRIPT_RENDERERS, DefaultInlineText, DefaultInlineTextProps, DefaultMarkdown, DefaultMarkdownProps, DefaultPrompt, DefaultPromptProps, DefaultSessionTitle, DefaultSessionTitleProps, InlineTextSlotProps, MarkdownSlotProps, PromptSlotProps, SessionTitleSlotProps, TextPreviewSlotProps, ToolBodySlotProps, TranscriptRenderers, defaultAttachmentLabel, useTranscriptRenderers } from "./renderers.js";
|
|
47
|
+
import { revealRow } from "./row-mount.js";
|
|
47
48
|
import { CompactSummaryRow, CompactSummaryRowProps, RunReceiptInline, RunReceiptInlineProps, RunSummaryRow, RunSummaryRowProps } from "./run-rows.js";
|
|
48
49
|
import { SelectCursor, SelectCursorProps } from "./SelectCursor.js";
|
|
49
50
|
import { SelectTurnExit, SelectTurnHintKeys, SelectTurnHintKeysProps } from "./SelectTurnHint.js";
|
|
50
51
|
import { SelectTurnCommands, SelectTurnProvider, SelectTurnProviderProps, SelectTurnState, SelectTurnValue, useSelectTurn } from "./SelectTurnProvider.js";
|
|
51
52
|
import { RunnableCodeBlock, ShellBlockProvider, ShellBlockProviderProps } from "./shell-block.js";
|
|
52
|
-
import { RunnableCodeBlockProps, ShellBlockScope, useShellBlockScope } from "./shell-block-scope.js";
|
|
53
53
|
import { useSiteIcon } from "./site-icons.js";
|
|
54
|
+
import { RunnableCodeBlockProps, ShellBlockScope, useShellBlockScope } from "./shell-block-scope.js";
|
|
54
55
|
import { SubagentBlock, SubagentBlockProps } from "./SubagentBlock.js";
|
|
55
56
|
import { TaskBatchRow, TaskBatchRowProps, TaskRow, TaskRowProps } from "./tasks.js";
|
|
56
57
|
import { ToolBatchRow, ToolBatchRowProps } from "./tool-batch.js";
|
|
57
58
|
import { ToolDetails, ToolDetailsProps } from "./tool-details.js";
|
|
58
59
|
import { ToolMedia, ToolMediaProps, useToolMedia } from "./tool-media.js";
|
|
59
|
-
import { CODE_PANEL, LoadFullOutputButton, LoadFullOutputButtonProps, ReadFileBlock, ReadFileBlockProps, ToolGlyph, ToolGlyphProps, ToolInput, ToolInputProps, ToolTiming, ToolTimingProps, useFullOutput } from "./tool-parts.js";
|
|
60
|
+
import { CODE_PANEL, LoadFullOutputButton, LoadFullOutputButtonProps, ReadFileBlock, ReadFileBlockProps, ToolGlyph, ToolGlyphProps, ToolInput, ToolInputProps, ToolTiming, ToolTimingProps, useFullOutput, useFullToolCall } from "./tool-parts.js";
|
|
60
61
|
import { ModelVerdict, ModelVerdictProps, NestedToolCalls, NestedToolCallsProps, ToolRow, ToolRowProps } from "./tool-row.js";
|
|
62
|
+
import { TranscriptRail, TranscriptRailProps, TranscriptRailProvider, TranscriptRailProviderProps, useRailOutline, useTranscriptRailStore } from "./TranscriptRail.js";
|
|
61
63
|
import { RowContext, SlotEntry, TranscriptRow, TranscriptRowProps, TranscriptRowSlot, TranscriptRowSlotProps, TranscriptTurnMenu, TurnMenuTarget, isHiddenRow } from "./TranscriptRow.js";
|
|
62
64
|
import { TranscriptSearch, TranscriptSearchProps } from "./TranscriptSearch.js";
|
|
63
65
|
import { TurnCommands, TurnCommandsOptions, createTurnCommands, turnViewsOf, useTurnCommands } from "./turn-commands.js";
|
|
64
66
|
import { TurnMenuActions, useTurnMenu } from "./TurnMenu.js";
|
|
65
67
|
import { HostTurnMenuOptions, useHostTurnMenu } from "./use-host-turn-menu.js";
|
|
66
|
-
import { TranscriptRows, TranscriptRowsInput, useSelectStops, useTranscriptRows } from "./use-transcript-rows.js";
|
|
68
|
+
import { TranscriptRows, TranscriptRowsInput, TranscriptSource, useSelectStops, useTranscriptRows } from "./use-transcript-rows.js";
|
|
67
69
|
import { ComposerSearch, useComposerSearch } from "./useComposerSearch.js";
|
|
68
70
|
import { UserBashRow, UserBashRowProps } from "./user-bash.js";
|
|
69
71
|
import { SelectTurnKeysOptions, useSelectTurnKeys } from "./useSelectTurnKeys.js";
|
|
@@ -76,4 +78,4 @@ import { MAX_MATCHES, SearchHighlightStyle, TranscriptSearchOptions, TranscriptS
|
|
|
76
78
|
import { useTranscriptSelectionCopy } from "./useTranscriptSelectionCopy.js";
|
|
77
79
|
import { useWheelHoverPause } from "./useWheelHoverPause.js";
|
|
78
80
|
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,
|
|
81
|
+
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, ForcedRows, 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, TranscriptSource, TranscriptTurnMenu, TurnCommands, TurnCommandsOptions, TurnMenuActions, TurnMenuTarget, UserBashRow, UserBashRowProps, UserPromptAttachments, UserPromptAttachmentsProps, UserPromptRow, UserPromptRowProps, WorkerDetails, WorkerDetailsProps, attachmentSrcOf, classifyInlineRef, copyPromptLines, createTurnCommands, defaultAttachmentLabel, drawsImageGeneration, fileBadgeName, fileBadgeSpec, findRefs, hasInteractionBody, holdForceMountRows, imageRequestsOf, isHiddenRow, lineStateOf, linkGlyph, numberRef, parseRefUrl, parseReferenceUrl, parseToolMedia, refHref, referenceUrl, remarkReferences, remarkRefs, revealRow, savedPaths, siteIconValue, toolMediaSrcOf, turnViewsOf, useBackgroundMount, useBadgeMenu, useChipResolution, useCommand, useCommitInfo, useComposerSearch, useFillViewportScrollback, useForceMountRows, useForcedRows, useFullOutput, useFullToolCall, useHostTurnMenu, useModelName, useRailOutline, 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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TranscriptActionsProvider, useModelName, useTranscriptActions } from "./actions.js";
|
|
1
|
+
import { TranscriptActionsProvider, attachmentSrcOf, toolMediaSrcOf, useModelName, useTranscriptActions } from "./actions.js";
|
|
2
2
|
import { AnsiSpans, AnsiText } from "./AnsiText.js";
|
|
3
3
|
import { AuthFailureCard } from "./AuthFailureCard.js";
|
|
4
4
|
import { BadgeMenuProvider, useBadgeMenu } from "./BadgeMenu.js";
|
|
@@ -13,23 +13,23 @@ import { DiffLines } from "./DiffLines.js";
|
|
|
13
13
|
import { AUTO_FILL_PAGES, FILL_MIN_PROMPTS, LoadEarlierRow, useFillViewportScrollback } from "./EarlierHistory.js";
|
|
14
14
|
import { EditDiffBlock } from "./EditDiffBlock.js";
|
|
15
15
|
import { EnvironmentSetupDetails, EnvironmentSetupRow } from "./environment-setup.js";
|
|
16
|
-
import { useShellBlockScope } from "./shell-block-scope.js";
|
|
17
16
|
import { InlineCode, RefChip } from "./FileChip.js";
|
|
17
|
+
import { useShellBlockScope } from "./shell-block-scope.js";
|
|
18
18
|
import { ExchangeFoldRow, FoldHeader, LiveScriptsContext } from "./fold.js";
|
|
19
|
-
import { parseToolMedia } from "../headless/transcript/tool-media.js";
|
|
20
19
|
import { WorkerDetails } from "./fold-worker.js";
|
|
20
|
+
import { parseToolMedia } from "../headless/transcript/tool-media.js";
|
|
21
21
|
import { Caret, Dot, FailedMark, GUTTER_STEP_PX, RowFrame, RowIconsContext, lineStateOf, useRowIcons } from "./frame.js";
|
|
22
22
|
import { ImageGenerationBlock, drawsImageGeneration, imageRequestsOf, savedPaths } from "./ImageGenerationBlock.js";
|
|
23
23
|
import { InlineChipText } from "./InlineChipText.js";
|
|
24
24
|
import { InteractionToolBody, hasInteractionBody } from "./InteractionToolBody.js";
|
|
25
|
-
import { CvRow, LazyRow, TranscriptSettling, holdForceMountRows,
|
|
25
|
+
import { CvRow, LazyRow, TranscriptSettling, holdForceMountRows, useBackgroundMount, useForceMountRows, useForcedRows } from "./LazyRow.js";
|
|
26
26
|
import { LiveOutput } from "./LiveOutput.js";
|
|
27
27
|
import { Markdown, MarkdownDiagrams } from "./markdown.js";
|
|
28
28
|
import { CommandScopeContext, INLINE_CODE_CLASS, MarkdownContext, OpenSessionContext } from "./markdown-context.js";
|
|
29
29
|
import { MermaidDiagram } from "./MermaidDiagram.js";
|
|
30
|
-
import { TranscriptRenderersProvider } from "./renderer-slots.js";
|
|
31
30
|
import { MessageGroupRow } from "./messages.js";
|
|
32
|
-
import {
|
|
31
|
+
import { TranscriptRenderersProvider } from "./renderer-slots.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";
|
|
@@ -40,6 +40,7 @@ import { ReferenceChip, ReferenceText } from "./ReferenceText.js";
|
|
|
40
40
|
import { parseReferenceUrl, referenceUrl, remarkReferences } from "./remark-references.js";
|
|
41
41
|
import { classifyInlineRef, findRefs, numberRef, parseRefUrl, refHref, remarkRefs } from "./remark-refs.js";
|
|
42
42
|
import { DEFAULT_TRANSCRIPT_RENDERERS, DefaultInlineText, DefaultMarkdown, DefaultPrompt, DefaultSessionTitle, defaultAttachmentLabel, useTranscriptRenderers } from "./renderers.js";
|
|
43
|
+
import { revealRow } from "./row-mount.js";
|
|
43
44
|
import { CompactSummaryRow, RunReceiptInline, RunSummaryRow } from "./run-rows.js";
|
|
44
45
|
import { SelectCursor } from "./SelectCursor.js";
|
|
45
46
|
import { SelectTurnExit, SelectTurnHintKeys } from "./SelectTurnHint.js";
|
|
@@ -51,8 +52,9 @@ import { TaskBatchRow, TaskRow } from "./tasks.js";
|
|
|
51
52
|
import { ToolBatchRow } from "./tool-batch.js";
|
|
52
53
|
import { ToolDetails } from "./tool-details.js";
|
|
53
54
|
import { ToolMedia, useToolMedia } from "./tool-media.js";
|
|
54
|
-
import { CODE_PANEL, LoadFullOutputButton, ReadFileBlock, ToolGlyph, ToolInput, ToolTiming, useFullOutput } from "./tool-parts.js";
|
|
55
|
+
import { CODE_PANEL, LoadFullOutputButton, ReadFileBlock, ToolGlyph, ToolInput, ToolTiming, useFullOutput, useFullToolCall } from "./tool-parts.js";
|
|
55
56
|
import { ModelVerdict, NestedToolCalls, ToolRow } from "./tool-row.js";
|
|
57
|
+
import { TranscriptRail, TranscriptRailProvider, useRailOutline, useTranscriptRailStore } from "./TranscriptRail.js";
|
|
56
58
|
import { TranscriptRow, TranscriptRowSlot, isHiddenRow } from "./TranscriptRow.js";
|
|
57
59
|
import { TranscriptSearch } from "./TranscriptSearch.js";
|
|
58
60
|
import { createTurnCommands, turnViewsOf, useTurnCommands } from "./turn-commands.js";
|
|
@@ -71,4 +73,4 @@ import { MAX_MATCHES, SearchHighlightStyle, useTranscriptSearch } from "./useTra
|
|
|
71
73
|
import { useTranscriptSelectionCopy } from "./useTranscriptSelectionCopy.js";
|
|
72
74
|
import { useWheelHoverPause } from "./useWheelHoverPause.js";
|
|
73
75
|
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,
|
|
76
|
+
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, attachmentSrcOf, classifyInlineRef, copyPromptLines, createTurnCommands, defaultAttachmentLabel, drawsImageGeneration, fileBadgeName, fileBadgeSpec, findRefs, hasInteractionBody, holdForceMountRows, imageRequestsOf, isHiddenRow, lineStateOf, linkGlyph, numberRef, parseRefUrl, parseReferenceUrl, parseToolMedia, refHref, referenceUrl, remarkReferences, remarkRefs, revealRow, savedPaths, siteIconValue, toolMediaSrcOf, turnViewsOf, useBackgroundMount, useBadgeMenu, useChipResolution, useCommand, useCommitInfo, useComposerSearch, useFillViewportScrollback, useForceMountRows, useForcedRows, useFullOutput, useFullToolCall, useHostTurnMenu, useModelName, useRailOutline, 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 };
|
|
@@ -31,4 +31,10 @@ export interface MarkdownParseKey {
|
|
|
31
31
|
*/
|
|
32
32
|
export declare function cachedMarkdown(text: string, key: MarkdownParseKey, parse: () => ReactElement): ReactElement;
|
|
33
33
|
/** Empties the cache (tests). */
|
|
34
|
-
export declare function clearMarkdownCache(): void;
|
|
34
|
+
export declare function clearMarkdownCache(): void;
|
|
35
|
+
/** What the cache holds, and how many parses it took in since it was last emptied (tests, benches). */
|
|
36
|
+
export declare function markdownCacheStats(): {
|
|
37
|
+
entries: number;
|
|
38
|
+
chars: number;
|
|
39
|
+
inserts: number;
|
|
40
|
+
};
|