@air-jam/cli 1.0.0-beta.7 → 1.0.0-beta.8
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/README.md +1 -1
- package/package.json +3 -3
- package/template-assets/documentation/for-agents/state-and-rendering/page.mdx +19 -0
- package/template-assets/documentation/manifest.json +3 -3
- package/template-assets/managed/.airjam/ai-pack.json +3 -3
- package/template-assets/managed/docs/airjam/generated/state-and-rendering.md +19 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
> **Prerelease `1.0.0-beta.
|
|
1
|
+
> **Prerelease `1.0.0-beta.8`** from Air Jam's `beta` channel. It is not stable and may change or break between prereleases; install `@latest` for the stable release.
|
|
2
2
|
|
|
3
3
|
# `@air-jam/cli`
|
|
4
4
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@air-jam/cli",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.8",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=22.15.0"
|
|
6
6
|
},
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"template-assets"
|
|
60
60
|
],
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@air-jam/devtools": "1.0.0-beta.
|
|
63
|
-
"@air-jam/sdk": "^1.0.0-beta.
|
|
62
|
+
"@air-jam/devtools": "1.0.0-beta.8",
|
|
63
|
+
"@air-jam/sdk": "^1.0.0-beta.8",
|
|
64
64
|
"commander": "^14.0.0",
|
|
65
65
|
"cross-spawn": "^7.0.6",
|
|
66
66
|
"fs-extra": "^11.3.0",
|
|
@@ -58,6 +58,25 @@ The default order is:
|
|
|
58
58
|
3. keep rendering integration separate from pure game rules
|
|
59
59
|
4. use instancing when repeated objects justify it
|
|
60
60
|
|
|
61
|
+
## Loading and the Reveal
|
|
62
|
+
|
|
63
|
+
In the Arcade and the Studio, the page around a game keeps its own cover up
|
|
64
|
+
until the game's host says it is ready, so players never watch a game assemble
|
|
65
|
+
itself. The host is ready once it has mounted, its fonts have loaded and its
|
|
66
|
+
room is connected. Anything still loading after that holds the reveal with
|
|
67
|
+
`<HoldReveal />` from `@air-jam/sdk`:
|
|
68
|
+
|
|
69
|
+
1. render it in every Suspense fallback on the host, including the route-level
|
|
70
|
+
fallback around a lazy host view: `<Suspense fallback={<HoldReveal />}>`
|
|
71
|
+
2. put a Suspense boundary with that fallback around R3F content that loads
|
|
72
|
+
models or textures (`useGLTF`, `useTexture`), so the scene appears whole
|
|
73
|
+
3. render it conditionally for any other loading the host waits on:
|
|
74
|
+
`{!ready && <HoldReveal />}`
|
|
75
|
+
|
|
76
|
+
A fallback can draw its own placeholder and include `<HoldReveal />` inside it.
|
|
77
|
+
The reveal happens once; holding again later changes nothing, and outside a
|
|
78
|
+
host it does nothing.
|
|
79
|
+
|
|
61
80
|
## Air Jam Lane Rules
|
|
62
81
|
|
|
63
82
|
Keep the framework lanes separate:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"packageVersion": "1.0.0-beta.
|
|
3
|
+
"packageVersion": "1.0.0-beta.8",
|
|
4
4
|
"requiredComponents": [
|
|
5
5
|
"ArcadeModeDiagram",
|
|
6
6
|
"Callout",
|
|
@@ -418,8 +418,8 @@
|
|
|
418
418
|
"sinceVersion": "1.0.0",
|
|
419
419
|
"lastVerifiedVersion": "1.0.0"
|
|
420
420
|
},
|
|
421
|
-
"size":
|
|
422
|
-
"sha256": "
|
|
421
|
+
"size": 3950,
|
|
422
|
+
"sha256": "df3d2b8954b8dbb5683a734dbcf7aac6318f3e5495269ab9e6ad109203ec3e0d"
|
|
423
423
|
},
|
|
424
424
|
{
|
|
425
425
|
"source": "for-agents/supported-agents/page.mdx",
|
|
@@ -147,8 +147,8 @@
|
|
|
147
147
|
{
|
|
148
148
|
"path": "docs/airjam/generated/state-and-rendering.md",
|
|
149
149
|
"kind": "docs-generated",
|
|
150
|
-
"size":
|
|
151
|
-
"sha256": "
|
|
150
|
+
"size": 4136,
|
|
151
|
+
"sha256": "d62521b4bab84c3292b780255b72ab559fcdd7652ef431909e71db72d7735bf0"
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
154
|
"path": "docs/airjam/generated/supported-agents.md",
|
|
@@ -205,5 +205,5 @@
|
|
|
205
205
|
"sha256": "0eaa064c38b4568c200fbf5cadb96f16c7c738a29469c4c955fb1ac5f8077edf"
|
|
206
206
|
}
|
|
207
207
|
],
|
|
208
|
-
"contentDigest": "
|
|
208
|
+
"contentDigest": "153337331e5a84a9cd56a9c56b06d02a0bd26d24df2e074996c05799c69aa4ae"
|
|
209
209
|
}
|
|
@@ -61,6 +61,25 @@ The default order is:
|
|
|
61
61
|
3. keep rendering integration separate from pure game rules
|
|
62
62
|
4. use instancing when repeated objects justify it
|
|
63
63
|
|
|
64
|
+
## Loading and the Reveal
|
|
65
|
+
|
|
66
|
+
In the Arcade and the Studio, the page around a game keeps its own cover up
|
|
67
|
+
until the game's host says it is ready, so players never watch a game assemble
|
|
68
|
+
itself. The host is ready once it has mounted, its fonts have loaded and its
|
|
69
|
+
room is connected. Anything still loading after that holds the reveal with
|
|
70
|
+
`<HoldReveal />` from `@air-jam/sdk`:
|
|
71
|
+
|
|
72
|
+
1. render it in every Suspense fallback on the host, including the route-level
|
|
73
|
+
fallback around a lazy host view: `<Suspense fallback={<HoldReveal />}>`
|
|
74
|
+
2. put a Suspense boundary with that fallback around R3F content that loads
|
|
75
|
+
models or textures (`useGLTF`, `useTexture`), so the scene appears whole
|
|
76
|
+
3. render it conditionally for any other loading the host waits on:
|
|
77
|
+
`{!ready && <HoldReveal />}`
|
|
78
|
+
|
|
79
|
+
A fallback can draw its own placeholder and include `<HoldReveal />` inside it.
|
|
80
|
+
The reveal happens once; holding again later changes nothing, and outside a
|
|
81
|
+
host it does nothing.
|
|
82
|
+
|
|
64
83
|
## Air Jam Lane Rules
|
|
65
84
|
|
|
66
85
|
Keep the framework lanes separate:
|