zidane-ui 9.2.3 → 9.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/live.d.ts +6 -0
- package/dist/adapters/live.js +16 -8
- package/dist/adapters/server-composer-host.js +22 -9
- package/dist/adapters/server-host.js +143 -18
- package/dist/adapters/server-media.d.ts +9 -1
- package/dist/adapters/server-media.js +14 -1
- package/dist/chat/HostTranscript.d.ts +0 -12
- package/dist/chat/HostTranscript.js +6 -1
- package/dist/chat/SessionStreamsProvider.d.ts +8 -0
- package/dist/chat/SessionStreamsProvider.js +11 -2
- package/dist/chat/Transcript.d.ts +20 -11
- package/dist/chat/Transcript.js +326 -160
- package/dist/chat/composer/ComposerEditor.js +1 -1
- package/dist/chat/headless/host.d.ts +43 -7
- package/dist/chat/headless/index.d.ts +7 -6
- package/dist/chat/headless/index.js +10 -9
- 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 +66 -0
- package/dist/chat/headless/markdown-scan.js +124 -0
- package/dist/chat/headless/markdown-stream.d.ts +64 -0
- package/dist/chat/headless/markdown-stream.js +143 -0
- package/dist/chat/headless/output-pager.d.ts +68 -0
- package/dist/chat/headless/output-pager.js +113 -0
- package/dist/chat/headless/session-list.d.ts +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 +9 -1
- package/dist/chat/headless/sidebar/directory.js +10 -50
- package/dist/chat/headless/sidebar/labels.d.ts +11 -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 +2 -0
- package/dist/chat/headless/streams/actions.js +1 -0
- package/dist/chat/headless/streams/event-bytes.d.ts +6 -0
- package/dist/chat/headless/streams/event-bytes.js +34 -0
- package/dist/chat/headless/streams/live-events.d.ts +25 -1
- package/dist/chat/headless/streams/live-events.js +53 -2
- package/dist/chat/headless/streams/selectors.d.ts +3 -0
- package/dist/chat/headless/streams/selectors.js +8 -1
- package/dist/chat/headless/streams/session-streams.d.ts +15 -3
- package/dist/chat/headless/streams/session-streams.js +31 -3
- package/dist/chat/headless/streams/store.d.ts +24 -1
- package/dist/chat/headless/streams/store.js +51 -26
- package/dist/chat/headless/streams/transcript-map.d.ts +57 -0
- package/dist/chat/headless/streams/transcript-map.js +88 -0
- package/dist/chat/headless/streams/transcript.d.ts +4 -2
- package/dist/chat/headless/streams/transcript.js +19 -7
- package/dist/chat/headless/transcript/batch.js +5 -1
- package/dist/chat/headless/transcript/blob-media.d.ts +15 -0
- package/dist/chat/headless/transcript/blob-media.js +23 -0
- package/dist/chat/headless/transcript/collapse.d.ts +10 -0
- package/dist/chat/headless/transcript/collapse.js +32 -6
- package/dist/chat/headless/transcript/derive.d.ts +98 -0
- package/dist/chat/headless/transcript/derive.js +89 -0
- package/dist/chat/headless/transcript/exchange-media.d.ts +3 -1
- package/dist/chat/headless/transcript/exchange-media.js +8 -5
- package/dist/chat/headless/transcript/fold-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 +8 -7
- package/dist/chat/index.js +17 -16
- package/dist/chat/sidebar/SidebarFooter.d.ts +8 -5
- package/dist/chat/sidebar/SidebarFooter.js +6 -6
- 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/LazyRow.d.ts +40 -40
- package/dist/chat/transcript/LazyRow.js +101 -149
- package/dist/chat/transcript/MermaidDiagram.js +2 -1
- package/dist/chat/transcript/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/clipped-output.d.ts +58 -0
- package/dist/chat/transcript/clipped-output.js +131 -0
- package/dist/chat/transcript/fold-attachments.js +10 -5
- package/dist/chat/transcript/fold-worker.js +3 -2
- package/dist/chat/transcript/fold.js +2 -1
- package/dist/chat/transcript/index.d.ts +10 -9
- package/dist/chat/transcript/index.js +9 -8
- package/dist/chat/transcript/markdown-cache.d.ts +7 -1
- package/dist/chat/transcript/markdown-cache.js +12 -1
- package/dist/chat/transcript/markdown.js +116 -54
- package/dist/chat/transcript/media-gallery.d.ts +3 -2
- package/dist/chat/transcript/media-gallery.js +10 -7
- package/dist/chat/transcript/notices.js +2 -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 +165 -0
- package/dist/chat/transcript/row-mount.js +498 -0
- package/dist/chat/transcript/row-parking.d.ts +125 -0
- package/dist/chat/transcript/row-parking.js +135 -0
- package/dist/chat/transcript/row-ui-state.d.ts +37 -0
- package/dist/chat/transcript/row-ui-state.js +53 -0
- package/dist/chat/transcript/run-rows.js +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 -5
- package/dist/chat/transcript/tool-payload.js +26 -11
- package/dist/chat/transcript/tool-row.d.ts +2 -1
- package/dist/chat/transcript/tool-row.js +38 -19
- package/dist/chat/transcript/use-transcript-rows.d.ts +24 -7
- package/dist/chat/transcript/use-transcript-rows.js +28 -46
- package/dist/chat/transcript/useStickToBottom.js +2 -3
- package/dist/chat/transcript/useTranscriptSearch.js +30 -14
- package/dist/chat/transcript/view-scope.d.ts +26 -6
- package/dist/chat/transcript/view-scope.js +106 -20
- package/dist/dist/{index-E1Z0aPmi.d.ts → index-C6-t1SS9.d.ts} +2 -1
- package/dist/dist/index.d.ts +1 -1
- package/dist/session/SessionHeader.js +1 -0
- 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/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 +33 -2
- 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/package.json +2 -2
- package/src/styles/transcript.css +33 -2
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,7 +105,7 @@ import { SecretInput, SecretInputProps } from "./interactions/SecretInput.js";
|
|
|
104
105
|
import { Throbber, ThrobberProps, ThrobberVariant } from "./Throbber.js";
|
|
105
106
|
import { DEFAULT_TRANSCRIPT_OPTIONS, Transcript, TranscriptOptions, TranscriptProps, TranscriptSelection } from "./Transcript.js";
|
|
106
107
|
import { TRANSCRIPT_OPTION_KEYS, useTranscriptOptions } from "./transcript-options.js";
|
|
107
|
-
import { TranscriptAccounts, TranscriptActions, TranscriptActionsProvider, TranscriptActionsProviderProps, useModelName, useTranscriptActions } from "./transcript/actions.js";
|
|
108
|
+
import { TranscriptAccounts, TranscriptActions, TranscriptActionsProvider, TranscriptActionsProviderProps, attachmentSrcOf, toolMediaSrcOf, useModelName, useTranscriptActions } from "./transcript/actions.js";
|
|
108
109
|
import { AnsiSpans, AnsiSpansProps, AnsiText, AnsiTextProps } from "./transcript/AnsiText.js";
|
|
109
110
|
import { AuthFailureCard, AuthFailureCardProps } from "./transcript/AuthFailureCard.js";
|
|
110
111
|
import { BadgeEffectContext, BadgeMenuBrowser, BadgeMenuComposer, BadgeMenuProvider, BadgeMenuProviderProps, BadgeMenuSystem, OpenBadgeMenu, useBadgeMenu } from "./transcript/BadgeMenu.js";
|
|
@@ -127,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, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptOptions, useTranscriptRailStore, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause, withPrimary, workShowDelay };
|
package/dist/chat/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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";
|
|
@@ -15,7 +15,8 @@ import { useReferenceMatches, useReferenceProviders, useReferenceView } from "./
|
|
|
15
15
|
import { ReferenceChip, ReferenceText } from "./transcript/ReferenceText.js";
|
|
16
16
|
import { classifyInlineRef, findRefs, numberRef, parseRefUrl, refHref, remarkRefs } from "./transcript/remark-refs.js";
|
|
17
17
|
import { InlineCode, RefChip } from "./transcript/FileChip.js";
|
|
18
|
-
import {
|
|
18
|
+
import { revealRow } from "./transcript/row-mount.js";
|
|
19
|
+
import { CvRow, LazyRow, TranscriptSettling, holdForceMountRows, useBackgroundMount, useForceMountRows, useForcedRows } from "./transcript/LazyRow.js";
|
|
19
20
|
import { useShellBlockScope } from "./transcript/shell-block-scope.js";
|
|
20
21
|
import { MarkdownViews } from "./transcript/view-scope.js";
|
|
21
22
|
import { Markdown, MarkdownDiagrams } from "./transcript/markdown.js";
|
|
@@ -27,7 +28,7 @@ import { PromptLines, copyPromptLines } from "./transcript/prompt-lines.js";
|
|
|
27
28
|
import { AnsiSpans, AnsiText } from "./transcript/AnsiText.js";
|
|
28
29
|
import { LiveOutput } from "./transcript/LiveOutput.js";
|
|
29
30
|
import { CodemodeScript } from "./transcript/CodemodeScript.js";
|
|
30
|
-
import { CODE_PANEL, LoadFullOutputButton, ReadFileBlock, ToolGlyph, ToolInput, ToolTiming, useFullOutput } from "./transcript/tool-parts.js";
|
|
31
|
+
import { CODE_PANEL, LoadFullOutputButton, ReadFileBlock, ToolGlyph, ToolInput, ToolTiming, useFullOutput, useFullToolCall } from "./transcript/tool-parts.js";
|
|
31
32
|
import { TextRow, ThinkingBatchRow, ThinkingRow } from "./transcript/prose.js";
|
|
32
33
|
import { DiffLines } from "./transcript/DiffLines.js";
|
|
33
34
|
import { EditDiffBlock } from "./transcript/EditDiffBlock.js";
|
|
@@ -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, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptOptions, useTranscriptRailStore, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause, withPrimary, workShowDelay };
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* [status …] [spaces] [settings]
|
|
5
5
|
*
|
|
6
|
-
* The status side holds what the
|
|
7
|
-
*
|
|
6
|
+
* The status side holds what is the same in every space (the daemon dot), then
|
|
7
|
+
* what the app puts there (the sign-in prompt, the usage chip, the compacting
|
|
8
|
+
* indicator, each below), then what
|
|
8
9
|
* extensions put in `sidebar.footer` and `app.statusbar`; the spaces
|
|
9
10
|
* switcher sits at the TRUE center (equal `1fr` sides, each clipping rather
|
|
10
11
|
* than pushing it; without it the status side runs up to the gear, clipping
|
|
@@ -23,7 +24,9 @@ export interface SidebarSettingsNote {
|
|
|
23
24
|
}
|
|
24
25
|
/** Props of {@link SidebarFooter}. */
|
|
25
26
|
export interface SidebarFooterProps {
|
|
26
|
-
/** The status side
|
|
27
|
+
/** The status side's start: what is the same in every space (the daemon dot). It stays put on a space switch. */
|
|
28
|
+
pinned?: ReactNode;
|
|
29
|
+
/** The status side, after `pinned`: the app's indicators. They slide with the list on a space switch. */
|
|
27
30
|
status?: ReactNode;
|
|
28
31
|
/** The center: the spaces switcher (Spaces on). */
|
|
29
32
|
spaces?: ReactNode;
|
|
@@ -41,9 +44,9 @@ export interface SidebarFooterProps {
|
|
|
41
44
|
/**
|
|
42
45
|
* Renders the sidebar's footer strip.
|
|
43
46
|
*
|
|
44
|
-
* @param props - The status side, the spaces switcher, the settings gear, `className` and `style`.
|
|
47
|
+
* @param props - The pinned status, the status side, the spaces switcher, the settings gear, `className` and `style`.
|
|
45
48
|
*/
|
|
46
|
-
export declare function SidebarFooter({ status, spaces, onOpenSettings, settingsNote, sessionId, className, style }: SidebarFooterProps): import("react").JSX.Element;
|
|
49
|
+
export declare function SidebarFooter({ pinned, status, spaces, onOpenSettings, settingsNote, sessionId, className, style }: SidebarFooterProps): import("react").JSX.Element;
|
|
47
50
|
/** Props of {@link SidebarSignInPrompt}. */
|
|
48
51
|
export interface SidebarSignInPromptProps {
|
|
49
52
|
/** Opens the sign-in. */
|
|
@@ -11,18 +11,18 @@ import { activeSnapshotFor, compactingParts, formatUsagePercent, mostConstrained
|
|
|
11
11
|
/**
|
|
12
12
|
* Renders the sidebar's footer strip.
|
|
13
13
|
*
|
|
14
|
-
* @param props - The status side, the spaces switcher, the settings gear, `className` and `style`.
|
|
14
|
+
* @param props - The pinned status, the status side, the spaces switcher, the settings gear, `className` and `style`.
|
|
15
15
|
*/
|
|
16
|
-
function SidebarFooter({ status, spaces, onOpenSettings, settingsNote, sessionId, className = "", style }) {
|
|
16
|
+
function SidebarFooter({ pinned, status, spaces, onOpenSettings, settingsNote, sessionId, className = "", style }) {
|
|
17
17
|
const scoped = sessionId ? { sessionId } : {};
|
|
18
18
|
const labels = useSidebarLabels();
|
|
19
19
|
return /* @__PURE__ */ jsxs("div", {
|
|
20
20
|
className: `grid ${spaces ? "grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)]" : "grid-cols-[minmax(0,1fr)_auto]"} items-center gap-2 px-2 pt-[5px] pb-1 text-zg-meta text-[var(--zg-text-muted)] shrink-0${className ? ` ${className}` : ""}`,
|
|
21
21
|
style,
|
|
22
22
|
children: [
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
-
className: "relative flex items-center min-w-0 -mx-1.5 px-1.5 [overflow-x:clip]",
|
|
25
|
-
children: /* @__PURE__ */ jsxs(SpaceSlideRegion, {
|
|
23
|
+
/* @__PURE__ */ jsxs("div", {
|
|
24
|
+
className: "relative flex items-center gap-2 min-w-0 -mx-1.5 px-1.5 [overflow-x:clip]",
|
|
25
|
+
children: [pinned, /* @__PURE__ */ jsxs(SpaceSlideRegion, {
|
|
26
26
|
className: "flex items-center gap-2 min-w-0",
|
|
27
27
|
children: [
|
|
28
28
|
status,
|
|
@@ -35,7 +35,7 @@ function SidebarFooter({ status, spaces, onOpenSettings, settingsNote, sessionId
|
|
|
35
35
|
...scoped
|
|
36
36
|
})
|
|
37
37
|
]
|
|
38
|
-
})
|
|
38
|
+
})]
|
|
39
39
|
}),
|
|
40
40
|
spaces && /* @__PURE__ */ jsx("div", {
|
|
41
41
|
className: "flex items-center justify-center min-w-0",
|
|
@@ -19,9 +19,9 @@ import { ChatCommandFacts, ChatCommit, ChatContextFacts, ChatResolvedPath, ChatS
|
|
|
19
19
|
import { ComposerContractSession, ComposerHostCapability, ComposerHostContractBackend, ComposerHostContractControl, ComposerHostHarness, ComposerHostHarnessFactory, describeComposerHostContract } from "./composer.contract.js";
|
|
20
20
|
import { SidebarHostCapability, SidebarHostContractBackend, SidebarHostContractControl, SidebarHostHarness, SidebarHostHarnessFactory, describeSidebarHostContract } from "./sidebar.contract.js";
|
|
21
21
|
import { BadgeActionEffect, BadgeMenuItem, ExtensionReferenceView, ReferenceProviderWire } from "zidane/chat/pure";
|
|
22
|
-
import { InteractionRequest } from "zidane/chat";
|
|
22
|
+
import { InteractionRequest, ToolCallDetail as ToolCallDetail$1 } from "zidane/chat";
|
|
23
23
|
/** An optional `ChatHost` member, by its path. */
|
|
24
|
-
export type ChatHostCapability = 'sessions' | 'sessions.create' | 'sessions.rename' | 'sessions.setArchived' | 'sessions.setFavorite' | 'sessions.setInboxState' | 'sessions.remove' | 'sessions.query' | 'sessions.setSpace' | 'sessions.search' | 'sessions.onChanged' | 'sessions.views' | 'sessions.main' | 'send' | 'interrupt' | 'shell' | 'providerReady' | 'interactions' | 'interactions.cancel' | 'interactions.all' | 'models' | 'toolOutput' | 'cancelTool' | 'searchSync' | 'references' | 'paths' | 'chips' | 'chips.commit' | 'chips.sessions' | 'chips.context' | 'chips.skills' | 'chips.commands' | 'badges' | 'siteIcons' | 'blockRuns';
|
|
24
|
+
export type ChatHostCapability = 'sessions' | 'sessions.create' | 'sessions.rename' | 'sessions.setArchived' | 'sessions.setFavorite' | 'sessions.setInboxState' | 'sessions.remove' | 'sessions.query' | 'sessions.setSpace' | 'sessions.search' | 'sessions.onChanged' | 'sessions.views' | 'sessions.main' | 'send' | 'interrupt' | 'shell' | 'providerReady' | 'interactions' | 'interactions.cancel' | 'interactions.all' | 'models' | 'toolOutput' | 'toolOutputRange' | 'toolCall' | 'cancelTool' | 'searchSync' | 'references' | 'paths' | 'chips' | 'chips.commit' | 'chips.sessions' | 'chips.context' | 'chips.skills' | 'chips.commands' | 'badges' | 'siteIcons' | 'blockRuns';
|
|
25
25
|
/** One thing the backend does while it runs a prompt, in order. */
|
|
26
26
|
export type ChatHostScriptStep = {
|
|
27
27
|
kind: 'reply';
|
|
@@ -42,8 +42,10 @@ export interface ChatHostContractBackend {
|
|
|
42
42
|
sessions: readonly ChatSession[];
|
|
43
43
|
/** Stored events per session id (a session missing here has none). */
|
|
44
44
|
transcripts: Readonly<Record<string, readonly ChatEvent[]>>;
|
|
45
|
-
/** A tool call's full output, by call id (any session). */
|
|
45
|
+
/** A tool call's full output, by call id (any session). A range of it (`toolOutputRange`) is `{ text, offset, total }` in UTF-16 code units. */
|
|
46
46
|
toolOutputs: Readonly<Record<string, string>>;
|
|
47
|
+
/** The whole of a tool call (its input, its edit), by call id (any session). */
|
|
48
|
+
toolCalls?: Readonly<Record<string, ToolCallDetail$1>>;
|
|
47
49
|
/**
|
|
48
50
|
* What a run does with a sent prompt. The backend echoes the prompt into the transcript, starts the
|
|
49
51
|
* run, plays these steps, and ends the run when they are done (unless a step holds it).
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createToolOutputPager } from "../headless/output-pager.js";
|
|
1
2
|
import { describeComposerHostContract } from "./composer.contract.js";
|
|
2
3
|
import { describeSidebarHostContract } from "./sidebar.contract.js";
|
|
3
4
|
import { afterEach, describe, expect, it, vi } from "vitest";
|
|
@@ -25,6 +26,8 @@ const CAPABILITIES = [
|
|
|
25
26
|
"interactions.all",
|
|
26
27
|
"models",
|
|
27
28
|
"toolOutput",
|
|
29
|
+
"toolOutputRange",
|
|
30
|
+
"toolCall",
|
|
28
31
|
"cancelTool",
|
|
29
32
|
"searchSync",
|
|
30
33
|
"references",
|
|
@@ -78,6 +81,8 @@ const SESSIONS = [{
|
|
|
78
81
|
createdAt: 3,
|
|
79
82
|
updatedAt: 4
|
|
80
83
|
}];
|
|
84
|
+
/** A result longer than a few pages, with characters of two code units (a page edge can split one). */
|
|
85
|
+
const LONG_OUTPUT = Array.from({ length: 300 }, (_, i) => `line ${i} é 🙂\n`).join("");
|
|
81
86
|
const CONTRACT_SHA = "abc1234def5678abc1234def5678abc1234def56";
|
|
82
87
|
function contractBackend() {
|
|
83
88
|
return {
|
|
@@ -89,7 +94,24 @@ function contractBackend() {
|
|
|
89
94
|
kind: "markdown",
|
|
90
95
|
text: "earlier reply"
|
|
91
96
|
}] },
|
|
92
|
-
toolOutputs: {
|
|
97
|
+
toolOutputs: {
|
|
98
|
+
"call-1": "the full output",
|
|
99
|
+
"call-long": LONG_OUTPUT
|
|
100
|
+
},
|
|
101
|
+
toolCalls: { "call-1": {
|
|
102
|
+
input: {
|
|
103
|
+
path: "a.ts",
|
|
104
|
+
content: "the whole file"
|
|
105
|
+
},
|
|
106
|
+
edit: {
|
|
107
|
+
tool: "write_file",
|
|
108
|
+
path: "a.ts",
|
|
109
|
+
hunks: [{
|
|
110
|
+
oldString: "",
|
|
111
|
+
newString: "the whole file"
|
|
112
|
+
}]
|
|
113
|
+
}
|
|
114
|
+
} },
|
|
93
115
|
script(prompt) {
|
|
94
116
|
if (prompt === "hold") return [{ kind: "hold" }];
|
|
95
117
|
if (prompt === "ask") return [{
|
|
@@ -443,6 +465,49 @@ function describeChatHostContract(name, makeHarness, capabilities) {
|
|
|
443
465
|
expect(await host.toolOutput("c-1", "call-1")).toBe("the full output");
|
|
444
466
|
expect(await host.toolOutput("c-1", "call-unknown")).toBeNull();
|
|
445
467
|
});
|
|
468
|
+
it.skipIf(!has("toolOutputRange"))("reads a tool call's output a range at a time", async () => {
|
|
469
|
+
const { host } = await setup();
|
|
470
|
+
const total = LONG_OUTPUT.length;
|
|
471
|
+
expect(await host.toolOutputRange("c-1", "call-long", {
|
|
472
|
+
offset: 0,
|
|
473
|
+
length: 10
|
|
474
|
+
})).toEqual({
|
|
475
|
+
text: LONG_OUTPUT.slice(0, 10),
|
|
476
|
+
offset: 0,
|
|
477
|
+
total
|
|
478
|
+
});
|
|
479
|
+
expect(await host.toolOutputRange("c-1", "call-long", {
|
|
480
|
+
offset: total - 5,
|
|
481
|
+
length: 100
|
|
482
|
+
})).toEqual({
|
|
483
|
+
text: LONG_OUTPUT.slice(total - 5),
|
|
484
|
+
offset: total - 5,
|
|
485
|
+
total
|
|
486
|
+
});
|
|
487
|
+
expect(await host.toolOutputRange("c-1", "call-unknown", {
|
|
488
|
+
offset: 0,
|
|
489
|
+
length: 10
|
|
490
|
+
})).toBeNull();
|
|
491
|
+
const pager = createToolOutputPager((range) => host.toolOutputRange("c-1", "call-long", range), { pageSize: 1e3 });
|
|
492
|
+
await pager.loadMore();
|
|
493
|
+
expect(pager.get()).toMatchObject({
|
|
494
|
+
text: LONG_OUTPUT.slice(0, 1e3),
|
|
495
|
+
total,
|
|
496
|
+
error: null
|
|
497
|
+
});
|
|
498
|
+
await pager.loadAll();
|
|
499
|
+
expect(pager.get()).toMatchObject({
|
|
500
|
+
text: LONG_OUTPUT,
|
|
501
|
+
total,
|
|
502
|
+
loading: false,
|
|
503
|
+
error: null
|
|
504
|
+
});
|
|
505
|
+
});
|
|
506
|
+
it.skipIf(!has("toolCall"))("reads the whole of a tool call", async () => {
|
|
507
|
+
const { host } = await setup();
|
|
508
|
+
expect(await host.toolCall("c-1", "call-1")).toEqual(contractBackend().toolCalls["call-1"]);
|
|
509
|
+
expect(await host.toolCall("c-1", "call-unknown")).toBeNull();
|
|
510
|
+
});
|
|
446
511
|
it.skipIf(!has("searchSync"))("shares a session's search with its other windows", async () => {
|
|
447
512
|
const harness = await makeHarness(contractBackend());
|
|
448
513
|
cleanup.push(() => harness.dispose?.());
|
|
@@ -35,6 +35,11 @@ export interface DiffLinesProps {
|
|
|
35
35
|
* ones) highlights as one text, so a token that spans lines colors right. Absent: plain text.
|
|
36
36
|
*/
|
|
37
37
|
language?: string;
|
|
38
|
+
/**
|
|
39
|
+
* A line number per line, 1:1 with `lines` (`null`: none for that line).
|
|
40
|
+
* Set, a gutter shows them before the `+` / `−` markers.
|
|
41
|
+
*/
|
|
42
|
+
lineNumbers?: readonly (number | null)[];
|
|
38
43
|
/** Extra classes on the root element. */
|
|
39
44
|
className?: string;
|
|
40
45
|
/** Inline styles on the root element, merged after the component's own. */
|
|
@@ -47,4 +52,4 @@ export interface DiffLinesProps {
|
|
|
47
52
|
* a 500-line hunk would otherwise be 1,500 elements to build, style and lay
|
|
48
53
|
* out every time its row scrolled into a long transcript.
|
|
49
54
|
*/
|
|
50
|
-
export declare const DiffLines: import("react").MemoExoticComponent<({ lines, maxHeight, language, className, style: styleProp }: DiffLinesProps) => import("react").JSX.Element>;
|
|
55
|
+
export declare const DiffLines: import("react").MemoExoticComponent<({ lines, maxHeight, language, lineNumbers, className, style: styleProp }: DiffLinesProps) => import("react").JSX.Element>;
|
|
@@ -12,28 +12,38 @@ const MARKER = {
|
|
|
12
12
|
};
|
|
13
13
|
/** Past this many lines a diff stays plain: two highlights of a huge hunk cost more than its colors give. */
|
|
14
14
|
const HIGHLIGHT_MAX_LINES = 2e3;
|
|
15
|
-
const DiffRun = memo(({ op, text, count, tokens }) => {
|
|
15
|
+
const DiffRun = memo(({ op, text, count, tokens, numbers, gutter }) => {
|
|
16
|
+
const bg = op === "add" ? "var(--zg-diff-add-bg)" : op === "remove" ? "var(--zg-diff-remove-bg)" : "transparent";
|
|
17
|
+
const markerColor = op === "add" ? "var(--zg-success)" : op === "remove" ? "var(--zg-danger)" : "var(--zg-text-muted)";
|
|
16
18
|
return /* @__PURE__ */ jsxs("div", {
|
|
17
19
|
className: "flex items-start gap-2 px-2",
|
|
18
|
-
style: { background:
|
|
19
|
-
children: [
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
27
|
-
className: "flex-1 whitespace-pre",
|
|
28
|
-
children: tokens ? tokens.map((line, i) => /* @__PURE__ */ jsxs("span", { children: [line.map((t, j) => /* @__PURE__ */ jsx("span", {
|
|
20
|
+
style: { background: bg },
|
|
21
|
+
children: [
|
|
22
|
+
numbers !== void 0 && /* @__PURE__ */ jsx("span", {
|
|
23
|
+
style: { width: `${gutter}ch` },
|
|
24
|
+
className: "select-none shrink-0 whitespace-pre text-right text-[var(--zg-text-muted)]",
|
|
25
|
+
children: numbers
|
|
26
|
+
}),
|
|
27
|
+
/* @__PURE__ */ jsx("span", {
|
|
29
28
|
style: {
|
|
30
|
-
color:
|
|
31
|
-
|
|
32
|
-
fontWeight: t.fontWeight
|
|
29
|
+
color: markerColor,
|
|
30
|
+
width: "1ch"
|
|
33
31
|
},
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
className: "select-none shrink-0 whitespace-pre",
|
|
33
|
+
children: Array.from({ length: count }).fill(MARKER[op]).join("\n")
|
|
34
|
+
}),
|
|
35
|
+
/* @__PURE__ */ jsx("span", {
|
|
36
|
+
className: "flex-1 whitespace-pre",
|
|
37
|
+
children: tokens ? tokens.map((line, i) => /* @__PURE__ */ jsxs("span", { children: [line.map((t, j) => /* @__PURE__ */ jsx("span", {
|
|
38
|
+
style: {
|
|
39
|
+
color: t.color,
|
|
40
|
+
fontStyle: t.fontStyle,
|
|
41
|
+
fontWeight: t.fontWeight
|
|
42
|
+
},
|
|
43
|
+
children: t.text
|
|
44
|
+
}, j)), i < tokens.length - 1 ? "\n" : line.length === 0 ? " " : ""] }, i)) : text.endsWith("\n") || text === "" ? `${text} ` : text
|
|
45
|
+
})
|
|
46
|
+
]
|
|
37
47
|
});
|
|
38
48
|
});
|
|
39
49
|
/**
|
|
@@ -43,9 +53,10 @@ const DiffRun = memo(({ op, text, count, tokens }) => {
|
|
|
43
53
|
* a 500-line hunk would otherwise be 1,500 elements to build, style and lay
|
|
44
54
|
* out every time its row scrolled into a long transcript.
|
|
45
55
|
*/
|
|
46
|
-
const DiffLines = memo(({ lines, maxHeight, language, className, style: styleProp }) => {
|
|
56
|
+
const DiffLines = memo(({ lines, maxHeight, language, lineNumbers, className, style: styleProp }) => {
|
|
47
57
|
const style = maxHeight ? { maxHeight: `${maxHeight}px` } : BASE_NO_CLAMP;
|
|
48
58
|
const runs = useMemo(() => toRuns(lines), [lines]);
|
|
59
|
+
const gutter = useMemo(() => lineNumbers?.reduce((width, n) => Math.max(width, n === null ? 0 : String(n).length), 0) ?? 0, [lineNumbers]);
|
|
49
60
|
const frameRef = useRef(null);
|
|
50
61
|
const tokens = useDiffTokens(lines, language, frameRef);
|
|
51
62
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -61,7 +72,11 @@ const DiffLines = memo(({ lines, maxHeight, language, className, style: stylePro
|
|
|
61
72
|
op: run.op,
|
|
62
73
|
text: run.text,
|
|
63
74
|
count: run.count,
|
|
64
|
-
...tokens ? { tokens: tokens.slice(run.start, run.start + run.count) } : {}
|
|
75
|
+
...tokens ? { tokens: tokens.slice(run.start, run.start + run.count) } : {},
|
|
76
|
+
...lineNumbers && gutter > 0 ? {
|
|
77
|
+
numbers: lineNumbers.slice(run.start, run.start + run.count).map((n) => n ?? "").join("\n"),
|
|
78
|
+
gutter
|
|
79
|
+
} : {}
|
|
65
80
|
}, run.start))
|
|
66
81
|
})
|
|
67
82
|
});
|
|
@@ -4,6 +4,10 @@ import { StreamEvent } from "zidane/chat";
|
|
|
4
4
|
export interface EditDiffBlockProps {
|
|
5
5
|
/** The edit to draw: its path, hunks and per-hunk approval outcomes. */
|
|
6
6
|
edit: NonNullable<StreamEvent['edit']>;
|
|
7
|
+
/** The call's id: with it, a diff the host cut (`edit.clipped`) offers to load the rest (`TranscriptActions.toolCall`). */
|
|
8
|
+
callId?: string;
|
|
9
|
+
/** The call's turn, a hint where the host looks first. */
|
|
10
|
+
turnId?: string;
|
|
7
11
|
/** Extra classes on the root element. */
|
|
8
12
|
className?: string;
|
|
9
13
|
/** Inline styles on the root element, merged after the component's own. */
|
|
@@ -17,4 +21,4 @@ export interface EditDiffBlockProps {
|
|
|
17
21
|
* edits with all-applied outcomes collapse back to the flat layout so
|
|
18
22
|
* the common case doesn't grow extra chrome.
|
|
19
23
|
*/
|
|
20
|
-
export declare const EditDiffBlock: import("react").MemoExoticComponent<({ edit, className, style }: EditDiffBlockProps) => import("react").JSX.Element>;
|
|
24
|
+
export declare const EditDiffBlock: import("react").MemoExoticComponent<({ edit: lean, callId, turnId, className, style }: EditDiffBlockProps) => import("react").JSX.Element>;
|