@crowdedkingdoms/crowdyjs 18.23.0-dev.1 → 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 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; and
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, the Overworld lobby, CrowdyCPP, load tools and scripts keep calling
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
@@ -81,10 +81,10 @@ const me = await client.users.me();
81
81
  console.log(me.email);
82
82
  ```
83
83
 
84
- Your game's origin must be registered under the app's **redirect URIs**
85
- (Studio > Apps > client settings); that one entry admits it to CORS and to the
86
- hosted sign-in return. Direct sign-in (`client.auth.login` / `register` / magic
87
- link / social) is served only to first-party pages (Studio; the games host left this list on 2026-09-14 when the Overworld lobby stopped signing players in) and to
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
88
88
  non-browser callers (Node, CLI, tests); from any other browser origin the API
89
89
  answers `HOSTED_SIGN_IN_REQUIRED` (`isHostedSignInRequiredError`). See
90
90
  [Authentication](#authentication-session-token-vs-app-scoped-tokens).
@@ -127,18 +127,9 @@ before minting; `client.auth.playerLegalAcceptance()` says whether that is still
127
127
  needed. `auth.register` takes the same two fields, and a browser page must send both.
128
128
  See [MIGRATION.md](MIGRATION.md#1840-the-terms-and-age-gate).
129
129
 
130
- **A game published to Crowdy Games takes the first row too, with one twist the SDK
131
- handles for you** (17.2.0). Such a game is reached at `https://<games host>/<slug>/`,
132
- which is a first-party *shell* page, and runs inside that page's iframe on its own
133
- origin, `https://<slug>.<content host>`. The iframe cannot navigate the tab and
134
- Studio refuses to be framed, so `portal.signIn` asks the shell to navigate
135
- (`crowdyjs:navigate`; the shell honours exactly the tier's Studio `/authorize`) and
136
- uses the shell's page as the `redirect_uri` -- the shell then hands the returned
137
- `?code=&state=` into the iframe, where `portal.handleSignInCallback` runs exactly as
138
- it does self-hosted. Nothing changes in your code: the bridge (`client.embeddedHost`,
139
- `EmbeddedHost`) detects the shell with a bounded hello and falls back to the
140
- top-level flow when nobody answers. Pass `embeddedHost: false` to `createCrowdyClient`
141
- 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).
142
133
 
143
134
  **Hosted sign-in** (browser game, own domain) is OAuth2 Authorization Code +
144
135
  PKCE; the verifier never leaves your origin and your page never sees a
@@ -322,7 +313,7 @@ never told about, so a native refresh without it is a re-placement.
322
313
  | `client.users` | `me`, `updateGamertag`, profile reads; `playerProfile` / `playerProfiles` (up to 100) for other players' public `{ userId, gamertag, disambiguation }`. |
323
314
  | `client.session` | Token store, `restore()`, `getToken()`, manual `setToken()`. |
324
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. |
325
- | `client.hosting` | Third-party hosting on Crowdy Games (17.2.0): `claim` a slug for an app, `beginPublish` / `completePublish` / `abandonPublish` a built bundle, `setEnabled`; public `game(slug)` / `listed()`. Mutations need an identity session with `manage_apps`. `@crowdedkingdoms/crowdyjs/hosting` exports `publishDirectory(client, { dir, slug })`, the Node helper that does the whole publish for a `dist/`. |
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). |
326
317
  | `client.platform` | Public platform configuration (`config()`). |
327
318
  | `client.serverStatus` | `gameClientBootstrap(appId)` — per-app version info, UDP status, spatial limits. |
328
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. |
@@ -1049,37 +1040,27 @@ grid's owner is asked about their own CLIENT halves like anyone; answer yes in `
1049
1040
  `prompt.authorId` is the player. See
