@workerdeck/ui 3.1.0 → 3.3.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/index.d.mts +7 -2
- package/build/index.mjs +276 -60
- package/build/index.mjs.map +1 -1
- package/build/scoped.css +36 -0
- package/build/{use-path-links-C6Fh5zdx.mjs → use-path-links-Cby4i_VL.mjs} +6 -5
- package/build/use-path-links-Cby4i_VL.mjs.map +1 -0
- package/build/workspace.mjs +1 -1
- package/package.json +4 -4
- package/src/components/agent/SessionBrowser.tsx +82 -17
- package/src/components/agent/SessionFilters.tsx +2 -2
- package/src/components/agent/SessionGroups.tsx +248 -0
- package/src/components/terminal/items.tsx +2 -2
- package/src/components/terminal/tool-run.ts +6 -3
- package/src/index.ts +7 -1
- package/build/use-path-links-C6Fh5zdx.mjs.map +0 -1
package/build/scoped.css
CHANGED
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
57
57
|
--default-font-family: var(--cw-font-sans);
|
|
58
58
|
--default-mono-font-family: var(--cw-font-mono);
|
|
59
|
+
--color-accent: var(--accent);
|
|
59
60
|
--text-body: 0.9375rem;
|
|
60
61
|
--text-body-sm: 0.8125rem;
|
|
61
62
|
}
|
|
@@ -445,12 +446,18 @@
|
|
|
445
446
|
.wd-root .mb-3 {
|
|
446
447
|
margin-bottom: calc(var(--spacing) * 3);
|
|
447
448
|
}
|
|
449
|
+
.wd-root .-ml-1\.5 {
|
|
450
|
+
margin-left: calc(var(--spacing) * -1.5);
|
|
451
|
+
}
|
|
448
452
|
.wd-root .ml-0 {
|
|
449
453
|
margin-left: 0px;
|
|
450
454
|
}
|
|
451
455
|
.wd-root .ml-1 {
|
|
452
456
|
margin-left: var(--spacing);
|
|
453
457
|
}
|
|
458
|
+
.wd-root .ml-auto {
|
|
459
|
+
margin-left: auto;
|
|
460
|
+
}
|
|
454
461
|
.wd-root .block {
|
|
455
462
|
display: block;
|
|
456
463
|
}
|
|
@@ -632,6 +639,9 @@
|
|
|
632
639
|
.wd-root .min-h-0 {
|
|
633
640
|
min-height: 0px;
|
|
634
641
|
}
|
|
642
|
+
.wd-root .min-h-5 {
|
|
643
|
+
min-height: calc(var(--spacing) * 5);
|
|
644
|
+
}
|
|
635
645
|
.wd-root .min-h-28 {
|
|
636
646
|
min-height: calc(var(--spacing) * 28);
|
|
637
647
|
}
|
|
@@ -964,6 +974,9 @@
|
|
|
964
974
|
.wd-root .self-center {
|
|
965
975
|
align-self: center;
|
|
966
976
|
}
|
|
977
|
+
.wd-root .self-start {
|
|
978
|
+
align-self: flex-start;
|
|
979
|
+
}
|
|
967
980
|
.wd-root .truncate {
|
|
968
981
|
overflow: hidden;
|
|
969
982
|
text-overflow: ellipsis;
|
|
@@ -1038,6 +1051,10 @@
|
|
|
1038
1051
|
border-left-style: var(--tw-border-style);
|
|
1039
1052
|
border-left-width: 4px;
|
|
1040
1053
|
}
|
|
1054
|
+
.wd-root .border-dashed {
|
|
1055
|
+
--tw-border-style: dashed;
|
|
1056
|
+
border-style: dashed;
|
|
1057
|
+
}
|
|
1041
1058
|
.wd-root .border-\[var\(--wd-shell-accent\)\] {
|
|
1042
1059
|
border-color: var(--wd-shell-accent);
|
|
1043
1060
|
}
|
|
@@ -1236,6 +1253,12 @@
|
|
|
1236
1253
|
.wd-root .bg-red-100 {
|
|
1237
1254
|
background-color: var(--color-red-100);
|
|
1238
1255
|
}
|
|
1256
|
+
.wd-root .bg-row-hover\/50 {
|
|
1257
|
+
background-color: var(--row-hover);
|
|
1258
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1259
|
+
background-color: color-mix(in oklab, var(--row-hover) 50%, transparent);
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1239
1262
|
.wd-root .bg-row-selected {
|
|
1240
1263
|
background-color: var(--row-selected);
|
|
1241
1264
|
}
|
|
@@ -1761,6 +1784,10 @@
|
|
|
1761
1784
|
--tw-shadow: var(--shadow-xs);
|
|
1762
1785
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1763
1786
|
}
|
|
1787
|
+
.wd-root .shadow-\[inset_0_2px_0_0_var\(--color-accent\)\] {
|
|
1788
|
+
--tw-shadow: inset 0 2px 0 0 var(--tw-shadow-color, var(--color-accent));
|
|
1789
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1790
|
+
}
|
|
1764
1791
|
.wd-root .shadow-lg {
|
|
1765
1792
|
--tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
1766
1793
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
@@ -1886,6 +1913,12 @@
|
|
|
1886
1913
|
.wd-root .group-hover\:opacity-100:is(:where(.group):hover *) {
|
|
1887
1914
|
opacity: 100%;
|
|
1888
1915
|
}
|
|
1916
|
+
.wd-root .group-hover\/heading\:opacity-60:is(:where(.group\/heading):hover *) {
|
|
1917
|
+
opacity: 60%;
|
|
1918
|
+
}
|
|
1919
|
+
.wd-root .group-hover\/heading\:opacity-100:is(:where(.group\/heading):hover *) {
|
|
1920
|
+
opacity: 100%;
|
|
1921
|
+
}
|
|
1889
1922
|
}
|
|
1890
1923
|
.wd-root .placeholder\:text-fg-4::placeholder {
|
|
1891
1924
|
color: var(--fg-4);
|
|
@@ -1940,6 +1973,9 @@
|
|
|
1940
1973
|
.wd-root .focus-within\:border-ring:focus-within {
|
|
1941
1974
|
border-color: var(--ring);
|
|
1942
1975
|
}
|
|
1976
|
+
.wd-root .focus-within\:opacity-100:focus-within {
|
|
1977
|
+
opacity: 100%;
|
|
1978
|
+
}
|
|
1943
1979
|
.wd-root .focus-within\:ring-2:focus-within {
|
|
1944
1980
|
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
1945
1981
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
@@ -9,7 +9,7 @@ import { ArrowDown, ArrowDownCircle, ArrowLeft, ArrowUp, AtSign, Bot, BotOff, Br
|
|
|
9
9
|
import { Menu } from "@base-ui/react/menu";
|
|
10
10
|
import { Dialog } from "@base-ui/react/dialog";
|
|
11
11
|
import { Tooltip } from "@base-ui/react/tooltip";
|
|
12
|
-
import { PRICING_NOTE, PROTOCOL_VERSION, SHELL_INTERACTIVE_NOTE, UNPRICED_WARN_SHARE, canonicalModel, costOf, costOfByModel, errorMessage, isPeerSendTool, mergeUsage, orderUsageWindows, parseTodoWriteInput, parseUserQuestions, peerDeliveredTo, pricingAgeNote, rateFor, resolvePosix, sessionTasks, subagentLabel, taskCountLabel, taskSummary, toolTitle, totalTokens, unknownBasisModels, usageInfos, usageIsStale } from "@workerdeck/protocol";
|
|
12
|
+
import { PRICING_NOTE, PROTOCOL_VERSION, SHELL_INTERACTIVE_NOTE, UNPRICED_WARN_SHARE, canonicalModel, costOf, costOfByModel, errorMessage, isPeerSendTool, mergeUsage, orderUsageWindows, parseTodoWriteInput, parseUserQuestions, peerDeliveredTo, peerShortId, pricingAgeNote, rateFor, resolvePosix, sessionTasks, subagentLabel, taskCountLabel, taskSummary, toolTitle, totalTokens, unknownBasisModels, usageInfos, usageIsStale } from "@workerdeck/protocol";
|
|
13
13
|
import { recapLine, scanPromptTokens, summarizeSince, useAsync, useAttachments, useClaudeSession, useDraft, useHostFileSearch, usePeerSessions, useProfileUsage, useShellTerminal, useToolCallHost } from "@workerdeck/react";
|
|
14
14
|
import { Streamdown, defaultRehypePlugins } from "streamdown";
|
|
15
15
|
import { StickToBottom, useStickToBottomContext } from "use-stick-to-bottom";
|
|
@@ -5908,7 +5908,8 @@ function isPeerSend(item) {
|
|
|
5908
5908
|
return item.kind === "tool_call" && isPeerSendTool(item.name);
|
|
5909
5909
|
}
|
|
5910
5910
|
function peerName(origin) {
|
|
5911
|
-
|
|
5911
|
+
if (!origin.name) return peerShortId(origin.sessionId);
|
|
5912
|
+
return origin.hostId ? `${origin.name}@${origin.hostId}` : origin.name;
|
|
5912
5913
|
}
|
|
5913
5914
|
function peerNamesOf(items) {
|
|
5914
5915
|
const names = /* @__PURE__ */ new Map();
|
|
@@ -5929,7 +5930,7 @@ function peerSendTarget(item, names) {
|
|
|
5929
5930
|
const addressed = item.input?.sessionId;
|
|
5930
5931
|
const sessionId = delivered?.sessionId ?? (typeof addressed === "string" ? addressed : void 0);
|
|
5931
5932
|
if (sessionId === void 0) return "peer";
|
|
5932
|
-
return delivered?.name ?? names?.get(sessionId) ?? sessionId
|
|
5933
|
+
return delivered?.name ?? names?.get(sessionId) ?? peerShortId(sessionId);
|
|
5933
5934
|
}
|
|
5934
5935
|
function peerSendText(item) {
|
|
5935
5936
|
const text = item.input?.text;
|
|
@@ -6305,7 +6306,7 @@ function clipToChars(lines, maxChars) {
|
|
|
6305
6306
|
return out;
|
|
6306
6307
|
}
|
|
6307
6308
|
function peerLabel(origin) {
|
|
6308
|
-
const who = origin.name ? `${origin.name} (${origin.sessionId
|
|
6309
|
+
const who = origin.name ? `${origin.name} (${peerShortId(origin.sessionId)})` : peerShortId(origin.sessionId);
|
|
6309
6310
|
return `message from ${origin.engine ? `${origin.engine} session ` : "session "}${who}`;
|
|
6310
6311
|
}
|
|
6311
6312
|
function PeerRow({ glyph, who, body, tone = "peer", clip }) {
|
|
@@ -13735,4 +13736,4 @@ function resolveAgainstCwd(path, cwd) {
|
|
|
13735
13736
|
//#endregion
|
|
13736
13737
|
export { ShellActionsProvider as $, Spinner as $t, PermissionPrompt as A, buttonVariants as An, PromptTokenText as At, ModelSelect as B, rankPeerSessions as Bt, SessionInfoDialog as C, SelectValue as Cn, Blank as Ct, QUESTION_BEHAVIORS as D, Badge as Dn, CopyAction as Dt, TerminalPermissionPrompt as E, Input as En, AgentWriteIcon as Et, SubagentStrip as F, TranscriptVariantProvider as Ft, useMcpPanel as G, mentionTrigger as Gt, McpDialog as H, commandTrigger as Ht, PERMISSION_MODES as I, useTranscriptVariant as It, ContextDialog as J, plainTextToSegments as Jt, HostFilesDialog as K, usePromptAreaState as Kt, PermissionModeSelect as L, matchClientCommand as Lt, useShellFrame as M, SkillNamesProvider as Mt, ShellTerminal as N, isMutatingTool as Nt, QuestionPrompt as O, badgeVariants as On, WithActions as Ot, ShellStrip as P, toolIcon as Pt, TerminalSurface as Q, CodeBlock as Qt, permissionModeChoices as R, mergeComposerRows as Rt, STATUS_META as S, SelectTrigger as Sn, Band as St, TerminalQuestionPrompt as T, Textarea as Tn, Row as Tt, McpPanel as U, hashtagTrigger as Ut, SkillsDialog as V, skillPrompt as Vt, McpPanelActions as W, launchTrigger as Wt, contextNote as X, ProgressRing as Xt, ContextPanel as Y, segmentsToPlainText as Yt, Composer as Z, Splitter as Zt, Loader as _, OptionSelect as _n, FileLinkProvider as _t, UsageDialog as a, Dialog$1 as an, shellGrantable as at, ConversationScrollButton as b, SelectItem as bn, TerminalDiff as bt, TerminalTranscript as c, DialogContent as cn, shellInfoStatusText as ct, Reasoning as d, DialogTrigger as dn, useToolTitle as dt, CopyButton as en, useShellActions as et, Message as f, Menu$1 as fn, TerminalMarkdown as ft, SessionEmptyState as g, MenuTrigger as gn, useOpenImage as gt, TerminalItemView as h, MenuSeparator as hn, ViewableImage as ht, SessionPanel as i, TooltipProvider as in, shellAgentWriteLabel as it, Response as j, cn as jn, SessionNamesProvider as jt, parseUserQuestions as k, Button as kn, useAffordances as kt, Transcript as l, DialogHeader as ln, shellTitle as lt, FileCard as m, MenuItem as mn, ImageViewerProvider as mt, usePathLinks as n, Tip as nn, SHELL_GLYPH as nt, UsageMeters as o, DialogBody as on, shellInfoFailed as ot, MessageContent as p, MenuContent as pn, ImageViewer as pt, EntryIcon as q, PromptArea as qt, matchPath as r, TooltipContent as rn, SHELL_KILL_GLYPH as rt, useMinuteClock as s, DialogClose as sn, shellInfoLabel as st, resolveAgainstCwd as t, copyText as tn, SHELL_AGENT_WRITE_NOTE as tt, ToolCallCard as u, DialogRow as un, ToolTitleProvider as ut, Conversation as v, Select$1 as vn, useFileLinks as vt, SessionInfoPanel as w, PortalScope as wn, Ink as wt, StatusBar as x, SelectItemText as xn, previewPatch as xt, ConversationContent as y, SelectContent as yn, parseFileLink as yt, permissionModeMeta as z, rankComposerRows as zt };
|
|
13737
13738
|
|
|
13738
|
-
//# sourceMappingURL=use-path-links-
|
|
13739
|
+
//# sourceMappingURL=use-path-links-Cby4i_VL.mjs.map
|