@air-jam/cli 0.0.0-stage → 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.
- package/LICENSE +21 -0
- package/README.md +273 -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/auth-profile.d.ts +5 -0
- package/dist/auth-profile.js +7 -0
- package/dist/auth-profile.js.map +1 -0
- package/dist/auth-sessions.d.ts +5 -0
- package/dist/auth-sessions.js +7 -0
- package/dist/auth-sessions.js.map +1 -0
- package/dist/chunk-7D4AYBAV.js +64 -0
- package/dist/chunk-7D4AYBAV.js.map +1 -0
- package/dist/chunk-J5MAU4QZ.js +102 -0
- package/dist/chunk-J5MAU4QZ.js.map +1 -0
- package/dist/chunk-LH7UO57C.js +23 -0
- package/dist/chunk-LH7UO57C.js.map +1 -0
- package/dist/chunk-N7AI7HZK.js +529 -0
- package/dist/chunk-N7AI7HZK.js.map +1 -0
- package/dist/chunk-PKTLVQXZ.js +82 -0
- package/dist/chunk-PKTLVQXZ.js.map +1 -0
- package/dist/chunk-SQE4NPZP.js +31 -0
- package/dist/chunk-SQE4NPZP.js.map +1 -0
- package/dist/chunk-U6V3HEBB.js +939 -0
- package/dist/chunk-U6V3HEBB.js.map +1 -0
- package/dist/chunk-VEHNFPEO.js +224 -0
- package/dist/chunk-VEHNFPEO.js.map +1 -0
- package/dist/development.d.ts +102 -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/game-analytics.d.ts +5 -0
- package/dist/game-analytics.js +7 -0
- package/dist/game-analytics.js.map +1 -0
- package/dist/game-app-id.d.ts +5 -0
- package/dist/game-app-id.js +7 -0
- package/dist/game-app-id.js.map +1 -0
- package/dist/game-media.d.ts +5 -0
- package/dist/game-media.js +7 -0
- package/dist/game-media.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2468 -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 +82 -3
- package/runtime/local-network.d.mts +6 -0
- package/runtime/local-network.mjs +9 -0
- package/runtime/public-assets.mjs +62 -0
- package/runtime/source-fence.mjs +182 -0
- package/runtime/vite-config.d.mts +43 -0
- package/runtime/vite-config.mjs +134 -0
- package/runtime/vite-dev.mjs +18 -0
- package/runtime/vite-https.d.mts +11 -0
- package/runtime/vite-https.mjs +40 -0
- package/template-assets/bootstrap/.claude/launch.json +12 -0
- package/template-assets/bootstrap/AGENTS.md +290 -0
- package/template-assets/bootstrap/CLAUDE.md +55 -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 +100 -0
- package/template-assets/bootstrap/skills/canvas-2d-gameplay/SKILL.md +47 -0
- package/template-assets/bootstrap/skills/controller-ui/SKILL.md +71 -0
- package/template-assets/bootstrap/skills/debug-and-test/SKILL.md +72 -0
- package/template-assets/bootstrap/skills/game-architecture/SKILL.md +102 -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 +58 -0
- package/template-assets/bootstrap/skills/r3f-3d-scene/SKILL.md +61 -0
- package/template-assets/documentation/for-agents/controller-ui/page.mdx +99 -0
- package/template-assets/documentation/for-agents/page.mdx +120 -0
- package/template-assets/documentation/for-agents/project-structure/page.mdx +170 -0
- package/template-assets/documentation/for-agents/state-and-rendering/page.mdx +77 -0
- package/template-assets/documentation/for-agents/supported-agents/page.mdx +18 -0
- package/template-assets/documentation/getting-started/debugging/page.mdx +164 -0
- package/template-assets/documentation/getting-started/dev-logs/page.mdx +169 -0
- package/template-assets/documentation/getting-started/game-ideas/page.mdx +114 -0
- package/template-assets/documentation/getting-started/introduction/page.mdx +200 -0
- package/template-assets/documentation/getting-started/migrating-legacy-games/page.mdx +673 -0
- package/template-assets/documentation/getting-started/quick-start/page.mdx +310 -0
- package/template-assets/documentation/how-it-works/architecture/page.mdx +230 -0
- package/template-assets/documentation/how-it-works/host-system/page.mdx +270 -0
- package/template-assets/documentation/manifest.json +500 -0
- package/template-assets/documentation/sdk/assets-and-theme/page.mdx +185 -0
- package/template-assets/documentation/sdk/hooks/page.mdx +435 -0
- package/template-assets/documentation/sdk/input-system/page.mdx +240 -0
- package/template-assets/documentation/sdk/networked-state/page.mdx +295 -0
- package/template-assets/documentation/sdk/settings/page.mdx +155 -0
- package/template-assets/documentation/sdk/ui-components/page.mdx +268 -0
- package/template-assets/managed/.airjam/ai-pack.json +209 -0
- package/template-assets/managed/docs/airjam/agent-gold-path.md +115 -0
- package/template-assets/managed/docs/airjam/agent-mcp.md +179 -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 +104 -0
- package/template-assets/managed/docs/airjam/development-loop.md +51 -0
- package/template-assets/managed/docs/airjam/docs-index.md +64 -0
- package/template-assets/managed/docs/airjam/generated/architecture.md +223 -0
- package/template-assets/managed/docs/airjam/generated/assets-and-theme.md +188 -0
- package/template-assets/managed/docs/airjam/generated/controller-ui.md +102 -0
- package/template-assets/managed/docs/airjam/generated/debugging-and-logs.md +165 -0
- package/template-assets/managed/docs/airjam/generated/for-agents.md +123 -0
- package/template-assets/managed/docs/airjam/generated/game-ideas.md +107 -0
- package/template-assets/managed/docs/airjam/generated/host-system.md +261 -0
- package/template-assets/managed/docs/airjam/generated/input-system.md +241 -0
- package/template-assets/managed/docs/airjam/generated/introduction.md +195 -0
- package/template-assets/managed/docs/airjam/generated/migrating-legacy-games.md +674 -0
- package/template-assets/managed/docs/airjam/generated/networked-state.md +298 -0
- package/template-assets/managed/docs/airjam/generated/project-structure.md +171 -0
- package/template-assets/managed/docs/airjam/generated/quick-start.md +311 -0
- package/template-assets/managed/docs/airjam/generated/sdk-hooks.md +430 -0
- package/template-assets/managed/docs/airjam/generated/settings.md +158 -0
- package/template-assets/managed/docs/airjam/generated/state-and-rendering.md +80 -0
- package/template-assets/managed/docs/airjam/generated/supported-agents.md +21 -0
- package/template-assets/managed/docs/airjam/generated/ui-components.md +265 -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 +212 -0
- package/template-assets/managed/docs/airjam/preview-controllers.md +129 -0
- package/template-assets/managed/docs/airjam/r3f-3d-scene.md +163 -0
- package/template-assets/managed/docs/airjam/state-lanes-cookbook.md +101 -0
- package/template-assets/managed/docs/airjam/visual-system.md +103 -0
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
<!-- Generated from content/docs/getting-started/quick-start/page.mdx. Do not edit directly. -->
|
|
2
|
+
<!-- Canonical public doc: https://airjam.io/docs/getting-started/quick-start -->
|
|
3
|
+
|
|
4
|
+
# Quick Start
|
|
5
|
+
|
|
6
|
+
Get your first Air Jam game up and running in minutes using our project generator.
|
|
7
|
+
|
|
8
|
+
You need Node.js 22.15 or newer and pnpm installed. The generator runs `pnpm install`
|
|
9
|
+
for you unless you explicitly choose `--skip-install`.
|
|
10
|
+
|
|
11
|
+
## 1. Create a New Project
|
|
12
|
+
|
|
13
|
+
The fastest way to start is using our CLI tool. This creates a ready-to-use workspace with a working Pong game, local development server, and SDK configuration.
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npx create-airjam my-game
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
After the project is created, navigate into the directory and open it in your editor:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
cd my-game
|
|
23
|
+
code . # or your preferred editor
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## 2. Start Local Development
|
|
27
|
+
|
|
28
|
+
The scaffold uses one command for the normal local loop. It starts the local Air Jam server and the game together.
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
pnpm run dev
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
That command starts:
|
|
35
|
+
|
|
36
|
+
1. the local Air Jam server on `http://localhost:4000`
|
|
37
|
+
2. the game on `http://localhost:5173`
|
|
38
|
+
|
|
39
|
+
If Claude Code Desktop preview launches the app, use the committed `.claude/launch.json`. It still goes through the normal Air Jam dev runner, but adds the preview-managed adapter Claude Preview needs.
|
|
40
|
+
|
|
41
|
+
For other browser or agent preview tools that ask for a launch command, use `pnpm run dev`. Do not fall back to raw `vite` or a separate preview-only script.
|
|
42
|
+
|
|
43
|
+
## 3. Play the Game
|
|
44
|
+
|
|
45
|
+
Open your browser and visit:
|
|
46
|
+
|
|
47
|
+
[http://localhost:5173](http://localhost:5173)
|
|
48
|
+
|
|
49
|
+
You should see the Pong template game. You can now:
|
|
50
|
+
|
|
51
|
+
1. Open the game in your browser (Host view)
|
|
52
|
+
2. Scan the QR code with your phone (Controller view)
|
|
53
|
+
3. Play the game!
|
|
54
|
+
|
|
55
|
+
## Optional: HTTPS for Motion Sensors
|
|
56
|
+
|
|
57
|
+
Most local Air Jam development works on HTTP. Enable HTTPS only when you need secure browser APIs such as gyroscope or motion sensors.
|
|
58
|
+
|
|
59
|
+
1. Install `mkcert` once on your machine.
|
|
60
|
+
2. Initialize secure mode:
|
|
61
|
+
```bash
|
|
62
|
+
pnpm run secure:init
|
|
63
|
+
```
|
|
64
|
+
3. Run secure dev:
|
|
65
|
+
```bash
|
|
66
|
+
pnpm run dev -- --secure
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
This keeps the local Air Jam server on `http://localhost:4000` and serves the game over trusted local HTTPS.
|
|
70
|
+
|
|
71
|
+
Optional tunnel fallback:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
pnpm exec airjam secure:init --mode=tunnel --hostname my-game-dev.example.com --tunnel my-game-dev
|
|
75
|
+
pnpm run dev -- --secure --secure-mode=tunnel
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## 4. Customize & Build
|
|
79
|
+
|
|
80
|
+
This project is "vibecode friendly"—it includes documentation and AI instructions to help you build faster.
|
|
81
|
+
|
|
82
|
+
- **Check `AGENTS.md`**: Project-wide coding contract and workflow for AI coding assistants.
|
|
83
|
+
- **Check `docs/airjam/docs-index.md`**: Canonical local framework references bundled with the template.
|
|
84
|
+
- **Modify `src/airjam.config.ts`**: The game declaration: metadata, controls, stores, settings and simulation.
|
|
85
|
+
- **Modify `src/game/contracts/input.ts`**: Declare the controls each player has.
|
|
86
|
+
- **Use the starter module map in the template `README.md`**: Follow the current starter structure before creating new homes for code.
|
|
87
|
+
- **Modify `src/game/stores/`**: Starter location for shared networked state and pure transitions.
|
|
88
|
+
- **Modify `src/game/engine/`**: Starter simulation the host advances in fixed steps.
|
|
89
|
+
- **Modify `src/host/index.tsx`**: Starter host screen.
|
|
90
|
+
- **Modify `src/controller/index.tsx`**: Starter mobile controller surface.
|
|
91
|
+
- **Use `tests/game/`**: Starter testing pattern for domain, stores, engine, adapters, and shared game UI.
|
|
92
|
+
|
|
93
|
+
These paths are the current starter template shape.
|
|
94
|
+
They are recommended defaults for new projects, not framework-mandated filenames.
|
|
95
|
+
|
|
96
|
+
### Connect Your Coding Agent
|
|
97
|
+
|
|
98
|
+
Use your existing editor, terminal agent, or MCP client; Air Jam does not require
|
|
99
|
+
a separate hosted game editor. The generated project includes local instructions
|
|
100
|
+
and a portable `.mcp.json` declaration. A declaration is not the same as a client
|
|
101
|
+
being connected. Inspect the setup and render the configuration your client uses:
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
pnpm exec airjam mcp doctor --dir . --json
|
|
105
|
+
pnpm exec airjam mcp config --profile portable --dir .
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
The `codex` and `claude-desktop` profiles render their respective registration
|
|
109
|
+
formats. Configuration rendering is read-only: install the rendered entry in
|
|
110
|
+
your client, then check its tool discovery. See [For Agents](./for-agents.md)
|
|
111
|
+
for semantic game control and a CLI-only path, and
|
|
112
|
+
[Supported Agents](./supported-agents.md) for the clients tested end to end.
|
|
113
|
+
|
|
114
|
+
### Run the Complete Evaluation
|
|
115
|
+
|
|
116
|
+
Before sharing a game—and again after any repair—run the canonical complete evaluation:
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
pnpm exec airjam evaluate --dir .
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
It returns one machine-readable `air-jam-complete-evaluation/v1` document containing the results of typecheck, lint, tests, and the production build. Agents can call the same service through the `airjam.evaluate` MCP action. Individual gates remain available when narrowing a failure.
|
|
123
|
+
|
|
124
|
+
### Refresh Managed Framework Guidance
|
|
125
|
+
|
|
126
|
+
Scaffolded projects include an AI pack that owns canonical framework references under `docs/airjam/`. Top-level agent instructions and project-local skills are bootstrap files: after creation, they belong to the project and Air Jam never overwrites them.
|
|
127
|
+
|
|
128
|
+
Use these commands from your project root:
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
pnpm exec airjam ai-pack status --dir .
|
|
132
|
+
pnpm exec airjam ai-pack diff --dir .
|
|
133
|
+
pnpm exec airjam ai-pack update --dir .
|
|
134
|
+
pnpm exec airjam ai-pack repair --dir .
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
`ai-pack update` consumes only the snapshot inside the installed, provenance-backed CLI package. `ai-pack repair` explicitly restores same-version managed drift. Both replace only AI-pack-managed framework references; neither is a merge tool or owns `AGENTS.md`, `CLAUDE.md`, project-local skills, application code, or user-created notes.
|
|
138
|
+
|
|
139
|
+
### Server not connecting locally
|
|
140
|
+
|
|
141
|
+
1. Verify `pnpm run dev` is running.
|
|
142
|
+
2. Confirm server health: [http://localhost:4000/health](http://localhost:4000/health).
|
|
143
|
+
3. Confirm your game is using `http://localhost:4000` for `VITE_AIR_JAM_SERVER_URL` (or no override at all for local defaults).
|
|
144
|
+
|
|
145
|
+
### Local port already in use
|
|
146
|
+
|
|
147
|
+
Each parallel agent or project can run an isolated stack without stopping another one:
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
AIR_JAM_SERVER_PORT=4400 \
|
|
151
|
+
VITE_PORT=5573 \
|
|
152
|
+
VITE_AIR_JAM_PUBLIC_HOST=http://127.0.0.1:5573 \
|
|
153
|
+
pnpm run dev
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
`pnpm exec airjam topology --mode=standalone-dev` honors the same environment, so the CLI, semantic sessions, QR URL, Vite proxy, and local server stay on one coherent topology.
|
|
157
|
+
|
|
158
|
+
### App ID errors in deployed environments
|
|
159
|
+
|
|
160
|
+
1. Ensure `VITE_AIR_JAM_APP_ID` is set in your host platform.
|
|
161
|
+
2. Ensure the server URL points at your real Air Jam backend.
|
|
162
|
+
3. Ensure your site's exact origin is in the game's allowed origins in Create.
|
|
163
|
+
4. Re-copy the App ID from your game's page in Create if the room is refused.
|
|
164
|
+
|
|
165
|
+
### QR / controller join URL issues
|
|
166
|
+
|
|
167
|
+
1. Confirm host and controller are on the same room code.
|
|
168
|
+
2. If testing on phone outside localhost, set `VITE_AIR_JAM_PUBLIC_HOST` (or use `pnpm run dev -- --secure`).
|
|
169
|
+
3. For SPA hosting, ensure rewrites route `/controller?room=XXXX` to your app entry.
|
|
170
|
+
|
|
171
|
+
## 5. Connect Your Game To Air Jam Services
|
|
172
|
+
|
|
173
|
+
When you're ready to share your game outside local development, first register
|
|
174
|
+
it with Air Jam so the runtime has a stable hosted identity.
|
|
175
|
+
|
|
176
|
+
1. **Create a game record**:
|
|
177
|
+
Register your game from the terminal after a one-time browser-assisted login:
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
pnpm exec airjam auth login
|
|
181
|
+
pnpm exec airjam game create --dir . --name "My Game" --slug my-game
|
|
182
|
+
pnpm exec airjam game inspect --game my-game
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
Copy the **App ID** from the response. Your game also appears in [Create](/studio)
|
|
186
|
+
at `/studio/games/<id>`, with **Releases**, **Media**, **Analytics** and **Security**.
|
|
187
|
+
Studio projects create their game record on the first release.
|
|
188
|
+
|
|
189
|
+
2. **Choose your distribution lane**:
|
|
190
|
+
- Deploy your game to a static hosting provider like Vercel, Netlify, or GitHub Pages.
|
|
191
|
+
- Use that self-hosted URL for normal private review and iteration.
|
|
192
|
+
- If you want public Air Jam Arcade distribution, publish a hosted release artifact in step 6 below.
|
|
193
|
+
- For self-hosted deployments, set the following environment variables:
|
|
194
|
+
|
|
195
|
+
```bash
|
|
196
|
+
VITE_AIR_JAM_APP_ID=your_app_id_here
|
|
197
|
+
VITE_AIR_JAM_SERVER_URL=https://rooms.airjam.io
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
Add your site's origin (for example `https://my-game.example`) to the
|
|
201
|
+
allowed origins in your game's **Security** section in Create. When your page
|
|
202
|
+
opens a room, the SDK asks Air Jam for a short-lived host grant for your App
|
|
203
|
+
ID. Air Jam signs one only for an active App ID, asked from one of its allowed
|
|
204
|
+
origins exactly, and the grant names that one origin. You do not mint tokens or
|
|
205
|
+
add auth code to your game.
|
|
206
|
+
|
|
207
|
+
The origin check keeps other websites from opening rooms under your App ID in
|
|
208
|
+
players' browsers. It is not a secret: a script outside a browser can claim any
|
|
209
|
+
origin, just as it can claim any App ID. What bounds misuse is admission: each
|
|
210
|
+
game and each account may run 20 hosted rooms at once, inside Air Jam's overall
|
|
211
|
+
limit, so rooms someone else opens under your App ID can crowd yours but never
|
|
212
|
+
grow past those caps.
|
|
213
|
+
|
|
214
|
+
On hosted rooms, a crash your game's error boundary catches is also reported to
|
|
215
|
+
Air Jam, as its error name and a short digest (never its message, stack or any
|
|
216
|
+
player input), so it shows up with your game's other room records. Pass your own
|
|
217
|
+
`reportError` to send reports elsewhere.
|
|
218
|
+
|
|
219
|
+
Before publishing your scaffolded game, run the local checks:
|
|
220
|
+
|
|
221
|
+
```bash
|
|
222
|
+
pnpm test
|
|
223
|
+
pnpm run typecheck
|
|
224
|
+
pnpm run build
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
If you are self-hosting the client, keep SPA rewrites enabled so `/controller?room=XXXX` resolves to your app entry.
|
|
228
|
+
|
|
229
|
+
### Self-hosted rooms
|
|
230
|
+
|
|
231
|
+
Run the open `air-jam-server` yourself and point `VITE_AIR_JAM_SERVER_URL` at
|
|
232
|
+
it. In production it needs a gate of your own: compose it with
|
|
233
|
+
`createRoomServer({ gate })` from `@air-jam/server/room-server`, or set
|
|
234
|
+
`AIR_JAM_AUTH_MODE=disabled` to run it open to any host. Its master key is for
|
|
235
|
+
local development and tests only. The SDK sends whatever
|
|
236
|
+
`VITE_AIR_JAM_HOST_GRANT_ENDPOINT` returns (`{ "hostGrant": "..." }`) as the
|
|
237
|
+
credential when it opens a room, so your gate can verify a token your own
|
|
238
|
+
backend signs. Game code stays unchanged.
|
|
239
|
+
|
|
240
|
+
## 6. Publish A Hosted Arcade Release
|
|
241
|
+
|
|
242
|
+
The official Arcade hosting lane is now artifact-based. Self-hosted URLs are still useful for private preview, but public Arcade hosting should use a hosted release artifact.
|
|
243
|
+
|
|
244
|
+
1. Run the local hosted-release preflight from your project root:
|
|
245
|
+
|
|
246
|
+
```bash
|
|
247
|
+
pnpm exec airjam release doctor --dir .
|
|
248
|
+
pnpm exec airjam release validate --dir .
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
2. Build a hosted bundle from your project root:
|
|
252
|
+
|
|
253
|
+
```bash
|
|
254
|
+
pnpm exec airjam release bundle --dir .
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
That command:
|
|
258
|
+
|
|
259
|
+
- runs your build script
|
|
260
|
+
- bundles the static output from `dist/`
|
|
261
|
+
- writes `.airjam/release-manifest.json`
|
|
262
|
+
- creates a hosted release zip under `.airjam/releases/<version>/`
|
|
263
|
+
|
|
264
|
+
The hosted artifact contract is fixed:
|
|
265
|
+
|
|
266
|
+
- host entry at `/`
|
|
267
|
+
- controller entry at `/controller`
|
|
268
|
+
|
|
269
|
+
### Terminal or Agent Publishing
|
|
270
|
+
|
|
271
|
+
The CLI can bundle, upload, and wait for validation. Use the game slug or ID
|
|
272
|
+
created in step 5:
|
|
273
|
+
|
|
274
|
+
```bash
|
|
275
|
+
pnpm exec airjam release submit --game my-game --dir . --wait
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
This leaves the processed release unpublished. Inspect the returned release ID,
|
|
279
|
+
then explicitly make it live when you are ready:
|
|
280
|
+
|
|
281
|
+
```bash
|
|
282
|
+
pnpm exec airjam release inspect --release <release-id>
|
|
283
|
+
pnpm exec airjam release publish --release <release-id>
|
|
284
|
+
pnpm exec airjam game media list --game my-game --json
|
|
285
|
+
pnpm exec airjam game media assign --game my-game --asset-id <asset-id> --json
|
|
286
|
+
pnpm exec airjam game media archive --game my-game --asset-id <asset-id> --json
|
|
287
|
+
pnpm exec airjam game update --game my-game --arcade-visibility listed
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
Publishing a release and listing its game are separate decisions. A processing
|
|
291
|
+
timeout does not cancel the background job: inspect the same release rather
|
|
292
|
+
than submitting another copy. CLI responses retain the release and generation
|
|
293
|
+
identities needed to resume work.
|
|
294
|
+
|
|
295
|
+
`game media list` (also `inspect`) returns existing assets with IDs, kinds,
|
|
296
|
+
status and active selections. `assign` reuses an earlier asset for its kind;
|
|
297
|
+
`archive` retires one by ID and clears its slot if active. These commands use
|
|
298
|
+
the saved machine login and accept `--platform-url` and `--help`. Without
|
|
299
|
+
`--json` they print readable output. Use `game media upload` for new files.
|
|
300
|
+
|
|
301
|
+
### Publish From Create
|
|
302
|
+
|
|
303
|
+
Alternatively, upload the zip produced by `airjam release bundle` above:
|
|
304
|
+
|
|
305
|
+
1. Open your game in [Create](/studio) and choose **Releases**.
|
|
306
|
+
2. Upload the generated zip artifact.
|
|
307
|
+
3. Make the validated release live.
|
|
308
|
+
4. Upload thumbnail, cover, and preview media in **Media**.
|
|
309
|
+
5. Set the game's Arcade visibility to listed.
|
|
310
|
+
|
|
311
|
+
Your game is now live in the public Arcade on Air Jam-hosted infrastructure.
|