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/905-connectors

Fei241195a4cfa112ff
diff --cc ds-bot/client.js
index 8ee39629,6dd0945d..ba8875bc
--- a/ds-bot/client.js
+++ b/ds-bot/client.js
@@@ -25785,10 -24368,11 +25782,11 @@@ var import_react58 = require("react")
var failedAnswers = /* @__PURE__ */ new Map();
function ProposalCard({ proposal, initialError = "", onFailure, onResolved, actions }) {
const outcome = proposal.outcome;
- const [busy, setBusy] = (0, import_react56.useState)(false);
- const [error, setError] = (0, import_react56.useState)(initialError);
- const [open, setOpen] = (0, import_react56.useState)(false);
- const busyRef = (0, import_react56.useRef)(false);
- const titleId = (0, import_react56.useId)();
+ const [busy, setBusy] = (0, import_react58.useState)(false);
+ const [error, setError] = (0, import_react58.useState)(initialError);
++ const [open, setOpen] = (0, import_react58.useState)(false);
+ const busyRef = (0, import_react58.useRef)(false);
+ const titleId = (0, import_react58.useId)();
const answer = (approve) => {
if (busyRef.current) return;
busyRef.current = true;
@@@ -25804,47 -24388,58 +25802,58 @@@
});
};
const update = proposal.action === "update";
+ const agents = proposal.kind === "agents";
- const rows2 = (0, import_react56.useMemo)(() => lineDiff(update ? proposal.previous?.content : "", proposal.content), [update, proposal.previous?.content, proposal.content]);
+ const rows2 = (0, import_react58.useMemo)(() => lineDiff(update ? proposal.previous?.content : "", proposal.content), [update, proposal.previous?.content, proposal.content]);
- if (proposal.kind === "agents") {
- const blocks = proposal.edits.map((edit) => [
+ const change = agents ? [
- (0, import_react56.createElement)(FileBox, { key: "file", name: "AGENTS.md", path: proposal.folder, state: proposal.exists === false ? "Added" : "Modified", blocks: proposal.edits.map((edit) => [
++ (0, import_react58.createElement)(FileBox, { key: "file", name: "AGENTS.md", path: proposal.folder, state: proposal.exists === false ? "Added" : "Modified", blocks: proposal.edits.map((edit) => [
...(edit.op === "add" ? [] : editLines(edit.old)).map((line) => ({ kind: "removed", line })),
...(edit.op === "remove" ? [] : editLines(edit.text)).map((line) => ({ kind: "added", line }))
- ]);
+ ]) }),
- ...proposal.edits.map((edit, index) => edit.why ? (0, import_react56.createElement)("p", { className: "bt-learning-why", key: `why-${index}` }, edit.why) : null)
++ ...proposal.edits.map((edit, index) => edit.why ? (0, import_react58.createElement)("p", { className: "bt-learning-why", key: `why-${index}` }, edit.why) : null)
+ ] : [
- (0, import_react56.createElement)(FileBox, { key: "file", name: "SKILL.md", path: `skills/${proposal.name}`, state: update ? "Updated" : "Added", blocks: [rows2] }),
- proposal.why ? (0, import_react56.createElement)("p", { className: "bt-learning-why", key: "why" }, proposal.why) : null
++ (0, import_react58.createElement)(FileBox, { key: "file", name: "SKILL.md", path: `skills/${proposal.name}`, state: update ? "Updated" : "Added", blocks: [rows2] }),
++ proposal.why ? (0, import_react58.createElement)("p", { className: "bt-learning-why", key: "why" }, proposal.why) : null
+ ];
+ const kind = t(agents ? "AGENTS.md update" : update ? "Skill update" : "New skill");
+ if (outcome) {
+ const what = agents ? proposal.folder : proposal.name;
- return (0, import_react56.createElement)(
+ return (0, import_react58.createElement)(
"section",
- { className: "bt-q bt-learning-card", role: "group", "aria-labelledby": titleId, "aria-busy": busy, "data-outcome": outcome },
- (0, import_react58.createElement)(ProposalHead, { titleId, icon: PencilIcon, title: t("AGENTS.md update"), outcome }),
- (0, import_react58.createElement)(FileBox, { name: "AGENTS.md", path: proposal.folder, state: proposal.exists === false ? "Added" : "Modified", blocks }),
- proposal.edits.map((edit, index) => edit.why ? (0, import_react58.createElement)("p", { className: "bt-learning-why", key: index }, edit.why) : null),
- error ? (0, import_react58.createElement)("div", { className: "bt-learning-error", role: "alert" }, error) : null,
- outcome ? null : (0, import_react58.createElement)(ProposalFoot, { busy, answer })
+ { className: "bt-q bt-q-settled bt-learning-card bt-learning-settled", role: "group", "aria-label": `${kind} · ${what}`, "data-outcome": outcome },
- (0, import_react56.createElement)(
++ (0, import_react58.createElement)(
+ "button",
+ { type: "button", className: "bt-learning-fold", "aria-expanded": open, onClick: () => setOpen(!open) },
- (0, import_react56.createElement)("span", { className: "bt-learning-icon", "aria-hidden": true }, (0, import_react56.createElement)(agents ? PencilIcon : MemoryIcon)),
- (0, import_react56.createElement)("span", { className: "bt-learning-kind" }, kind),
- (0, import_react56.createElement)("span", { className: "bt-learning-sum" }, `${t(outcome === "approved" ? "Approved" : "Declined")} · ${what}`)
++ (0, import_react58.createElement)("span", { className: "bt-learning-icon", "aria-hidden": true }, (0, import_react58.createElement)(agents ? PencilIcon : MemoryIcon)),
++ (0, import_react58.createElement)("span", { className: "bt-learning-kind" }, kind),
++ (0, import_react58.createElement)("span", { className: "bt-learning-sum" }, `${t(outcome === "approved" ? "Approved" : "Declined")} · ${what}`)
+ ),
+ open ? change : null
);
}
const oldDetail = update && typeof proposal.previous?.description === "string" && proposal.previous.description !== proposal.description ? proposal.previous.description : void 0;
- return (0, import_react56.createElement)(
+ return (0, import_react58.createElement)(
"section",
- { className: "bt-q bt-learning-card", role: "group", "aria-labelledby": titleId, "aria-busy": busy, "data-outcome": outcome },
- (0, import_react58.createElement)(ProposalHead, { titleId, title: proposal.name, kind: t(update ? "Skill update" : "New skill"), detail: proposal.description, oldDetail, outcome }),
- (0, import_react58.createElement)(FileBox, { name: "SKILL.md", path: `skills/${proposal.name}`, state: update ? "Updated" : "Added", blocks: [rows2] }),
- proposal.why ? (0, import_react58.createElement)("p", { className: "bt-learning-why" }, proposal.why) : null,
+ { className: "bt-q bt-learning-card", role: "group", "aria-labelledby": titleId, "aria-busy": busy },
- agents ? (0, import_react56.createElement)(ProposalHead, { titleId, icon: PencilIcon, title: kind }) : (0, import_react56.createElement)(ProposalHead, { titleId, title: proposal.name, kind, detail: proposal.description, oldDetail }),
++ agents ? (0, import_react58.createElement)(ProposalHead, { titleId, icon: PencilIcon, title: kind }) : (0, import_react58.createElement)(ProposalHead, { titleId, title: proposal.name, kind, detail: proposal.description, oldDetail }),
+ change,
- error ? (0, import_react56.createElement)("div", { className: "bt-learning-error", role: "alert" }, error) : null,
- (0, import_react56.createElement)(ProposalFoot, { busy, answer })
+ error ? (0, import_react58.createElement)("div", { className: "bt-learning-error", role: "alert" }, error) : null,
- outcome ? null : (0, import_react58.createElement)(ProposalFoot, { busy, answer })
++ (0, import_react58.createElement)(ProposalFoot, { busy, answer })
);
}
- function ProposalHead({ titleId, icon: icon2 = MemoryIcon, title, kind, detail, oldDetail, outcome }) {
+ function ProposalHead({ titleId, icon: icon2 = MemoryIcon, title, kind, detail, oldDetail }) {
- return (0, import_react56.createElement)(
+ return (0, import_react58.createElement)(
"div",
{ className: "bt-q-head" },
- (0, import_react56.createElement)("span", { className: "bt-learning-icon", "aria-hidden": true }, (0, import_react56.createElement)(icon2)),
- (0, import_react56.createElement)(
+ (0, import_react58.createElement)("span", { className: "bt-learning-icon", "aria-hidden": true }, (0, import_react58.createElement)(icon2)),
+ (0, import_react58.createElement)(
"div",
{ className: "bt-q-text" },
- (0, import_react56.createElement)("p", { className: "bt-q-title", id: titleId }, title),
- kind ? (0, import_react56.createElement)("div", { className: "bt-q-detail" }, kind) : null,
- oldDetail ? (0, import_react56.createElement)("p", { className: "bt-learning-description bt-learning-old" }, (0, import_react56.createElement)("del", null, oldDetail)) : null,
- detail ? (0, import_react56.createElement)("p", { className: "bt-learning-description" }, detail) : null
+ (0, import_react58.createElement)("p", { className: "bt-q-title", id: titleId }, title),
+ kind ? (0, import_react58.createElement)("div", { className: "bt-q-detail" }, kind) : null,
+ oldDetail ? (0, import_react58.createElement)("p", { className: "bt-learning-description bt-learning-old" }, (0, import_react58.createElement)("del", null, oldDetail)) : null,
+ detail ? (0, import_react58.createElement)("p", { className: "bt-learning-description" }, detail) : null
),
- outcome ? (0, import_react58.createElement)("span", { className: "bt-q-badge" }, t(outcome === "approved" ? "Approved" : "Declined")) : (0, import_react58.createElement)("span", { className: "bt-q-badge bt-learning-status" }, (0, import_react58.createElement)("span", { className: "bt-learning-dot", "aria-hidden": true }), t("Awaiting approval"))
- (0, import_react56.createElement)("span", { className: "bt-q-badge bt-learning-status" }, (0, import_react56.createElement)("span", { className: "bt-learning-dot", "aria-hidden": true }), t("Awaiting approval"))
++ (0, import_react58.createElement)("span", { className: "bt-q-badge bt-learning-status" }, (0, import_react58.createElement)("span", { className: "bt-learning-dot", "aria-hidden": true }), t("Awaiting approval"))
);
}
function ProposalFoot({ busy, answer }) {