Skip to content

0.0.4

Choose a tag to compare

@aksheyd aksheyd released this 06 Oct 07:47
· 154 commits to main since this release

Highlights

  • The same run on every machine. The same files and seed now give the same run in sim and in the page, whatever the machine's clock, locale, or time zone. Long sim runs are about 3x faster.
  • One-line errors with real codes. Every failure is one line with a code that says what went wrong, in the CLI and over MCP.
  • Checks before work. Number flags accept digits only, -o is checked before any work, and mcp add accepts only the forms its help shows.

Breaking changes

  • New error codes BUILD_ERROR, BROWSER_ERROR, IO_ERROR, and INTERNAL_ERROR replace some GAME_ERROR, USAGE, and TYPE_ERROR cases. In check, a syntax error, or an import of a file or a name that doesn't exist, is now BUILD_ERROR instead of TYPE_ERROR, and a type check that runs past --timeout is TIMEOUT. A failed MCP tool call's text now starts with its code, as in TYPE_ERROR: ....
  • game.js and view.js are refused, with a hint to rename them to .ts.
  • Game code that reads the clock, the machine's locale or time zone, or crypto's randomness now fails instead of varying, and so does a write to the world outside start and update.

Also

  • sim --exact prints exact numbers. By default sim rounds what it prints, while --until compares exact values.
  • shot applies --timeout to the page too, and run's page says why a game or view.ts didn't load.
  • run's Chrome no longer leaves a profile folder in the temp folder now and then.
  • A --driver that isn't a file, and an unknown word after mcp add, are USAGE errors.

Full changes: #2 and #3.