mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-29 05:11:19 -08:00
Add the Review Loop: unattended review-and-fix rounds in the desktop app and in loop phases
AI Assisted
This commit is contained in:
1 parent
d6a28b5dc8
commit
57567d7a0b
71 files changed
+11331
-443
No files matched your search
@@ -118,6 +118,13 @@ test("loadAgentList: the shipped agents.json loads with 3 built-ins and 5 templa
|
||||
assert.deepEqual(templates.map((a) => a.id), ["copilot", "opencode", "gemini", "pi", "cursor"]);
|
||||
});
|
||||
|
||||
test("loadAgentList: helpers is true for claude, false for every other shipped entry and for one without the key", (t) => {
|
||||
const { builtins, templates } = loadAgentList({ dir: path.join(ROOT, "src", "launcher") });
|
||||
for (const a of [...builtins, ...templates]) assert.equal(a.helpers, a.id === "claude", a.id);
|
||||
const dir = listDir(t, JSON.stringify({ schema: 1, agents: [{ kind: "template", id: "x", name: "X", command: "x" }, { kind: "template", id: "y", name: "Y", command: "y", helpers: "yes" }] }));
|
||||
assert.deepEqual(loadAgentList({ dir }).templates.map((a) => a.helpers), [false, false]);
|
||||
});
|
||||
|
||||
test("every shipped template passes normalizeAgents() with no warnings", () => {
|
||||
const { templates } = loadAgentList({ dir: path.join(ROOT, "src", "launcher") });
|
||||
const { agents, warnings } = normalizeAgents(JSON.stringify({ schema: 1, agents: templates }));
|
||||
|
||||
Reference in new issue
Block a user