five-on-it / apps/creator/src/fake-model
apps/creator/src/fake-model
The scripted model (FOI_CREATOR=fake): it plays a known-good sequence of tool calls that makes a small game on test-mission-basics, whatever the brief says but its missions' number (1 to 3: the bundled game's two solo ones, and a third of its own) and its title (the brief's first words), so the queue, the steps, cancelling, the budget and the result are tested end to end without a real model (none may be called in the tests). A new draft is read about, created, written and built; a revised one is read, written and built again. Each turn takes delayMs (abortable: a cancel stops it at once) and costs costUsd; its games' blurb can be set (FOI_CREATOR_FAKE_BLURB: the tests' blocked word, for moderation to refuse).