Add Submit to Antigravity or Codex for Development modal with model picker and deep links

This commit is contained in:
airent106 committed 2026-10-29 22:30:48 -06:00
1 parent b5af03b628
commit 92c5039bcb
6 files changed
+752 -1

No files matched your search

+26
View File
@@ -246,5 +246,31 @@ test("Suggest Names endpoint returns 6 creative name and tagline suggestions for
assert.ok(data.suggestions[0].tagline);
});
test("Development Handoff endpoint compiles full Spark spec and submits to Antigravity or Codex with model picker", async () => {
const specRes = await fetch(`${baseUrl}/api/ideas/1/spec.md?target=codex&model=gpt-5.6-sol`);
assert.equal(specRes.status, 200);
const specText = await specRes.text();
assert.match(specText, /Development Handoff Specification/);
assert.match(specText, /gpt-5\.6-sol/);
const handoffRes = await fetch(`${baseUrl}/api/ideas/1/dev-handoff`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
targetApp: "codex",
model: "gpt-5.6-sol",
includeHomelab: true,
moveStatusToBuilding: true
})
});
assert.equal(handoffRes.status, 200);
const handoffData = await handoffRes.json();
assert.equal(handoffData.handoff.targetApp, "codex");
assert.equal(handoffData.handoff.model, "gpt-5.6-sol");
assert.match(handoffData.handoff.deepLinkUrl, /^codex:\/\/threads\/new/);
assert.equal(handoffData.idea.status, "building");
});