@jgengine/ws 0.18.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +265 -2
- package/dist/createWsBackend.d.ts +6 -0
- package/dist/createWsBackend.js +121 -12
- package/dist/host.d.ts +12 -1
- package/dist/host.js +8 -3
- package/dist/hostRouter.d.ts +5 -1
- package/dist/hostRouter.js +109 -10
- package/dist/protocol.d.ts +18 -0
- package/dist/protocol.js +15 -3
- package/dist/worldHost.d.ts +1 -1
- package/dist/worldHost.js +46 -10
- package/package.json +2 -2
- package/skills/ce-handoff/SKILL.md +2 -2
- package/skills/jgengine/SKILL.md +9 -5
- package/skills/jgengine/api.md +205 -101
- package/skills/jgengine/capabilities.md +56 -0
- package/skills/jgengine/recipes/minimal-game.md +3 -0
- package/skills/jgengine-multiplayer/SKILL.md +25 -0
- package/skills/jgengine-multiplayer/api.md +159 -109
- package/skills/jgengine-multiplayer/capabilities.md +37 -0
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
Reach for these before hand-rolling. Each row is *the thing you need* → *the primitive that already does it*.
|
|
6
6
|
|
|
7
|
+
## client-error-reporting — Accept authenticated bounded diagnostics with cooldown and retention sweeps.
|
|
8
|
+
|
|
9
|
+
- `createClientErrorFunctions` (function) · `import { createClientErrorFunctions } from "@jgengine/convex"`
|
|
10
|
+
|
|
7
11
|
## convex-load-server-snapshot — read a hosted server's runtime snapshot inside a host-written Convex mutation
|
|
8
12
|
|
|
9
13
|
- `loadServerSnapshot` (function) · `import { loadServerSnapshot } from "@jgengine/convex"`
|
|
@@ -16,6 +20,14 @@ Reach for these before hand-rolling. Each row is *the thing you need* → *the p
|
|
|
16
20
|
|
|
17
21
|
- `createConvexSaveBackend` (function) · `import { createConvexSaveBackend } from "@jgengine/convex"`
|
|
18
22
|
|
|
23
|
+
## host-chat-history — Read bounded channel history inside an authorized host query.
|
|
24
|
+
|
|
25
|
+
- `recentChatMessages` (function) · `import { recentChatMessages } from "@jgengine/convex"`
|
|
26
|
+
|
|
27
|
+
## host-chat-send — Validate, rate-limit and persist chat inside an authorized host mutation.
|
|
28
|
+
|
|
29
|
+
- `sendChatMessage` (function) · `import { sendChatMessage } from "@jgengine/convex"`
|
|
30
|
+
|
|
19
31
|
## host-join-code-gate — membership-or-code gate for private hosted servers
|
|
20
32
|
|
|
21
33
|
- `canJoinPrivateServer` (function) · `import { canJoinPrivateServer } from "@jgengine/convex"`
|
|
@@ -24,6 +36,19 @@ Reach for these before hand-rolling. Each row is *the thing you need* → *the p
|
|
|
24
36
|
|
|
25
37
|
- `isListablePublicly` (function) · `import { isListablePublicly } from "@jgengine/convex"`
|
|
26
38
|
|
|
39
|
+
## host-rate-limit — Enforce indexed per-key request windows inside authoritative mutations.
|
|
40
|
+
|
|
41
|
+
- `rateLimit` (function) · `import { rateLimit } from "@jgengine/convex"`
|
|
42
|
+
|
|
43
|
+
## hosted-world-persistence — Persist hosted authoritative world snapshots in a local file.
|
|
44
|
+
|
|
45
|
+
- `fileWorldStore` (function) · `import { fileWorldStore } from "@jgengine/node"`
|
|
46
|
+
- `sqlWorldStore` (function) · `import { sqlWorldStore } from "@jgengine/sql"`
|
|
47
|
+
|
|
48
|
+
## online-player-batches — Schedule bounded active-player or home-game work in separate transactions.
|
|
49
|
+
|
|
50
|
+
- `forEachOnlinePlayer` (function) · `import { forEachOnlinePlayer } from "@jgengine/convex"`
|
|
51
|
+
|
|
27
52
|
## placed-object-rehydrate — rebuild live placed objects, with their state and slot contents, from persisted snapshot rows
|
|
28
53
|
|
|
29
54
|
- `fromRuntimeObjectRow` (function) · `import { fromRuntimeObjectRow } from "@jgengine/core/multiplayer"`
|
|
@@ -31,3 +56,15 @@ Reach for these before hand-rolling. Each row is *the thing you need* → *the p
|
|
|
31
56
|
## placed-object-rows — a placed object's per-instance state and container contents convert to and from the persisted snapshot row a host stores
|
|
32
57
|
|
|
33
58
|
- `toRuntimeObjectRow` (function) · `import { toRuntimeObjectRow } from "@jgengine/core/multiplayer"`
|
|
59
|
+
|
|
60
|
+
## territory-host-hydration — Load an actor profile and bounded claim chunks for a host transaction.
|
|
61
|
+
|
|
62
|
+
- `loadTerritoryState` (function) · `import { loadTerritoryState } from "@jgengine/convex/territory"`
|
|
63
|
+
|
|
64
|
+
## territory-host-persistence — Persist dirty ownership chunks and profiles without rewriting the shared server.
|
|
65
|
+
|
|
66
|
+
- `persistTerritoryState` (function) · `import { persistTerritoryState } from "@jgengine/convex/territory"`
|
|
67
|
+
|
|
68
|
+
## world-presence-store — indexed neighborhood presence with pose throttling and physical expiry Call only after resolving the actor and their world access; browser arguments are not trusted identities.
|
|
69
|
+
|
|
70
|
+
- `createWorldPresenceStore` (function) · `import { createWorldPresenceStore } from "@jgengine/convex/worldPresence"`
|