@zaisma/cli 0.57.0 → 0.58.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.57.0",
3
+ "version": "0.58.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",
package/skill/SKILL.md CHANGED
@@ -27,7 +27,7 @@ The MCP also serves this skill and its references as resources (`zaisma://skill`
27
27
  - The folder needs an `index.html` at the top.
28
28
  4. **The scan.** Every version is scanned, usually in under a minute: malware, known images and Zaisma's own file checks. `get_version` shows the result, and `performance_check` on it says how the game started in Chrome, with notes on what would make it much smaller. A held version waits for a person, usually within a day.
29
29
  5. **Show the developer the preview link.** A passed version gets a private preview link that opens only for its developer. Always show it before publishing.
30
- 6. **The AI review.** A version others can reach gets an AI review against the content rules before it goes live. `is_ai_review_needed_to_publish` and `usual_ai_review_duration_min` on the version say so first: tell the developer how long it usually takes, never as a promise. `start_ai_review` starts it ahead of publishing. A developer who has earned it (`get_access`, `standing.publish_before_ai_review_enabled`) can go live at once with the review pending. A game only its developer can reach never gets one.
30
+ 6. **The AI review.** A version others can reach gets an AI review against the content rules before it goes live. `is_ai_review_needed_to_publish` and `usual_ai_review_duration_min` on the version say so first: tell the developer how long it usually takes, never as a promise. `ai_review_speed` says whether it runs at once (a small fix of 1 MB or less of new code to a game that passed) or in a batch. Start it ahead of a launch with `start_ai_review`. Reviews count on the game's hosting meter. When a live game breaks, roll back first (publish the last version that passed: free and instant, no review), then publish the fix. A developer who has earned it (`get_access`, `standing.publish_before_ai_review_enabled`) can go live at once with the review pending. A game only its developer can reach never gets one.
31
31
  7. **Publish.** `publish_version` makes a passed version live, now or at `scheduled_publish_at`, and rolls back to an older one the same way. A publish is a quiet patch unless `is_big_update` is true (with `patch_notes`): only that shows players the Updated tag. `match_update_mode: "now"` switches running matches within seconds instead of at their next match.
32
32
  8. **Choose who plays.** `update_game` with `visibility`: `listed` (everyone, in Zaisma's lists from the first day), `unlisted` (anyone with the link), `private` or `draft`. To let testers play first, keep it private and make tester links with `add_tester_link`. Before a multiplayer game goes public, test it once on Zaisma's rooms through a tester link on the live version (`version_choice: "live"`): that's where the game server's CPU limits, real networks and the chat filter show.
33
33
 
@@ -429,7 +429,9 @@ The fixed checks (malware scan, image matching and Zaisma's own file checks) run
429
429
  - **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.
430
430
  - **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.
431
431
  - **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.
432
- - **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 updates in half-price batches, usually under an hour. A tweak (nothing new in the evidence) reuses the earlier verdict.
432
+ - **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.
433
+ - **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.
434
+ - **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`) still gets 3 reviews a day free; past them its version waits (`ai_review_waiting_reason` `daily_free_reviews_used`) until one frees up or its hosting starts again.
433
435
  - **A game with 1,000 counted plays in the last 7 days** is reviewed at once, at full price.
434
436
  - **Ahead of a launch,** `POST /games/:slug/versions/:version_id/ai-review` (`start_ai_review`) starts a review without publishing. A scheduled release's review starts by itself up to a day before its time when other people can reach the game. If it isn't done on time, a developer who has earned it goes live anyway, and anyone else goes live when it passes.
435
437
  - **A stop** rolls the game back to the last version that passed, in running matches too, or with none leaves the game with no live version and its `review_reason`, until a fix goes live. The version's `findings` give the reason and the fix. The `ai_review_finished` webhook says when any review ends.
@@ -501,6 +503,7 @@ The list lives in `REVIEW_CODES` and the rules in `CONTENT_RULES` (`packages/cor
501
503
  | `ai_review_failed` | none | The AI review didn't finish, so a person at Zaisma looks. |
502
504
  | `daily_large_reviews_used` | none | This developer's 5 large reviews for today (a new game or a real change, judged) are used, so this version waits for the next one to free up. |
503
505
  | `daily_small_reviews_used` | none | This developer's 30 small reviews for today (versions read by the AI) are used, so this version waits unread for the next one to free up. |
506
+ | `daily_free_reviews_used` | none | This game's hosting is paused for money (its free allowance, budget or credit is used), and its 3 free reviews for today are used, so this version waits for one to free up, or for the game's hosting to start again. |
504
507
  | `version_replaced` | none | A newer version of this game came in while this one waited, so this one isn't reviewed. |
505
508
  | `scan_failed` | none | The scan didn't finish after three tries, so a person at Zaisma looks. |
506
509
 
@@ -798,7 +801,7 @@ Everything a game runs on Zaisma's servers is on one meter per game, shown as a
798
801
  `hosting_use_this_month`, in `GET /games/:slug/stats` and `GET /games/:slug/database`:
799
802
 
800
803
  - `free_used_pct`: how much of the month's free hosting is used, 0 to 100. `resets_on_date` is when it starts again.
801
- - `shares`: what used it, each `{"kind", "share_pct"}` adding to 100, biggest first: `rooms`, `game_server`, `relayed_data`, `database`, `requests`, `adult_chat_checks` (the chat filter's checks between adults, with `adultChatFilterEnabled`), `page_previews` (Chrome drawing your AI's preview pictures, `preview_game_page`). `[]` before any use.
804
+ - `shares`: what used it, each `{"kind", "share_pct"}` adding to 100, biggest first: `rooms`, `game_server`, `relayed_data`, `database`, `requests`, `ai_reviews` (the AI reviews of its versions), `adult_chat_checks` (the chat filter's checks between adults, with `adultChatFilterEnabled`), `page_previews` (Chrome drawing your AI's preview pictures, `preview_game_page`). `[]` before any use.
802
805
  - `second_free_allowance_month_start_date`: the month the game had its second free allowance, the first time it filled its free hosting, or `null` until then. It comes once; that month `free_used_pct` counts both.
803
806
  - `is_paused`, `paused_reason` (`free_used`, `budget_used`, `credit_used`, `no_real_players`, `free_hosting_ended` or `null`) and `paused_at`.
804
807
  - `free_rooms_stopped_at`: when Zaisma's free room time for the month ran out across all games, for a game with no budget with credit; `null` otherwise. See the stop below.
@@ -333,7 +333,7 @@ One name per concept. The API and MCP column is snake_case; the SDK and game ser
333
333
  | Where a version stands with the AI review, and how long reviews usually take | `ai_review_status` (`not_started`, `waiting`, `reviewing`, `passed`, `stopped`, `skipped`), `ai_review_speed` (`at_once`, `batch`), `ai_review_requested_at`, `ai_review_finished_at`, `ai_review_waiting_reason`, `usual_ai_review_duration_min`, `ai_review_step` (`waiting_for_daily_review`, `in_line`, `reading_files`, `judging`), `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`, `visibility_after_ai_review`, `publish_before_ai_review_enabled`. Inside: `ai_review_queued_at_ms`, `review_batches` (`anthropic_batch_id`, `request_count`, `review_step`: `reading`, `judging`, `ended_at_ms`, `collected_at_ms`), `read_files` (`file_sha256`, `reader_prompt_sha256`, `evidence_items`, `read_at_ms`) | `start_ai_review`, `AI_REVIEW_LIMITS`, `AiReviewStep`, `AiReviewProgress`, `aiReviewProgress`, `bad_publish_after_ai_review_enabled` |
334
334
  | How a version started in headless Chrome, and what would make it much smaller (notes, never holds) | `performance_check`: `{ check_status, checked_at, browser_description, loading_duration_sec, start_download_size_bytes, start_file_count, start_memory_size_bytes, longest_start_task_duration_ms, notes }`, `check_status` `waiting`, `checking`, `checked`, `over_daily_limit`, `could_not_run`; a performance note `{ code, message, path, saved_size_bytes, fix }`; the game check's `performance_notes`. Inside: `performance_checks.start_files`, each `{ path, destination, is_cors_request, downloaded_size_bytes }` | `PERFORMANCE_CHECK_LIMITS` |
335
335
  | How a game runs on players' devices, as totals (never per player), and the switch for it | `performance` in `get_stats`: `version_totals` and `device_totals`, each row `{ version_id, play_count, median_loading_duration_sec, slow_tenth_loading_duration_sec, median_frames_per_sec, low_tenth_frames_per_sec, long_frames_per_min, crashed_play_pct, error_stop_count, context_lost_count, stopped_responding_count, median_peak_memory_size_bytes, is_measured }`, a device row also `browser_name` (`chrome`, `edge`, `firefox`, `safari`, `samsung_internet`, `other`), `os_name` (`windows`, `macos`, `linux`, `chromeos`, `android`, `ios`, `other`), `device_kind` (`computer`, `phone`, `tablet`; `other` only in the folded row) and `graphics_family` (`nvidia`, `amd`, `intel`, `apple`, `qualcomm`, `arm`, `imagination`, `other`, `unknown`); the game's `performance_measuring_enabled`, error `bad_performance_measuring_enabled`. Inside: `performance_days` (`loading_counts`, `frame_rate_seconds`, `memory_counts`: JSON arrays of counts by bucket), `play_tickets.has_performance_loading`, `has_performance_crash`, `measured_duration_sec`; page messages `zaisma:performance`, `zaisma:alive` | `LOADING_BUCKETS_SEC`, `FRAME_RATE_BUCKETS`, `MEMORY_BUCKETS_BYTES`, `BROWSER_NAMES`, `OS_NAMES`, `DEVICE_KINDS`, `GRAPHICS_FAMILIES`, `CRASH_KINDS`, `PLAYER_PERFORMANCE_LIMITS`, `browserOf`, `osOf`, `percentileOf`, `frameRateAt` |
336
- | The AI review's two daily limits, and a version that steps aside for a newer one | a large review (read and judged: `daily_large_reviews_used`) and a small review (read alone: `daily_small_reviews_used`), never "judged review"; `replaced_by_version_id` (`version_replaced`). Inside: `read_at_ms` (when a version's small review ran), `is_small_review` in a scan report, and in the admin MCP `changes_since` with `added_paths`, `changed_paths`, `removed_paths` and their `*_path_count` | `PLAN_LIMITS.free.maximumLargeReviewsPerDay`, `maximumSmallReviewsPerDay` |
336
+ | The AI review's daily limits, and a version that steps aside for a newer one | a large review (read and judged: `daily_large_reviews_used`) and a small review (read alone: `daily_small_reviews_used`), never "judged review"; a game paused for money gets free reviews a day (`daily_free_reviews_used`); a small fix is one with 1 MB or less of new code to read (`ai_review_read_size_bytes`, reviewed `at_once`); reviews on the hosting meter (`ai_reviews`; `ai_review_cost_cents` in `room_usage`, `game_paid_review_cost_cents` in `ai_usage`); `replaced_by_version_id` (`version_replaced`). Inside: `read_at_ms` (when a version's small review ran), `is_small_review` in a scan report, and in the admin MCP `changes_since` with `added_paths`, `changed_paths`, `removed_paths` and their `*_path_count` | `PLAN_LIMITS.free.maximumLargeReviewsPerDay`, `maximumSmallReviewsPerDay`, `AI_REVIEW_LIMITS.maximumPausedGameReviewsPerDay`, `maximumAtOnceReadSizeBytes`, `HOSTING_PRICES.aiReviewCentsPerCostCent`, `pathWithoutContentHash` |
337
337
  | A sample game in the review test set, and what a run found | `is_honest`, `content_rule`, `protection`, `why` (in `case.json`); `outcome`: `held_bad`, `missed_bad`, `passed_honest`, `held_honest`, `inconsistent` (Zaisma's own code) | |
338
338
  | Zaisma's review of a game | `review_status`: `pending`, `live`, `held`, `removed` | |
339
339
  | Why Zaisma held, rejected or took down a game, version or image | `review_reason`: `{ code, message, content_rule, fix }`, its `code` from `REVIEW_CODES` | |