@crowdedkingdoms/crowdyjs 18.10.0 → 18.12.0-dev.1

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.
Files changed (90) hide show
  1. package/MIGRATION.md +69 -0
  2. package/README.md +91 -30
  3. package/dist/crowdy-client.d.ts +11 -3
  4. package/dist/crowdy-client.d.ts.map +1 -1
  5. package/dist/crowdy-client.js +25 -4
  6. package/dist/default-origin.d.ts +6 -6
  7. package/dist/default-origin.d.ts.map +1 -1
  8. package/dist/default-origin.js +6 -6
  9. package/dist/domains/exec.d.ts +6 -0
  10. package/dist/domains/exec.d.ts.map +1 -1
  11. package/dist/domains/exec.js +28 -2
  12. package/dist/generated/graphql-schema.d.ts +1 -1
  13. package/dist/generated/graphql-schema.d.ts.map +1 -1
  14. package/dist/index.d.ts +3 -3
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +5 -3
  17. package/dist/kit/index.d.ts +22 -2
  18. package/dist/kit/index.d.ts.map +1 -1
  19. package/dist/kit/index.js +22 -2
  20. package/dist/kit/kit.d.ts +141 -7
  21. package/dist/kit/kit.d.ts.map +1 -1
  22. package/dist/kit/kit.js +138 -4
  23. package/dist/kit/mirror.d.ts +111 -0
  24. package/dist/kit/mirror.d.ts.map +1 -0
  25. package/dist/kit/mirror.js +295 -0
  26. package/dist/kit/modules/arenas.d.ts +87 -0
  27. package/dist/kit/modules/arenas.d.ts.map +1 -0
  28. package/dist/kit/modules/arenas.js +66 -0
  29. package/dist/kit/modules/encounters.d.ts +75 -0
  30. package/dist/kit/modules/encounters.d.ts.map +1 -0
  31. package/dist/kit/modules/encounters.js +57 -0
  32. package/dist/kit/modules/instances.d.ts +78 -0
  33. package/dist/kit/modules/instances.d.ts.map +1 -0
  34. package/dist/kit/modules/instances.js +72 -0
  35. package/dist/kit/modules/leaderboards.d.ts +79 -0
  36. package/dist/kit/modules/leaderboards.d.ts.map +1 -0
  37. package/dist/kit/modules/leaderboards.js +69 -0
  38. package/dist/kit/modules/matchmaking.d.ts +107 -0
  39. package/dist/kit/modules/matchmaking.d.ts.map +1 -0
  40. package/dist/kit/modules/matchmaking.js +109 -0
  41. package/dist/kit/modules/minigames.d.ts +59 -0
  42. package/dist/kit/modules/minigames.d.ts.map +1 -0
  43. package/dist/kit/modules/minigames.js +55 -0
  44. package/dist/kit/modules/npcs.d.ts +80 -0
  45. package/dist/kit/modules/npcs.d.ts.map +1 -0
  46. package/dist/kit/modules/npcs.js +102 -0
  47. package/dist/kit/modules/presence.d.ts +81 -0
  48. package/dist/kit/modules/presence.d.ts.map +1 -0
  49. package/dist/kit/modules/presence.js +99 -0
  50. package/dist/kit/modules/racing.d.ts +131 -0
  51. package/dist/kit/modules/racing.d.ts.map +1 -0
  52. package/dist/kit/modules/racing.js +113 -0
  53. package/dist/kit/modules/sessions.d.ts +91 -0
  54. package/dist/kit/modules/sessions.d.ts.map +1 -0
  55. package/dist/kit/modules/sessions.js +84 -0
  56. package/dist/kit/modules/tables.d.ts +76 -0
  57. package/dist/kit/modules/tables.d.ts.map +1 -0
  58. package/dist/kit/modules/tables.js +73 -0
  59. package/dist/kit/modules/tactics.d.ts +79 -0
  60. package/dist/kit/modules/tactics.d.ts.map +1 -0
  61. package/dist/kit/modules/tactics.js +67 -0
  62. package/dist/kit/modules/territory.d.ts +92 -0
  63. package/dist/kit/modules/territory.d.ts.map +1 -0
  64. package/dist/kit/modules/territory.js +84 -0
  65. package/dist/kit/modules/world.d.ts +69 -0
  66. package/dist/kit/modules/world.d.ts.map +1 -0
  67. package/dist/kit/modules/world.js +35 -0
  68. package/dist/kit/protocol.d.ts +128 -0
  69. package/dist/kit/protocol.d.ts.map +1 -0
  70. package/dist/kit/protocol.js +171 -0
  71. package/dist/kit/realtime.d.ts +72 -0
  72. package/dist/kit/realtime.d.ts.map +1 -0
  73. package/dist/kit/realtime.js +108 -0
  74. package/dist/kit/runtime.d.ts +90 -0
  75. package/dist/kit/runtime.d.ts.map +1 -0
  76. package/dist/kit/runtime.js +194 -0
  77. package/dist/kit/store.d.ts +20 -0
  78. package/dist/kit/store.d.ts.map +1 -0
  79. package/dist/kit/store.js +25 -0
  80. package/dist/kit/topology.d.ts +69 -0
  81. package/dist/kit/topology.d.ts.map +1 -0
  82. package/dist/kit/topology.js +156 -0
  83. package/dist/kit/wire.d.ts +45 -5
  84. package/dist/kit/wire.d.ts.map +1 -1
  85. package/dist/kit/wire.js +51 -5
  86. package/dist/live-coding/assets/browser-authoring-index.json +1 -1
  87. package/dist/live-coding/assets/manifest.json +1 -1
  88. package/dist/live-coding/browser-authoring-index.generated.d.ts.map +1 -1
  89. package/dist/live-coding/browser-authoring-index.generated.js +5092 -45
  90. package/package.json +1 -1
