@zaisma/cli 0.59.0 → 0.60.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zaisma/cli",
3
- "version": "0.59.0",
3
+ "version": "0.60.0",
4
4
  "description": "Upload and publish browser games on Zaisma from the command line.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://zaisma.com",
@@ -430,11 +430,12 @@ Every call that changes something answers with `next_steps`: the calls that usua
430
430
 
431
431
  The fixed checks (malware scan, image matching and Zaisma's own file checks) run on every upload, and any can stop it. The AI review follows for what other people can reach, and only the newest live version is reviewed, the same for every developer.
432
432
 
433
- - **A version only its developer can reach gets none and never waits:** a draft, or a live version of a `draft` or `private` game with no tester link on and nothing sold. Until a review lets it through, its `preview_url` opens only for the game's signed-in developer. An AI tests with `npx @zaisma/cli play-locally`, or starts the review.
433
+ - **A version only its developer can reach gets none and never waits:** a draft, or a live version of a `draft` or `private` game with nothing sold. Until a review lets it through, its `preview_url` opens only for the game's signed-in developer. An AI tests with `npx @zaisma/cli play-locally`, or starts the review.
434
434
  - **Before publishing,** `is_ai_review_needed_to_publish` says whether publishing starts a review, and `usual_ai_review_duration_min` how long a review like it usually takes, from recent real ones, not a promise: a batch can take much longer.
435
435
  - **While it runs,** `ai_review_step` says where it is (`waiting_for_daily_review`, `in_line`, `reading_files`, `judging`) and `ai_review_step_started_at` since when; waiting for a daily review, `ai_review_waiting_ahead_count` says how many of the account's reviews of the same size go first and `daily_review_free_at` when one frees up for it. The dashboard shows the same, and moves with it.
436
436
  - **A developer who has earned it** (`GET /access`, `standing.publish_before_ai_review_enabled`: established, a card that paid or a Stripe account that can take payments, with no ruling in 30 days) publishes straight away, with the review pending. With `publish_after_ai_review_enabled` it goes live only once it passes.
437
- - **Until then, what other people can reach waits for the review:** a publish stays off and goes live once it passes; a hidden game set `listed` or `unlisted` stays hidden, with `visibility_after_ai_review` saying what it becomes; a tester link says the game is being reviewed. A game's first review runs at full price in about a minute, and so does a small fix (1 MB or less of new code to read) to a game whose live version passed; other updates go in half-price batches, and `usual_ai_review_duration_min` says how long those usually take, from recent real ones. `ai_review_speed` says which speed a version gets before publishing. A tweak (nothing new in the evidence) reuses the earlier verdict.
437
+ - **A `draft` or `private` game's tester links** start no review when you publish: a tester's first open of the build a link points at does, so ten publishes and one play-test are one review. Your own opening of the link never does. Until it passes, testers play the last build that passed, and the link says a newer build is being checked; only a game with no build that passed yet makes them wait, with how long it usually takes. A link to one `picked` build waits for that build. For a developer who has earned it, testers get the new build at once, with the review running beside it. `start_ai_review` has it done before you send the links.
438
+ - **Until then, what other people can reach waits for the review:** a publish stays off and goes live once it passes; a hidden game set `listed` or `unlisted` stays hidden, with `visibility_after_ai_review` saying what it becomes. A game's first review runs at full price in about a minute, and so does a small fix (1 MB or less of new code to read) to a game whose live version passed; other updates go in half-price batches, and `usual_ai_review_duration_min` says how long those usually take, from recent real ones. `ai_review_speed` says which speed a version gets before publishing. A tweak (nothing new in the evidence) reuses the earlier verdict. Only what changed is read again, and a script a minifier rebuilt counts only code that really changed, not the short names it gave out again.
438
439
  - **When a live game breaks, roll back first, then fix:** publishing the last version that passed is free and instant and needs no review; then publish the fix, which as a small fix is usually reviewed in about a minute.
439
440
  - **Reviews count on the game's hosting meter** (`ai_reviews` in `get_stats`' `shares`), against the free allowance and then credit. A re-check after a player's report is Zaisma's. A game paused for money (`free_used`, `budget_used` or `credit_used`) gets no review until its hosting starts again: its version waits (`ai_review_waiting_reason` `hosting_paused_for_money`) for credit, a budget or the next month. Rolling back to a version that passed needs no review.
