@zaisma/cli 0.55.0 → 0.57.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
|
@@ -681,6 +681,7 @@ A game looks like: `slug`, `page_url`, `title`, `description`, `visibility`, `vi
|
|
|
681
681
|
- **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
682
|
- **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
683
|
- **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).
|
|
684
|
+
- **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
685
|
- **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
686
|
- **devices:** any of `phone`, `tablet`, `computer`. **controls:** any of `touch`, `keyboard_mouse`, `gamepad`. **screen_orientation:** `portrait`, `landscape`, `either` or `null` (not set).
|
|
686
687
|
- **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`.
|
|
@@ -1102,6 +1103,7 @@ A room answers a refusal with `{ type: "error", code, message }`, then closes th
|
|
|
1102
1103
|
| `bad_idle_timeout` | The SDK's own: an `idleTimeoutSec` that isn't from 30 to 86400. |
|
|
1103
1104
|
| `bad_transport` | The SDK's own: a `transport` that isn't `"websocket"` or `"webtransport"`. |
|
|
1104
1105
|
| `zaisma_rooms_not_used` | The SDK's own: the game doesn't use Zaisma rooms, so there are none to join or list. |
|
|
1106
|
+
| `no_online_play_in_preview` | The SDK's own: the game is a preview of a version players don't have yet, which never plays online, so a test build never reaches live rooms. Test online play with `npx @zaisma/cli play-locally`, or publish the version and play it through a tester link (`add_tester_link`). A draft or private game's own page plays its live version online for its developer. |
|
|
1105
1107
|
|
|
1106
1108
|
### Close codes
|
|
1107
1109
|
|
|
@@ -1786,6 +1788,7 @@ A minute after a version passes the scan, Zaisma has opened it in headless Chrom
|
|
|
1786
1788
|
| `error_at_start` | The game threw an error while starting (up to 5, with the file and line). |
|
|
1787
1789
|
| `missing_file_at_start` | The game asked for a file that isn't in the version while starting. |
|
|
1788
1790
|
| `blocked_at_start` | An address the game loaded or connected to was blocked while starting. |
|
|
1791
|
+
| `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. |
|
|
1789
1792
|
| `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. |
|
|
1790
1793
|
| `big_download_at_start` | Players download 200 MB or more before the first frame. |
|
|
1791
1794
|
| `long_freeze_at_start` | The page froze for 2 seconds or more in one go while starting. |
|
|
@@ -559,6 +559,7 @@ A room answers a refusal with `{ type: "error", code, message }`, then closes th
|
|
|
559
559
|
| `bad_idle_timeout` | The SDK's own: an `idleTimeoutSec` that isn't from 30 to 86400. |
|
|
560
560
|
| `bad_transport` | The SDK's own: a `transport` that isn't `"websocket"` or `"webtransport"`. |
|
|
561
561
|
| `zaisma_rooms_not_used` | The SDK's own: the game doesn't use Zaisma rooms, so there are none to join or list. |
|
|
562
|
+
| `no_online_play_in_preview` | The SDK's own: the game is a preview of a version players don't have yet, which never plays online, so a test build never reaches live rooms. Test online play with `npx @zaisma/cli play-locally`, or publish the version and play it through a tester link (`add_tester_link`). A draft or private game's own page plays its live version online for its developer. |
|
|
562
563
|
|
|
563
564
|
### Close codes
|
|
564
565
|
|
package/skill/references/sdk.md
CHANGED
|
@@ -2148,8 +2148,9 @@ type RequestErrorCode =
|
|
|
2148
2148
|
|
|
2149
2149
|
/**
|
|
2150
2150
|
* The codes the SDK's errors have: a room's ({@link RoomErrorCode}), and:
|
|
2151
|
-
* - unchecked: no player pass, because the game isn't played on its zaisma.com page
|
|
2152
|
-
*
|
|
2151
|
+
* - unchecked: no player pass, because the game isn't played on its zaisma.com page or Zaisma couldn't check the browser.
|
|
2152
|
+
* - no_online_play_in_preview: no player pass, because the game is a preview of a version players don't have yet, so a test build never
|
|
2153
|
+
* reaches live rooms. Test online play with `npx @zaisma/cli play-locally`, or publish the version and play it through a tester link.
|
|
2153
2154
|
* - unknown_option, unknown_event: a call the SDK doesn't take; the message lists what it does.
|
|
2154
2155
|
* - slow_down: too many calls; try again in a minute.
|
|
2155
2156
|
* - zaisma_rooms_not_used: the game doesn't use Zaisma rooms.
|
|
@@ -2195,6 +2196,7 @@ type ErrorCode =
|
|
|
2195
2196
|
| "chat_too_fast"
|
|
2196
2197
|
| "chat_not_here"
|
|
2197
2198
|
| "unchecked"
|
|
2199
|
+
| "no_online_play_in_preview"
|
|
2198
2200
|
| "unknown_option"
|
|
2199
2201
|
| "unknown_event"
|
|
2200
2202
|
| "slow_down"
|