package/MIGRATION.md CHANGED
@@ -120,6 +120,75 @@ super-admin's session). There is no SDK replacement.
120
120
  `dev`'s SDL after #417 merged (`npm run schema:sync:paths -- --schema <that schema.gql>`, then
121
121
  `npm run codegen`).
122
122
 
123
+ ## 18.12.0: the genre starters
124
+
125
+ Additive. **Needs a compute toolchain whose starter pack has the genre starters** (ckx-sdk
126
+ 0.11.0); `kit.topology` lists, builds and deploys them like the others. Against an app that does
127
+ not run one, its module's calls are refused with `NotFound` (the app has no such node type).
128
+
129
+ - **Nine more kit modules**, one per new starter hub: `leaderboards.board(name)` (the top
130
+ mirrored, `top`, `around`, `me`, `season`; hubs submit the scores they decided, a client never
131
+ does), `tables.table(key)` (cards: the table mirrored and the caller's hand as private state),
132
+ `tactics.battle(key)` (grid battles in phases), `encounters.encounter(key)` (waves, towers, a
133
+ boss with phases), `minigames.duel(key)` (hidden throws revealed together), `instances.run(key)`
134
+ (a party's private run: seeded floors, permadeath, expiry), `arenas.arena(key)` (classes and
135
+ abilities in real time), `racing.race(key)` and `racing.ball(key)` (races with laps, splits
136
+ and a ghost; ball games with possession), `territory.map(key)` and `territory.zone(key)`
137
+ (control points; a shrinking circle).
138
+ - **The node types they talk to** are the starters' (`leaderboard`, `deck`, `tactics`,
139
+ `director`, `minigame`, `instance`, `arena`, `race`, `ball`, `territory`, `zone`); an app that
140
+ deploys one under another name passes it in `client.kit(appId, { nodes: { ... } })`.
141
+ - **Positions a client reports are the hub's to keep**: `arenas`, `racing` and the ball game take
142
+ `move` / `pos` reports and answer with the position the hub's movement warden kept (a move too
143
+ fast is cut short, a jump refused). Each refused report is a `violation` event, and an arena
144
+ removes a player after a run of them (`removed`). Send them a few times a second, without an
145
+ action id.
146
+ - **Event bodies never use the header's field names** (`v`, `epoch`, `seq`, `kind`): the race's
147
+ `timing` events carry their `stage`, the warden's `violation` events their `what`.
148
+
149
+ ## 18.11.0: the Game Kit on ck-exec
150
+
151
+ Additive, apart from one fix in `client.exec` (below). **Needs what 18.10.0 needs from the Game
152
+ API.** The kit's hub modules need the app to run the starter pack of a compute toolchain with
153
+ ckx-sdk 0.10.0 (the starters that speak the kit protocol); `kit.topology` builds and deploys
154
+ it. Against an app that runs nothing, or an older starter, a module's calls are refused as the
155
+ hub refuses them.
156
+
157
+ - **`client.kit(appId)` gains the hub modules**, all on one shared connection (`kit.runtime`):
158
+ `world` (conditions and resource nodes mirrored, `harvest`, liveops `schedule` / `cancel` for
159
+ developers), `matchmaking.queue(name)` (parties matched whole, `place`, `onMatched`),
160
+ `sessions.open(key)` (lobby to result, `state` mirrored), `npcs.area(key)` / `areaAt(x, z)`
161
+ (mobs, NPCs, players' pets), `topology` (compose, check, build and deploy the tree of
162
+ starter hubs), `spectate`, `emotes` and `shards`. `kit.social` is unchanged.
163
+ - **Without options, `client.kit(appId)` returns the same kit for an app** (it made a new one
164
+ each call), so its modules share one connection. With options each call makes its own; close
165
+ it with `kit.close()`. `client.close()` closes the shared ones.
166
+ - **The kit protocol** (`KIT_PROTOCOL`): hub topics carry snapshot, delta, changed and event
167
+ messages with an instance `epoch` and a per-topic `seq`; `HubState`, `CollectionMirror` and
168
+ `PrivateState` mirror them, taking a fresh snapshot on a new epoch, a gap in a collection's
169
+ deltas, and a reconnect. A change sent with an action id (`{ action: true }` on
170
+ `kit.runtime.call`, which every module change uses) is answered once by the hub when sent
171
+ again. A hub's coded refusal is a `KitError` (`code`, `text`), a `CrowdyExecError` with status
172
+ `AppError`.
173
+ - **The realtime registry** (`wire.ts`) gains `EVENT_ENCOUNTER` (99), `EVENT_POSSESSION` (100),
174
+ `EVENT_EMOTE` (101) and `EVENT_APP_FIRST` (1000) with their parsers; its source is now
175
+ `ckx_sdk::kit::wire`. `kitActorCodec`, `withKitActors` and `kitActorLanes` read the actors kit
176
+ hubs show; `kitEventCodecs` and `parseKitServerEvent` their server events.
177
+ - **The starters changed with it** (ck-exec, ckx-sdk 0.10.0): each answers
178
+ `snapshot { topic }`, refuses with `kit:<code>:` messages, and takes `action_id`. The
179
+ matchmaker's `queue` topic is now a map of counts (`waiting`, `proposals`, `forming`) where
180
+ it was a 2-tuple, `world-tick` adds a `nodes` topic, and `npc-mobs` adds pets. Code that calls
181
+ the starters with `client.exec` keeps working: their replies are the same.
182
+ - **Fix: a call's whole numbers outside 32 bits go out as 64-bit integers.** `ExecConnection.call`
183
+ encoded with `useBigInt64`, under which the MessagePack encoder writes a `number` of 2^32 or
184
+ more as a float, which a hub's integer fields refuse (`invalid type: floating point, expected
185
+ u64`): a timestamp in milliseconds, a player id. They are 64-bit integers now
186
+ (`execWireIntegers`). A hub field that wants a float still reads an integer.
187
+ - **`ExecConnection` reconnects with jitter**: each wait is half its backoff plus up to as much
188
+ again at random, so the players of a host that went away do not all dial at once.
189
+ - **Crowdy Studio's editor completes ckx-sdk 0.10.0**, `kit` included: the embedded authoring
190
+ index is the compute toolchain's again (it had last been synced at ckx-sdk 0.7.0).
191
+
123
192
  ## 18.10.0: bans, the access-ended close, and the block and ban codes
124
193
 
125
194
  Additive. **Needs the Game API release after v2.43.1** for the ban operations (an older Game
package/README.md CHANGED
@@ -12,24 +12,29 @@ gameplay, minted per app through `client.portal`.
12
12
 
13
13
  Start here:
14
14
 
15
- - [SDK guide](https://docs.crowdedkingdoms.com/crowdyjs/readme) — the canonical
15
+ - [SDK guide](https://docs.dev.crowdedkingdoms.com/crowdyjs/readme) — the canonical
16
16
  walkthrough of everything in this README.
17
- - [Build a game](https://docs.crowdedkingdoms.com/build-a-game/intro) — a
17
+ - [Build a game](https://docs.dev.crowdedkingdoms.com/build-a-game/intro) — a
18
18
  hands-on tutorial from sign-in to a playable voxel game.
19
- - [Platform overview](https://docs.crowdedkingdoms.com/overview/client-workflow)
19
+ - [Platform overview](https://docs.dev.crowdedkingdoms.com/overview/client-workflow)
20
20
  — how a client session flows through the platform.
21
21
 
22
22
  ## Install
23
23
 
24
24
  ```bash
