A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.
Fly the Bot mark between details and a side chat
Fei2411913af6caf8ca
diff --git a/ds-bot/client.js b/ds-bot/client.jsindex ec520f75..b9b38abf 100644--- a/ds-bot/client.js+++ b/ds-bot/client.js@@ -4396,7 +4396,7 @@ var HANDOFF_CSS = `.bt-handoff .bt-q-foot{flex-wrap:wrap}`;-// node_modules/deep-view/src/react/ui.js+// ../../../DS Bot/DeepSeek-Bot/ds-bot/node_modules/deep-view/src/react/ui.jsvar import_react8 = require("react");var FallbackMarkdown = ({ text }) => (0, import_react8.createElement)("span", null, String(text ?? ""));var ViewUi = (0, import_react8.createContext)({ t: (key) => key, Markdown: FallbackMarkdown });@@ -4463,7 +4463,7 @@ function useOptionKeys2(count, onPick, ownRef) {return count > 0 && listening <= 1;}-// node_modules/deep-view/src/core/formula.js+// ../../../DS Bot/DeepSeek-Bot/ds-bot/node_modules/deep-view/src/core/formula.jsvar FUNCTIONS = {min: { args: [1, Infinity], run: (...values) => Math.min(...values.map(num)) },max: { args: [1, Infinity], run: (...values) => Math.max(...values.map(num)) },@@ -4744,7 +4744,7 @@ function evaluate(tree, lookup) {}}-// node_modules/deep-view/src/core/views.js+// ../../../DS Bot/DeepSeek-Bot/ds-bot/node_modules/deep-view/src/core/views.jsvar LAYOUT = ["stack", "row"];var DISPLAY = ["text", "metric", "table", "chart", "progress", "callout", "sources", "html"];var INPUT_TYPES = ["slider", "choice", "toggle", "number"];@@ -5364,7 +5364,7 @@ function validateForm(node, values) {return { fields };}-// node_modules/deep-view/src/react/chart.js+// ../../../DS Bot/DeepSeek-Bot/ds-bot/node_modules/deep-view/src/react/chart.jsvar import_react9 = require("react");var PALETTE = ["var(--dv-accent)", "var(--dv-ink-tangerine)", "var(--dv-ink-green)", "var(--dv-ink-violet)", "var(--dv-ink-sky)", "var(--dv-ink-rose)", "var(--dv-ink-yellow)", "var(--dv-ink-cyan)", "var(--dv-ink-magenta)"];var colorAt = (index) => PALETTE[index % PALETTE.length];@@ -5803,7 +5803,7 @@ var CHART_CSS = `@media (prefers-reduced-motion:reduce){.dv-chart-mark,.dv-chart-dot{transition:none}.dv-chart-tip{animation:none}}`;-// node_modules/deep-view/src/react/frame.js+// ../../../DS Bot/DeepSeek-Bot/ds-bot/node_modules/deep-view/src/react/frame.jsvar import_react10 = require("react");var THEME_VARS = [["--view-ink", "--bt-ink", "--dv-ink"],@@ -5885,7 +5885,7 @@ var HTML_CSS = `.dv-view-frame-stopped{margin:0;font-size:13px;line-height:18px;color:var(--dv-ink-2)}`;-// node_modules/deep-view/src/react/card.js+// ../../../DS Bot/DeepSeek-Bot/ds-bot/node_modules/deep-view/src/react/card.jsvar import_react11 = require("react");var mdLabels = (ui2) => ({ code: { copyLabel: ui2.t("Copy"), copiedLabel: ui2.t("Copied") }, footnotes: ui2.t("Footnotes") });var TONES2 = ["good", "warn", "bad"];@@ -6554,7 +6554,7 @@ ${CHART_CSS}${HTML_CSS}`;-// node_modules/deep-view/src/react/styles.js+// ../../../DS Bot/DeepSeek-Bot/ds-bot/node_modules/deep-view/src/react/styles.jsvar THEME_CSS = `body{--dv-ink:var(--dsw-alias-label-primary);@@ -6651,10 +6651,10 @@ button.dv-q-opt:active{background:var(--dv-active)}@media (prefers-reduced-motion:reduce){.dv-q,.dv-view-bare,.dv-q-submit,.dv-menu,.dv-q-check{animation:none}}`;-// node_modules/deep-view/src/react/index.js+// ../../../DS Bot/DeepSeek-Bot/ds-bot/node_modules/deep-view/src/react/index.jsvar DEEP_VIEW_CSS = THEME_CSS + QUESTION_CSS + WIDGET_CSS;-// node_modules/deep-view/src/core/reply.js+// ../../../DS Bot/DeepSeek-Bot/ds-bot/node_modules/deep-view/src/core/reply.jsvar REPLY_KIND = "user-question-reply";function viewCardText(args) {let card = args;@@ -18697,12 +18697,14 @@ function BotPanel({ pane, leaving, room: room2, overlay, roster, actions, useSesconst beginSwitch = (next) => {if (reducedMotion2()) return;const panel = root.current;+ const source = next === "details" ? panel?.querySelector(".bt-ptab-bot .bt-mark") : panel?.querySelector(".bt-drawer-id .bt-mark");const outgoing = panel?.querySelector(".bt-panel-view");if (outgoing) {const ghostEl = document.createElement("div");ghostEl.className = "bt-panel-ghost";ghostEl.style.width = `${outgoing.offsetWidth}px`;ghostEl.append(outgoing.cloneNode(true));+ if (source && next !== "details") for (const mark of ghostEl.querySelectorAll(".bt-drawer-id .bt-mark")) mark.style.visibility = "hidden";outgoing.parentElement.append(ghostEl);void ghostEl.animate([{ opacity: 1, transform: "scale(1)" },@@ -18710,7 +18712,6 @@ function BotPanel({ pane, leaving, room: room2, overlay, roster, actions, useSes], { duration: 160, easing: "ease-out", fill: "forwards" }).finished.catch(() => {}).finally(() => ghostEl.remove());}- const source = next === "browser" ? panel?.querySelector(".bt-drawer-id .bt-mark") : panel?.querySelector(".bt-ptab-bot .bt-mark");if (source) fly.current = { node: source.cloneNode(true), from: source.getBoundingClientRect() };};const switchView = (next) => {@@ -18735,7 +18736,7 @@ function BotPanel({ pane, leaving, room: room2, overlay, roster, actions, useSesconst move = fly.current;if (!move) return;fly.current = null;- const target = view === "browser" ? root.current?.querySelector(".bt-ptab-bot .bt-mark") : root.current?.querySelector(".bt-drawer-id .bt-mark");+ const target = view === "details" ? root.current?.querySelector(".bt-drawer-id .bt-mark") : root.current?.querySelector(".bt-ptab-bot .bt-mark");if (!target || move.from.width === 0) return;const growing = root.current.getAnimations({ subtree: true }).filter((animation) => animation.animationName === "bt-strip-in");const at = growing.map((animation) => animation.currentTime);diff --git a/ds-bot/src/client/browser-pane.js b/ds-bot/src/client/browser-pane.jsindex 23ef1007..ecfc8b2a 100644--- a/ds-bot/src/client/browser-pane.js+++ b/ds-bot/src/client/browser-pane.js@@ -612,21 +612,27 @@ export function BotPanel({ pane, leaving, room, overlay, roster, actions, useSesconst beginSwitch = (next) => {if (reducedMotion()) returnconst panel = root.current+ // The mark flies between the drawer avatar (details view) and the strip's Bot tab:+ // up into the tab when the details view is left, back down when it returns. A switch+ // between the browser and a side chat has no drawer avatar and nothing to fly.+ const source = next === 'details'+ ? panel?.querySelector('.bt-ptab-bot .bt-mark')+ : panel?.querySelector('.bt-drawer-id .bt-mark')const outgoing = panel?.querySelector('.bt-panel-view')if (outgoing) {const ghostEl = document.createElement('div')ghostEl.className = 'bt-panel-ghost'ghostEl.style.width = `${outgoing.offsetWidth}px`ghostEl.append(outgoing.cloneNode(true))+ // The flying clone stands in for the drawer's mark; the fading copy must not+ // show it a second time.+ if (source && next !== 'details') for (const mark of ghostEl.querySelectorAll('.bt-drawer-id .bt-mark')) mark.style.visibility = 'hidden'outgoing.parentElement.append(ghostEl)void ghostEl.animate([{ opacity: 1, transform: 'scale(1)' },{ opacity: 0, transform: 'scale(0.985)' },], { duration: 160, easing: 'ease-out', fill: 'forwards' }).finished.catch(() => {}).finally(() => ghostEl.remove())}- const source = next === 'browser'- ? panel?.querySelector('.bt-drawer-id .bt-mark')- : panel?.querySelector('.bt-ptab-bot .bt-mark')if (source) fly.current = { node: source.cloneNode(true), from: source.getBoundingClientRect() }}const switchView = (next) => {@@ -646,9 +652,9 @@ export function BotPanel({ pane, leaving, room, overlay, roster, actions, useSesconst move = fly.currentif (!move) returnfly.current = null- const target = view === 'browser'- ? root.current?.querySelector('.bt-ptab-bot .bt-mark')- : root.current?.querySelector('.bt-drawer-id .bt-mark')+ const target = view === 'details'+ ? root.current?.querySelector('.bt-drawer-id .bt-mark')+ : root.current?.querySelector('.bt-ptab-bot .bt-mark')if (!target || move.from.width === 0) return// A strip that has just appeared still grows from zero height; the target is// measured where it stands once the strip is full height.