@zaisma/cli 0.47.0 → 0.48.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
|
@@ -16,7 +16,7 @@ claude mcp add --transport http zaisma https://zaisma.com/mcp --header "Authoriz
|
|
|
16
16
|
|
|
17
17
|
Apps that can't send a key connect by signing in instead. In claude.ai: Settings → Connectors → Add custom connector, with `https://zaisma.com/mcp`; ChatGPT and other apps the same way, wherever they add a remote MCP server. The app opens a Zaisma page where you choose what it may do and tap your passkey, then you're back in the app with every tool working. The key command above stays the way for Claude Code and the upload command.
|
|
18
18
|
|
|
19
|
-
Every tool is a call to this API (`apps/site/src/mcp.ts`): `list_games`, `create_game`, `get_game`, `get_playing_now`, `get_whats_on`, `update_game`, `check_game` (what Zaisma would refuse in a game and what won't work on Zaisma, before uploading; see Checking a game below), `upload_files` (small games up to 5 MB, sent as file contents), `get_version`, `publish_version` (also rolls back and publishes later), `cancel_scheduled_publish`, `end_preview_links`, `add_image`, `remove_image`, `add_shader`, `check_shader` (a shader drawn as the check would, before it's sent; see Backgrounds below), `remove_shader`, `set_background`, `preview_game_page` (pictures of every place players meet the game, from what you're still designing; see Seeing it as players do below), `add_tester_link`, `update_tester_link`, `remove_tester_link`, `get_reports`, `get_stats`, `get_history`, `get_qr_code` (the game's link, or a room's, as a QR code), `export_game` (everything about a game as one .zip; see Export everything below), `get_logs` (what the game server printed, see A game server's logs below), `get_player`, `get_access` (what the key can do), `get_activity` (your account's activity, needs a full key), `list_api_keys` (your keys and connected apps with their end dates, last use and whether Zaisma turned one off; needs a full key), the sign-in apps' `list_sign_in_apps`, `create_sign_in_app`, `update_sign_in_app` and `delete_sign_in_app`, hosting credit's `get_credit`, `top_up_credit`, `refund_top_up`, `start_ai_review`, `start_credit_plan`, `change_credit_plan`, `stop_credit_plan` and `get_spending_request` (see Hosting and credit below), Zaisma Pro's `get_pro`, `start_pro`, `cancel_pro`, `resume_pro` and `refund_pro` (see Zaisma Pro below), `get_storage`, `set_storage_budget`, `delete_version` and `delete_game`, `bring_back_game`, `erase_game_now`, `get_game_deletion_request` (see Storage below), the Stripe account's `get_stripe_account`, `connect_stripe_account`, `update_stripe_account` and `disconnect_stripe_account` (see Selling with the buy sheet below), the webhooks' `list_webhooks`, `create_webhook`, `update_webhook`, `delete_webhook`, `test_webhook` and `list_webhook_deliveries` (see Webhooks below), a game's secrets' `list_secrets`, `set_secret` and `delete_secret` (see Secrets below), the items' `list_items`, `set_item`, `remove_item`, `set_purchase_settings`, `grant_item`, `list_purchases`, `get_purchase`, `refund_purchase`, `mark_purchase_handled` and `get_player_items` (see Items and purchases below), a game's kept rooms' `list_kept_rooms`, `delete_kept_room`, `bring_back_kept_room` and `erase_kept_room_now`, `restore_kept_room`, `undo_kept_room_restore`, `list_kept_room_restores`, `restore_every_kept_room`, `get_kept_room_restore_batch`, `undo_every_kept_room_restore` (see Kept rooms below), a game's live rooms' `list_rooms`, `get_room`, `send_room_message`, `send_to_every_room`, `list_room_messages`, `cancel_room_message`, `kick_player` and `end_room` (see Reaching live rooms below), the game database's `get_database`, `query_database`, `batch_database`, `export_database`, `import_database`, `erase_player`, `restore_database` and `undo_database_restore` (see The game database below), cloud saves' `list_saves`, `get_save`, `change_save`, `replace_save`, `reset_save`, `list_save_copies`, `get_save_copy` and `restore_save_copy` (see Cloud saves below), and the developer forum's `search_forum`, `get_topic`, `post_topic`, `message_zaisma`, `reply_to_topic`, `vote`, `rate_post`, `bookmark_post`, `report_post`, `forum_people`, `still_happening`, `flag_misplaced`, `follow_topic` and `mark_answer` (see The developer forum below). Bigger builds go through the upload command. Making a game players can play private or a draft again, and ending a live room (`end_room`), need `"confirm": true`, so the AI asks you first.
|
|
19
|
+
Every tool is a call to this API (`apps/site/src/mcp.ts`): `list_games`, `create_game`, `get_game`, `get_playing_now`, `get_whats_on`, `update_game`, `check_game` (what Zaisma would refuse in a game and what won't work on Zaisma, before uploading; see Checking a game below), `upload_files` (small games up to 5 MB, sent as file contents), `get_version`, `update_version` (a version's notes before it's live), `publish_version` (also rolls back and publishes later), `cancel_scheduled_publish`, `end_preview_links`, `add_image`, `remove_image`, `add_shader`, `check_shader` (a shader drawn as the check would, before it's sent; see Backgrounds below), `remove_shader`, `set_background`, `preview_game_page` (pictures of every place players meet the game, from what you're still designing; see Seeing it as players do below), `add_tester_link`, `update_tester_link`, `remove_tester_link`, `get_reports`, `get_stats`, `get_history`, `get_qr_code` (the game's link, or a room's, as a QR code), `export_game` (everything about a game as one .zip; see Export everything below), `get_logs` (what the game server printed, see A game server's logs below), `get_player`, `get_access` (what the key can do), `get_activity` (your account's activity, needs a full key), `list_api_keys` (your keys and connected apps with their end dates, last use and whether Zaisma turned one off; needs a full key), the sign-in apps' `list_sign_in_apps`, `create_sign_in_app`, `update_sign_in_app` and `delete_sign_in_app`, hosting credit's `get_credit`, `top_up_credit`, `refund_top_up`, `start_ai_review`, `start_credit_plan`, `change_credit_plan`, `stop_credit_plan` and `get_spending_request` (see Hosting and credit below), Zaisma Pro's `get_pro`, `start_pro`, `cancel_pro`, `resume_pro` and `refund_pro` (see Zaisma Pro below), `get_storage`, `set_storage_budget`, `delete_version` and `delete_game`, `bring_back_game`, `erase_game_now`, `get_game_deletion_request` (see Storage below), the Stripe account's `get_stripe_account`, `connect_stripe_account`, `update_stripe_account` and `disconnect_stripe_account` (see Selling with the buy sheet below), the webhooks' `list_webhooks`, `create_webhook`, `update_webhook`, `delete_webhook`, `test_webhook` and `list_webhook_deliveries` (see Webhooks below), a game's secrets' `list_secrets`, `set_secret` and `delete_secret` (see Secrets below), the items' `list_items`, `set_item`, `remove_item`, `set_purchase_settings`, `grant_item`, `list_purchases`, `get_purchase`, `refund_purchase`, `mark_purchase_handled` and `get_player_items` (see Items and purchases below), a game's kept rooms' `list_kept_rooms`, `delete_kept_room`, `bring_back_kept_room` and `erase_kept_room_now`, `restore_kept_room`, `undo_kept_room_restore`, `list_kept_room_restores`, `restore_every_kept_room`, `get_kept_room_restore_batch`, `undo_every_kept_room_restore` (see Kept rooms below), a game's live rooms' `list_rooms`, `get_room`, `send_room_message`, `send_to_every_room`, `list_room_messages`, `cancel_room_message`, `kick_player` and `end_room` (see Reaching live rooms below), the game database's `get_database`, `query_database`, `batch_database`, `export_database`, `import_database`, `erase_player`, `restore_database` and `undo_database_restore` (see The game database below), cloud saves' `list_saves`, `get_save`, `change_save`, `replace_save`, `reset_save`, `list_save_copies`, `get_save_copy` and `restore_save_copy` (see Cloud saves below), and the developer forum's `search_forum`, `get_topic`, `post_topic`, `message_zaisma`, `reply_to_topic`, `vote`, `rate_post`, `bookmark_post`, `report_post`, `forum_people`, `still_happening`, `flag_misplaced`, `follow_topic` and `mark_answer` (see The developer forum below). Bigger builds go through the upload command. Making a game players can play private or a draft again, and ending a live room (`end_room`), need `"confirm": true`, so the AI asks you first.
|
|
20
20
|
|
|
21
21
|
Every tool has an output schema, and answers are compact JSON. Arguments are closed: one a tool doesn't take is refused (`unknown_field`, with the arguments it does take), never quietly dropped, and a missing required one is `missing_field`. A refused call is a tool result with `isError: true`, the error object below as its `structuredContent` and its message, fix and code as its text; each tool's listed output schema is its answer or that error, because MCP clients check both against it. The tools that are easy to get wrong (`update_game`, `check_game`, `upload_files`, `publish_version`, `search_forum`, `post_topic`, `change_save`, `replace_save`, `set_secret`) carry good examples in their input schema and bad ones at the end of their description.
|
|
22
22
|
|
|
@@ -427,6 +427,7 @@ The fixed checks (malware scan, image matching and Zaisma's own file checks) run
|
|
|
427
427
|
|
|
428
428
|
- **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.
|
|
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
|
+
- **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.
|
|
430
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.
|
|
431
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
433
|
- **A game with 1,000 counted plays in the last 7 days** is reviewed at once, at full price.
|
|
@@ -1746,7 +1747,8 @@ Files are stored once, by their SHA-256, and shared by every version that has th
|
|
|
1746
1747
|
| `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`. |
|
|
1747
1748
|
| `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`. |
|
|
1748
1749
|
| `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`). |
|
|
1749
|
-
| `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`, `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). |
|
|
1750
|
+
| `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). |
|
|
1751
|
+
| `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`). |
|
|
1750
1752
|
| `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. |
|
|
1751
1753
|
| `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`. |
|
|
1752
1754
|
| `DELETE /games/:slug/versions/:id/publish` | Cancel a publish-later, and its big update mark. Answers with the `game` and the `version`. |
|
|
@@ -330,7 +330,7 @@ One name per concept. The API and MCP column is snake_case; the SDK and game ser
|
|
|
330
330
|
| How many days a report or stats answer covers | `period_duration_days` | |
|
|
331
331
|
| What the game check finds before an upload | `problems`, each `{ code, problem_kind, is_fixed_by_upload_command, message, path, quote, fix }`, `problem_kind` `refused` or `broken`; `omitted_problem_count` | |
|
|
332
332
|
| A version's scan result, and what it found that holds or rejects it | `scan_status`: `scanning`, `held`, `approved`, `rejected`; `findings`, each `{ code, severity, message, content_rule, path, fix }` | |
|
|
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`, `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`, `ended_at_ms`, `collected_at_ms`), `read_files` (`file_sha256`, `reader_prompt_sha256`, `evidence_items`, `read_at_ms`) | `start_ai_review`, `AI_REVIEW_LIMITS`, `bad_publish_after_ai_review_enabled` |
|
|
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
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` |
|