feat: add assistant proposal worker runtime

This commit is contained in:
zenord
2026-08-18 18:48:47 +08:00
parent 947f19e3cd
commit b4121c9fd6
32 changed files with 2827 additions and 986 deletions
+3 -1
View File
@@ -28,8 +28,10 @@ test("config writes are atomic and mode 0600", async () => {
assert.equal((await fs.promises.readdir(dir)).some((name) => name.endsWith(".tmp")), false);
});
test("operational validation rejects placeholders for every credential family", () => {
test("operational validation rejects placeholders, unsafe ACP args, and every credential family", () => {
assert.doesNotThrow(() => assertOperationalConfig(config));
const unsafeArgs = parseConfig({ ...config, bot: { ...config.bot, agent: { ...config.bot.agent, args: ["--yolo", "acp"] } } });
assert.throws(() => assertOperationalConfig(unsafeArgs), /exactly \['acp'\]/);
const platforms = [
{ type: "qq", appId: "QQ_APP_ID", clientSecret: "QQ_CLIENT_SECRET", botNames: ["QQ_BOT_NAME"] },
{ type: "feishu", appId: "FEISHU_APP_ID", appSecret: "FEISHU_APP_SECRET" },