25
- npm install @crowdedkingdoms/crowdyjs
25
+ npm install @crowdedkingdoms/crowdyjs@dev
26
26
  ```
27
27
 
28
+ This README is the `dev` branch's: it documents the release on the `dev` dist-tag
29
+ (`npm view @crowdedkingdoms/crowdyjs dist-tags`), and its links go to the dev docs site. A
30
+ plain `npm install` resolves `latest`, the production release, which has no `client.exec`.
31
+
28
32
  **Server compatibility.** A release selects fields the Game API it was built against has,
29
33
  so it needs that Game API or newer; promote the Game API before the SDK on each tier.
30
34
 
31
35
  | CrowdyJS | Needs the Game API (ck-api) |
32
36
  | --- | --- |
37
+ | 18.11.0 | what 18.10.0 needs; the Game Kit's hub modules need the app to run the starter pack of a compute toolchain with ckx-sdk 0.10.0 (`kit.topology` deploys it) |
33
38
  | 18.10.0 | the release after v2.43.1 (channel and team bans); the access-ended close needs ck-exec 0.16 |
34
39
  | 18.9.0 | the release after v2.40.2 (`InputLogSession.missingRecords`) |
35
40
  | 18.8.0 | v2.40.2 or later (`ExecBuild.sdkVersion`) |
@@ -194,8 +199,8 @@ Notes:
194
199
  - Use `client.auth.setToken(token)` to seed a token externally (e.g. when
195
200
  restoring auth from a non-default storage).
196
201
 
197
- Deeper reading: [Portals & app-scoped tokens](https://docs.crowdedkingdoms.com/management-api/portals-and-app-tokens)
198
- and [Sign in](https://docs.crowdedkingdoms.com/management-api/authentication).
202
+ Deeper reading: [Portals & app-scoped tokens](https://docs.dev.crowdedkingdoms.com/management-api/portals-and-app-tokens)
203
+ and [Sign in](https://docs.dev.crowdedkingdoms.com/management-api/authentication).
199
204
 
200
205
  ### Token refresh during gameplay
201
206
 
@@ -261,7 +266,7 @@ never told about, so a native refresh without it is a re-placement.
261
266
  | `client.realtime` | Connection status, manual `connect()` / `disconnect()`, `onStatus()` listener. |
262
267
  | `client.refreshGameplayToken()` | Safely rotates an active game client's app token (see [Token refresh](#token-refresh-during-gameplay)). |
263
268
  | `client.world(appId)` | Higher-level helpers for browser games (`actor.join`, `actor.sendState`, `actor.sendText`, `actor.sendToActor`). |
264
- | `client.kit(appId)` | Game Kit: parties, guilds and chat over teams and channels (`kit.social`) — see [Game Kit](#game-kit). |
269
+ | `client.kit(appId)` | Game Kit: typed clients for the ck-exec starter hubs (world, matchmaking, sessions, NPCs and pets) on one shared connection, their topology, realtime conventions, and parties, guilds and chat (`kit.social`) — see [Game Kit](#game-kit). |
265
270
  | `createWorldSession(client, appId, config)` | World Stores: opt-in, SDK-managed game state from the `@crowdedkingdoms/crowdyjs/stores` subpath — see [World Stores](#world-stores). |
266
271
 
267
272
  **Studio-admin surface** (privileged; drive with a server-side / studio token,
@@ -319,7 +324,7 @@ query AppForRouting($appId: BigInt!) {
319
324
  `CrowdyClient` with `httpUrl: gameApiUrl` (and the matching `wsUrl`) holding
320
325
  that app's app-scoped token, then drive gameplay through that client. Apps
321
326
  with no `gameApiUrl` keep working against the default `httpUrl` you
322
- configured. See [Loading an app's Game API](https://docs.crowdedkingdoms.com/crowdyjs/shared-environment-routing).
327
+ configured. See [Loading an app's Game API](https://docs.dev.crowdedkingdoms.com/crowdyjs/shared-environment-routing).
323
328
 
324
329
  ## Realtime notifications
325
330
 
@@ -730,29 +735,80 @@ reach your bundle. Reads are synchronous snapshots and writes happen on
730
735
  WebSocket events (not `requestAnimationFrame`), so render loops read freely
731
736
  and a backgrounded tab keeps ingesting updates; pass `workerTicker()` to also
732
737
  keep timer-driven sends at full rate while hidden. See the
733
- [World Stores guide](https://docs.crowdedkingdoms.com/crowdyjs/stores).
738
+ [World Stores guide](https://docs.dev.crowdedkingdoms.com/crowdyjs/stores).
734
739
 
735
740
  ## Game Kit
736
741
 
737
- `client.kit(appId).social` gives parties, guilds and chat rooms in familiar
738
- words over teams (membership and roles) and channels (messaging), with
739
- realtime delivery on the UDP notification subscription:
742
+ `client.kit(appId)` (18.11.0) is the client half of the game kit: typed clients for the
743
+ ck-exec **starter hubs**, the server half (`ckx_sdk::kit` and the starter packs, which an
744
+ app deploys with `kit.topology`). An app's code is a tree under its root hub; the kit's
745
+ modules are the tree's starter types:
746
+
747
+ | Module | Hub (starter) | What it does |
748
+ | --- | --- | --- |
749
+ | `kit.world` | `world` (`world-tick`, the root) | `conditions` (time of day, night, weather, liveops modifiers) and `nodes` (resource nodes) mirrored; `harvest`; for developers `schedule` / `cancel` liveops events |
750
+ | `kit.matchmaking.queue(name)` | `matchmaker` | `join` with a rating, alone or as a party matched whole (the leader names the members; each confirms with `leader`); `accept` / `decline`; `place` and `onMatched` with the session key |
751
+ | `kit.sessions.open(key)` | `session` | lobby, `ready`, the host's `startGame`, `act` in turn under a time limit; the hub scores and names the winner; `state` mirrored |
752
+ | `kit.npcs.area(key)` / `areaAt(x, z)` | `npcs` (`npc-mobs`) | an area's mobs, NPCs and pets mirrored; `attack` (the hub decides reach, cooldown, damage), `talk`; pets: `adopt`, `rename`, `summon`, `dismiss`, `release`, `myPets` |
753
+ | `kit.leaderboards.board(name)` | `leaderboard` | the top mirrored; `top`, `around`, `me`, `season`; scores come from the hubs that decided them (`submit` is for developers and hubs), seasons roll on a schedule (18.12.0) |
754
+ | `kit.tables.table(key)` | `deck` | a card table: the table mirrored, the caller's hand as private state; `join`, `start`, `play`, `draw`, `pass` in the hub's turn order |
755
+ | `kit.tactics.battle(key)` | `tactics` | a grid battle in phases: `move`, `attack`, `endTurn` for the player's units; the hub's units act when every player ended the phase |
756
+ | `kit.encounters.encounter(key)` | `director` | waves down a lane on the hub's clock, `build` towers (the lane must stay open), `hit` with a cooldown, a boss with phases |
757
+ | `kit.minigames.duel(key)` | `minigame` | two-player duels of hidden throws, revealed together; `throw`, `rematch` |
758
+ | `kit.instances.run(key)` | `instance` | a private run for one party: `open` (seeded floors), `invite`, `join`, `enter` each room, `descend`; permadeath and expiry; depth to a leaderboard |
759
+ | `kit.arenas.arena(key)` | `arena` | real-time fights: `join` as a class, `move` (the hub's warden keeps what the speed allows), `cast` (cooldown, resource, range; projectiles and areas land on the hub's ticks) |
760
+ | `kit.racing.race(key)` / `ball(key)` | `race`, `ball` (`racing`) | races (gates in order, laps, splits, places, the winner's `ghost`) and ball games (`claim`, `pass`, `shoot`, goals) on reported positions the warden keeps |
761
+ | `kit.territory.map(key)` / `zone(key)` | `territory`, `zone` (`territory`) | control points a faction captures by standing on them (the hub reads where players are), and a circle that shrinks and wears down whoever is outside |
762
+ | `kit.topology` | — | composes a manifest from `exec.starters` (the types picked, what they hang under and call), checks the tree, builds and deploys (developers, `manage_compute`) |
763
+ | `kit.spectate`, `kit.emotes`, `kit.shards` | — | a viewer's heartbeat so the world's messages reach it; emotes as client events every kit client reads; shard keys as the hubs compute them |
764
+ | `kit.social` | — | parties, guilds and chat rooms over teams and channels |
740
765
 
741
766
  ```ts
