@workerdeck/ui 1.0.0 → 1.1.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.
@@ -1,10 +1,8 @@
1
- import * as _$react from "react";
2
1
  import { ReactNode } from "react";
3
2
  import { LucideIcon } from "lucide-react";
4
3
  import { ModelOption, PermissionMode, SkillInfo } from "@workerdeck/protocol";
5
4
  import { ClientToolHandler, ConnectionState, TranscriptState, UseToolCallHostOptions } from "@workerdeck/react";
6
5
  import { WorkerDeckClient } from "@workerdeck/client";
7
-
8
6
  //#region src/components/agent/PermissionModeSelect.d.ts
9
7
  type PermissionModeMeta = {
10
8
  value: PermissionMode;
@@ -33,15 +31,7 @@ interface PermissionModeSelectProps {
33
31
  disabled?: boolean;
34
32
  className?: string;
35
33
  }
36
- declare function PermissionModeSelect({
37
- mode,
38
- onModeChange,
39
- modes,
40
- canBypass,
41
- variant,
42
- disabled,
43
- className
44
- }: PermissionModeSelectProps): _$react.JSX.Element;
34
+ declare function PermissionModeSelect({ mode, onModeChange, modes, canBypass, variant, disabled, className }: PermissionModeSelectProps): import("react").JSX.Element;
45
35
  //#endregion
46
36
  //#region src/components/terminal/affordances.d.ts
47
37
  type TerminalAffordances = {
@@ -49,41 +39,28 @@ type TerminalAffordances = {
49
39
  actions?: boolean;
50
40
  };
51
41
  declare function useAffordances(): Required<TerminalAffordances>;
52
- declare function WithActions({
53
- actions,
54
- children,
55
- className
56
- }: {
42
+ declare function WithActions({ actions, children, className }: {
57
43
  actions: ReactNode;
58
44
  children: ReactNode;
59
45
  className?: string;
60
- }): _$react.JSX.Element;
61
- declare function CopyAction({
62
- text,
63
- label
64
- }: {
46
+ }): import("react").JSX.Element;
47
+ declare function CopyAction({ text, label }: {
65
48
  text: string;
66
49
  label?: string;
67
- }): _$react.JSX.Element;
50
+ }): import("react").JSX.Element;
68
51
  //#endregion
69
52
  //#region src/components/agent/transcript-variant.d.ts
70
53
  type TranscriptVariant = 'cards' | 'terminal';
71
- declare function TranscriptVariantProvider({
72
- value,
73
- children
74
- }: {
54
+ declare function TranscriptVariantProvider({ value, children }: {
75
55
  value: TranscriptVariant;
76
56
  children: ReactNode;
77
- }): _$react.JSX.Element;
57
+ }): import("react").JSX.Element;
78
58
  declare function useTranscriptVariant(): TranscriptVariant;
79
59
  type TranscriptDensity = 'comfortable' | 'compact';
80
- declare function TranscriptDensityProvider({
81
- value,
82
- children
83
- }: {
60
+ declare function TranscriptDensityProvider({ value, children }: {
84
61
  value: TranscriptDensity;
85
62
  children: ReactNode;
86
- }): _$react.JSX.Element;
63
+ }): import("react").JSX.Element;
87
64
  declare function useTranscriptDensity(): TranscriptDensity;
88
65
  type TranscriptFont = 'sans' | 'mono';
89
66
  //#endregion
@@ -168,40 +145,7 @@ type SessionVitals = {
168
145
  itemCount: number;
169
146
  totalCostUsd: number;
170
147
  };
171
- declare function SessionPanel({
172
- client,
173
- sessionId,
174
- header,
175
- panelSurface,
176
- statusSurface,
177
- statusPlacement,
178
- onOpenPanel,
179
- onVitals,
180
- transcriptVariant,
181
- transcriptDensity,
182
- transcriptFont,
183
- affordances,
184
- terminalMetrics,
185
- scrubber,
186
- bookmarks,
187
- onToggleBookmark,
188
- reveal,
189
- openSubagent,
190
- onSubagentChange,
191
- stickyPrompt,
192
- controlsSurface,
193
- onControls,
194
- focusComposerOnClick,
195
- unseen,
196
- readOnly,
197
- toolHost,
198
- clientTools,
199
- cacheTranscript,
200
- emptyState,
201
- onLinkClick,
202
- fontSize,
203
- className
204
- }: SessionPanelProps): _$react.JSX.Element;
148
+ declare function SessionPanel({ client, sessionId, header, panelSurface, statusSurface, statusPlacement, onOpenPanel, onVitals, transcriptVariant, transcriptDensity, transcriptFont, affordances, terminalMetrics, scrubber, bookmarks, onToggleBookmark, reveal, openSubagent, onSubagentChange, stickyPrompt, controlsSurface, onControls, focusComposerOnClick, unseen, readOnly, toolHost, clientTools, cacheTranscript, emptyState, onLinkClick, fontSize, className }: SessionPanelProps): import("react").JSX.Element;
205
149
  //#endregion
206
150
  export { permissionModeChoices as C, PermissionModeSelectProps as S, useAffordances as _, SessionVitals as a, PermissionModeMeta as b, TranscriptDensityProvider as c, TranscriptVariantProvider as d, useTranscriptDensity as f, WithActions as g, TerminalAffordances as h, SessionSurfacePanel as i, TranscriptFont as l, CopyAction as m, SessionPanel as n, TerminalMetrics as o, useTranscriptVariant as p, SessionPanelProps as r, TranscriptDensity as s, SessionControls as t, TranscriptVariant as u, PERMISSION_MODES as v, permissionModeMeta as w, PermissionModeSelect as x, PermissionModeChoice as y };
207
- //# sourceMappingURL=SessionPanel-E_L_ldQ5.d.mts.map
151
+ //# sourceMappingURL=SessionPanel-yNO60Tzw.d.mts.map
@@ -13,4 +13,4 @@ declare function toolInputPreview(input: unknown, max?: number): string;
13
13
  declare function friendlyModel(id: string | undefined): string | undefined;
14
14
  //#endregion
15
15
  export { formatDuration as a, formatRelativeTime as c, rateLimitWindowSeconds as d, toolInputPreview as f, formatCountdown as i, formatTokens as l, formatBytes as n, formatRateLimitWindow as o, formatCost as r, formatRateLimitWindowLong as s, formatAgoPrecise as t, friendlyModel as u };
16
- //# sourceMappingURL=format-B8ZM9LPy.d.mts.map
16
+ //# sourceMappingURL=format-C_lpFq0l.d.mts.map
@@ -1,6 +1,5 @@
1
- import { a as formatDuration, c as formatRelativeTime, d as rateLimitWindowSeconds, f as toolInputPreview, i as formatCountdown, l as formatTokens, n as formatBytes, o as formatRateLimitWindow, r as formatCost, s as formatRateLimitWindowLong, t as formatAgoPrecise, u as friendlyModel } from "./format-B8ZM9LPy.mjs";
1
+ import { a as formatDuration, c as formatRelativeTime, d as rateLimitWindowSeconds, f as toolInputPreview, i as formatCountdown, l as formatTokens, n as formatBytes, o as formatRateLimitWindow, r as formatCost, s as formatRateLimitWindowLong, t as formatAgoPrecise, u as friendlyModel } from "./format-C_lpFq0l.mjs";
2
2
  import { ModelOption, RateLimitInfo, SessionStatus } from "@workerdeck/protocol";
3
-
4
3
  //#region src/lib/status.d.ts
5
4
  type StatusSeverity = 'none' | 'warning' | 'error';
6
5
  type StatusPresentation = {
package/build/format.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { S as toolInputPreview, _ as formatRateLimitWindowLong, a as meterTintClass, b as friendlyModel, c as tightestWindow, d as formatAgoPrecise, f as formatBytes, g as formatRateLimitWindow, h as formatDuration, i as meterSeverity, l as usageWindow, m as formatCountdown, n as currentModel, o as modelLabel, p as formatCost, r as meterColorClass, s as statusPresentation, t as contextSeverity, u as windowLabel, v as formatRelativeTime, x as rateLimitWindowSeconds, y as formatTokens } from "./status-C0HSLZas.mjs";
1
+ import { S as toolInputPreview, _ as formatRateLimitWindowLong, a as meterTintClass, b as friendlyModel, c as tightestWindow, d as formatAgoPrecise, f as formatBytes, g as formatRateLimitWindow, h as formatDuration, i as meterSeverity, l as usageWindow, m as formatCountdown, n as currentModel, o as modelLabel, p as formatCost, r as meterColorClass, s as statusPresentation, t as contextSeverity, u as windowLabel, v as formatRelativeTime, x as rateLimitWindowSeconds, y as formatTokens } from "./status-Dm9INVTt.mjs";
2
2
  export { contextSeverity, currentModel, formatAgoPrecise, formatBytes, formatCost, formatCountdown, formatDuration, formatRateLimitWindow, formatRateLimitWindowLong, formatRelativeTime, formatTokens, friendlyModel, meterColorClass, meterSeverity, meterTintClass, modelLabel, rateLimitWindowSeconds, statusPresentation, tightestWindow, toolInputPreview, usageWindow, windowLabel };