440
441
  - **A game with 1,000 counted plays in the last 7 days** is reviewed at once, at full price.
@@ -1583,19 +1584,20 @@ The same handler can post a crash (`event.kind === "game_server_error_found"`, w
1583
1584
 
1584
1585
  ## Tester links
1585
1586
 
1586
- Secret links that open the game for anyone who has them, once its AI review lets the version through or at once for a developer who has earned that (see The AI review), whatever its visibility, so a private or draft game can be played before it's public, and an update before players get it. Testers need no account. Make one per group (your team, playtesters, a streamer) and name it for them, so you can turn one off without the others.
1587
+ Secret links that open the game for anyone who has them, once its AI review lets the version through (a tester's first open starts it) or at once for a developer who has earned that (see The AI review), whatever its visibility, so a private or draft game can be played before it's public, and an update before players get it. Testers need no account. Make one per group (your team, playtesters, a streamer) and name it for them, so you can turn one off without the others.
1587
1588
 
1588
1589
  Before a build reaches testers, try its online play on your own computer: `npx @zaisma/cli play-locally` in the game's folder runs it and its game server with a test bench, no key needed, holding the game server to the memory, CPU and modules a copy has on Zaisma's rooms, so one that fails there fails here first, with the same line (README, "Play it on your own computer"). When it starts, it asks npm whether a newer bench is out and, if one is, says so in one line: run it again to use it, or, where your project or computer installed an older one, the `npm install` that moves it up. Offline, or on the latest, it says nothing and never waits.
1589
1590
 
1590
1591
  | Call | What it does |
1591
1592
  | --- | --- |
1592
- | `GET /games/:slug/testers` | The links that aren't turned off: `{"id", "name", "link_url", "version_choice", "picked_version_id", "ends_at", "created_at", "last_opened_at"}`. `last_opened_at` is when someone last opened it (to the hour), or `null`. A link past its `ends_at` is still listed, so you can give it a new end date. |
1593
+ | `GET /games/:slug/testers` | The links that aren't turned off: `{"id", "name", "link_url", "version_choice", "picked_version_id", "current_build_name", "next_build_name", "ends_at", "created_at", "last_opened_at"}`. `current_build_name` is the build its testers get now, like `Build 12` (`null`: nothing yet), and `next_build_name` a newer one it points at that they get once its review passes (`null`: none). `last_opened_at` is when someone last opened it (to the hour), or `null`. A link past its `ends_at` is still listed, so you can give it a new end date. |
1593
1594
  | `POST /games/:slug/testers` | Make one: `{"name"}`, 1 to 60 characters, and optionally `version_choice`, `picked_version_id` and `ends_at`. Up to 50 per game. Answers with the `tester`. |
1594
1595
  | `PATCH /games/:slug/testers/:id` | Change its `name`, `version_choice`, `picked_version_id` or `ends_at`; leave out what stays, and `"ends_at": null` takes the end date away. Testers keep the same link and their progress. Answers with the `tester`. |
1595
1596
  | `DELETE /games/:slug/testers/:id` | Turn one off for good; answers `removed_tester_id`. It stops opening the game straight away, and players who came through it are let go from their multiplayer matches within about 10 seconds. A game already open in their browser keeps running until they leave or reload. Make a new one to let that group back in. |
1596
1597
 
1597
1598
  - **What it opens:** `version_choice` is `live` (the version players get; the default), `newest_passed` (the newest version that passed the scan, published or not, so testers follow your uploads) or `picked` with `picked_version_id` (one version that passed; Zaisma keeps it while the link is on, but a draft nobody publishes is still deleted after 30 days).
1598
1599
  - **Until when:** `ends_at` is an ISO time up to a year ahead, or `null` (the default) to keep it on until you turn it off. Past it, the link says it ended.
1600
+ - **Which build:** each version has a `build_name`, `Build` and the game's count of uploads (`Build 14`), and the tester's page shows the same name with the day it was published, a picked build marked as the one you chose, and nothing else about it.
1599
1601
  - A link looks like `https://zaisma.com/t/<secret>`: the game page with the game, marked as a test and kept out of search engines. The secret never appears in a game address: the game runs at the game's fixed tester address, `https://<slug>--tester.zaismausercontent.com/`, which opens only in a browser the tester link let in (a cookie that lasts a play session; the link opens it again). So testers' progress survives a new link.
1600
1602
  - Multiplayer works through a link that opens the live version: room invites and `Zaisma.rooms.list()` links point back to the tester link, not the public page. The game page's room list isn't shown on tester links. A link that opens a version players don't have yet plays alone (no player passes), so a test build never reaches the live version's rooms, game server or data. Test online play on your own computer first: your game server runs there the same way (see Run your game server yourself in the README). Test releases with their own data come later.
1601
1603
  - Testers' progress stays in their browser (no cloud saves), and the game stays off their Continue playing.
@@ -1771,7 +1773,7 @@ Files are stored once, by their SHA-256, and shared by every version that has th
1771
1773
  | `PUT /files/:sha256/parts/:part_number?upload_id=` | Send one part as the request body, numbered from 1; every part but the last is exactly `part_size_bytes`. Answers its `part_number` and `etag`. |
1772
1774
  | `POST /files/:sha256/parts/done` | Finish: `{"upload_id", "parts": [{"part_number", "etag"}]}`, every part. Storage checks the hash, as for `PUT /files/:sha256`. Answers `storage_status` `stored_now` and `size_bytes`. |
1773
1775
  | `POST /games/:slug/versions` | Make the version from the same list, plus `patch_notes` (up to 2,000 characters) and optionally `"publish_when_approved": true`, which needs `version_access` `publish` (an upload key gets `key_not_allowed`), with `match_update_mode` for when it goes live (below; only with `publish_when_approved`, else `bad_match_update_mode`) and `is_big_update` to mark it a big update (the same: else `bad_is_big_update`). |
1774
- | `GET /games/:slug/versions/:id` | The `version`: `id`, `file_count`, `size_bytes`, `scan_status` (`scanning`, `held`, `approved` or `rejected`), `ai_review_status`, `ai_review_speed`, `ai_review_requested_at`, `ai_review_finished_at`, `ai_review_waiting_reason`, `usual_ai_review_duration_min`, `ai_review_step`, `ai_review_step_started_at`, `ai_review_waiting_ahead_count`, `daily_review_free_at`, `is_ai_review_needed_to_publish`, `is_open_before_ai_review`, `publish_after_ai_review_enabled` (see The AI review), `has_threads` (the build needs threads, so it runs only in Chrome and Edge, and the game page tells other browsers' players), `is_live`, `patch_notes`, `preview_url` and `preview_url_expires_at` once it passes, `published_at`, `first_published_at` (a rollback doesn't move it), `is_big_update`, `scheduled_publish_at`, `match_update_mode` (how running matches get it when it goes live by itself), `created_at`, `review_reason` (a person rejected it, or a report paused it), `findings`: what the scan found that holds or rejects it (`code`, `severity`, `message`, `content_rule`, `path`, `fix`, `message_for_people`; see Holds and takedowns), and `replaced_by_version_id`: the newer version that replaced it while it waited, or `null`, and `performance_check`: how it started in Chrome (see How it started in Chrome, below). |
1776
+ | `GET /games/:slug/versions/:id` | The `version`: `id`, `build_name` (`Build` and the game's count of uploads, from 1: `Build 14`, as its tester links show testers), `file_count`, `size_bytes`, `scan_status` (`scanning`, `held`, `approved` or `rejected`), `ai_review_status`, `ai_review_speed`, `ai_review_requested_at`, `ai_review_finished_at`, `ai_review_waiting_reason`, `usual_ai_review_duration_min`, `ai_review_step`, `ai_review_step_started_at`, `ai_review_waiting_ahead_count`, `daily_review_free_at`, `is_ai_review_needed_to_publish`, `is_open_before_ai_review`, `publish_after_ai_review_enabled` (see The AI review), `has_threads` (the build needs threads, so it runs only in Chrome and Edge, and the game page tells other browsers' players), `is_live`, `patch_notes`, `preview_url` and `preview_url_expires_at` once it passes, `published_at`, `first_published_at` (a rollback doesn't move it), `is_big_update`, `scheduled_publish_at`, `match_update_mode` (how running matches get it when it goes live by itself), `created_at`, `review_reason` (a person rejected it, or a report paused it), `findings`: what the scan found that holds or rejects it (`code`, `severity`, `message`, `content_rule`, `path`, `fix`, `message_for_people`; see Holds and takedowns), and `replaced_by_version_id`: the newer version that replaced it while it waited, or `null`, and `performance_check`: how it started in Chrome (see How it started in Chrome, below). |
1775
1777
  | `PATCH /games/:slug/versions/:id` | `update_version`: `patch_notes` (up to 2,000 characters, lines kept) and `is_big_update` on a version that has never been live, kept for when it goes live, now or scheduled. Answers the `version`. A version that has been live keeps its own (`bad_patch_notes`); a big update needs notes (`big_update_needs_patch_notes`). |
1776
1778
  | `POST /games/:slug/versions/:version_id/ai-review` | Start its AI review without publishing it (see The AI review). Needs `version_access` `publish`. Asked again, it answers where the review stands. |
1777
1779
  | `POST /games/:slug/versions/:id/publish` | Publish a draft that passed, or roll back to an older version. With `{"scheduled_publish_at": "2026-11-01T17:00:00Z"}` (an ISO time; numbers are refused) it publishes later instead (a few minutes to 90 days ahead; checked every 5 minutes). A version still being scanned goes live at that time if it has passed by then. `match_update_mode` says when running matches get it: `"next_match"` (the default: they finish on the version they started, and new matches get it) or `"now"` (every live match switches within seconds, in the same room; see [Updates](#updates)); a scheduled publish keeps the choice, and the version's `match_update_mode` shows it. A publish is a quiet patch: its notes show in the game page's Updates and nothing else changes. `"is_big_update": true` marks a big update, now or scheduled, with `patch_notes` saying what's new (given here in place of the version's, or `big_update_needs_patch_notes` with none): it sets `big_update_at`, which shows the Updated tag to players who've played before it and the Updated fact on the game page, and moves `recently_updated_at` at most once every 30 days, counting from the first release. Only a version going live for the first time on a released game counts: a first release is a release, a rollback or republish never counts, and a version that has been live keeps its notes and can't be marked (`big_update_already_live`). Answers with the `game` and the `version`. |
@@ -235,7 +235,7 @@ One name per concept. The API and MCP column is snake_case; the SDK and game ser
235
235
  | --- | --- | --- |
236
236
  | A game's link name, as in zaisma.com/g/<slug> | `slug`; `new_slug` changes a private draft's (`can_change_slug`, else `slug_locked`) | `slug` |
237
237
  | A game's genres: up to 3 from one fixed list, which players filter Browse by | `genres` (a list of `action`, `adventure`, `role_playing`, `shooter`, `strategy`, `simulation`, `racing`, `sports`, `fighting`, `platformer`, `puzzle`, `horror`, `survival`, `sandbox`, `card_and_board`, `party`, `rhythm`, `visual_novel`); refused with `bad_genres`. Inside: `games.genres` (comma-separated), `GENRES`, `GENRE_LABELS`, `MAXIMUM_GENRE_COUNT` | |
238
- | A version of a game | `version_id` | |
238
+ | A version of a game, and its short number in the game (Build 14), the same for its developer and its testers | `version_id`; `build_name` (`Build 14`), `current_build_name` and `next_build_name` on a tester link; columns `versions.build_number` (from 1), `games.build_count` | |
239
239
  | An error code's page, with what it means and the general fix | `help_url` | |
240
240
  | The Zaisma skill: the workflow and its references, for any AI, installed by the upload command | `zaisma skill` (the command); MCP resources `zaisma://skill`, `zaisma://sdk`, `zaisma://naming`, `zaisma://errors`, `zaisma://game-server`, `zaisma://developer-api`, `zaisma://multiplayer`, `zaisma://loading`, `zaisma://phones`, `zaisma://saves`; MCP prompts `make_game`, `publish_game`, `fix_problem` | |
241
241
  | How many accounts have a game in their favorites (Your games) now, never who | `favorite_count` | |