1050
1041
  [CLIENT halves](https://docs.dev.crowdedkingdoms.com/exec/client-halves).
1051
1042
 
1052
- ## Hosting a game on Crowdy Games
1053
-
1054
- Since 17.2.0 (ck-api v2.1) a developer can publish a built static bundle to the
1055
- platform instead of hosting it: players reach it at
1056
- `https://<games host>/<slug>/` and it executes on an origin of its own,
1057
- `https://<slug>.<content host>`, behind the same security headers `the-construct`'s
1058
- `docs/HOSTING.md` asks a self-hoster to serve. The API returns both URLs
1059
- (`HostedGame.launchUrl`, `.contentOrigin`); nothing in your code names a host.
1060
-
1061
- From Node, with an identity session (never from a browser page, by design):
1062
-
1063
- ```ts
1064
- import { createCrowdyClient } from '@crowdedkingdoms/crowdyjs';
1065
- import { publishDirectory } from '@crowdedkingdoms/crowdyjs/hosting';
1066
-
1067
- const client = createCrowdyClient();
1068
- await client.auth.login({ email, password }); // identity session, Node only
1069
- const game = await client.hosting.claim({ appId, slug: 'my-game' }); // once; idempotent
1070
- const result = await publishDirectory(client, { dir: 'dist', slug: game.slug });
1071
- console.log(result.game.launchUrl); // https://.../my-game/
1072
- ```
1073
-
1074
- `claim` registers the shell page and the game origin as the app's redirect URIs
1075
- and sets `launch_url`; `publishDirectory` hashes `dist/`, declares the manifest
1076
- (`beginGamePublish` validates it as a whole and returns one presigned PUT per file),
1077
- uploads with the exact signed headers, and `completeGamePublish` verifies every
1078
- object, promotes it and invalidates the CDN. The slug is a DNS label, global on the
1079
- tier, and first-party names are reserved (`HOSTED_SLUG_UNAVAILABLE`); a tier without
1080
- a content CDN answers `CONTENT_HOSTING_DISABLED`. Being *listed* in the lobby is an
1081
- operator decision, made outside the SDK; publishing is self-serve. `the-construct`'s
1082
- `npm run publish` is this section as a command.
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.
1083
1064
 
1084
1065
  ## Crowdy Studio
1085
1066
 
@@ -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). When a game
106
- * published to Crowdy Games runs inside the first-party shell's iframe,
107
- * `portal.signIn` must ask the shell to navigate to Studio and must use the shell's
108
- * page as the redirect URI; this bridge is how it learns both. Default: detect in a
109
- * browser (`new EmbeddedHost()`), nothing in Node. Pass `false` to never consult a
110
- * framing page, or your own instance to control timeouts.
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
- /** The Crowdy Games shell bridge (see `CrowdyClientConfig.embeddedHost`); null in Node or when opted out. */
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,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEpE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,Y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;;;;;;;;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"}
@@ -22,9 +22,9 @@ import type { AuthState } from '../auth-state.js';
22
22
  * Part of the management surface.
23
23
  *
24
24
  * **FIRST-PARTY AND NON-BROWSER ONLY (ck-api v1.88.0, 2026-09-08).** Every
25
- * public method here is served only to first-party browser origins (Studio,
26
- * the Crowdy Games host) and to callers that send no `Origin` header at all
27
- * (Node, CLI, tests, CrowdyCPP). From a browser game on its OWN domain they are
25
+ * public method here is served only to first-party browser origins (Studio)
26
+ * and to callers that send no `Origin` header at all (Node, CLI, tests,
27
+ * CrowdyCPP). From a browser game on its OWN domain they are
28
28
  * refused with `HOSTED_SIGN_IN_REQUIRED` (`isHostedSignInRequiredError`), and
29
29
  * that game signs its players in with `client.portal.signIn()` instead: the
30
30
  * player types their password into Studio, never into the game, and the game
