@crowdedkingdoms/crowdyjs 18.22.0 → 18.23.1-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.
- package/MIGRATION.md +29 -3
- package/README.md +86 -64
- package/dist/crowdy-client.d.ts +18 -7
- package/dist/crowdy-client.d.ts.map +1 -1
- package/dist/crowdy-dsh/bridge.d.ts +72 -3
- package/dist/crowdy-dsh/bridge.d.ts.map +1 -1
- package/dist/crowdy-dsh/bridge.js +243 -12
- package/dist/crowdy-dsh/game-paths.d.ts +8 -0
- package/dist/crowdy-dsh/game-paths.d.ts.map +1 -0
- package/dist/crowdy-dsh/game-paths.js +20 -0
- package/dist/crowdy-dsh/pane.d.ts +18 -1
- package/dist/crowdy-dsh/pane.d.ts.map +1 -1
- package/dist/crowdy-dsh/pane.js +86 -2
- package/dist/crowdy-dsh/protocol.d.ts +165 -2
- package/dist/crowdy-dsh/protocol.d.ts.map +1 -1
- package/dist/crowdy-dsh/protocol.js +24 -1
- package/dist/crowdy-studio/controller.d.ts +100 -0
- package/dist/crowdy-studio/controller.d.ts.map +1 -1
- package/dist/crowdy-studio/controller.js +363 -1
- package/dist/crowdy-studio/dom-shell.d.ts +11 -0
- package/dist/crowdy-studio/dom-shell.d.ts.map +1 -1
- package/dist/crowdy-studio/dom-shell.js +182 -0
- package/dist/crowdy-studio/draft/github-draft-store.d.ts +143 -0
- package/dist/crowdy-studio/draft/github-draft-store.d.ts.map +1 -0
- package/dist/crowdy-studio/draft/github-draft-store.js +477 -0
- package/dist/crowdy-studio/draft/hash.d.ts +12 -0
- package/dist/crowdy-studio/draft/hash.d.ts.map +1 -0
- package/dist/crowdy-studio/draft/hash.js +25 -0
- package/dist/crowdy-studio/draft/index.d.ts +6 -0
- package/dist/crowdy-studio/draft/index.d.ts.map +1 -0
- package/dist/crowdy-studio/draft/index.js +5 -0
- package/dist/crowdy-studio/draft/overlay-storage.d.ts +48 -0
- package/dist/crowdy-studio/draft/overlay-storage.d.ts.map +1 -0
- package/dist/crowdy-studio/draft/overlay-storage.js +94 -0
- package/dist/crowdy-studio/draft/paths.d.ts +20 -0
- package/dist/crowdy-studio/draft/paths.d.ts.map +1 -0
- package/dist/crowdy-studio/draft/paths.js +54 -0
- package/dist/crowdy-studio/draft/types.d.ts +137 -0
- package/dist/crowdy-studio/draft/types.d.ts.map +1 -0
- package/dist/crowdy-studio/draft/types.js +29 -0
- package/dist/crowdy-studio/editor.d.ts +2 -0
- package/dist/crowdy-studio/editor.d.ts.map +1 -1
- package/dist/crowdy-studio/embed/panel.d.ts +8 -0
- package/dist/crowdy-studio/embed/panel.d.ts.map +1 -1
- package/dist/crowdy-studio/embed/panel.js +2 -0
- package/dist/crowdy-studio/github/index.d.ts +1 -1
- package/dist/crowdy-studio/github/index.d.ts.map +1 -1
- package/dist/crowdy-studio/github/transport.d.ts +59 -0
- package/dist/crowdy-studio/github/transport.d.ts.map +1 -1
- package/dist/crowdy-studio/github/transport.js +30 -1
- package/dist/crowdy-studio/index.d.ts +1 -0
- package/dist/crowdy-studio/index.d.ts.map +1 -1
- package/dist/crowdy-studio/index.js +1 -0
- package/dist/crowdy-studio/models.d.ts +1 -1
- package/dist/crowdy-studio/models.d.ts.map +1 -1
- package/dist/crowdy-studio/monaco-editor.d.ts.map +1 -1
- package/dist/crowdy-studio/monaco-editor.js +16 -0
- package/dist/crowdy-studio/mount.d.ts +2 -0
- package/dist/crowdy-studio/mount.d.ts.map +1 -1
- package/dist/crowdy-studio/mount.js +2 -0
- package/dist/crowdy-studio/repository-tree.d.ts +14 -0
- package/dist/crowdy-studio/repository-tree.d.ts.map +1 -0
- package/dist/crowdy-studio/repository-tree.js +45 -0
- package/dist/crowdy-studio/styles.d.ts +1 -1
- package/dist/crowdy-studio/styles.d.ts.map +1 -1
- package/dist/crowdy-studio/styles.js +1 -0
- package/dist/crowdy-studio/textarea-editor.d.ts.map +1 -1
- package/dist/crowdy-studio/textarea-editor.js +10 -4
- package/dist/default-origin.d.ts +6 -6
- package/dist/default-origin.d.ts.map +1 -1
- package/dist/default-origin.js +6 -6
- package/dist/domains/auth.d.ts +3 -3
- package/dist/domains/embedded-host.d.ts +19 -9
- package/dist/domains/embedded-host.d.ts.map +1 -1
- package/dist/domains/embedded-host.js +19 -9
- package/dist/domains/hosting.d.ts +12 -3
- package/dist/domains/hosting.d.ts.map +1 -1
- package/dist/domains/hosting.js +12 -3
- package/dist/domains/portal.d.ts +5 -3
- package/dist/domains/portal.d.ts.map +1 -1
- package/dist/domains/portal.js +1 -1
- package/dist/generated/graphql-schema.d.ts +84 -2
- package/dist/generated/graphql-schema.d.ts.map +1 -1
- package/dist/generated/graphql-schema.js +9 -1
- package/dist/hosting/index.d.ts +4 -0
- package/dist/hosting/index.d.ts.map +1 -1
- package/dist/hosting/index.js +4 -0
- package/dist/hosting/publish-directory.d.ts +11 -1
- package/dist/hosting/publish-directory.d.ts.map +1 -1
- package/dist/hosting/publish-directory.js +11 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/MIGRATION.md
CHANGED
|
@@ -120,6 +120,24 @@ 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.23.1: Crowded Kingdoms no longer hosts games
|
|
124
|
+
|
|
125
|
+
No breaking change. On 2026-10-29 Crowded Kingdoms retired Crowdy Games: the games site, the
|
|
126
|
+
shell that framed published games, the Overworld lobby and the content CDN are gone on every
|
|
127
|
+
tier. Build your game and serve it from your own origin, on any static host that can set
|
|
128
|
+
response headers. In Studio, open the app's **Settings > Sign-in & redirect URIs**, add a
|
|
129
|
+
redirect URI on that origin, and set the origin as the app's **Launch URL**.
|
|
130
|
+
[Host your game](https://docs.crowdedkingdoms.com/build-a-game/host-your-game) has the
|
|
131
|
+
requirements and recipes.
|
|
132
|
+
|
|
133
|
+
The 17.2.0 hosting surface is **deprecated**, and its code is unchanged: `client.hosting`,
|
|
134
|
+
`uploadPublishFiles`, `publishDirectory` and `manifestForDirectory`
|
|
135
|
+
(`@crowdedkingdoms/crowdyjs/hosting`), and `EmbeddedHost` (`client.embeddedHost`). The hosting
|
|
136
|
+
API answers `CONTENT_HOSTING_DISABLED` on every tier and its reads return null or an empty list,
|
|
137
|
+
so a publish step that calls it fails; remove it from your build. Sign-in needs no change: with
|
|
138
|
+
no shell to answer it, `EmbeddedHost.hello()` resolves null and `portal.signIn` takes the hosted
|
|
139
|
+
sign-in on your own origin, as a self-hosted game always did.
|
|
140
|
+
|
|
123
141
|
## 18.15.0: sending opcode 140
|
|
124
142
|
|
|
125
143
|
No breaking change. `client.udp.sendGenericSpatial({ appId, chunk, uuid, payload })` sends an
|
|
@@ -991,6 +1009,12 @@ No removals.
|
|
|
991
1009
|
|
|
992
1010
|
# CrowdyJS v17.2 — publish to Crowdy Games; sign-in under the shell
|
|
993
1011
|
|
|
1012
|
+
**Retired on 2026-10-29.** Crowded Kingdoms no longer hosts games, so both additions below,
|
|
1013
|
+
`client.hosting` (with `@crowdedkingdoms/crowdyjs/hosting`) and `EmbeddedHost`, are deprecated
|
|
1014
|
+
and dormant: the hosting API answers `CONTENT_HOSTING_DISABLED` on every tier, and no shell
|
|
1015
|
+
frames a game. See
|
|
1016
|
+
[18.23.1: Crowded Kingdoms no longer hosts games](#18231-crowded-kingdoms-no-longer-hosts-games).
|
|
1017
|
+
|
|
994
1018
|
**Additive.** `17.2.0` (2026-09-14). Tracks ck-api `v2.1.0` (third-party game
|
|
995
1019
|
hosting). Nothing existing changes shape; two things are new.
|
|
996
1020
|
|
|
@@ -1304,7 +1328,8 @@ of the two sign-in paths your code may take.** ck-api `v1.88.0` (2026-09-08).
|
|
|
1304
1328
|
`auth.socialLoginStart` / `socialLoginComplete`, `auth.checkAuthMethod`,
|
|
1305
1329
|
`auth.requestPasswordReset` / `resetPassword` are now served only to:
|
|
1306
1330
|
|
|
1307
|
-
- **first-party browser origins** — Studio and the crowdy.games host
|
|
1331
|
+
- **first-party browser origins** — Studio, and the crowdy.games host until 2026-09-14
|
|
1332
|
+
(that site was retired on 2026-10-29); and
|
|
1308
1333
|
- **non-browser callers** — anything that sends no `Origin` header (Node, a
|
|
1309
1334
|
CLI, CrowdyCPP, tests).
|
|
1310
1335
|
|
|
@@ -1342,8 +1367,9 @@ on the client. You never held a session token, and you never needed one.
|
|
|
1342
1367
|
|
|
1343
1368
|
## If you are first-party or not in a browser, nothing changes
|
|
1344
1369
|
|
|
1345
|
-
Studio,
|
|
1346
|
-
`auth.login` / `register` and then `portal.mintAppToken(appId)`.
|
|
1370
|
+
Studio, CrowdyCPP, load tools and scripts keep calling
|
|
1371
|
+
`auth.login` / `register` and then `portal.mintAppToken(appId)`. The Overworld lobby did
|
|
1372
|
+
too, until it stopped signing players in on 2026-09-14.
|
|
1347
1373
|
|
|
1348
1374
|
## Also in this release (server side, no SDK change)
|
|
1349
1375
|
|
package/README.md
CHANGED
|
@@ -12,19 +12,23 @@ 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
|
|
|
@@ -77,10 +81,10 @@ const me = await client.users.me();
|
|
|
77
81
|
console.log(me.email);
|
|
78
82
|
```
|
|
79
83
|
|
|
80
|
-
Your game's origin must be registered under the app's **redirect URIs**
|
|
81
|
-
|
|
82
|
-
hosted sign-in return. Direct sign-in (`client.auth.login` / `register` /
|
|
83
|
-
link / social) is served only to first-party pages (Studio
|
|
84
|
+
Your game's origin must be registered under the app's **redirect URIs** (in Studio,
|
|
85
|
+
the app's **Settings > Sign-in & redirect URIs**); that one entry admits it to CORS
|
|
86
|
+
and to the hosted sign-in return. Direct sign-in (`client.auth.login` / `register` /
|
|
87
|
+
magic link / social) is served only to first-party pages (Studio) and to
|
|
84
88
|
non-browser callers (Node, CLI, tests); from any other browser origin the API
|
|
85
89
|
answers `HOSTED_SIGN_IN_REQUIRED` (`isHostedSignInRequiredError`). See
|
|
86
90
|
[Authentication](#authentication-session-token-vs-app-scoped-tokens).
|
|
@@ -123,18 +127,9 @@ before minting; `client.auth.playerLegalAcceptance()` says whether that is still
|
|
|
123
127
|
needed. `auth.register` takes the same two fields, and a browser page must send both.
|
|
124
128
|
See [MIGRATION.md](MIGRATION.md#1840-the-terms-and-age-gate).
|
|
125
129
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
origin, `https://<slug>.<content host>`. The iframe cannot navigate the tab and
|
|
130
|
-
Studio refuses to be framed, so `portal.signIn` asks the shell to navigate
|
|
131
|
-
(`crowdyjs:navigate`; the shell honours exactly the tier's Studio `/authorize`) and
|
|
132
|
-
uses the shell's page as the `redirect_uri` -- the shell then hands the returned
|
|
133
|
-
`?code=&state=` into the iframe, where `portal.handleSignInCallback` runs exactly as
|
|
134
|
-
it does self-hosted. Nothing changes in your code: the bridge (`client.embeddedHost`,
|
|
135
|
-
`EmbeddedHost`) detects the shell with a bounded hello and falls back to the
|
|
136
|
-
top-level flow when nobody answers. Pass `embeddedHost: false` to `createCrowdyClient`
|
|
137
|
-
to never consult a framing page.
|
|
130
|
+
Crowded Kingdoms no longer hosts games (retired 2026-10-29), so a customer's game
|
|
131
|
+
always runs on its own domain and takes the first row. See
|
|
132
|
+
[Hosting your game](#hosting-your-game).
|
|
138
133
|
|
|
139
134
|
**Hosted sign-in** (browser game, own domain) is OAuth2 Authorization Code +
|
|
140
135
|
PKCE; the verifier never leaves your origin and your page never sees a
|
|
@@ -196,8 +191,8 @@ Notes:
|
|
|
196
191
|
- Use `client.auth.setToken(token)` to seed a token externally (e.g. when
|
|
197
192
|
restoring auth from a non-default storage).
|
|
198
193
|
|
|
199
|
-
Deeper reading: [Portals & app-scoped tokens](https://docs.crowdedkingdoms.com/management-api/portals-and-app-tokens)
|
|
200
|
-
and [Sign in](https://docs.crowdedkingdoms.com/management-api/authentication).
|
|
194
|
+
Deeper reading: [Portals & app-scoped tokens](https://docs.dev.crowdedkingdoms.com/management-api/portals-and-app-tokens)
|
|
195
|
+
and [Sign in](https://docs.dev.crowdedkingdoms.com/management-api/authentication).
|
|
201
196
|
|
|
202
197
|
### Org-managed players
|
|
203
198
|
|
|
@@ -318,7 +313,7 @@ never told about, so a native refresh without it is a re-placement.
|
|
|
318
313
|
| `client.users` | `me`, `updateGamertag`, profile reads; `playerProfile` / `playerProfiles` (up to 100) for other players' public `{ userId, gamertag, disambiguation }`. |
|
|
319
314
|
| `client.session` | Token store, `restore()`, `getToken()`, manual `setToken()`. |
|
|
320
315
|
| `client.portal` | App-scoped token minting (`mintAppToken`) and the cross-origin PKCE entry flow (`beginEntry` / `handleAuthorizeRequest` / `completeEntry` / `refresh`). For an org-managed player, `adoptAppToken` stores the token its organization minted and `exchangeManagedPlayerAssertion` trades the organization's signed assertion. |
|
|
321
|
-
| `client.hosting` |
|
|
316
|
+
| `client.hosting` | **Deprecated.** Crowded Kingdoms no longer hosts games (retired 2026-10-29): the hosting API answers `CONTENT_HOSTING_DISABLED` on every tier, and its reads return null or an empty list. The methods (`claim`, `beginPublish` / `completePublish` / `abandonPublish`, `setEnabled`, `game(slug)`, `listed()`) and the Node helper `publishDirectory` (`@crowdedkingdoms/crowdyjs/hosting`) remain in the package. See [Hosting your game](#hosting-your-game). |
|
|
322
317
|
| `client.platform` | Public platform configuration (`config()`). |
|
|
323
318
|
| `client.serverStatus` | `gameClientBootstrap(appId)` — per-app version info, UDP status, spatial limits. |
|
|
324
319
|
| `client.chunks`, `client.voxels`, `client.actors`, `client.avatars`, `client.state` | World data reads + writes: terrain/LODs, voxel edit + history/rollback, durable actors, avatars, per-user app state blobs. |
|
|
@@ -330,7 +325,7 @@ never told about, so a native refresh without it is a re-placement.
|
|
|
330
325
|
| `client.playerWallet` | Player spend: balance, ledger, hourly charges, spend caps, card setup, auto-recharge. A ck-exec mod's compute is billed here, to its owner. |
|
|
331
326
|
| `client.marketplace` | Player-authorized grid claims (`claimGridOwnership`, `claimGridChunk`, `releaseClaimedGrid`, requests and invites) and studio moderation of player code (admission queue, listing administration, claim policy). Mods publish and install through `client.exec`. |
|
|
332
327
|
| `client.crowdyStudio` | Cloud project, personal-library, and common-file APIs for Crowdy Studio: target-scoped files, metadata/module names, optimistic revisions, copy-by-value imports, atomic saves. |
|
|
333
|
-
| `client.crowdyStudioGitHub` | Optional GitHub repository for a Crowdy Studio project: status, `bind` (push the project in, or take the repository), `unbind`, `refresh`, `layout
|
|
328
|
+
| `client.crowdyStudioGitHub` | Optional GitHub repository for a Crowdy Studio project: status, `bind` (push the project in, or take the repository), `unbind`, `refresh`, `layout` (with `kind`: a mod or a Construct game), `tree`, `getFile`, batched `getFiles`, commit-guarded `putFile` / `deleteFile`, and `commitFiles` (many changes as one commit). While bound the repository is the working tree and every Studio save commits; the project's `files` are the server's mirror at `github.sha`. Never required. |
|
|
334
329
|
| `client.udp` | UDP proxy subscriptions + spatial mutations (`sendActorUpdate`, `sendVoxelUpdate`, `sendAudioPacket`, `sendVideoPacket` / `sendVideoFrame`, `sendTextPacket`, `sendClientEvent`, `sendSingleActorMessage`, `sendChannelMessage`, `sendRangedChannelMessage`). |
|
|
335
330
|
| `client.realtime` | Connection status, manual `connect()` / `disconnect()`, `onStatus()` listener. |
|
|
336
331
|
| `client.refreshGameplayToken()` | Safely rotates an active game client's app token (see [Token refresh](#token-refresh-during-gameplay)). |
|
|
@@ -394,7 +389,7 @@ query AppForRouting($appId: BigInt!) {
|
|
|
394
389
|
`CrowdyClient` with `httpUrl: gameApiUrl` (and the matching `wsUrl`) holding
|
|
395
390
|
that app's app-scoped token, then drive gameplay through that client. Apps
|
|
396
391
|
with no `gameApiUrl` keep working against the default `httpUrl` you
|
|
397
|
-
configured. See [Loading an app's Game API](https://docs.crowdedkingdoms.com/crowdyjs/shared-environment-routing).
|
|
392
|
+
configured. See [Loading an app's Game API](https://docs.dev.crowdedkingdoms.com/crowdyjs/shared-environment-routing).
|
|
398
393
|
|
|
399
394
|
## Realtime notifications
|
|
400
395
|
|
|
@@ -830,7 +825,7 @@ reach your bundle. Reads are synchronous snapshots and writes happen on
|
|
|
830
825
|
WebSocket events (not `requestAnimationFrame`), so render loops read freely
|
|
831
826
|
and a backgrounded tab keeps ingesting updates; pass `workerTicker()` to also
|
|
832
827
|
keep timer-driven sends at full rate while hidden. See the
|
|
833
|
-
[World Stores guide](https://docs.crowdedkingdoms.com/crowdyjs/stores).
|
|
828
|
+
[World Stores guide](https://docs.dev.crowdedkingdoms.com/crowdyjs/stores).
|
|
834
829
|
|
|
835
830
|
## Game Kit
|
|
836
831
|
|
|
@@ -908,7 +903,7 @@ The protocol is held to ck-exec's golden record of the starters
|
|
|
908
903
|
(`test/unit/fixtures/kit-protocol.json`): every module call and topic in it is replayed in
|
|
909
904
|
`test/unit/game-kit.test.mjs`. The blueprints, `kit.deploy`, the engines and the model-backed
|
|
910
905
|
helpers went with the game model in 18.0.0; the hub modules replace them. See the
|
|
911
|
-
[Game Kit docs](https://docs.crowdedkingdoms.com/game-kit/intro) and
|
|
906
|
+
[Game Kit docs](https://docs.dev.crowdedkingdoms.com/game-kit/intro) and
|
|
912
907
|
[MIGRATION.md](MIGRATION.md).
|
|
913
908
|
|
|
914
909
|
## ck-exec
|
|
@@ -972,7 +967,7 @@ Integers above 2^53 decode as `number` and lose precision unless you pass
|
|
|
972
967
|
`{ decode: { useBigInt64: true } }`. A call's whole numbers outside 32 bits (a timestamp in
|
|
973
968
|
milliseconds, a player id) go out as 64-bit integers (18.11.0; before, as floats, which a
|
|
974
969
|
hub's integer fields refuse). The wire format is in the
|
|
975
|
-
[ck-exec docs](https://docs.crowdedkingdoms.com/exec/intro).
|
|
970
|
+
[ck-exec docs](https://docs.dev.crowdedkingdoms.com/exec/intro).
|
|
976
971
|
|
|
977
972
|
### A mod's CLIENT half
|
|
978
973
|
|
|
@@ -1043,39 +1038,29 @@ counts what was dropped); `invoke` sends at most 256 KiB each way and is refused
|
|
|
1043
1038
|
module is not running. `NOT_FOUND` holds a CLIENT half back 15 s and `RATE_LIMITED` 60 s. The
|
|
1044
1039
|
grid's owner is asked about their own CLIENT halves like anyone; answer yes in `confirm` when
|
|
1045
1040
|
`prompt.authorId` is the player. See
|
|
1046
|
-
[CLIENT halves](https://docs.crowdedkingdoms.com/exec/client-halves).
|
|
1047
|
-
|
|
1048
|
-
## Hosting
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
(`
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
`claim` registers the shell page and the game origin as the app's redirect URIs
|
|
1071
|
-
and sets `launch_url`; `publishDirectory` hashes `dist/`, declares the manifest
|
|
1072
|
-
(`beginGamePublish` validates it as a whole and returns one presigned PUT per file),
|
|
1073
|
-
uploads with the exact signed headers, and `completeGamePublish` verifies every
|
|
1074
|
-
object, promotes it and invalidates the CDN. The slug is a DNS label, global on the
|
|
1075
|
-
tier, and first-party names are reserved (`HOSTED_SLUG_UNAVAILABLE`); a tier without
|
|
1076
|
-
a content CDN answers `CONTENT_HOSTING_DISABLED`. Being *listed* in the lobby is an
|
|
1077
|
-
operator decision, made outside the SDK; publishing is self-serve. `the-construct`'s
|
|
1078
|
-
`npm run publish` is this section as a command.
|
|
1041
|
+
[CLIENT halves](https://docs.dev.crowdedkingdoms.com/exec/client-halves).
|
|
1042
|
+
|
|
1043
|
+
## Hosting your game
|
|
1044
|
+
|
|
1045
|
+
Crowded Kingdoms no longer hosts games: on 2026-10-29 it retired Crowdy Games, with
|
|
1046
|
+
the shell that framed published games, the Overworld lobby and the content CDN. Build
|
|
1047
|
+
your game and serve the built files from your own origin, on any static host that can
|
|
1048
|
+
set response headers. Then, in Studio, open the app's
|
|
1049
|
+
**Settings > Sign-in & redirect URIs**: add your sign-in return URL on that origin
|
|
1050
|
+
(for example `https://play.example.com/auth/callback`) as a redirect URI, and set the
|
|
1051
|
+
origin as the app's **Launch URL**. The redirect URI is what admits the origin to CORS
|
|
1052
|
+
and to the hosted sign-in return, so `portal.signIn` works there as in the
|
|
1053
|
+
[Quick start](#quick-start).
|
|
1054
|
+
[Host your game](https://docs.dev.crowdedkingdoms.com/build-a-game/host-your-game)
|
|
1055
|
+
has the requirements and recipes.
|
|
1056
|
+
|
|
1057
|
+
`client.hosting`, `uploadPublishFiles`, `publishDirectory` and `manifestForDirectory`
|
|
1058
|
+
(the `@crowdedkingdoms/crowdyjs/hosting` entry point), and `EmbeddedHost`
|
|
1059
|
+
(`client.embeddedHost`) remain in the package but are deprecated. The hosting API
|
|
1060
|
+
answers `CONTENT_HOSTING_DISABLED` on every tier and its reads return null or an empty
|
|
1061
|
+
list, so a publish step that calls them fails; remove it from your build. With no
|
|
1062
|
+
shell to frame a game, `EmbeddedHost.hello()` resolves null and `portal.signIn` takes
|
|
1063
|
+
the normal path.
|
|
1079
1064
|
|
|
1080
1065
|
## Crowdy Studio
|
|
1081
1066
|
|
|
@@ -1162,8 +1147,8 @@ CLIENT project needs ck-api `v2.25.1` or later. A CLIENT crate still on the lega
|
|
|
1162
1147
|
`mountCrowdyStudio` and the controller take `mods: client.exec`. Crowdy Studio runs nothing
|
|
1163
1148
|
on legacy player compute since 18.0.0.
|
|
1164
1149
|
|
|
1165
|
-
See [CLIENT halves](https://docs.crowdedkingdoms.com/exec/client-halves), [mods](https://docs.crowdedkingdoms.com/exec/mods)
|
|
1166
|
-
and [Embed Crowdy Studio in your game](https://docs.crowdedkingdoms.com/crowdyjs/crowdy-studio-embed).
|
|
1150
|
+
See [CLIENT halves](https://docs.dev.crowdedkingdoms.com/exec/client-halves), [mods](https://docs.dev.crowdedkingdoms.com/exec/mods)
|
|
1151
|
+
and [Embed Crowdy Studio in your game](https://docs.dev.crowdedkingdoms.com/crowdyjs/crowdy-studio-embed).
|
|
1167
1152
|
|
|
1168
1153
|
### The Studio agent (DeepSeek Harness in the browser)
|
|
1169
1154
|
|
|
@@ -1233,6 +1218,43 @@ its `sandbox="allow-scripts allow-same-origin"` does not isolate it from the
|
|
|
1233
1218
|
page; that CSP is the control. See the
|
|
1234
1219
|
[`@crowdedkingdoms/crowdy-dsh` README on npm](https://www.npmjs.com/package/@crowdedkingdoms/crowdy-dsh).
|
|
1235
1220
|
|
|
1221
|
+
### The game editor (a Construct game's repository)
|
|
1222
|
+
|
|
1223
|
+
When the open project is bound to a game generated from the Construct
|
|
1224
|
+
template, the API reports it as such (`crowdyStudioGitHubLayout.kind ===
|
|
1225
|
+
'CONSTRUCT_GAME'`) and Studio edits the game itself instead of mod crates,
|
|
1226
|
+
provided the host gives the controller a draft store:
|
|
1227
|
+
|
|
1228
|
+
```ts
|
|
1229
|
+
import { GitHubDraftStore, IndexedDbDraftOverlayStorage } from '@crowdedkingdoms/crowdyjs/crowdy-studio';
|
|
1230
|
+
|
|
1231
|
+
const storage = new IndexedDbDraftOverlayStorage();
|
|
1232
|
+
const studio = createCrowdyStudioEmbed({
|
|
1233
|
+
// ...
|
|
1234
|
+
draftStore: ({ appId, projectId, githubSha }) =>
|
|
1235
|
+
new GitHubDraftStore({ transport: game.crowdyStudioGitHub, appId, projectId, baseCommitSha: githubSha, storage }),
|
|
1236
|
+
});
|
|
1237
|
+
// A Live code link names the project; open it first.
|
|
1238
|
+
studio.toggle({ gridId, targetPermissions, projectId });
|
|
1239
|
+
```
|
|
1240
|
+
|
|
1241
|
+
The draft is the game's working copy until the player commits. Everything
|
|
1242
|
+
reads it: the Files pane (dirty files marked, discard per file), the editor,
|
|
1243
|
+
the agent (in game mode), and whatever the game hot-reloads from it. Versions
|
|
1244
|
+
are git blob ids, so an untouched file carries its GitHub blob id. The hosted
|
|
1245
|
+
store keeps edits in IndexedDB on the game's own origin and reads the bound
|
|
1246
|
+
branch through `crowdyStudioGitHub.tree` and `getFiles` (100 paths a call);
|
|
1247
|
+
**Commit** (or the agent's `commit_game_files`, which the player confirms in
|
|
1248
|
+
the pane) publishes the draft as ONE commit through `commitFiles`; an agent's
|
|
1249
|
+
commit carries exactly the files the player approved, and is refused as stale
|
|
1250
|
+
if one of them changed while they decided. When the
|
|
1251
|
+
branch moved meanwhile, the store rebases every edit that does not collide and
|
|
1252
|
+
lists the rest as conflicts the player settles (keep mine / take theirs). A
|
|
1253
|
+
game that runs a local dev server can implement `DraftStore` over its checkout
|
|
1254
|
+
instead. The page answers the agent's draft requests and its `preview_status`
|
|
1255
|
+
(through the host's `dshHost.previewStatus`), and boots the harness in game
|
|
1256
|
+
mode, rebooting it when the open project changes editor.
|
|
1257
|
+
|
|
1236
1258
|
## Errors
|
|
1237
1259
|
|
|
1238
1260
|
Transport and protocol failures throw structured error classes:
|
|
@@ -1354,7 +1376,7 @@ no other repositories and no network access required:
|
|
|
1354
1376
|
`src/generated/graphql-schema.ts`, the generated schema types.
|
|
1355
1377
|
|
|
1356
1378
|
Schema refresh is explicit, from the published
|
|
1357
|
-
[SDL](https://docs.crowdedkingdoms.com/schema/game-api.graphql):
|
|
1379
|
+
[SDL](https://docs.dev.crowdedkingdoms.com/schema/game-api.graphql):
|
|
1358
1380
|
|
|
1359
1381
|
```bash
|
|
1360
1382
|
npm run schema:sync:prod
|
package/dist/crowdy-client.d.ts
CHANGED
|
@@ -102,12 +102,13 @@ export interface CrowdyClientConfig {
|
|
|
102
102
|
*/
|
|
103
103
|
pkceStore?: PkceStore;
|
|
104
104
|
/**
|
|
105
|
-
* The Crowdy Games shell bridge (third-party hosting, 2026-09-13).
|
|
106
|
-
*
|
|
107
|
-
* `portal.signIn`
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
105
|
+
* The Crowdy Games shell bridge (third-party hosting, 2026-09-13). The shell was
|
|
106
|
+
* retired on 2026-10-29: no first-party page answers the bridge any more, so
|
|
107
|
+
* `portal.signIn` takes the top-level flow. When a game published to Crowdy Games
|
|
108
|
+
* ran inside the shell's iframe, `portal.signIn` asked the shell to navigate to
|
|
109
|
+
* Studio and used the shell's page as the redirect URI; this bridge is how it learned
|
|
110
|
+
* both. Default: detect in a browser (`new EmbeddedHost()`), nothing in Node. Pass
|
|
111
|
+
* `false` to never consult a framing page, or your own instance to control timeouts.
|
|
111
112
|
*/
|
|
112
113
|
embeddedHost?: EmbeddedHost | false;
|
|
113
114
|
/**
|
|
@@ -229,9 +230,19 @@ export declare class CrowdyClient {
|
|
|
229
230
|
* hosted games. Mutations need an identity session with manage_apps; the reads a
|
|
230
231
|
* page needs are public. `@crowdedkingdoms/crowdyjs/hosting` has the Node helper
|
|
231
232
|
* that publishes a directory.
|
|
233
|
+
*
|
|
234
|
+
* @deprecated Crowded Kingdoms no longer hosts games (retired 2026-10-29); the
|
|
235
|
+
* hosting API answers `CONTENT_HOSTING_DISABLED` on every tier, and its reads return
|
|
236
|
+
* null or an empty list. Host your build on your own origin.
|
|
232
237
|
*/
|
|
233
238
|
readonly hosting: HostingAPI;
|
|
234
|
-
/**
|
|
239
|
+
/**
|
|
240
|
+
* The Crowdy Games shell bridge (see `CrowdyClientConfig.embeddedHost`); null in Node or when opted out.
|
|
241
|
+
*
|
|
242
|
+
* @deprecated The Crowdy Games shell was retired on 2026-10-29, so no first-party page
|
|
243
|
+
* answers the bridge and `portal.signIn` takes the top-level flow. Host your build on
|
|
244
|
+
* your own origin.
|
|
245
|
+
*/
|
|
235
246
|
readonly embeddedHost: EmbeddedHost | null;
|
|
236
247
|
/**
|
|
237
248
|
* Where each app lives. Unauthenticated, and meant to be called BEFORE login against
|
|
@@ -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;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,WAAW,EAAE,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{ CrowdyStudioController } from '../crowdy-studio/controller.js';
|
|
27
27
|
import type { PlayerHostAdapterV1 } from '../player-host/types.js';
|
|
28
|
-
import { type DshGridContext, type DshGridProgramStatus, type DshScreenshotResult } from './protocol.js';
|
|
28
|
+
import { type DshGridContext, type DshGridProgramStatus, type DshPreviewStatus, type DshScreenshotResult, type DshStudioMode } from './protocol.js';
|
|
29
29
|
import type { CrowdyStudioDshTransport, CrowdyStudioModelCatalogEntry } from './transport.js';
|
|
30
30
|
/** What the game supplies so the model can see and act. */
|
|
31
31
|
export interface CrowdyStudioDshHost {
|
|
@@ -46,6 +46,28 @@ export interface CrowdyStudioDshHost {
|
|
|
46
46
|
playerHost?: Pick<PlayerHostAdapterV1, 'observe'>;
|
|
47
47
|
/** Recent `crowdy::log` lines from the CLIENT module and browser runtime errors. */
|
|
48
48
|
clientLogs?(): readonly string[];
|
|
49
|
+
/**
|
|
50
|
+
* Where the game serves its playbook: markdown pages the agent reads with
|
|
51
|
+
* `read_playbook`, and `skills/index.json` naming the skills the game offers
|
|
52
|
+
* in the game editor (`[{ name, description, page }]`). Relative values
|
|
53
|
+
* resolve against this page. Omit when the game ships none.
|
|
54
|
+
*/
|
|
55
|
+
playbookBase?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Game editor: whether the world took the draft. Resolves with the result of
|
|
58
|
+
* the remount for `afterRevision` (or the latest), waiting up to `timeoutMs`.
|
|
59
|
+
* Omit when the game cannot report it; `preview_status` then says so.
|
|
60
|
+
*/
|
|
61
|
+
previewStatus?(input: {
|
|
62
|
+
afterRevision?: number;
|
|
63
|
+
timeoutMs: number;
|
|
64
|
+
}): Promise<DshPreviewStatus>;
|
|
65
|
+
/**
|
|
66
|
+
* Ask ck-api whether this player may draft or deploy live. The API refuses
|
|
67
|
+
* when Allow Live Modding is off. Omit and the dock's deploy is not gated
|
|
68
|
+
* here; the construct supplies it.
|
|
69
|
+
*/
|
|
70
|
+
authorizeLiveModding?(action: 'draft_test' | 'deploy_live'): Promise<void>;
|
|
49
71
|
/**
|
|
50
72
|
* Grid capability (bridge v4, DN-10). With it the agent can read the grid
|
|
51
73
|
* the open project is bound to and run a JS grid program from a project
|
|
@@ -78,6 +100,12 @@ export interface StudioDshBridgeOptions {
|
|
|
78
100
|
getToken(): string | null;
|
|
79
101
|
/** GraphQL endpoint the harness reads/writes project files through. */
|
|
80
102
|
graphqlUrl: string;
|
|
103
|
+
/**
|
|
104
|
+
* Force the editor the harness boots. Omitted, the bridge follows the
|
|
105
|
+
* controller: `game` when the open project is a Construct game with a draft
|
|
106
|
+
* store (`repositoryMode`), `mod` otherwise.
|
|
107
|
+
*/
|
|
108
|
+
studioMode?: DshStudioMode;
|
|
81
109
|
host?: CrowdyStudioDshHost;
|
|
82
110
|
/** Longest screenshot side, in pixels. */
|
|
83
111
|
maxCaptureSide?: number;
|
|
@@ -92,11 +120,27 @@ export interface StudioDshBridgeOptions {
|
|
|
92
120
|
projectName: string;
|
|
93
121
|
mode: 'draft' | 'live';
|
|
94
122
|
}): Promise<boolean>;
|
|
95
|
-
/**
|
|
123
|
+
/**
|
|
124
|
+
* Ask the player, on the page, whether the agent may commit the draft: the
|
|
125
|
+
* files and the agent's message. Resolves `true` to commit. Without it
|
|
126
|
+
* `draft.commit` is refused, for the same reason as a live deploy: the
|
|
127
|
+
* approval inside the harness UI is not visible to the page.
|
|
128
|
+
*/
|
|
129
|
+
confirmCommit?(summary: {
|
|
130
|
+
projectName: string;
|
|
131
|
+
message: string;
|
|
132
|
+
files: string[];
|
|
133
|
+
deleted: string[];
|
|
134
|
+
}): Promise<boolean>;
|
|
135
|
+
/** Called when the worker changed a project file (mod editor), after the controller reloaded. */
|
|
96
136
|
onFileChanged?(change: {
|
|
97
137
|
target: 'SERVER' | 'CLIENT';
|
|
98
138
|
path: string;
|
|
99
139
|
}): void;
|
|
140
|
+
/** Called after the agent changed the game draft. */
|
|
141
|
+
onDraftChanged?(change: {
|
|
142
|
+
paths: string[];
|
|
143
|
+
}): void;
|
|
100
144
|
onWarning?(message: string): void;
|
|
101
145
|
onStatus?(status: StudioDshBridgeStatus): void;
|
|
102
146
|
}
|
|
@@ -139,8 +183,20 @@ export declare class StudioDshBridge {
|
|
|
139
183
|
private status;
|
|
140
184
|
/** One live-deploy question at a time: a second request must not replace the first prompt. */
|
|
141
185
|
private liveDeployPending;
|
|
186
|
+
/** One commit question at a time, for the same reason. */
|
|
187
|
+
private commitPending;
|
|
188
|
+
/** The editor this boot mounted; fixed until the harness reboots. */
|
|
189
|
+
private mode;
|
|
190
|
+
/** The draft store whose changes are forwarded as `page.draftChanged`. */
|
|
191
|
+
private watchedDraft;
|
|
192
|
+
private draftUnsubscribe;
|
|
193
|
+
private skills;
|
|
142
194
|
constructor(options: StudioDshBridgeOptions);
|
|
143
195
|
get currentStatus(): StudioDshBridgeStatus;
|
|
196
|
+
/** The editor the harness was booted with (`game` edits the bound Construct game). */
|
|
197
|
+
get studioMode(): DshStudioMode;
|
|
198
|
+
/** The editor the controller wants now; differs from {@link studioMode} when the harness must reboot. */
|
|
199
|
+
desiredStudioMode(): DshStudioMode;
|
|
144
200
|
/** The models the harness was booted with. */
|
|
145
201
|
get catalog(): readonly CrowdyStudioModelCatalogEntry[];
|
|
146
202
|
/**
|
|
@@ -162,6 +218,11 @@ export declare class StudioDshBridge {
|
|
|
162
218
|
/** Re-send the token (the page refreshed it). */
|
|
163
219
|
tokenChanged(): void;
|
|
164
220
|
private bootMessage;
|
|
221
|
+
/**
|
|
222
|
+
* Sessions of the two editors never share a store: a game session restored
|
|
223
|
+
* into a mod boot would talk about files and tools that are not there.
|
|
224
|
+
*/
|
|
225
|
+
private persistScope;
|
|
165
226
|
private openChannel;
|
|
166
227
|
private hello;
|
|
167
228
|
private emit;
|
|
@@ -170,13 +231,21 @@ export declare class StudioDshBridge {
|
|
|
170
231
|
private handle;
|
|
171
232
|
private onWorkerEvent;
|
|
172
233
|
private dispatch;
|
|
234
|
+
private requireDraft;
|
|
235
|
+
/** The commit gate: the player sees the files and the agent's message, and says yes on the page. */
|
|
236
|
+
private commitDraft;
|
|
237
|
+
/** The skills the game offers in the game editor, from `<playbookBase>skills/index.json`. */
|
|
238
|
+
private listSkills;
|
|
239
|
+
private readPlaybook;
|
|
173
240
|
private gridHost;
|
|
174
241
|
private build;
|
|
175
242
|
private runtimeStatus;
|
|
176
243
|
private screenshot;
|
|
177
244
|
private watchController;
|
|
245
|
+
/** Forward every change of the open game draft, the agent's own writes included. */
|
|
246
|
+
private watchDraft;
|
|
178
247
|
private setStatus;
|
|
179
248
|
}
|
|
180
249
|
/** Render the harness settings that point its native adapter at the metered endpoint. */
|
|
181
|
-
export declare function renderSettingsYaml(modelBaseUrl: string, models: readonly CrowdyStudioModelCatalogEntry[]): string;
|
|
250
|
+
export declare function renderSettingsYaml(modelBaseUrl: string, models: readonly CrowdyStudioModelCatalogEntry[], mode?: DshStudioMode): string;
|
|
182
251
|
//# sourceMappingURL=bridge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bridge.d.ts","sourceRoot":"","sources":["../../src/crowdy-dsh/bridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAA+C,MAAM,gCAAgC,CAAC;AAG1H,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAUL,KAAK,cAAc,EACnB,KAAK,oBAAoB,
|
|
1
|
+
{"version":3,"file":"bridge.d.ts","sourceRoot":"","sources":["../../src/crowdy-dsh/bridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAA+C,MAAM,gCAAgC,CAAC;AAG1H,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAUL,KAAK,cAAc,EACnB,KAAK,oBAAoB,EAEzB,KAAK,gBAAgB,EA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