@air-jam/cli 1.0.0-beta.3 → 1.0.0-beta.5
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/manifest.json +5 -5
- package/template-assets/documentation/sdk/hooks/page.mdx +2 -1
- package/template-assets/documentation/sdk/ui-components/page.mdx +3 -7
- package/template-assets/managed/.airjam/ai-pack.json +7 -7
- package/template-assets/managed/docs/airjam/composition-shell-contract.md +4 -0
- package/template-assets/managed/docs/airjam/generated/sdk-hooks.md +2 -1
- package/template-assets/managed/docs/airjam/generated/ui-components.md +3 -7
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
> **Prerelease `1.0.0-beta.
|
|
1
|
+
> **Prerelease `1.0.0-beta.5`** 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.5",
|
|
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.5",
|
|
63
|
+
"@air-jam/sdk": "^1.0.0-beta.5",
|
|
64
64
|
"commander": "^14.0.0",
|
|
65
65
|
"cross-spawn": "^7.0.6",
|
|
66
66
|
"fs-extra": "^11.3.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"packageVersion": "1.0.0-beta.
|
|
3
|
+
"packageVersion": "1.0.0-beta.5",
|
|
4
4
|
"requiredComponents": [
|
|
5
5
|
"ArcadeModeDiagram",
|
|
6
6
|
"Callout",
|
|
@@ -235,8 +235,8 @@
|
|
|
235
235
|
"sinceVersion": "1.0.0",
|
|
236
236
|
"lastVerifiedVersion": "1.0.0"
|
|
237
237
|
},
|
|
238
|
-
"size":
|
|
239
|
-
"sha256": "
|
|
238
|
+
"size": 16164,
|
|
239
|
+
"sha256": "5e0aab6853856002d20e4048eaffb8da79388ed67d6314551f95ac066b02f4e3"
|
|
240
240
|
},
|
|
241
241
|
{
|
|
242
242
|
"source": "sdk/ui-components/page.mdx",
|
|
@@ -263,8 +263,8 @@
|
|
|
263
263
|
"sinceVersion": "1.0.0",
|
|
264
264
|
"lastVerifiedVersion": "1.0.0"
|
|
265
265
|
},
|
|
266
|
-
"size":
|
|
267
|
-
"sha256": "
|
|
266
|
+
"size": 7114,
|
|
267
|
+
"sha256": "f7806eb201cefb2981cfb9f27bb5a2c71e894c66dd02be69dcd57a1d84f590ed"
|
|
268
268
|
},
|
|
269
269
|
{
|
|
270
270
|
"source": "sdk/input-system/page.mdx",
|
|
@@ -89,7 +89,8 @@ const HostView = () => {
|
|
|
89
89
|
// Return values
|
|
90
90
|
const {
|
|
91
91
|
roomId, // "ABCD" - The room code
|
|
92
|
-
joinUrl, //
|
|
92
|
+
joinUrl, // Phone join URL; empty when topology has no phone reach
|
|
93
|
+
localControllerUrl, // On-screen controllers on this computer only
|
|
93
94
|
joinUrlStatus, // "loading" | "ready" | "unavailable"
|
|
94
95
|
connectionStatus, // "connected" | "connecting" | "reconnecting" | "disconnected" | "idle"
|
|
95
96
|
players, // Array of AirJamPlayer, including phones that are away
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
|
|
18
18
|
### `RoomQrCode`
|
|
19
19
|
|
|
20
|
-
Render a
|
|
20
|
+
Render a phone join QR code from `host.joinUrl`. An absent or loopback URL shows a short explanation instead of a QR code.
|
|
21
21
|
|
|
22
22
|
```tsx
|
|
23
23
|
import { RoomQrCode } from "@air-jam/sdk/ui";
|
|
@@ -26,10 +26,6 @@ import { useAirJamHost } from "@air-jam/sdk";
|
|
|
26
26
|
const LobbyQr = () => {
|
|
27
27
|
const host = useAirJamHost();
|
|
28
28
|
|
|
29
|
-
if (host.joinUrlStatus !== "ready") {
|
|
30
|
-
return null;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
29
|
return (
|
|
34
30
|
<RoomQrCode
|
|
35
31
|
value={host.joinUrl}
|
|
@@ -41,11 +37,11 @@ const LobbyQr = () => {
|
|
|
41
37
|
};
|
|
42
38
|
```
|
|
43
39
|
|
|
44
|
-
|
|
40
|
+
You can show your own loading state while `host.joinUrlStatus === "loading"`. Pass the unavailable value through to `RoomQrCode` so it can explain why phones cannot join.
|
|
45
41
|
|
|
46
42
|
Props:
|
|
47
43
|
|
|
48
|
-
- `value: string` (required)
|
|
44
|
+
- `value: string | null | undefined` (required)
|
|
49
45
|
- `size?: number` default `180`
|
|
50
46
|
- `padding?: number` default `1`
|
|
51
47
|
- `foregroundColor?: string` default `#111111`
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
{
|
|
34
34
|
"path": "docs/airjam/composition-shell-contract.md",
|
|
35
35
|
"kind": "docs-local",
|
|
36
|
-
"size":
|
|
37
|
-
"sha256": "
|
|
36
|
+
"size": 2891,
|
|
37
|
+
"sha256": "b67412d3fb3563ea3b20fc32fceaaa25759752b611fe05864c1b938eec4d23cc"
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
"path": "docs/airjam/debug-and-testing.md",
|
|
@@ -135,8 +135,8 @@
|
|
|
135
135
|
{
|
|
136
136
|
"path": "docs/airjam/generated/sdk-hooks.md",
|
|
137
137
|
"kind": "docs-generated",
|
|
138
|
-
"size":
|
|
139
|
-
"sha256": "
|
|
138
|
+
"size": 16229,
|
|
139
|
+
"sha256": "275112a40a608a51588158931d9fb9b2496001ff4ba3b822d99f40ab0daa6bfb"
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
"path": "docs/airjam/generated/settings.md",
|
|
@@ -159,8 +159,8 @@
|
|
|
159
159
|
{
|
|
160
160
|
"path": "docs/airjam/generated/ui-components.md",
|
|
161
161
|
"kind": "docs-generated",
|
|
162
|
-
"size":
|
|
163
|
-
"sha256": "
|
|
162
|
+
"size": 7216,
|
|
163
|
+
"sha256": "72347505e23c4546a55b23bbbb8a9d9135bd3789facf3e3f2afa5c1238e24d24"
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
166
|
"path": "docs/airjam/generated/unified-dev-logs.md",
|
|
@@ -205,5 +205,5 @@
|
|
|
205
205
|
"sha256": "0eaa064c38b4568c200fbf5cadb96f16c7c738a29469c4c955fb1ac5f8077edf"
|
|
206
206
|
}
|
|
207
207
|
],
|
|
208
|
-
"contentDigest": "
|
|
208
|
+
"contentDigest": "a0d1bae880328b8aa950e163f5f544c3f12005df2cde4dd2a9437b6695a5183b"
|
|
209
209
|
}
|
|
@@ -19,6 +19,10 @@ The host lobby should expose:
|
|
|
19
19
|
5. open join URL action
|
|
20
20
|
6. primary start/play action
|
|
21
21
|
|
|
22
|
+
`JoinUrlField`, `JoinUrlControls` and `JoinQrOverlay` take `status={host.joinUrlStatus}`.
|
|
23
|
+
Keep the neutral loading state until phone reach resolves. When it is unavailable,
|
|
24
|
+
show the SDK explanation without an address or QR.
|
|
25
|
+
|
|
22
26
|
The theme, layout, typography, and art direction stay game-owned.
|
|
23
27
|
|
|
24
28
|
## Required Controller Contract
|
|
@@ -88,7 +88,8 @@ const HostView = () => {
|
|
|
88
88
|
// Return values
|
|
89
89
|
const {
|
|
90
90
|
roomId, // "ABCD" - The room code
|
|
91
|
-
joinUrl, //
|
|
91
|
+
joinUrl, // Phone join URL; empty when topology has no phone reach
|
|
92
|
+
localControllerUrl, // On-screen controllers on this computer only
|
|
92
93
|
joinUrlStatus, // "loading" | "ready" | "unavailable"
|
|
93
94
|
connectionStatus, // "connected" | "connecting" | "reconnecting" | "disconnected" | "idle"
|
|
94
95
|
players, // Array of AirJamPlayer, including phones that are away
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
|
|
19
19
|
### `RoomQrCode`
|
|
20
20
|
|
|
21
|
-
Render a
|
|
21
|
+
Render a phone join QR code from `host.joinUrl`. An absent or loopback URL shows a short explanation instead of a QR code.
|
|
22
22
|
|
|
23
23
|
```tsx
|
|
24
24
|
import { RoomQrCode } from "@air-jam/sdk/ui";
|
|
@@ -27,10 +27,6 @@ import { useAirJamHost } from "@air-jam/sdk";
|
|
|
27
27
|
const LobbyQr = () => {
|
|
28
28
|
const host = useAirJamHost();
|
|
29
29
|
|
|
30
|
-
if (host.joinUrlStatus !== "ready") {
|
|
31
|
-
return null;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
30
|
return (
|
|
35
31
|
<RoomQrCode
|
|
36
32
|
value={host.joinUrl}
|
|
@@ -42,11 +38,11 @@ const LobbyQr = () => {
|
|
|
42
38
|
};
|
|
43
39
|
```
|
|
44
40
|
|
|
45
|
-
|
|
41
|
+
You can show your own loading state while `host.joinUrlStatus === "loading"`. Pass the unavailable value through to `RoomQrCode` so it can explain why phones cannot join.
|
|
46
42
|
|
|
47
43
|
Props:
|
|
48
44
|
|
|
49
|
-
- `value: string` (required)
|
|
45
|
+
- `value: string | null | undefined` (required)
|
|
50
46
|
- `size?: number` default `180`
|
|
51
47
|
- `padding?: number` default `1`
|
|
52
48
|
- `foregroundColor?: string` default `#111111`
|