Skip to content

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

Merge remote-tracking branch 'origin/dev' into feat/settings-usage-size

Fei241143fff497045c
diff --cc ds-bot/client.js
index b435fb5f,47361dbb..fdd04262
--- a/ds-bot/client.js
+++ b/ds-bot/client.js
@@@ -9863,22 -9976,25 +9973,22 @@@ function Skeleton2()
}
var focusOf = (id) => typeof id !== "string" ? null : id.startsWith("model:") ? { kind: "model", key: id.slice("model:".length) } : id.startsWith("owner:") ? { kind: "owner", key: id.slice("owner:".length) } : null;
function UsagePage({ roster, actions, focusId }) {
- const [view, setView] = (0, import_react25.useState)(null);
- const [error, setError] = (0, import_react25.useState)("");
- const [rangeId, setRangeId] = (0, import_react25.useState)("7d");
- const [span, setSpan] = (0, import_react25.useState)(null);
- const [picking, setPicking] = (0, import_react25.useState)(false);
- const [by, setBy] = (0, import_react25.useState)("bot");
- const tabs = (0, import_react25.useRef)(null);
+ const [view, setView] = (0, import_react26.useState)(null);
+ const [error, setError] = (0, import_react26.useState)("");
+ const [rangeId, setRangeId] = (0, import_react26.useState)("7d");
+ const [span, setSpan] = (0, import_react26.useState)(null);
+ const [picking, setPicking] = (0, import_react26.useState)(false);
+ const [by, setBy] = (0, import_react26.useState)("bot");
+ const tabs = (0, import_react26.useRef)(null);
const focus = focusOf(focusId);
- (0, import_react25.useEffect)(() => {
+ (0, import_react26.useEffect)(() => {
let stopped = false;
let timer;
- const resized = Promise.all((document.querySelector(".bt-settings")?.getAnimations() ?? []).filter((animation) => animation.transitionProperty === "width" || animation.transitionProperty === "height").map((animation) => animation.finished.catch(() => {
- })));
const load = async () => {
try {
const value = await actions.usage();
- await resized;
if (stopped) return;
- (0, import_react25.startTransition)(() => setView(value));
+ (0, import_react26.startTransition)(() => setView(value));
setError("");
timer = setTimeout(load, value.scanning ? 3e3 : 2e4);
} catch (failure) {
@@@ -10871,21 -10987,21 +10981,21 @@@ function SettingsDialog({ page, id, ros
if (last.current.key !== pageKey) {
last.current = { key: pageKey, depth, move: depth > last.current.depth ? "in" : depth < last.current.depth ? "out" : "up" };
}
- const [usageOpened, setUsageOpened] = (0, import_react29.useState)(shown === "usage");
+ const [usageOpened, setUsageOpened] = (0, import_react30.useState)(shown === "usage");
if (shown === "usage" && !usageOpened) setUsageOpened(true);
- const errorLine = error ? (0, import_react29.createElement)("div", { className: "bt-error", role: "alert", style: { padding: 0 } }, error) : null;
- return (0, import_react29.createElement)(
+ const errorLine = error ? (0, import_react30.createElement)("div", { className: "bt-error", role: "alert", style: { padding: 0 } }, error) : null;
+ return (0, import_react30.createElement)(
"div",
{ className: "bt-settings-layer", "data-leaving": leaving || void 0 },
- (0, import_react29.createElement)("div", { className: "bt-scrim", onMouseDown: close }),
- (0, import_react29.createElement)(
+ (0, import_react30.createElement)("div", { className: "bt-scrim", onMouseDown: close }),
+ (0, import_react30.createElement)(
"div",
- { className: "bt-settings", role: "dialog", "aria-modal": true, "aria-label": t("DS Bot settings"), "data-wide": shown === "usage" ? "" : void 0 },
+ { className: "bt-settings", role: "dialog", "aria-modal": true, "aria-label": t("DS Bot settings") },
- (0, import_react29.createElement)(
+ (0, import_react30.createElement)(
"nav",
{ ref: nav.box, className: "bt-settings-nav", "aria-label": t("Settings pages") },
- (0, import_react29.createElement)("span", { ref: nav.thumb, className: "bt-thumb", "aria-hidden": true }),
- SETTINGS_PAGES.map(([key, text]) => (0, import_react29.createElement)("button", {
+ (0, import_react30.createElement)("span", { ref: nav.thumb, className: "bt-thumb", "aria-hidden": true }),
+ SETTINGS_PAGES.map(([key, text]) => (0, import_react30.createElement)("button", {
key,
type: "button",
className: "bt-settings-item",