zidane-ui 9.1.3 → 9.1.5
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/server-extensions-host.js +1 -1
- package/dist/adapters/server-host.js +2 -1
- package/dist/adapters/server-machines-host.js +1 -1
- package/dist/adapters/server-session-host.js +87 -13
- package/dist/adapters/server-settings-host.js +1 -1
- package/dist/appearance/AppearanceProvider.js +2 -2
- package/dist/appearance/headless/index.js +1 -1
- package/dist/approvals/headless/index.js +2 -2
- package/dist/chat/HostTranscript.d.ts +5 -1
- package/dist/chat/HostTranscript.js +16 -4
- package/dist/chat/RunEstimateChip.d.ts +5 -3
- package/dist/chat/RunEstimateChip.js +33 -3
- package/dist/chat/Transcript.js +1 -1
- package/dist/chat/composer/ComposerEditor.js +1 -1
- package/dist/chat/composer/ConversationBadges.js +16 -10
- package/dist/chat/composer/composer-bus.d.ts +2 -2
- package/dist/chat/composer/composer-bus.js +2 -2
- package/dist/chat/composer/use-composer-stores.js +1 -1
- package/dist/chat/composer/use-run-meter.js +1 -1
- package/dist/chat/headless/composer/conversation-badges.d.ts +8 -3
- package/dist/chat/headless/composer/conversation-badges.js +26 -11
- package/dist/chat/headless/composer/index.js +2 -2
- package/dist/chat/headless/composer/labels-chrome.d.ts +3 -1
- package/dist/chat/headless/composer/labels-chrome.js +3 -1
- package/dist/chat/headless/index.d.ts +5 -3
- package/dist/chat/headless/index.js +17 -15
- package/dist/chat/headless/labels.d.ts +54 -1
- package/dist/chat/headless/labels.js +62 -2
- package/dist/chat/headless/secrets.d.ts +32 -0
- package/dist/chat/headless/secrets.js +43 -0
- package/dist/chat/headless/session-list.d.ts +45 -0
- package/dist/chat/headless/sidebar/estimates.js +13 -1
- package/dist/chat/headless/sidebar/index.d.ts +2 -2
- package/dist/chat/headless/sidebar/index.js +1 -1
- package/dist/chat/headless/sidebar/labels.d.ts +50 -0
- package/dist/chat/headless/sidebar/labels.js +1 -0
- package/dist/chat/headless/sidebar/query.d.ts +2 -2
- package/dist/chat/headless/sidebar/query.js +6 -3
- package/dist/chat/headless/sidebar/types.d.ts +7 -1
- package/dist/chat/headless/sidebar/view.js +2 -0
- package/dist/chat/headless/transcript/auth-failure.d.ts +67 -0
- package/dist/chat/headless/transcript/auth-failure.js +87 -0
- package/dist/chat/headless/transcript/index.d.ts +2 -1
- package/dist/chat/headless/transcript/index.js +2 -1
- package/dist/chat/headless/transcript/nesting.d.ts +3 -3
- package/dist/chat/headless/transcript/nesting.js +12 -4
- package/dist/chat/index.d.ts +4 -2
- package/dist/chat/index.js +3 -1
- package/dist/chat/interactions/InboxPanel.d.ts +6 -2
- package/dist/chat/interactions/InboxPanel.js +82 -44
- package/dist/chat/interactions/PlanCard.d.ts +2 -2
- package/dist/chat/interactions/PlanCard.js +1 -1
- package/dist/chat/interactions/QuestionField.d.ts +8 -3
- package/dist/chat/interactions/QuestionField.js +89 -8
- package/dist/chat/interactions/QuestionForm.d.ts +3 -1
- package/dist/chat/interactions/QuestionForm.js +48 -10
- package/dist/chat/interactions/SecretInput.d.ts +32 -0
- package/dist/chat/interactions/SecretInput.js +72 -0
- package/dist/chat/interactions/card-ui.d.ts +5 -3
- package/dist/chat/interactions/card-ui.js +5 -3
- package/dist/chat/interactions/index.d.ts +2 -1
- package/dist/chat/interactions/index.js +2 -1
- package/dist/chat/sidebar/SessionSidebar.js +2 -0
- package/dist/chat/sidebar/SidebarFilterMenu.d.ts +7 -2
- package/dist/chat/sidebar/SidebarFilterMenu.js +26 -2
- package/dist/chat/sidebar/SidebarSessionRow.d.ts +3 -1
- package/dist/chat/sidebar/SidebarSessionRow.js +8 -3
- package/dist/chat/sidebar/sidebar-live.js +8 -4
- package/dist/chat/transcript/AuthFailureCard.d.ts +34 -0
- package/dist/chat/transcript/AuthFailureCard.js +358 -0
- package/dist/chat/transcript/InteractionToolBody.js +12 -2
- package/dist/chat/transcript/actions.d.ts +24 -1
- package/dist/chat/transcript/index.d.ts +3 -2
- package/dist/chat/transcript/index.js +2 -1
- package/dist/chat/transcript/notices.d.ts +2 -1
- package/dist/chat/transcript/notices.js +13 -1
- package/dist/chat/transcript/script-input.d.ts +1 -1
- package/dist/chat/transcript/shell-block.js +1 -1
- package/dist/components/HowItWorks.d.ts +8 -1
- package/dist/components/HowItWorks.js +2 -2
- package/dist/components/RowActionsMenu.d.ts +6 -1
- package/dist/components/RowActionsMenu.js +4 -0
- package/dist/core.css +24 -0
- package/dist/dist/{index-WlE93Q6d.d.ts → index-BI6RZc60.d.ts} +36 -3
- package/dist/dist/index-f-XWIoYo.d.ts +1 -0
- package/dist/dist/index.d.ts +6 -0
- package/dist/dist/sandbox-B4OW6oNx.d.ts +2 -0
- package/dist/dist/timeout-B5pO5I5a.d.ts +30 -0
- package/dist/extensions/ExtensionSettingsPage.js +1 -1
- package/dist/extensions/ExtensionSettingsSidebar.js +1 -1
- package/dist/extensions/headless/fixture-host.js +1 -1
- package/dist/extensions/headless/index.js +4 -4
- package/dist/extensions/hooks.js +1 -1
- package/dist/files/DiffsTab.js +1 -1
- package/dist/files/EditorColumn.js +1 -1
- package/dist/files/MediaDiff.js +1 -1
- package/dist/files/SearchPanel.js +121 -53
- package/dist/files/headless/name-match.js +29 -14
- package/dist/files/useEntryActions.js +1 -1
- package/dist/files/useOpenFiles.js +1 -1
- package/dist/git/WherePicker.js +2 -2
- package/dist/git/headless/environment.d.ts +6 -1
- package/dist/git/headless/environment.js +5 -2
- package/dist/git/headless/labels.d.ts +2 -0
- package/dist/git/headless/labels.js +2 -0
- package/dist/git/index.d.ts +2 -1
- package/dist/git/index.js +2 -1
- package/dist/git/useStartFromPanel.d.ts +22 -0
- package/dist/git/useStartFromPanel.js +91 -0
- package/dist/keybindings/KeyCommands.js +1 -1
- package/dist/keybindings/KeybindingsProvider.js +1 -1
- package/dist/keybindings/headless/catalog.js +2 -2
- package/dist/keybindings/headless/index.js +2 -2
- package/dist/keybindings/headless/overrides.js +1 -1
- package/dist/machines/HostSyncPanel.js +1 -1
- package/dist/machines/SyncOutcomeBadge.js +1 -1
- package/dist/machines/headless/index.js +1 -1
- package/dist/onboarding/demos/features.d.ts +9 -1
- package/dist/onboarding/demos/features.js +107 -2
- package/dist/onboarding/demos/how-it-works.d.ts +5 -1
- package/dist/onboarding/demos/how-it-works.js +120 -2
- package/dist/onboarding/headless/labels.d.ts +17 -0
- package/dist/onboarding/headless/labels.js +17 -0
- package/dist/onboarding/index.js +1 -1
- package/dist/onboarding/marks.d.ts +1 -2
- package/dist/onboarding/marks.js +4 -12
- package/dist/onboarding/steps/ReadyStep.js +1 -1
- package/dist/onboarding/steps/connect/ProviderPanel.js +1 -1
- package/dist/onboarding/tutorials.d.ts +3 -1
- package/dist/onboarding/tutorials.js +2 -1
- package/dist/palette/app-sources.js +1 -1
- package/dist/session/ArtifactsPanel.js +1 -1
- package/dist/session/PanelAttention.d.ts +14 -6
- package/dist/session/PanelAttention.js +35 -24
- package/dist/session/PlanTracker.d.ts +54 -0
- package/dist/session/PlanTracker.js +412 -0
- package/dist/session/ProjectHome.d.ts +15 -2
- package/dist/session/ProjectHome.js +158 -85
- package/dist/session/RemindersPanel.d.ts +25 -0
- package/dist/session/RemindersPanel.js +526 -0
- package/dist/session/SecretsPanel.d.ts +19 -0
- package/dist/session/SecretsPanel.js +241 -0
- package/dist/session/SessionProvider.d.ts +26 -5
- package/dist/session/SessionProvider.js +51 -6
- package/dist/session/StepStatusIcon.d.ts +24 -0
- package/dist/session/StepStatusIcon.js +50 -0
- package/dist/session/TodoList.d.ts +4 -3
- package/dist/session/TodoList.js +6 -5
- package/dist/session/headless/fixture-host.d.ts +32 -22
- package/dist/session/headless/fixture-host.js +86 -51
- package/dist/session/headless/fixture-plans.d.ts +57 -0
- package/dist/session/headless/fixture-plans.js +141 -0
- package/dist/session/headless/fixture-schedules.d.ts +49 -0
- package/dist/session/headless/fixture-schedules.js +133 -0
- package/dist/session/headless/home-layout.d.ts +10 -2
- package/dist/session/headless/home-layout.js +7 -2
- package/dist/session/headless/host.d.ts +85 -13
- package/dist/session/headless/index.d.ts +5 -3
- package/dist/session/headless/index.js +6 -4
- package/dist/session/headless/labels.d.ts +95 -12
- package/dist/session/headless/labels.js +67 -18
- package/dist/session/headless/plans.d.ts +53 -0
- package/dist/session/headless/plans.js +78 -0
- package/dist/session/headless/reminder-labels.d.ts +63 -0
- package/dist/session/headless/reminder-labels.js +84 -0
- package/dist/session/headless/schedules.d.ts +93 -0
- package/dist/session/headless/schedules.js +190 -0
- package/dist/session/headless/secrets.d.ts +28 -0
- package/dist/session/headless/secrets.js +48 -0
- package/dist/session/index.d.ts +7 -5
- package/dist/session/index.js +6 -4
- package/dist/session/testing/contract.d.ts +18 -5
- package/dist/session/testing/contract.js +351 -43
- package/dist/session/testing/index.d.ts +4 -2
- package/dist/session/testing/index.js +4 -2
- package/dist/settings/headless/catalog.js +17 -1
- package/dist/settings/headless/index.d.ts +2 -2
- package/dist/settings/headless/index.js +3 -3
- package/dist/settings/headless/labels.d.ts +0 -2
- package/dist/settings/headless/labels.js +0 -2
- package/dist/settings/headless/layout.js +7 -1
- package/dist/settings/headless/providers.d.ts +17 -1
- package/dist/settings/headless/providers.js +19 -1
- package/dist/settings/headless/search.d.ts +1 -1
- package/dist/settings/rows.d.ts +1 -1
- package/dist/settings/rows.js +2 -2
- package/dist/settings/sections/appearance/AppearanceSection.js +2 -2
- package/dist/settings/sections/claude-import/ClaudeImportDialog.js +1 -1
- package/dist/settings/sections/editor/EditorSection.js +1 -1
- package/dist/settings/sections/environments/EnvironmentsSection.js +1 -1
- package/dist/settings/sections/extensions/ChangeOriginDialog.js +1 -1
- package/dist/settings/sections/extensions/CreateExtensionDialog.js +1 -1
- package/dist/settings/sections/extensions/ExtensionsSection.js +1 -1
- package/dist/settings/sections/host-catalog/HostCatalogSection.js +1 -1
- package/dist/settings/sections/instructions/InstructionsSection.js +1 -1
- package/dist/settings/sections/mcp/McpSection.js +1 -1
- package/dist/settings/sections/mcp/McpServerRow.js +1 -1
- package/dist/settings/sections/models/ModelRows.js +1 -1
- package/dist/settings/sections/providers/ProvidersSection.js +209 -201
- package/dist/settings/sections/providers/ServerProvidersSection.js +1 -1
- package/dist/settings/sections/shared/catalog.js +1 -1
- package/dist/settings/sections/skills/SkillsSection.js +1 -1
- package/dist/styles.css +59 -1
- package/dist/terminal/HostTerminalSurface.js +2 -2
- package/dist/workspace/PanelContentView.d.ts +22 -4
- package/dist/workspace/PanelContentView.js +112 -16
- package/dist/workspace/PanelGlyph.d.ts +21 -0
- package/dist/workspace/PanelGlyph.js +33 -0
- package/dist/workspace/PanelHome.js +5 -3
- package/dist/workspace/PanelStrip.js +11 -4
- package/dist/workspace/PanelToolbar.d.ts +32 -0
- package/dist/workspace/PanelToolbar.js +194 -0
- package/dist/workspace/WorkspaceProvider.d.ts +3 -1
- package/dist/workspace/WorkspaceProvider.js +6 -2
- package/dist/workspace/extension-tabs.js +5 -2
- package/dist/workspace/headless/host.d.ts +4 -0
- package/dist/workspace/headless/index.d.ts +3 -1
- package/dist/workspace/headless/index.js +4 -2
- package/dist/workspace/headless/labels.d.ts +10 -0
- package/dist/workspace/headless/labels.js +11 -1
- package/dist/workspace/headless/pages.d.ts +15 -0
- package/dist/workspace/headless/pages.js +49 -0
- package/dist/workspace/headless/tab-mark.d.ts +14 -0
- package/dist/workspace/headless/tab-mark.js +27 -0
- package/dist/workspace/headless/view.d.ts +7 -1
- package/dist/workspace/index.d.ts +3 -2
- package/dist/workspace/index.js +3 -2
- package/dist/workspace/testing/index.js +6 -0
- package/dist/workspace/workspace-key-commands.js +3 -3
- package/package.json +2 -2
- package/src/styles/motion.css +13 -0
- package/src/styles/onboarding.css +0 -1
- package/src/styles/primitives.css +10 -0
- package/src/styles/workspace.css +17 -0
- package/dist/session/TodosPanel.d.ts +0 -19
- package/dist/session/TodosPanel.js +0 -251
- package/dist/session/headless/todos.d.ts +0 -22
- package/dist/session/headless/todos.js +0 -38
|
@@ -1,6 +1,24 @@
|
|
|
1
|
+
import { SettingsProvidersHost } from "../../settings/headless/providers.js";
|
|
2
|
+
import { SettingsMcpHost } from "../../settings/headless/mcp.js";
|
|
3
|
+
import { AuthSettingsTarget } from "../headless/transcript/auth-failure.js";
|
|
1
4
|
import { ReactNode } from "react";
|
|
2
5
|
import { ModelNamer } from "zidane/chat/pure";
|
|
3
6
|
//#region src/chat/transcript/actions.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* The accounts of the host that holds a session's credentials, for the card
|
|
9
|
+
* a run stopped by a failed sign-in shows (`AuthFailureCard`). Each member is
|
|
10
|
+
* optional, and the card's button that needs it hides without it.
|
|
11
|
+
*/
|
|
12
|
+
interface TranscriptAccounts {
|
|
13
|
+
/** The session's folder, whose extension providers count (`''`: built-ins only). */
|
|
14
|
+
cwd: string;
|
|
15
|
+
/** Its providers: their labels and accounts, Sign in again (`signIn`), Use another account (`setPreferred`). */
|
|
16
|
+
providers?: SettingsProvidersHost;
|
|
17
|
+
/** Its MCP servers: Sign in again on a server whose sign-in ended the run. */
|
|
18
|
+
mcp?: Pick<SettingsMcpHost, 'signIn'>;
|
|
19
|
+
/** Opens Settings on that provider's account (or that MCP server). */
|
|
20
|
+
openSettings?(target: AuthSettingsTarget): void;
|
|
21
|
+
}
|
|
4
22
|
/** What a transcript row can ask of the app that hosts it. Every action but `sessionId` is optional, and its control is hidden when the app leaves it out. */
|
|
5
23
|
interface TranscriptActions {
|
|
6
24
|
/** The session on screen; actions that address a call need it. */
|
|
@@ -38,6 +56,11 @@ interface TranscriptActions {
|
|
|
38
56
|
* no Run in a terminal.
|
|
39
57
|
*/
|
|
40
58
|
runInTerminal?(input: string): void;
|
|
59
|
+
/**
|
|
60
|
+
* The accounts a run that stopped on a failed sign-in can be fixed with,
|
|
61
|
+
* in place. Without it, the card offers only Retry and Copy details.
|
|
62
|
+
*/
|
|
63
|
+
accounts?: TranscriptAccounts;
|
|
41
64
|
}
|
|
42
65
|
/** Props for {@link TranscriptActionsProvider}. */
|
|
43
66
|
interface TranscriptActionsProviderProps {
|
|
@@ -57,4 +80,4 @@ declare function useTranscriptActions(): TranscriptActions;
|
|
|
57
80
|
/** How the transcript names a model: the app's `modelName`, else from the id. */
|
|
58
81
|
declare function useModelName(): ModelNamer;
|
|
59
82
|
//#endregion
|
|
60
|
-
export { TranscriptActions, TranscriptActionsProvider, TranscriptActionsProviderProps, useModelName, useTranscriptActions };
|
|
83
|
+
export { TranscriptAccounts, TranscriptActions, TranscriptActionsProvider, TranscriptActionsProviderProps, useModelName, useTranscriptActions };
|
|
@@ -2,7 +2,7 @@ import { RowContext, SlotEntry, TranscriptRow, TranscriptRowProps, TranscriptRow
|
|
|
2
2
|
import { TranscriptRenderersProvider, TranscriptRenderersProviderProps } from "./renderer-slots.js";
|
|
3
3
|
import { AttachmentLabelParts, CodeBlockSlotProps, DEFAULT_TRANSCRIPT_RENDERERS, DefaultInlineText, DefaultInlineTextProps, DefaultMarkdown, DefaultMarkdownProps, DefaultPrompt, DefaultPromptProps, DefaultSessionTitle, DefaultSessionTitleProps, InlineTextSlotProps, MarkdownSlotProps, PromptSlotProps, SessionTitleSlotProps, TextPreviewSlotProps, ToolBodySlotProps, TranscriptRenderers, defaultAttachmentLabel, useTranscriptRenderers } from "./renderers.js";
|
|
4
4
|
import { ToolMediaItem, parseToolMedia } from "../headless/transcript/tool-media.js";
|
|
5
|
-
import { TranscriptActions, TranscriptActionsProvider, TranscriptActionsProviderProps, useModelName, useTranscriptActions } from "./actions.js";
|
|
5
|
+
import { TranscriptAccounts, TranscriptActions, TranscriptActionsProvider, TranscriptActionsProviderProps, useModelName, useTranscriptActions } from "./actions.js";
|
|
6
6
|
import { DiffLines, DiffLinesProps } from "./DiffLines.js";
|
|
7
7
|
import { EditDiffBlock, EditDiffBlockProps } from "./EditDiffBlock.js";
|
|
8
8
|
import { ExchangeFoldRow, ExchangeFoldRowProps, FoldHeader, FoldHeaderProps } from "./fold.js";
|
|
@@ -14,6 +14,7 @@ import { Markdown, MarkdownDiagrams, MarkdownDiagramsProps, MarkdownLinkProps, M
|
|
|
14
14
|
import { MermaidDiagram, MermaidDiagramProps } from "./MermaidDiagram.js";
|
|
15
15
|
import { MessageGroupRow, MessageGroupRowProps } from "./messages.js";
|
|
16
16
|
import { COMMAND_DETAIL_LINE, CommandDetailRow, CommandDetailRowProps, CommandNoteRow, CommandNoteRowProps, ErrorRow, ErrorRowProps, FailureRow, FailureRowProps, InfoRow, InfoRowProps, NoticeRow, NoticeRowProps, SessionEventRow, SessionEventRowProps, SpawnEndRow, SpawnEndRowProps, SpawnStartRow, SpawnStartRowProps } from "./notices.js";
|
|
17
|
+
import { AuthFailureCard, AuthFailureCardProps } from "./AuthFailureCard.js";
|
|
17
18
|
import { AttachmentIcon, AttachmentIconProps, UserPromptAttachments, UserPromptAttachmentsProps, UserPromptRow, UserPromptRowProps } from "./prompt.js";
|
|
18
19
|
import { PromptLines, PromptLinesProps, copyPromptLines } from "./prompt-lines.js";
|
|
19
20
|
import { TextRow, TextRowProps, ThinkingBatchRow, ThinkingBatchRowProps, ThinkingRow, ThinkingRowProps } from "./prose.js";
|
|
@@ -66,4 +67,4 @@ import { TranscriptRows, TranscriptRowsInput, useSelectStops, useTranscriptRows
|
|
|
66
67
|
import { UserBashRow, UserBashRowProps } from "./user-bash.js";
|
|
67
68
|
import { RowPlace, ScrollPosition, StickToBottomOptions, useStickToBottom } from "./useStickToBottom.js";
|
|
68
69
|
import { useTranscriptSelectionCopy } from "./useTranscriptSelectionCopy.js";
|
|
69
|
-
export { AUTO_FILL_PAGES, AnsiSpans, type AnsiSpansProps, AnsiText, type AnsiTextProps, AttachmentIcon, AttachmentIconProps, AttachmentLabelParts, BADGE_GLYPH, BadgeEffectContext, BadgeMenuComposer, BadgeMenuProvider, BadgeMenuProviderProps, BadgeMenuSystem, CHIP_CARD_WIDTH, CODE_PANEL, COMMAND_DETAIL_LINE, CardMarkdown, CardMarkdownProps, Caret, CaretProps, ChipCard, ChipCardProps, ChipHover, ChipHoverProps, ChipOpener, CodeBlockSlotProps, CodemodeScript, type CodemodeScriptProps, CommandCard, CommandCardProps, CommandDetailRow, CommandDetailRowProps, CommandNoteRow, CommandNoteRowProps, CommandScope, CommandScopeContext, CommitCard, CommitCardProps, CompactSummaryRow, CompactSummaryRowProps, ComposerSearch, CvRow, CvRowProps, DEFAULT_TRANSCRIPT_RENDERERS, DefaultInlineText, DefaultInlineTextProps, DefaultMarkdown, DefaultMarkdownProps, DefaultPrompt, DefaultPromptProps, DefaultSessionTitle, DefaultSessionTitleProps, DiffLines, DiffLinesProps, Dot, DotProps, EditDiffBlock, EditDiffBlockProps, ErrorRow, ErrorRowProps, ExchangeFoldRow, ExchangeFoldRowProps, FILL_MIN_PROMPTS, FailedMark, FailedMarkProps, FailureRow, FailureRowProps, FileBadgeIcon, FileBadgeIconProps, FoldHeader, FoldHeaderProps, GUTTER_STEP_PX, INLINE_CODE_CLASS, ImageGenerationBlock, ImageGenerationBlockProps, InfoRow, InfoRowProps, InlineChipText, InlineChipTextProps, InlineCode, InlineCodeProps, InlineTextSlotProps, InteractionTool, InteractionToolBody, InteractionToolBodyProps, LazyRow, LazyRowProps, LineState, LinkBadge, LinkBadgeProps, LinkIcon, LinkIconProps, LiveOutput, type LiveOutputProps, LoadEarlierRow, LoadEarlierRowProps, LoadFullOutputButton, LoadFullOutputButtonProps, MAX_MATCHES, Markdown, MarkdownContext, MarkdownContextValue, MarkdownDiagrams, MarkdownDiagramsProps, MarkdownLinkProps, MarkdownProps, MarkdownSlotProps, MermaidDiagram, type MermaidDiagramProps, MessageGroupRow, MessageGroupRowProps, ModelVerdict, ModelVerdictProps, NestedToolCalls, NestedToolCallsProps, NoticeRow, NoticeRowProps, OpenBadgeMenu, OpenSessionContext, ParsedRef, ParsedReferenceUrl, PromptEcho, PromptEchoProps, PromptLines, PromptLinesProps, PromptSlotProps, ProseMarkdown, ProseMarkdownProps, ReadFileBlock, ReadFileBlockProps, RefChip, RefChipProps, RefMatch, ReferenceChip, ReferenceChipProps, ReferenceText, ReferenceTextProps, RowContext, RowFrame, RowFrameProps, RowIconsContext, RowPlace, RunReceiptInline, RunReceiptInlineProps, RunSummaryRow, RunSummaryRowProps, RunnableCodeBlock, type RunnableCodeBlockProps, ScrollPosition, SearchHighlightStyle, SelectCursor, SelectCursorProps, SelectTurnCommands, SelectTurnExit, SelectTurnHintKeys, SelectTurnHintKeysProps, SelectTurnKeysOptions, SelectTurnProvider, SelectTurnProviderProps, SelectTurnState, SelectTurnValue, SessionCard, SessionCardProps, SessionEventRow, SessionEventRowProps, SessionTitleSlotProps, ShellBlockProvider, type ShellBlockProviderProps, type ShellBlockScope, SkillCard, SkillCardProps, SlotEntry, SpawnEndRow, SpawnEndRowProps, SpawnStartRow, SpawnStartRowProps, StickToBottomOptions, SubagentBlock, SubagentBlockProps, TextPreviewSlotProps, TextRow, TextRowProps, ThinkingBatchRow, ThinkingBatchRowProps, ThinkingRow, ThinkingRowProps, ToolBatchRow, ToolBatchRowProps, ToolBodySlotProps, ToolDetails, ToolDetailsProps, ToolGlyph, ToolGlyphProps, ToolInput, ToolInputProps, ToolMedia, type ToolMediaItem, ToolMediaProps, ToolRow, ToolRowProps, ToolTiming, ToolTimingProps, TranscriptActions, TranscriptActionsProvider, TranscriptActionsProviderProps, TranscriptFind, TranscriptFindKeyOptions, TranscriptFindOptions, TranscriptFindTarget, TranscriptRenderers, TranscriptRenderersProvider, type TranscriptRenderersProviderProps, TranscriptRow, TranscriptRowProps, TranscriptRowSlot, TranscriptRowSlotProps, TranscriptRows, TranscriptRowsInput, TranscriptScrollInputs, TranscriptSearch, TranscriptSearchOptions, TranscriptSearchProps, TranscriptSearchState, TranscriptSettling, TranscriptTurnMenu, TurnCommands, TurnCommandsOptions, TurnMenuActions, TurnMenuTarget, UserBashRow, UserBashRowProps, UserPromptAttachments, UserPromptAttachmentsProps, UserPromptRow, UserPromptRowProps, WorkerDetails, WorkerDetailsProps, classifyInlineRef, copyPromptLines, createTurnCommands, defaultAttachmentLabel, drawsImageGeneration, fileBadgeName, fileBadgeSpec, findRefs, hasInteractionBody, holdForceMountRows, imageRequestsOf, isHiddenRow, lineStateOf, linkGlyph, mountRowNow, numberRef, parseRefUrl, parseReferenceUrl, parseToolMedia, refHref, referenceUrl, remarkReferences, remarkRefs, savedPaths, siteIconValue, useBackgroundMount, useBadgeMenu, useChipResolution, useCommand, useCommitInfo, useComposerSearch, useFillViewportScrollback, useForceMountRows, useFullOutput, useModelName, useReferenceMatches, useReferenceProviders, useReferenceView, useReferencedSession, useResolveChipNow, useRowIcons, useSelectStops, useSelectTurn, useSelectTurnKeys, useSettledReveal, useShellBlockScope, useSiteIcon, useSkill, useStickToBottom, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause };
|
|
70
|
+
export { AUTO_FILL_PAGES, AnsiSpans, type AnsiSpansProps, AnsiText, type AnsiTextProps, AttachmentIcon, AttachmentIconProps, AttachmentLabelParts, AuthFailureCard, AuthFailureCardProps, BADGE_GLYPH, BadgeEffectContext, BadgeMenuComposer, BadgeMenuProvider, BadgeMenuProviderProps, BadgeMenuSystem, CHIP_CARD_WIDTH, CODE_PANEL, COMMAND_DETAIL_LINE, CardMarkdown, CardMarkdownProps, Caret, CaretProps, ChipCard, ChipCardProps, ChipHover, ChipHoverProps, ChipOpener, CodeBlockSlotProps, CodemodeScript, type CodemodeScriptProps, CommandCard, CommandCardProps, CommandDetailRow, CommandDetailRowProps, CommandNoteRow, CommandNoteRowProps, CommandScope, CommandScopeContext, CommitCard, CommitCardProps, CompactSummaryRow, CompactSummaryRowProps, ComposerSearch, CvRow, CvRowProps, DEFAULT_TRANSCRIPT_RENDERERS, DefaultInlineText, DefaultInlineTextProps, DefaultMarkdown, DefaultMarkdownProps, DefaultPrompt, DefaultPromptProps, DefaultSessionTitle, DefaultSessionTitleProps, DiffLines, DiffLinesProps, Dot, DotProps, EditDiffBlock, EditDiffBlockProps, ErrorRow, ErrorRowProps, ExchangeFoldRow, ExchangeFoldRowProps, FILL_MIN_PROMPTS, FailedMark, FailedMarkProps, FailureRow, FailureRowProps, FileBadgeIcon, FileBadgeIconProps, FoldHeader, FoldHeaderProps, GUTTER_STEP_PX, INLINE_CODE_CLASS, ImageGenerationBlock, ImageGenerationBlockProps, InfoRow, InfoRowProps, InlineChipText, InlineChipTextProps, InlineCode, InlineCodeProps, InlineTextSlotProps, InteractionTool, InteractionToolBody, InteractionToolBodyProps, LazyRow, LazyRowProps, LineState, LinkBadge, LinkBadgeProps, LinkIcon, LinkIconProps, LiveOutput, type LiveOutputProps, LoadEarlierRow, LoadEarlierRowProps, LoadFullOutputButton, LoadFullOutputButtonProps, MAX_MATCHES, Markdown, MarkdownContext, MarkdownContextValue, MarkdownDiagrams, MarkdownDiagramsProps, MarkdownLinkProps, MarkdownProps, MarkdownSlotProps, MermaidDiagram, type MermaidDiagramProps, MessageGroupRow, MessageGroupRowProps, ModelVerdict, ModelVerdictProps, NestedToolCalls, NestedToolCallsProps, NoticeRow, NoticeRowProps, OpenBadgeMenu, OpenSessionContext, ParsedRef, ParsedReferenceUrl, PromptEcho, PromptEchoProps, PromptLines, PromptLinesProps, PromptSlotProps, ProseMarkdown, ProseMarkdownProps, ReadFileBlock, ReadFileBlockProps, RefChip, RefChipProps, RefMatch, ReferenceChip, ReferenceChipProps, ReferenceText, ReferenceTextProps, RowContext, RowFrame, RowFrameProps, RowIconsContext, RowPlace, RunReceiptInline, RunReceiptInlineProps, RunSummaryRow, RunSummaryRowProps, RunnableCodeBlock, type RunnableCodeBlockProps, ScrollPosition, SearchHighlightStyle, SelectCursor, SelectCursorProps, SelectTurnCommands, SelectTurnExit, SelectTurnHintKeys, SelectTurnHintKeysProps, SelectTurnKeysOptions, SelectTurnProvider, SelectTurnProviderProps, SelectTurnState, SelectTurnValue, SessionCard, SessionCardProps, SessionEventRow, SessionEventRowProps, SessionTitleSlotProps, ShellBlockProvider, type ShellBlockProviderProps, type ShellBlockScope, SkillCard, SkillCardProps, SlotEntry, SpawnEndRow, SpawnEndRowProps, SpawnStartRow, SpawnStartRowProps, StickToBottomOptions, SubagentBlock, SubagentBlockProps, TextPreviewSlotProps, TextRow, TextRowProps, ThinkingBatchRow, ThinkingBatchRowProps, ThinkingRow, ThinkingRowProps, ToolBatchRow, ToolBatchRowProps, ToolBodySlotProps, ToolDetails, ToolDetailsProps, ToolGlyph, ToolGlyphProps, ToolInput, ToolInputProps, ToolMedia, type ToolMediaItem, ToolMediaProps, ToolRow, ToolRowProps, ToolTiming, ToolTimingProps, TranscriptAccounts, TranscriptActions, TranscriptActionsProvider, TranscriptActionsProviderProps, TranscriptFind, TranscriptFindKeyOptions, TranscriptFindOptions, TranscriptFindTarget, TranscriptRenderers, TranscriptRenderersProvider, type TranscriptRenderersProviderProps, TranscriptRow, TranscriptRowProps, TranscriptRowSlot, TranscriptRowSlotProps, TranscriptRows, TranscriptRowsInput, TranscriptScrollInputs, TranscriptSearch, TranscriptSearchOptions, TranscriptSearchProps, TranscriptSearchState, TranscriptSettling, TranscriptTurnMenu, TurnCommands, TurnCommandsOptions, TurnMenuActions, TurnMenuTarget, UserBashRow, UserBashRowProps, UserPromptAttachments, UserPromptAttachmentsProps, UserPromptRow, UserPromptRowProps, WorkerDetails, WorkerDetailsProps, classifyInlineRef, copyPromptLines, createTurnCommands, defaultAttachmentLabel, drawsImageGeneration, fileBadgeName, fileBadgeSpec, findRefs, hasInteractionBody, holdForceMountRows, imageRequestsOf, isHiddenRow, lineStateOf, linkGlyph, mountRowNow, numberRef, parseRefUrl, parseReferenceUrl, parseToolMedia, refHref, referenceUrl, remarkReferences, remarkRefs, savedPaths, siteIconValue, useBackgroundMount, useBadgeMenu, useChipResolution, useCommand, useCommitInfo, useComposerSearch, useFillViewportScrollback, useForceMountRows, useFullOutput, useModelName, useReferenceMatches, useReferenceProviders, useReferenceView, useReferencedSession, useResolveChipNow, useRowIcons, useSelectStops, useSelectTurn, useSelectTurnKeys, useSettledReveal, useShellBlockScope, useSiteIcon, useSkill, useStickToBottom, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause };
|
|
@@ -38,6 +38,7 @@ import { ImageGenerationBlock, drawsImageGeneration, imageRequestsOf, savedPaths
|
|
|
38
38
|
import { ModelVerdict, NestedToolCalls, ToolRow } from "./tool-row.js";
|
|
39
39
|
import { ExchangeFoldRow, FoldHeader } from "./fold.js";
|
|
40
40
|
import { MessageGroupRow } from "./messages.js";
|
|
41
|
+
import { AuthFailureCard } from "./AuthFailureCard.js";
|
|
41
42
|
import { COMMAND_DETAIL_LINE, CommandDetailRow, CommandNoteRow, ErrorRow, FailureRow, InfoRow, NoticeRow, SessionEventRow, SpawnEndRow, SpawnStartRow } from "./notices.js";
|
|
42
43
|
import { AttachmentIcon, UserPromptAttachments, UserPromptRow } from "./prompt.js";
|
|
43
44
|
import { CompactSummaryRow, RunReceiptInline, RunSummaryRow } from "./run-rows.js";
|
|
@@ -66,4 +67,4 @@ import { useTranscriptFindKey } from "./useTranscriptFindKey.js";
|
|
|
66
67
|
import { useTranscriptFind } from "./useTranscriptFind.js";
|
|
67
68
|
import { useTurnMenu } from "./TurnMenu.js";
|
|
68
69
|
import { createTurnCommands, useTurnCommands } from "./turn-commands.js";
|
|
69
|
-
export { AUTO_FILL_PAGES, AnsiSpans, AnsiText, AttachmentIcon, BADGE_GLYPH, BadgeMenuProvider, CHIP_CARD_WIDTH, CODE_PANEL, COMMAND_DETAIL_LINE, CardMarkdown, Caret, ChipCard, ChipHover, CodemodeScript, CommandCard, CommandDetailRow, CommandNoteRow, CommandScopeContext, CommitCard, CompactSummaryRow, CvRow, DEFAULT_TRANSCRIPT_RENDERERS, DefaultInlineText, DefaultMarkdown, DefaultPrompt, DefaultSessionTitle, DiffLines, Dot, EditDiffBlock, ErrorRow, ExchangeFoldRow, FILL_MIN_PROMPTS, FailedMark, FailureRow, FileBadgeIcon, FoldHeader, GUTTER_STEP_PX, INLINE_CODE_CLASS, ImageGenerationBlock, InfoRow, InlineChipText, InlineCode, InteractionToolBody, LazyRow, LinkBadge, LinkIcon, LiveOutput, LoadEarlierRow, LoadFullOutputButton, MAX_MATCHES, Markdown, MarkdownContext, MarkdownDiagrams, MermaidDiagram, MessageGroupRow, ModelVerdict, NestedToolCalls, NoticeRow, OpenSessionContext, PromptEcho, PromptLines, ProseMarkdown, ReadFileBlock, RefChip, ReferenceChip, ReferenceText, RowFrame, RowIconsContext, RunReceiptInline, RunSummaryRow, RunnableCodeBlock, SearchHighlightStyle, SelectCursor, SelectTurnExit, SelectTurnHintKeys, SelectTurnProvider, SessionCard, SessionEventRow, ShellBlockProvider, SkillCard, SpawnEndRow, SpawnStartRow, SubagentBlock, TextRow, ThinkingBatchRow, ThinkingRow, ToolBatchRow, ToolDetails, ToolGlyph, ToolInput, ToolMedia, ToolRow, ToolTiming, TranscriptActionsProvider, TranscriptRenderersProvider, TranscriptRow, TranscriptRowSlot, TranscriptSearch, TranscriptSettling, UserBashRow, UserPromptAttachments, UserPromptRow, WorkerDetails, classifyInlineRef, copyPromptLines, createTurnCommands, defaultAttachmentLabel, drawsImageGeneration, fileBadgeName, fileBadgeSpec, findRefs, hasInteractionBody, holdForceMountRows, imageRequestsOf, isHiddenRow, lineStateOf, linkGlyph, mountRowNow, numberRef, parseRefUrl, parseReferenceUrl, parseToolMedia, refHref, referenceUrl, remarkReferences, remarkRefs, savedPaths, siteIconValue, useBackgroundMount, useBadgeMenu, useChipResolution, useCommand, useCommitInfo, useComposerSearch, useFillViewportScrollback, useForceMountRows, useFullOutput, useModelName, useReferenceMatches, useReferenceProviders, useReferenceView, useReferencedSession, useResolveChipNow, useRowIcons, useSelectStops, useSelectTurn, useSelectTurnKeys, useSettledReveal, useShellBlockScope, useSiteIcon, useSkill, useStickToBottom, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause };
|
|
70
|
+
export { AUTO_FILL_PAGES, AnsiSpans, AnsiText, AttachmentIcon, AuthFailureCard, BADGE_GLYPH, BadgeMenuProvider, CHIP_CARD_WIDTH, CODE_PANEL, COMMAND_DETAIL_LINE, CardMarkdown, Caret, ChipCard, ChipHover, CodemodeScript, CommandCard, CommandDetailRow, CommandNoteRow, CommandScopeContext, CommitCard, CompactSummaryRow, CvRow, DEFAULT_TRANSCRIPT_RENDERERS, DefaultInlineText, DefaultMarkdown, DefaultPrompt, DefaultSessionTitle, DiffLines, Dot, EditDiffBlock, ErrorRow, ExchangeFoldRow, FILL_MIN_PROMPTS, FailedMark, FailureRow, FileBadgeIcon, FoldHeader, GUTTER_STEP_PX, INLINE_CODE_CLASS, ImageGenerationBlock, InfoRow, InlineChipText, InlineCode, InteractionToolBody, LazyRow, LinkBadge, LinkIcon, LiveOutput, LoadEarlierRow, LoadFullOutputButton, MAX_MATCHES, Markdown, MarkdownContext, MarkdownDiagrams, MermaidDiagram, MessageGroupRow, ModelVerdict, NestedToolCalls, NoticeRow, OpenSessionContext, PromptEcho, PromptLines, ProseMarkdown, ReadFileBlock, RefChip, ReferenceChip, ReferenceText, RowFrame, RowIconsContext, RunReceiptInline, RunSummaryRow, RunnableCodeBlock, SearchHighlightStyle, SelectCursor, SelectTurnExit, SelectTurnHintKeys, SelectTurnProvider, SessionCard, SessionEventRow, ShellBlockProvider, SkillCard, SpawnEndRow, SpawnStartRow, SubagentBlock, TextRow, ThinkingBatchRow, ThinkingRow, ToolBatchRow, ToolDetails, ToolGlyph, ToolInput, ToolMedia, ToolRow, ToolTiming, TranscriptActionsProvider, TranscriptRenderersProvider, TranscriptRow, TranscriptRowSlot, TranscriptSearch, TranscriptSettling, UserBashRow, UserPromptAttachments, UserPromptRow, WorkerDetails, classifyInlineRef, copyPromptLines, createTurnCommands, defaultAttachmentLabel, drawsImageGeneration, fileBadgeName, fileBadgeSpec, findRefs, hasInteractionBody, holdForceMountRows, imageRequestsOf, isHiddenRow, lineStateOf, linkGlyph, mountRowNow, numberRef, parseRefUrl, parseReferenceUrl, parseToolMedia, refHref, referenceUrl, remarkReferences, remarkRefs, savedPaths, siteIconValue, useBackgroundMount, useBadgeMenu, useChipResolution, useCommand, useCommitInfo, useComposerSearch, useFillViewportScrollback, useForceMountRows, useFullOutput, useModelName, useReferenceMatches, useReferenceProviders, useReferenceView, useReferencedSession, useResolveChipNow, useRowIcons, useSelectStops, useSelectTurn, useSelectTurnKeys, useSettledReveal, useShellBlockScope, useSiteIcon, useSkill, useStickToBottom, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause };
|
|
@@ -84,7 +84,8 @@ interface FailureRowProps {
|
|
|
84
84
|
* word a small button that picks the work back up: Continue when the run
|
|
85
85
|
* had done something, Retry (the same prompt) when it had not. Both hand
|
|
86
86
|
* their prompt to `onResume` (the desktop app: the composer's send); without
|
|
87
|
-
* it there is no button.
|
|
87
|
+
* it there is no button. A run stopped by a failed sign-in (`detail.auth`)
|
|
88
|
+
* shows the sign-in's card instead (`AuthFailureCard`).
|
|
88
89
|
*/
|
|
89
90
|
declare const FailureRow: import("react").MemoExoticComponent<({ text, detail, failure, resumable, onResume, className, style }: FailureRowProps) => import("react").JSX.Element>;
|
|
90
91
|
/** Props for {@link SessionEventRow}. */
|
|
@@ -3,6 +3,7 @@ import { useChatLabels } from "../useChatLabels.js";
|
|
|
3
3
|
import { Caret } from "./frame.js";
|
|
4
4
|
import { useTranscriptRenderers } from "./renderers.js";
|
|
5
5
|
import { failureTooltip } from "../headless/transcript/run-failures.js";
|
|
6
|
+
import { AuthFailureCard } from "./AuthFailureCard.js";
|
|
6
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
8
|
import { memo, useId, useState } from "react";
|
|
8
9
|
import { CONTINUE_PROMPT, SESSION_EVENT_STATUS_STYLE, describeSpawnEnd, sessionDirLabel, sessionEventExcerpt, sessionEventMeta, shortSessionId, spawnStartParts } from "zidane/chat/pure";
|
|
@@ -100,10 +101,21 @@ const ErrorRow = memo(({ text, className, style }) => {
|
|
|
100
101
|
* word a small button that picks the work back up: Continue when the run
|
|
101
102
|
* had done something, Retry (the same prompt) when it had not. Both hand
|
|
102
103
|
* their prompt to `onResume` (the desktop app: the composer's send); without
|
|
103
|
-
* it there is no button.
|
|
104
|
+
* it there is no button. A run stopped by a failed sign-in (`detail.auth`)
|
|
105
|
+
* shows the sign-in's card instead (`AuthFailureCard`).
|
|
104
106
|
*/
|
|
105
107
|
const FailureRow = memo(({ text, detail, failure, resumable, onResume, className, style }) => {
|
|
106
108
|
const labels = useChatLabels();
|
|
109
|
+
if (detail?.auth && failure.cause === "error") return /* @__PURE__ */ jsx(AuthFailureCard, {
|
|
110
|
+
auth: detail.auth,
|
|
111
|
+
text,
|
|
112
|
+
detail,
|
|
113
|
+
failure,
|
|
114
|
+
resumable,
|
|
115
|
+
...onResume ? { onResume } : {},
|
|
116
|
+
className,
|
|
117
|
+
style
|
|
118
|
+
});
|
|
107
119
|
const retry = failure.resume === "retry" && failure.prompt;
|
|
108
120
|
const byUser = failure.cause === "aborted";
|
|
109
121
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ToolRowModel } from "../headless/transcript/rows.js";
|
|
2
2
|
import "../headless/transcript/index.js";
|
|
3
|
-
import {
|
|
3
|
+
import { Ww as ScriptProgress } from "../../dist/index-BI6RZc60.js";
|
|
4
4
|
//#region src/chat/transcript/script-input.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* A tool row's progress and how it ended, as `ToolInput` takes them for a Codemode script.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { iconButtonClass } from "../../components/IconButton.js";
|
|
2
2
|
import { CopyButton } from "../../components/CopyButton.js";
|
|
3
3
|
import { constant, useReadable } from "../headless/store.js";
|
|
4
|
+
import "../headless/block-runs.js";
|
|
4
5
|
import { useOptionalChatHost } from "../ChatProvider.js";
|
|
5
6
|
import { useChatLabels } from "../useChatLabels.js";
|
|
6
7
|
import { relativeTime } from "../headless/session-list.js";
|
|
@@ -9,7 +10,6 @@ import { useTranscriptActions } from "./actions.js";
|
|
|
9
10
|
import { AnsiText } from "./AnsiText.js";
|
|
10
11
|
import { LiveOutput } from "./LiveOutput.js";
|
|
11
12
|
import { ToolTiming } from "./tool-parts.js";
|
|
12
|
-
import "../headless/block-runs.js";
|
|
13
13
|
import { pushComposerAttachment, textAttachment } from "../composer/composer-bus.js";
|
|
14
14
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
15
15
|
import { Suspense, lazy, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
@@ -20,6 +20,13 @@ interface HowItWorksProps {
|
|
|
20
20
|
illustration: ReactNode | ((step: number) => ReactNode);
|
|
21
21
|
/** Buttons or links that act on what the tutorial explains, such as "Build an extension". */
|
|
22
22
|
actions?: ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* The block's surface: `tray` sits into the page (a settings page), `raised`
|
|
25
|
+
* lifts it off a bare panel so it stands out there.
|
|
26
|
+
*
|
|
27
|
+
* @default 'tray'
|
|
28
|
+
*/
|
|
29
|
+
surface?: 'tray' | 'raised';
|
|
23
30
|
/** Extra classes on the block. */
|
|
24
31
|
className?: string;
|
|
25
32
|
/** Inline styles on the root element, merged after the component's own. */
|
|
@@ -30,6 +37,6 @@ interface HowItWorksProps {
|
|
|
30
37
|
*
|
|
31
38
|
* @param props - Component props.
|
|
32
39
|
*/
|
|
33
|
-
declare function HowItWorks({ title, steps, illustration, actions, className, style }: HowItWorksProps): import("react").JSX.Element;
|
|
40
|
+
declare function HowItWorks({ title, steps, illustration, actions, surface, className, style }: HowItWorksProps): import("react").JSX.Element;
|
|
34
41
|
//#endregion
|
|
35
42
|
export { HowItWorks, HowItWorksProps, HowItWorksStep };
|
|
@@ -17,7 +17,7 @@ import { useCallback, useEffect, useId, useRef, useState } from "react";
|
|
|
17
17
|
*
|
|
18
18
|
* @param props - Component props.
|
|
19
19
|
*/
|
|
20
|
-
function HowItWorks({ title, steps, illustration, actions, className = "", style }) {
|
|
20
|
+
function HowItWorks({ title, steps, illustration, actions, surface = "tray", className = "", style }) {
|
|
21
21
|
const id = useId();
|
|
22
22
|
const [shown, setShown] = useState(0);
|
|
23
23
|
const tour = typeof illustration === "function";
|
|
@@ -26,7 +26,7 @@ function HowItWorks({ title, steps, illustration, actions, className = "", style
|
|
|
26
26
|
return /* @__PURE__ */ jsx("div", {
|
|
27
27
|
role: "group",
|
|
28
28
|
"aria-labelledby": `${id}-title`,
|
|
29
|
-
className: `zg-how zg-tray rounded-zg-xl p-2 ${className}`,
|
|
29
|
+
className: `zg-how ${surface === "raised" ? "zg-raised border" : "zg-tray"} rounded-zg-xl p-2 ${className}`,
|
|
30
30
|
style,
|
|
31
31
|
children: /* @__PURE__ */ jsxs("div", {
|
|
32
32
|
className: "zg-how-split",
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import { CSSProperties } from "react";
|
|
1
|
+
import { CSSProperties, ReactElement } from "react";
|
|
2
2
|
//#region src/components/RowActionsMenu.d.ts
|
|
3
3
|
interface RowActionBase {
|
|
4
4
|
/** Stable identifier, used as the row's key. */
|
|
5
5
|
id: string;
|
|
6
6
|
/** Text of the row. */
|
|
7
7
|
label: string;
|
|
8
|
+
/**
|
|
9
|
+
* Leading glyph, drawn muted: an icon class (`i-ph-terminal-window`), or an element (a logo). Give every row
|
|
10
|
+
* of a menu one, or none.
|
|
11
|
+
*/
|
|
12
|
+
icon?: string | ReactElement;
|
|
8
13
|
/** Red-tinted treatment for destructive actions (e.g. Delete). */
|
|
9
14
|
destructive?: boolean;
|
|
10
15
|
/** Grays the row out and ignores clicks + shortcut dispatch (e.g. while the action is already running). */
|
|
@@ -248,6 +248,10 @@ function ActionRow({ item, divider, expanded, onPoint, onPick }) {
|
|
|
248
248
|
role: "menuitem",
|
|
249
249
|
size: "sm",
|
|
250
250
|
title: item.label,
|
|
251
|
+
icon: typeof item.icon === "string" ? /* @__PURE__ */ jsx("span", {
|
|
252
|
+
"aria-hidden": true,
|
|
253
|
+
className: item.icon
|
|
254
|
+
}) : item.icon,
|
|
251
255
|
"data-item": item.id,
|
|
252
256
|
destructive: item.destructive,
|
|
253
257
|
disabled: item.disabled || item.items !== void 0 && item.items.length === 0,
|
package/dist/core.css
CHANGED
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
.i-ph-planet{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M245.11 60.68c-7.65-13.19-27.84-16.16-58.5-8.66A95.93 95.93 0 0 0 32 128a98 98 0 0 0 .78 12.31C5.09 169 5.49 186 10.9 195.32C16 204.16 26.64 208 40.64 208a124 124 0 0 0 28.79-4A95.93 95.93 0 0 0 224 128a97 97 0 0 0-.77-12.25c12.5-13 20.82-25.35 23.65-35.92c1.95-7.32 1.36-13.76-1.77-19.15M128 48a80.11 80.11 0 0 1 78 62.2c-17.06 16.06-40.15 32.53-62.07 45.13c-27.55 15.81-51.45 25.67-70.51 31.07A79.94 79.94 0 0 1 128 48M24.74 187.29c-1.46-2.51-.65-7.24 2.22-13a79 79 0 0 1 10.29-15.05a96 96 0 0 0 18 31.32c-17.25 2.9-28.01 1.05-30.51-3.27M128 208a79.45 79.45 0 0 1-38.56-9.94a370 370 0 0 0 62.43-28.86c21.58-12.39 40.68-25.82 56.07-39.08A80.07 80.07 0 0 1 128 208M231.42 75.69c-1.7 6.31-6.19 13.53-12.63 21.13a95.7 95.7 0 0 0-18-31.35c14.21-2.35 27.37-2.17 30.5 3.24c.9 1.57.95 3.92.13 6.98'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
|
|
25
25
|
.i-ph-sidebar-simple{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M216 40H40a16 16 0 0 0-16 16v144a16 16 0 0 0 16 16h176a16 16 0 0 0 16-16V56a16 16 0 0 0-16-16M40 56h40v144H40Zm176 144H96V56h120z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
|
|
26
26
|
.i-ph-squares-four{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M104 40H56a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h48a16 16 0 0 0 16-16V56a16 16 0 0 0-16-16m0 64H56V56h48zm96-64h-48a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h48a16 16 0 0 0 16-16V56a16 16 0 0 0-16-16m0 64h-48V56h48zm-96 32H56a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h48a16 16 0 0 0 16-16v-48a16 16 0 0 0-16-16m0 64H56v-48h48zm96-64h-48a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h48a16 16 0 0 0 16-16v-48a16 16 0 0 0-16-16m0 64h-48v-48h48z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
|
|
27
|
+
.i-ph-terminal-window{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M128 128a8 8 0 0 1-3 6.25l-40 32a8 8 0 1 1-10-12.5L107.19 128L75 102.25a8 8 0 1 1 10-12.5l40 32a8 8 0 0 1 3 6.25m48 24h-40a8 8 0 0 0 0 16h40a8 8 0 0 0 0-16m56-96v144a16 16 0 0 1-16 16H40a16 16 0 0 1-16-16V56a16 16 0 0 1 16-16h176a16 16 0 0 1 16 16m-16 144V56H40v144z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
|
|
27
28
|
.i-ph-text-align-left{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M32 64a8 8 0 0 1 8-8h176a8 8 0 0 1 0 16H40a8 8 0 0 1-8-8m8 48h128a8 8 0 0 0 0-16H40a8 8 0 0 0 0 16m176 24H40a8 8 0 0 0 0 16h176a8 8 0 0 0 0-16m-48 40H40a8 8 0 0 0 0 16h128a8 8 0 0 0 0-16'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
|
|
28
29
|
.i-ph-warning{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M236.8 188.09L149.35 36.22a24.76 24.76 0 0 0-42.7 0L19.2 188.09a23.51 23.51 0 0 0 0 23.72A24.35 24.35 0 0 0 40.55 224h174.9a24.35 24.35 0 0 0 21.33-12.19a23.51 23.51 0 0 0 .02-23.72m-13.87 15.71a8.5 8.5 0 0 1-7.48 4.2H40.55a8.5 8.5 0 0 1-7.48-4.2a7.59 7.59 0 0 1 0-7.72l87.45-151.87a8.75 8.75 0 0 1 15 0l87.45 151.87a7.59 7.59 0 0 1-.04 7.72M120 144v-40a8 8 0 0 1 16 0v40a8 8 0 0 1-16 0m20 36a12 12 0 1 1-12-12a12 12 0 0 1 12 12'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
|
|
29
30
|
.i-ph-warning-circle{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m0 192a88 88 0 1 1 88-88a88.1 88.1 0 0 1-88 88m-8-80V80a8 8 0 0 1 16 0v56a8 8 0 0 1-16 0m20 36a12 12 0 1 1-12-12a12 12 0 0 1 12 12'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
|
|
@@ -1142,6 +1143,16 @@ html[data-motion='off'] {
|
|
|
1142
1143
|
var(--zg-shadow-well),
|
|
1143
1144
|
0 0 0 3px color-mix(in oklab, var(--zg-ring) 18%, transparent);
|
|
1144
1145
|
}
|
|
1146
|
+
/* A well whose value is wrong: the danger edge, focused or not. */
|
|
1147
|
+
.zg-well[aria-invalid='true'] {
|
|
1148
|
+
border-color: color-mix(in oklab, var(--zg-danger) 70%, transparent);
|
|
1149
|
+
}
|
|
1150
|
+
.zg-well[aria-invalid='true']:focus,
|
|
1151
|
+
.zg-well[aria-invalid='true']:focus-within {
|
|
1152
|
+
box-shadow:
|
|
1153
|
+
var(--zg-shadow-well),
|
|
1154
|
+
0 0 0 3px color-mix(in oklab, var(--zg-danger) 18%, transparent);
|
|
1155
|
+
}
|
|
1145
1156
|
/* A file dragged over a well that takes it (focused or not). */
|
|
1146
1157
|
.zg-well[data-drop] {
|
|
1147
1158
|
border-color: var(--zg-accent);
|
|
@@ -1991,6 +2002,19 @@ html[data-motion='reduced'] :is(.animate-spin, .zg-spin-ring, .zg-sendstop-ring)
|
|
|
1991
2002
|
animation: zg-sendstop-rotate 800ms linear infinite;
|
|
1992
2003
|
}
|
|
1993
2004
|
|
|
2005
|
+
/* --- Step status icon (`StepStatusIcon`) ----------------------------------
|
|
2006
|
+
* A `.zg-swap` whose layers centre their glyph (the spin ring is a fixed
|
|
2007
|
+
* 12px box, the others are 1em glyphs). The layer that lands after a change
|
|
2008
|
+
* pops in on `snap`, its opacity on the swap's `fade`; the pop sits on the
|
|
2009
|
+
* layer so the ring inside keeps its own rotation. */
|
|
2010
|
+
.zg-step-icon-layer {
|
|
2011
|
+
display: grid;
|
|
2012
|
+
place-items: center;
|
|
2013
|
+
}
|
|
2014
|
+
.zg-step-icon-layer[data-landed] {
|
|
2015
|
+
animation: zg-pop var(--zg-motion-snap) both;
|
|
2016
|
+
}
|
|
2017
|
+
|
|
1994
2018
|
@keyframes zg-sendstop-rotate {
|
|
1995
2019
|
to {
|
|
1996
2020
|
transform: rotate(360deg);
|
|
@@ -6,7 +6,7 @@ import "../node_modules/.bun/@earendil-works_pi-ai@1.3.0_bff1df87cb190f90/node_m
|
|
|
6
6
|
import "../node_modules/.bun/@anthropic-ai_sdk@0.104.2_fff7ddf946fac095/node_modules/@anthropic-ai/sdk/index.js";
|
|
7
7
|
import "../node_modules/.bun/@anthropic-ai_sdk@0.104.2_fff7ddf946fac095/node_modules/@anthropic-ai/sdk/resources2.js";
|
|
8
8
|
import { ReactNode } from "react";
|
|
9
|
-
//#region ../dist/index-
|
|
9
|
+
//#region ../dist/index-BI6RZc60.d.ts
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/thinking-levels.d.ts
|
|
12
12
|
/**
|
|
@@ -141,6 +141,20 @@ interface ScriptProgress {
|
|
|
141
141
|
ended?: 'ok' | 'error';
|
|
142
142
|
}
|
|
143
143
|
//#endregion
|
|
144
|
+
//#region src/chat/secrets/protocol.d.ts
|
|
145
|
+
/**
|
|
146
|
+
* Secret requests: the pure shapes shared by the `ask_user` tool, the host,
|
|
147
|
+
* and every client that renders a `secret` question.
|
|
148
|
+
*
|
|
149
|
+
* The value a person types travels once, from the client to the host, as a
|
|
150
|
+
* {@link SecretAnswer}. The host writes it to the secret store and replaces
|
|
151
|
+
* it with a {@link SecretReference} before the response reaches anything
|
|
152
|
+
* that records it: the tool result, the durable journal, signals, traces.
|
|
153
|
+
* The model only ever reads the reference.
|
|
154
|
+
*/
|
|
155
|
+
/** How long a secret stays in the store. `never` keeps it until the user revokes it. */
|
|
156
|
+
type SecretTtl = '1h' | '24h' | '7d' | 'never';
|
|
157
|
+
//#endregion
|
|
144
158
|
//#region src/chat/session-query/types.d.ts
|
|
145
159
|
/**
|
|
146
160
|
* The types of the session query: a declarative filter, sort, grouping
|
|
@@ -161,7 +175,7 @@ type QueryBound = number | string;
|
|
|
161
175
|
* session without an environment. `projectName` is computed: the folder name
|
|
162
176
|
* (last path segment) of `projectRoot`, or of `cwd` without one.
|
|
163
177
|
*/
|
|
164
|
-
type SessionFieldName = 'id' | 'title' | 'projectRoot' | 'projectName' | 'cwd' | 'agentId' | 'status' | 'createdAt' | 'updatedAt' | 'runStartedAt' | 'archived' | 'favorite' | 'isMain' | 'spaceId' | 'providerKey' | 'modelId' | 'account' | 'effort' | 'hostId' | 'repoKey' | 'environment.kind' | 'environment.state' | 'environment.branch';
|
|
178
|
+
type SessionFieldName = 'id' | 'title' | 'projectRoot' | 'projectName' | 'cwd' | 'agentId' | 'status' | 'createdAt' | 'updatedAt' | 'runStartedAt' | 'archived' | 'favorite' | 'isMain' | 'spaceId' | 'scheduleId' | 'providerKey' | 'modelId' | 'account' | 'effort' | 'hostId' | 'repoKey' | 'environment.kind' | 'environment.state' | 'environment.branch';
|
|
165
179
|
/**
|
|
166
180
|
* A facet an extension computes for each session: `facet.<extensionId>.<key>`,
|
|
167
181
|
* optionally followed by `.<property>` steps into an object value (a number
|
|
@@ -464,6 +478,17 @@ interface Settings {
|
|
|
464
478
|
* history. Off by default — nothing is created, pinned, or bound until on.
|
|
465
479
|
*/
|
|
466
480
|
orchestration: boolean;
|
|
481
|
+
/**
|
|
482
|
+
* Schedules: prompts and extension handlers that run at a set time (a
|
|
483
|
+
* reminder fires once). Off by default: no timer runs and nothing is read
|
|
484
|
+
* until on. See docs/SCHEDULES.md.
|
|
485
|
+
*/
|
|
486
|
+
schedules: boolean;
|
|
487
|
+
/**
|
|
488
|
+
* The agent's `schedule` tool, while `schedules` is on. On by default, so
|
|
489
|
+
* turning on Schedules gives the agent the tool until you turn this off.
|
|
490
|
+
*/
|
|
491
|
+
schedulesAgent: boolean;
|
|
467
492
|
/**
|
|
468
493
|
* Run extensions discovered under `<project>/.zidane/extensions`
|
|
469
494
|
* (project-scoped). Off by default — project extensions execute
|
|
@@ -534,6 +559,14 @@ interface Settings {
|
|
|
534
559
|
* `/side` sessions; a change rebuilds live agents. Default: on.
|
|
535
560
|
*/
|
|
536
561
|
webSearch: boolean;
|
|
562
|
+
/**
|
|
563
|
+
* Let the agent ask for secrets (API keys, tokens) with a `secret`
|
|
564
|
+
* question in `ask_user`. The value goes to a private file per project,
|
|
565
|
+
* never into the chat; commands read it at `$ZIDANE_SECRETS/NAME`, and
|
|
566
|
+
* tool output shows it as `[secret:NAME]`. A change rebuilds live agents.
|
|
567
|
+
* See `docs/INTERACTIONS.md` § Secrets. Default: off.
|
|
568
|
+
*/
|
|
569
|
+
secrets: boolean;
|
|
537
570
|
/**
|
|
538
571
|
* Default model of `generate_image`, as `"providerKey/modelId"`
|
|
539
572
|
* (e.g. `"openrouter/google/gemini-3-pro-image"`). Empty string = the first
|
|
@@ -1449,4 +1482,4 @@ interface Settings {
|
|
|
1449
1482
|
activeIcon: string;
|
|
1450
1483
|
}
|
|
1451
1484
|
//#endregion
|
|
1452
|
-
export {
|
|
1485
|
+
export { ScriptLineProgress as Bw, SessionQueryNot as Cb, SpaceIcon as Cf, DurabilityMode as ID, ThinkingLevel as PR, Space as Sf, SessionSort as Tb, SecretTtl as UC, EnvironmentSettings as UE, ScriptOutputLine as Uw, ScriptProgress as Ww, ApprovalMode as Xd, EditDiffDisplay as Zd, SessionQuery as _b, OpenInTarget as af, EnvironmentConfigValue as cD, QueryBound as cb, SessionFieldName as db, SessionFieldPath as fb, Settings as ff, TranscriptDensity as gf, SessionGroupOrder as hb, ToolCallDisplay as hf, OutputStream as iT, AnsiSpan as lT, QueryValue as lb, SessionGroupBy as mb, InteractionMode as nf, OutputLine as rT, AnsiColor as sT, FacetPath as sb, AnsiStyle as uT, SessionCondition as ub, SessionQueryAll as vb, SessionQueryAny as yb, ScriptCallStatus as zw };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./types-2HrgolQz.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { d as AuthFailureKind, u as AuthFailure } from "./timeout-B5pO5I5a.js";
|
|
2
|
+
import "./types-2HrgolQz.js";
|
|
3
|
+
import "./oauth-callback-page-DMxIgurj.js";
|
|
4
|
+
import { Cb as SessionQueryNot, PR as ThinkingLevel, Tb as SessionSort, _b as SessionQuery, cb as QueryBound, db as SessionFieldName, fb as SessionFieldPath, hb as SessionGroupOrder, lb as QueryValue, mb as SessionGroupBy, sb as FacetPath, ub as SessionCondition, vb as SessionQueryAll, yb as SessionQueryAny } from "./index-BI6RZc60.js";
|
|
5
|
+
import "./index-f-XWIoYo.js";
|
|
6
|
+
import "./sandbox-B4OW6oNx.js";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//#region ../dist/timeout-B5pO5I5a.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Why a sign-in stopped working:
|
|
4
|
+
* - `expired`: the refresh failed for a reason that signing in again fixes.
|
|
5
|
+
* - `revoked`: the grant was revoked or rejected (`invalid_grant`).
|
|
6
|
+
* - `missing`: no credential is stored (or the pinned account is gone).
|
|
7
|
+
* - `busy`: another process holds the refresh lock and has not let go.
|
|
8
|
+
* - `network`: the refresh could not reach the provider; retrying may do.
|
|
9
|
+
* - `rejected`: the provider refused the credential it was sent (a 401).
|
|
10
|
+
*/
|
|
11
|
+
type AuthFailureKind = 'expired' | 'revoked' | 'missing' | 'busy' | 'network' | 'rejected';
|
|
12
|
+
/** Which sign-in failed, enough for a surface to offer fixing it. JSON-safe: it is persisted with the run. */
|
|
13
|
+
interface AuthFailure {
|
|
14
|
+
/** Why it failed. */
|
|
15
|
+
kind: AuthFailureKind;
|
|
16
|
+
/** What signs in: a model provider, an MCP server, an integration. */
|
|
17
|
+
source: 'provider' | 'mcp' | 'integration';
|
|
18
|
+
/** The provider name as the provider calls itself (`anthropic`, `openai`), or the server / integration name. */
|
|
19
|
+
provider: string;
|
|
20
|
+
/** Credentials key / OAuth flow id (`anthropic`, `openai-codex`), when it differs from nothing else; absent for a 401 the loop classified. */
|
|
21
|
+
providerId?: string;
|
|
22
|
+
/** Stable id of the account that failed, when the credential has one. */
|
|
23
|
+
accountId?: string;
|
|
24
|
+
/** That account's name, when it has one. */
|
|
25
|
+
accountLabel?: string;
|
|
26
|
+
/** `busy`: the pid holding the refresh lock, when it is on this host. */
|
|
27
|
+
holderPid?: number;
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { AuthFailureKind as d, AuthFailure as u };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { constant, useReadable } from "../chat/headless/store.js";
|
|
2
|
+
import { extensionsErrorOf } from "./headless/host.js";
|
|
2
3
|
import { useExtensionsLabels } from "./useExtensionsLabels.js";
|
|
3
4
|
import { ExtensionComponent } from "./ExtensionComponent.js";
|
|
4
5
|
import { useExtensionItems, useExtensionsHost } from "./ExtensionsProvider.js";
|
|
5
|
-
import { extensionsErrorOf } from "./headless/host.js";
|
|
6
6
|
import { settingsValues } from "./headless/select.js";
|
|
7
7
|
import { SettingsWireForm } from "./SettingsWireForm.js";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Tray } from "../components/Surface.js";
|
|
2
2
|
import { ROW_BUTTON_CLASS, RowText } from "../components/Form.js";
|
|
3
3
|
import { constant, useReadable } from "../chat/headless/store.js";
|
|
4
|
+
import { extensionsErrorOf } from "./headless/host.js";
|
|
4
5
|
import { useExtensionsLabels } from "./useExtensionsLabels.js";
|
|
5
6
|
import { useExtensionsHost } from "./ExtensionsProvider.js";
|
|
6
|
-
import { extensionsErrorOf } from "./headless/host.js";
|
|
7
7
|
import { settingsValues } from "./headless/select.js";
|
|
8
8
|
import { SettingsPanel, SettingsPanelBody, useSettingsSection } from "../settings/section.js";
|
|
9
9
|
import { SettingsWireForm } from "./SettingsWireForm.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { writable } from "../../chat/headless/store.js";
|
|
2
|
-
import { ExtensionsHostError } from "./host.js";
|
|
3
2
|
import { createDialogQueue } from "./dialog-queue.js";
|
|
4
3
|
import { createUiEffectChannel } from "./effect-channel.js";
|
|
4
|
+
import { ExtensionsHostError } from "./host.js";
|
|
5
5
|
import { EXTENSION_TOKENS } from "./wire.js";
|
|
6
6
|
//#region src/extensions/headless/fixture-host.ts
|
|
7
7
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { createDialogQueue } from "./dialog-queue.js";
|
|
2
|
+
import { createUiEffectChannel } from "./effect-channel.js";
|
|
3
|
+
import { ExtensionsHostError, extensionsErrorOf } from "./host.js";
|
|
4
|
+
import { EXTENSION_TOKENS, SLOT_NAMES } from "./wire.js";
|
|
1
5
|
import { createEffectRouter } from "./effect-router.js";
|
|
2
6
|
import { DEFAULT_EXTENSIONS_LABELS } from "./labels.js";
|
|
3
|
-
import { ExtensionsHostError, extensionsErrorOf } from "./host.js";
|
|
4
7
|
import { WEBVIEW_RPC_NOT_ALLOWED, WEBVIEW_RPC_REQUEST, WEBVIEW_RPC_RESULT, WEBVIEW_RPC_UNAVAILABLE, createWebviewRpcBridge, isWebviewRpcRequest } from "./webview-bridge.js";
|
|
5
8
|
import { openInNewTab, routeLink } from "./links.js";
|
|
6
9
|
import { TITLEBAR_ITEMS_PER_EXTENSION, clampSettingNumber, filterSelectOptions, groupSelectOptions, isSettingLocked, missingScope, qualifyPanelId, rendererMatches, renderersFor, settingValue, settingsValues, slotIsActionable, slotItems, titlebarItems } from "./select.js";
|
|
7
|
-
import { createDialogQueue } from "./dialog-queue.js";
|
|
8
|
-
import { createUiEffectChannel } from "./effect-channel.js";
|
|
9
|
-
import { EXTENSION_TOKENS, SLOT_NAMES } from "./wire.js";
|
|
10
10
|
export { DEFAULT_EXTENSIONS_LABELS, EXTENSION_TOKENS, ExtensionsHostError, SLOT_NAMES, TITLEBAR_ITEMS_PER_EXTENSION, WEBVIEW_RPC_NOT_ALLOWED, WEBVIEW_RPC_REQUEST, WEBVIEW_RPC_RESULT, WEBVIEW_RPC_UNAVAILABLE, clampSettingNumber, createDialogQueue, createEffectRouter, createUiEffectChannel, createWebviewRpcBridge, extensionsErrorOf, filterSelectOptions, groupSelectOptions, isSettingLocked, isWebviewRpcRequest, missingScope, openInNewTab, qualifyPanelId, rendererMatches, renderersFor, routeLink, settingValue, settingsValues, slotIsActionable, slotItems, titlebarItems };
|
package/dist/extensions/hooks.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { constant, useReadable } from "../chat/headless/store.js";
|
|
2
|
+
import { ExtensionsHostError } from "./headless/host.js";
|
|
2
3
|
import { useExtensionScope } from "./ExtensionComponent.js";
|
|
3
4
|
import { useExtensionEffectRouter, useExtensionsHost } from "./ExtensionsProvider.js";
|
|
4
|
-
import { ExtensionsHostError } from "./headless/host.js";
|
|
5
5
|
import { isSettingLocked, settingValue } from "./headless/select.js";
|
|
6
6
|
import { useCallback, useEffect, useMemo, useRef } from "react";
|
|
7
7
|
//#region src/extensions/hooks.ts
|
package/dist/files/DiffsTab.js
CHANGED
|
@@ -17,8 +17,8 @@ import { DiffFileTree } from "../session/DiffFileTree.js";
|
|
|
17
17
|
import { buildDiffTree, fileOrder, relativeTo, visibleRows } from "../session/headless/diff-tree.js";
|
|
18
18
|
import { collectSessionDiffs, fileDiffCounts, groupByPath } from "../session/headless/session-diffs.js";
|
|
19
19
|
import { usePanelVisible } from "../workspace/panel-visibility.js";
|
|
20
|
-
import { matchRanges } from "./headless/search.js";
|
|
21
20
|
import { nameMatches } from "./headless/name-match.js";
|
|
21
|
+
import { matchRanges } from "./headless/search.js";
|
|
22
22
|
import { filesRootOf, steppedIndex } from "./headless/view.js";
|
|
23
23
|
import { MediaDiff, isMediaDiff } from "./MediaDiff.js";
|
|
24
24
|
import { parseSessionPatch } from "./session-patch.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Breadcrumb } from "../components/Breadcrumb.js";
|
|
2
2
|
import { IconToggle } from "../components/IconToggle.js";
|
|
3
3
|
import { PanelEmpty, PanelLoading } from "../components/PanelEmpty.js";
|
|
4
|
-
import { useFilesHost } from "./FilesProvider.js";
|
|
5
4
|
import { mediaSiblings, mediaTypeOfPath } from "./headless/media.js";
|
|
5
|
+
import { useFilesHost } from "./FilesProvider.js";
|
|
6
6
|
import { absolutePath } from "./file-actions.js";
|
|
7
7
|
import { useFilesLabels } from "./useFilesLabels.js";
|
|
8
8
|
import { useLsp } from "./useLsp.js";
|
package/dist/files/MediaDiff.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useFilesHost } from "./FilesProvider.js";
|
|
2
1
|
import { mediaTypeOfPath } from "./headless/media.js";
|
|
2
|
+
import { useFilesHost } from "./FilesProvider.js";
|
|
3
3
|
import { useFilesLabels } from "./useFilesLabels.js";
|
|
4
4
|
import { MediaView } from "./MediaView.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|