feat(api): accept a lane tool on create, start and binary probe

This commit is contained in:
2026-08-27 11:00:13 +07:00
parent e8070f04d1
commit ce830094f0
4 changed files with 65 additions and 10 deletions
+11
View File
@@ -174,4 +174,15 @@ describe("/api/run", () => {
assert.equal(status, 200);
assert.ok(Array.isArray(body.items));
});
it("GET /api/run/binary?tool=codex probes codex, not claude", async () => {
const res = await fetchJson("/api/run/binary?tool=codex");
assert.equal(res.status, 200);
assert.equal(typeof res.body.found, "boolean");
});
it("GET /api/run/binary rejects an unknown tool", async () => {
const res = await fetchJson("/api/run/binary?tool=rm");
assert.equal(res.status, 400);
});
});