@air-jam/cli 0.9.3 → 1.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/README.md +128 -0
  2. package/dist/auth-profile.d.ts +5 -0
  3. package/dist/auth-profile.js +7 -0
  4. package/dist/auth-profile.js.map +1 -0
  5. package/dist/auth-sessions.d.ts +5 -0
  6. package/dist/auth-sessions.js +7 -0
  7. package/dist/auth-sessions.js.map +1 -0
  8. package/dist/chunk-7D4AYBAV.js +64 -0
  9. package/dist/chunk-7D4AYBAV.js.map +1 -0
  10. package/dist/chunk-LH7UO57C.js +23 -0
  11. package/dist/chunk-LH7UO57C.js.map +1 -0
  12. package/dist/chunk-PKTLVQXZ.js +82 -0
  13. package/dist/chunk-PKTLVQXZ.js.map +1 -0
  14. package/dist/chunk-SQE4NPZP.js +31 -0
  15. package/dist/chunk-SQE4NPZP.js.map +1 -0
  16. package/dist/{chunk-A4V2N4LX.js → chunk-U6V3HEBB.js} +6 -5
  17. package/dist/chunk-U6V3HEBB.js.map +1 -0
  18. package/dist/chunk-VEHNFPEO.js +224 -0
  19. package/dist/chunk-VEHNFPEO.js.map +1 -0
  20. package/dist/development.d.ts +4 -0
  21. package/dist/development.js +1 -1
  22. package/dist/game-analytics.d.ts +5 -0
  23. package/dist/game-analytics.js +7 -0
  24. package/dist/game-analytics.js.map +1 -0
  25. package/dist/game-app-id.d.ts +5 -0
  26. package/dist/game-app-id.js +7 -0
  27. package/dist/game-app-id.js.map +1 -0
  28. package/dist/game-media.d.ts +5 -0
  29. package/dist/game-media.js +7 -0
  30. package/dist/game-media.js.map +1 -0
  31. package/dist/index.js +688 -404
  32. package/dist/index.js.map +1 -1
  33. package/package.json +8 -4
  34. package/runtime/local-network.d.mts +4 -6
  35. package/runtime/public-assets.mjs +62 -0
  36. package/runtime/source-fence.mjs +182 -0
  37. package/runtime/vite-config.d.mts +2 -1
  38. package/runtime/vite-config.mjs +6 -2
  39. package/runtime/vite-dev.mjs +18 -0
  40. package/runtime/vite-https.mjs +2 -3
  41. package/template-assets/bootstrap/AGENTS.md +56 -14
  42. package/template-assets/bootstrap/CLAUDE.md +0 -8
  43. package/template-assets/bootstrap/skills/airjam-mcp/SKILL.md +44 -0
  44. package/template-assets/bootstrap/skills/controller-ui/SKILL.md +2 -0
  45. package/template-assets/bootstrap/skills/game-architecture/SKILL.md +47 -3
  46. package/template-assets/bootstrap/skills/index.md +1 -1
  47. package/template-assets/bootstrap/skills/prefab-authoring/SKILL.md +10 -0
  48. package/template-assets/bootstrap/skills/r3f-3d-scene/SKILL.md +10 -0
  49. package/template-assets/documentation/for-agents/controller-ui/page.mdx +41 -2
  50. package/template-assets/documentation/for-agents/page.mdx +24 -2
  51. package/template-assets/documentation/for-agents/project-structure/page.mdx +0 -2
  52. package/template-assets/documentation/for-agents/state-and-rendering/page.mdx +0 -2
  53. package/template-assets/documentation/for-agents/supported-agents/page.mdx +18 -0
  54. package/template-assets/documentation/getting-started/debugging/page.mdx +7 -8
  55. package/template-assets/documentation/getting-started/dev-logs/page.mdx +0 -2
  56. package/template-assets/documentation/getting-started/game-ideas/page.mdx +1 -3
  57. package/template-assets/documentation/getting-started/introduction/page.mdx +71 -54
  58. package/template-assets/documentation/getting-started/migrating-legacy-games/page.mdx +308 -62
  59. package/template-assets/documentation/getting-started/quick-start/page.mdx +56 -79
  60. package/template-assets/documentation/how-it-works/architecture/page.mdx +91 -50
  61. package/template-assets/documentation/how-it-works/host-system/page.mdx +112 -109
  62. package/template-assets/documentation/manifest.json +112 -42
  63. package/template-assets/documentation/sdk/assets-and-theme/page.mdx +185 -0
  64. package/template-assets/documentation/sdk/hooks/page.mdx +106 -171
  65. package/template-assets/documentation/sdk/input-system/page.mdx +201 -231
  66. package/template-assets/documentation/sdk/networked-state/page.mdx +134 -52
  67. package/template-assets/documentation/sdk/settings/page.mdx +155 -0
  68. package/template-assets/documentation/sdk/ui-components/page.mdx +45 -4
  69. package/template-assets/managed/.airjam/ai-pack.json +61 -43
  70. package/template-assets/managed/docs/airjam/agent-gold-path.md +55 -7
  71. package/template-assets/managed/docs/airjam/agent-mcp.md +44 -0
  72. package/template-assets/managed/docs/airjam/debug-and-testing.md +18 -0
  73. package/template-assets/managed/docs/airjam/docs-index.md +18 -12
  74. package/template-assets/managed/docs/airjam/generated/architecture.md +91 -46
  75. package/template-assets/managed/docs/airjam/generated/assets-and-theme.md +188 -0
  76. package/template-assets/managed/docs/airjam/generated/controller-ui.md +41 -0
  77. package/template-assets/managed/docs/airjam/generated/debugging-and-logs.md +7 -6
  78. package/template-assets/managed/docs/airjam/generated/for-agents.md +24 -0
  79. package/template-assets/managed/docs/airjam/generated/game-ideas.md +1 -1
  80. package/template-assets/managed/docs/airjam/generated/host-system.md +112 -102
  81. package/template-assets/managed/docs/airjam/generated/input-system.md +199 -218
  82. package/template-assets/managed/docs/airjam/generated/introduction.md +71 -51
  83. package/template-assets/managed/docs/airjam/generated/migrating-legacy-games.md +308 -60
  84. package/template-assets/managed/docs/airjam/generated/networked-state.md +134 -50
  85. package/template-assets/managed/docs/airjam/generated/quick-start.md +56 -79
  86. package/template-assets/managed/docs/airjam/generated/sdk-hooks.md +106 -166
  87. package/template-assets/managed/docs/airjam/generated/settings.md +158 -0
  88. package/template-assets/managed/docs/airjam/generated/supported-agents.md +21 -0
  89. package/template-assets/managed/docs/airjam/generated/ui-components.md +45 -2
  90. package/template-assets/managed/docs/airjam/prefab-authoring.md +100 -0
  91. package/template-assets/managed/docs/airjam/preview-controllers.md +4 -1
  92. package/template-assets/managed/docs/airjam/r3f-3d-scene.md +66 -0
  93. package/template-assets/managed/docs/airjam/state-lanes-cookbook.md +15 -20
  94. package/dist/chunk-A4V2N4LX.js.map +0 -1
