A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.
Merge dev into feat/592-group-stop-all
AdamPlatin123cdcd40740cc9
diff --cc ds-bot/client.jsindex 7e8905c4,e3b2a3b4..6907f168--- a/ds-bot/client.js+++ b/ds-bot/client.js@@@ -16340,15 -16774,6 +16782,15 @@@ function useFitWidth(inner, key)}, [key]);return width;}+function StopRoomWork({ roomId, actions }) {- const [stopping, setStopping] = (0, import_react42.useState)(false);++ const [stopping, setStopping] = (0, import_react43.useState)(false);+ const stop = () => {+ setStopping(true);+ void Promise.resolve(actions.stopRoomWork(roomId)).catch((error) => actions.reportError(error, "stop")).finally(() => setStopping(false));+ };+ const label = t("Stop all work in this group");- return (0, import_react42.createElement)("button", { type: "button", className: "bt-mw-stop", "aria-label": label, title: label, disabled: stopping, onClick: stop }, (0, import_react42.createElement)(StopIcon));++ return (0, import_react43.createElement)("button", { type: "button", className: "bt-mw-stop", "aria-label": label, title: label, disabled: stopping, onClick: stop }, (0, import_react43.createElement)(StopIcon));+}function MemberDock({ sessionId, useRoster, useWork, actions }) {const roster = useRoster((value) => value);const work = useWork((value) => value);@@@ -16361,29 -16786,24 +16803,29 @@@const faces = model.faces.map((face) => ({ ...face, bot: roster.byId[face.id] })).filter((face) => face.bot);const label = [model.waiting, model.doing].filter(Boolean).join(" · ");const open = () => model.open.details ? actions.showDetails(model.open.details) : actions.openSession(model.open.session);- return (0, import_react42.createElement)(+ return (0, import_react43.createElement)("div",{ className: "bt-mw-dock", "data-leaving": leaving || void 0 },- (0, import_react42.createElement)(+ (0, import_react43.createElement)(- "button",- { type: "button", className: "bt-mw-pill", "aria-label": label, onClick: open, disabled: leaving, style: width ? { width } : void 0 },+ "span",+ { className: "bt-mw-pair", "data-stop": model.stop ? true : void 0 },- (0, import_react42.createElement)(+ (0, import_react43.createElement)(- "span",- { ref: inner, className: "bt-mw-pill-in" },- (0, import_react43.createElement)("span", { className: "bt-mw-faces", "aria-hidden": true }, faces.map((face) => (0, import_react43.createElement)(Face, { key: face.id, ...face }))),+ "button",+ { type: "button", className: "bt-mw-pill", "aria-label": label, onClick: open, disabled: leaving, style: width ? { width } : void 0 },- (0, import_react42.createElement)(+ (0, import_react43.createElement)("span",- { key: label, className: "bt-mw-label", "aria-hidden": true },- model.waiting ? (0, import_react43.createElement)("span", { className: "bt-mw-ask" }, model.waiting) : null,- model.waiting && model.doing ? (0, import_react43.createElement)("span", { className: "bt-mw-dot" }, "·") : null,- model.doing ? (0, import_react43.createElement)("span", { className: "bt-mw-doing" }, (0, import_react43.createElement)(Shimmer, null, model.doing)) : null+ { ref: inner, className: "bt-mw-pill-in" },- (0, import_react42.createElement)("span", { className: "bt-mw-faces", "aria-hidden": true }, faces.map((face) => (0, import_react42.createElement)(Face, { key: face.id, ...face }))),- (0, import_react42.createElement)(++ (0, import_react43.createElement)("span", { className: "bt-mw-faces", "aria-hidden": true }, faces.map((face) => (0, import_react43.createElement)(Face, { key: face.id, ...face }))),++ (0, import_react43.createElement)(+ "span",+ { key: label, className: "bt-mw-label", "aria-hidden": true },- model.waiting ? (0, import_react42.createElement)("span", { className: "bt-mw-ask" }, model.waiting) : null,- model.waiting && model.doing ? (0, import_react42.createElement)("span", { className: "bt-mw-dot" }, "·") : null,- model.doing ? (0, import_react42.createElement)("span", { className: "bt-mw-doing" }, (0, import_react42.createElement)(Shimmer, null, model.doing)) : null++ model.waiting ? (0, import_react43.createElement)("span", { className: "bt-mw-ask" }, model.waiting) : null,++ model.waiting && model.doing ? (0, import_react43.createElement)("span", { className: "bt-mw-dot" }, "·") : null,++ model.doing ? (0, import_react43.createElement)("span", { className: "bt-mw-doing" }, (0, import_react43.createElement)(Shimmer, null, model.doing)) : null+ ))- )+ ),- model.stop ? (0, import_react42.createElement)(StopRoomWork, { roomId: model.stop, actions }) : null++ model.stop ? (0, import_react43.createElement)(StopRoomWork, { roomId: model.stop, actions }) : null));}@@@ -17341,12 -17713,12 +17741,12 @@@ function BrowserView({ bot, tabId, leav"aria-label": page.loading ? t("Stop") : t("Reload"),title: page.loading ? t("Stop") : t("Reload"),onClick: () => actions.browserCommand(tabId, page.loading ? "stop" : "reload")- }, (0, import_react44.createElement)(page.loading ? StopIcon2 : ReloadIcon)),- (0, import_react44.createElement)(- }, (0, import_react45.createElement)(page.loading ? StopIcon : ReloadIcon)),++ }, (0, import_react45.createElement)(page.loading ? StopIcon2 : ReloadIcon)),+ (0, import_react45.createElement)("form",{ className: "bt-browser-address", onSubmit: go, "data-editing": editing || void 0 },- (0, import_react44.createElement)("span", { className: "bt-browser-scheme", "aria-hidden": true }, (0, import_react44.createElement)(secure && !editing ? LockIcon2 : GlobeIcon2)),- (0, import_react44.createElement)("input", {+ (0, import_react45.createElement)("span", { className: "bt-browser-scheme", "aria-hidden": true }, (0, import_react45.createElement)(secure && !editing ? LockIcon2 : GlobeIcon2)),+ (0, import_react45.createElement)("input", {ref: input,type: "text",spellCheck: false,