zidane-ui 9.2.3 → 9.4.0
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/live.d.ts +8 -0
- package/dist/adapters/live.js +19 -8
- package/dist/adapters/server-composer-host.js +22 -9
- package/dist/adapters/server-git-host.js +5 -2
- package/dist/adapters/server-host.js +158 -27
- package/dist/adapters/server-machines-host.js +7 -0
- package/dist/adapters/server-media.d.ts +9 -1
- package/dist/adapters/server-media.js +14 -1
- package/dist/adapters/server-session-host.js +49 -0
- package/dist/adapters/server-settings-sections.js +4 -1
- package/dist/adapters/sse-host.js +3 -0
- package/dist/adapters/sse-protocol.d.ts +10 -0
- package/dist/appearance/ZoomIndicator.js +5 -8
- package/dist/chat/HostTranscript.d.ts +0 -12
- package/dist/chat/HostTranscript.js +20 -1
- package/dist/chat/SessionStreamsProvider.d.ts +9 -1
- package/dist/chat/SessionStreamsProvider.js +11 -2
- package/dist/chat/Transcript.d.ts +21 -11
- package/dist/chat/Transcript.js +346 -161
- package/dist/chat/composer/ModelOptionsPicker.js +6 -2
- package/dist/chat/composer/ModelPicker.d.ts +1 -1
- package/dist/chat/composer/PlacePicker.d.ts +3 -1
- package/dist/chat/composer/PlacePicker.js +5 -1
- package/dist/chat/composer/use-draft-target.js +15 -3
- package/dist/chat/headless/block-runs.js +26 -1
- package/dist/chat/headless/chip-views.js +1 -1
- package/dist/chat/headless/draft-target.d.ts +28 -1
- package/dist/chat/headless/draft-target.js +22 -1
- package/dist/chat/headless/host.d.ts +43 -7
- package/dist/chat/headless/hosts.d.ts +4 -0
- package/dist/chat/headless/index.d.ts +27 -26
- package/dist/chat/headless/index.js +15 -14
- package/dist/chat/headless/labels.d.ts +17 -0
- package/dist/chat/headless/labels.js +17 -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 +64 -0
- package/dist/chat/headless/markdown-scan.js +119 -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/prompt-origin.d.ts +2 -0
- package/dist/chat/headless/prompt-origin.js +6 -2
- package/dist/chat/headless/session-list.d.ts +10 -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 +19 -2
- package/dist/chat/headless/sidebar/directory.js +19 -51
- package/dist/chat/headless/sidebar/environment.d.ts +15 -4
- package/dist/chat/headless/sidebar/environment.js +27 -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 +19 -2
- package/dist/chat/headless/sidebar/labels.js +8 -1
- 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 +4 -2
- package/dist/chat/headless/streams/actions.js +2 -1
- package/dist/chat/headless/streams/event-bytes.d.ts +17 -0
- package/dist/chat/headless/streams/event-bytes.js +46 -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 +45 -6
- package/dist/chat/headless/streams/store.js +85 -31
- package/dist/chat/headless/streams/transcript-map.d.ts +57 -0
- package/dist/chat/headless/streams/transcript-map.js +85 -0
- package/dist/chat/headless/streams/transcript.d.ts +4 -2
- package/dist/chat/headless/streams/transcript.js +19 -7
- package/dist/chat/headless/streams/types.d.ts +2 -1
- 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 +35 -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-attachments.d.ts +2 -0
- package/dist/chat/headless/transcript/fold-attachments.js +3 -2
- package/dist/chat/headless/transcript/fold.d.ts +2 -1
- package/dist/chat/headless/transcript/fold.js +16 -6
- 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 -2
- package/dist/chat/headless/transcript/index.js +2 -2
- package/dist/chat/headless/transcript/nesting.js +2 -1
- package/dist/chat/headless/transcript/rail.d.ts +50 -1
- package/dist/chat/headless/transcript/rail.js +165 -23
- package/dist/chat/headless/transcript/rows.d.ts +5 -1
- package/dist/chat/headless/transcript/run-failures.js +2 -1
- 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/index.d.ts +9 -8
- package/dist/chat/index.js +18 -17
- package/dist/chat/sidebar/ProjectIcon.js +1 -1
- package/dist/chat/sidebar/RowChips.js +2 -2
- package/dist/chat/sidebar/SessionSidebar.d.ts +6 -0
- package/dist/chat/sidebar/SessionSidebar.js +23 -16
- package/dist/chat/sidebar/SidebarFilterMenu.js +0 -1
- package/dist/chat/sidebar/SidebarFold.js +17 -16
- package/dist/chat/sidebar/SidebarFooter.d.ts +8 -5
- package/dist/chat/sidebar/SidebarFooter.js +6 -6
- package/dist/chat/sidebar/SidebarSessionRow.d.ts +7 -1
- package/dist/chat/sidebar/SidebarSessionRow.js +11 -8
- package/dist/chat/sidebar/session-menu.d.ts +4 -0
- package/dist/chat/sidebar/session-menu.js +14 -2
- package/dist/chat/sidebar/sidebar-live.js +28 -4
- package/dist/chat/sidebar/useInboxRows.js +6 -6
- package/dist/chat/sidebar/useInboxTriage.js +50 -47
- package/dist/chat/sidebar/useSessionSearch.js +19 -18
- package/dist/chat/testing/contract.d.ts +5 -3
- package/dist/chat/testing/contract.js +66 -1
- 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/FileChip.js +28 -0
- package/dist/chat/transcript/LazyRow.d.ts +40 -40
- package/dist/chat/transcript/LazyRow.js +100 -149
- package/dist/chat/transcript/MermaidDiagram.js +2 -1
- package/dist/chat/transcript/PromptEcho.js +3 -11
- package/dist/chat/transcript/SessionChip.d.ts +11 -0
- package/dist/chat/transcript/SessionChip.js +34 -0
- package/dist/chat/transcript/SubagentBlock.js +3 -2
- package/dist/chat/transcript/TranscriptRail.d.ts +25 -2
- package/dist/chat/transcript/TranscriptRail.js +175 -17
- package/dist/chat/transcript/TranscriptRow.d.ts +4 -7
- package/dist/chat/transcript/TranscriptRow.js +4 -3
- package/dist/chat/transcript/actions.d.ts +37 -1
- package/dist/chat/transcript/actions.js +27 -1
- package/dist/chat/transcript/chip-details.d.ts +11 -0
- package/dist/chat/transcript/chip-details.js +17 -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 +5 -3
- package/dist/chat/transcript/fold.js +13 -4
- package/dist/chat/transcript/index.d.ts +11 -10
- package/dist/chat/transcript/index.js +10 -9
- package/dist/chat/transcript/markdown-cache.d.ts +17 -2
- package/dist/chat/transcript/markdown-cache.js +48 -4
- package/dist/chat/transcript/markdown.js +110 -55
- package/dist/chat/transcript/media-gallery.d.ts +3 -2
- package/dist/chat/transcript/media-gallery.js +19 -19
- package/dist/chat/transcript/messages.js +5 -4
- package/dist/chat/transcript/notices.js +2 -1
- package/dist/chat/transcript/prompt.d.ts +1 -1
- package/dist/chat/transcript/prompt.js +6 -4
- package/dist/chat/transcript/prose.js +2 -1
- 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 +184 -0
- package/dist/chat/transcript/row-mount.js +532 -0
- package/dist/chat/transcript/row-parking.d.ts +152 -0
- package/dist/chat/transcript/row-parking.js +171 -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 +3 -2
- package/dist/chat/transcript/script-input.d.ts +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 -6
- 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 +25 -8
- package/dist/chat/transcript/use-transcript-rows.js +28 -46
- package/dist/chat/transcript/useHistoryBackfill.d.ts +42 -0
- package/dist/chat/transcript/useHistoryBackfill.js +170 -0
- package/dist/chat/transcript/useStickToBottom.js +2 -3
- package/dist/chat/transcript/useTranscriptFind.js +2 -4
- package/dist/chat/transcript/useTranscriptScroll.d.ts +7 -4
- package/dist/chat/transcript/useTranscriptScroll.js +12 -1
- package/dist/chat/transcript/useTranscriptSearch.d.ts +2 -2
- package/dist/chat/transcript/useTranscriptSearch.js +35 -19
- package/dist/chat/transcript/useTranscriptSelectionCopy.d.ts +5 -5
- package/dist/chat/transcript/useTranscriptSelectionCopy.js +28 -7
- package/dist/chat/transcript/view-scope.d.ts +26 -6
- package/dist/chat/transcript/view-scope.js +106 -20
- package/dist/code/editor/FileTree.d.ts +2 -0
- package/dist/code/editor/FileTree.js +1 -1
- package/dist/code/editor/FileView.js +16 -25
- package/dist/code/editor/find/useFind.js +17 -17
- package/dist/code/editor/useCodeDocument.js +22 -19
- package/dist/code/editor/useDetachCleanup.js +4 -3
- package/dist/code/use-highlighted-html.js +12 -13
- package/dist/components/IconButton.d.ts +3 -1
- package/dist/components/IconButton.js +7 -2
- package/dist/components/IconButtonTip.d.ts +3 -1
- package/dist/components/IconButtonTip.js +2 -1
- package/dist/components/RowActionsMenu.js +7 -14
- package/dist/components/Tooltip.d.ts +4 -1
- package/dist/components/Tooltip.js +8 -6
- package/dist/components/assign-ref.d.ts +8 -0
- package/dist/components/assign-ref.js +12 -0
- package/dist/components/floating/FloatingSurface.js +2 -2
- package/dist/components/floating/HoverCard.js +32 -14
- package/dist/components/floating/Popover.js +4 -7
- package/dist/components/floating/useAnchoredPosition.d.ts +5 -3
- package/dist/components/floating/useAnchoredPosition.js +7 -7
- package/dist/components/object-key.d.ts +7 -0
- package/dist/components/object-key.js +18 -0
- package/dist/components/palette/PaletteList.js +2 -7
- package/dist/components/tooltip-arming.d.ts +3 -0
- package/dist/components/tooltip-arming.js +8 -1
- package/dist/core.css +3 -3
- package/dist/dist/{index-E1Z0aPmi.d.ts → index-BheVJOLc.d.ts} +3 -1
- package/dist/dist/index.d.ts +2 -2
- package/dist/files/FilesTab.js +0 -1
- package/dist/files/TreeColumn.d.ts +2 -4
- package/dist/files/TreeColumn.js +0 -5
- package/dist/files/headless/host.d.ts +3 -7
- package/dist/files/headless/labels.d.ts +0 -1
- package/dist/files/headless/labels.js +0 -1
- package/dist/files/headless/workspace-diff.js +1 -1
- package/dist/files/useCodeReview.js +1 -3
- package/dist/files/useFilesDiagnostics.d.ts +1 -1
- package/dist/files/useFilesDiagnostics.js +4 -11
- package/dist/files/useOpenFiles.js +9 -12
- package/dist/files/useWorkspace.d.ts +5 -7
- package/dist/files/useWorkspace.js +4 -15
- package/dist/git/GitBar.js +5 -3
- package/dist/git/MoveSessionDialog.d.ts +18 -8
- package/dist/git/MoveSessionDialog.js +32 -53
- package/dist/git/MoveToDialog.d.ts +61 -0
- package/dist/git/MoveToDialog.js +240 -0
- package/dist/git/SandboxManager.js +9 -4
- package/dist/git/SyncChip.js +11 -4
- package/dist/git/TeleportSessionDialog.d.ts +69 -0
- package/dist/git/TeleportSessionDialog.js +440 -0
- package/dist/git/headless/host.d.ts +14 -0
- package/dist/git/headless/index.d.ts +2 -1
- package/dist/git/headless/index.js +2 -1
- package/dist/git/headless/labels.d.ts +44 -1
- package/dist/git/headless/labels.js +50 -0
- package/dist/git/headless/sandboxes.d.ts +1 -1
- package/dist/git/headless/sandboxes.js +4 -3
- package/dist/git/headless/teleport.d.ts +76 -0
- package/dist/git/headless/teleport.js +19 -0
- package/dist/git/index.d.ts +4 -2
- package/dist/git/index.js +4 -2
- package/dist/git/useEnvironmentChoices.d.ts +5 -2
- package/dist/git/useEnvironmentChoices.js +12 -4
- package/dist/hooks/useLatest.d.ts +8 -0
- package/dist/hooks/useLatest.js +17 -0
- package/dist/hooks/useMinuteTick.d.ts +6 -2
- package/dist/hooks/useMinuteTick.js +12 -6
- package/dist/hooks/useNearViewport.js +11 -8
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2 -1
- package/dist/keybindings/KeybindingsProvider.js +3 -4
- package/dist/keybindings/headless/catalog.d.ts +1 -1
- package/dist/keybindings/headless/catalog.js +18 -0
- package/dist/machines/AddServerForm.js +55 -3
- package/dist/machines/Banners.d.ts +2 -2
- package/dist/machines/Banners.js +3 -3
- package/dist/machines/DaemonMenu.js +1 -3
- package/dist/machines/HostsSection.js +5 -1
- package/dist/machines/OrganizationPanel.d.ts +25 -0
- package/dist/machines/OrganizationPanel.js +266 -0
- package/dist/machines/PersonalLayerPanel.d.ts +32 -0
- package/dist/machines/PersonalLayerPanel.js +360 -0
- package/dist/machines/headless/fixture-host.d.ts +10 -0
- package/dist/machines/headless/fixture-host.js +44 -0
- package/dist/machines/headless/host.d.ts +21 -1
- package/dist/machines/headless/index.d.ts +3 -1
- package/dist/machines/headless/index.js +3 -1
- package/dist/machines/headless/labels.d.ts +55 -0
- package/dist/machines/headless/labels.js +58 -1
- package/dist/machines/headless/layer.d.ts +64 -0
- package/dist/machines/headless/layer.js +56 -0
- package/dist/machines/headless/organization.d.ts +38 -0
- package/dist/machines/headless/organization.js +44 -0
- package/dist/machines/index.d.ts +3 -1
- package/dist/machines/index.js +3 -1
- package/dist/machines/testing/contract.d.ts +25 -1
- package/dist/machines/testing/contract.js +97 -1
- package/dist/motion/grow.js +12 -13
- package/dist/motion/swap.js +2 -5
- package/dist/motion/use-flip-list.d.ts +14 -0
- package/dist/motion/use-flip-list.js +17 -12
- package/dist/palette/headless/app-sources.js +37 -0
- package/dist/palette/headless/labels.js +3 -0
- package/dist/server/sse-handler.js +25 -2
- package/dist/session/DiffFileTree.js +1 -4
- package/dist/session/OpenSessionsDialog.d.ts +46 -0
- package/dist/session/OpenSessionsDialog.js +170 -0
- package/dist/session/PlanTracker.js +1 -2
- package/dist/session/ProjectHome.js +10 -9
- package/dist/session/RemindersPanel.js +10 -12
- package/dist/session/SecretsPanel.js +2 -1
- package/dist/session/SessionHeader.js +1 -0
- package/dist/session/SessionPeopleStack.d.ts +23 -0
- package/dist/session/SessionPeopleStack.js +65 -0
- package/dist/session/SessionPlaceMenu.js +5 -4
- package/dist/session/ShareSessionDialog.d.ts +32 -0
- package/dist/session/ShareSessionDialog.js +342 -0
- package/dist/session/TypingLine.d.ts +22 -0
- package/dist/session/TypingLine.js +31 -0
- package/dist/session/headless/host.d.ts +40 -1
- package/dist/session/headless/index.d.ts +4 -2
- package/dist/session/headless/index.js +3 -1
- package/dist/session/headless/labels.d.ts +49 -0
- package/dist/session/headless/labels.js +56 -0
- package/dist/session/headless/people.d.ts +29 -0
- package/dist/session/headless/people.js +53 -0
- package/dist/session/headless/place.d.ts +5 -0
- package/dist/session/headless/place.js +5 -1
- package/dist/session/headless/typing.d.ts +37 -0
- package/dist/session/headless/typing.js +60 -0
- package/dist/session/index.d.ts +5 -1
- package/dist/session/index.js +5 -1
- package/dist/settings/headless/fixture-performance.js +4 -2
- package/dist/settings/headless/performance.d.ts +4 -0
- package/dist/settings/headless/search.d.ts +1 -1
- package/dist/settings/headless/sections-host.d.ts +7 -2
- package/dist/settings/section.d.ts +15 -3
- package/dist/settings/section.js +15 -3
- package/dist/settings/sections/environments/EnvironmentsSection.js +30 -6
- package/dist/settings/sections/keybindings/labels.d.ts +3 -0
- package/dist/settings/sections/keybindings/labels.js +3 -0
- package/dist/settings/sections/keybindings/rows.js +12 -0
- package/dist/settings/sections/logs/LogsSection.js +5 -8
- 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/styles.css +65 -9
- package/dist/terminal/HostTerminalSurface.js +28 -30
- package/dist/terminal/TerminalPanel.js +4 -12
- package/dist/terminal/TerminalProvider.d.ts +10 -2
- package/dist/terminal/TerminalProvider.js +10 -2
- package/dist/terminal/headless/labels.d.ts +0 -1
- package/dist/terminal/headless/labels.js +1 -2
- package/dist/terminal/headless/store.js +5 -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/LayoutBudget.js +1 -7
- package/package.json +2 -2
- package/src/styles/chat.css +3 -1
- package/src/styles/palette.css +3 -3
- package/src/styles/transcript.css +50 -5
- /package/dist/dist/{index-De9AbmxS.d.ts → index-ttmMvjgM.d.ts} +0 -0
|
@@ -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,
|
package/dist/chat/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import "./composer/index.js";
|
|
|
12
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,13 +105,13 @@ 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";
|
|
111
112
|
import { BADGE_GLYPH, FileBadgeIcon, FileBadgeIconProps, LinkBadge, LinkBadgeProps, LinkIcon, LinkIconProps, fileBadgeName, fileBadgeSpec, linkGlyph, siteIconValue } from "./transcript/badges.js";
|
|
112
113
|
import { CardMarkdown, CardMarkdownProps } from "./transcript/CardMarkdown.js";
|
|
113
|
-
import { useCommand, useCommitInfo, useReferencedSession, useSkill } from "./transcript/chip-details.js";
|
|
114
|
+
import { useCommand, useCommitInfo, useReferencedSession, useSkill, useTokenSession } from "./transcript/chip-details.js";
|
|
114
115
|
import { useChipResolution, useResolveChipNow } from "./transcript/chip-resolve.js";
|
|
115
116
|
import { CHIP_CARD_WIDTH, ChipCard, ChipCardProps, ChipHover, ChipHoverProps } from "./transcript/ChipCard.js";
|
|
116
117
|
import { CommandCard, CommandCardProps, CommitCard, CommitCardProps, SessionCard, SessionCardProps, SkillCard, SkillCardProps, SkillGroupCard, SkillGroupCardProps } from "./transcript/ChipCards.js";
|
|
@@ -127,7 +128,7 @@ 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";
|
|
@@ -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,14 +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";
|
|
159
|
-
import { TranscriptRail, TranscriptRailProps, TranscriptRailProvider, TranscriptRailProviderProps, useTranscriptRailStore } from "./transcript/TranscriptRail.js";
|
|
161
|
+
import { TranscriptRail, TranscriptRailProps, TranscriptRailProvider, TranscriptRailProviderProps, useRailOutline, useTranscriptRailStore } from "./transcript/TranscriptRail.js";
|
|
160
162
|
import { TranscriptSearch, TranscriptSearchProps } from "./transcript/TranscriptSearch.js";
|
|
161
163
|
import { TurnCommands, TurnCommandsOptions, createTurnCommands, turnViewsOf, useTurnCommands } from "./transcript/turn-commands.js";
|
|
162
164
|
import { TurnMenuActions, useTurnMenu } from "./transcript/TurnMenu.js";
|
|
163
165
|
import { HostTurnMenuOptions, useHostTurnMenu } from "./transcript/use-host-turn-menu.js";
|
|
164
|
-
import { TranscriptRows, TranscriptRowsInput, useSelectStops, useTranscriptRows } from "./transcript/use-transcript-rows.js";
|
|
165
166
|
import { MAX_MATCHES, SearchHighlightStyle, TranscriptSearchOptions, TranscriptSearchState, useTranscriptSearch } from "./transcript/useTranscriptSearch.js";
|
|
166
167
|
import { ComposerSearch, useComposerSearch } from "./transcript/useComposerSearch.js";
|
|
167
168
|
import { UserBashRow, UserBashRowProps } from "./transcript/user-bash.js";
|
|
@@ -176,4 +177,4 @@ import { useWheelHoverPause } from "./transcript/useWheelHoverPause.js";
|
|
|
176
177
|
import { MarkdownViews, MarkdownViewsProps } from "./transcript/view-scope.js";
|
|
177
178
|
import "./transcript/index.js";
|
|
178
179
|
import { useChatLabels } from "./useChatLabels.js";
|
|
179
|
-
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, 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, 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, useTranscriptRailStore, 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, useTokenSession, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptOptions, useTranscriptRailStore, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause, withPrimary, workShowDelay };
|
package/dist/chat/index.js
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
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";
|
|
3
|
+
import { TranscriptActionsProvider, attachmentSrcOf, toolMediaSrcOf, useModelName, useTranscriptActions } from "./transcript/actions.js";
|
|
4
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";
|
|
8
|
+
import { useCommand, useCommitInfo, useReferencedSession, useSkill, useTokenSession } from "./transcript/chip-details.js";
|
|
8
9
|
import { useChipResolution, useResolveChipNow } from "./transcript/chip-resolve.js";
|
|
9
10
|
import { CommandScopeContext, INLINE_CODE_CLASS, MarkdownContext, OpenSessionContext } from "./transcript/markdown-context.js";
|
|
10
11
|
import { CardMarkdown } from "./transcript/CardMarkdown.js";
|
|
11
12
|
import { CHIP_CARD_WIDTH, ChipCard, ChipHover } from "./transcript/ChipCard.js";
|
|
12
|
-
import { useCommand, useCommitInfo, useReferencedSession, useSkill } from "./transcript/chip-details.js";
|
|
13
13
|
import { CommandCard, CommitCard, SessionCard, SkillCard, SkillGroupCard } from "./transcript/ChipCards.js";
|
|
14
14
|
import { useReferenceMatches, useReferenceProviders, useReferenceView } from "./transcript/references.js";
|
|
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";
|
|
@@ -38,17 +39,9 @@ import { AttachmentIcon, UserPromptAttachments, UserPromptRow } from "./transcri
|
|
|
38
39
|
import { HostStatusDot } from "./HostStatusDot.js";
|
|
39
40
|
import { parseReferenceUrl, referenceUrl, remarkReferences } from "./transcript/remark-references.js";
|
|
40
41
|
import { ProseMarkdown } from "./transcript/ProseMarkdown.js";
|
|
41
|
-
import { PlanBody, PlanCard } from "./interactions/PlanCard.js";
|
|
42
|
-
import { SecretInput } from "./interactions/SecretInput.js";
|
|
43
|
-
import { QuestionField, isRequired } from "./interactions/QuestionField.js";
|
|
44
|
-
import { seedDefaults } from "./interactions/question-answers.js";
|
|
45
|
-
import { AnsweredQuestions, QuestionForm } from "./interactions/QuestionForm.js";
|
|
46
|
-
import { resourceErrorText, useClearDraftKnobs, useComposerModelName, useComposerProviderLabel, useDraftKnobs, useHostResource, useModelCatalog, useModelKnobs, useModelPickerPrefs, useModelPickerPrefsStore, useRememberedKnobs } from "./composer/use-composer-stores.js";
|
|
47
42
|
import { HostTranscript } from "./HostTranscript.js";
|
|
48
43
|
import { PdfPreview } from "./PdfPreview.js";
|
|
49
44
|
import { providerColor, providerHue, providerTint } from "./provider-color.js";
|
|
50
|
-
import { RunEstimateChip, RunEstimatesProvider, useRunEstimate } from "./RunEstimateChip.js";
|
|
51
|
-
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";
|
|
52
45
|
import { EnvironmentSetupDetails, EnvironmentSetupRow } from "./transcript/environment-setup.js";
|
|
53
46
|
import { WorkerDetails } from "./transcript/fold-worker.js";
|
|
54
47
|
import { ToolDetails } from "./transcript/tool-details.js";
|
|
@@ -56,13 +49,14 @@ import { ImageGenerationBlock, drawsImageGeneration, imageRequestsOf, savedPaths
|
|
|
56
49
|
import { ModelVerdict, NestedToolCalls, ToolRow } from "./transcript/tool-row.js";
|
|
57
50
|
import { ExchangeFoldRow, FoldHeader, LiveScriptsContext } from "./transcript/fold.js";
|
|
58
51
|
import { SelectCursor } from "./transcript/SelectCursor.js";
|
|
59
|
-
import {
|
|
52
|
+
import { RunEstimateChip, RunEstimatesProvider, useRunEstimate } from "./RunEstimateChip.js";
|
|
60
53
|
import { SubagentBlock } from "./transcript/SubagentBlock.js";
|
|
61
|
-
import { TranscriptRail, TranscriptRailProvider, useTranscriptRailStore } from "./transcript/TranscriptRail.js";
|
|
54
|
+
import { TranscriptRail, TranscriptRailProvider, useRailOutline, useTranscriptRailStore } from "./transcript/TranscriptRail.js";
|
|
62
55
|
import { MessageGroupRow } from "./transcript/messages.js";
|
|
63
56
|
import { AuthFailureCard } from "./transcript/AuthFailureCard.js";
|
|
64
57
|
import { COMMAND_DETAIL_LINE, CommandDetailRow, CommandNoteRow, ErrorRow, FailureRow, InfoRow, NoticeRow, RepairedRow, SessionEventRow, SpawnEndRow, SpawnStartRow } from "./transcript/notices.js";
|
|
65
58
|
import { CompactSummaryRow, RunReceiptInline, RunSummaryRow } from "./transcript/run-rows.js";
|
|
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";
|
|
66
60
|
import { RunnableCodeBlock, ShellBlockProvider } from "./transcript/shell-block.js";
|
|
67
61
|
import { TaskBatchRow, TaskRow } from "./transcript/tasks.js";
|
|
68
62
|
import { ToolBatchRow } from "./transcript/tool-batch.js";
|
|
@@ -70,16 +64,16 @@ import { UserBashRow } from "./transcript/user-bash.js";
|
|
|
70
64
|
import { TranscriptRow, TranscriptRowSlot, isHiddenRow } from "./transcript/TranscriptRow.js";
|
|
71
65
|
import { useSelectStops, useTranscriptRows } from "./transcript/use-transcript-rows.js";
|
|
72
66
|
import { useTranscriptSelectionCopy } from "./transcript/useTranscriptSelectionCopy.js";
|
|
67
|
+
import { SessionFilterMenu } from "./SessionFilterMenu.js";
|
|
73
68
|
import { GroupGlyph, SessionGroupHeader, ShowMoreRow } from "./SessionGroupHeader.js";
|
|
74
69
|
import { SessionHostHeader } from "./SessionHostHeader.js";
|
|
75
70
|
import { SessionList } from "./SessionList.js";
|
|
76
71
|
import { SessionListRow } from "./SessionListRow.js";
|
|
77
|
-
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";
|
|
78
73
|
import { StatusDot, dotStateFor } from "./StatusDot.js";
|
|
79
74
|
import { MAX_TEXT_PREVIEW_BYTES, TextPreview, useAttachmentText } from "./TextPreview.js";
|
|
80
75
|
import { Throbber } from "./Throbber.js";
|
|
81
76
|
import { DEFAULT_TRANSCRIPT_OPTIONS, Transcript } from "./Transcript.js";
|
|
82
|
-
import { TRANSCRIPT_OPTION_KEYS, useTranscriptOptions } from "./transcript-options.js";
|
|
83
77
|
import { PickerPill } from "./composer/PickerPill.js";
|
|
84
78
|
import { AgentPicker } from "./composer/AgentPicker.js";
|
|
85
79
|
import { useAllInteractions, useInteractionHead, usePendingInteractions } from "./interactions/hooks.js";
|
|
@@ -100,9 +94,11 @@ import { ATTACHMENT_NOTICE_MS, useAttachmentIngest, useAttachmentNotices } from
|
|
|
100
94
|
import { Composer } from "./composer/Composer.js";
|
|
101
95
|
import { ContextBreakdown, colorForCategory } from "./composer/ContextBreakdown.js";
|
|
102
96
|
import { ContextOrb, contextGauge } from "./composer/ContextOrb.js";
|
|
97
|
+
import { resourceErrorText, useClearDraftKnobs, useComposerModelName, useComposerProviderLabel, useDraftKnobs, useHostResource, useModelCatalog, useModelKnobs, useModelPickerPrefs, useModelPickerPrefsStore, useRememberedKnobs } from "./composer/use-composer-stores.js";
|
|
103
98
|
import { HostContextOrb } from "./composer/HostContextOrb.js";
|
|
104
99
|
import { catalogFromProviders, compactWindow, groupKeyOf, lineupKeyOf, modelLineup, modelNameOf, modelSearchScore, offCatalogRows, pickRefOf, pickerGroups, providerAccountLabel, refKey, resolveChain, resolvePick, rowKey, unresolveChain, withPrimary } from "./composer/model-catalog.js";
|
|
105
100
|
import { EFFORT_LEVELS, ModelOptionsPicker, OPTION_ICON, THINKING_LEVELS, optionTitle } from "./composer/ModelOptionsPicker.js";
|
|
101
|
+
import { TRANSCRIPT_OPTION_KEYS, useTranscriptOptions } from "./transcript-options.js";
|
|
106
102
|
import { ModelChainFooter, ModelChainHeader, ModelGroupHeader } from "./composer/ModelChainParts.js";
|
|
107
103
|
import { ModelFlag, ModelMeta, ModelProviderChip, ModelReasoning, ModelWindow } from "./composer/ModelFacts.js";
|
|
108
104
|
import { ModelChainRow } from "./composer/ModelChainRow.js";
|
|
@@ -140,7 +136,12 @@ import { useNewSessionDefaults } from "./composer/use-new-session-defaults.js";
|
|
|
140
136
|
import { useProviderReadyPoll } from "./composer/use-provider-ready-poll.js";
|
|
141
137
|
import { useSendPrompt } from "./composer/use-send-prompt.js";
|
|
142
138
|
import { useSessionContextStatus, useSessionMeters } from "./composer/use-session-meters.js";
|
|
139
|
+
import { SecretInput } from "./interactions/SecretInput.js";
|
|
140
|
+
import { QuestionField, isRequired } from "./interactions/QuestionField.js";
|
|
141
|
+
import { seedDefaults } from "./interactions/question-answers.js";
|
|
143
142
|
import { ElicitationCard } from "./interactions/ElicitationCard.js";
|
|
143
|
+
import { PlanBody, PlanCard } from "./interactions/PlanCard.js";
|
|
144
|
+
import { AnsweredQuestions, QuestionForm } from "./interactions/QuestionForm.js";
|
|
144
145
|
import { InteractionCard } from "./interactions/InteractionCard.js";
|
|
145
146
|
import { HostInteractions } from "./interactions/HostInteractions.js";
|
|
146
147
|
import { InboxPanel } from "./interactions/InboxPanel.js";
|
|
@@ -163,4 +164,4 @@ import { useTranscriptFindKey } from "./transcript/useTranscriptFindKey.js";
|
|
|
163
164
|
import { useTranscriptFind } from "./transcript/useTranscriptFind.js";
|
|
164
165
|
import { useWheelHoverPause } from "./transcript/useWheelHoverPause.js";
|
|
165
166
|
import { useTranscriptScroll } from "./transcript/useTranscriptScroll.js";
|
|
166
|
-
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, 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, useTokenSession, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptOptions, useTranscriptRailStore, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause, withPrimary, workShowDelay };
|
|
@@ -156,7 +156,7 @@ function ProjectIconButton({ fullPath, label, icon, isGitRepo, defaultGlyph, tit
|
|
|
156
156
|
surfaceRef.current = node;
|
|
157
157
|
},
|
|
158
158
|
open: popover.open,
|
|
159
|
-
anchor: {
|
|
159
|
+
anchor: { ref: triggerRef },
|
|
160
160
|
side: "bottom",
|
|
161
161
|
align: "start",
|
|
162
162
|
offset: 4,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useTooltip } from "../../components/Tooltip.js";
|
|
2
2
|
import { environmentKindIcon } from "../../git/headless/environment.js";
|
|
3
3
|
import { sessionPlaceTone } from "../../session/headless/place.js";
|
|
4
|
-
import {
|
|
4
|
+
import { environmentLabel, environmentSummaryText } from "../headless/sidebar/environment.js";
|
|
5
5
|
import { useSidebarLabels } from "./useSidebarLabels.js";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
// src/chat/sidebar/RowChips.tsx
|
|
@@ -31,7 +31,7 @@ function EnvironmentChip({ environment, className = "", style }) {
|
|
|
31
31
|
}), /* @__PURE__ */ jsx("span", {
|
|
32
32
|
dir: "auto",
|
|
33
33
|
className: `min-w-0 max-w-[14ch] truncate ${environment.branch ? "zg-meta" : ""}`,
|
|
34
|
-
children: environment.branch ||
|
|
34
|
+
children: environment.branch || environmentLabel(environment, labels)
|
|
35
35
|
})]
|
|
36
36
|
}), tip.tip] });
|
|
37
37
|
}
|
|
@@ -101,6 +101,12 @@ export interface SessionSidebarProps<S extends SidebarRowSession> {
|
|
|
101
101
|
onMoveToSpace?: (sessionId: S['id'], spaceId: string) => Promise<unknown>;
|
|
102
102
|
/** Moves a session to another environment of its host (`useMoveSession`, `zidane-ui/git`). Absent: no "Move to…". */
|
|
103
103
|
onMoveSession?: (sessionId: S['id']) => void;
|
|
104
|
+
/** Teleports a session to another host (`useTeleportSession`, `zidane-ui/git`). Absent: no "Teleport to…". */
|
|
105
|
+
onTeleportSession?: (sessionId: S['id']) => void;
|
|
106
|
+
/** Opens who shares a session (`useShareSession`, `zidane-ui/session`). Absent: no "Share…". */
|
|
107
|
+
onShareSession?: (sessionId: S['id']) => void;
|
|
108
|
+
/** Whether a session can be shared (its server signs its users in). Absent: every session with `onShareSession`. */
|
|
109
|
+
canShareSession?: (sessionId: S['id']) => boolean;
|
|
104
110
|
/** Moves a project to a space. Absent: no move rows on the headers. */
|
|
105
111
|
onMoveProjectToSpace?: (project: SidebarProject, spaceId: string) => Promise<unknown>;
|
|
106
112
|
/** Archives a project's conversations (`useProjectSessionActions`). */
|
|
@@ -155,15 +155,15 @@ const NO_DECORATIONS = [];
|
|
|
155
155
|
* @param props - The directory's view, the app's actions, the live row parts, the footer and the frame.
|
|
156
156
|
*/
|
|
157
157
|
function SessionSidebar(props) {
|
|
158
|
-
const { sessions: allSessions, hosts, groupBy, sortBy, archiveFilter, activeSessionId, onActivate, orchestration, spacesOn, spaces, listSpaceId, spaceSlide: lastSpaceSwitch, search, live, runDetails = true, artifactBadges = true, onNewSession, onNewSessionIn: newSessionIn, onOpenProject, openProject, onOpenChats, chatsOpen = false, onRename, onSetArchived, onSetFavorite, onSetInboxState, layout = "groups", inboxEarlierAfterMs = INBOX_EARLIER_AFTER_MS, inboxGroupBy: inboxGroupByProp, onDelete, onMoveToSpace, onMoveSession, onMoveProjectToSpace, onArchiveProject, onDeleteProject: deleteProject, keyboardBlocked, query, onViewChange, agentNames: agentNamesProp, onOpenItem, filter, footer, collapsed, width, onWidthCommit, chromeInset, ariaLabel, className, style } = props;
|
|
158
|
+
const { sessions: allSessions, hosts, groupBy, sortBy, archiveFilter, activeSessionId, onActivate, orchestration, spacesOn, spaces, listSpaceId, spaceSlide: lastSpaceSwitch, search, live, runDetails = true, artifactBadges = true, onNewSession, onNewSessionIn: newSessionIn, onOpenProject, openProject, onOpenChats, chatsOpen = false, onRename, onSetArchived, onSetFavorite, onSetInboxState, layout = "groups", inboxEarlierAfterMs = INBOX_EARLIER_AFTER_MS, inboxGroupBy: inboxGroupByProp, onDelete, onMoveToSpace, onMoveSession, onTeleportSession, onShareSession, canShareSession, onMoveProjectToSpace, onArchiveProject, onDeleteProject: deleteProject, keyboardBlocked, query, onViewChange, agentNames: agentNamesProp, onOpenItem, filter, footer, collapsed, width, onWidthCommit, chromeInset, ariaLabel, className, style } = props;
|
|
159
159
|
const labels = useSidebarLabels();
|
|
160
160
|
const notify = useSidebarNotice();
|
|
161
161
|
const environment = useEnvironmentCommands();
|
|
162
162
|
const slideDirection = lastSpaceSwitch?.spaceId === listSpaceId ? lastSpaceSwitch.direction : null;
|
|
163
163
|
const slideOffset = slideDirection === "next" ? 1 : slideDirection === "prev" ? -1 : 0;
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
|
|
164
|
+
const [listKey, setListKey] = useState("list");
|
|
165
|
+
const switchedTo = spacesOn && lastSpaceSwitch?.spaceId === listSpaceId ? lastSpaceSwitch.spaceId : null;
|
|
166
|
+
if (switchedTo !== null && switchedTo !== listKey) setListKey(switchedTo);
|
|
167
167
|
const slideTransition = useWithFade("slide", SPACE_SLIDE_S);
|
|
168
168
|
const listSlide = useMemo(() => ({
|
|
169
169
|
dir: slideOffset,
|
|
@@ -361,17 +361,21 @@ function SessionSidebar(props) {
|
|
|
361
361
|
rowLimit,
|
|
362
362
|
viewKey
|
|
363
363
|
});
|
|
364
|
-
const
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
364
|
+
const planFlip = () => {
|
|
365
|
+
const shape = flipShape.current;
|
|
366
|
+
const folded = shape.collapsedGroups !== collapsedGroups || shape.collapsedShelves !== collapsedShelves || shape.collapsedFolders !== collapsedFolders;
|
|
367
|
+
const toggled = lastToggle.current;
|
|
368
|
+
const foldAroundOpen = folded && toggled !== null && activeSessionId != null && (inbox ? inboxRows.some((r) => r.kind === "session" && r.id === activeSessionId && (r.section === toggled || r.folder === toggled)) : groupHolds(rows, toggled, activeSessionId));
|
|
369
|
+
return {
|
|
370
|
+
animate: !searchMode && shape.searchMode === searchMode && shape.rowLimit === rowLimit && (!folded || foldAroundOpen),
|
|
371
|
+
mode: foldAroundOpen ? "fold" : shape.viewKey !== viewKey ? "swap" : "list"
|
|
372
|
+
};
|
|
373
|
+
};
|
|
369
374
|
const flip = useFlipList(layoutKey, {
|
|
370
375
|
selector: "li",
|
|
371
376
|
keyOf: flipKeyOf,
|
|
372
377
|
isSticky: isStickyHead,
|
|
373
|
-
|
|
374
|
-
mode: flipMode
|
|
378
|
+
plan: planFlip
|
|
375
379
|
});
|
|
376
380
|
useLayoutEffect(() => {
|
|
377
381
|
flipShape.current = {
|
|
@@ -563,6 +567,9 @@ function SessionSidebar(props) {
|
|
|
563
567
|
onRunEnvironmentAction: environment.run,
|
|
564
568
|
onMoveToSpace: onRowMoveToSpace,
|
|
565
569
|
...onMoveSession ? { onMoveSession } : {},
|
|
570
|
+
...onTeleportSession ? { onTeleportSession } : {},
|
|
571
|
+
...onShareSession ? { onShareSession } : {},
|
|
572
|
+
...canShareSession ? { canShareSession } : {},
|
|
566
573
|
onOpenMenu: onRowOpenMenu,
|
|
567
574
|
onCloseMenu: onRowCloseMenu,
|
|
568
575
|
live
|
|
@@ -577,6 +584,9 @@ function SessionSidebar(props) {
|
|
|
577
584
|
environment,
|
|
578
585
|
onRowMoveToSpace,
|
|
579
586
|
onMoveSession,
|
|
587
|
+
onTeleportSession,
|
|
588
|
+
onShareSession,
|
|
589
|
+
canShareSession,
|
|
580
590
|
onRowOpenMenu,
|
|
581
591
|
onRowCloseMenu,
|
|
582
592
|
live
|
|
@@ -602,9 +612,7 @@ function SessionSidebar(props) {
|
|
|
602
612
|
useEffect(() => {
|
|
603
613
|
setMenuForId(null);
|
|
604
614
|
}, [activeSessionId]);
|
|
605
|
-
|
|
606
|
-
if (collapsed) setRenamingId(null);
|
|
607
|
-
}, [collapsed]);
|
|
615
|
+
if (collapsed && renamingId !== null) setRenamingId(null);
|
|
608
616
|
const onNewSessionIn = useCallback((fullPath) => newSessionIn(fullPath), [newSessionIn]);
|
|
609
617
|
const handleNewSession = useCallback(() => {
|
|
610
618
|
commitImmediate(null);
|
|
@@ -834,8 +842,7 @@ function SessionSidebar(props) {
|
|
|
834
842
|
children: /* @__PURE__ */ jsxs(FlipSnapshot, {
|
|
835
843
|
flip: flip.controller,
|
|
836
844
|
layoutKey,
|
|
837
|
-
|
|
838
|
-
mode: flipMode,
|
|
845
|
+
plan: planFlip,
|
|
839
846
|
children: [searchMode ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
840
847
|
titleMatches.map((session) => searchRow(session)),
|
|
841
848
|
contentMatches.map(({ session, hit }) => searchRow(session, hit.excerpt)),
|