@@ -1,5 +1,3 @@
1
-
2
-
3
1
  # Host System
4
2
 
5
3
  The Air Jam host system manages game sessions and input routing. This page explains how hosts work in different modes and how input flows through the system.
@@ -10,14 +8,17 @@ The Air Jam host system manages game sessions and input routing. This page expla
10
8
 
11
9
  The simplest mode—your game connects directly to the Air Jam server.
12
10
 
13
-
14
11
  <StandaloneHostDiagram />
15
12
 
16
13
  **Usage:**
17
14
 
18
- ```tsx filename="src/components/HostView.tsx"
19
- import { useAirJamHost } from "@air-jam/sdk";
20
- import { airjam } from "../airjam.config";
15
+ ```tsx filename="src/app.tsx"
16
+ import { createAirJamApp, env } from "@air-jam/sdk";
17
+ import { airjam as game } from "./airjam.config";
18
+
19
+ export const airjam = createAirJamApp(game, {
20
+ runtime: env.vite(import.meta.env),
21
+ });
21
22
 
22
23
  const HostShell = () => (
23
24
  <airjam.Host
@@ -28,21 +29,14 @@ const HostShell = () => (
28
29
  </airjam.Host>
29
30
  );
30
31
 
31
- const HostView = () => {
32
- const host = useAirJamHost();
33
-
34
- // Host receives all input directly
35
- useFrame(() => {
36
- host.players.forEach((p) => {
37
- const input = host.getInput(p.id);
38
- processInput(p.id, input);
39
- });
40
- });
41
-
42
- return <GameCanvas />;
43
- };
32
+ // Players' controls reach the game in its simulation steps:
33
+ // step: (sim, { input, players }) => players.forEach((p) => process(sim, input(p.id)))
34
+ const HostView = () => <GameCanvas />;
44
35
  ```
45
36
 
37
+ `createAirJamApp` binds the game declaration from `src/airjam.config.ts` to the
38
+ browser and returns `Host`, `Controller` and `paths`.
39
+
46
40
  ### Arcade Mode (Outer App + Embedded Game)
47
41
 
48
42
  In arcade mode, the platform runs the outer Arcade app and your game runs as an embedded Air Jam host inside an iframe.
@@ -51,108 +45,112 @@ The important rule is:
51
45
 
52
46
  1. Arcade owns platform surface state
53
47
  2. your game owns gameplay state
54
- 3. the server owns room membership, focus routing, and runtime invariants
55
-
48
+ 3. the room owns membership, seats and the latest copy of every channel
56
49
 
57
50
  <ArcadeModeDiagram />
58
51
 
59
- ## Server-Authoritative Focus System
60
-
61
- The server maintains authoritative control over which host receives controller inputs through a **focus** state:
52
+ ## One Room, Served to Each Frame
62
53
 
54
+ The Arcade's shell is the room's only host. It never hands its connection to a
55
+ game: when it shows a game, it serves that game's frame a view of its room over
56
+ a `MessagePort`, and each game's controller page gets the same kind of view of
57
+ its phone's seat.
63
58
 
64
- <FocusSystemDiagram />
59
+ - A frame sees and publishes only its own channels: everything outside the
60
+ Arcade's own `arcade.*` channels, such as `airjam.room` and its stores
61
+ - A frame that reaches outside its scope is closed `unauthorised`; the room and
62
+ the shell carry on
63
+ - A new frame for the same surface replaces the old one, which closes as
64
+ `replaced`
65
+ - Which game is showing lives in the shell's `arcade.surface` channel; its
66
+ `epoch` identifies one showing of one game
65
67
 
66
- ### Why Server-Authoritative?
67
-
68
- 1. **Security** - Prevents rogue games from stealing input
69
- 2. **Reliability** - Single source of truth for focus state
70
- 3. **Consistency** - All controllers route to same host
71
-
72
- This focus system does not replace the normal Air Jam model. It only decides which host currently receives controller input. Your game still uses the normal input lane, replicated state lane, and signal lane.
68
+ Your game uses the normal input lane, replicated state lane and signal lane, as
69
+ it would standalone.
73
70
 
74
71
  ## Connection Flow
75
72
 
76
73
  ### 1. Arcade Launch
77
74
 
78
75
  ```
79
- [Platform] [Server] [Controller]
76
+ [Arcade shell] [Room] [Phone]
80
77
  │ │ │
81
- │ host:createRoom │ │
82
- │ { maxPlayers: 8 } │ │
78
+ │ hello (host key, seats) │ │
83
79
  │ ───────────────────────────▶│ │
84
80
  │ │ │
85
- │ ack: { ok, roomId: "ABCD" } │ │
81
+ │ welcome { code: "ABCD" } │ │
86
82
  │ ◀───────────────────────────│ │
87
83
  │ │ │
88
84
  │ Display QR Code │ │
89
85
  │ with room code │ Scan QR Code │
90
86
  │ │ ◀──────────────────────────│
91
87
  │ │ │
92
- │ │ controller:join │
88
+ │ │ hello (phone key) │
93
89
  │ │ ◀──────────────────────────│
94
90
  │ │ │
95
- │ server:controllerJoined │ server:welcome │
91
+ │ seats [p1] │ welcome { seat: p1 } │
96
92
  │ ◀───────────────────────────│ ──────────────────────────▶│
97
93
  ```
98
94
 
99
95
  ### 2. Game Launch
100
96
 
101
97
  ```
102
- [Arcade] [Server] [Your Game] [Controller]
103
- │ │ │ │
104
- │ system:launchGame │ │ │
105
- │ ───────────────────▶│ │ │
106
- │ │ │ │
107
- │ ack: { launchCapability } │ │ │
108
- │ ◀────────────────── │ │ │
109
- │ │ │ │
110
- │ Load iframe ───────────────────────────────▶│ │
111
- │ │ │ │
112
- │ │ host:joinAsChild │ │
113
- │ │◀───────────────────── │ │
114
- │ │ │ │
115
- │ │ Focus → GAME │ │
116
- │ │ │ │
117
- │ │ Redirect controller │ │
118
- │ │ ─────────────────────────────────────────▶│
119
- │ │ │ │
120
- │ │ │ Load game UI │
98
+ [Arcade shell] [Your Game] [Phone]
99
+ │ │ │
100
+ │ arcade.surface → { kind: "game" } │ │
101
+ │ ─────────────────────────────────────────────────────────▶│
102
+ │ │ │
103
+ │ Load iframe ─────────────────────────▶│ │
104
+ │ │ │
105
+ │ room bridge request (MessagePort) │ │
106
+ │ ◀─────────────────────────────────────│ │
107
+ │ │ │
108
+ │ serve a scoped view of the room ───▶│ │
109
+ │ │ │
110
+ │ │ Load game UI │
121
111
  ```
122
112
 
123
113
  ### 3. Active Gameplay
124
114
 
125
- With focus set to `GAME`, all controller input routes to your game:
115
+ While the game shows, every seat's input reaches your game:
126
116
 
127
- ```tsx
128
- // Your game receives input normally inside the mounted host runtime.
129
- const host = useAirJamHost();
117
+ ```ts
118
+ // Your game's simulation reads controls as usual inside the mounted host runtime.
119
+ step: (sim, { input, players }) => {
120
+ for (const player of players) play(sim, player.id, input(player.id));
121
+ },
122
+ ```
130
123
 
131
- useFrame(() => {
132
- host.players.forEach((player) => {
133
- const input = host.getInput(player.id);
134
- // Process gameplay...
135
- });
136
- });
124
+ #### When a phone drops
125
+
126
+ A phone that loses its connection keeps its seat while the room waits for it
127
+ to come back (two minutes by default). The game hears at once: the player stays
128
+ in `players` with `connected: false`, and becomes connected again when the
129
+ phone is back. The simulation step also gets `reconnectingPlayerIds`, so each
130
+ game decides whether to wait, let a bot cover or carry on:
131
+
132
+ ```ts
133
+ step: (sim, { players, reconnectingPlayerIds }) => {
134
+ if (reconnectingPlayerIds.length > 0) return; // hold until everyone is back
135
+ // ...
136
+ },
137
137
  ```
138
138
 
139
+ Outside the simulation, `getReconnectingPlayerIds(players)` from
140
+ `@air-jam/sdk/core` gives the same list from `useAirJamHost()` state.
141
+
139
142
  ### 4. Game Exit
140
143
 
141
144
  ```
142
- [Your Game] [Server] [Arcade] [Controller]
143
- │ │ │ │
144
- │ host:exit │ │ │
145
- │ ───────────────────▶│ │ │
146
- │ │ │ │
147
- │ │ Focus → SYSTEM │ │
148
- │ │ │ │
149
- │ │ server:gameEnded │ │
150
- │ │ ─────────────────────▶│ │
151
- │ │ │ │
152
- │ Destroy iframe ◀────────────── │ │
153
- │ │ │ │
154
- │ │ Restore arcade UI │ │
155
- │ │ ─────────────────────────────────────────▶│
145
+ [Phone] [Arcade shell] [Your Game]
146
+ │ │ │
147
+ │ exit (arcade.surface request) │
148
+ │ ───────────────────▶│ │
149
+ │ │ arcade.surface → { kind: "browser" }│
150
+ │ │ Close the game's view ─────────────▶│
151
+ │ │ Drop the game's channels │
152
+ │ │ Destroy iframe ────────────────────▶│
153
+ │ ◀── Show Arcade controller │
156
154
  ```
157
155
 
158
156
  ## Host Registration
@@ -170,23 +168,26 @@ const host = useAirJamHost();
170
168
  // host.joinUrl contains full URL for QR code
171
169
  ```
172
170
 
173
- Production bootstrap remains automatic here:
171
+ Opening the room stays automatic:
174
172
 
175
- 1. local dev: no auth ceremony
176
- 2. static deploy: SDK bootstraps with your `appId`
177
- 3. optional signed mode: SDK fetches a host grant from `hostGrantEndpoint` before bootstrap
173
+ 1. local dev: no credential
174
+ 2. hosted rooms: the SDK fetches a short-lived grant from `hostGrantEndpoint`
175
+ for each room it opens, and sends render-crash reports to the platform
176
+ unless the app passes its own `reportError`
177
+ 3. after a reload, the host returns to its room with its key and keeps its
178
+ players
178
179
 
179
180
  Game code does not change between those modes.
180
181
 
181
182
  ### Embedded Game Mode (Arcade)
182
183
 
183
184
  ```tsx
184
- // SDK auto-detects embedded runtime context from platform-injected params.
185
- // Game code should not parse those params directly.
185
+ // The SDK detects that it is embedded and asks the page around it for the room.
186
+ // Game code should not parse the embedding params directly.
186
187
  const host = useAirJamHost();
187
188
 
188
- // Embedded close/lifecycle handling is owned by the arcade platform adapter.
189
- // Game hosts should keep gameplay logic in host callbacks/input loops only.
189
+ // Closing and switching games belong to the Arcade.
190
+ // Game hosts keep gameplay logic in host callbacks and simulation steps.
190
191
  ```
191
192
 
192
193
  ## Player Management
@@ -197,10 +198,12 @@ const host = useAirJamHost();
197
198
  const HostShell = () => (
198
199
  <airjam.Host
199
200
  onPlayerJoin={(player) => {
200
- // player.id - Unique identifier
201
- // player.label - Display name ("Player 1", etc.)
201
+ // player.id - The seat the room gave ("p1", "p2", …)
202
+ // player.label - Display name ("Player 1", or the name they chose)
202
203
  // player.color - Assigned color ("#FF5733")
203
- // player.nickname - Optional custom name
204
+ // player.kind - "phone", "preview" or "agent"
205
+ // player.connected - false while the phone is away
206
+ // player.avatarId - Optional chosen avatar
204
207
  spawnPlayerEntity(player);
205
208
  announceJoin(player.label);
206
209
  }}
@@ -230,21 +233,19 @@ const player = host.players.find((p) => p.id === targetId);
230
233
 
231
234
  ## Controller Presentation State
232
235
 
233
- Use `sendState` for lightweight controller presentation metadata, not
234
- authoritative gameplay sync. Networked stores should own the real multiplayer
235
- state; this path is for controller-facing hints such as orientation, pause/play
236
- status, and short messages.
236
+ The host publishes a small presentation for the phones: whether the game is
237
+ playing or paused, and how to hold the phone. Networked stores own the real
238
+ multiplayer state; a short message for the players is a toast signal or a
239
+ store field.
240
+
241
+ A game whose `inputModalities` include `'joystick'` always gets a landscape controller; the SDK applies it, so do not set orientation; lay it out with `GamepadLayout` from `@air-jam/sdk/ui`: the stick under the left thumb, the actions under the right in a square the same size, and only short status between them.
237
242
 
238
243
  ```tsx
239
- // Update controller presentation
240
- host.sendState({
241
- runtimeState: "playing", // "playing" | "paused"
242
- orientation: "landscape", // "portrait" | "landscape"
243
- message: "Round 3 - Fight!",
244
- });
244
+ const host = useAirJamHost();
245
+ host.pauseRuntime();
246
+ host.resumeRuntime();
245
247
 
246
- // Controllers receive via onState callback
247
- // or controller.runtimeState / controller.controllerOrientation / controller.stateMessage
248
+ // Controllers read controller.runtimeState and controller.controllerOrientation
248
249
  ```
249
250
 
250
251
  ## Error Handling
@@ -252,16 +253,18 @@ host.sendState({
252
253
  ```tsx
253
254
  const host = useAirJamHost();
254
255
 
255
- // Check connection
256
- if (host.connectionStatus === "disconnected") {
256
+ // Reconnecting is automatic; show it while it happens
257
+ if (host.connectionStatus === "reconnecting") {
257
258
  showReconnectUI();
258
259
  }
259
260
 
261
+ // A busy hosted service queues new rooms
262
+ if (host.queuePosition !== null) {
263
+ showQueue(host.queuePosition);
264
+ }
265
+
260
266
  // Check for errors
261
267
  if (host.lastError) {
262
268
  showError(host.lastError);
263
269
  }
264
-
265
- // Force reconnection
266
- host.reconnect();
267
270
  ```
@@ -1,16 +1,11 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "packageVersion": "0.9.3",
3
+ "packageVersion": "1.0.0-beta.1",
4
4
  "requiredComponents": [
5
5
  "ArcadeModeDiagram",
6
6
  "Callout",
7
- "CoreServicesDiagram",
8
- "FocusSystemDiagram",
9
- "HooksComparisonTable",
10
7
  "HowItWorksDiagram",
11
- "InputFlowDiagram",
12
8
  "SdkArchitectureDiagram",
13
- "SocketEventsDiagram",
14
9
  "StandaloneHostDiagram",
15
10
  "SystemOverviewDiagram"
16
11
  ],
@@ -37,8 +32,8 @@
37
32
  "sinceVersion": "1.0.0",
38
33
  "lastVerifiedVersion": "1.0.0"
39
34
  },
40
- "size": 5143,
41
- "sha256": "3ad51cf2c4e7043171bb6b3b04e2bcbec3981bd31f80458346777bec09a11232"
35
+ "size": 5950,
36
+ "sha256": "0c50a583f44bc4881e24ff686406ed9404edecadfd2167c2620c42d3dc38716a"
42
37
  },
43
38
  {
44
39
  "source": "getting-started/quick-start/page.mdx",
@@ -62,8 +57,8 @@
62
57
  "sinceVersion": "1.0.0",
63
58
  "lastVerifiedVersion": "1.0.0"
64
59
  },
65
- "size": 12309,
66
- "sha256": "cd105344b5eeb8efd0dc34daebcf4aef00e86012fe1537b63dc054cfac1ba16b"
60
+ "size": 12630,
61
+ "sha256": "2b7aef326531556880e26815295fa6e9bc55519bb1519c3a16583af979c257be"
67
62
  },
68
63
  {
69
64
  "source": "getting-started/debugging/page.mdx",
@@ -87,8 +82,8 @@
87
82
  "sinceVersion": "1.0.0",
88
83
  "lastVerifiedVersion": "1.0.0"
89
84
  },
90
- "size": 4449,
91
- "sha256": "0ce3ad3acb36929f74256e7b964d39f382f223b163b37cae840ae51c30ce0c04"
85
+ "size": 4570,
86
+ "sha256": "dfd35a6c8698a650a116fc059c7376025a96a4f53791d4913a7b152bd51235f0"
92
87
  },
93
88
  {
94
89
  "source": "getting-started/dev-logs/page.mdx",
@@ -114,8 +109,8 @@
114
109
  "sinceVersion": "1.0.0",
115
110
  "lastVerifiedVersion": "1.0.0"
116
111
  },
117
- "size": 5464,
118
- "sha256": "3c3f11da614ffcd9e0d2eb3643bf9d0b1a5f705745f49cd921c9f0914b320ebd"
112
+ "size": 5462,
113
+ "sha256": "73ac4e368e6e9f621bbef5687d6c46eccddaefe65c27cf18ac2b2fe90e0c91c6"
119
114
  },
120
115
  {
121
116
  "source": "getting-started/game-ideas/page.mdx",
@@ -138,8 +133,8 @@
138
133
  "sinceVersion": "1.0.0",
139
134
  "lastVerifiedVersion": "1.0.0"
140
135
  },
141
- "size": 3050,
142
- "sha256": "22793b91a7aa6c9197aecdf0b1cb9c499029936f5b5666ce55364e5857f7d05d"
136
+ "size": 3056,
137
+ "sha256": "c1fec0dc440c492202fb41242a078cbd732b00b622776b66c0f084d13df3fff4"
143
138
  },
144
139
  {
145
140
  "source": "getting-started/migrating-legacy-games/page.mdx",
@@ -164,8 +159,8 @@
164
159
  "sinceVersion": "1.0.0",
165
160
  "lastVerifiedVersion": "1.0.0"
166
161
  },
167
- "size": 11680,
168
- "sha256": "94b8556602892d6566162426a5f599c0f784848b1f39b022acc4b53fde5a81be"
162
+ "size": 31449,
163
+ "sha256": "0f628c675d9e97c99fab83e7f6c18eb463ec7b119be3ebb10b96f49a7516cc9b"
169
164
  },
170
165
  {
171
166
  "source": "how-it-works/architecture/page.mdx",
@@ -189,8 +184,8 @@
189
184
  "sinceVersion": "1.0.0",
190
185
  "lastVerifiedVersion": "1.0.0"
191
186
  },
192
- "size": 7091,
193
- "sha256": "61611f99ab95aebdb10f2f7d748c8018e1e42013a3f7b28f9938f718fc53f718"
187
+ "size": 12175,
188
+ "sha256": "a01c6d66c6a0e94ceb1f4db8cb76ef31117158618c8e6d96ccda465d1310f409"
194
189
  },
195
190
  {
196
191
  "source": "how-it-works/host-system/page.mdx",
@@ -214,8 +209,8 @@
214
209
  "sinceVersion": "1.0.0",
215
210
  "lastVerifiedVersion": "1.0.0"
216
211
  },
217
- "size": 9602,
218
- "sha256": "f4388d05294808611d8ef2be93d0f6daf9bb7d4bfe057cc7d0c7c0aea7e62f7c"
212
+ "size": 9900,
213
+ "sha256": "e1614e20cae976801f62b4b3bb0d32cde7bbeaadf2c85d37003119ba24247399"
219
214
  },
220
215
  {
221
216
  "source": "sdk/hooks/page.mdx",
@@ -240,8 +235,8 @@
240
235
  "sinceVersion": "1.0.0",
241
236
  "lastVerifiedVersion": "1.0.0"
242
237
  },
243
- "size": 15971,
244
- "sha256": "2b6822d92b18cb9c12c3abdcbbed8f53c5015e9ca1b98e37bf0c7737f270e501"
238
+ "size": 16071,
239
+ "sha256": "c51772e56a8bb7c0de86abfd168f9ac8999ebfe8135845e14a5eeedd848d6620"
245
240
  },
246
241
  {
247
242
  "source": "sdk/ui-components/page.mdx",
@@ -268,23 +263,23 @@
268
263
  "sinceVersion": "1.0.0",
269
264
  "lastVerifiedVersion": "1.0.0"
270
265
  },
271
- "size": 5322,
272
- "sha256": "b3ce67079b65fc9699ae74765eab3126a0038d59e75691e0de3910b86ff36308"
266
+ "size": 7067,
267
+ "sha256": "5b37d507cedb61ca4dbeaa058e908efb3423a1cce9a69e4d9252c27bb167ab3a"
273
268
  },
274
269
  {
275
270
  "source": "sdk/input-system/page.mdx",
276
271
  "page": {
277
272
  "title": "Input System",
278
273
  "href": "/docs/sdk/input-system",
279
- "description": "Input behavior modes, vectors, and button event handling.",
274
+ "description": "Declared buttons, axes and sticks, phone controls, and input logs for replays.",
280
275
  "section": "SDK",
281
276
  "icon": "zap",
282
277
  "keywords": [
283
278
  "input",
284
- "behavior",
285
- "vector",
279
+ "controls",
286
280
  "button",
287
- "validation"
281
+ "stick",
282
+ "replay"
288
283
  ],
289
284
  "docType": "contract",
290
285
  "order": 2,
@@ -293,8 +288,8 @@
293
288
  "sinceVersion": "1.0.0",
294
289
  "lastVerifiedVersion": "1.0.0"
295
290
  },
296
- "size": 5961,
297
- "sha256": "97d58b2fb4b7b3c1ebbd8e495cfa5e05b63148b75acfcd22b894c883a3ea9d55"
291
+ "size": 10346,
292
+ "sha256": "4d9e088cc3cc8f0d847436d03329336e1625c8f968d1e4b7f908661b889e44bd"
298
293
  },
299
294
  {
300
295
  "source": "sdk/networked-state/page.mdx",
@@ -318,8 +313,8 @@
318
313
  "sinceVersion": "1.0.0",
319
314
  "lastVerifiedVersion": "1.0.0"
320
315
  },
321
- "size": 6895,
322
- "sha256": "c9e771f65107115b8e15302eeaf182d7bbcfdced9c228ba379e22fb5c2f2330e"
316
+ "size": 10742,
317
+ "sha256": "c9246ca1ebdf1ec1e55809cbc685813cc5814ee25f7adb3d739eb865ec4f11ef"
323
318
  },
324
319
  {
325
320
  "source": "for-agents/page.mdx",
@@ -343,8 +338,8 @@
343
338
  "sinceVersion": "1.0.0",
344
339
  "lastVerifiedVersion": "1.0.0"
345
340
  },
346
- "size": 3830,
347
- "sha256": "23e26c8a291ff19b2961d301a8453edadcccfdfc8b5670f60fb21b26dbd5a096"
341
+ "size": 5262,
342
+ "sha256": "0de36a14b1048ed51eb0f85315f3b808113d0468adc65a73e2fc3eb949f60b6b"
348
343
  },
349
344
  {
350
345
  "source": "for-agents/project-structure/page.mdx",
@@ -370,8 +365,8 @@
370
365
  "sinceVersion": "1.0.0",
371
366
  "lastVerifiedVersion": "1.0.0"
372
367
  },
373
- "size": 4257,
374
- "sha256": "d211db552b34730d5aaf142e7ce7cf1b2bc2f05e79fdd1c7df4528a6bab00e20"
368
+ "size": 4255,
369
+ "sha256": "b4327a4716fbe7363b52e5c2816f1048236bb4dbd0053d60c99c5e309ca48ced"
375
370
  },
376
371
  {
377
372
  "source": "for-agents/controller-ui/page.mdx",
@@ -396,8 +391,8 @@
396
391
  "sinceVersion": "1.0.0",
397
392
  "lastVerifiedVersion": "1.0.0"
398
393
  },
399
- "size": 1406,
400
- "sha256": "baf06a655312c3c80c3a1f8f7d432e4f06841e4864d8e29f154114f1cd972647"
394
+ "size": 4548,
395
+ "sha256": "bc4c39fe9dd3b0256c1d8fb785affb70024d6338d358c986b362e611f2488bbf"
401
396
  },
402
397
  {
403
398
  "source": "for-agents/state-and-rendering/page.mdx",
@@ -423,8 +418,83 @@
423
418
  "sinceVersion": "1.0.0",
424
419
  "lastVerifiedVersion": "1.0.0"
425
420
  },
426
- "size": 2992,
427
- "sha256": "60ddc686890616116cebc639ca6d6d33ab7fc05667c294d648fb92c31b2edf21"
421
+ "size": 2990,
422
+ "sha256": "5157e30df164ec5bc9c0d23dc6877711be7117075f844ce7643ae853cb0ca73b"
423
+ },
424
+ {
425
+ "source": "for-agents/supported-agents/page.mdx",
426
+ "page": {
427
+ "title": "Supported Agents",
428
+ "href": "/docs/for-agents/supported-agents",
429
+ "description": "Which coding agents are tested with Air Jam's CLI and MCP.",
430
+ "section": "Agent Docs",
431
+ "icon": "bot",
432
+ "keywords": [
433
+ "agents",
434
+ "clients",
435
+ "codex",
436
+ "claude",
437
+ "mcp",
438
+ "supported"
439
+ ],
440
+ "docType": "agent",
441
+ "order": 4,
442
+ "stability": "evolving",
443
+ "audience": "agent",
444
+ "sinceVersion": "1.0.0",
445
+ "lastVerifiedVersion": "1.0.0"
446
+ },
447
+ "size": 1313,
448
+ "sha256": "c8a48279e9ce4853571b7ea6f2129baf700abc948e98764b71385b58ac3b9d83"
449
+ },
450
+ {
451
+ "source": "sdk/settings/page.mdx",
452
+ "page": {
453
+ "title": "Game Settings",
454
+ "href": "/docs/sdk/settings",
455
+ "description": "Declare tunable values, update a live host, and replay every change.",
456
+ "section": "SDK",
457
+ "icon": "zap",
458
+ "keywords": [
459
+ "settings",
460
+ "tuning",
461
+ "revision",
462
+ "replay"
463
+ ],
464
+ "docType": "contract",
465
+ "order": 4,
466
+ "stability": "evolving",
467
+ "audience": "user",
468
+ "sinceVersion": "1.0.0",
469
+ "lastVerifiedVersion": "1.0.0"
470
+ },
471
+ "size": 6232,
472
+ "sha256": "fc775f90ade332234211a9009b00c543b02b0b63a60414000588ae73e14a3a8f"
473
+ },
474
+ {
475
+ "source": "sdk/assets-and-theme/page.mdx",
476
+ "page": {
477
+ "title": "Game Assets and Theme",
478
+ "href": "/docs/sdk/assets-and-theme",
479
+ "description": "Declare loaded files, surface-specific sounds, colours and fonts in one game declaration.",
480
+ "section": "SDK",
481
+ "icon": "zap",
482
+ "keywords": [
483
+ "assets",
484
+ "sounds",
485
+ "images",
486
+ "theme",
487
+ "fonts"
488
+ ],
489
+ "docType": "contract",
490
+ "order": 5,
491
+ "stability": "evolving",
492
+ "audience": "user",
493
+ "sinceVersion": "1.0.0",
494
+ "lastVerifiedVersion": "1.0.0"
495
+ },
496
+ "size": 7451,
497
+ "sha256": "27b15521bc343bce3b0be3796d98d735963d95d01f1717ca5127a4327968093c"
428
498
  }
429
499
  ]
430
500
  }