@crowdedkingdoms/crowdyjs 18.2.0 → 18.3.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.
- package/MIGRATION.md +11 -0
- package/README.md +21 -15
- 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/grid-mods/grid-host-calls.d.ts +6 -0
- package/dist/grid-mods/grid-host-calls.d.ts.map +1 -1
- package/dist/grid-mods/grid-host-calls.js +28 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/player-runtime/host-catalog.generated.d.ts.map +1 -1
- package/dist/player-runtime/host-catalog.generated.js +202 -0
- package/package.json +1 -1
package/MIGRATION.md
CHANGED
|
@@ -120,6 +120,17 @@ 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.3.0: a game answers the page-held host calls
|
|
124
|
+
|
|
125
|
+
No API change. `createGridHostCalls` takes a `local.page(fn, args)` hook for the calls only the
|
|
126
|
+
page can answer: the player's input (`input_axes`, `input_look`, `input_key`), the player's own
|
|
127
|
+
body (`pose_get`, `pose_set`, `pose_release`, `teleport_request`), mod-owned actors
|
|
128
|
+
(`actor_spawn`, `actor_pose`, `actor_despawn`), the scene (`scene_catalog`, `scene_instances`),
|
|
129
|
+
presentation (`avatar_appearance`, `avatar_state_set`, `voice_set`, `video_set`) and the player's
|
|
130
|
+
own sends (`send_client_event`, `events_poll`, `send_text`, `send_actor_message`,
|
|
131
|
+
`send_channel_message`). Without the hook each is refused as not offered, as before. `clock` is
|
|
132
|
+
answered locally. The host catalog lists all of them as client calls the server refuses.
|
|
133
|
+
|
|
123
134
|
## 18.2.0: `ChunkStore` keeps the voxel edits it hydrated
|
|
124
135
|
|
|
125
136
|
No API change. Every voxel write but a chunk write-back lands only in the chunk's edit log: a
|
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
|
CrowdyJS targets browsers by default and uses native `fetch`, `WebSocket`,
|
|
29
33
|
`crypto`, `btoa`, and `atob`. Node tools can still use the SDK, but must
|
|
30
34
|
provide browser-compatible globals when opening realtime connections (e.g.
|
|
@@ -171,8 +175,8 @@ Notes:
|
|
|
171
175
|
- Use `client.auth.setToken(token)` to seed a token externally (e.g. when
|
|
172
176
|
restoring auth from a non-default storage).
|
|
173
177
|
|
|
174
|
-
Deeper reading: [Portals & app-scoped tokens](https://docs.crowdedkingdoms.com/management-api/portals-and-app-tokens)
|
|
175
|
-
and [Sign in](https://docs.crowdedkingdoms.com/management-api/authentication).
|
|
178
|
+
Deeper reading: [Portals & app-scoped tokens](https://docs.dev.crowdedkingdoms.com/management-api/portals-and-app-tokens)
|
|
179
|
+
and [Sign in](https://docs.dev.crowdedkingdoms.com/management-api/authentication).
|
|
176
180
|
|
|
177
181
|
### Token refresh during gameplay
|
|
178
182
|
|
|
@@ -295,7 +299,7 @@ query AppForRouting($appId: BigInt!) {
|
|
|
295
299
|
`CrowdyClient` with `httpUrl: gameApiUrl` (and the matching `wsUrl`) holding
|
|
296
300
|
that app's app-scoped token, then drive gameplay through that client. Apps
|
|
297
301
|
with no `gameApiUrl` keep working against the default `httpUrl` you
|
|
298
|
-
configured. See [Loading an app's Game API](https://docs.crowdedkingdoms.com/crowdyjs/shared-environment-routing).
|
|
302
|
+
configured. See [Loading an app's Game API](https://docs.dev.crowdedkingdoms.com/crowdyjs/shared-environment-routing).
|
|
299
303
|
|
|
300
304
|
## Realtime notifications
|
|
301
305
|
|
|
@@ -513,8 +517,10 @@ a CLIENT half's host calls through CrowdyJS confined to the grid. The ones only
|
|
|
513
517
|
the game can answer need its knowledge: `local.actorsInChunk` for
|
|
514
518
|
`actors_list*`, `local.avatarChunk` (where an avatar's live actor is) for
|
|
515
519
|
`avatar_state_get`, `local.gridPermissionKeys` with the visiting player's
|
|
516
|
-
`userId` for `grid_permission_check`,
|
|
517
|
-
`pointer_clicks
|
|
520
|
+
`userId` for `grid_permission_check`, `local.drainPointerClicks` for
|
|
521
|
+
`pointer_clicks`, and `local.page(fn, args)` for the calls the page holds (the
|
|
522
|
+
player's input, body and sends, mod-owned actors, the scene and presentation;
|
|
523
|
+
18.3.0); without its hook such a call is refused as not offered. The
|
|
518
524
|
Game Model, sessions and grid state calls went with the legacy engines in
|
|
519
525
|
18.0.0: the broker refuses them.
|
|
520
526
|
|
|
@@ -604,7 +610,7 @@ reach your bundle. Reads are synchronous snapshots and writes happen on
|
|
|
604
610
|
WebSocket events (not `requestAnimationFrame`), so render loops read freely
|
|
605
611
|
and a backgrounded tab keeps ingesting updates; pass `workerTicker()` to also
|
|
606
612
|
keep timer-driven sends at full rate while hidden. See the
|
|
607
|
-
[World Stores guide](https://docs.crowdedkingdoms.com/crowdyjs/stores).
|
|
613
|
+
[World Stores guide](https://docs.dev.crowdedkingdoms.com/crowdyjs/stores).
|
|
608
614
|
|
|
609
615
|
## Game Kit
|
|
610
616
|
|
|
@@ -687,7 +693,7 @@ exec.onReconnect((host) => console.log('moved to', host));
|
|
|
687
693
|
|
|
688
694
|
Integers above 2^53 decode as `number` and lose precision unless you pass
|
|
689
695
|
`{ decode: { useBigInt64: true } }`. The wire format is in the
|
|
690
|
-
[ck-exec docs](https://docs.crowdedkingdoms.com/exec/intro).
|
|
696
|
+
[ck-exec docs](https://docs.dev.crowdedkingdoms.com/exec/intro).
|
|
691
697
|
|
|
692
698
|
### A mod's CLIENT half
|
|
693
699
|
|
|
@@ -758,7 +764,7 @@ counts what was dropped); `invoke` sends at most 256 KiB each way and is refused
|
|
|
758
764
|
module is not running. `NOT_FOUND` holds a CLIENT half back 15 s and `RATE_LIMITED` 60 s. The
|
|
759
765
|
grid's owner is asked about their own CLIENT halves like anyone; answer yes in `confirm` when
|
|
760
766
|
`prompt.authorId` is the player. See
|
|
761
|
-
[CLIENT halves](https://docs.crowdedkingdoms.com/exec/client-halves).
|
|
767
|
+
[CLIENT halves](https://docs.dev.crowdedkingdoms.com/exec/client-halves).
|
|
762
768
|
|
|
763
769
|
## Hosting a game on Crowdy Games
|
|
764
770
|
|
|
@@ -877,8 +883,8 @@ CLIENT project needs ck-api `v2.25.1` or later. A CLIENT crate still on the lega
|
|
|
877
883
|
`mountCrowdyStudio` and the controller take `mods: client.exec`. Crowdy Studio runs nothing
|
|
878
884
|
on legacy player compute since 18.0.0.
|
|
879
885
|
|
|
880
|
-
See [CLIENT halves](https://docs.crowdedkingdoms.com/exec/client-halves), [mods](https://docs.crowdedkingdoms.com/exec/mods)
|
|
881
|
-
and [Embed Crowdy Studio in your game](https://docs.crowdedkingdoms.com/crowdyjs/crowdy-studio-embed).
|
|
886
|
+
See [CLIENT halves](https://docs.dev.crowdedkingdoms.com/exec/client-halves), [mods](https://docs.dev.crowdedkingdoms.com/exec/mods)
|
|
887
|
+
and [Embed Crowdy Studio in your game](https://docs.dev.crowdedkingdoms.com/crowdyjs/crowdy-studio-embed).
|
|
882
888
|
|
|
883
889
|
### The Studio agent (DeepSeek Harness in the browser)
|
|
884
890
|
|
|
@@ -1056,7 +1062,7 @@ no other repositories and no network access required:
|
|
|
1056
1062
|
- `src/generated/graphql.ts` — generated TypeScript operation types.
|
|
1057
1063
|
|
|
1058
1064
|
Schema refresh is explicit, from the published
|
|
1059
|
-
[SDL](https://docs.crowdedkingdoms.com/schema/game-api.graphql):
|
|
1065
|
+
[SDL](https://docs.dev.crowdedkingdoms.com/schema/game-api.graphql):
|
|
1060
1066
|
|
|
1061
1067
|
```bash
|
|
1062
1068
|
npm run schema:sync:prod
|
package/dist/default-origin.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* GENERATED — do not edit. The operator tooling's
|
|
3
|
-
* `sync-client-origins.mjs --write --tier
|
|
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 '
|
|
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 = "
|
|
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.
|
|
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.
|
|
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.
|
|
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,
|
|
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"}
|
package/dist/default-origin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* GENERATED — do not edit. The operator tooling's
|
|
3
|
-
* `sync-client-origins.mjs --write --tier
|
|
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 '
|
|
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 = '
|
|
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.
|
|
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.
|
|
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.
|
|
22
|
+
export const CROWDY_DEFAULT_HOST = 'ck.dev.crowdedkingdoms.com';
|
|
@@ -41,6 +41,12 @@ export interface GridHostLocal {
|
|
|
41
41
|
state?: string;
|
|
42
42
|
}): Promise<boolean>;
|
|
43
43
|
drainPointerClicks?(): unknown;
|
|
44
|
+
/**
|
|
45
|
+
* Answers a host call the page holds and the server does not: input, the
|
|
46
|
+
* player's body, scene, presentation, and the player's own sends. Absent,
|
|
47
|
+
* those calls are refused. A game that routes them itself does not use this.
|
|
48
|
+
*/
|
|
49
|
+
page?(fn: string, args: Record<string, unknown>): unknown | Promise<unknown>;
|
|
44
50
|
}
|
|
45
51
|
export interface GridHostCallsOptions {
|
|
46
52
|
/** The grid, bound (`client.grid(appId, gridId, box)`), box required. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-host-calls.d.ts","sourceRoot":"","sources":["../../src/grid-mods/grid-host-calls.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAClF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpD;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC5B,WAAW,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG;QAAE,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,GAAG,IAAI,CAAC;IACtF,aAAa,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAChF;;;OAGG;IACH,WAAW,CAAC,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;IACrG;;;;;OAKG;IACH,kBAAkB,CAAC,IAAI,QAAQ,CAAC,MAAM,CAAC,GAAG,OAAO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AIG;IACH,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAClE;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,SAAS,MAAM,EAKvD,CAAC;AAEF;;;;GAIG;AACH,wBAAsB,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAIvF;AAED,sEAAsE;AACtE,qBAAa,mBAAoB,SAAQ,KAAK;IAChC,QAAQ,CAAC,EAAE,EAAE,MAAM;gBAAV,EAAE,EAAE,MAAM,EAAE,MAAM,SAA+B;CAIvE;AAID;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,oBAAoB,GAC5B,CAAC,IAAI,EAAE,kBAAkB,KAAK,OAAO,CAAC,OAAO,CAAC,CAmMhD"}
|
|
@@ -198,6 +198,34 @@ export function createGridHostCalls(options) {
|
|
|
198
198
|
if (!local?.drainPointerClicks)
|
|
199
199
|
throw new GridHostCallRefused(fn);
|
|
200
200
|
return local.drainPointerClicks();
|
|
201
|
+
case 'clock':
|
|
202
|
+
return { ms: Date.now() };
|
|
203
|
+
// The page holds these. `local.page` is how a game answers them through
|
|
204
|
+
// this helper; without it they are refused, the same as a missing hook.
|
|
205
|
+
case 'actor_despawn':
|
|
206
|
+
case 'actor_pose':
|
|
207
|
+
case 'actor_spawn':
|
|
208
|
+
case 'avatar_appearance':
|
|
209
|
+
case 'avatar_state_set':
|
|
210
|
+
case 'events_poll':
|
|
211
|
+
case 'input_axes':
|
|
212
|
+
case 'input_key':
|
|
213
|
+
case 'input_look':
|
|
214
|
+
case 'pose_get':
|
|
215
|
+
case 'pose_release':
|
|
216
|
+
case 'pose_set':
|
|
217
|
+
case 'scene_catalog':
|
|
218
|
+
case 'scene_instances':
|
|
219
|
+
case 'send_actor_message':
|
|
220
|
+
case 'send_channel_message':
|
|
221
|
+
case 'send_client_event':
|
|
222
|
+
case 'send_text':
|
|
223
|
+
case 'teleport_request':
|
|
224
|
+
case 'video_set':
|
|
225
|
+
case 'voice_set':
|
|
226
|
+
if (!local?.page)
|
|
227
|
+
throw new GridHostCallRefused(fn);
|
|
228
|
+
return local.page(fn, args);
|
|
201
229
|
default:
|
|
202
230
|
throw new GridHostCallRefused(fn);
|
|
203
231
|
}
|
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.
|
|
49
|
+
export declare const VERSION = "18.3.0-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.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,6DAA6D;AAC7D,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,6DAA6D;AAC7D,eAAO,MAAM,OAAO,iBAAiB,CAAC;AAEtC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EACL,YAAY,EACZ,kBAAkB,EACl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nB,mBAAmB,EACnB,mBAAmB,EACnB,aAAa,EACb,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,WAAW,EACX,aAAa,EACb,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,wBAAwB,GACzB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,eAAe,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC"}
|
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.
|
|
49
|
+
export const VERSION = '18.3.0-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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host-catalog.generated.d.ts","sourceRoot":"","sources":["../../src/player-runtime/host-catalog.generated.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,aAAa,CAAC,QAAQ,GAAG,QAAQ,CAAC,CAAC;IAC5C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,WAAW;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACzC,SAAS,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAC;CAC/C;AAED,eAAO,MAAM,sBAAsB,EAAE,
|
|
1
|
+
{"version":3,"file":"host-catalog.generated.d.ts","sourceRoot":"","sources":["../../src/player-runtime/host-catalog.generated.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,aAAa,CAAC,QAAQ,GAAG,QAAQ,CAAC,CAAC;IAC5C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,WAAW;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACzC,SAAS,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAC;CAC/C;AAED,eAAO,MAAM,sBAAsB,EAAE,WA0fpC,CAAC"}
|
|
@@ -300,6 +300,208 @@ export const GENERATED_HOST_CATALOG = {
|
|
|
300
300
|
],
|
|
301
301
|
"app": "Refused on the server",
|
|
302
302
|
"grid": "Refused on the server"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"name": "input_axes",
|
|
306
|
+
"group": "input",
|
|
307
|
+
"targets": [
|
|
308
|
+
"client"
|
|
309
|
+
],
|
|
310
|
+
"app": "Refused on the server",
|
|
311
|
+
"grid": "The player's own movement axes (WASD / stick), drained by the page"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"name": "input_look",
|
|
315
|
+
"group": "input",
|
|
316
|
+
"targets": [
|
|
317
|
+
"client"
|
|
318
|
+
],
|
|
319
|
+
"app": "Refused on the server",
|
|
320
|
+
"grid": "The player's own pointer-look delta since the last poll"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"name": "input_key",
|
|
324
|
+
"group": "input",
|
|
325
|
+
"targets": [
|
|
326
|
+
"client"
|
|
327
|
+
],
|
|
328
|
+
"app": "Refused on the server",
|
|
329
|
+
"grid": "Whether one named key is held by the player"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"name": "clock",
|
|
333
|
+
"group": "meta",
|
|
334
|
+
"targets": [
|
|
335
|
+
"client"
|
|
336
|
+
],
|
|
337
|
+
"app": "Refused on the server",
|
|
338
|
+
"grid": "The page's wall clock in milliseconds, answered locally"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"name": "pose_get",
|
|
342
|
+
"group": "world_read",
|
|
343
|
+
"targets": [
|
|
344
|
+
"client"
|
|
345
|
+
],
|
|
346
|
+
"app": "Refused on the server",
|
|
347
|
+
"grid": "The player's own body pose (held by the mod, or the walker)"
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"name": "pose_set",
|
|
351
|
+
"group": "world_write",
|
|
352
|
+
"targets": [
|
|
353
|
+
"client"
|
|
354
|
+
],
|
|
355
|
+
"app": "Refused on the server",
|
|
356
|
+
"grid": "The player's own body, positions inside the grid box only"
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"name": "pose_release",
|
|
360
|
+
"group": "world_write",
|
|
361
|
+
"targets": [
|
|
362
|
+
"client"
|
|
363
|
+
],
|
|
364
|
+
"app": "Refused on the server",
|
|
365
|
+
"grid": "Hand the player's own body back to the walker"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"name": "teleport_request",
|
|
369
|
+
"group": "world_write",
|
|
370
|
+
"targets": [
|
|
371
|
+
"client"
|
|
372
|
+
],
|
|
373
|
+
"app": "Refused on the server",
|
|
374
|
+
"grid": "The player's own body, destinations inside the grid box only"
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"name": "actor_spawn",
|
|
378
|
+
"group": "world_write",
|
|
379
|
+
"targets": [
|
|
380
|
+
"client"
|
|
381
|
+
],
|
|
382
|
+
"app": "Refused on the server",
|
|
383
|
+
"grid": "A mod-owned actor placed inside the grid box, replicated from the player's session"
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"name": "actor_pose",
|
|
387
|
+
"group": "world_write",
|
|
388
|
+
"targets": [
|
|
389
|
+
"client"
|
|
390
|
+
],
|
|
391
|
+
"app": "Refused on the server",
|
|
392
|
+
"grid": "A mod-owned actor of this session, positions inside the grid box only"
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"name": "actor_despawn",
|
|
396
|
+
"group": "world_write",
|
|
397
|
+
"targets": [
|
|
398
|
+
"client"
|
|
399
|
+
],
|
|
400
|
+
"app": "Refused on the server",
|
|
401
|
+
"grid": "A mod-owned actor of this session"
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"name": "scene_catalog",
|
|
405
|
+
"group": "present",
|
|
406
|
+
"targets": [
|
|
407
|
+
"client"
|
|
408
|
+
],
|
|
409
|
+
"app": "Refused on the server",
|
|
410
|
+
"grid": "The mod's construct.scene.v1 templates, kept in the page"
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"name": "scene_instances",
|
|
414
|
+
"group": "present",
|
|
415
|
+
"targets": [
|
|
416
|
+
"client"
|
|
417
|
+
],
|
|
418
|
+
"app": "Refused on the server",
|
|
419
|
+
"grid": "Template instances inside the grid box, drawn locally"
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"name": "avatar_appearance",
|
|
423
|
+
"group": "present",
|
|
424
|
+
"targets": [
|
|
425
|
+
"client"
|
|
426
|
+
],
|
|
427
|
+
"app": "Refused on the server",
|
|
428
|
+
"grid": "The player's own avatar tint"
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"name": "avatar_state_set",
|
|
432
|
+
"group": "state",
|
|
433
|
+
"targets": [
|
|
434
|
+
"client"
|
|
435
|
+
],
|
|
436
|
+
"app": "Refused on the server",
|
|
437
|
+
"grid": "The player's own avatar state blob"
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"name": "voice_set",
|
|
441
|
+
"group": "present",
|
|
442
|
+
"targets": [
|
|
443
|
+
"client"
|
|
444
|
+
],
|
|
445
|
+
"app": "Refused on the server",
|
|
446
|
+
"grid": "Start or stop the player's own microphone; the page still asks the browser"
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"name": "video_set",
|
|
450
|
+
"group": "present",
|
|
451
|
+
"targets": [
|
|
452
|
+
"client"
|
|
453
|
+
],
|
|
454
|
+
"app": "Refused on the server",
|
|
455
|
+
"grid": "Start or stop the player's own camera; the page still asks the browser"
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"name": "send_client_event",
|
|
459
|
+
"group": "egress",
|
|
460
|
+
"targets": [
|
|
461
|
+
"client"
|
|
462
|
+
],
|
|
463
|
+
"app": "Refused on the server",
|
|
464
|
+
"grid": "A ClientEvent on the UDP fan-out from the player's own chunk, inside the grid box",
|
|
465
|
+
"egress": true
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"name": "events_poll",
|
|
469
|
+
"group": "egress",
|
|
470
|
+
"targets": [
|
|
471
|
+
"client"
|
|
472
|
+
],
|
|
473
|
+
"app": "Refused on the server",
|
|
474
|
+
"grid": "ClientEvents received by the player's session since the last poll"
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"name": "send_text",
|
|
478
|
+
"group": "egress",
|
|
479
|
+
"targets": [
|
|
480
|
+
"client"
|
|
481
|
+
],
|
|
482
|
+
"app": "Refused on the server",
|
|
483
|
+
"grid": "A spatial text packet from the player's own chunk, as the player",
|
|
484
|
+
"egress": true
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"name": "send_actor_message",
|
|
488
|
+
"group": "egress",
|
|
489
|
+
"targets": [
|
|
490
|
+
"client"
|
|
491
|
+
],
|
|
492
|
+
"app": "Refused on the server",
|
|
493
|
+
"grid": "A single-actor message from the player's session to one actor inside the grid box",
|
|
494
|
+
"egress": true
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"name": "send_channel_message",
|
|
498
|
+
"group": "egress",
|
|
499
|
+
"targets": [
|
|
500
|
+
"client"
|
|
501
|
+
],
|
|
502
|
+
"app": "Refused on the server",
|
|
503
|
+
"grid": "A channel message as the player, on channels the player may send on",
|
|
504
|
+
"egress": true
|
|
303
505
|
}
|
|
304
506
|
]
|
|
305
507
|
};
|
package/package.json
CHANGED