@workerdeck/ui 2.2.1 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{SessionPanel-ErvQUyHe.mjs → SessionPanel-B5FfiBxE.mjs} +45 -41
- package/build/SessionPanel-B5FfiBxE.mjs.map +1 -0
- package/build/{SessionPanel-My98j9RZ.d.mts → SessionPanel-_lQLhWOw.d.mts} +11 -5
- package/build/{format-TVRJzYUj.d.mts → format-eS_oUry-.d.mts} +9 -2
- package/build/format.d.mts +2 -2
- package/build/format.mjs +2 -2
- package/build/index.d.mts +5 -8
- package/build/index.mjs +3 -12
- package/build/index.mjs.map +1 -1
- package/build/scoped.css +13 -0
- package/build/{status-C4TAgVSc.mjs → status-BO9wJloK.mjs} +13 -2
- package/build/status-BO9wJloK.mjs.map +1 -0
- package/build/workspace.d.mts +1 -1
- package/build/workspace.mjs +2 -2
- package/package.json +4 -4
- package/src/components/agent/Loader.tsx +0 -2
- package/src/components/agent/QuestionPrompt.tsx +10 -26
- package/src/components/agent/SessionPanel.tsx +27 -1
- package/src/components/agent/Transcript.tsx +1 -5
- package/src/components/agent/TranscriptItemView.tsx +6 -4
- package/src/components/terminal/PermissionPrompt.tsx +5 -1
- package/src/components/terminal/QuestionPrompt.tsx +5 -1
- package/src/components/terminal/TerminalTranscript.tsx +1 -1
- package/src/components/terminal/height.ts +2 -2
- package/src/components/terminal/items.tsx +5 -4
- package/src/components/terminal/prompt.tsx +6 -2
- package/src/index.ts +1 -0
- package/src/lib/format.ts +25 -0
- package/src/styles/terminal.css +24 -2
- package/build/SessionPanel-ErvQUyHe.mjs.map +0 -1
- package/build/status-C4TAgVSc.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
1
|
+
import { ComponentType, ReactNode } from "react";
|
|
2
2
|
import { LucideIcon } from "lucide-react";
|
|
3
|
-
import { ModelOption, PermissionMode, SessionTask, SkillInfo, SubagentInfo } from "@workerdeck/protocol";
|
|
3
|
+
import { ModelOption, PermissionMode, PermissionRequest, SessionTask, SkillInfo, SubagentInfo } from "@workerdeck/protocol";
|
|
4
4
|
import { ClientToolHandler, ConnectionState, TranscriptState, UseToolCallHostOptions } from "@workerdeck/react";
|
|
5
5
|
import { WorkerDeckClient } from "@workerdeck/client";
|
|
6
6
|
//#region src/components/agent/PermissionModeSelect.d.ts
|
|
@@ -69,6 +69,11 @@ type TerminalMetrics = {
|
|
|
69
69
|
fontSize?: number;
|
|
70
70
|
lineHeight?: number;
|
|
71
71
|
};
|
|
72
|
+
interface ApprovalPromptProps {
|
|
73
|
+
request: PermissionRequest;
|
|
74
|
+
onApprove: (requestId: string, updatedInput?: Record<string, unknown>) => void;
|
|
75
|
+
onDeny: (requestId: string, message?: string, interrupt?: boolean) => void;
|
|
76
|
+
}
|
|
72
77
|
interface SessionPanelProps {
|
|
73
78
|
client: WorkerDeckClient;
|
|
74
79
|
sessionId: string | undefined;
|
|
@@ -107,6 +112,7 @@ interface SessionPanelProps {
|
|
|
107
112
|
since?: number;
|
|
108
113
|
};
|
|
109
114
|
readOnly?: boolean;
|
|
115
|
+
approvalPrompts?: Record<string, ComponentType<ApprovalPromptProps>>;
|
|
110
116
|
toolHost?: UseToolCallHostOptions | false;
|
|
111
117
|
cacheTranscript?: boolean;
|
|
112
118
|
emptyState?: ReactNode;
|
|
@@ -141,7 +147,7 @@ type SessionVitals = {
|
|
|
141
147
|
itemCount: number;
|
|
142
148
|
totalCostUsd: number;
|
|
143
149
|
};
|
|
144
|
-
declare function SessionPanel({ client, sessionId, header, panelSurface, statusSurface, statusPlacement, onOpenPanel, onVitals, transcriptVariant, transcriptDensity, transcriptFont, affordances, terminalMetrics, scrubber, bookmarks, onToggleBookmark, reveal, subagents, openSubagent, onSubagentChange, stickyPrompt, controlsSurface, onControls, focusComposerOnClick, unseen, readOnly, toolHost, clientTools, cacheTranscript, emptyState, onLinkClick, fontSize, className }: SessionPanelProps): import("react").JSX.Element;
|
|
150
|
+
declare function SessionPanel({ client, sessionId, header, panelSurface, statusSurface, statusPlacement, onOpenPanel, onVitals, transcriptVariant, transcriptDensity, transcriptFont, affordances, terminalMetrics, scrubber, bookmarks, onToggleBookmark, reveal, subagents, openSubagent, onSubagentChange, stickyPrompt, controlsSurface, onControls, focusComposerOnClick, unseen, readOnly, approvalPrompts, toolHost, clientTools, cacheTranscript, emptyState, onLinkClick, fontSize, className }: SessionPanelProps): import("react").JSX.Element;
|
|
145
151
|
//#endregion
|
|
146
|
-
export {
|
|
147
|
-
//# sourceMappingURL=SessionPanel-
|
|
152
|
+
export { PermissionModeSelectProps as C, PermissionModeSelect as S, permissionModeMeta as T, WithActions as _, SessionSurfacePanel as a, PermissionModeChoice as b, TranscriptDensity as c, TranscriptVariant as d, TranscriptVariantProvider as f, TerminalAffordances as g, CopyAction as h, SessionPanelProps as i, TranscriptDensityProvider as l, useTranscriptVariant as m, SessionControls as n, SessionVitals as o, useTranscriptDensity as p, SessionPanel as r, TerminalMetrics as s, ApprovalPromptProps as t, TranscriptFont as u, useAffordances as v, permissionModeChoices as w, PermissionModeMeta as x, PERMISSION_MODES as y };
|
|
153
|
+
//# sourceMappingURL=SessionPanel-_lQLhWOw.d.mts.map
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
//#region src/lib/format.d.ts
|
|
2
2
|
declare const COMPACTION_TEXT = "context compacted · earlier turns summarised to fit the window";
|
|
3
|
+
declare function compactionText(item: {
|
|
4
|
+
pending?: boolean;
|
|
5
|
+
trigger?: 'manual' | 'auto';
|
|
6
|
+
preTokens?: number;
|
|
7
|
+
postTokens?: number;
|
|
8
|
+
error?: string;
|
|
9
|
+
}): string;
|
|
3
10
|
declare function formatCost(usd: number | undefined): string;
|
|
4
11
|
declare function formatDuration(ms: number): string;
|
|
5
12
|
declare function formatTokens(tokens: number): string;
|
|
@@ -13,5 +20,5 @@ declare function formatAgoPrecise(epochMs: number, now?: number): string;
|
|
|
13
20
|
declare function toolInputPreview(input: unknown, max?: number): string;
|
|
14
21
|
declare function friendlyModel(id: string | undefined): string | undefined;
|
|
15
22
|
//#endregion
|
|
16
|
-
export {
|
|
17
|
-
//# sourceMappingURL=format-
|
|
23
|
+
export { formatCost as a, formatRateLimitWindow as c, formatTokens as d, friendlyModel as f, formatBytes as i, formatRateLimitWindowLong as l, toolInputPreview as m, compactionText as n, formatCountdown as o, rateLimitWindowSeconds as p, formatAgoPrecise as r, formatDuration as s, COMPACTION_TEXT as t, formatRelativeTime as u };
|
|
24
|
+
//# sourceMappingURL=format-eS_oUry-.d.mts.map
|
package/build/format.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as formatCost, c as formatRateLimitWindow, d as formatTokens, f as friendlyModel, i as formatBytes, l as formatRateLimitWindowLong, m as toolInputPreview, n as compactionText, o as formatCountdown, p as rateLimitWindowSeconds, r as formatAgoPrecise, s as formatDuration, t as COMPACTION_TEXT, u as formatRelativeTime } from "./format-eS_oUry-.mjs";
|
|
2
2
|
import { ModelOption, RateLimitInfo, SessionStatus } from "@workerdeck/protocol";
|
|
3
3
|
//#region src/lib/status.d.ts
|
|
4
4
|
type StatusSeverity = 'none' | 'warning' | 'error';
|
|
@@ -35,5 +35,5 @@ declare function contextSeverity(usage: {
|
|
|
35
35
|
declare function meterColorClass(pct: number | undefined): string;
|
|
36
36
|
declare function meterTintClass(pct: number): string;
|
|
37
37
|
//#endregion
|
|
38
|
-
export { COMPACTION_TEXT, ModelReadings, StatusPresentation, StatusReadings, StatusSeverity, UsageLane, contextSeverity, currentModel, formatAgoPrecise, formatBytes, formatCost, formatCountdown, formatDuration, formatRateLimitWindow, formatRateLimitWindowLong, formatRelativeTime, formatTokens, friendlyModel, meterColorClass, meterSeverity, meterTintClass, modelLabel, rateLimitWindowSeconds, statusPresentation, tightestWindow, toolInputPreview, usageWindow, windowLabel };
|
|
38
|
+
export { COMPACTION_TEXT, ModelReadings, StatusPresentation, StatusReadings, StatusSeverity, UsageLane, compactionText, contextSeverity, currentModel, formatAgoPrecise, formatBytes, formatCost, formatCountdown, formatDuration, formatRateLimitWindow, formatRateLimitWindowLong, formatRelativeTime, formatTokens, friendlyModel, meterColorClass, meterSeverity, meterTintClass, modelLabel, rateLimitWindowSeconds, statusPresentation, tightestWindow, toolInputPreview, usageWindow, windowLabel };
|
|
39
39
|
//# sourceMappingURL=format.d.mts.map
|
package/build/format.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
export { COMPACTION_TEXT, contextSeverity, currentModel, formatAgoPrecise, formatBytes, formatCost, formatCountdown, formatDuration, formatRateLimitWindow, formatRateLimitWindowLong, formatRelativeTime, formatTokens, friendlyModel, meterColorClass, meterSeverity, meterTintClass, modelLabel, rateLimitWindowSeconds, statusPresentation, tightestWindow, toolInputPreview, usageWindow, windowLabel };
|
|
1
|
+
import { C as rateLimitWindowSeconds, S as friendlyModel, _ as formatDuration, a as meterTintClass, b as formatRelativeTime, c as tightestWindow, d as COMPACTION_TEXT, f as compactionText, g as formatCountdown, h as formatCost, i as meterSeverity, l as usageWindow, m as formatBytes, n as currentModel, o as modelLabel, p as formatAgoPrecise, r as meterColorClass, s as statusPresentation, t as contextSeverity, u as windowLabel, v as formatRateLimitWindow, w as toolInputPreview, x as formatTokens, y as formatRateLimitWindowLong } from "./status-BO9wJloK.mjs";
|
|
2
|
+
export { COMPACTION_TEXT, compactionText, contextSeverity, currentModel, formatAgoPrecise, formatBytes, formatCost, formatCountdown, formatDuration, formatRateLimitWindow, formatRateLimitWindowLong, formatRelativeTime, formatTokens, friendlyModel, meterColorClass, meterSeverity, meterTintClass, modelLabel, rateLimitWindowSeconds, statusPresentation, tightestWindow, toolInputPreview, usageWindow, windowLabel };
|
package/build/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { C as
|
|
1
|
+
import { a as formatCost, c as formatRateLimitWindow, d as formatTokens, f as friendlyModel, i as formatBytes, l as formatRateLimitWindowLong, m as toolInputPreview, o as formatCountdown, p as rateLimitWindowSeconds, r as formatAgoPrecise, s as formatDuration, u as formatRelativeTime } from "./format-eS_oUry-.mjs";
|
|
2
|
+
import { C as PermissionModeSelectProps, S as PermissionModeSelect, T as permissionModeMeta, _ as WithActions, a as SessionSurfacePanel, b as PermissionModeChoice, c as TranscriptDensity, d as TranscriptVariant, f as TranscriptVariantProvider, g as TerminalAffordances, h as CopyAction, i as SessionPanelProps, l as TranscriptDensityProvider, m as useTranscriptVariant, n as SessionControls, o as SessionVitals, p as useTranscriptDensity, r as SessionPanel, s as TerminalMetrics, t as ApprovalPromptProps, u as TranscriptFont, v as useAffordances, w as permissionModeChoices, x as PermissionModeMeta, y as PERMISSION_MODES } from "./SessionPanel-_lQLhWOw.mjs";
|
|
3
3
|
import { ButtonHTMLAttributes, FunctionComponent, HTMLAttributes, InputHTMLAttributes, ReactElement, ReactNode, Ref, RefObject, TextareaHTMLAttributes } from "react";
|
|
4
4
|
import { VariantProps } from "class-variance-authority";
|
|
5
5
|
import { ClassValue } from "clsx";
|
|
@@ -10,12 +10,12 @@ import { Menu as Menu$1 } from "@base-ui/react/menu";
|
|
|
10
10
|
import { Dialog as Dialog$1 } from "@base-ui/react/dialog";
|
|
11
11
|
import { Tooltip } from "@base-ui/react/tooltip";
|
|
12
12
|
import { toast } from "sonner";
|
|
13
|
-
import { ContextReading, ContextUsage, FilePatch, ModelOption, PermissionRequest, ProfileEngine, ProjectIcon as ProjectIcon$1, QuestionBehavior, RateLimitInfo, SessionInfo, SessionRow, SessionStatus, SessionTask, SkillInfo, SlashCommandInfo, UsageWindowRow,
|
|
13
|
+
import { ContextReading, ContextUsage, FilePatch, ModelOption, PermissionRequest, ProfileEngine, ProjectIcon as ProjectIcon$1, QuestionBehavior, RateLimitInfo, SessionInfo, SessionRow, SessionStatus, SessionTask, SkillInfo, SlashCommandInfo, UsageWindowRow, ViewConfig, WorkspaceScope, parseUserQuestions } from "@workerdeck/protocol";
|
|
14
14
|
import { ConnectionState, TranscriptItem, TranscriptState, UseAttachmentsResult } from "@workerdeck/react";
|
|
15
15
|
import { WorkerDeckClient } from "@workerdeck/client";
|
|
16
16
|
//#region src/components/ui/Button.d.ts
|
|
17
17
|
declare const buttonVariants: (props?: ({
|
|
18
|
-
variant?: "default" | "
|
|
18
|
+
variant?: "default" | "outline" | "secondary" | "ghost" | "destructive" | "link" | null | undefined;
|
|
19
19
|
size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-sm" | null | undefined;
|
|
20
20
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
21
21
|
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {}
|
|
@@ -820,8 +820,6 @@ declare function Reasoning({ children, isStreaming, defaultOpen, className }: Re
|
|
|
820
820
|
//#region src/components/agent/Loader.d.ts
|
|
821
821
|
interface LoaderProps {
|
|
822
822
|
label?: string;
|
|
823
|
-
startedAt?: number;
|
|
824
|
-
tokens?: number;
|
|
825
823
|
className?: string;
|
|
826
824
|
}
|
|
827
825
|
declare function Loader({ label, className }: LoaderProps): import("react").JSX.Element;
|
|
@@ -871,7 +869,6 @@ type QuestionBehaviorMeta = {
|
|
|
871
869
|
description: string;
|
|
872
870
|
};
|
|
873
871
|
declare const QUESTION_BEHAVIORS: QuestionBehaviorMeta[];
|
|
874
|
-
declare function parseUserQuestions(input: Record<string, unknown>): UserQuestion[];
|
|
875
872
|
interface QuestionPromptProps {
|
|
876
873
|
request: PermissionRequest;
|
|
877
874
|
onAnswer: (requestId: string, updatedInput: Record<string, unknown>) => void;
|
|
@@ -1203,5 +1200,5 @@ declare function copyText(value: string): Promise<boolean>;
|
|
|
1203
1200
|
declare function toolIcon(toolName: string): LucideIcon;
|
|
1204
1201
|
declare function isMutatingTool(toolName: string): boolean;
|
|
1205
1202
|
//#endregion
|
|
1206
|
-
export { AlertDialog, AlertDialogClose, AlertDialogContent, AlertDialogDescription, AlertDialogTitle, AlertDialogTrigger, Badge, type BadgeProps, Band, Blank, Button, type ButtonProps, Card, CardContent, CardHeader, CardTitle, type ChipSegment, CodeBlock, type CodeBlockProps, Composer, type ComposerFileMatch, type ComposerHandle, type ComposerProps, ContextDialog, type ContextDialogProps, ContextRing, Conversation, ConversationContent, type ConversationProps, ConversationScrollButton, CopyAction, CopyButton, type CopyButtonProps, Dialog, DialogBody, DialogClose, DialogContent, DialogHeader, DialogRow, DialogTrigger, Empty, EmptyKey, EngineIcon, FileCard, type FileCardProps, type FileDeliveredItem, HostFilesDialog, type HostFilesDialogProps, Ink, Input, Loader, McpDialog, type McpDialogProps, Menu, MenuContent, MenuItem, MenuSeparator, MenuTrigger, Message, MessageContent, type MessageProps, ModelSelect, type ModelSelectProps, PERMISSION_MODES, type PermissionModeChoice, type PermissionModeMeta, PermissionModeSelect, type PermissionModeSelectProps, PermissionPrompt, type PermissionPromptProps, ProgressRing, type ProgressRingProps, ProjectIcon, PromptArea, type PromptAreaHandle, type PromptAreaProps, PromptTokenText, QUESTION_BEHAVIORS, type QuestionBehaviorMeta, QuestionPrompt, type QuestionPromptProps, Reasoning, type ReasoningProps, Response, type ResponseProps, Row, type RowProps, STATUS_META, type Segment, Select, SelectContent, SelectItem, SelectItemText, SelectTrigger, SelectValue, SessionBrowser, type SessionBrowserProps, type SessionControls, SessionEmptyState, type SessionEmptyStateProps, SessionInfoDialog, type SessionInfoDialogProps, SessionItem, type SessionItemProps, SessionList, SessionListItem, type SessionListItemProps, type SessionListProps, SessionPanel, type SessionPanelProps, SessionStatusIcon, type SessionSurfacePanel, type SessionVitals, SkillsDialog, type SkillsDialogProps, Spinner, Splitter, type SplitterProps, StatusBar, type StatusBarProps, type Step, StepRow, StepToggle, SubagentStrip, TaskList, type TaskListProps, TasksDialog, type TasksDialogProps, type TerminalAffordances, TerminalDiff, TerminalItemView, TerminalMarkdown, type TerminalMarkdownProps, type TerminalMetrics, TerminalPermissionPrompt, type TerminalPermissionPromptProps, TerminalQuestionPrompt, type TerminalQuestionPromptProps, TerminalStatusLine, type TerminalStatusLineProps, TerminalSurface, type TerminalSurfaceProps, TerminalTranscript, type TerminalTranscriptProps, type TextSegment, Textarea, Tip, Toaster, type Tone, ToolCallCard, type ToolCallCardProps, type ToolCallItem, ToolTitleProvider, TooltipContent, TooltipProvider, Transcript, type TranscriptDensity, TranscriptDensityProvider, type TranscriptFont, type TranscriptProps, type TranscriptVariant, TranscriptVariantProvider, type TriggerConfig, type TriggerSuggestion, UsageDialog, type UsageDialogProps, UsageMeters, WithActions, badgeVariants, buttonVariants, cn, commandTrigger, copyText, engineMark, formatAgoPrecise, formatBytes, formatCost, formatCountdown, formatDuration, formatRateLimitWindow, formatRateLimitWindowLong, formatRelativeTime, formatTokens, friendlyModel, getChipsByTrigger, hashtagTrigger, isMutatingTool, isSegmentsEmpty, launchTrigger, mentionTrigger, parseUserQuestions, permissionModeChoices, permissionModeMeta, plainTextToSegments, previewPatch, rateLimitWindowSeconds, rowShapeClass, runningSteps, segmentsToPlainText, sessionSteps, skillPrompt, toast, toolIcon, toolInputPreview, useAffordances, useMinuteClock, usePromptAreaState, useToolTitle, useTranscriptDensity, useTranscriptVariant, vendorMarkClass, vendorTextClass };
|
|
1203
|
+
export { AlertDialog, AlertDialogClose, AlertDialogContent, AlertDialogDescription, AlertDialogTitle, AlertDialogTrigger, type ApprovalPromptProps, Badge, type BadgeProps, Band, Blank, Button, type ButtonProps, Card, CardContent, CardHeader, CardTitle, type ChipSegment, CodeBlock, type CodeBlockProps, Composer, type ComposerFileMatch, type ComposerHandle, type ComposerProps, ContextDialog, type ContextDialogProps, ContextRing, Conversation, ConversationContent, type ConversationProps, ConversationScrollButton, CopyAction, CopyButton, type CopyButtonProps, Dialog, DialogBody, DialogClose, DialogContent, DialogHeader, DialogRow, DialogTrigger, Empty, EmptyKey, EngineIcon, FileCard, type FileCardProps, type FileDeliveredItem, HostFilesDialog, type HostFilesDialogProps, Ink, Input, Loader, McpDialog, type McpDialogProps, Menu, MenuContent, MenuItem, MenuSeparator, MenuTrigger, Message, MessageContent, type MessageProps, ModelSelect, type ModelSelectProps, PERMISSION_MODES, type PermissionModeChoice, type PermissionModeMeta, PermissionModeSelect, type PermissionModeSelectProps, PermissionPrompt, type PermissionPromptProps, ProgressRing, type ProgressRingProps, ProjectIcon, PromptArea, type PromptAreaHandle, type PromptAreaProps, PromptTokenText, QUESTION_BEHAVIORS, type QuestionBehaviorMeta, QuestionPrompt, type QuestionPromptProps, Reasoning, type ReasoningProps, Response, type ResponseProps, Row, type RowProps, STATUS_META, type Segment, Select, SelectContent, SelectItem, SelectItemText, SelectTrigger, SelectValue, SessionBrowser, type SessionBrowserProps, type SessionControls, SessionEmptyState, type SessionEmptyStateProps, SessionInfoDialog, type SessionInfoDialogProps, SessionItem, type SessionItemProps, SessionList, SessionListItem, type SessionListItemProps, type SessionListProps, SessionPanel, type SessionPanelProps, SessionStatusIcon, type SessionSurfacePanel, type SessionVitals, SkillsDialog, type SkillsDialogProps, Spinner, Splitter, type SplitterProps, StatusBar, type StatusBarProps, type Step, StepRow, StepToggle, SubagentStrip, TaskList, type TaskListProps, TasksDialog, type TasksDialogProps, type TerminalAffordances, TerminalDiff, TerminalItemView, TerminalMarkdown, type TerminalMarkdownProps, type TerminalMetrics, TerminalPermissionPrompt, type TerminalPermissionPromptProps, TerminalQuestionPrompt, type TerminalQuestionPromptProps, TerminalStatusLine, type TerminalStatusLineProps, TerminalSurface, type TerminalSurfaceProps, TerminalTranscript, type TerminalTranscriptProps, type TextSegment, Textarea, Tip, Toaster, type Tone, ToolCallCard, type ToolCallCardProps, type ToolCallItem, ToolTitleProvider, TooltipContent, TooltipProvider, Transcript, type TranscriptDensity, TranscriptDensityProvider, type TranscriptFont, type TranscriptProps, type TranscriptVariant, TranscriptVariantProvider, type TriggerConfig, type TriggerSuggestion, UsageDialog, type UsageDialogProps, UsageMeters, WithActions, badgeVariants, buttonVariants, cn, commandTrigger, copyText, engineMark, formatAgoPrecise, formatBytes, formatCost, formatCountdown, formatDuration, formatRateLimitWindow, formatRateLimitWindowLong, formatRelativeTime, formatTokens, friendlyModel, getChipsByTrigger, hashtagTrigger, isMutatingTool, isSegmentsEmpty, launchTrigger, mentionTrigger, parseUserQuestions, permissionModeChoices, permissionModeMeta, plainTextToSegments, previewPatch, rateLimitWindowSeconds, rowShapeClass, runningSteps, segmentsToPlainText, sessionSteps, skillPrompt, toast, toolIcon, toolInputPreview, useAffordances, useMinuteClock, usePromptAreaState, useToolTitle, useTranscriptDensity, useTranscriptVariant, vendorMarkClass, vendorTextClass };
|
|
1207
1204
|
//# sourceMappingURL=index.d.mts.map
|
package/build/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as Ink, A as PERMISSION_MODES, At as DialogContent, B as TaskList, Bt as SelectContent, C as TerminalPermissionPrompt, Ct as copyText, D as SubagentStrip, Dt as Dialog, E as parseUserQuestions, Et as TooltipProvider, F as SkillsDialog, Ft as MenuContent, G as TerminalSurface, Gt as PortalScope, H as contextNote, Ht as SelectItemText, I as McpDialog, It as MenuItem, J as TerminalMarkdown, Jt as
|
|
2
|
-
import { C as
|
|
3
|
-
import { Fragment,
|
|
1
|
+
import { $ as Ink, A as PERMISSION_MODES, At as DialogContent, B as TaskList, Bt as SelectContent, C as TerminalPermissionPrompt, Ct as copyText, D as SubagentStrip, Dt as Dialog, E as parseUserQuestions, Et as TooltipProvider, F as SkillsDialog, Ft as MenuContent, G as TerminalSurface, Gt as PortalScope, H as contextNote, Ht as SelectItemText, I as McpDialog, It as MenuItem, J as TerminalMarkdown, Jt as Badge, K as ToolTitleProvider, Kt as Textarea, L as HostFilesDialog, Lt as MenuSeparator, M as permissionModeChoices, Mt as DialogRow, N as permissionModeMeta, Nt as DialogTrigger, O as PermissionPrompt, Ot as DialogBody, P as ModelSelect, Pt as Menu, Q as Blank, Qt as cn, Rt as MenuTrigger, S as TerminalQuestionPrompt, St as CopyButton, T as QuestionPrompt, Tt as TooltipContent, U as Composer, Ut as SelectTrigger, V as ContextDialog, Vt as SelectItem, W as skillPrompt, Wt as SelectValue, X as previewPatch, Xt as Button, Y as TerminalDiff, Yt as badgeVariants, Z as Band, Zt as buttonVariants, _ as ConversationContent, _t as segmentsToPlainText, a as Transcript, at as toolIcon, b as STATUS_META, bt as CodeBlock, c as PromptTokenText, ct as useTranscriptDensity, d as FileCard, dt as hashtagTrigger, et as Row, f as TerminalItemView, ft as launchTrigger, g as Conversation, gt as plainTextToSegments, h as Loader, ht as PromptArea, i as useMinuteClock, it as isMutatingTool, j as PermissionModeSelect, jt as DialogHeader, k as Response, kt as DialogClose, l as Message, lt as useTranscriptVariant, m as SessionEmptyState, mt as usePromptAreaState, n as UsageDialog, nt as WithActions, o as ToolCallCard, ot as TranscriptDensityProvider, p as TerminalTranscript, pt as mentionTrigger, q as useToolTitle, qt as Input, r as UsageMeters, rt as useAffordances, s as Reasoning, st as TranscriptVariantProvider, t as SessionPanel, tt as CopyAction, u as MessageContent, ut as commandTrigger, v as ConversationScrollButton, vt as ProgressRing, w as QUESTION_BEHAVIORS, wt as Tip, x as SessionInfoDialog, xt as Spinner, y as StatusBar, yt as Splitter, z as TasksDialog, zt as Select } from "./SessionPanel-B5FfiBxE.mjs";
|
|
2
|
+
import { C as rateLimitWindowSeconds, S as friendlyModel, _ as formatDuration, b as formatRelativeTime, c as tightestWindow, g as formatCountdown, h as formatCost, i as meterSeverity, m as formatBytes, o as modelLabel, p as formatAgoPrecise, r as meterColorClass, s as statusPresentation, t as contextSeverity, u as windowLabel, v as formatRateLimitWindow, w as toolInputPreview, x as formatTokens, y as formatRateLimitWindowLong } from "./status-BO9wJloK.mjs";
|
|
3
|
+
import { Fragment, useEffect, useMemo, useRef, useState } from "react";
|
|
4
4
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { Anchor, ArrowRight, Atom, Beaker, BellRing, Bike, Binary, Blocks, Bot, Box, Brain, Briefcase, Brush, Bug, Building2, Cable, Camera, Car, Cat, Check, ChevronDown, ChevronRight, CircleAlert, CircleSlash, CircuitBoard, Cloud, Code, Coffee, Cog, Compass, Container, Cpu, CreditCard, Database, Diamond, Dog, Eraser, Feather, Film, Flame, FlaskConical, Folder, Gamepad2, Gauge, Gem, Ghost, Gift, GitBranch, Globe, GraduationCap, Hammer, Hexagon, House, Image, Key, Landmark, Laptop, Layers, Leaf, Library, Lightbulb, Lock, Mail, Map as Map$1, MessageCircle, Mic, Monitor, Moon, Mountain, Music, Network, Newspaper, Notebook, Orbit, Package, Palette, PauseCircle, PenTool, Pencil, Phone, PiggyBank, Plane, Plug, Puzzle, Radar, Radio, Receipt, Rocket, Ruler, Satellite, Scale, Scissors, Search, SearchX, Server, Shield, Ship, ShoppingCart, Signal, Smartphone, Sparkles, Sprout, Square, Star, Sun, Table, Tag, Target, Telescope, Terminal, TestTube, Trash2, TreePine, Trophy, Truck, Umbrella, Users, Wallet, Wand, Waves, Webhook, Wifi, Wrench, X, Zap } from "lucide-react";
|
|
6
6
|
import { AlertDialog as AlertDialog$1 } from "@base-ui/react/alert-dialog";
|
|
@@ -33,15 +33,6 @@ function CardContent({ className, ...props }) {
|
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
//#endregion
|
|
36
|
-
//#region src/components/ui/Textarea.tsx
|
|
37
|
-
const Textarea = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("textarea", {
|
|
38
|
-
ref,
|
|
39
|
-
"data-slot": "textarea",
|
|
40
|
-
className: cn("w-full resize-none rounded-md border border-border bg-bg px-2.5 py-2 text-body-sm text-text", "placeholder:text-fg-4 transition-colors outline-none", "hover:border-border-strong focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/40", "disabled:pointer-events-none disabled:opacity-50", className),
|
|
41
|
-
...props
|
|
42
|
-
}));
|
|
43
|
-
Textarea.displayName = "Textarea";
|
|
44
|
-
//#endregion
|
|
45
36
|
//#region src/components/ui/AlertDialog.tsx
|
|
46
37
|
const AlertDialog = AlertDialog$1.Root;
|
|
47
38
|
const AlertDialogTrigger = AlertDialog$1.Trigger;
|