@@ -1,11 +1,16 @@
1
1
  /**
2
- * The embedded-host bridge: how a game framed by the Crowdy Games SHELL signs in.
2
+ * The embedded-host bridge: how a game framed by the Crowdy Games SHELL signed in.
3
3
  *
4
- * A game published to Crowdy Games (`client.hosting`, the-construct's `npm run
5
- * publish`) is reached at `https://<games host>/<slug>/`, which is a first-party
6
- * shell page, and executes inside that page's iframe on its own origin,
7
- * `https://<slug>.<content host>`. Two things about that arrangement change hosted
8
- * sign-in, and this module is the whole of the change:
4
+ * RETIRED. Crowded Kingdoms retired Crowdy Games, and the shell with it, on
5
+ * 2026-10-29. No first-party page frames a game any more, so `hello()` resolves null
6
+ * and `portal.signIn` takes the top-level flow. The bridge stays, deprecated and
7
+ * unchanged; the rest of this comment says how it works when a shell answers.
8
+ *
9
+ * A game published to Crowdy Games (`client.hosting`) was reached at
10
+ * `https://<games host>/<slug>/`, which was a first-party shell page, and executed
11
+ * inside that page's iframe on its own origin, `https://<slug>.<content host>`. Two
12
+ * things about that arrangement changed hosted sign-in, and this module is the whole
13
+ * of the change:
9
14
  *
10
15
  * 1. The game cannot navigate the tab. Its iframe has no `allow-top-navigation`
11
16
  * (a game that could send the player to a lookalike sign-in page would have the
@@ -26,8 +31,8 @@
26
31
  * spend. The app token is exchanged and stored by the game as before.
27
32
  *
28
33
  * WHY TRUSTING THE PARENT IS SAFE. The bridge accepts `crowdyjs:host-hello` only from
29
- * `window.parent`. When the game is served by the Crowdy Games content edge, its
30
- * `frame-ancestors` names the tier's games host and nothing else, so the parent IS the
34
+ * `window.parent`. When a game was served by the Crowdy Games content edge, its
35
+ * `frame-ancestors` named the tier's games host and nothing else, so the parent WAS the
31
36
  * shell. A self-hosted game framed by a hostile page could be told a hostile
32
37
  * `returnUrl` -- and Studio would refuse it, because it is not one of the app's
33
38
  * registered redirect URIs; and even a code delivered to a registered-but-wrong page
@@ -35,7 +40,7 @@
35
40
  * `returnUrl` whose origin is not https (or the parent's own origin, for a local dev
36
41
  * shell), so the failure is loud rather than a silent detour.
37
42
  *
38
- * The message shapes mirror Crowdy-Games `shell/src/protocol.ts` (version 1).
43
+ * The message shapes are the shell's protocol, version 1.
39
44
  */
40
45
  export declare const EMBEDDED_HOST_PROTOCOL_VERSION = 1;