742
- const kit = game.kit(appId, { social: { actorUuid: me.uuid } });
743
- const party = await kit.social.party.create('raid'); // team + paired channel
744
- const room = await kit.social.chat.room('lobby');
745
- kit.social.chat.onMessage(room.groupId, (m) => log(m.senderUuid, m.text));
767
+ const kit = game.kit(appId); // one per app, one shared connection
768
+ const q = kit.matchmaking.queue('ranked');
769
+ q.onMatched(async (key) => {
770
+ const match = kit.sessions.open(key);
771
+ match.state.subscribe((s) => render(s)); // mirrored: snapshot, then each change
772
+ await match.watch();
773
+ await match.join();
774
+ await match.ready();
775
+ });
776
+ await q.join({ rating: 1200 });
777
+ q.watch(); // the queue never names who waits; ask
778
+ // ...on the player's turn:
779
+ await kit.sessions.open(key).act({ points: 2 }); // sent with an action id: played once
746
780
  ```
747
781
 
748
- Game rules and state are ck-exec hubs (`client.exec`, below). Two kit pieces
749
- stand alone: the wire codecs (`encodeEnginePose` / `decodeEnginePose`, the
750
- 48-byte engine pose, `engineLanes`, and `parseEngineEvent` with the typed
751
- parsers for server events 77 and 90-98) for games whose hubs keep that wire,
752
- and `runOptimisticAction`, which applies an action locally, asks a referee
753
- (a hub endpoint, say) and rolls back on a denial. The blueprints,
754
- `kit.deploy`, the engines and the model-backed helpers went with the game
755
- model in 18.0.0; see [MIGRATION.md](MIGRATION.md).
782
+ - **One connection** (`kit.runtime`) carries every module's calls and subscriptions, opened
783
+ when first needed (`{ connect }` for affinity or a WebSocket on Node, `{ developer: true }`
784
+ for admin endpoints, `{ connection }` to bring your own). It paces what it sends under the
785
+ gateway's 120 per 10 s (`callBudget`), waits out a rate-limited refusal, and sends a call
786
+ again when it did not run, or, when it carries an action id, after an unknown outcome; the
787
+ hub answers a resent action once.
788
+ - **Mirrors** (`HubState`, `CollectionMirror`) subscribe, then ask the hub for a snapshot, and
789
+ apply what follows in order; a new instance epoch or a gap in a collection's deltas takes a
790
+ fresh snapshot, and so does a reconnect. Each is a store: `get()` and `subscribe(fn)`, the
791
+ shape React's `useSyncExternalStore` takes. `PrivateState` reads what only its player may
792
+ see with a call, again whenever the hub says it changed for them.
793
+ - **Refusals** are `KitError` (a `CrowdyExecError` with status `AppError`) with a `code` to
794
+ branch on: `not_your_turn`, `cooldown`, `full`, `forbidden`, ... (`KIT_CODES`).
795
+ - **Kit types are the hubs' MessagePack maps as they arrive**, field names and all
796
+ (`time_of_day`, `expires_in_ms`), the same in CrowdyCPP and CrowdyPy.
797
+ - **Realtime**: hubs show server-driven actors through the realtime tier; `kitActorCodec`,
798
+ `withKitActors(playerCodec)` and `kitActorLanes()` plug them into World Stores' `actors`
799
+ beside players, and `kitEventCodecs()` / `parseKitServerEvent` read server events. The
800
+ registry (`wire.ts`, from `ckx_sdk::kit::wire`) numbers them 77 and 90-101 with camelCase JSON
801
+ bodies; an app's own start at 1000. The 48-byte engine pose (`enginePoseCodec`,
802
+ `engineLanes`) stays for hubs that show actors with it.
803
+ - `runOptimisticAction` applies an action locally, asks a referee (a hub endpoint) and rolls
804
+ back on a denial; pass `kit.runtime.call(..., { action: actionId })` its id.
805
+
806
+ The protocol is held to ck-exec's golden record of the starters
807
+ (`test/unit/fixtures/kit-protocol.json`): every module call and topic in it is replayed in
808
+ `test/unit/game-kit.test.mjs`. The blueprints, `kit.deploy`, the engines and the model-backed
809
+ helpers went with the game model in 18.0.0; the hub modules replace them. See the
810
+ [Game Kit docs](https://docs.dev.crowdedkingdoms.com/game-kit/intro) and
811
+ [MIGRATION.md](MIGRATION.md).
756
812
 
757
813
  ## ck-exec
758
814
 
@@ -812,8 +868,10 @@ exec.onReconnect((host) => console.log('moved to', host));
812
868
  `timedCalls` (default the last 60 minutes, at most 7 days).
813
869
 
814
870
  Integers above 2^53 decode as `number` and lose precision unless you pass
815
- `{ decode: { useBigInt64: true } }`. The wire format is in the
816
- [ck-exec docs](https://docs.crowdedkingdoms.com/exec/intro).
871
+ `{ decode: { useBigInt64: true } }`. A call's whole numbers outside 32 bits (a timestamp in
872
+ milliseconds, a player id) go out as 64-bit integers (18.11.0; before, as floats, which a
873
+ hub's integer fields refuse). The wire format is in the
874
+ [ck-exec docs](https://docs.dev.crowdedkingdoms.com/exec/intro).
817
875
 
818
876
  ### A mod's CLIENT half
819
877
 
@@ -884,7 +942,7 @@ counts what was dropped); `invoke` sends at most 256 KiB each way and is refused
884
942
  module is not running. `NOT_FOUND` holds a CLIENT half back 15 s and `RATE_LIMITED` 60 s. The
885
943
  grid's owner is asked about their own CLIENT halves like anyone; answer yes in `confirm` when
886
944
  `prompt.authorId` is the player. See
887
- [CLIENT halves](https://docs.crowdedkingdoms.com/exec/client-halves).
945
+ [CLIENT halves](https://docs.dev.crowdedkingdoms.com/exec/client-halves).
888
946
 
889
947
  ## Hosting a game on Crowdy Games
890
948
 
@@ -1003,8 +1061,8 @@ CLIENT project needs ck-api `v2.25.1` or later. A CLIENT crate still on the lega
1003
1061
  `mountCrowdyStudio` and the controller take `mods: client.exec`. Crowdy Studio runs nothing
1004
1062
  on legacy player compute since 18.0.0.
1005
1063
 
1006
- See [CLIENT halves](https://docs.crowdedkingdoms.com/exec/client-halves), [mods](https://docs.crowdedkingdoms.com/exec/mods)
1007
- and [Embed Crowdy Studio in your game](https://docs.crowdedkingdoms.com/crowdyjs/crowdy-studio-embed).
1064
+ See [CLIENT halves](https://docs.dev.crowdedkingdoms.com/exec/client-halves), [mods](https://docs.dev.crowdedkingdoms.com/exec/mods)
1065
+ and [Embed Crowdy Studio in your game](https://docs.dev.crowdedkingdoms.com/crowdyjs/crowdy-studio-embed).
1008
1066
 
1009
1067
  ### The Studio agent (DeepSeek Harness in the browser)
1010
1068
 
@@ -1178,6 +1236,9 @@ is why the mint also returns `discoveryUrl`.
1178
1236
  `CROWDY_HTTP_URL` and `CROWDY_E2E_THROWAWAY_OWNER=1` it registers a throwaway org admin (its own
1179
1237
  org and app) and a player, opens and closes a grid, and checks the tier's ck-exec gateway. It
1180
1238
  leaves the org behind and archives the app, so it runs only when asked to.
1239
+ `test/e2e/game-kit.test.mjs` does the same for the Game Kit: the throwaway owner composes the
1240
+ starter hubs with `kit.topology`, builds and deploys them, and two players play them (on dev and
1241
+ test it also needs `CROWDY_PROVISIONING_TOKEN`, which their staff-only sign-up asks for).
1181
1242
 
1182
1243
  ## Maintainers: schema artifacts and fixtures
1183
1244
 
@@ -1190,7 +1251,7 @@ no other repositories and no network access required:
1190
1251
  `src/generated/graphql-schema.ts`, the generated schema types.
1191
1252
 
1192
1253
  Schema refresh is explicit, from the published
1193
- [SDL](https://docs.crowdedkingdoms.com/schema/game-api.graphql):
1254
+ [SDL](https://docs.dev.crowdedkingdoms.com/schema/game-api.graphql):
1194
1255
 
1195
1256
  ```bash
