Skip to content

A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.

Merge main into Bot capabilities

lulu feizhu03ac05d002b4
diff --cc ds-bot/client.js
index 6d829457,784d4e9b..9a76dedf
--- a/ds-bot/client.js
+++ b/ds-bot/client.js
@@@ -1149,8 -1140,8 +1169,8 @@@ function bodyOf(def, paint, flat = fals
return "";
}
}
--var eyeMarkup = ([cx, cy, w, h31, tilt]) => `<g transform="translate(${cx} ${cy}) rotate(${tilt})"><rect class="bt-eye" x="${-w / 2}" y="${-h31 / 2}" width="${w}" height="${h31}" rx="${w / 2}"/></g>`;
--var happyEyeMarkup = ([cx, cy, w, h31, tilt]) => `<g transform="translate(${cx} ${cy}) rotate(${tilt})"><path class="bt-eye-happy" opacity="0" d="M${-w * 0.62} ${h31 * 0.14}Q0 ${-h31 * 0.42} ${w * 0.62} ${h31 * 0.14}" fill="none" stroke="#000" stroke-width="${w * 0.5}" stroke-linecap="round"/></g>`;
++var eyeMarkup = ([cx, cy, w, h32, tilt]) => `<g transform="translate(${cx} ${cy}) rotate(${tilt})"><rect class="bt-eye" x="${-w / 2}" y="${-h32 / 2}" width="${w}" height="${h32}" rx="${w / 2}"/></g>`;
++var happyEyeMarkup = ([cx, cy, w, h32, tilt]) => `<g transform="translate(${cx} ${cy}) rotate(${tilt})"><path class="bt-eye-happy" opacity="0" d="M${-w * 0.62} ${h32 * 0.14}Q0 ${-h32 * 0.42} ${w * 0.62} ${h32 * 0.14}" fill="none" stroke="#000" stroke-width="${w * 0.5}" stroke-linecap="round"/></g>`;
var maskBox = (size) => `maskUnits="userSpaceOnUse" x="${-size}" y="${-size}" width="${size * 3}" height="${size * 3}"`;
var holes = (def, eyes) => `<rect x="${-def.size}" y="${-def.size}" width="${def.size * 3}" height="${def.size * 3}" fill="#fff"/>${eyes}`;
var MASK_ID = "%MASK%";
@@@ -1549,12 -1585,12 +1614,12 @@@ function liveSprings(apply2)
const dt = Math.min(0.5, Math.max(1e-3, (now - last) / 1e3));
last = now;
const steps = Math.ceil(dt * 240);
-- const h31 = dt / steps;
++ const h32 = dt / steps;
let moving = false;
for (const value of values.values()) {
for (let index = 0; index < steps; index += 1) {
-- value.v += (-value.k * (value.x - value.to) - value.c * value.v) * h31;
-- value.x += value.v * h31;
++ value.v += (-value.k * (value.x - value.to) - value.c * value.v) * h32;
++ value.x += value.v * h32;
}
if (Math.abs(value.x - value.to) < 0.05 && Math.abs(value.v) < 1) {
value.x = value.to;
@@@ -7889,38 -7713,38 +7955,38 @@@ function CreateBot({ roster, actions, s
}
}
}),
- clash ? (0, import_react18.createElement)("span", { className: "bt-note bt-danger" }, t("A Bot named {name} already exists", { name: finalName })) : null
- problem ? (0, import_react17.createElement)("span", { className: "bt-note bt-danger" }, hostText(problem)) : clash ? (0, import_react17.createElement)("span", { className: "bt-note bt-danger" }, t("A Bot named {name} already exists", { name: finalName })) : null
++ problem ? (0, import_react18.createElement)("span", { className: "bt-note bt-danger" }, hostText(problem)) : clash ? (0, import_react18.createElement)("span", { className: "bt-note bt-danger" }, t("A Bot named {name} already exists", { name: finalName })) : null
),
- (0, import_react17.createElement)(
+ (0, import_react18.createElement)(
"div",
{ className: "bt-field" },
- (0, import_react17.createElement)("span", { className: "bt-field-label" }, t("Model")),
- (0, import_react17.createElement)(ModelMenu, { bot: { id: "new-bot", name: finalName, model: model || void 0, effort }, roster, actions, wide: true, onPick: (ref) => {
+ (0, import_react18.createElement)("span", { className: "bt-field-label" }, t("Model")),
+ (0, import_react18.createElement)(ModelMenu, { bot: { id: "new-bot", name: finalName, model: model || void 0, effort }, roster, actions, wide: true, onPick: (ref) => {
setModel(ref);
setEffort(void 0);
}, onPickEffort: setEffort }),
- (0, import_react17.createElement)("span", { className: "bt-note" }, (roster.models ?? []).length > 0 ? t("The Bot runs on this model. You can change it later in its details.") : t("Add a provider and a model in DeepSeek Harness first, or pick one in the Bot's chat later."))
+ (0, import_react18.createElement)("span", { className: "bt-note" }, (roster.models ?? []).length > 0 ? t("The Bot runs on this model. You can change it later in its details.") : t("Add a provider and a model in DeepSeek Harness first, or pick one in the Bot's chat later."))
),
- error ? (0, import_react17.createElement)("div", { className: "bt-error", role: "alert", style: { padding: 0 } }, error) : null,
- (0, import_react17.createElement)(
+ error ? (0, import_react18.createElement)("div", { className: "bt-error", role: "alert", style: { padding: 0 } }, error) : null,
+ (0, import_react18.createElement)(
"div",
{ className: "bt-create-foot" },
- (0, import_react17.createElement)("button", { type: "button", className: "bt-soft", onClick: onBack }, canGoBack ? t("Back") : t("Cancel")),
- (0, import_react17.createElement)("button", { type: "button", className: "bt-send bt-create-go", disabled: busy || clash || Boolean(problem), onClick: () => void create() }, busy ? t("Creating…") : t("Create"))
+ (0, import_react18.createElement)("button", { type: "button", className: "bt-soft", onClick: onBack }, canGoBack ? t("Back") : t("Cancel")),
- (0, import_react18.createElement)("button", { type: "button", className: "bt-send bt-create-go", disabled: busy || clash, onClick: () => void create() }, busy ? t("Creating…") : t("Create"))
++ (0, import_react18.createElement)("button", { type: "button", className: "bt-send bt-create-go", disabled: busy || clash || Boolean(problem), onClick: () => void create() }, busy ? t("Creating…") : t("Create"))
)
);
- if (inline) return (0, import_react17.createElement)("div", { ref: frame, className: "bt-create-inline", role: "group", "aria-label": t("Create Bot") }, card);
- return (0, import_react17.createElement)(
+ if (inline) return (0, import_react18.createElement)("div", { ref: frame, className: "bt-create-inline", role: "group", "aria-label": t("Create Bot") }, card);
+ return (0, import_react18.createElement)(
"div",
{ className: "bt-create", role: "dialog", "aria-label": t("Create Bot") },
- (0, import_react17.createElement)(
+ (0, import_react18.createElement)(
"div",
{ className: "bt-create-head" },
- canGoBack ? (0, import_react17.createElement)("button", { type: "button", className: "bt-icon-btn", "aria-label": t("Back to new chat"), onClick: onBack }, (0, import_react17.createElement)(ChevronLeftIcon)) : (0, import_react17.createElement)("span", { className: "bt-create-gap" }),
- (0, import_react17.createElement)("span", { className: "bt-create-title" }, t("Create Bot")),
- (0, import_react17.createElement)("button", { type: "button", className: "bt-icon-btn", "aria-label": t("Close"), onClick: () => actions.closeOverlay() }, (0, import_react17.createElement)(CloseIcon))
+ canGoBack ? (0, import_react18.createElement)("button", { type: "button", className: "bt-icon-btn", "aria-label": t("Back to new chat"), onClick: onBack }, (0, import_react18.createElement)(ChevronLeftIcon)) : (0, import_react18.createElement)("span", { className: "bt-create-gap" }),
+ (0, import_react18.createElement)("span", { className: "bt-create-title" }, t("Create Bot")),
+ (0, import_react18.createElement)("button", { type: "button", className: "bt-icon-btn", "aria-label": t("Close"), onClick: () => actions.closeOverlay() }, (0, import_react18.createElement)(CloseIcon))
),
- (0, import_react17.createElement)("div", { className: "bt-create-body" }, card)
+ (0, import_react18.createElement)("div", { className: "bt-create-body" }, card)
);
}
@@@ -11578,40 -11401,40 +11644,40 @@@ var DIALOG_EXIT_MS = 160
var MENU_EXIT_MS3 = 120;
function Overlays({ useRoster, useUi, useSessions, useSessionStatus, useActivity, useRegistry, useBrowserPages, useBrowserTabs, useUpdate, actions }) {
const roster = useRoster((value) => value);
- const ui = useUi((value) => value);
+ const ui2 = useUi((value) => value);
useRegistry((value) => value);
const current = useSessions((list) => Object.values(list.byId).find((session) => (session?.retainedBy?.mainView ?? 0) > 0)?.id ?? null);
- const previous = (0, import_react30.useRef)(current);
- (0, import_react30.useEffect)(() => {
+ const previous = (0, import_react31.useRef)(current);
+ (0, import_react31.useEffect)(() => {
if (previous.current === current) return;
previous.current = current;
if (current) actions.followPanel?.(current);
}, [current]);
- const open = ui.details ? { id: ui.details, view: ui.view ?? "details", renaming: ui.renaming, tab: ui.tab } : null;
+ const open = ui2.details ? { id: ui2.details, view: ui2.view ?? "details", renaming: ui2.renaming, tab: ui2.tab } : null;
- const [kept, setKept] = (0, import_react30.useState)(open);
- (0, import_react30.useEffect)(() => {
+ const [kept, setKept] = (0, import_react31.useState)(open);
+ (0, import_react31.useEffect)(() => {
if (open) {
setKept(open);
return void 0;
}
const timer = setTimeout(() => setKept(null), PANEL_LINGER_MS);
return () => clearTimeout(timer);
- }, [ui.details, ui.view, ui.renaming, ui.tab]);
+ }, [ui2.details, ui2.view, ui2.renaming, ui2.tab]);
const pane = open ?? kept;
- const [settings, settingsLeaving] = useLinger(ui.settings, DIALOG_EXIT_MS);
- const [memory, memoryLeaving] = useLinger(ui.memory && roster.byId[ui.memory] ? ui.memory : null, DIALOG_EXIT_MS);
- const [menu, menuLeaving] = useLinger(ui.menu, MENU_EXIT_MS3);
+ const [settings, settingsLeaving] = useLinger(ui2.settings, DIALOG_EXIT_MS);
+ const [memory, memoryLeaving] = useLinger(ui2.memory && roster.byId[ui2.memory] ? ui2.memory : null, DIALOG_EXIT_MS);
+ const [menu, menuLeaving] = useLinger(ui2.menu, MENU_EXIT_MS3);
- return (0, import_react30.createElement)(
- import_react30.Fragment,
+ return (0, import_react31.createElement)(
+ import_react31.Fragment,
null,
- pane ? (0, import_react_dom8.createPortal)((0, import_react30.createElement)(BotPanel, { pane, leaving: open === null, roster, actions, useSessions, useSessionStatus, useActivity, useBrowserTabs, useBrowserPages }), document.body) : null,
- ui2.newChat ? (0, import_react_dom8.createPortal)((0, import_react30.createElement)(NewChat, { key: ui2.newChat, mode: ui2.newChat, roster, actions }), document.body) : null,
- ui2.palette ? (0, import_react_dom8.createPortal)((0, import_react30.createElement)(CommandPalette, { key: ui2.palette.token, start: ui2.palette.query, token: ui2.palette.token, roster, actions, useSessions }), document.body) : null,
- ui2.exchange ? (0, import_react_dom8.createPortal)((0, import_react30.createElement)(ExchangeDialog, { pair: ui2.exchange, roster, actions }), document.body) : null,
- ui2.voice ? (0, import_react_dom8.createPortal)((0, import_react30.createElement)(VoiceMode, { key: ui2.voice, sessionId: ui2.voice, roster, actions, useSessions, useSessionStatus }), document.body) : null,
- menu ? (0, import_react_dom8.createPortal)((0, import_react30.createElement)(ContextMenu, { key: `${menu.kind ?? ""}:${menu.id}:${menu.x}:${menu.y}`, menu, roster, actions, leaving: menuLeaving }), document.body) : null,
- settings ? (0, import_react_dom8.createPortal)((0, import_react30.createElement)(SettingsDialog, { page: settings.page, id: settings.id, roster, actions, useUpdate, leaving: settingsLeaving }), document.body) : null,
- memory && roster.byId[memory] ? (0, import_react_dom8.createPortal)((0, import_react30.createElement)(MemoryDialog, { key: memory, bot: roster.byId[memory], actions, leaving: memoryLeaving }), document.body) : null
+ pane ? (0, import_react_dom8.createPortal)((0, import_react31.createElement)(BotPanel, { pane, leaving: open === null, roster, actions, useSessions, useSessionStatus, useActivity, useBrowserTabs, useBrowserPages }), document.body) : null,
- ui.newChat ? (0, import_react_dom8.createPortal)((0, import_react31.createElement)(NewChat, { key: ui.newChat, mode: ui.newChat, roster, actions }), document.body) : null,
- ui.palette ? (0, import_react_dom8.createPortal)((0, import_react31.createElement)(CommandPalette, { key: ui.palette.token, start: ui.palette.query, token: ui.palette.token, roster, actions, useSessions }), document.body) : null,
- ui.exchange ? (0, import_react_dom8.createPortal)((0, import_react31.createElement)(ExchangeDialog, { pair: ui.exchange, roster, actions }), document.body) : null,
- ui.voice ? (0, import_react_dom8.createPortal)((0, import_react31.createElement)(VoiceMode, { key: ui.voice, sessionId: ui.voice, roster, actions, useSessions, useSessionStatus }), document.body) : null,
++ ui2.newChat ? (0, import_react_dom8.createPortal)((0, import_react31.createElement)(NewChat, { key: ui2.newChat, mode: ui2.newChat, roster, actions }), document.body) : null,
++ ui2.palette ? (0, import_react_dom8.createPortal)((0, import_react31.createElement)(CommandPalette, { key: ui2.palette.token, start: ui2.palette.query, token: ui2.palette.token, roster, actions, useSessions }), document.body) : null,
++ ui2.exchange ? (0, import_react_dom8.createPortal)((0, import_react31.createElement)(ExchangeDialog, { pair: ui2.exchange, roster, actions }), document.body) : null,
++ ui2.voice ? (0, import_react_dom8.createPortal)((0, import_react31.createElement)(VoiceMode, { key: ui2.voice, sessionId: ui2.voice, roster, actions, useSessions, useSessionStatus }), document.body) : null,
+ menu ? (0, import_react_dom8.createPortal)((0, import_react31.createElement)(ContextMenu, { key: `${menu.kind ?? ""}:${menu.id}:${menu.x}:${menu.y}`, menu, roster, actions, leaving: menuLeaving }), document.body) : null,
+ settings ? (0, import_react_dom8.createPortal)((0, import_react31.createElement)(SettingsDialog, { page: settings.page, id: settings.id, roster, actions, useUpdate, leaving: settingsLeaving }), document.body) : null,
+ memory && roster.byId[memory] ? (0, import_react_dom8.createPortal)((0, import_react31.createElement)(MemoryDialog, { key: memory, bot: roster.byId[memory], actions, leaving: memoryLeaving }), document.body) : null
);
}
@@@ -12441,6 -12264,117 +12507,117 @@@ function writeMode(mode, storage = glob
}
}
+ // src/client/user-message.js
-var import_react31 = require("react");
++var import_react32 = require("react");
+ var ui = __toESM(require("@deepseek-ai/dsh-client-ui-primitives"), 1);
+ var canDrawUserMessages = () => typeof ui.projectUserText === "function";
+ function contentParts(content) {
+ const texts2 = [];
+ const attachments = [];
+ const rest = [];
+ for (const block of Array.isArray(content) ? content : []) {
+ if (block?.type === "text" && typeof block.text === "string") texts2.push(block.text);
+ else if ((block?.type === "image" || block?.type === "file") && block.attachment !== void 0) attachments.push(block);
+ else rest.push(block);
+ }
+ return { text: texts2.join("\n"), attachments, rest };
+ }
+ function mentionableBots(roster, sessionId) {
+ const room2 = roster.roomsById[sessionId];
+ if (room2) return room2.members.map((id) => roster.byId[id]).filter(Boolean);
+ return roster.byId[sessionId] ? roster.bots : [];
+ }
+ function userTextParts(text, bots, referenceLabels = []) {
+ const parts = [];
+ let cursor = 0;
+ for (const span of mentionSpans(text, bots, { references: referenceLabels })) {
+ if (!span.bot) continue;
+ if (span.start > cursor) parts.push({ text: text.slice(cursor, span.start) });
+ parts.push({ bot: span.bot, label: text.slice(span.start + 1, span.end) });
+ cursor = span.end;
+ }
+ if (cursor < text.length) parts.push({ text: text.slice(cursor) });
+ return parts;
+ }
+ function UserText({ text, bots, referenceLabels, skillNames, references, actions }) {
- return userTextParts(text, bots, referenceLabels).map((part, index) => part.bot ? (0, import_react31.createElement)(
++ return userTextParts(text, bots, referenceLabels).map((part, index) => part.bot ? (0, import_react32.createElement)(
+ "button",
+ { key: index, type: "button", className: "bt-umention", title: `@${part.bot.name}`, onClick: () => actions.openSession(part.bot.id) },
- (0, import_react31.createElement)(BotMark, { bot: part.bot, size: 16 }),
++ (0, import_react32.createElement)(BotMark, { bot: part.bot, size: 16 }),
+ part.label
- ) : (0, import_react31.createElement)(import_react31.Fragment, { key: index }, ui.projectUserText(part.text, referenceLabels, skillNames, "skill", references)));
++ ) : (0, import_react32.createElement)(import_react32.Fragment, { key: index }, ui.projectUserText(part.text, referenceLabels, skillNames, "skill", references)));
+ }
+ function Attachments({ attachments, renderMessageImages }) {
+ const compact2 = attachments.length > 1;
- return (0, import_react31.createElement)("div", { className: "bt-uattach" }, attachments.map((block, index) => {
++ return (0, import_react32.createElement)("div", { className: "bt-uattach" }, attachments.map((block, index) => {
+ if (block.type === "image") {
- return renderMessageImages ? (0, import_react31.createElement)(import_react31.Fragment, { key: index }, renderMessageImages({ images: [{ attachment: block.attachment }], align: "end", compact: compact2 })) : null;
++ return renderMessageImages ? (0, import_react32.createElement)(import_react32.Fragment, { key: index }, renderMessageImages({ images: [{ attachment: block.attachment }], align: "end", compact: compact2 })) : null;
+ }
+ const file = block.attachment;
+ const meta = [ui.fileExtension?.(file.name)?.toUpperCase().slice(0, 8), ui.fileSizeText?.(file.bytes)].filter(Boolean).join(" · ");
- return (0, import_react31.createElement)(
++ return (0, import_react32.createElement)(
+ "span",
+ { key: index, className: "bt-ufile", title: file.name },
- ui.FileTypeIcon ? (0, import_react31.createElement)(ui.FileTypeIcon, { path: file.name, className: "bt-ufile-icon" }) : null,
- (0, import_react31.createElement)("span", { className: "bt-ufile-text" }, (0, import_react31.createElement)("span", { className: "bt-ufile-name" }, file.name), meta ? (0, import_react31.createElement)("span", { className: "bt-ufile-meta" }, meta) : null)
++ ui.FileTypeIcon ? (0, import_react32.createElement)(ui.FileTypeIcon, { path: file.name, className: "bt-ufile-icon" }) : null,
++ (0, import_react32.createElement)("span", { className: "bt-ufile-text" }, (0, import_react32.createElement)("span", { className: "bt-ufile-name" }, file.name), meta ? (0, import_react32.createElement)("span", { className: "bt-ufile-meta" }, meta) : null)
+ );
+ }));
+ }
+ function CopyButton({ text }) {
- const [copied, setCopied] = (0, import_react31.useState)(false);
++ const [copied, setCopied] = (0, import_react32.useState)(false);
+ const copy2 = () => {
+ void navigator.clipboard?.writeText(text).then(() => {
+ setCopied(true);
+ setTimeout(() => setCopied(false), 1e3);
+ });
+ };
- return (0, import_react31.createElement)("button", { type: "button", className: "bt-tool", "aria-label": copied ? t("Copied") : t("Copy"), title: copied ? t("Copied") : t("Copy"), onClick: copy2 }, copied ? (0, import_react31.createElement)(CheckIcon) : (0, import_react31.createElement)(CopyIcon));
++ return (0, import_react32.createElement)("button", { type: "button", className: "bt-tool", "aria-label": copied ? t("Copied") : t("Copy"), title: copied ? t("Copied") : t("Copy"), onClick: copy2 }, copied ? (0, import_react32.createElement)(CheckIcon) : (0, import_react32.createElement)(CopyIcon));
+ }
+ var clock3 = (time) => typeof time === "number" ? new Date(time).toLocaleTimeString(dateLocale(), { hour: "numeric", minute: "2-digit" }) : void 0;
+ function UserMessageCell({ node, sessionId, useRoster, actions, renderMessageImages, openFile, openSkill }) {
+ const roster = useRoster((value) => value);
+ const data = node.data ?? {};
+ const { text, attachments, rest } = contentParts(data.content);
+ const referenceLabels = data.referenceLabels ?? [];
+ const references = openFile && openSkill ? { openFile, openSkill } : void 0;
+ const steering = node.kind === "steering";
- return (0, import_react31.createElement)(
++ return (0, import_react32.createElement)(
+ "div",
+ { className: "bt-umsg", "data-steering": steering || void 0 },
- (0, import_react31.createElement)(
++ (0, import_react32.createElement)(
+ "div",
+ { className: "bt-ustack" },
- attachments.length > 0 ? (0, import_react31.createElement)(Attachments, { attachments, renderMessageImages }) : null,
- text !== "" || rest.length > 0 ? (0, import_react31.createElement)(
++ attachments.length > 0 ? (0, import_react32.createElement)(Attachments, { attachments, renderMessageImages }) : null,
++ text !== "" || rest.length > 0 ? (0, import_react32.createElement)(
+ "div",
+ { className: "bt-ubody", title: clock3(data.time) },
- (0, import_react31.createElement)(UserText, { text, bots: mentionableBots(roster, sessionId), referenceLabels, skillNames: data.skillNames ?? [], references, actions }),
- rest.map((block, index) => ui.JsonBlock ? (0, import_react31.createElement)(ui.JsonBlock, { key: index, label: t("Content"), payload: block }) : null)
++ (0, import_react32.createElement)(UserText, { text, bots: mentionableBots(roster, sessionId), referenceLabels, skillNames: data.skillNames ?? [], references, actions }),
++ rest.map((block, index) => ui.JsonBlock ? (0, import_react32.createElement)(ui.JsonBlock, { key: index, label: t("Content"), payload: block }) : null)
+ ) : null,
- referenceLabels.length > 0 ? (0, import_react31.createElement)("div", { className: "bt-urefs" }, t("Referenced {labels}", { labels: referenceLabels.join(t(", ")) })) : null
++ referenceLabels.length > 0 ? (0, import_react32.createElement)("div", { className: "bt-urefs" }, t("Referenced {labels}", { labels: referenceLabels.join(t(", ")) })) : null
+ ),
- text === "" ? null : (0, import_react31.createElement)("div", { className: "bt-utools" }, (0, import_react31.createElement)(CopyButton, { text }))
++ text === "" ? null : (0, import_react32.createElement)("div", { className: "bt-utools" }, (0, import_react32.createElement)(CopyButton, { text }))
+ );
+ }
+ var USER_MESSAGE_CSS = `
+ .bt-umsg{display:flex;flex-direction:row-reverse;align-items:center;justify-content:flex-start;gap:4px}
+ .bt-ustack{min-width:0;max-width:min(calc(var(--dsh-chat-content-width,748px) * .702),82%);display:flex;flex-direction:column;align-items:flex-end;gap:8px}
+ .bt-ubody{max-width:100%;box-sizing:border-box;background:var(--dsw-specific-bubble,var(--bt-user));color:var(--bt-user-ink);border-radius:18px;padding:7px 12px;font-size:var(--dsh-content-font-size,14px);line-height:calc(var(--dsh-content-font-size,14px) + 8px);white-space:pre-wrap;word-break:break-word}
+ .bt-ubody a{color:inherit}
+ .bt-umention{display:inline-flex;align-items:center;gap:3px;vertical-align:-3px;max-width:100%;padding:0 1px;border:0;background:none;color:inherit;font:inherit;font-weight:600;line-height:inherit;cursor:pointer;border-radius:6px;white-space:nowrap}
+ .bt-umention:hover{text-decoration:underline;text-underline-offset:2px}
+ .bt-umention>:first-child{flex:none}
+ .bt-uattach{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;max-width:100%}
+ .bt-ufile{display:inline-flex;align-items:center;gap:10px;box-sizing:border-box;width:240px;min-height:64px;padding:8px 12px;border-radius:18px;border:.5px solid var(--bt-line-2);background:var(--bt-card)}
+ .bt-ufile-icon{flex:none;width:28px;height:28px}
+ .bt-ufile-text{display:flex;flex-direction:column;min-width:0}
+ .bt-ufile-name{font-size:14px;line-height:22px;font-weight:500;color:var(--bt-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
+ .bt-ufile-meta{font-size:12px;line-height:15px;color:var(--bt-ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
+ .bt-urefs{font-size:13px;line-height:18px;color:var(--bt-ink-3)}
+ .bt-utools{display:flex;flex:none;gap:2px;opacity:0;visibility:hidden;transition:opacity .12s ease,visibility .12s}
+ .bt-umsg:hover .bt-utools,.bt-umsg:focus-within .bt-utools{opacity:1;visibility:visible}
+ `;
+
// src/client/index.js
var inject = ["sessions", "uiWorkspace", "uiConversation", "slots", "theme", "layout", "configForms"];
function apply(ctx) {
diff --cc ds-bot/test/install.test.js
index 98c657ff,bbe1db58..70d6c170
--- a/ds-bot/test/install.test.js
+++ b/ds-bot/test/install.test.js
@@@ -23,9 -23,9 +23,9 @@@ function start(state, { config = {}, se
}
const stop = () => {
ctx.dispose()
- rmSync(home, { recursive: true, force: true })
+ rmSync(home, { recursive: true, force: true, maxRetries: 5 })
}
- return { ctx, call, stop }
+ return { ctx, call, stop, applyResult }
}
// Listeners run, and tools are listed, in the order they are registered.