Skip to content

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

Merge branch 'feat/learned-skills' into feat/agents-md-upkeep

Fei2411c79a55e773c4
diff --cc ds-bot/client.js
index 8673efbb,11d62af3..05d68016
--- a/ds-bot/client.js
+++ b/ds-bot/client.js
@@@ -19379,47 -19448,32 +19453,47 @@@ function ProposalCard({ proposal, initi
});
};
const update = proposal.action === "update";
- const rows2 = (0, import_react46.useMemo)(() => lineDiff(update ? proposal.previous?.content : "", proposal.content), [update, proposal.previous?.content, proposal.content]);
+ const rows2 = (0, import_react47.useMemo)(() => lineDiff(update ? proposal.previous?.content : "", proposal.content), [update, proposal.previous?.content, proposal.content]);
+ if (proposal.kind === "agents") {
+ const 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 }))
+ ]);
- return (0, import_react46.createElement)(
++ return (0, import_react47.createElement)(
+ "section",
+ { className: "bt-q bt-learning-card", role: "group", "aria-labelledby": titleId, "aria-busy": busy },
- (0, import_react46.createElement)(ProposalHead, { titleId, icon: PencilIcon, title: t("AGENTS.md update") }),
- (0, import_react46.createElement)(FileBox, { name: "AGENTS.md", path: proposal.folder, state: proposal.exists === false ? "Added" : "Modified", blocks }),
- proposal.edits.map((edit, index) => edit.why ? (0, import_react46.createElement)("p", { className: "bt-learning-why", key: index }, edit.why) : null),
- error ? (0, import_react46.createElement)("div", { className: "bt-learning-error", role: "alert" }, error) : null,
- (0, import_react46.createElement)(ProposalFoot, { busy, answer })
++ (0, import_react47.createElement)(ProposalHead, { titleId, icon: PencilIcon, title: t("AGENTS.md update") }),
++ (0, import_react47.createElement)(FileBox, { name: "AGENTS.md", path: proposal.folder, state: proposal.exists === false ? "Added" : "Modified", blocks }),
++ proposal.edits.map((edit, index) => edit.why ? (0, import_react47.createElement)("p", { className: "bt-learning-why", key: index }, edit.why) : null),
++ error ? (0, import_react47.createElement)("div", { className: "bt-learning-error", role: "alert" }, error) : null,
++ (0, import_react47.createElement)(ProposalFoot, { busy, answer })
+ );
+ }
const oldDetail = update && typeof proposal.previous?.description === "string" && proposal.previous.description !== proposal.description ? proposal.previous.description : void 0;
- return (0, import_react46.createElement)(
+ return (0, import_react47.createElement)(
"section",
{ className: "bt-q bt-learning-card", role: "group", "aria-labelledby": titleId, "aria-busy": busy },
- (0, import_react46.createElement)(ProposalHead, { titleId, title: proposal.name, kind: t(update ? "Skill update" : "New skill"), detail: proposal.description, oldDetail }),
- (0, import_react46.createElement)(FileBox, { name: "SKILL.md", path: `skills/${proposal.name}`, state: update ? "Updated" : "Added", blocks: [rows2] }),
- proposal.why ? (0, import_react46.createElement)("p", { className: "bt-learning-why" }, proposal.why) : null,
- error ? (0, import_react46.createElement)("div", { className: "bt-learning-error", role: "alert" }, error) : null,
- (0, import_react46.createElement)(ProposalFoot, { busy, answer })
+ (0, import_react47.createElement)(ProposalHead, { titleId, title: proposal.name, kind: t(update ? "Skill update" : "New skill"), detail: proposal.description, oldDetail }),
+ (0, import_react47.createElement)(FileBox, { name: "SKILL.md", path: `skills/${proposal.name}`, state: update ? "Updated" : "Added", blocks: [rows2] }),
+ proposal.why ? (0, import_react47.createElement)("p", { className: "bt-learning-why" }, proposal.why) : null,
+ error ? (0, import_react47.createElement)("div", { className: "bt-learning-error", role: "alert" }, error) : null,
+ (0, import_react47.createElement)(ProposalFoot, { busy, answer })
);
}
-function ProposalHead({ titleId, title, kind, detail, oldDetail }) {
+function ProposalHead({ titleId, icon: icon2 = MemoryIcon, title, kind, detail, oldDetail }) {
- return (0, import_react46.createElement)(
+ return (0, import_react47.createElement)(
"div",
{ className: "bt-q-head" },
- (0, import_react46.createElement)("span", { className: "bt-learning-icon", "aria-hidden": true }, (0, import_react46.createElement)(icon2)),
- (0, import_react46.createElement)(
- (0, import_react47.createElement)("span", { className: "bt-learning-icon", "aria-hidden": true }, (0, import_react47.createElement)(MemoryIcon)),
++ (0, import_react47.createElement)("span", { className: "bt-learning-icon", "aria-hidden": true }, (0, import_react47.createElement)(icon2)),
+ (0, import_react47.createElement)(
"div",
{ className: "bt-q-text" },
- (0, import_react46.createElement)("p", { className: "bt-q-title", id: titleId }, title),
- kind ? (0, import_react46.createElement)("div", { className: "bt-q-detail" }, kind) : null,
- oldDetail ? (0, import_react46.createElement)("p", { className: "bt-learning-description bt-learning-old" }, (0, import_react46.createElement)("del", null, oldDetail)) : null,
- detail ? (0, import_react46.createElement)("p", { className: "bt-learning-description" }, detail) : null
+ (0, import_react47.createElement)("p", { className: "bt-q-title", id: titleId }, title),
- (0, import_react47.createElement)("div", { className: "bt-q-detail" }, kind),
++ kind ? (0, import_react47.createElement)("div", { className: "bt-q-detail" }, kind) : null,
+ oldDetail ? (0, import_react47.createElement)("p", { className: "bt-learning-description bt-learning-old" }, (0, import_react47.createElement)("del", null, oldDetail)) : null,
+ detail ? (0, import_react47.createElement)("p", { className: "bt-learning-description" }, detail) : null
),
- (0, import_react46.createElement)("span", { className: "bt-q-badge bt-learning-status" }, (0, import_react46.createElement)("span", { className: "bt-learning-dot", "aria-hidden": true }), t("Awaiting approval"))
+ (0, import_react47.createElement)("span", { className: "bt-q-badge bt-learning-status" }, (0, import_react47.createElement)("span", { className: "bt-learning-dot", "aria-hidden": true }), t("Awaiting approval"))
);
}
function ProposalFoot({ busy, answer }) {
@@@ -19461,13 -19515,13 +19535,13 @@@ function FileBox({ name, path, state, b
"div",
{ className: shut ? "bt-learning-code bt-learning-shut" : "bt-learning-code" },
blocks.map((rows2, blockIndex) => [
- blockIndex > 0 ? (0, import_react46.createElement)("div", { className: "bt-learning-gap", key: `gap-${blockIndex}` }) : null,
- ...rows2.map((row, rowIndex) => (0, import_react46.createElement)(
+ blockIndex > 0 ? (0, import_react47.createElement)("div", { className: "bt-learning-gap", key: `gap-${blockIndex}` }) : null,
+ ...rows2.map((row, rowIndex) => (0, import_react47.createElement)(
"div",
{ className: `bt-learning-row bt-learning-${row.kind}`, key: `${blockIndex}-${rowIndex}` },
- (0, import_react46.createElement)("span", { className: "bt-learning-num", "aria-hidden": true }, row.number ?? ""),
- (0, import_react46.createElement)("span", { className: "bt-learning-sign", "aria-hidden": true }, SIGNS[row.kind]),
- (0, import_react46.createElement)("span", { className: "bt-learning-text" }, row.line || " ")
+ (0, import_react47.createElement)("span", { className: "bt-learning-num", "aria-hidden": true }, row.number ?? ""),
+ (0, import_react47.createElement)("span", { className: "bt-learning-sign", "aria-hidden": true }, SIGNS[row.kind]),
- (0, import_react47.createElement)("span", { className: "bt-learning-text" }, row.line)
++ (0, import_react47.createElement)("span", { className: "bt-learning-text" }, row.line || " ")
))
])
),