1196
1257
  npm run schema:sync:prod
@@ -287,6 +287,8 @@ export declare class CrowdyClient {
287
287
  * deploy, operate) and players' mods on the grids they own.
288
288
  */
289
289
  readonly exec: ExecAPI;
290
+ /** The option-less kit of each app, so its modules share one connection. */
291
+ private readonly kits;
290
292
  /** Crowdy Studio cloud projects, libraries, and common source files. */
291
293
  readonly crowdyStudio: CrowdyStudioAPI;
292
294
  /** GitHub repository loop for Crowdy Studio projects (same session; the API resolves the repo from the bind). */
@@ -361,11 +363,17 @@ export declare class CrowdyClient {
361
363
  */
362
364
  grid(appId: string, gridId: string, box?: GridBox): GridScope;
363
365
  /**
364
- * App-scoped **Game Kit**: parties, guilds and chat rooms over teams and channels
365
- * (`kit.social`). See {@link GameKitClient}.
366
+ * App-scoped **Game Kit**: typed clients for the ck-exec starter hubs (world, matchmaking,
367
+ * sessions, NPCs and pets), their topology, the realtime conventions (spectate, emotes,
368
+ * shards), and parties, guilds and chat over teams and channels (`kit.social`). See
369
+ * {@link GameKitClient}.
370
+ *
371
+ * Without options, every call for one app returns the same kit, so its modules share one
372
+ * connection to the app's hubs. With options, each call makes a kit of its own (close it
373
+ * with `close()`).
366
374
  *
367
375
  * @param appId - The app (BigInt as a decimal string).
368
- * @param options - Optional name prefixes and the chat sender's actor uuid.
376
+ * @param options - The kit's connection, node type names, and social name prefixes.
369
377
  */
370
378
  kit(appId: string, options?: GameKitOptions): GameKitClient;
371
379
  /** Closes the WebSocket and clears the in-memory auth token. */
@@ -1 +1 @@
1
- {"version":3,"file":"crowdy-client.d.ts","sourceRoot":"","sources":["../src/crowdy-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAK5C,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC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AC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,OAAO,GAAG,SAAS;IAI7D;;;;;;;;;;;;OAYG;IACH,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,aAAa;IAgB3D,gEAAgE;IAChE,KAAK,IAAI,IAAI;IAQb,yDAAyD;IACzD,IAAI,eAAe,IAAI,MAAM,CAE5B;CACF;AAED,wBAAgB,kBAAkB,CAChC,MAAM,GAAE,kBAAuB,GAC9B,YAAY,CAEd"}
@@ -69,6 +69,8 @@ import { DiscoveryDomain } from './domains/discovery.js';
69
69
  export class CrowdyClient {
70
70
  constructor(config = {}) {
71
71
  this.gameplayTokenRefresh = null;
72
+ /** The option-less kit of each app, so its modules share one connection. */
73
+ this.kits = new Map();
72
74
  // TypeScript rejects these, JavaScript would not: a caller still passing
73
75
  // managementUrl would have its identity calls silently sent to httpUrl, or
74
76
  // nowhere at all if managementUrl was the only URL it set. Say so instead.
@@ -331,24 +333,43 @@ export class CrowdyClient {
331
333
  return new GridScope(this, appId, gridId, box);
332
334
  }
333
335
  /**
334
- * App-scoped **Game Kit**: parties, guilds and chat rooms over teams and channels
335
- * (`kit.social`). See {@link GameKitClient}.
336
+ * App-scoped **Game Kit**: typed clients for the ck-exec starter hubs (world, matchmaking,
337
+ * sessions, NPCs and pets), their topology, the realtime conventions (spectate, emotes,
338
+ * shards), and parties, guilds and chat over teams and channels (`kit.social`). See
339
+ * {@link GameKitClient}.
340
+ *
341
+ * Without options, every call for one app returns the same kit, so its modules share one
342
+ * connection to the app's hubs. With options, each call makes a kit of its own (close it
343
+ * with `close()`).
336
344
  *
337
345
  * @param appId - The app (BigInt as a decimal string).
338
- * @param options - Optional name prefixes and the chat sender's actor uuid.
346
+ * @param options - The kit's connection, node type names, and social name prefixes.
339
347
  */
340
348
  kit(appId, options) {
341
- return new GameKitClient(appId, this.gameApps, options, {
349
+ if (!options) {
350
+ const held = this.kits.get(appId);
351
+ if (held)
352
+ return held;
353
+ }
354
+ const kit = new GameKitClient(appId, this.gameApps, options, {
342
355
  channels: this.channels,
343
356
  teams: this.teams,
344
357
  udp: this.udp,
358
+ exec: this.exec,
359
+ whoAmI: () => this.users.me().then((me) => me?.userId ?? null),
345
360
  });
361
+ if (!options)
362
+ this.kits.set(appId, kit);
363
+ return kit;
346
364
  }
347
365
  /** Closes the WebSocket and clears the in-memory auth token. */
348
366
  close() {
349
367
  this.realtime.close();
350
368
  this.session.setToken(null);
351
369
  this.embeddedHost?.close();
370
+ for (const kit of this.kits.values())
371
+ kit.close();
372
+ this.kits.clear();
352
373
  }
353
374
  /** The configured or discovered GraphQL endpoint URL. */
354
375
  get graphqlEndpoint() {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * GENERATED — do not edit. The operator tooling's
3
- * `sync-client-origins.mjs --write --tier prod` writes this file, and
3
+ * `sync-client-origins.mjs --write --tier dev` writes this file, and
4
4
  * `check-sdk-default-origin.mjs` refuses it when it names the wrong tier or a
5
5
  * host that declaration does not carry. Regenerate; never hand-edit.
6
6
  *
@@ -10,14 +10,14 @@
10
10
  * than no default at all. Every fallback this SDK ever removed named a host that
11
11
  * was already dead. A generated file plus a gate is what makes this one different.
12
12
  *
13
- * Source: the operator's per-tier public CK API origin declaration, tier 'prod'
13
+ * Source: the operator's per-tier public CK API origin declaration, tier 'dev'
14
14
  */
15
15
  /** The tier this build of the SDK is published for. */
16
- export declare const CROWDY_DEFAULT_TIER = "prod";
16
+ export declare const CROWDY_DEFAULT_TIER = "dev";
17
17
  /** The public CK API origin for that tier. */
18
- export declare const CROWDY_DEFAULT_HTTP_ORIGIN = "https://ck.prod.crowdedkingdoms.com";
18
+ export declare const CROWDY_DEFAULT_HTTP_ORIGIN = "https://ck.dev.crowdedkingdoms.com";
19
19
  /** The same host over WebSocket. A scheme is composed; a hostname is looked up. */
20
- export declare const CROWDY_DEFAULT_WS_ORIGIN = "wss://ck.prod.crowdedkingdoms.com";
20
+ export declare const CROWDY_DEFAULT_WS_ORIGIN = "wss://ck.dev.crowdedkingdoms.com";
21
21
  /** The bare hostname, for callers that need to compare rather than dial. */
22
- export declare const CROWDY_DEFAULT_HOST = "ck.prod.crowdedkingdoms.com";
22
+ export declare const CROWDY_DEFAULT_HOST = "ck.dev.crowdedkingdoms.com";
23
23
  //# sourceMappingURL=default-origin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"default-origin.d.ts","sourceRoot":"","sources":["../src/default-origin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,uDAAuD;AACvD,eAAO,MAAM,mBAAmB,SAAS,CAAC;AAE1C,8CAA8C;AAC9C,eAAO,MAAM,0BAA0B,wCAAwC,CAAC;AAEhF,mFAAmF;AACnF,eAAO,MAAM,wBAAwB,sCAAsC,CAAC;AAE5E,4EAA4E;AAC5E,eAAO,MAAM,mBAAmB,gCAAgC,CAAC"}
1
+ {"version":3,"file":"default-origin.d.ts","sourceRoot":"","sources":["../src/default-origin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,uDAAuD;AACvD,eAAO,MAAM,mBAAmB,QAAQ,CAAC;AAEzC,8CAA8C;AAC9C,eAAO,MAAM,0BAA0B,uCAAuC,CAAC;AAE/E,mFAAmF;AACnF,eAAO,MAAM,wBAAwB,qCAAqC,CAAC;AAE3E,4EAA4E;AAC5E,eAAO,MAAM,mBAAmB,+BAA+B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * GENERATED — do not edit. The operator tooling's
3
- * `sync-client-origins.mjs --write --tier prod` writes this file, and
3
+ * `sync-client-origins.mjs --write --tier dev` writes this file, and
4
4
  * `check-sdk-default-origin.mjs` refuses it when it names the wrong tier or a
5
5
  * host that declaration does not carry. Regenerate; never hand-edit.
6
6
  *
@@ -10,13 +10,13 @@
10
10
  * than no default at all. Every fallback this SDK ever removed named a host that
11
11
  * was already dead. A generated file plus a gate is what makes this one different.
12
12
  *
13
- * Source: the operator's per-tier public CK API origin declaration, tier 'prod'
13
+ * Source: the operator's per-tier public CK API origin declaration, tier 'dev'
14
14
  */
15
15
  /** The tier this build of the SDK is published for. */
16
- export const CROWDY_DEFAULT_TIER = 'prod';
16
+ export const CROWDY_DEFAULT_TIER = 'dev';
17
17
  /** The public CK API origin for that tier. */
18
- export const CROWDY_DEFAULT_HTTP_ORIGIN = 'https://ck.prod.crowdedkingdoms.com';
18
+ export const CROWDY_DEFAULT_HTTP_ORIGIN = 'https://ck.dev.crowdedkingdoms.com';
19
19
  /** The same host over WebSocket. A scheme is composed; a hostname is looked up. */
20
- export const CROWDY_DEFAULT_WS_ORIGIN = 'wss://ck.prod.crowdedkingdoms.com';
20
+ export const CROWDY_DEFAULT_WS_ORIGIN = 'wss://ck.dev.crowdedkingdoms.com';
21
21
  /** The bare hostname, for callers that need to compare rather than dial. */
22
- export const CROWDY_DEFAULT_HOST = 'ck.prod.crowdedkingdoms.com';
22
+ export const CROWDY_DEFAULT_HOST = 'ck.dev.crowdedkingdoms.com';
@@ -220,6 +220,12 @@ export declare class ExecConnection {
220
220
  /** Closes the connection; it does not reconnect. */
221
221
  close(): void;
222
222
  }
223
+ /**
224
+ * `value` with every whole number outside 32 bits as a bigint. MessagePack's encoder, set to
225
+ * write bigints as 64-bit integers, writes such a number as a float, which a hub's integer
226
+ * fields refuse: a timestamp in milliseconds, a player id.
227
+ */
228
+ export declare function execWireIntegers(value: unknown, depth?: number): unknown;
223
229
  /** One node type of a deploy: its module and its manifest settings. */
224
230
  export interface ExecNodeTypeInput {
225
231
  kind: 'hub' | 'spoke';
@@ -1 +1 @@
1
- {"version":3,"file":"exec.d.ts","sourceRoot":"","sources":["../../src/domains/exec.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,EAAE,WAAW,EAAuB,MA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7 +501,9 @@ export class ExecConnection {
501
501
  return;
502
502
  }
503
503
  catch {
504
- await new Promise((r) => setTimeout(r, this.backoffMs));
504
+ // Half the backoff, plus up to as much again at random: the players of a host that
505
+ // went away do not all dial its replacement at once.
506
+ await new Promise((r) => setTimeout(r, this.backoffMs / 2 + Math.random() * (this.backoffMs / 2)));
505
507
  this.backoffMs = Math.min(this.backoffMs * 2, MAX_BACKOFF_MS);
506
508
  }
507
509
  }
@@ -600,7 +602,7 @@ export class ExecConnection {
600
602
  * @throws {CrowdyExecError} for any status but `Ok`; `AppError` carries the handler's message.
601
603
  */
602
604
  async call(nodeType, key, method, args, options = {}) {
603
- const payload = encode(args ?? null, { useBigInt64: true });
605
+ const payload = encode(execWireIntegers(args ?? null), { useBigInt64: true });
604
606
  const reply = await this.callRaw(nodeType, key, method, payload, options);
605
607
  return decode(reply, this.options.decode);
606
608
  }
@@ -658,6 +660,30 @@ export class ExecConnection {
658
660
  function fromUtf8Lossy(b) {
659
661
  return new TextDecoder().decode(b);
660
662
  }
663
+ /**
664
+ * `value` with every whole number outside 32 bits as a bigint. MessagePack's encoder, set to
665
+ * write bigints as 64-bit integers, writes such a number as a float, which a hub's integer
666
+ * fields refuse: a timestamp in milliseconds, a player id.
667
+ */
668
+ export function execWireIntegers(value, depth = 0) {
669
+ if (typeof value === 'number') {
670
+ return Number.isSafeInteger(value) && (value > 0xffffffff || value < -0x80000000) ? BigInt(value) : value;
671
+ }
672
+ if (depth > 64 || value === null || typeof value !== 'object' || ArrayBuffer.isView(value))
673
+ return value;
674
+ if (Array.isArray(value))
675
+ return value.map((v) => execWireIntegers(v, depth + 1));
676
+ if (value instanceof Map) {
677
+ return new Map([...value].map(([k, v]) => [execWireIntegers(k, depth + 1), execWireIntegers(v, depth + 1)]));
678
+ }
679
+ const proto = Object.getPrototypeOf(value);
680
+ if (proto !== Object.prototype && proto !== null)
681
+ return value;
682
+ const out = {};
683
+ for (const [k, v] of Object.entries(value))
684
+ out[k] = execWireIntegers(v, depth + 1);
685
+ return out;
686
+ }
661
687
  function base64(bytes) {
662
688
  let s = '';
663
689
  for (let i = 0; i < bytes.length; i += 0x8000) {
@@ -6799,7 +6799,7 @@ export type Query = {
6799
6799
  execMods: Array<ExecMod>;
6800
6800
  /** Your mods in an app, on every grid. */
6801
6801
  execMyMods: Array<ExecMod>;
6802
- /** The starter packs, which replace the compute templates: a world tick (the root hub: clock, weather, resource nodes, liveops events), a matchmaker, game sessions (lobby, host, turns, scores) and an NPC and mob engine, as ckx-sdk crates to pass to `execBuild` and a manifest for `execDeploy`. Requires the org 'manage_compute' permission. */
6802
+ /** The starter packs, which replace the compute templates: ckx-sdk hub crates for a root world, matchmaking, game sessions, NPCs and mobs, and game genres (leaderboards, cards, tactics, waves, duels, private runs, arenas, races, territory), to pass to `execBuild`, with a manifest for `execDeploy`. `starters` has one entry per node type, so a crate that serves two types appears twice: build it once. Requires the org 'manage_compute' permission. */
6803
6803
  execStarters: ExecStarterPack;
6804
6804
  /** An app's deployed ck-exec versions, newest first, and which is active. Requires the org 'view_compute_diagnostics' permission. */
6805
6805
  execVersions: Array<ExecVersion>;