feat: add assistant proposal worker runtime
This commit is contained in:
@@ -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" },
|
||||
|
||||
Reference in New Issue
Block a user