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
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
* stop. That row knows how to pick the work back up: `continue` when the
|
|
9
9
|
* run had done something, `retry` (resend the prompt) when it had not.
|
|
10
10
|
* The TUI applies the same classifier to events (`src/tui/run-stops.ts`).
|
|
11
|
+
*
|
|
12
|
+
* An error on a broken environment (`detail.environment`) that a later setup
|
|
13
|
+
* or a later reply shows was fixed is marked `repaired`: the transcript keeps
|
|
14
|
+
* it, as a quiet line, instead of a stop that still asks for action.
|
|
11
15
|
*/
|
|
12
16
|
import { Row } from "./rows.js";
|
|
13
17
|
type ErrorRow = Extract<Row, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createRunStopMarker } from "zidane/chat/pure";
|
|
1
|
+
import { createRunStopMarker, noteTranscriptPass } from "zidane/chat/pure";
|
|
2
2
|
// src/chat/headless/transcript/run-failures.ts
|
|
3
3
|
/** A reset time: the clock time today, with the date on any other day. */
|
|
4
4
|
function formatResetTime(resetsAt) {
|
|
@@ -57,6 +57,35 @@ const markRows = createRunStopMarker({
|
|
|
57
57
|
* @param rows - The transcript rows, oldest first.
|
|
58
58
|
*/
|
|
59
59
|
function markRunFailures(rows) {
|
|
60
|
-
|
|
60
|
+
noteTranscriptPass("run-failures", rows.length);
|
|
61
|
+
return markRepaired(markRows(rows));
|
|
62
|
+
}
|
|
63
|
+
/** Each repaired error's copy, per row: a row that did not change keeps its identity (memoised rows stay put). */
|
|
64
|
+
const REPAIRED = /* @__PURE__ */ new WeakMap();
|
|
65
|
+
/** The environment works again after this row: a setup that finished, or a reply. */
|
|
66
|
+
function showsWorking(row) {
|
|
67
|
+
return row.kind === "environment-setup" && row.setup.state === "done" || row.kind === "markdown" && row.text.trim() !== "";
|
|
68
|
+
}
|
|
69
|
+
/** Marks the environment errors a later row shows were fixed (`repaired`); `rows` itself when none. */
|
|
70
|
+
function markRepaired(rows) {
|
|
71
|
+
let fixedLater = false;
|
|
72
|
+
let out;
|
|
73
|
+
for (let i = rows.length - 1; i >= 0; i--) {
|
|
74
|
+
const row = rows[i];
|
|
75
|
+
if (fixedLater && row.kind === "error" && row.detail?.environment && !row.repaired) {
|
|
76
|
+
let copy = REPAIRED.get(row);
|
|
77
|
+
if (!copy) {
|
|
78
|
+
copy = {
|
|
79
|
+
...row,
|
|
80
|
+
repaired: true
|
|
81
|
+
};
|
|
82
|
+
REPAIRED.set(row, copy);
|
|
83
|
+
}
|
|
84
|
+
out ??= rows.slice();
|
|
85
|
+
out[i] = copy;
|
|
86
|
+
}
|
|
87
|
+
if (showsWorking(row)) fixedLater = true;
|
|
88
|
+
}
|
|
89
|
+
return out ?? rows;
|
|
61
90
|
}
|
|
62
91
|
export { failureTooltip, markRunFailures };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where a transcript can be cut so that its parts derive rows on their own.
|
|
3
|
+
*
|
|
4
|
+
* Every pass of the row pipeline (`derive.ts`) stops at an exchange start (a
|
|
5
|
+
* top-level prompt and the separators before it), except where data ties two
|
|
6
|
+
* exchanges together:
|
|
7
|
+
*
|
|
8
|
+
* - ids: a result, a nested call, a script's progress or a queued spawn names
|
|
9
|
+
* a call of an earlier exchange (`callId`, `parentToolCallId`); a subagent
|
|
10
|
+
* or a turn spans exchanges (`childId`, `spawn.parentChildId`, `turnId`:
|
|
11
|
+
* clustering, ordinals); a call without an id pairs by turn and tool name.
|
|
12
|
+
* - environment setups: the last attempt is marked as such (all setups tie),
|
|
13
|
+
* and a running one at an exchange's end moves into the next exchange.
|
|
14
|
+
* - a broken-environment error is marked repaired by the next reply, which
|
|
15
|
+
* may be in a later exchange.
|
|
16
|
+
*
|
|
17
|
+
* Exchanges tied this way form one block, derived together. Ties are rare
|
|
18
|
+
* (a background subagent writing across a prompt, a setup), so a block is
|
|
19
|
+
* almost always one exchange.
|
|
20
|
+
*/
|
|
21
|
+
import { ChatEvent } from "../host.js";
|
|
22
|
+
/** What one exchange's events tie to. */
|
|
23
|
+
export interface ExchangeTies {
|
|
24
|
+
/** Ids it shares with any exchange holding the same id. */
|
|
25
|
+
keys: readonly string[];
|
|
26
|
+
/** It ends on a running (or waited-for) setup, which moves into the next exchange. */
|
|
27
|
+
heldEnd: boolean;
|
|
28
|
+
/** It holds a broken-environment error a later reply may mark repaired. */
|
|
29
|
+
envError: boolean;
|
|
30
|
+
/** It holds what shows the environment works (a reply, a custom row, a setup). */
|
|
31
|
+
works: boolean;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* The ties of a settled exchange (computed once per chunk).
|
|
35
|
+
*
|
|
36
|
+
* @param chunk - The exchange's events, never changed.
|
|
37
|
+
*/
|
|
38
|
+
export declare function chunkTies(chunk: readonly ChatEvent[]): ExchangeTies;
|
|
39
|
+
/**
|
|
40
|
+
* The ties of the open exchange (computed each time: it changes every frame).
|
|
41
|
+
*
|
|
42
|
+
* @param tail - The open exchange's events.
|
|
43
|
+
*/
|
|
44
|
+
export declare function tailTies(tail: readonly ChatEvent[]): ExchangeTies;
|
|
45
|
+
/** A run of chunks derived together: `[start, end)`. */
|
|
46
|
+
export interface Block {
|
|
47
|
+
start: number;
|
|
48
|
+
end: number;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* The blocks of a list of exchanges, grown one exchange at a time. Reused
|
|
52
|
+
* while the list only grows (a commit appends one exchange); any other change
|
|
53
|
+
* plans again from the start.
|
|
54
|
+
*/
|
|
55
|
+
export declare class BlockPlan {
|
|
56
|
+
/** The exchanges planned so far. */
|
|
57
|
+
chunks: ReadonlyArray<readonly ChatEvent[]>;
|
|
58
|
+
/** The blocks, oldest first, covering every planned exchange. */
|
|
59
|
+
blocks: Block[];
|
|
60
|
+
private firstSeen;
|
|
61
|
+
private openRepair;
|
|
62
|
+
private lastHeld;
|
|
63
|
+
/**
|
|
64
|
+
* Brings the plan to `chunks`.
|
|
65
|
+
*
|
|
66
|
+
* @param chunks - The settled exchanges, oldest first.
|
|
67
|
+
*/
|
|
68
|
+
update(chunks: ReadonlyArray<readonly ChatEvent[]>): void;
|
|
69
|
+
/**
|
|
70
|
+
* The index of the first block an exchange with `ties`, appended after the planned ones, must join (`blocks.length` for none).
|
|
71
|
+
*
|
|
72
|
+
* @param ties - The appended exchange's ties.
|
|
73
|
+
*/
|
|
74
|
+
joinFrom(ties: ExchangeTies): number;
|
|
75
|
+
private add;
|
|
76
|
+
/** The earliest exchange the one at `index` ties to (`index` for none); `record` files its ids. */
|
|
77
|
+
private reach;
|
|
78
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { chunkFact, readEnvironmentSetup } from "zidane/chat/pure";
|
|
2
|
+
// src/chat/headless/transcript/seams.ts
|
|
3
|
+
function tiesOf(events) {
|
|
4
|
+
const keys = /* @__PURE__ */ new Set();
|
|
5
|
+
let envError = false;
|
|
6
|
+
let works = false;
|
|
7
|
+
for (const e of events) {
|
|
8
|
+
if (e.callId) keys.add(`c:${e.callId}`);
|
|
9
|
+
if (e.parentToolCallId) keys.add(`c:${e.parentToolCallId}`);
|
|
10
|
+
if (e.spawn?.callId) keys.add(`c:${e.spawn.callId}`);
|
|
11
|
+
if (e.spawn?.parentChildId) keys.add(`o:${e.spawn.parentChildId}`);
|
|
12
|
+
if (e.childId) keys.add(`o:${e.childId}`);
|
|
13
|
+
if (e.turnId) keys.add(`t:${e.turnId}`);
|
|
14
|
+
if (e.tool && !e.callId && (e.kind === "tool" || e.kind === "tool-result" || e.kind === "error")) keys.add(`p:${e.turnId ?? ""}::${e.tool}`);
|
|
15
|
+
if (readEnvironmentSetup(e)) keys.add("setup");
|
|
16
|
+
if (e.kind === "error" && e.detail?.environment) envError = true;
|
|
17
|
+
if (e.kind === "markdown" && e.text.trim() !== "" || e.kind === "custom") works = true;
|
|
18
|
+
}
|
|
19
|
+
let heldEnd = false;
|
|
20
|
+
for (let i = events.length - 1; i >= 0 && !heldEnd; i--) {
|
|
21
|
+
const setup = readEnvironmentSetup(events[i]);
|
|
22
|
+
if (!setup) break;
|
|
23
|
+
heldEnd = setup.state === "running" || setup.waited === true;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
keys: [...keys],
|
|
27
|
+
heldEnd,
|
|
28
|
+
envError,
|
|
29
|
+
works
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* The ties of a settled exchange (computed once per chunk).
|
|
34
|
+
*
|
|
35
|
+
* @param chunk - The exchange's events, never changed.
|
|
36
|
+
*/
|
|
37
|
+
function chunkTies(chunk) {
|
|
38
|
+
return chunkFact(chunk, "row-ties", tiesOf);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The ties of the open exchange (computed each time: it changes every frame).
|
|
42
|
+
*
|
|
43
|
+
* @param tail - The open exchange's events.
|
|
44
|
+
*/
|
|
45
|
+
function tailTies(tail) {
|
|
46
|
+
return tiesOf(tail);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The blocks of a list of exchanges, grown one exchange at a time. Reused
|
|
50
|
+
* while the list only grows (a commit appends one exchange); any other change
|
|
51
|
+
* plans again from the start.
|
|
52
|
+
*/
|
|
53
|
+
var BlockPlan = class {
|
|
54
|
+
/** The exchanges planned so far. */
|
|
55
|
+
chunks = [];
|
|
56
|
+
/** The blocks, oldest first, covering every planned exchange. */
|
|
57
|
+
blocks = [];
|
|
58
|
+
firstSeen = /* @__PURE__ */ new Map();
|
|
59
|
+
openRepair = -1;
|
|
60
|
+
lastHeld = false;
|
|
61
|
+
/**
|
|
62
|
+
* Brings the plan to `chunks`.
|
|
63
|
+
*
|
|
64
|
+
* @param chunks - The settled exchanges, oldest first.
|
|
65
|
+
*/
|
|
66
|
+
update(chunks) {
|
|
67
|
+
if (chunks === this.chunks) return;
|
|
68
|
+
let same = chunks.length >= this.chunks.length;
|
|
69
|
+
for (let i = 0; same && i < this.chunks.length; i++) same = chunks[i] === this.chunks[i];
|
|
70
|
+
if (!same) {
|
|
71
|
+
this.blocks = [];
|
|
72
|
+
this.firstSeen = /* @__PURE__ */ new Map();
|
|
73
|
+
this.openRepair = -1;
|
|
74
|
+
this.lastHeld = false;
|
|
75
|
+
}
|
|
76
|
+
for (let i = same ? this.chunks.length : 0; i < chunks.length; i++) this.add(i, chunkTies(chunks[i]));
|
|
77
|
+
this.chunks = chunks;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* The index of the first block an exchange with `ties`, appended after the planned ones, must join (`blocks.length` for none).
|
|
81
|
+
*
|
|
82
|
+
* @param ties - The appended exchange's ties.
|
|
83
|
+
*/
|
|
84
|
+
joinFrom(ties) {
|
|
85
|
+
const reach = this.reach(this.chunks.length, ties, false);
|
|
86
|
+
let b = this.blocks.length;
|
|
87
|
+
while (b > 0 && this.blocks[b - 1].end > reach) b--;
|
|
88
|
+
return b;
|
|
89
|
+
}
|
|
90
|
+
add(index, ties) {
|
|
91
|
+
const reach = this.reach(index, ties, true);
|
|
92
|
+
let start = index;
|
|
93
|
+
while (this.blocks.length > 0 && this.blocks.at(-1).end > reach) start = this.blocks.pop().start;
|
|
94
|
+
this.blocks.push({
|
|
95
|
+
start,
|
|
96
|
+
end: index + 1
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
/** The earliest exchange the one at `index` ties to (`index` for none); `record` files its ids. */
|
|
100
|
+
reach(index, ties, record) {
|
|
101
|
+
let reach = index;
|
|
102
|
+
for (const key of ties.keys) {
|
|
103
|
+
const seen = this.firstSeen.get(key);
|
|
104
|
+
if (seen !== void 0) reach = Math.min(reach, seen);
|
|
105
|
+
else if (record) this.firstSeen.set(key, index);
|
|
106
|
+
}
|
|
107
|
+
if (this.lastHeld) reach = Math.min(reach, index - 1);
|
|
108
|
+
if (ties.works && this.openRepair >= 0) reach = Math.min(reach, this.openRepair);
|
|
109
|
+
if (record) {
|
|
110
|
+
this.openRepair = ties.envError ? index : ties.works ? -1 : this.openRepair;
|
|
111
|
+
this.lastHeld = ties.heldEnd;
|
|
112
|
+
}
|
|
113
|
+
return reach;
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
export { BlockPlan, chunkTies, tailTies };
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A tool result's media, read from its text: the transcript carries each
|
|
3
|
-
* image, video or audio block as a stand-in line (`[image: image/png, 742500
|
|
4
|
-
* b64 bytes]`, core's `toolResultToText`), which an app that serves the
|
|
5
|
-
* bytes turns back into the media (`TranscriptActions.toolMediaUrl`).
|
|
6
|
-
*/
|
|
7
1
|
/** One media block of a tool result, as parsed from its text stand-in. */
|
|
8
2
|
export interface ToolMediaItem {
|
|
9
3
|
/** What the block is. */
|
|
@@ -14,13 +8,18 @@ export interface ToolMediaItem {
|
|
|
14
8
|
index: number;
|
|
15
9
|
/** The stand-in line, shown again if the media fails to load. */
|
|
16
10
|
marker: string;
|
|
11
|
+
/** The blob hash the store holds the block by, when it does: its address for good. */
|
|
12
|
+
hash?: string;
|
|
17
13
|
}
|
|
18
14
|
/**
|
|
19
15
|
* The media stand-ins of a result's text, in order, and the text without them.
|
|
20
16
|
*
|
|
21
17
|
* @param text - The tool result's text.
|
|
18
|
+
* @param keep - Which items become media; the others stay in the text as their stand-in line (an app that can serve
|
|
19
|
+
* them not). Every item keeps its position among the result's media (`index`). Default: all.
|
|
20
|
+
* @param refs - The blobs the blocks are held as, by position (`StreamEvent.mediaRefs`): their `hash`.
|
|
22
21
|
*/
|
|
23
|
-
export declare function parseToolMedia(text: string): {
|
|
22
|
+
export declare function parseToolMedia(text: string, keep?: (item: ToolMediaItem) => boolean, refs?: readonly (string | null)[]): {
|
|
24
23
|
media: ToolMediaItem[];
|
|
25
24
|
rest: string;
|
|
26
25
|
};
|
|
@@ -1,22 +1,40 @@
|
|
|
1
|
+
import { blobHashOf } from "./blob-media.js";
|
|
1
2
|
// src/chat/headless/transcript/tool-media.ts
|
|
2
|
-
|
|
3
|
+
/**
|
|
4
|
+
* A tool result's media, read from its text: the transcript carries each
|
|
5
|
+
* image, video or audio block as a stand-in line (`[image: image/png, 742500
|
|
6
|
+
* b64 bytes]`, core's `toolResultToText`), which an app that serves the
|
|
7
|
+
* bytes turns back into the media (`TranscriptActions.toolMediaUrl`). A block
|
|
8
|
+
* the store holds by hash reads `ref attachment://<hash>` in place of its size:
|
|
9
|
+
* its `hash` addresses it for good (`TranscriptActions.blobMediaUrl`).
|
|
10
|
+
*/
|
|
11
|
+
const MARKER = /^\[(image|video|audio): ([^,\]]+), (?:\d+ b64 bytes|ref ([^\]]*))\]$/;
|
|
3
12
|
/**
|
|
4
13
|
* The media stand-ins of a result's text, in order, and the text without them.
|
|
5
14
|
*
|
|
6
15
|
* @param text - The tool result's text.
|
|
16
|
+
* @param keep - Which items become media; the others stay in the text as their stand-in line (an app that can serve
|
|
17
|
+
* them not). Every item keeps its position among the result's media (`index`). Default: all.
|
|
18
|
+
* @param refs - The blobs the blocks are held as, by position (`StreamEvent.mediaRefs`): their `hash`.
|
|
7
19
|
*/
|
|
8
|
-
function parseToolMedia(text) {
|
|
20
|
+
function parseToolMedia(text, keep, refs) {
|
|
9
21
|
const media = [];
|
|
10
22
|
const rest = [];
|
|
23
|
+
let index = 0;
|
|
11
24
|
for (const line of text.split("\n")) {
|
|
12
25
|
const m = MARKER.exec(line.trim());
|
|
13
|
-
if (m)
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
26
|
+
if (m) {
|
|
27
|
+
const hash = blobHashOf(refs?.[index] ?? void 0) ?? blobHashOf(m[3]?.trim());
|
|
28
|
+
const item = {
|
|
29
|
+
kind: m[1],
|
|
30
|
+
mediaType: m[2].trim(),
|
|
31
|
+
index: index++,
|
|
32
|
+
marker: line.trim(),
|
|
33
|
+
...hash ? { hash } : {}
|
|
34
|
+
};
|
|
35
|
+
if (!keep || keep(item)) media.push(item);
|
|
36
|
+
else rest.push(line);
|
|
37
|
+
} else rest.push(line);
|
|
20
38
|
}
|
|
21
39
|
return {
|
|
22
40
|
media,
|
|
@@ -23,6 +23,7 @@ const TURN_LABELS = {
|
|
|
23
23
|
selectTurnExit: "Exit",
|
|
24
24
|
selectTurnCopied: "Copied",
|
|
25
25
|
selectTurnNothingToCopy: "Nothing to copy",
|
|
26
|
-
selectTurnForkFailed: "Fork failed"
|
|
26
|
+
selectTurnForkFailed: "Fork failed",
|
|
27
|
+
promptRail: "Your messages"
|
|
27
28
|
};
|
|
28
29
|
export { TURN_LABELS };
|
package/dist/chat/index.d.ts
CHANGED
|
@@ -9,9 +9,10 @@ import { ImageModelRow, ModelCatalogRow, ModelPickRef } from "./headless/compose
|
|
|
9
9
|
import { ComposerAttachment } from "./headless/composer/host.js";
|
|
10
10
|
import { ChatProvider, ChatProviderProps, useChatHost, useHostSessions, useOptionalChatHost } from "./ChatProvider.js";
|
|
11
11
|
import "./composer/index.js";
|
|
12
|
-
import { DaemonOrb, DaemonOrbButton, DaemonOrbButtonProps, DaemonOrbProps, OrbState, orbState } from "./DaemonOrb.js";
|
|
12
|
+
import { DaemonOrb, DaemonOrbButton, DaemonOrbButtonProps, DaemonOrbProps, OrbState, StatusOrb, StatusOrbProps, orbState } from "./DaemonOrb.js";
|
|
13
13
|
import { HostBadge, HostBadgeProps } from "./HostBadge.js";
|
|
14
14
|
import { RowContext, SlotEntry, TranscriptRow, TranscriptRowProps, TranscriptRowSlot, TranscriptRowSlotProps, TranscriptTurnMenu, TurnMenuTarget, isHiddenRow } from "./transcript/TranscriptRow.js";
|
|
15
|
+
import { TranscriptRows, TranscriptRowsInput, TranscriptSource, useSelectStops, useTranscriptRows } from "./transcript/use-transcript-rows.js";
|
|
15
16
|
import { HostStatusDot, HostStatusDotProps } from "./HostStatusDot.js";
|
|
16
17
|
import { HostTranscript, HostTranscriptProps } from "./HostTranscript.js";
|
|
17
18
|
import "./interactions/index.js";
|
|
@@ -26,7 +27,7 @@ import { SessionList, SessionListProps } from "./SessionList.js";
|
|
|
26
27
|
import { SessionListRow, SessionListRowProps } from "./SessionListRow.js";
|
|
27
28
|
import { TranscriptRenderersProvider, TranscriptRenderersProviderProps } from "./transcript/renderer-slots.js";
|
|
28
29
|
import { AttachmentLabelParts, CodeBlockSlotProps, DEFAULT_TRANSCRIPT_RENDERERS, DefaultInlineText, DefaultInlineTextProps, DefaultMarkdown, DefaultMarkdownProps, DefaultPrompt, DefaultPromptProps, DefaultSessionTitle, DefaultSessionTitleProps, InlineTextSlotProps, MarkdownSlotProps, PromptSlotProps, SessionTitleSlotProps, TextPreviewSlotProps, ToolBodySlotProps, TranscriptRenderers, defaultAttachmentLabel, useTranscriptRenderers } from "./transcript/renderers.js";
|
|
29
|
-
import { SessionStreamsProvider, SessionStreamsProviderProps, useCaptureRunState, useHasSessionEvents, useIsSessionHydrated, useOptionalSessionStreamActions, usePeekRunSeq, usePeekSessionEvents, usePeekSessionRunning, useSessionEdits, useSessionEvents, useSessionEventsSelector, useSessionFallbackModel, useSessionPage, useSessionRetry, useSessionRunning, useSessionStreamActions, useSessionStreams, useSessionSystemMd } from "./SessionStreamsProvider.js";
|
|
30
|
+
import { SessionStreamsProvider, SessionStreamsProviderProps, useCaptureRunState, useHasSessionEvents, useIsSessionHydrated, useOptionalSessionStreamActions, usePeekRunSeq, usePeekSessionEvents, usePeekSessionRunning, useSessionEdits, useSessionEvents, useSessionEventsSelector, useSessionFallbackModel, useSessionPage, useSessionRetry, useSessionRunning, useSessionStreamActions, useSessionStreams, useSessionSystemMd, useSessionTranscript } from "./SessionStreamsProvider.js";
|
|
30
31
|
import { SessionDotState, StatusDot, StatusDotProps, dotStateFor } from "./StatusDot.js";
|
|
31
32
|
import { AgentPicker, AgentPickerProps, AgentProfile } from "./composer/AgentPicker.js";
|
|
32
33
|
import { AgentPickerDialog, AgentPickerDialogProps } from "./composer/AgentPickerDialog.js";
|
|
@@ -104,7 +105,7 @@ import { SecretInput, SecretInputProps } from "./interactions/SecretInput.js";
|
|
|
104
105
|
import { Throbber, ThrobberProps, ThrobberVariant } from "./Throbber.js";
|
|
105
106
|
import { DEFAULT_TRANSCRIPT_OPTIONS, Transcript, TranscriptOptions, TranscriptProps, TranscriptSelection } from "./Transcript.js";
|
|
106
107
|
import { TRANSCRIPT_OPTION_KEYS, useTranscriptOptions } from "./transcript-options.js";
|
|
107
|
-
import { TranscriptAccounts, TranscriptActions, TranscriptActionsProvider, TranscriptActionsProviderProps, useModelName, useTranscriptActions } from "./transcript/actions.js";
|
|
108
|
+
import { TranscriptAccounts, TranscriptActions, TranscriptActionsProvider, TranscriptActionsProviderProps, attachmentSrcOf, toolMediaSrcOf, useModelName, useTranscriptActions } from "./transcript/actions.js";
|
|
108
109
|
import { AnsiSpans, AnsiSpansProps, AnsiText, AnsiTextProps } from "./transcript/AnsiText.js";
|
|
109
110
|
import { AuthFailureCard, AuthFailureCardProps } from "./transcript/AuthFailureCard.js";
|
|
110
111
|
import { BadgeEffectContext, BadgeMenuBrowser, BadgeMenuComposer, BadgeMenuProvider, BadgeMenuProviderProps, BadgeMenuSystem, OpenBadgeMenu, useBadgeMenu } from "./transcript/BadgeMenu.js";
|
|
@@ -127,13 +128,13 @@ import { WorkerDetails, WorkerDetailsProps } from "./transcript/fold-worker.js";
|
|
|
127
128
|
import { ImageGenerationBlock, ImageGenerationBlockProps, drawsImageGeneration, imageRequestsOf, savedPaths } from "./transcript/ImageGenerationBlock.js";
|
|
128
129
|
import { InlineChipText, InlineChipTextProps } from "./transcript/InlineChipText.js";
|
|
129
130
|
import { InteractionTool, InteractionToolBody, InteractionToolBodyProps, hasInteractionBody } from "./transcript/InteractionToolBody.js";
|
|
130
|
-
import { CvRow, CvRowProps, LazyRow, LazyRowProps, TranscriptSettling, holdForceMountRows,
|
|
131
|
+
import { CvRow, CvRowProps, ForcedRows, LazyRow, LazyRowProps, TranscriptSettling, holdForceMountRows, useBackgroundMount, useForceMountRows, useForcedRows } from "./transcript/LazyRow.js";
|
|
131
132
|
import { LiveOutput, LiveOutputProps } from "./transcript/LiveOutput.js";
|
|
132
133
|
import { Markdown, MarkdownDiagrams, MarkdownDiagramsProps, MarkdownImageProps, MarkdownLinkProps, MarkdownProps } from "./transcript/markdown.js";
|
|
133
134
|
import { ChipOpener, CommandScope, CommandScopeContext, INLINE_CODE_CLASS, MarkdownContext, MarkdownContextValue, OpenSessionContext } from "./transcript/markdown-context.js";
|
|
134
135
|
import { MermaidDiagram, MermaidDiagramProps } from "./transcript/MermaidDiagram.js";
|
|
135
136
|
import { MessageGroupRow, MessageGroupRowProps } from "./transcript/messages.js";
|
|
136
|
-
import { COMMAND_DETAIL_LINE, CommandDetailRow, CommandDetailRowProps, CommandNoteRow, CommandNoteRowProps, ErrorRow, ErrorRowProps, FailureRow, FailureRowProps, InfoRow, InfoRowProps, NoticeRow, NoticeRowProps, SessionEventRow, SessionEventRowProps, SpawnEndRow, SpawnEndRowProps, SpawnStartRow, SpawnStartRowProps } from "./transcript/notices.js";
|
|
137
|
+
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 "./transcript/notices.js";
|
|
137
138
|
import { AttachmentIcon, AttachmentIconProps, UserPromptAttachments, UserPromptAttachmentsProps, UserPromptRow, UserPromptRowProps } from "./transcript/prompt.js";
|
|
138
139
|
import { PromptLines, PromptLinesProps, copyPromptLines } from "./transcript/prompt-lines.js";
|
|
139
140
|
import { PromptEcho, PromptEchoProps } from "./transcript/PromptEcho.js";
|
|
@@ -142,6 +143,7 @@ import { ProseMarkdown, ProseMarkdownProps } from "./transcript/ProseMarkdown.js
|
|
|
142
143
|
import { useReferenceMatches, useReferenceProviders, useReferenceView } from "./transcript/references.js";
|
|
143
144
|
import { ReferenceChip, ReferenceChipProps, ReferenceText, ReferenceTextProps } from "./transcript/ReferenceText.js";
|
|
144
145
|
import { ParsedReferenceUrl, parseReferenceUrl, referenceUrl, remarkReferences } from "./transcript/remark-references.js";
|
|
146
|
+
import { revealRow } from "./transcript/row-mount.js";
|
|
145
147
|
import { CompactSummaryRow, CompactSummaryRowProps, RunReceiptInline, RunReceiptInlineProps, RunSummaryRow, RunSummaryRowProps } from "./transcript/run-rows.js";
|
|
146
148
|
import { SelectCursor, SelectCursorProps } from "./transcript/SelectCursor.js";
|
|
147
149
|
import { SelectTurnExit, SelectTurnHintKeys, SelectTurnHintKeysProps } from "./transcript/SelectTurnHint.js";
|
|
@@ -154,13 +156,13 @@ import { TaskBatchRow, TaskBatchRowProps, TaskRow, TaskRowProps } from "./transc
|
|
|
154
156
|
import { ToolBatchRow, ToolBatchRowProps } from "./transcript/tool-batch.js";
|
|
155
157
|
import { ToolDetails, ToolDetailsProps } from "./transcript/tool-details.js";
|
|
156
158
|
import { ToolMedia, ToolMediaProps, useToolMedia } from "./transcript/tool-media.js";
|
|
157
|
-
import { CODE_PANEL, LoadFullOutputButton, LoadFullOutputButtonProps, ReadFileBlock, ReadFileBlockProps, ToolGlyph, ToolGlyphProps, ToolInput, ToolInputProps, ToolTiming, ToolTimingProps, useFullOutput } from "./transcript/tool-parts.js";
|
|
159
|
+
import { CODE_PANEL, LoadFullOutputButton, LoadFullOutputButtonProps, ReadFileBlock, ReadFileBlockProps, ToolGlyph, ToolGlyphProps, ToolInput, ToolInputProps, ToolTiming, ToolTimingProps, useFullOutput, useFullToolCall } from "./transcript/tool-parts.js";
|
|
158
160
|
import { ModelVerdict, ModelVerdictProps, NestedToolCalls, NestedToolCallsProps, ToolRow, ToolRowProps } from "./transcript/tool-row.js";
|
|
161
|
+
import { TranscriptRail, TranscriptRailProps, TranscriptRailProvider, TranscriptRailProviderProps, useRailOutline, useTranscriptRailStore } from "./transcript/TranscriptRail.js";
|
|
159
162
|
import { TranscriptSearch, TranscriptSearchProps } from "./transcript/TranscriptSearch.js";
|
|
160
163
|
import { TurnCommands, TurnCommandsOptions, createTurnCommands, turnViewsOf, useTurnCommands } from "./transcript/turn-commands.js";
|
|
161
164
|
import { TurnMenuActions, useTurnMenu } from "./transcript/TurnMenu.js";
|
|
162
165
|
import { HostTurnMenuOptions, useHostTurnMenu } from "./transcript/use-host-turn-menu.js";
|
|
163
|
-
import { TranscriptRows, TranscriptRowsInput, useSelectStops, useTranscriptRows } from "./transcript/use-transcript-rows.js";
|
|
164
166
|
import { MAX_MATCHES, SearchHighlightStyle, TranscriptSearchOptions, TranscriptSearchState, useTranscriptSearch } from "./transcript/useTranscriptSearch.js";
|
|
165
167
|
import { ComposerSearch, useComposerSearch } from "./transcript/useComposerSearch.js";
|
|
166
168
|
import { UserBashRow, UserBashRowProps } from "./transcript/user-bash.js";
|
|
@@ -175,4 +177,4 @@ import { useWheelHoverPause } from "./transcript/useWheelHoverPause.js";
|
|
|
175
177
|
import { MarkdownViews, MarkdownViewsProps } from "./transcript/view-scope.js";
|
|
176
178
|
import "./transcript/index.js";
|
|
177
179
|
import { useChatLabels } from "./useChatLabels.js";
|
|
178
|
-
export { ATTACHMENT_NOTICE_MS, AUTO_FILL_PAGES, AgentPicker, AgentPickerDialog, AgentPickerDialogProps, AgentPickerProps, AgentProfile, AnsiSpans, type AnsiSpansProps, AnsiText, type AnsiTextProps, AnsweredQuestions, AnsweredQuestionsProps, ApprovalDock, ApprovalDockProps, ArchivedBanner, ArchivedBannerProps, AttachmentIcon, AttachmentIconProps, AttachmentLabelFn, AttachmentLabelParts, AttachmentNotices, AttachmentNoticesProps, AttachmentRefusedError, AttachmentRow, AttachmentRowProps, AttachmentTextState, AttachmentTiles, AttachmentTilesProps, AuthFailureCard, AuthFailureCardProps, BADGE_GLYPH, BadgeEffectContext, BadgeMenuBrowser, BadgeMenuComposer, BadgeMenuProvider, BadgeMenuProviderProps, BadgeMenuSystem, CHIP_CARD_WIDTH, CODE_PANEL, COMMAND_DETAIL_LINE, CardMarkdown, CardMarkdownProps, Caret, CaretProps, ChatProvider, ChatProviderProps, ChipCard, ChipCardProps, ChipHover, ChipHoverProps, ChipOpener, CodeBlockSlotProps, CodemodeScript, type CodemodeScriptProps, CommandCard, CommandCardProps, CommandDetailRow, CommandDetailRowProps, CommandNoteRow, CommandNoteRowProps, CommandScope, CommandScopeContext, CommitCard, CommitCardProps, CompactSummaryRow, CompactSummaryRowProps, Composer, type ComposerAttachment, ComposerBadge, ComposerBadgeTone, ComposerBadges, ComposerBadgesProps, ComposerControls, ComposerControlsProps, ComposerDefaults, ComposerDock, ComposerDockProps, ComposerDraft, ComposerHandle, ComposerHostProvider, ComposerHostProviderProps, ComposerProps, ComposerResult, ComposerRetry, ComposerSearch, ComposerStatusPills, ComposerStatusPillsProps, ComposerSubmit, ComposerTarget, ContextBreakdown, type ContextBreakdownData, ContextBreakdownProps, ContextCost, ContextGauge, ContextOrb, ContextOrbProps, ContextUsage, ConversationBadges, ConversationBadgesProps, Cursor, CvRow, CvRowProps, CycleAgentOptions, DEFAULT_BADGE_ORDER, DEFAULT_TRANSCRIPT_OPTIONS, DEFAULT_TRANSCRIPT_RENDERERS, DaemonOrb, DaemonOrbButton, DaemonOrbButtonProps, DaemonOrbProps, DefaultInlineText, DefaultInlineTextProps, DefaultMarkdown, DefaultMarkdownProps, DefaultPrompt, DefaultPromptProps, DefaultSessionTitle, DefaultSessionTitleProps, DiffLines, DiffLinesProps, DockCard, DockCardProps, DockRow, DockRowProps, Dot, DotProps, DraftPickers, DraftPickersProps, DraftServer, DraftTarget, DraftTargetOptions, DraftTargetRequest, EFFORT_LEVELS, EditDiffBlock, EditDiffBlockProps, EffortLevel, EffortPickerDialog, EffortPickerDialogProps, ElicitationCard, ElicitationCardProps, EnvironmentSetupDetails, EnvironmentSetupDetailsProps, EnvironmentSetupRow, EnvironmentSetupRowProps, ErrorRow, ErrorRowProps, ExchangeFoldRow, ExchangeFoldRowProps, FILL_MIN_PROMPTS, FailedMark, FailedMarkProps, FailureRow, FailureRowProps, FileBadgeIcon, FileBadgeIconProps, FoldHeader, FoldHeaderProps, GUTTER_STEP_PX, GroupGlyph, GroupGlyphProps, HostAgentPicker, HostAgentPickerProps, HostBadge, HostBadgeProps, HostComposer, HostComposerProps, HostContextOrb, HostContextOrbProps, HostInteractions, HostInteractionsProps, HostModelChainList, HostModelChainListProps, HostModelImages, HostModelOptionsPicker, HostModelOptionsPickerProps, HostModelPicker, HostModelPickerProps, HostPicker, HostPickerProps, HostStatusDot, HostStatusDotProps, HostTranscript, HostTranscriptProps, HostTurnMenuOptions, INLINE_CODE_CLASS, ImageGenerationBlock, ImageGenerationBlockProps, ImageModelList, ImageModelListProps, type ImageModelRow, InboxPanel, InboxPanelProps, InfoRow, InfoRowProps, InlineChipText, InlineChipTextProps, InlineCode, InlineCodeProps, InlineTextSlotProps, InteractionCard, InteractionCardProps, InteractionTool, InteractionToolBody, InteractionToolBodyProps, LazyRow, LazyRowProps, LineState, LinkBadge, LinkBadgeProps, LinkIcon, LinkIconProps, LiveOutput, type LiveOutputProps, LiveScriptsContext, LoadEarlierRow, LoadEarlierRowProps, LoadFullOutputButton, LoadFullOutputButtonProps, MAX_FILE_ATTACHMENT_BYTES, MAX_IMAGE_ATTACHMENT_BYTES, MAX_MATCHES, MAX_MEDIA_ATTACHMENT_BYTES, MAX_TEXT_PREVIEW_BYTES, Markdown, MarkdownContext, MarkdownContextValue, MarkdownDiagrams, MarkdownDiagramsProps, MarkdownImageProps, MarkdownLinkProps, MarkdownProps, MarkdownSlotProps, MarkdownViews, type MarkdownViewsProps, MentionItem, MermaidDiagram, type MermaidDiagramProps, MessageGroupRow, MessageGroupRowProps, type ModelCatalogRow, ModelCatalogState, ModelChainFooter, ModelChainFooterProps, ModelChainHeader, ModelChainHeaderProps, ModelChainImages, ModelChainList, ModelChainListProps, ModelChainPopover, ModelChainPopoverProps, ModelChainRow, ModelChainRowProps, ModelChainRows, ModelChainRowsProps, ModelChainTooltip, ModelChainTooltipProps, ModelChoice, ModelFlag, ModelFlagProps, ModelGroupHeader, ModelGroupHeaderProps, ModelKind, ModelMeta, ModelMetaProps, ModelOption, ModelOptionsPicker, ModelOptionsPickerProps, type ModelPickRef, ModelPicker, ModelPickerDialog, ModelPickerDialogProps, ModelPickerFrame, ModelPickerFrameProps, ModelPickerProps, ModelProviderChip, ModelProviderChipProps, ModelProviderPills, ModelProviderPillsProps, ModelReasoning, ModelReasoningProps, ModelVerdict, ModelVerdictProps, ModelWindow, ModelWindowProps, NO_COMPOSER_HINT, NestedToolCalls, NestedToolCallsProps, NewChatsDefault, NewSessionDefaults, NewSessionModelSource, NoticeRow, NoticeRowProps, OPTION_ICON, OpenBadgeMenu, OpenSessionContext, OrbState, OrderedBadge, PASTE_FOLD_CHAR_THRESHOLD, PASTE_FOLD_LINE_THRESHOLD, ParsedRef, ParsedReferenceUrl, PdfPreview, PdfPreviewProps, PickerGroup, PickerPill, PickerPillProps, PlacePicker, PlacePickerHosts, PlacePickerProps, PlanBody, PlanBodyProps, PlanCard, PlanCardProps, ProjectMenu, ProjectMenuProps, PromptEcho, PromptEchoProps, PromptHistoryProvider, PromptHistoryProviderProps, PromptHistoryValue, PromptLines, PromptLinesProps, PromptSlotProps, ProseMarkdown, ProseMarkdownProps, QuestionField, QuestionFieldProps, QuestionForm, QuestionFormProps, ReadFileBlock, ReadFileBlockProps, RefChip, RefChipProps, RefMatch, ReferenceChip, ReferenceChipProps, ReferenceText, ReferenceTextProps, RetryPill, RetryPillProps, type RowActionItem, RowContext, RowFrame, RowFrameProps, RowIconsContext, RowPlace, RunEstimateChip, RunEstimateChipProps, RunEstimatesProvider, RunEstimatesProviderProps, RunReceiptInline, RunReceiptInlineProps, RunStatusChip, RunStatusChipProps, RunSummaryRow, RunSummaryRowProps, RunnableCodeBlock, type RunnableCodeBlockProps, ScopeToggle, ScopeToggleProps, ScrollPosition, SearchHighlightStyle, SecretInput, SecretInputProps, SelectCursor, SelectCursorProps, SelectTurnCommands, SelectTurnExit, SelectTurnHint, SelectTurnHintKeys, SelectTurnHintKeysProps, type SelectTurnHintProps, SelectTurnKeysOptions, SelectTurnProvider, SelectTurnProviderProps, SelectTurnState, SelectTurnValue, SendButton, SendButtonProps, SendPromptControls, SendPromptOptions, SendRoute, ServerScopeToggle, ServerScopeToggleProps, SessionActivityFilter, SessionArchiveFilter, SessionCard, SessionCardProps, SessionDotState, SessionEventRow, SessionEventRowProps, SessionFilterAction, SessionFilterAxis, SessionFilterExtra, SessionFilterMenu, SessionFilterMenuProps, SessionFilterPlacement, SessionGroupHeader, SessionGroupHeaderProps, SessionHostHeader, SessionHostHeaderProps, SessionList, SessionListProps, SessionListRow, SessionListRowProps, SessionMeters, SessionMetersTarget, SessionProjectAxis, SessionStreamsProvider, SessionStreamsProviderProps, SessionTitleSlotProps, SessionView, ShellBlockProvider, type ShellBlockProviderProps, type ShellBlockScope, ShowMoreRow, ShowMoreRowProps, SkillCard, SkillCardProps, SkillGroupCard, SkillGroupCardProps, SlotEntry, SpawnEndRow, SpawnEndRowProps, SpawnStartRow, SpawnStartRowProps, StatusDot, StatusDotProps, StickToBottomOptions, SubagentBlock, SubagentBlockProps, SuggestionKind, SuggestionPopup, SuggestionPopupProps, SuggestionSource, SuggestionState, THINKING_LEVELS, TRANSCRIPT_OPTION_KEYS, TRIGGER, TaskBatchRow, TaskBatchRowProps, TaskRow, TaskRowProps, TextPreview, TextPreviewProps, TextPreviewSlotProps, TextRow, TextRowProps, ThinkingBatchRow, ThinkingBatchRowProps, ThinkingLevel, ThinkingRow, ThinkingRowProps, Throbber, ThrobberProps, ThrobberVariant, ToolBatchRow, ToolBatchRowProps, ToolBodySlotProps, ToolDetails, ToolDetailsProps, ToolGlyph, ToolGlyphProps, ToolInput, ToolInputProps, ToolMedia, type ToolMediaItem, ToolMediaProps, ToolRow, ToolRowProps, ToolTiming, ToolTimingProps, Transcript, TranscriptAccounts, TranscriptActions, TranscriptActionsProvider, TranscriptActionsProviderProps, TranscriptFind, TranscriptFindKeyOptions, TranscriptFindOptions, TranscriptFindTarget, TranscriptOptions, TranscriptProps, TranscriptRenderers, TranscriptRenderersProvider, type TranscriptRenderersProviderProps, TranscriptRow, TranscriptRowProps, TranscriptRowSlot, TranscriptRowSlotProps, TranscriptRows, TranscriptRowsInput, TranscriptScrollInputs, TranscriptSearch, TranscriptSearchOptions, TranscriptSearchProps, TranscriptSearchState, TranscriptSelection, TranscriptSettling, TranscriptTurnMenu, TurnCommands, TurnCommandsOptions, TurnMenuActions, TurnMenuTarget, UserBashRow, UserBashRowProps, UserPromptAttachments, UserPromptAttachmentsProps, UserPromptRow, UserPromptRowProps, WORK_HOLD_MS, WORK_SHOW_MS, WorkerDetails, WorkerDetailsProps, __resetComposerScopesForTests, attachmentErrorText, attachmentLightboxItems, catalogFromProviders, claimComposerFocus, classifyInlineRef, colorForCategory, compactWindow, contextGauge, copyPromptLines, createTurnCommands, decodeDataUrlAsText, defaultAttachmentLabel, defaultAttachmentTileLabel, detectLanguage, dotStateFor, drawsImageGeneration, effectiveImageModel, fileBadgeName, fileBadgeSpec, findModel, findRefs, focusComposer, focusComposerWhenReady, formatBytes, groupKeyOf, hasComposerFor, hasFocusedComposer, hasInteractionBody, holdForceMountRows, imageCatalogRows, imageModelKey, imageRequestsOf, isAudioAttachment, isCaretAtEnd, isCaretAtStart, isFocusedComposer, isHiddenRow, isPdfAttachment, isRequired, isTextLike, isVideoAttachment, lineStateOf, lineupKeyOf, linkGlyph, mergeBadgeOrder, modelKey, modelLineup, modelNameOf, modelSearchScore, mountRowNow, nextProfileId, numberRef, offCatalogRows, onComposerAttachment, onComposerDraft, onComposerFocus, onComposerInsert, onComposerMention, onComposerPrompt, optionTitle, orbState, orderComposerBadges, parseRefUrl, parseReferenceUrl, parseToolMedia, pastedTextFilename, pickRefOf, pickerGroups, plainTextToDocJson, providerAccountLabel, providerColor, providerHue, providerTint, pushComposerAttachment, pushComposerDraft, pushComposerInsert, pushComposerMention, pushComposerPrompt, readAttachment, refHref, refKey, referenceUrl, registerComposerScope, remarkReferences, remarkRefs, resolveChain, resolvePick, resourceErrorText, rowKey, savedPaths, seedDefaults, shouldFoldPasteToAttachment, siteIconValue, suggestionExtension, takePendingComposerFocus, textAttachment, turnViewsOf, unresolveChain, useAgentProfiles, useAllInteractions, useAttachmentIngest, useAttachmentNotices, useAttachmentRemoval, useAttachmentText, useBackgroundMount, useBadgeMenu, useCacheHints, useCaptureRunState, useChatHost, useChatLabels, useChipResolution, useClearDraftKnobs, useCommand, useCommitInfo, useComposerFor, useComposerHost, useComposerLabels, useComposerModelName, useComposerProviderLabel, useComposerSearch, useCycleAgent, useDraftKnobs, useDraftTarget, useFillViewportScrollback, useForceMountRows, useFullOutput, useHasFocusedComposer, useHasSessionEvents, useHostResource, useHostSessions, useHostTurnMenu, useInteractionHead, useIsSessionHydrated, useJoinedRunProgress, useModelCatalog, useModelKnobs, useModelName, useModelPickerPrefs, useModelPickerPrefsStore, useNewChatsDefault, useNewSessionDefaults, useOptionalChatHost, useOptionalSessionStreamActions, usePeekRunSeq, usePeekSessionEvents, usePeekSessionRunning, usePendingInteractions, usePromptHistory, useProviderReadyPoll, useReferenceMatches, useReferenceProviders, useReferenceView, useReferencedSession, useRememberedKnobs, useResolveChipNow, useRowIcons, useRunAccruedCost, useRunElapsedSec, useRunEstimate, useRunMeterValue, useRunOutputTokens, useRunProgress, useRunStartedAt, useSelectStops, useSelectTurn, useSelectTurnKeys, useSendPrompt, useSessionContextStatus, useSessionEdits, useSessionEvents, useSessionEventsSelector, useSessionFallbackModel, useSessionMeters, useSessionPage, useSessionRetry, useSessionRunning, useSessionStreamActions, useSessionStreams, useSessionSystemMd, useSettledReveal, useShellBlockScope, useSiteIcon, useSkill, useStickToBottom, useSustainedWork, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptOptions, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause, withPrimary, workShowDelay };
|
|
180
|
+
export { ATTACHMENT_NOTICE_MS, AUTO_FILL_PAGES, AgentPicker, AgentPickerDialog, AgentPickerDialogProps, AgentPickerProps, AgentProfile, AnsiSpans, type AnsiSpansProps, AnsiText, type AnsiTextProps, AnsweredQuestions, AnsweredQuestionsProps, ApprovalDock, ApprovalDockProps, ArchivedBanner, ArchivedBannerProps, AttachmentIcon, AttachmentIconProps, AttachmentLabelFn, AttachmentLabelParts, AttachmentNotices, AttachmentNoticesProps, AttachmentRefusedError, AttachmentRow, AttachmentRowProps, AttachmentTextState, AttachmentTiles, AttachmentTilesProps, AuthFailureCard, AuthFailureCardProps, BADGE_GLYPH, BadgeEffectContext, BadgeMenuBrowser, BadgeMenuComposer, BadgeMenuProvider, BadgeMenuProviderProps, BadgeMenuSystem, CHIP_CARD_WIDTH, CODE_PANEL, COMMAND_DETAIL_LINE, CardMarkdown, CardMarkdownProps, Caret, CaretProps, ChatProvider, ChatProviderProps, ChipCard, ChipCardProps, ChipHover, ChipHoverProps, ChipOpener, CodeBlockSlotProps, CodemodeScript, type CodemodeScriptProps, CommandCard, CommandCardProps, CommandDetailRow, CommandDetailRowProps, CommandNoteRow, CommandNoteRowProps, CommandScope, CommandScopeContext, CommitCard, CommitCardProps, CompactSummaryRow, CompactSummaryRowProps, Composer, type ComposerAttachment, ComposerBadge, ComposerBadgeTone, ComposerBadges, ComposerBadgesProps, ComposerControls, ComposerControlsProps, ComposerDefaults, ComposerDock, ComposerDockProps, ComposerDraft, ComposerHandle, ComposerHostProvider, ComposerHostProviderProps, ComposerProps, ComposerResult, ComposerRetry, ComposerSearch, ComposerStatusPills, ComposerStatusPillsProps, ComposerSubmit, ComposerTarget, ContextBreakdown, type ContextBreakdownData, ContextBreakdownProps, ContextCost, ContextGauge, ContextOrb, ContextOrbProps, ContextUsage, ConversationBadges, ConversationBadgesProps, Cursor, CvRow, CvRowProps, CycleAgentOptions, DEFAULT_BADGE_ORDER, DEFAULT_TRANSCRIPT_OPTIONS, DEFAULT_TRANSCRIPT_RENDERERS, DaemonOrb, DaemonOrbButton, DaemonOrbButtonProps, DaemonOrbProps, DefaultInlineText, DefaultInlineTextProps, DefaultMarkdown, DefaultMarkdownProps, DefaultPrompt, DefaultPromptProps, DefaultSessionTitle, DefaultSessionTitleProps, DiffLines, DiffLinesProps, DockCard, DockCardProps, DockRow, DockRowProps, Dot, DotProps, DraftPickers, DraftPickersProps, DraftServer, DraftTarget, DraftTargetOptions, DraftTargetRequest, EFFORT_LEVELS, EditDiffBlock, EditDiffBlockProps, EffortLevel, EffortPickerDialog, EffortPickerDialogProps, ElicitationCard, ElicitationCardProps, EnvironmentSetupDetails, EnvironmentSetupDetailsProps, EnvironmentSetupRow, EnvironmentSetupRowProps, ErrorRow, ErrorRowProps, ExchangeFoldRow, ExchangeFoldRowProps, FILL_MIN_PROMPTS, FailedMark, FailedMarkProps, FailureRow, FailureRowProps, FileBadgeIcon, FileBadgeIconProps, FoldHeader, FoldHeaderProps, ForcedRows, GUTTER_STEP_PX, GroupGlyph, GroupGlyphProps, HostAgentPicker, HostAgentPickerProps, HostBadge, HostBadgeProps, HostComposer, HostComposerProps, HostContextOrb, HostContextOrbProps, HostInteractions, HostInteractionsProps, HostModelChainList, HostModelChainListProps, HostModelImages, HostModelOptionsPicker, HostModelOptionsPickerProps, HostModelPicker, HostModelPickerProps, HostPicker, HostPickerProps, HostStatusDot, HostStatusDotProps, HostTranscript, HostTranscriptProps, HostTurnMenuOptions, INLINE_CODE_CLASS, ImageGenerationBlock, ImageGenerationBlockProps, ImageModelList, ImageModelListProps, type ImageModelRow, InboxPanel, InboxPanelProps, InfoRow, InfoRowProps, InlineChipText, InlineChipTextProps, InlineCode, InlineCodeProps, InlineTextSlotProps, InteractionCard, InteractionCardProps, InteractionTool, InteractionToolBody, InteractionToolBodyProps, LazyRow, LazyRowProps, LineState, LinkBadge, LinkBadgeProps, LinkIcon, LinkIconProps, LiveOutput, type LiveOutputProps, LiveScriptsContext, LoadEarlierRow, LoadEarlierRowProps, LoadFullOutputButton, LoadFullOutputButtonProps, MAX_FILE_ATTACHMENT_BYTES, MAX_IMAGE_ATTACHMENT_BYTES, MAX_MATCHES, MAX_MEDIA_ATTACHMENT_BYTES, MAX_TEXT_PREVIEW_BYTES, Markdown, MarkdownContext, MarkdownContextValue, MarkdownDiagrams, MarkdownDiagramsProps, MarkdownImageProps, MarkdownLinkProps, MarkdownProps, MarkdownSlotProps, MarkdownViews, type MarkdownViewsProps, MentionItem, MermaidDiagram, type MermaidDiagramProps, MessageGroupRow, MessageGroupRowProps, type ModelCatalogRow, ModelCatalogState, ModelChainFooter, ModelChainFooterProps, ModelChainHeader, ModelChainHeaderProps, ModelChainImages, ModelChainList, ModelChainListProps, ModelChainPopover, ModelChainPopoverProps, ModelChainRow, ModelChainRowProps, ModelChainRows, ModelChainRowsProps, ModelChainTooltip, ModelChainTooltipProps, ModelChoice, ModelFlag, ModelFlagProps, ModelGroupHeader, ModelGroupHeaderProps, ModelKind, ModelMeta, ModelMetaProps, ModelOption, ModelOptionsPicker, ModelOptionsPickerProps, type ModelPickRef, ModelPicker, ModelPickerDialog, ModelPickerDialogProps, ModelPickerFrame, ModelPickerFrameProps, ModelPickerProps, ModelProviderChip, ModelProviderChipProps, ModelProviderPills, ModelProviderPillsProps, ModelReasoning, ModelReasoningProps, ModelVerdict, ModelVerdictProps, ModelWindow, ModelWindowProps, NO_COMPOSER_HINT, NestedToolCalls, NestedToolCallsProps, NewChatsDefault, NewSessionDefaults, NewSessionModelSource, NoticeRow, NoticeRowProps, OPTION_ICON, OpenBadgeMenu, OpenSessionContext, OrbState, OrderedBadge, PASTE_FOLD_CHAR_THRESHOLD, PASTE_FOLD_LINE_THRESHOLD, ParsedRef, ParsedReferenceUrl, PdfPreview, PdfPreviewProps, PickerGroup, PickerPill, PickerPillProps, PlacePicker, PlacePickerHosts, PlacePickerProps, PlanBody, PlanBodyProps, PlanCard, PlanCardProps, ProjectMenu, ProjectMenuProps, PromptEcho, PromptEchoProps, PromptHistoryProvider, PromptHistoryProviderProps, PromptHistoryValue, PromptLines, PromptLinesProps, PromptSlotProps, ProseMarkdown, ProseMarkdownProps, QuestionField, QuestionFieldProps, QuestionForm, QuestionFormProps, ReadFileBlock, ReadFileBlockProps, RefChip, RefChipProps, RefMatch, ReferenceChip, ReferenceChipProps, ReferenceText, ReferenceTextProps, RepairedRow, RepairedRowProps, RetryPill, RetryPillProps, type RowActionItem, RowContext, RowFrame, RowFrameProps, RowIconsContext, RowPlace, RunEstimateChip, RunEstimateChipProps, RunEstimatesProvider, RunEstimatesProviderProps, RunReceiptInline, RunReceiptInlineProps, RunStatusChip, RunStatusChipProps, RunSummaryRow, RunSummaryRowProps, RunnableCodeBlock, type RunnableCodeBlockProps, ScopeToggle, ScopeToggleProps, ScrollPosition, SearchHighlightStyle, SecretInput, SecretInputProps, SelectCursor, SelectCursorProps, SelectTurnCommands, SelectTurnExit, SelectTurnHint, SelectTurnHintKeys, SelectTurnHintKeysProps, type SelectTurnHintProps, SelectTurnKeysOptions, SelectTurnProvider, SelectTurnProviderProps, SelectTurnState, SelectTurnValue, SendButton, SendButtonProps, SendPromptControls, SendPromptOptions, SendRoute, ServerScopeToggle, ServerScopeToggleProps, SessionActivityFilter, SessionArchiveFilter, SessionCard, SessionCardProps, SessionDotState, SessionEventRow, SessionEventRowProps, SessionFilterAction, SessionFilterAxis, SessionFilterExtra, SessionFilterMenu, SessionFilterMenuProps, SessionFilterPlacement, SessionGroupHeader, SessionGroupHeaderProps, SessionHostHeader, SessionHostHeaderProps, SessionList, SessionListProps, SessionListRow, SessionListRowProps, SessionMeters, SessionMetersTarget, SessionProjectAxis, SessionStreamsProvider, SessionStreamsProviderProps, SessionTitleSlotProps, SessionView, ShellBlockProvider, type ShellBlockProviderProps, type ShellBlockScope, ShowMoreRow, ShowMoreRowProps, SkillCard, SkillCardProps, SkillGroupCard, SkillGroupCardProps, SlotEntry, SpawnEndRow, SpawnEndRowProps, SpawnStartRow, SpawnStartRowProps, StatusDot, StatusDotProps, StatusOrb, StatusOrbProps, StickToBottomOptions, SubagentBlock, SubagentBlockProps, SuggestionKind, SuggestionPopup, SuggestionPopupProps, SuggestionSource, SuggestionState, THINKING_LEVELS, TRANSCRIPT_OPTION_KEYS, TRIGGER, TaskBatchRow, TaskBatchRowProps, TaskRow, TaskRowProps, TextPreview, TextPreviewProps, TextPreviewSlotProps, TextRow, TextRowProps, ThinkingBatchRow, ThinkingBatchRowProps, ThinkingLevel, ThinkingRow, ThinkingRowProps, Throbber, ThrobberProps, ThrobberVariant, ToolBatchRow, ToolBatchRowProps, ToolBodySlotProps, ToolDetails, ToolDetailsProps, ToolGlyph, ToolGlyphProps, ToolInput, ToolInputProps, ToolMedia, type ToolMediaItem, ToolMediaProps, ToolRow, ToolRowProps, ToolTiming, ToolTimingProps, Transcript, TranscriptAccounts, TranscriptActions, TranscriptActionsProvider, TranscriptActionsProviderProps, TranscriptFind, TranscriptFindKeyOptions, TranscriptFindOptions, TranscriptFindTarget, TranscriptOptions, TranscriptProps, TranscriptRail, type TranscriptRailProps, TranscriptRailProvider, type TranscriptRailProviderProps, TranscriptRenderers, TranscriptRenderersProvider, type TranscriptRenderersProviderProps, TranscriptRow, TranscriptRowProps, TranscriptRowSlot, TranscriptRowSlotProps, TranscriptRows, TranscriptRowsInput, TranscriptScrollInputs, TranscriptSearch, TranscriptSearchOptions, TranscriptSearchProps, TranscriptSearchState, TranscriptSelection, TranscriptSettling, TranscriptSource, TranscriptTurnMenu, TurnCommands, TurnCommandsOptions, TurnMenuActions, TurnMenuTarget, UserBashRow, UserBashRowProps, UserPromptAttachments, UserPromptAttachmentsProps, UserPromptRow, UserPromptRowProps, WORK_HOLD_MS, WORK_SHOW_MS, WorkerDetails, WorkerDetailsProps, __resetComposerScopesForTests, attachmentErrorText, attachmentLightboxItems, attachmentSrcOf, catalogFromProviders, claimComposerFocus, classifyInlineRef, colorForCategory, compactWindow, contextGauge, copyPromptLines, createTurnCommands, decodeDataUrlAsText, defaultAttachmentLabel, defaultAttachmentTileLabel, detectLanguage, dotStateFor, drawsImageGeneration, effectiveImageModel, fileBadgeName, fileBadgeSpec, findModel, findRefs, focusComposer, focusComposerWhenReady, formatBytes, groupKeyOf, hasComposerFor, hasFocusedComposer, hasInteractionBody, holdForceMountRows, imageCatalogRows, imageModelKey, imageRequestsOf, isAudioAttachment, isCaretAtEnd, isCaretAtStart, isFocusedComposer, isHiddenRow, isPdfAttachment, isRequired, isTextLike, isVideoAttachment, lineStateOf, lineupKeyOf, linkGlyph, mergeBadgeOrder, modelKey, modelLineup, modelNameOf, modelSearchScore, nextProfileId, numberRef, offCatalogRows, onComposerAttachment, onComposerDraft, onComposerFocus, onComposerInsert, onComposerMention, onComposerPrompt, optionTitle, orbState, orderComposerBadges, parseRefUrl, parseReferenceUrl, parseToolMedia, pastedTextFilename, pickRefOf, pickerGroups, plainTextToDocJson, providerAccountLabel, providerColor, providerHue, providerTint, pushComposerAttachment, pushComposerDraft, pushComposerInsert, pushComposerMention, pushComposerPrompt, readAttachment, refHref, refKey, referenceUrl, registerComposerScope, remarkReferences, remarkRefs, resolveChain, resolvePick, resourceErrorText, revealRow, rowKey, savedPaths, seedDefaults, shouldFoldPasteToAttachment, siteIconValue, suggestionExtension, takePendingComposerFocus, textAttachment, toolMediaSrcOf, turnViewsOf, unresolveChain, useAgentProfiles, useAllInteractions, useAttachmentIngest, useAttachmentNotices, useAttachmentRemoval, useAttachmentText, useBackgroundMount, useBadgeMenu, useCacheHints, useCaptureRunState, useChatHost, useChatLabels, useChipResolution, useClearDraftKnobs, useCommand, useCommitInfo, useComposerFor, useComposerHost, useComposerLabels, useComposerModelName, useComposerProviderLabel, useComposerSearch, useCycleAgent, useDraftKnobs, useDraftTarget, useFillViewportScrollback, useForceMountRows, useForcedRows, useFullOutput, useFullToolCall, useHasFocusedComposer, useHasSessionEvents, useHostResource, useHostSessions, useHostTurnMenu, useInteractionHead, useIsSessionHydrated, useJoinedRunProgress, useModelCatalog, useModelKnobs, useModelName, useModelPickerPrefs, useModelPickerPrefsStore, useNewChatsDefault, useNewSessionDefaults, useOptionalChatHost, useOptionalSessionStreamActions, usePeekRunSeq, usePeekSessionEvents, usePeekSessionRunning, usePendingInteractions, usePromptHistory, useProviderReadyPoll, useRailOutline, useReferenceMatches, useReferenceProviders, useReferenceView, useReferencedSession, useRememberedKnobs, useResolveChipNow, useRowIcons, useRunAccruedCost, useRunElapsedSec, useRunEstimate, useRunMeterValue, useRunOutputTokens, useRunProgress, useRunStartedAt, useSelectStops, useSelectTurn, useSelectTurnKeys, useSendPrompt, useSessionContextStatus, useSessionEdits, useSessionEvents, useSessionEventsSelector, useSessionFallbackModel, useSessionMeters, useSessionPage, useSessionRetry, useSessionRunning, useSessionStreamActions, useSessionStreams, useSessionSystemMd, useSessionTranscript, useSettledReveal, useShellBlockScope, useSiteIcon, useSkill, useStickToBottom, useSustainedWork, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptOptions, useTranscriptRailStore, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause, withPrimary, workShowDelay };
|
package/dist/chat/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChatProvider, useChatHost, useHostSessions, useOptionalChatHost } from "./ChatProvider.js";
|
|
2
2
|
import { ComposerHostProvider, useComposerHost, useComposerLabels } from "./composer/ComposerHostProvider.js";
|
|
3
|
-
import { TranscriptActionsProvider, useModelName, useTranscriptActions } from "./transcript/actions.js";
|
|
4
|
-
import { DaemonOrb, DaemonOrbButton, orbState } from "./DaemonOrb.js";
|
|
3
|
+
import { TranscriptActionsProvider, attachmentSrcOf, toolMediaSrcOf, useModelName, useTranscriptActions } from "./transcript/actions.js";
|
|
4
|
+
import { DaemonOrb, DaemonOrbButton, StatusOrb, orbState } from "./DaemonOrb.js";
|
|
5
5
|
import { BadgeMenuProvider, useBadgeMenu } from "./transcript/BadgeMenu.js";
|
|
6
6
|
import { useSiteIcon } from "./transcript/site-icons.js";
|
|
7
7
|
import { BADGE_GLYPH, FileBadgeIcon, LinkBadge, LinkIcon, fileBadgeName, fileBadgeSpec, linkGlyph, siteIconValue } from "./transcript/badges.js";
|
|
@@ -15,7 +15,8 @@ import { useReferenceMatches, useReferenceProviders, useReferenceView } from "./
|
|
|
15
15
|
import { ReferenceChip, ReferenceText } from "./transcript/ReferenceText.js";
|
|
16
16
|
import { classifyInlineRef, findRefs, numberRef, parseRefUrl, refHref, remarkRefs } from "./transcript/remark-refs.js";
|
|
17
17
|
import { InlineCode, RefChip } from "./transcript/FileChip.js";
|
|
18
|
-
import {
|
|
18
|
+
import { revealRow } from "./transcript/row-mount.js";
|
|
19
|
+
import { CvRow, LazyRow, TranscriptSettling, holdForceMountRows, useBackgroundMount, useForceMountRows, useForcedRows } from "./transcript/LazyRow.js";
|
|
19
20
|
import { useShellBlockScope } from "./transcript/shell-block-scope.js";
|
|
20
21
|
import { MarkdownViews } from "./transcript/view-scope.js";
|
|
21
22
|
import { Markdown, MarkdownDiagrams } from "./transcript/markdown.js";
|
|
@@ -27,7 +28,7 @@ import { PromptLines, copyPromptLines } from "./transcript/prompt-lines.js";
|
|
|
27
28
|
import { AnsiSpans, AnsiText } from "./transcript/AnsiText.js";
|
|
28
29
|
import { LiveOutput } from "./transcript/LiveOutput.js";
|
|
29
30
|
import { CodemodeScript } from "./transcript/CodemodeScript.js";
|
|
30
|
-
import { CODE_PANEL, LoadFullOutputButton, ReadFileBlock, ToolGlyph, ToolInput, ToolTiming, useFullOutput } from "./transcript/tool-parts.js";
|
|
31
|
+
import { CODE_PANEL, LoadFullOutputButton, ReadFileBlock, ToolGlyph, ToolInput, ToolTiming, useFullOutput, useFullToolCall } from "./transcript/tool-parts.js";
|
|
31
32
|
import { TextRow, ThinkingBatchRow, ThinkingRow } from "./transcript/prose.js";
|
|
32
33
|
import { DiffLines } from "./transcript/DiffLines.js";
|
|
33
34
|
import { EditDiffBlock } from "./transcript/EditDiffBlock.js";
|
|
@@ -50,9 +51,10 @@ import { ExchangeFoldRow, FoldHeader, LiveScriptsContext } from "./transcript/fo
|
|
|
50
51
|
import { SelectCursor } from "./transcript/SelectCursor.js";
|
|
51
52
|
import { RunEstimateChip, RunEstimatesProvider, useRunEstimate } from "./RunEstimateChip.js";
|
|
52
53
|
import { SubagentBlock } from "./transcript/SubagentBlock.js";
|
|
54
|
+
import { TranscriptRail, TranscriptRailProvider, useRailOutline, useTranscriptRailStore } from "./transcript/TranscriptRail.js";
|
|
53
55
|
import { MessageGroupRow } from "./transcript/messages.js";
|
|
54
56
|
import { AuthFailureCard } from "./transcript/AuthFailureCard.js";
|
|
55
|
-
import { COMMAND_DETAIL_LINE, CommandDetailRow, CommandNoteRow, ErrorRow, FailureRow, InfoRow, NoticeRow, SessionEventRow, SpawnEndRow, SpawnStartRow } from "./transcript/notices.js";
|
|
57
|
+
import { COMMAND_DETAIL_LINE, CommandDetailRow, CommandNoteRow, ErrorRow, FailureRow, InfoRow, NoticeRow, RepairedRow, SessionEventRow, SpawnEndRow, SpawnStartRow } from "./transcript/notices.js";
|
|
56
58
|
import { CompactSummaryRow, RunReceiptInline, RunSummaryRow } from "./transcript/run-rows.js";
|
|
57
59
|
import { NO_COMPOSER_HINT, __resetComposerScopesForTests, claimComposerFocus, focusComposer, focusComposerWhenReady, hasComposerFor, hasFocusedComposer, isFocusedComposer, onComposerAttachment, onComposerDraft, onComposerFocus, onComposerInsert, onComposerMention, onComposerPrompt, pushComposerAttachment, pushComposerDraft, pushComposerInsert, pushComposerMention, pushComposerPrompt, registerComposerScope, takePendingComposerFocus, textAttachment, useComposerFor, useHasFocusedComposer } from "./composer/composer-bus.js";
|
|
58
60
|
import { RunnableCodeBlock, ShellBlockProvider } from "./transcript/shell-block.js";
|
|
@@ -67,7 +69,7 @@ import { GroupGlyph, SessionGroupHeader, ShowMoreRow } from "./SessionGroupHeade
|
|
|
67
69
|
import { SessionHostHeader } from "./SessionHostHeader.js";
|
|
68
70
|
import { SessionList } from "./SessionList.js";
|
|
69
71
|
import { SessionListRow } from "./SessionListRow.js";
|
|
70
|
-
import { SessionStreamsProvider, useCaptureRunState, useHasSessionEvents, useIsSessionHydrated, useOptionalSessionStreamActions, usePeekRunSeq, usePeekSessionEvents, usePeekSessionRunning, useSessionEdits, useSessionEvents, useSessionEventsSelector, useSessionFallbackModel, useSessionPage, useSessionRetry, useSessionRunning, useSessionStreamActions, useSessionStreams, useSessionSystemMd } from "./SessionStreamsProvider.js";
|
|
72
|
+
import { SessionStreamsProvider, useCaptureRunState, useHasSessionEvents, useIsSessionHydrated, useOptionalSessionStreamActions, usePeekRunSeq, usePeekSessionEvents, usePeekSessionRunning, useSessionEdits, useSessionEvents, useSessionEventsSelector, useSessionFallbackModel, useSessionPage, useSessionRetry, useSessionRunning, useSessionStreamActions, useSessionStreams, useSessionSystemMd, useSessionTranscript } from "./SessionStreamsProvider.js";
|
|
71
73
|
import { StatusDot, dotStateFor } from "./StatusDot.js";
|
|
72
74
|
import { MAX_TEXT_PREVIEW_BYTES, TextPreview, useAttachmentText } from "./TextPreview.js";
|
|
73
75
|
import { Throbber } from "./Throbber.js";
|
|
@@ -162,4 +164,4 @@ import { useTranscriptFindKey } from "./transcript/useTranscriptFindKey.js";
|
|
|
162
164
|
import { useTranscriptFind } from "./transcript/useTranscriptFind.js";
|
|
163
165
|
import { useWheelHoverPause } from "./transcript/useWheelHoverPause.js";
|
|
164
166
|
import { useTranscriptScroll } from "./transcript/useTranscriptScroll.js";
|
|
165
|
-
export { ATTACHMENT_NOTICE_MS, AUTO_FILL_PAGES, AgentPicker, AgentPickerDialog, AnsiSpans, AnsiText, AnsweredQuestions, ApprovalDock, ArchivedBanner, AttachmentIcon, AttachmentNotices, AttachmentRefusedError, AttachmentRow, AttachmentTiles, AuthFailureCard, BADGE_GLYPH, BadgeMenuProvider, CHIP_CARD_WIDTH, CODE_PANEL, COMMAND_DETAIL_LINE, CardMarkdown, Caret, ChatProvider, ChipCard, ChipHover, CodemodeScript, CommandCard, CommandDetailRow, CommandNoteRow, CommandScopeContext, CommitCard, CompactSummaryRow, Composer, ComposerBadges, ComposerControls, ComposerDock, ComposerHostProvider, ComposerStatusPills, ContextBreakdown, ContextOrb, ConversationBadges, CvRow, DEFAULT_BADGE_ORDER, DEFAULT_TRANSCRIPT_OPTIONS, DEFAULT_TRANSCRIPT_RENDERERS, DaemonOrb, DaemonOrbButton, DefaultInlineText, DefaultMarkdown, DefaultPrompt, DefaultSessionTitle, DiffLines, DockCard, DockRow, Dot, DraftPickers, EFFORT_LEVELS, EditDiffBlock, EffortPickerDialog, ElicitationCard, EnvironmentSetupDetails, EnvironmentSetupRow, ErrorRow, ExchangeFoldRow, FILL_MIN_PROMPTS, FailedMark, FailureRow, FileBadgeIcon, FoldHeader, GUTTER_STEP_PX, GroupGlyph, HostAgentPicker, HostBadge, HostComposer, HostContextOrb, HostInteractions, HostModelChainList, HostModelOptionsPicker, HostModelPicker, HostPicker, HostStatusDot, HostTranscript, INLINE_CODE_CLASS, ImageGenerationBlock, ImageModelList, InboxPanel, InfoRow, InlineChipText, InlineCode, InteractionCard, InteractionToolBody, LazyRow, LinkBadge, LinkIcon, LiveOutput, LiveScriptsContext, LoadEarlierRow, LoadFullOutputButton, MAX_FILE_ATTACHMENT_BYTES, MAX_IMAGE_ATTACHMENT_BYTES, MAX_MATCHES, MAX_MEDIA_ATTACHMENT_BYTES, MAX_TEXT_PREVIEW_BYTES, Markdown, MarkdownContext, MarkdownDiagrams, MarkdownViews, MermaidDiagram, MessageGroupRow, ModelChainFooter, ModelChainHeader, ModelChainList, ModelChainPopover, ModelChainRow, ModelChainRows, ModelChainTooltip, ModelFlag, ModelGroupHeader, ModelMeta, ModelOptionsPicker, ModelPicker, ModelPickerDialog, ModelPickerFrame, ModelProviderChip, ModelProviderPills, ModelReasoning, ModelVerdict, ModelWindow, NO_COMPOSER_HINT, NestedToolCalls, NoticeRow, OPTION_ICON, OpenSessionContext, PASTE_FOLD_CHAR_THRESHOLD, PASTE_FOLD_LINE_THRESHOLD, PdfPreview, PickerPill, PlacePicker, PlanBody, PlanCard, ProjectMenu, PromptEcho, PromptHistoryProvider, PromptLines, ProseMarkdown, QuestionField, QuestionForm, ReadFileBlock, RefChip, ReferenceChip, ReferenceText, RetryPill, RowFrame, RowIconsContext, RunEstimateChip, RunEstimatesProvider, RunReceiptInline, RunStatusChip, RunSummaryRow, RunnableCodeBlock, ScopeToggle, SearchHighlightStyle, SecretInput, SelectCursor, SelectTurnExit, SelectTurnHint, SelectTurnHintKeys, SelectTurnProvider, SendButton, ServerScopeToggle, SessionCard, SessionEventRow, SessionFilterMenu, SessionGroupHeader, SessionHostHeader, SessionList, SessionListRow, SessionStreamsProvider, ShellBlockProvider, ShowMoreRow, SkillCard, SkillGroupCard, SpawnEndRow, SpawnStartRow, StatusDot, SubagentBlock, SuggestionPopup, THINKING_LEVELS, TRANSCRIPT_OPTION_KEYS, TRIGGER, TaskBatchRow, TaskRow, TextPreview, TextRow, ThinkingBatchRow, ThinkingRow, Throbber, ToolBatchRow, ToolDetails, ToolGlyph, ToolInput, ToolMedia, ToolRow, ToolTiming, Transcript, TranscriptActionsProvider, TranscriptRenderersProvider, TranscriptRow, TranscriptRowSlot, TranscriptSearch, TranscriptSettling, UserBashRow, UserPromptAttachments, UserPromptRow, WORK_HOLD_MS, WORK_SHOW_MS, WorkerDetails, __resetComposerScopesForTests, attachmentErrorText, attachmentLightboxItems, catalogFromProviders, claimComposerFocus, classifyInlineRef, colorForCategory, compactWindow, contextGauge, copyPromptLines, createTurnCommands, decodeDataUrlAsText, defaultAttachmentLabel, defaultAttachmentTileLabel, detectLanguage, dotStateFor, drawsImageGeneration, effectiveImageModel, fileBadgeName, fileBadgeSpec, findModel, findRefs, focusComposer, focusComposerWhenReady, formatBytes, groupKeyOf, hasComposerFor, hasFocusedComposer, hasInteractionBody, holdForceMountRows, imageCatalogRows, imageModelKey, imageRequestsOf, isAudioAttachment, isCaretAtEnd, isCaretAtStart, isFocusedComposer, isHiddenRow, isPdfAttachment, isRequired, isTextLike, isVideoAttachment, lineStateOf, lineupKeyOf, linkGlyph, mergeBadgeOrder, modelKey, modelLineup, modelNameOf, modelSearchScore,
|
|
167
|
+
export { ATTACHMENT_NOTICE_MS, AUTO_FILL_PAGES, AgentPicker, AgentPickerDialog, AnsiSpans, AnsiText, AnsweredQuestions, ApprovalDock, ArchivedBanner, AttachmentIcon, AttachmentNotices, AttachmentRefusedError, AttachmentRow, AttachmentTiles, AuthFailureCard, BADGE_GLYPH, BadgeMenuProvider, CHIP_CARD_WIDTH, CODE_PANEL, COMMAND_DETAIL_LINE, CardMarkdown, Caret, ChatProvider, ChipCard, ChipHover, CodemodeScript, CommandCard, CommandDetailRow, CommandNoteRow, CommandScopeContext, CommitCard, CompactSummaryRow, Composer, ComposerBadges, ComposerControls, ComposerDock, ComposerHostProvider, ComposerStatusPills, ContextBreakdown, ContextOrb, ConversationBadges, CvRow, DEFAULT_BADGE_ORDER, DEFAULT_TRANSCRIPT_OPTIONS, DEFAULT_TRANSCRIPT_RENDERERS, DaemonOrb, DaemonOrbButton, DefaultInlineText, DefaultMarkdown, DefaultPrompt, DefaultSessionTitle, DiffLines, DockCard, DockRow, Dot, DraftPickers, EFFORT_LEVELS, EditDiffBlock, EffortPickerDialog, ElicitationCard, EnvironmentSetupDetails, EnvironmentSetupRow, ErrorRow, ExchangeFoldRow, FILL_MIN_PROMPTS, FailedMark, FailureRow, FileBadgeIcon, FoldHeader, GUTTER_STEP_PX, GroupGlyph, HostAgentPicker, HostBadge, HostComposer, HostContextOrb, HostInteractions, HostModelChainList, HostModelOptionsPicker, HostModelPicker, HostPicker, HostStatusDot, HostTranscript, INLINE_CODE_CLASS, ImageGenerationBlock, ImageModelList, InboxPanel, InfoRow, InlineChipText, InlineCode, InteractionCard, InteractionToolBody, LazyRow, LinkBadge, LinkIcon, LiveOutput, LiveScriptsContext, LoadEarlierRow, LoadFullOutputButton, MAX_FILE_ATTACHMENT_BYTES, MAX_IMAGE_ATTACHMENT_BYTES, MAX_MATCHES, MAX_MEDIA_ATTACHMENT_BYTES, MAX_TEXT_PREVIEW_BYTES, Markdown, MarkdownContext, MarkdownDiagrams, MarkdownViews, MermaidDiagram, MessageGroupRow, ModelChainFooter, ModelChainHeader, ModelChainList, ModelChainPopover, ModelChainRow, ModelChainRows, ModelChainTooltip, ModelFlag, ModelGroupHeader, ModelMeta, ModelOptionsPicker, ModelPicker, ModelPickerDialog, ModelPickerFrame, ModelProviderChip, ModelProviderPills, ModelReasoning, ModelVerdict, ModelWindow, NO_COMPOSER_HINT, NestedToolCalls, NoticeRow, OPTION_ICON, OpenSessionContext, PASTE_FOLD_CHAR_THRESHOLD, PASTE_FOLD_LINE_THRESHOLD, PdfPreview, PickerPill, PlacePicker, PlanBody, PlanCard, ProjectMenu, PromptEcho, PromptHistoryProvider, PromptLines, ProseMarkdown, QuestionField, QuestionForm, ReadFileBlock, RefChip, ReferenceChip, ReferenceText, RepairedRow, RetryPill, RowFrame, RowIconsContext, RunEstimateChip, RunEstimatesProvider, RunReceiptInline, RunStatusChip, RunSummaryRow, RunnableCodeBlock, ScopeToggle, SearchHighlightStyle, SecretInput, SelectCursor, SelectTurnExit, SelectTurnHint, SelectTurnHintKeys, SelectTurnProvider, SendButton, ServerScopeToggle, SessionCard, SessionEventRow, SessionFilterMenu, SessionGroupHeader, SessionHostHeader, SessionList, SessionListRow, SessionStreamsProvider, ShellBlockProvider, ShowMoreRow, SkillCard, SkillGroupCard, SpawnEndRow, SpawnStartRow, StatusDot, StatusOrb, SubagentBlock, SuggestionPopup, THINKING_LEVELS, TRANSCRIPT_OPTION_KEYS, TRIGGER, TaskBatchRow, TaskRow, TextPreview, TextRow, ThinkingBatchRow, ThinkingRow, Throbber, ToolBatchRow, ToolDetails, ToolGlyph, ToolInput, ToolMedia, ToolRow, ToolTiming, Transcript, TranscriptActionsProvider, TranscriptRail, TranscriptRailProvider, TranscriptRenderersProvider, TranscriptRow, TranscriptRowSlot, TranscriptSearch, TranscriptSettling, UserBashRow, UserPromptAttachments, UserPromptRow, WORK_HOLD_MS, WORK_SHOW_MS, WorkerDetails, __resetComposerScopesForTests, attachmentErrorText, attachmentLightboxItems, attachmentSrcOf, catalogFromProviders, claimComposerFocus, classifyInlineRef, colorForCategory, compactWindow, contextGauge, copyPromptLines, createTurnCommands, decodeDataUrlAsText, defaultAttachmentLabel, defaultAttachmentTileLabel, detectLanguage, dotStateFor, drawsImageGeneration, effectiveImageModel, fileBadgeName, fileBadgeSpec, findModel, findRefs, focusComposer, focusComposerWhenReady, formatBytes, groupKeyOf, hasComposerFor, hasFocusedComposer, hasInteractionBody, holdForceMountRows, imageCatalogRows, imageModelKey, imageRequestsOf, isAudioAttachment, isCaretAtEnd, isCaretAtStart, isFocusedComposer, isHiddenRow, isPdfAttachment, isRequired, isTextLike, isVideoAttachment, lineStateOf, lineupKeyOf, linkGlyph, mergeBadgeOrder, modelKey, modelLineup, modelNameOf, modelSearchScore, nextProfileId, numberRef, offCatalogRows, onComposerAttachment, onComposerDraft, onComposerFocus, onComposerInsert, onComposerMention, onComposerPrompt, optionTitle, orbState, orderComposerBadges, parseRefUrl, parseReferenceUrl, parseToolMedia, pastedTextFilename, pickRefOf, pickerGroups, plainTextToDocJson, providerAccountLabel, providerColor, providerHue, providerTint, pushComposerAttachment, pushComposerDraft, pushComposerInsert, pushComposerMention, pushComposerPrompt, readAttachment, refHref, refKey, referenceUrl, registerComposerScope, remarkReferences, remarkRefs, resolveChain, resolvePick, resourceErrorText, revealRow, rowKey, savedPaths, seedDefaults, shouldFoldPasteToAttachment, siteIconValue, suggestionExtension, takePendingComposerFocus, textAttachment, toolMediaSrcOf, turnViewsOf, unresolveChain, useAgentProfiles, useAllInteractions, useAttachmentIngest, useAttachmentNotices, useAttachmentRemoval, useAttachmentText, useBackgroundMount, useBadgeMenu, useCacheHints, useCaptureRunState, useChatHost, useChatLabels, useChipResolution, useClearDraftKnobs, useCommand, useCommitInfo, useComposerFor, useComposerHost, useComposerLabels, useComposerModelName, useComposerProviderLabel, useComposerSearch, useCycleAgent, useDraftKnobs, useDraftTarget, useFillViewportScrollback, useForceMountRows, useForcedRows, useFullOutput, useFullToolCall, useHasFocusedComposer, useHasSessionEvents, useHostResource, useHostSessions, useHostTurnMenu, useInteractionHead, useIsSessionHydrated, useJoinedRunProgress, useModelCatalog, useModelKnobs, useModelName, useModelPickerPrefs, useModelPickerPrefsStore, useNewChatsDefault, useNewSessionDefaults, useOptionalChatHost, useOptionalSessionStreamActions, usePeekRunSeq, usePeekSessionEvents, usePeekSessionRunning, usePendingInteractions, usePromptHistory, useProviderReadyPoll, useRailOutline, useReferenceMatches, useReferenceProviders, useReferenceView, useReferencedSession, useRememberedKnobs, useResolveChipNow, useRowIcons, useRunAccruedCost, useRunElapsedSec, useRunEstimate, useRunMeterValue, useRunOutputTokens, useRunProgress, useRunStartedAt, useSelectStops, useSelectTurn, useSelectTurnKeys, useSendPrompt, useSessionContextStatus, useSessionEdits, useSessionEvents, useSessionEventsSelector, useSessionFallbackModel, useSessionMeters, useSessionPage, useSessionRetry, useSessionRunning, useSessionStreamActions, useSessionStreams, useSessionSystemMd, useSessionTranscript, useSettledReveal, useShellBlockScope, useSiteIcon, useSkill, useStickToBottom, useSustainedWork, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptOptions, useTranscriptRailStore, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause, withPrimary, workShowDelay };
|
|
@@ -68,7 +68,7 @@ function ElicitationCard({ request, onAnswer, autoFocus = false, className, styl
|
|
|
68
68
|
]
|
|
69
69
|
});
|
|
70
70
|
const message = payload.message && /* @__PURE__ */ jsx("p", {
|
|
71
|
-
className: "m-0 text-zg-ui leading-5 text-[var(--zg-text)] whitespace-pre-wrap
|
|
71
|
+
className: "m-0 text-zg-ui leading-5 text-[var(--zg-text)] whitespace-pre-wrap",
|
|
72
72
|
children: payload.message
|
|
73
73
|
});
|
|
74
74
|
const rootClass = ["flex flex-col gap-3", className].filter(Boolean).join(" ");
|
|
@@ -57,7 +57,7 @@ function InteractionCard({ interaction, onAnswer, onDismiss, autoFocus, Markdown
|
|
|
57
57
|
}) : /* @__PURE__ */ jsxs("div", {
|
|
58
58
|
className: "flex flex-col gap-2",
|
|
59
59
|
children: [/* @__PURE__ */ jsx("p", {
|
|
60
|
-
className: "m-0 text-zg-label text-[var(--zg-text-muted)]
|
|
60
|
+
className: "m-0 text-zg-label text-[var(--zg-text-muted)]",
|
|
61
61
|
children: labels.unsupportedInteraction(request.tool)
|
|
62
62
|
}), /* @__PURE__ */ jsx("div", {
|
|
63
63
|
className: "max-h-[40vh] overflow-auto",
|
|
@@ -42,7 +42,7 @@ function PlanCard({ request, autoFocus = false, onAnswer, Markdown, className, s
|
|
|
42
42
|
style,
|
|
43
43
|
children: commentStage ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
44
44
|
/* @__PURE__ */ jsx("p", {
|
|
45
|
-
className: "m-0 text-zg-label text-[var(--zg-text-muted)]
|
|
45
|
+
className: "m-0 text-zg-label text-[var(--zg-text-muted)]",
|
|
46
46
|
children: decision === "reject" ? labels.planRejectNote : labels.planReviseNote
|
|
47
47
|
}),
|
|
48
48
|
/* @__PURE__ */ jsx("textarea", {
|
|
@@ -137,7 +137,7 @@ function PlanBody({ payload, Markdown: MarkdownProp }) {
|
|
|
137
137
|
const slots = useTranscriptRenderers();
|
|
138
138
|
const Markdown = MarkdownProp ?? slots.Markdown;
|
|
139
139
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", {
|
|
140
|
-
className: "prose-styles text-zg-ui text-[var(--zg-text)]
|
|
140
|
+
className: "prose-styles text-zg-ui text-[var(--zg-text)]",
|
|
141
141
|
children: /* @__PURE__ */ jsx(Markdown, { children: payload.plan })
|
|
142
142
|
}), payload.steps && payload.steps.length > 0 && /* @__PURE__ */ jsx("ol", {
|
|
143
143
|
className: "flex flex-col gap-1.5 list-none m-0 p-0",
|
|
@@ -154,7 +154,7 @@ function PlanBody({ payload, Markdown: MarkdownProp }) {
|
|
|
154
154
|
className: "text-zg-ui font-medium text-[var(--zg-text)] zg-balance",
|
|
155
155
|
children: step.title
|
|
156
156
|
}), step.description && /* @__PURE__ */ jsx("div", {
|
|
157
|
-
className: "text-zg-meta text-[var(--zg-text-muted)] mt-0.5
|
|
157
|
+
className: "text-zg-meta text-[var(--zg-text-muted)] mt-0.5",
|
|
158
158
|
children: step.description
|
|
159
159
|
})]
|
|
160
160
|
})]
|