@air-jam/cli 0.0.0-stage → 0.9.3
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/LICENSE +21 -0
- package/README.md +145 -2
- package/bin/airjam.mjs +66 -0
- package/dist/ai-pack.d.ts +44 -0
- package/dist/ai-pack.js +15 -0
- package/dist/ai-pack.js.map +1 -0
- package/dist/chunk-A4V2N4LX.js +938 -0
- package/dist/chunk-A4V2N4LX.js.map +1 -0
- package/dist/chunk-J5MAU4QZ.js +102 -0
- package/dist/chunk-J5MAU4QZ.js.map +1 -0
- package/dist/chunk-N7AI7HZK.js +529 -0
- package/dist/chunk-N7AI7HZK.js.map +1 -0
- package/dist/development.d.ts +98 -0
- package/dist/development.js +33 -0
- package/dist/development.js.map +1 -0
- package/dist/documentation.d.ts +27 -0
- package/dist/documentation.js +7 -0
- package/dist/documentation.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2184 -0
- package/dist/index.js.map +1 -0
- package/dist/scaffold.d.ts +6 -0
- package/dist/scaffold.js +20 -0
- package/dist/scaffold.js.map +1 -0
- package/package.json +78 -3
- package/runtime/local-network.d.mts +8 -0
- package/runtime/local-network.mjs +9 -0
- package/runtime/vite-config.d.mts +42 -0
- package/runtime/vite-config.mjs +130 -0
- package/runtime/vite-https.d.mts +11 -0
- package/runtime/vite-https.mjs +41 -0
- package/template-assets/bootstrap/.claude/launch.json +12 -0
- package/template-assets/bootstrap/AGENTS.md +248 -0
- package/template-assets/bootstrap/CLAUDE.md +63 -0
- package/template-assets/bootstrap/_gitignore +6 -0
- package/template-assets/bootstrap/skills/airjam-docs-workflow/SKILL.md +49 -0
- package/template-assets/bootstrap/skills/airjam-mcp/SKILL.md +56 -0
- package/template-assets/bootstrap/skills/canvas-2d-gameplay/SKILL.md +47 -0
- package/template-assets/bootstrap/skills/controller-ui/SKILL.md +69 -0
- package/template-assets/bootstrap/skills/debug-and-test/SKILL.md +72 -0
- package/template-assets/bootstrap/skills/game-architecture/SKILL.md +58 -0
- package/template-assets/bootstrap/skills/game-state-and-rendering/SKILL.md +44 -0
- package/template-assets/bootstrap/skills/host-surface/SKILL.md +52 -0
- package/template-assets/bootstrap/skills/index.md +36 -0
- package/template-assets/bootstrap/skills/prefab-authoring/SKILL.md +48 -0
- package/template-assets/bootstrap/skills/r3f-3d-scene/SKILL.md +51 -0
- package/template-assets/documentation/for-agents/controller-ui/page.mdx +60 -0
- package/template-assets/documentation/for-agents/page.mdx +98 -0
- package/template-assets/documentation/for-agents/project-structure/page.mdx +172 -0
- package/template-assets/documentation/for-agents/state-and-rendering/page.mdx +79 -0
- package/template-assets/documentation/getting-started/debugging/page.mdx +165 -0
- package/template-assets/documentation/getting-started/dev-logs/page.mdx +171 -0
- package/template-assets/documentation/getting-started/game-ideas/page.mdx +116 -0
- package/template-assets/documentation/getting-started/introduction/page.mdx +183 -0
- package/template-assets/documentation/getting-started/migrating-legacy-games/page.mdx +427 -0
- package/template-assets/documentation/getting-started/quick-start/page.mdx +333 -0
- package/template-assets/documentation/how-it-works/architecture/page.mdx +189 -0
- package/template-assets/documentation/how-it-works/host-system/page.mdx +267 -0
- package/template-assets/documentation/manifest.json +430 -0
- package/template-assets/documentation/sdk/hooks/page.mdx +500 -0
- package/template-assets/documentation/sdk/input-system/page.mdx +270 -0
- package/template-assets/documentation/sdk/networked-state/page.mdx +213 -0
- package/template-assets/documentation/sdk/ui-components/page.mdx +227 -0
- package/template-assets/managed/.airjam/ai-pack.json +191 -0
- package/template-assets/managed/docs/airjam/agent-gold-path.md +67 -0
- package/template-assets/managed/docs/airjam/agent-mcp.md +135 -0
- package/template-assets/managed/docs/airjam/canvas-2d-gameplay.md +82 -0
- package/template-assets/managed/docs/airjam/composition-shell-contract.md +87 -0
- package/template-assets/managed/docs/airjam/debug-and-testing.md +86 -0
- package/template-assets/managed/docs/airjam/development-loop.md +51 -0
- package/template-assets/managed/docs/airjam/docs-index.md +58 -0
- package/template-assets/managed/docs/airjam/generated/architecture.md +178 -0
- package/template-assets/managed/docs/airjam/generated/controller-ui.md +61 -0
- package/template-assets/managed/docs/airjam/generated/debugging-and-logs.md +164 -0
- package/template-assets/managed/docs/airjam/generated/for-agents.md +99 -0
- package/template-assets/managed/docs/airjam/generated/game-ideas.md +107 -0
- package/template-assets/managed/docs/airjam/generated/host-system.md +251 -0
- package/template-assets/managed/docs/airjam/generated/input-system.md +260 -0
- package/template-assets/managed/docs/airjam/generated/introduction.md +175 -0
- package/template-assets/managed/docs/airjam/generated/migrating-legacy-games.md +426 -0
- package/template-assets/managed/docs/airjam/generated/networked-state.md +214 -0
- package/template-assets/managed/docs/airjam/generated/project-structure.md +171 -0
- package/template-assets/managed/docs/airjam/generated/quick-start.md +334 -0
- package/template-assets/managed/docs/airjam/generated/sdk-hooks.md +490 -0
- package/template-assets/managed/docs/airjam/generated/state-and-rendering.md +80 -0
- package/template-assets/managed/docs/airjam/generated/ui-components.md +222 -0
- package/template-assets/managed/docs/airjam/generated/unified-dev-logs.md +170 -0
- package/template-assets/managed/docs/airjam/iconography.md +55 -0
- package/template-assets/managed/docs/airjam/prefab-authoring.md +112 -0
- package/template-assets/managed/docs/airjam/preview-controllers.md +126 -0
- package/template-assets/managed/docs/airjam/r3f-3d-scene.md +97 -0
- package/template-assets/managed/docs/airjam/state-lanes-cookbook.md +106 -0
- package/template-assets/managed/docs/airjam/visual-system.md +103 -0
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
# Host System
|
|
4
|
+
|
|
5
|
+
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.
|
|
6
|
+
|
|
7
|
+
## Host Modes
|
|
8
|
+
|
|
9
|
+
### Standalone Host
|
|
10
|
+
|
|
11
|
+
The simplest mode—your game connects directly to the Air Jam server.
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
<StandaloneHostDiagram />
|
|
15
|
+
|
|
16
|
+
**Usage:**
|
|
17
|
+
|
|
18
|
+
```tsx filename="src/components/HostView.tsx"
|
|
19
|
+
import { useAirJamHost } from "@air-jam/sdk";
|
|
20
|
+
import { airjam } from "../airjam.config";
|
|
21
|
+
|
|
22
|
+
const HostShell = () => (
|
|
23
|
+
<airjam.Host
|
|
24
|
+
onPlayerJoin={(player) => spawnPlayer(player)}
|
|
25
|
+
onPlayerLeave={(id) => removePlayer(id)}
|
|
26
|
+
>
|
|
27
|
+
<HostView />
|
|
28
|
+
</airjam.Host>
|
|
29
|
+
);
|
|
30
|
+
|
|
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
|
+
};
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Arcade Mode (Outer App + Embedded Game)
|
|
47
|
+
|
|
48
|
+
In arcade mode, the platform runs the outer Arcade app and your game runs as an embedded Air Jam host inside an iframe.
|
|
49
|
+
|
|
50
|
+
The important rule is:
|
|
51
|
+
|
|
52
|
+
1. Arcade owns platform surface state
|
|
53
|
+
2. your game owns gameplay state
|
|
54
|
+
3. the server owns room membership, focus routing, and runtime invariants
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
<ArcadeModeDiagram />
|
|
58
|
+
|
|
59
|
+
## Server-Authoritative Focus System
|
|
60
|
+
|
|
61
|
+
The server maintains authoritative control over which host receives controller inputs through a **focus** state:
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
<FocusSystemDiagram />
|
|
65
|
+
|
|
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.
|
|
73
|
+
|
|
74
|
+
## Connection Flow
|
|
75
|
+
|
|
76
|
+
### 1. Arcade Launch
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
[Platform] [Server] [Controller]
|
|
80
|
+
│ │ │
|
|
81
|
+
│ host:createRoom │ │
|
|
82
|
+
│ { maxPlayers: 8 } │ │
|
|
83
|
+
│ ───────────────────────────▶│ │
|
|
84
|
+
│ │ │
|
|
85
|
+
│ ack: { ok, roomId: "ABCD" } │ │
|
|
86
|
+
│ ◀───────────────────────────│ │
|
|
87
|
+
│ │ │
|
|
88
|
+
│ Display QR Code │ │
|
|
89
|
+
│ with room code │ Scan QR Code │
|
|
90
|
+
│ │ ◀──────────────────────────│
|
|
91
|
+
│ │ │
|
|
92
|
+
│ │ controller:join │
|
|
93
|
+
│ │ ◀──────────────────────────│
|
|
94
|
+
│ │ │
|
|
95
|
+
│ server:controllerJoined │ server:welcome │
|
|
96
|
+
│ ◀───────────────────────────│ ──────────────────────────▶│
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### 2. Game Launch
|
|
100
|
+
|
|
101
|
+
```
|
|
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 │
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### 3. Active Gameplay
|
|
124
|
+
|
|
125
|
+
With focus set to `GAME`, all controller input routes to your game:
|
|
126
|
+
|
|
127
|
+
```tsx
|
|
128
|
+
// Your game receives input normally inside the mounted host runtime.
|
|
129
|
+
const host = useAirJamHost();
|
|
130
|
+
|
|
131
|
+
useFrame(() => {
|
|
132
|
+
host.players.forEach((player) => {
|
|
133
|
+
const input = host.getInput(player.id);
|
|
134
|
+
// Process gameplay...
|
|
135
|
+
});
|
|
136
|
+
});
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### 4. Game Exit
|
|
140
|
+
|
|
141
|
+
```
|
|
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
|
+
│ │ ─────────────────────────────────────────▶│
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
## Host Registration
|
|
159
|
+
|
|
160
|
+
### Standalone Mode
|
|
161
|
+
|
|
162
|
+
```tsx
|
|
163
|
+
<airjam.Host roomId="GAME">
|
|
164
|
+
<HostView />
|
|
165
|
+
</airjam.Host>;
|
|
166
|
+
|
|
167
|
+
// Inside HostView:
|
|
168
|
+
const host = useAirJamHost();
|
|
169
|
+
// host.roomId contains the room code
|
|
170
|
+
// host.joinUrl contains full URL for QR code
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
Production bootstrap remains automatic here:
|
|
174
|
+
|
|
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
|
|
178
|
+
|
|
179
|
+
Game code does not change between those modes.
|
|
180
|
+
|
|
181
|
+
### Embedded Game Mode (Arcade)
|
|
182
|
+
|
|
183
|
+
```tsx
|
|
184
|
+
// SDK auto-detects embedded runtime context from platform-injected params.
|
|
185
|
+
// Game code should not parse those params directly.
|
|
186
|
+
const host = useAirJamHost();
|
|
187
|
+
|
|
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.
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
## Player Management
|
|
193
|
+
|
|
194
|
+
### Player Lifecycle
|
|
195
|
+
|
|
196
|
+
```tsx
|
|
197
|
+
const HostShell = () => (
|
|
198
|
+
<airjam.Host
|
|
199
|
+
onPlayerJoin={(player) => {
|
|
200
|
+
// player.id - Unique identifier
|
|
201
|
+
// player.label - Display name ("Player 1", etc.)
|
|
202
|
+
// player.color - Assigned color ("#FF5733")
|
|
203
|
+
// player.nickname - Optional custom name
|
|
204
|
+
spawnPlayerEntity(player);
|
|
205
|
+
announceJoin(player.label);
|
|
206
|
+
}}
|
|
207
|
+
onPlayerLeave={(controllerId) => {
|
|
208
|
+
removePlayerEntity(controllerId);
|
|
209
|
+
}}
|
|
210
|
+
>
|
|
211
|
+
<HostView />
|
|
212
|
+
</airjam.Host>
|
|
213
|
+
);
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
### Accessing Players
|
|
217
|
+
|
|
218
|
+
```tsx
|
|
219
|
+
// Current player list
|
|
220
|
+
host.players.forEach((player) => {
|
|
221
|
+
console.log(player.label, player.color);
|
|
222
|
+
});
|
|
223
|
+
|
|
224
|
+
// Player count
|
|
225
|
+
const playerCount = host.players.length;
|
|
226
|
+
|
|
227
|
+
// Find specific player
|
|
228
|
+
const player = host.players.find((p) => p.id === targetId);
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
## Controller Presentation State
|
|
232
|
+
|
|
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.
|
|
237
|
+
|
|
238
|
+
```tsx
|
|
239
|
+
// Update controller presentation
|
|
240
|
+
host.sendState({
|
|
241
|
+
runtimeState: "playing", // "playing" | "paused"
|
|
242
|
+
orientation: "landscape", // "portrait" | "landscape"
|
|
243
|
+
message: "Round 3 - Fight!",
|
|
244
|
+
});
|
|
245
|
+
|
|
246
|
+
// Controllers receive via onState callback
|
|
247
|
+
// or controller.runtimeState / controller.controllerOrientation / controller.stateMessage
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
## Error Handling
|
|
251
|
+
|
|
252
|
+
```tsx
|
|
253
|
+
const host = useAirJamHost();
|
|
254
|
+
|
|
255
|
+
// Check connection
|
|
256
|
+
if (host.connectionStatus === "disconnected") {
|
|
257
|
+
showReconnectUI();
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
// Check for errors
|
|
261
|
+
if (host.lastError) {
|
|
262
|
+
showError(host.lastError);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
// Force reconnection
|
|
266
|
+
host.reconnect();
|
|
267
|
+
```
|
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"packageVersion": "0.9.3",
|
|
4
|
+
"requiredComponents": [
|
|
5
|
+
"ArcadeModeDiagram",
|
|
6
|
+
"Callout",
|
|
7
|
+
"CoreServicesDiagram",
|
|
8
|
+
"FocusSystemDiagram",
|
|
9
|
+
"HooksComparisonTable",
|
|
10
|
+
"HowItWorksDiagram",
|
|
11
|
+
"InputFlowDiagram",
|
|
12
|
+
"SdkArchitectureDiagram",
|
|
13
|
+
"SocketEventsDiagram",
|
|
14
|
+
"StandaloneHostDiagram",
|
|
15
|
+
"SystemOverviewDiagram"
|
|
16
|
+
],
|
|
17
|
+
"documents": [
|
|
18
|
+
{
|
|
19
|
+
"source": "getting-started/introduction/page.mdx",
|
|
20
|
+
"page": {
|
|
21
|
+
"title": "Introduction",
|
|
22
|
+
"href": "/docs/getting-started/introduction",
|
|
23
|
+
"description": "Overview of Air Jam and core concepts.",
|
|
24
|
+
"section": "Getting Started",
|
|
25
|
+
"icon": "info",
|
|
26
|
+
"keywords": [
|
|
27
|
+
"getting started",
|
|
28
|
+
"overview",
|
|
29
|
+
"multiplayer",
|
|
30
|
+
"qr code",
|
|
31
|
+
"controller"
|
|
32
|
+
],
|
|
33
|
+
"docType": "concept",
|
|
34
|
+
"order": 0,
|
|
35
|
+
"stability": "evolving",
|
|
36
|
+
"audience": "user",
|
|
37
|
+
"sinceVersion": "1.0.0",
|
|
38
|
+
"lastVerifiedVersion": "1.0.0"
|
|
39
|
+
},
|
|
40
|
+
"size": 5143,
|
|
41
|
+
"sha256": "3ad51cf2c4e7043171bb6b3b04e2bcbec3981bd31f80458346777bec09a11232"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"source": "getting-started/quick-start/page.mdx",
|
|
45
|
+
"page": {
|
|
46
|
+
"title": "Quick Start",
|
|
47
|
+
"href": "/docs/getting-started/quick-start",
|
|
48
|
+
"description": "Set up and launch your first host.",
|
|
49
|
+
"section": "Getting Started",
|
|
50
|
+
"icon": "rocket",
|
|
51
|
+
"keywords": [
|
|
52
|
+
"install",
|
|
53
|
+
"setup",
|
|
54
|
+
"host",
|
|
55
|
+
"provider",
|
|
56
|
+
"first game"
|
|
57
|
+
],
|
|
58
|
+
"docType": "guide",
|
|
59
|
+
"order": 1,
|
|
60
|
+
"stability": "evolving",
|
|
61
|
+
"audience": "user",
|
|
62
|
+
"sinceVersion": "1.0.0",
|
|
63
|
+
"lastVerifiedVersion": "1.0.0"
|
|
64
|
+
},
|
|
65
|
+
"size": 12309,
|
|
66
|
+
"sha256": "cd105344b5eeb8efd0dc34daebcf4aef00e86012fe1537b63dc054cfac1ba16b"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"source": "getting-started/debugging/page.mdx",
|
|
70
|
+
"page": {
|
|
71
|
+
"title": "Debugging and Logs",
|
|
72
|
+
"href": "/docs/getting-started/debugging",
|
|
73
|
+
"description": "Where to look when local Air Jam development is not behaving as expected.",
|
|
74
|
+
"section": "Getting Started",
|
|
75
|
+
"icon": "zap",
|
|
76
|
+
"keywords": [
|
|
77
|
+
"debugging",
|
|
78
|
+
"logs",
|
|
79
|
+
"diagnostics",
|
|
80
|
+
"troubleshooting",
|
|
81
|
+
"dev"
|
|
82
|
+
],
|
|
83
|
+
"docType": "guide",
|
|
84
|
+
"order": 2,
|
|
85
|
+
"stability": "evolving",
|
|
86
|
+
"audience": "user",
|
|
87
|
+
"sinceVersion": "1.0.0",
|
|
88
|
+
"lastVerifiedVersion": "1.0.0"
|
|
89
|
+
},
|
|
90
|
+
"size": 4449,
|
|
91
|
+
"sha256": "0ce3ad3acb36929f74256e7b964d39f382f223b163b37cae840ae51c30ce0c04"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"source": "getting-started/dev-logs/page.mdx",
|
|
95
|
+
"page": {
|
|
96
|
+
"title": "Unified Dev Logs",
|
|
97
|
+
"href": "/docs/getting-started/dev-logs",
|
|
98
|
+
"description": "How to use Air Jam's canonical local observability stream for server, host, controller, and runtime debugging.",
|
|
99
|
+
"section": "Getting Started",
|
|
100
|
+
"icon": "network",
|
|
101
|
+
"keywords": [
|
|
102
|
+
"dev logs",
|
|
103
|
+
"observability",
|
|
104
|
+
"traceId",
|
|
105
|
+
"debugging",
|
|
106
|
+
"controller",
|
|
107
|
+
"host",
|
|
108
|
+
"server"
|
|
109
|
+
],
|
|
110
|
+
"docType": "guide",
|
|
111
|
+
"order": 3,
|
|
112
|
+
"stability": "evolving",
|
|
113
|
+
"audience": "user",
|
|
114
|
+
"sinceVersion": "1.0.0",
|
|
115
|
+
"lastVerifiedVersion": "1.0.0"
|
|
116
|
+
},
|
|
117
|
+
"size": 5464,
|
|
118
|
+
"sha256": "3c3f11da614ffcd9e0d2eb3643bf9d0b1a5f705745f49cd921c9f0914b320ebd"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"source": "getting-started/game-ideas/page.mdx",
|
|
122
|
+
"page": {
|
|
123
|
+
"title": "Game Ideas",
|
|
124
|
+
"href": "/docs/getting-started/game-ideas",
|
|
125
|
+
"description": "Inspiration and patterns for multiplayer game concepts.",
|
|
126
|
+
"section": "Getting Started",
|
|
127
|
+
"icon": "lightbulb",
|
|
128
|
+
"keywords": [
|
|
129
|
+
"ideas",
|
|
130
|
+
"examples",
|
|
131
|
+
"patterns",
|
|
132
|
+
"game design"
|
|
133
|
+
],
|
|
134
|
+
"docType": "guide",
|
|
135
|
+
"order": 4,
|
|
136
|
+
"stability": "evolving",
|
|
137
|
+
"audience": "user",
|
|
138
|
+
"sinceVersion": "1.0.0",
|
|
139
|
+
"lastVerifiedVersion": "1.0.0"
|
|
140
|
+
},
|
|
141
|
+
"size": 3050,
|
|
142
|
+
"sha256": "22793b91a7aa6c9197aecdf0b1cb9c499029936f5b5666ce55364e5857f7d05d"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"source": "getting-started/migrating-legacy-games/page.mdx",
|
|
146
|
+
"page": {
|
|
147
|
+
"title": "Migrating Legacy Games",
|
|
148
|
+
"href": "/docs/getting-started/migrating-legacy-games",
|
|
149
|
+
"description": "How to move older Air Jam games onto the current v1 app shape cleanly.",
|
|
150
|
+
"section": "Getting Started",
|
|
151
|
+
"icon": "layers",
|
|
152
|
+
"keywords": [
|
|
153
|
+
"migration",
|
|
154
|
+
"upgrade",
|
|
155
|
+
"legacy",
|
|
156
|
+
"AirJamProvider",
|
|
157
|
+
"createAirJamApp",
|
|
158
|
+
"createAirJamStore"
|
|
159
|
+
],
|
|
160
|
+
"docType": "migration",
|
|
161
|
+
"order": 5,
|
|
162
|
+
"stability": "evolving",
|
|
163
|
+
"audience": "user",
|
|
164
|
+
"sinceVersion": "1.0.0",
|
|
165
|
+
"lastVerifiedVersion": "1.0.0"
|
|
166
|
+
},
|
|
167
|
+
"size": 11680,
|
|
168
|
+
"sha256": "94b8556602892d6566162426a5f599c0f784848b1f39b022acc4b53fde5a81be"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"source": "how-it-works/architecture/page.mdx",
|
|
172
|
+
"page": {
|
|
173
|
+
"title": "Architecture",
|
|
174
|
+
"href": "/docs/how-it-works/architecture",
|
|
175
|
+
"description": "System architecture and service responsibilities.",
|
|
176
|
+
"section": "How it Works",
|
|
177
|
+
"icon": "layers",
|
|
178
|
+
"keywords": [
|
|
179
|
+
"architecture",
|
|
180
|
+
"system",
|
|
181
|
+
"server",
|
|
182
|
+
"sdk",
|
|
183
|
+
"platform"
|
|
184
|
+
],
|
|
185
|
+
"docType": "concept",
|
|
186
|
+
"order": 0,
|
|
187
|
+
"stability": "evolving",
|
|
188
|
+
"audience": "user",
|
|
189
|
+
"sinceVersion": "1.0.0",
|
|
190
|
+
"lastVerifiedVersion": "1.0.0"
|
|
191
|
+
},
|
|
192
|
+
"size": 7091,
|
|
193
|
+
"sha256": "61611f99ab95aebdb10f2f7d748c8018e1e42013a3f7b28f9938f718fc53f718"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"source": "how-it-works/host-system/page.mdx",
|
|
197
|
+
"page": {
|
|
198
|
+
"title": "Host System",
|
|
199
|
+
"href": "/docs/how-it-works/host-system",
|
|
200
|
+
"description": "Lifecycle of host sessions and player connections.",
|
|
201
|
+
"section": "How it Works",
|
|
202
|
+
"icon": "cpu",
|
|
203
|
+
"keywords": [
|
|
204
|
+
"host",
|
|
205
|
+
"room",
|
|
206
|
+
"players",
|
|
207
|
+
"connection",
|
|
208
|
+
"session"
|
|
209
|
+
],
|
|
210
|
+
"docType": "contract",
|
|
211
|
+
"order": 1,
|
|
212
|
+
"stability": "evolving",
|
|
213
|
+
"audience": "user",
|
|
214
|
+
"sinceVersion": "1.0.0",
|
|
215
|
+
"lastVerifiedVersion": "1.0.0"
|
|
216
|
+
},
|
|
217
|
+
"size": 9602,
|
|
218
|
+
"sha256": "f4388d05294808611d8ef2be93d0f6daf9bb7d4bfe057cc7d0c7c0aea7e62f7c"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"source": "sdk/hooks/page.mdx",
|
|
222
|
+
"page": {
|
|
223
|
+
"title": "Hooks",
|
|
224
|
+
"href": "/docs/sdk/hooks",
|
|
225
|
+
"description": "React hooks API reference for host and controller state.",
|
|
226
|
+
"section": "SDK",
|
|
227
|
+
"icon": "code",
|
|
228
|
+
"keywords": [
|
|
229
|
+
"hooks",
|
|
230
|
+
"api",
|
|
231
|
+
"reference",
|
|
232
|
+
"react",
|
|
233
|
+
"host",
|
|
234
|
+
"controller"
|
|
235
|
+
],
|
|
236
|
+
"docType": "reference",
|
|
237
|
+
"order": 0,
|
|
238
|
+
"stability": "evolving",
|
|
239
|
+
"audience": "user",
|
|
240
|
+
"sinceVersion": "1.0.0",
|
|
241
|
+
"lastVerifiedVersion": "1.0.0"
|
|
242
|
+
},
|
|
243
|
+
"size": 15971,
|
|
244
|
+
"sha256": "2b6822d92b18cb9c12c3abdcbbed8f53c5015e9ca1b98e37bf0c7737f270e501"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"source": "sdk/ui-components/page.mdx",
|
|
248
|
+
"page": {
|
|
249
|
+
"title": "UI Components",
|
|
250
|
+
"href": "/docs/sdk/ui-components",
|
|
251
|
+
"description": "Canonical reusable UI components from @air-jam/sdk/ui with usage examples.",
|
|
252
|
+
"section": "SDK",
|
|
253
|
+
"icon": "code",
|
|
254
|
+
"keywords": [
|
|
255
|
+
"ui",
|
|
256
|
+
"components",
|
|
257
|
+
"qr code",
|
|
258
|
+
"avatar",
|
|
259
|
+
"orientation",
|
|
260
|
+
"volume",
|
|
261
|
+
"button",
|
|
262
|
+
"slider"
|
|
263
|
+
],
|
|
264
|
+
"docType": "reference",
|
|
265
|
+
"order": 1,
|
|
266
|
+
"stability": "evolving",
|
|
267
|
+
"audience": "user",
|
|
268
|
+
"sinceVersion": "1.0.0",
|
|
269
|
+
"lastVerifiedVersion": "1.0.0"
|
|
270
|
+
},
|
|
271
|
+
"size": 5322,
|
|
272
|
+
"sha256": "b3ce67079b65fc9699ae74765eab3126a0038d59e75691e0de3910b86ff36308"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"source": "sdk/input-system/page.mdx",
|
|
276
|
+
"page": {
|
|
277
|
+
"title": "Input System",
|
|
278
|
+
"href": "/docs/sdk/input-system",
|
|
279
|
+
"description": "Input behavior modes, vectors, and button event handling.",
|
|
280
|
+
"section": "SDK",
|
|
281
|
+
"icon": "zap",
|
|
282
|
+
"keywords": [
|
|
283
|
+
"input",
|
|
284
|
+
"behavior",
|
|
285
|
+
"vector",
|
|
286
|
+
"button",
|
|
287
|
+
"validation"
|
|
288
|
+
],
|
|
289
|
+
"docType": "contract",
|
|
290
|
+
"order": 2,
|
|
291
|
+
"stability": "evolving",
|
|
292
|
+
"audience": "user",
|
|
293
|
+
"sinceVersion": "1.0.0",
|
|
294
|
+
"lastVerifiedVersion": "1.0.0"
|
|
295
|
+
},
|
|
296
|
+
"size": 5961,
|
|
297
|
+
"sha256": "97d58b2fb4b7b3c1ebbd8e495cfa5e05b63148b75acfcd22b894c883a3ea9d55"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"source": "sdk/networked-state/page.mdx",
|
|
301
|
+
"page": {
|
|
302
|
+
"title": "Networked State",
|
|
303
|
+
"href": "/docs/sdk/networked-state",
|
|
304
|
+
"description": "Synchronizing shared state between host and controllers.",
|
|
305
|
+
"section": "SDK",
|
|
306
|
+
"icon": "network",
|
|
307
|
+
"keywords": [
|
|
308
|
+
"networked state",
|
|
309
|
+
"sync",
|
|
310
|
+
"zustand",
|
|
311
|
+
"store",
|
|
312
|
+
"broadcast"
|
|
313
|
+
],
|
|
314
|
+
"docType": "reference",
|
|
315
|
+
"order": 3,
|
|
316
|
+
"stability": "evolving",
|
|
317
|
+
"audience": "user",
|
|
318
|
+
"sinceVersion": "1.0.0",
|
|
319
|
+
"lastVerifiedVersion": "1.0.0"
|
|
320
|
+
},
|
|
321
|
+
"size": 6895,
|
|
322
|
+
"sha256": "c9e771f65107115b8e15302eeaf182d7bbcfdced9c228ba379e22fb5c2f2330e"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"source": "for-agents/page.mdx",
|
|
326
|
+
"page": {
|
|
327
|
+
"title": "For Agents",
|
|
328
|
+
"href": "/docs/for-agents",
|
|
329
|
+
"description": "Fast-entry index for LLM agents and automated tooling.",
|
|
330
|
+
"section": "Agent Docs",
|
|
331
|
+
"icon": "bot",
|
|
332
|
+
"keywords": [
|
|
333
|
+
"llm",
|
|
334
|
+
"agents",
|
|
335
|
+
"automation",
|
|
336
|
+
"index",
|
|
337
|
+
"machine readable"
|
|
338
|
+
],
|
|
339
|
+
"docType": "agent",
|
|
340
|
+
"order": 0,
|
|
341
|
+
"stability": "evolving",
|
|
342
|
+
"audience": "agent",
|
|
343
|
+
"sinceVersion": "1.0.0",
|
|
344
|
+
"lastVerifiedVersion": "1.0.0"
|
|
345
|
+
},
|
|
346
|
+
"size": 3830,
|
|
347
|
+
"sha256": "23e26c8a291ff19b2961d301a8453edadcccfdfc8b5670f60fb21b26dbd5a096"
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"source": "for-agents/project-structure/page.mdx",
|
|
351
|
+
"page": {
|
|
352
|
+
"title": "Project Structure",
|
|
353
|
+
"href": "/docs/for-agents/project-structure",
|
|
354
|
+
"description": "Recommended file and boundary model for clean, testable Air Jam games.",
|
|
355
|
+
"section": "Agent Docs",
|
|
356
|
+
"icon": "layers",
|
|
357
|
+
"keywords": [
|
|
358
|
+
"project structure",
|
|
359
|
+
"architecture",
|
|
360
|
+
"host",
|
|
361
|
+
"controller",
|
|
362
|
+
"domain",
|
|
363
|
+
"engine",
|
|
364
|
+
"adapters"
|
|
365
|
+
],
|
|
366
|
+
"docType": "agent",
|
|
367
|
+
"order": 1,
|
|
368
|
+
"stability": "evolving",
|
|
369
|
+
"audience": "agent",
|
|
370
|
+
"sinceVersion": "1.0.0",
|
|
371
|
+
"lastVerifiedVersion": "1.0.0"
|
|
372
|
+
},
|
|
373
|
+
"size": 4257,
|
|
374
|
+
"sha256": "d211db552b34730d5aaf142e7ce7cf1b2bc2f05e79fdd1c7df4528a6bab00e20"
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"source": "for-agents/controller-ui/page.mdx",
|
|
378
|
+
"page": {
|
|
379
|
+
"title": "Controller UI",
|
|
380
|
+
"href": "/docs/for-agents/controller-ui",
|
|
381
|
+
"description": "Touch-first rules for building controller interfaces that feel like game controls instead of generic web apps.",
|
|
382
|
+
"section": "Agent Docs",
|
|
383
|
+
"icon": "zap",
|
|
384
|
+
"keywords": [
|
|
385
|
+
"controller ui",
|
|
386
|
+
"touch",
|
|
387
|
+
"mobile",
|
|
388
|
+
"controls",
|
|
389
|
+
"layout",
|
|
390
|
+
"gamepad"
|
|
391
|
+
],
|
|
392
|
+
"docType": "agent",
|
|
393
|
+
"order": 2,
|
|
394
|
+
"stability": "evolving",
|
|
395
|
+
"audience": "agent",
|
|
396
|
+
"sinceVersion": "1.0.0",
|
|
397
|
+
"lastVerifiedVersion": "1.0.0"
|
|
398
|
+
},
|
|
399
|
+
"size": 1406,
|
|
400
|
+
"sha256": "baf06a655312c3c80c3a1f8f7d432e4f06841e4864d8e29f154114f1cd972647"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"source": "for-agents/state-and-rendering/page.mdx",
|
|
404
|
+
"page": {
|
|
405
|
+
"title": "State and Rendering",
|
|
406
|
+
"href": "/docs/for-agents/state-and-rendering",
|
|
407
|
+
"description": "State ownership and rendering rules for React, Zustand, R3F, and per-frame gameplay code.",
|
|
408
|
+
"section": "Agent Docs",
|
|
409
|
+
"icon": "cpu",
|
|
410
|
+
"keywords": [
|
|
411
|
+
"state",
|
|
412
|
+
"rendering",
|
|
413
|
+
"zustand",
|
|
414
|
+
"react",
|
|
415
|
+
"r3f",
|
|
416
|
+
"refs",
|
|
417
|
+
"performance"
|
|
418
|
+
],
|
|
419
|
+
"docType": "agent",
|
|
420
|
+
"order": 3,
|
|
421
|
+
"stability": "evolving",
|
|
422
|
+
"audience": "agent",
|
|
423
|
+
"sinceVersion": "1.0.0",
|
|
424
|
+
"lastVerifiedVersion": "1.0.0"
|
|
425
|
+
},
|
|
426
|
+
"size": 2992,
|
|
427
|
+
"sha256": "60ddc686890616116cebc639ca6d6d33ab7fc05667c294d648fb92c31b2edf21"
|
|
428
|
+
}
|
|
429
|
+
]
|
|
430
|
+
}
|