@zaisma/cli 0.56.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
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. `
|
|
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
|
|
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
|
|
|
@@ -681,6 +684,7 @@ A game looks like: `slug`, `page_url`, `title`, `description`, `visibility`, `vi
|
|
|
681
684
|
- **visibility:** `draft`, `listed` (home page, search and search engines), `unlisted` (anyone with the link, never in lists or search engines) or `private`. Draft and private games open only through preview links and tester links (below), and on their own page for their developer, signed in. There a multiplayer game plays online while the page plays the live version; a newer version not yet published plays alone, and joining a room says so. A game is listed only with at least one gallery picture, sent or approved: `listed` without one answers `gallery_picture_needed`, and so does removing the last gallery picture of a listed game.
|
|
682
685
|
- **review_status** is ours and separate: `pending` (no version has passed review yet), `live`, `held` or `removed`, and `review_reason` says why it's held or removed (see Holds and takedowns). Changing visibility never undoes a takedown.
|
|
683
686
|
- **country_blocks** lists the countries whose players can't open the game, each `{ country_code, country_name, review_reason, blocked_at }`, `[]` for none (see Holds and takedowns).
|
|
687
|
+
- **page_url:** the game page's link. Query parameters on it that the page doesn't read itself go on to the game, so `?level=3` or `?sound=1` reaches `location.search` as on your own site. The page's own are `room`, `server`, `watch`, `play`, `buy`, `theme`, `state`, `screen`, `preview_bar`, `preview_save`, `parts` and `room_order`; the room's code, server and `watch=1` reach the game too. A query up to about 1,900 characters once URL-encoded goes on whole; a longer one goes on without the game's own.
|
|
684
688
|
- **play_modes:** how it's played, shown on the game page with icons: a list with one entry per way to play, like `[{"mode": "single"}, {"mode": "online", "minimum_player_count": 2, "maximum_player_count": 4, "play_style": "co-op"}]`. `mode` is `single`, `local` (together on one device or screen) or `online` (each on their own device). `single` takes no counts; the others need `minimum_player_count` (2 or more) and `play_style` (`co-op`, `versus` or `both`), and `maximum_player_count: null` means no limit ("2+ players"). Answers give every key, `null` where it doesn't apply. `null` clears it.
|
|
685
689
|
- **devices:** any of `phone`, `tablet`, `computer`. **controls:** any of `touch`, `keyboard_mouse`, `gamepad`. **screen_orientation:** `portrait`, `landscape`, `either` or `null` (not set).
|
|
686
690
|
- **genres:** up to 3, different, from one list: `action`, `adventure`, `role_playing`, `shooter`, `strategy`, `simulation`, `racing`, `sports`, `fighting`, `platformer`, `puzzle`, `horror`, `survival`, `sandbox`, `card_and_board`, `party`, `rhythm`, `visual_novel`. Players filter Browse by them: a genre's own list is `zaisma.com/games?genre=<genre>` (`?genre=horror`; a value that isn't a genre shows every game). They come back in that order; `[]` clears them, and a game with none shows under All. Multiplayer isn't a genre: Browse's Multiplayer filter reads `multiplayer_mode` and `play_modes`. `["role_playing", "strategy"]` is right; `["rpg"]` or 4 genres answer `bad_genres`.
|
|
@@ -797,7 +801,7 @@ Everything a game runs on Zaisma's servers is on one meter per game, shown as a
|
|
|
797
801
|
`hosting_use_this_month`, in `GET /games/:slug/stats` and `GET /games/:slug/database`:
|
|
798
802
|
|
|
799
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.
|
|
800
|
-
- `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.
|
|
801
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.
|
|
802
806
|
- `is_paused`, `paused_reason` (`free_used`, `budget_used`, `credit_used`, `no_real_players`, `free_hosting_ended` or `null`) and `paused_at`.
|
|
803
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.
|
|
@@ -1787,6 +1791,7 @@ A minute after a version passes the scan, Zaisma has opened it in headless Chrom
|
|
|
1787
1791
|
| `error_at_start` | The game threw an error while starting (up to 5, with the file and line). |
|
|
1788
1792
|
| `missing_file_at_start` | The game asked for a file that isn't in the version while starting. |
|
|
1789
1793
|
| `blocked_at_start` | An address the game loaded or connected to was blocked while starting. |
|
|
1794
|
+
| `needs_webgpu` | The game asked for WebGPU and the check's Chrome has no GPU, so it couldn't judge how the game starts; the check waits 10 more seconds for a WebGL fallback to draw, then stops instead of waiting out the run, and leaves out `error_at_start` and `no_frame_drawn`. Check the preview in a browser with WebGPU. |
|
|
1790
1795
|
| `no_frame_drawn` | Nothing was drawn in 120 seconds, even after a click. A game that waits for something only a player does is fine. |
|
|
1791
1796
|
| `big_download_at_start` | Players download 200 MB or more before the first frame. |
|
|
1792
1797
|
| `long_freeze_at_start` | The page froze for 2 seconds or more in one go while starting. |
|
|
@@ -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
|
|
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` | |
|