41
46
  export interface HostHelloMessage {
@@ -90,6 +95,11 @@ export interface EmbeddedHostOptions {
90
95
  * Detects and talks to a Crowdy Games shell framing this page. Constructed once by
91
96
  * `createCrowdyClient` (see `CrowdyClientConfig.embeddedHost`); `portal.signIn`
92
97
  * consults it.
98
+ *
99
+ * @deprecated Crowded Kingdoms no longer hosts games (retired 2026-10-29), and the
100
+ * Crowdy Games shell went with it: no first-party page answers `hello()`, which
101
+ * resolves null, so `portal.signIn` takes the top-level flow. Host your build on your
102
+ * own origin.
93
103
  */
94
104
  export declare class EmbeddedHost {
95
105
  private readonly win;
@@ -1 +1 @@
1
- {"version":3,"file":"embedded-host.d.ts","sourceRoot":"","sources":["../../src/domains/embedded-host.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH,eAAO,MAAM,8BAA8B,IAAI,CAAC;AAEhD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,qBAAqB,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,6EAA6E;IAC7E,SAAS,EAAE,MAAM,CAAC;IAClB,qEAAqE;IACrE,eAAe,EAAE,MAAM,CAAC;IACxB,qCAAqC;IACrC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,6BAA6B,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,mBAAmB,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,4CAA4C;AAC5C,MAAM,WAAW,gBAAgB;IAC/B,6FAA6F;IAC7F,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,4EAA4E;AAC5E,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,OAAO,CAAC;IAChB,gBAAgB,CAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,GAAG,IAAI,CAAC;IACzF,mBAAmB,CAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,IAAI,GAAG,IAAI,CAAC;IAC5F,QAAQ,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAChC;AAED,MAAM,WAAW,oBA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AAC;CACzB;AAeD;;;;;;;;;GASG;AACH,qBAAa,YAAY;IAOrB,OAAO,CAAC,QAAQ,CAAC,GAAG;IANtB,OAAO,CAAC,IAAI,CAAiC;IAC7C,OAAO,CAAC,OAAO,CAAiD;IAChE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAwC;IACjE,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAS;gBAGrB,GAAG,GAAE,cAAc,GAAG,IAAsB,EAC7D,OAAO,GAAE,mBAAwB;IASnC,8FAA8F;IAC9F,QAAQ,IAAI,OAAO;IAUnB,wFAAwF;IACxF,OAAO,IAAI,gBAAgB,GAAG,IAAI;IAIlC;;;;OAIG;IACH,KAAK,CAAC,SAAS,SAAsB,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IA2BxE;;;OAGG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAU3B,KAAK,IAAI,IAAI;IAIb,OAAO,CAAC,OAAO,CAA6B;IAE5C,OAAO,CAAC,SAAS;IAmBjB;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;CAQ5B"}
@@ -1,11 +1,16 @@
1
1
  /**
2
- * The embedded-host bridge: how a game framed by the Crowdy Games SHELL signs in.
2
+ * The embedded-host bridge: how a game framed by the Crowdy Games SHELL signed in.
3
3
  *
4
- * A game published to Crowdy Games (`client.hosting`, the-construct's `npm run
5
- * publish`) is reached at `https://<games host>/<slug>/`, which is a first-party
6
- * shell page, and executes inside that page's iframe on its own origin,
7
- * `https://<slug>.<content host>`. Two things about that arrangement change hosted
8
- * sign-in, and this module is the whole of the change:
4
+ * RETIRED. Crowded Kingdoms retired Crowdy Games, and the shell with it, on
5
+ * 2026-10-29. No first-party page frames a game any more, so `hello()` resolves null
6
+ * and `portal.signIn` takes the top-level flow. The bridge stays, deprecated and
7
+ * unchanged; the rest of this comment says how it works when a shell answers.
8
+ *
9
+ * A game published to Crowdy Games (`client.hosting`) was reached at
10
+ * `https://<games host>/<slug>/`, which was a first-party shell page, and executed
11
+ * inside that page's iframe on its own origin, `https://<slug>.<content host>`. Two
12
+ * things about that arrangement changed hosted sign-in, and this module is the whole
13
+ * of the change:
9
14
  *
10
15
  * 1. The game cannot navigate the tab. Its iframe has no `allow-top-navigation`
11
16
  * (a game that could send the player to a lookalike sign-in page would have the
@@ -26,8 +31,8 @@
26
31
  * spend. The app token is exchanged and stored by the game as before.
27
32
  *
28
33
  * WHY TRUSTING THE PARENT IS SAFE. The bridge accepts `crowdyjs:host-hello` only from
29
- * `window.parent`. When the game is served by the Crowdy Games content edge, its
30
- * `frame-ancestors` names the tier's games host and nothing else, so the parent IS the
34
+ * `window.parent`. When a game was served by the Crowdy Games content edge, its
35
+ * `frame-ancestors` named the tier's games host and nothing else, so the parent WAS the
31
36
  * shell. A self-hosted game framed by a hostile page could be told a hostile
32
37
  * `returnUrl` -- and Studio would refuse it, because it is not one of the app's
33
38
  * registered redirect URIs; and even a code delivered to a registered-but-wrong page
@@ -35,7 +40,7 @@
35
40
  * `returnUrl` whose origin is not https (or the parent's own origin, for a local dev
36
41
  * shell), so the failure is loud rather than a silent detour.
37
42
  *
38
- * The message shapes mirror Crowdy-Games `shell/src/protocol.ts` (version 1).
43
+ * The message shapes are the shell's protocol, version 1.
39
44
  */
40
45
  export const EMBEDDED_HOST_PROTOCOL_VERSION = 1;
41
46
  const DEFAULT_HELLO_TIMEOUT_MS = 1500;
@@ -52,6 +57,11 @@ function isHostHello(data) {
52
57
  * Detects and talks to a Crowdy Games shell framing this page. Constructed once by
53
58
  * `createCrowdyClient` (see `CrowdyClientConfig.embeddedHost`); `portal.signIn`
54
59
  * consults it.
60
+ *
61
+ * @deprecated Crowded Kingdoms no longer hosts games (retired 2026-10-29), and the
62
+ * Crowdy Games shell went with it: no first-party page answers `hello()`, which
63
+ * resolves null, so `portal.signIn` takes the top-level flow. Host your build on your
64
+ * own origin.
55
65
  */
56
66
  export class EmbeddedHost {
57
67
  constructor(win = defaultWindow(), options = {}) {
@@ -7,10 +7,11 @@ export type HostedGameUpload = BeginGamePublishResult['uploads'][number];
7
7
  export type CompleteGamePublishResult = CompleteGamePublishMutation['completeGamePublish'];
8
8
  export type { PublishFileInput };
9
9
  /**
10
- * Third-party game hosting on Crowdy Games (ck-api v2.1, 2026-09-13).
10
+ * Third-party game hosting on Crowdy Games (ck-api v2.1, 2026-09-13), retired on
11
+ * 2026-10-29.
11
12
  *
12
- * A developer publishes a built static bundle to the platform; players reach it at
13
- * `https://<games host>/<slug>/` (a first-party shell page) while it executes on
13
+ * A developer published a built static bundle to the platform; players reached it at
14
+ * `https://<games host>/<slug>/` (a first-party shell page) while it executed on
14
15
  * `https://<slug>.<content host>`, an origin of its own. The API returns both URLs
15
16
  * (`launchUrl`, `contentOrigin`); nothing here spells a hostname.
16
17
  *
@@ -23,6 +24,10 @@ export type { PublishFileInput };
23
24
  * PUT every file to its presigned URL with exactly the returned headers ->
24
25
  * `completePublish`. `@crowdedkingdoms/crowdyjs/hosting`'s `publishDirectory` does
25
26
  * the last three steps for a `dist/` directory in Node.
27
+ *
28
+ * @deprecated Crowded Kingdoms no longer hosts games (retired 2026-10-29); the hosting
29
+ * API answers `CONTENT_HOSTING_DISABLED` on every tier, and its reads return null or an
30
+ * empty list. Host your build on your own origin.
26
31
  */
27
32
  export declare class HostingAPI {
28
33
  private readonly api;
@@ -60,6 +65,10 @@ export declare class HostingAPI {
60
65
  * Upload every file of a publish to its presigned URL, with bounded concurrency and
61
66
  * a retry per file. Works in Node 20+ and in a browser (`fetch`, `Blob`/`Uint8Array`
62
67
  * bodies). `read(path)` returns the bytes for a manifest path.
68
+ *
69
+ * @deprecated Crowded Kingdoms no longer hosts games (retired 2026-10-29); `beginPublish`,
70
+ * which issues the presigned URLs, answers `CONTENT_HOSTING_DISABLED` on every tier.
71
+ * Host your build on your own origin.
63
72
  */
64
73
  export declare function uploadPublishFiles(uploads: HostedGameUpload[], read: (path: string) => Promise<Uint8Array | Blob>, options?: {
65
74
  concurrency?: number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qD;IAC/C,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC;CAItE;AAED;;;;;;;;GAQG;AACH,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,gBAAgB,EAAE,EAC3B,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,EAClD,OAAO,GAAE;IAAE,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,KAAK,IAAI,CAAA;CAAO,GACrG,OAAO,CAAC,IAAI,CAAC,CAoCf"}
@@ -1,9 +1,10 @@
1
1
  import { AbandonGamePublishDocument, BeginGamePublishDocument, ClaimGameHostingDocument, CompleteGamePublishDocument, HostedGameDocument, HostedGamePublishesDocument, HostedGamesDocument, MyHostedGamesDocument, SetHostedGameEnabledDocument, } from '../generated/graphql.js';
2
2
  /**
3
- * Third-party game hosting on Crowdy Games (ck-api v2.1, 2026-09-13).
3
+ * Third-party game hosting on Crowdy Games (ck-api v2.1, 2026-09-13), retired on
4
+ * 2026-10-29.
4
5
  *
5
- * A developer publishes a built static bundle to the platform; players reach it at
6
- * `https://<games host>/<slug>/` (a first-party shell page) while it executes on
6
+ * A developer published a built static bundle to the platform; players reached it at
7
+ * `https://<games host>/<slug>/` (a first-party shell page) while it executed on
7
8
  * `https://<slug>.<content host>`, an origin of its own. The API returns both URLs
8
9
  * (`launchUrl`, `contentOrigin`); nothing here spells a hostname.
9
10
  *
@@ -16,6 +17,10 @@ import { AbandonGamePublishDocument, BeginGamePublishDocument, ClaimGameHostingD
16
17
  * PUT every file to its presigned URL with exactly the returned headers ->
17
18
  * `completePublish`. `@crowdedkingdoms/crowdyjs/hosting`'s `publishDirectory` does
18
19
  * the last three steps for a `dist/` directory in Node.
20
+ *
21
+ * @deprecated Crowded Kingdoms no longer hosts games (retired 2026-10-29); the hosting
22
+ * API answers `CONTENT_HOSTING_DISABLED` on every tier, and its reads return null or an
23
+ * empty list. Host your build on your own origin.
19
24
  */
20
25
  export class HostingAPI {
21
26
  constructor(api) {
@@ -77,6 +82,10 @@ export class HostingAPI {
77
82
  * Upload every file of a publish to its presigned URL, with bounded concurrency and
78
83
  * a retry per file. Works in Node 20+ and in a browser (`fetch`, `Blob`/`Uint8Array`
79
84
  * bodies). `read(path)` returns the bytes for a manifest path.
85
+ *
86
+ * @deprecated Crowded Kingdoms no longer hosts games (retired 2026-10-29); `beginPublish`,
87
+ * which issues the presigned URLs, answers `CONTENT_HOSTING_DISABLED` on every tier.
88
+ * Host your build on your own origin.
80
89
  */
81
90
  export async function uploadPublishFiles(uploads, read, options = {}) {
82
91
  const concurrency = Math.max(1, options.concurrency ?? 8);
@@ -25,7 +25,7 @@
25
25
  * THIS IS THE ONLY WAY A BROWSER GAME ON ITS OWN DOMAIN SIGNS A PLAYER IN
26
26
  * (ck-api v1.88.0, 2026-09-08). The direct sign-in mutations behind
27
27
  * `client.auth.login` / `register` / magic link / social are served only to
28
- * first-party origins (Studio, the Crowdy Games host); from any other browser
28
+ * first-party origins (Studio); from any other browser
29
29
  * origin they are refused with `HOSTED_SIGN_IN_REQUIRED`
30
30
  * ({@link isHostedSignInRequiredError}). The reason is the player's password:
31
31
  * a form on a customer's domain that collects it is indistinguishable, to the
@@ -182,12 +182,14 @@ export interface SignInParams {
182
182
  * `false` to only compute and return the URL without navigating (tests,
183
183
  * SSR, a custom link). Default: navigate with `location.assign` when a
184
184
  * browser `location` exists -- or, when a Crowdy Games shell frames this page,
185
- * ask the shell to navigate (see `embedded-host.ts`).
185
+ * ask the shell to navigate (see `embedded-host.ts`). The shell was retired on
186
+ * 2026-10-29, so no first-party page frames a game any more.
186
187
  */
187
188
  navigate?: boolean;
188
189
  /**
189
190
  * `false` to ignore a framing Crowdy Games shell and run the top-level flow with
190
- * the given `redirectUri` even when embedded. Default: consult the shell.
191
+ * the given `redirectUri` even when embedded. Default: consult the shell. The
192
+ * shell was retired on 2026-10-29, so no first-party page answers any more.
191
193
  */
192
194
  embedded?: boolean;
193
195
  }
@@ -1 +1 @@
1
- {"version":3,"file":"portal.d.ts","sourceRoot":"","sources":["../../src/domains/portal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAIH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,WAAW,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IACpE,qFAAqF;IACrF,MAAM,EAAE,cAAc,GAAG,IAAI,CAAC;CAC/B;AAED,MAAM,WAAW,gBAAgB;IAC/B,gFAAgF;IAChF,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,0DAA0D;IAC1D,KAAK,EAAE,MAAM,CAAC;IACd,wEAAwE;IACxE,SAAS,EAAE,MAAM,CAAC;IAClB,0EAA0E;IAC1E,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,sDAAsD;IACtD,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;;;;;;;;;;;;OAeG;IACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,sDAAsD;IACtD,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;;;;OAOG;IACH,gBAAgB,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,UAAU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,EAAE,MAAM,EAAE,CAAC;QACxB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAS/B;;;;;;;;;;;;;;;;;OAiBG;IACG,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC;IA8BnD;;;;;;OAMG;IACG,oBAAoB,CACxB,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAQnC;;;;OAIG;IACG,UAAU,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC;IAa3D;;;;;;OAMG;IACG,sBAAsB,CAC1B,MAAM,CAAC,EAAE,MAAM,EACf,OAAO,CAAC,EAAE;QAAE,YAAY,CAAC,EAAE,OAAO,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,GACtD,OAAO,CAAC,MAAM,CAAC;IAoClB;;;;;OAKG;IACG,aAAa,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;CAmBvE"}
@@ -25,7 +25,7 @@
25
25
  * THIS IS THE ONLY WAY A BROWSER GAME ON ITS OWN DOMAIN SIGNS A PLAYER IN
26
26
  * (ck-api v1.88.0, 2026-09-08). The direct sign-in mutations behind
27
27
  * `client.auth.login` / `register` / magic link / social are served only to
28
- * first-party origins (Studio, the Crowdy Games host); from any other browser
28
+ * first-party origins (Studio); from any other browser
29
29
  * origin they are refused with `HOSTED_SIGN_IN_REQUIRED`
30
30
  * ({@link isHostedSignInRequiredError}). The reason is the player's password:
31
31
  * a form on a customer's domain that collects it is indistinguishable, to the
@@ -2,6 +2,10 @@
2
2
  * `@crowdedkingdoms/crowdyjs/hosting` -- Node-side helpers for publishing a built game
3
3
  * to Crowdy Games. Kept out of the root barrel because they read the filesystem; the
4
4
  * GraphQL wrappers themselves are `client.hosting` on every client.
5
+ *
6
+ * Deprecated, with both helpers: Crowded Kingdoms no longer hosts games (retired
7
+ * 2026-10-29), and the hosting API answers `CONTENT_HOSTING_DISABLED` on every tier.
8
+ * Host your build on your own origin.
5
9
  */
6
10
  export { publishDirectory, manifestForDirectory } from './publish-directory.js';
7
11
  export type { PublishDirectoryOptions, PublishDirectoryResult } from './publish-directory.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hosting/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAChF,YAAY,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hosting/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAChF,YAAY,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -2,5 +2,9 @@
2
2
  * `@crowdedkingdoms/crowdyjs/hosting` -- Node-side helpers for publishing a built game
3
3
  * to Crowdy Games. Kept out of the root barrel because they read the filesystem; the
4
4
  * GraphQL wrappers themselves are `client.hosting` on every client.
5
+ *
6
+ * Deprecated, with both helpers: Crowded Kingdoms no longer hosts games (retired
7
+ * 2026-10-29), and the hosting API answers `CONTENT_HOSTING_DISABLED` on every tier.
8
+ * Host your build on your own origin.
5
9
  */
6
10
  export { publishDirectory, manifestForDirectory } from './publish-directory.js';
@@ -18,7 +18,13 @@ export interface PublishDirectoryResult {
18
18
  totalBytes: number;
19
19
  invalidationId: string | null;
20
20
  }
21
- /** Walk `dir` and hash every regular file: the manifest `beginGamePublish` wants. */
21
+ /**
22
+ * Walk `dir` and hash every regular file: the manifest `beginGamePublish` wants.
23
+ *
24
+ * @deprecated Crowded Kingdoms no longer hosts games (retired 2026-10-29); the hosting
25
+ * API, `beginGamePublish` included, answers `CONTENT_HOSTING_DISABLED` on every tier.
26
+ * Host your build on your own origin.
27
+ */
22
28
  export declare function manifestForDirectory(dir: string): Promise<{
23
29
  files: PublishFileInput[];
24
30
  totalBytes: number;
@@ -28,6 +34,10 @@ export declare function manifestForDirectory(dir: string): Promise<{
28
34
  * every file to its presigned URL -> completeGamePublish. Requires the client to hold
29
35
  * an IDENTITY SESSION with `manage_apps` on the app (sign in with `client.auth.login`
30
36
  * from Node; a browser page cannot do this, by design).
37
+ *
38
+ * @deprecated Crowded Kingdoms no longer hosts games (retired 2026-10-29); the hosting
39
+ * API answers `CONTENT_HOSTING_DISABLED` on every tier, so this fails at
40
+ * `beginGamePublish`. Host your build on your own origin.
31
41
  */
32
42
  export declare function publishDirectory(client: Pick<CrowdyClient, 'hosting'>, options: PublishDirectoryOptions): Promise<PublishDirectoryResult>;
33
43
  //# sourceMappingURL=publish-directory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"publish-directory.d.ts","sourceRoot":"","sources":["../../src/hosting/publish-directory.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAA6B,UAAU,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAGrG,MAAM,WAAW,uBAAuB;IACtC,sEAAsE;IACtE,GAAG,EAAE,MAAM,CAAC;IACZ,0EAA0E;IAC1E,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iDAAiD;IACjD,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1E,wDAAwD;IACxD,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,EAAE,EA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ACrC,IAAI,EAAE,UAAU,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED;;;;;;GAMG;AACH,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAAE,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC,CAwBlH;AAED;;;;;;;;;GASG;AACH,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,EACrC,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,sBAAsB,CAAC,CA8BjC"}
@@ -2,7 +2,13 @@ import { createHash } from 'node:crypto';
2
2
  import { readdir, readFile, stat } from 'node:fs/promises';
3
3
  import { join, relative, sep } from 'node:path';
4
4
  import { uploadPublishFiles } from '../domains/hosting.js';
5
- /** Walk `dir` and hash every regular file: the manifest `beginGamePublish` wants. */
5
+ /**
6
+ * Walk `dir` and hash every regular file: the manifest `beginGamePublish` wants.
7
+ *
8
+ * @deprecated Crowded Kingdoms no longer hosts games (retired 2026-10-29); the hosting
9
+ * API, `beginGamePublish` included, answers `CONTENT_HOSTING_DISABLED` on every tier.
10
+ * Host your build on your own origin.
11
+ */
6
12
  export async function manifestForDirectory(dir) {
7
13
  const files = [];
8
14
  let totalBytes = 0;
@@ -34,6 +40,10 @@ export async function manifestForDirectory(dir) {
34
40
  * every file to its presigned URL -> completeGamePublish. Requires the client to hold
35
41
  * an IDENTITY SESSION with `manage_apps` on the app (sign in with `client.auth.login`
36
42
  * from Node; a browser page cannot do this, by design).
43
+ *
44
+ * @deprecated Crowded Kingdoms no longer hosts games (retired 2026-10-29); the hosting
45
+ * API answers `CONTENT_HOSTING_DISABLED` on every tier, so this fails at
46
+ * `beginGamePublish`. Host your build on your own origin.
37
47
  */
38
48
  export async function publishDirectory(client, options) {
39
49
  const { files, totalBytes } = await manifestForDirectory(options.dir);
package/dist/index.d.ts CHANGED
@@ -46,7 +46,7 @@
46
46
  * never an untrusted browser.
47
47
  */
48
48
  /** The published package version. Mirrors `package.json`. */
49
- export declare const VERSION = "18.23.0-dev.1";
49
+ export declare const VERSION = "18.23.1-dev.1";
50
50
  export { LbCookieStore } from './lb-cookie-store.js';
51
51
  export { CrowdyClient, createCrowdyClient, type CrowdyClientConfig, } from './crowdy-client.js';
52
52
  export { CROWDY_DEFAULT_TIER, CROWDY_DEFAULT_HOST, CROWDY_DEFAULT_HTTP_ORIGIN, CROWDY_DEFAULT_WS_ORIGIN, } from './default-origin.js';
package/dist/index.js CHANGED
@@ -46,7 +46,7 @@
46
46
  * never an untrusted browser.
47
47
  */
48
48
  /** The published package version. Mirrors `package.json`. */
49
- export const VERSION = '18.23.0-dev.1';
49
+ export const VERSION = '18.23.1-dev.1';
50
50
  export { LbCookieStore } from './lb-cookie-store.js';
51
51
  export { CrowdyClient, createCrowdyClient, } from './crowdy-client.js';
52
52
  // The tier this build defaults to, exported so a consumer can PRINT what it is
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crowdedkingdoms/crowdyjs",
3
- "version": "18.23.0-dev.1",
3
+ "version": "18.23.1-dev.1",
4
4
  "description": "Browser-first Crowded Kingdoms SDK with GraphQL, realtime, and local Rust authoring support",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",