@air-jam/devtools 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.
- package/README.md +60 -0
- package/dist/{chunk-VKMJO6VN.js → chunk-2O67AXCU.js} +150 -40
- package/dist/chunk-2O67AXCU.js.map +1 -0
- package/dist/chunk-AO3ZDXF6.js +142 -0
- package/dist/chunk-AO3ZDXF6.js.map +1 -0
- package/dist/chunk-ART5TEYT.js +472 -0
- package/dist/chunk-ART5TEYT.js.map +1 -0
- package/dist/chunk-ASC2CK2R.js +77 -0
- package/dist/chunk-ASC2CK2R.js.map +1 -0
- package/dist/chunk-E3UZZGAV.js +50 -0
- package/dist/chunk-E3UZZGAV.js.map +1 -0
- package/dist/chunk-EJTE7UKX.js +64 -0
- package/dist/chunk-EJTE7UKX.js.map +1 -0
- package/dist/chunk-ESFKNN75.js +110 -0
- package/dist/chunk-ESFKNN75.js.map +1 -0
- package/dist/chunk-EU7A6PXW.js +1339 -0
- package/dist/chunk-EU7A6PXW.js.map +1 -0
- package/dist/chunk-FN7E6EA7.js +549 -0
- package/dist/chunk-FN7E6EA7.js.map +1 -0
- package/dist/chunk-GDFAWHGA.js +190 -0
- package/dist/chunk-GDFAWHGA.js.map +1 -0
- package/dist/chunk-HZUGBH4Y.js +347 -0
- package/dist/chunk-HZUGBH4Y.js.map +1 -0
- package/dist/chunk-ITKAOEGX.js +93 -0
- package/dist/chunk-ITKAOEGX.js.map +1 -0
- package/dist/chunk-JBCUTWRI.js +897 -0
- package/dist/chunk-JBCUTWRI.js.map +1 -0
- package/dist/chunk-JSI5S4WP.js +1174 -0
- package/dist/chunk-JSI5S4WP.js.map +1 -0
- package/dist/chunk-L4D675BG.js +97 -0
- package/dist/chunk-L4D675BG.js.map +1 -0
- package/dist/chunk-M6CJ7GQC.js +133 -0
- package/dist/chunk-M6CJ7GQC.js.map +1 -0
- package/dist/{chunk-CKFT2ZJE.js → chunk-MEIMOSZC.js} +53 -105
- package/dist/chunk-MEIMOSZC.js.map +1 -0
- package/dist/{chunk-GUEZP773.js → chunk-O3XG3FNL.js} +204 -41
- package/dist/chunk-O3XG3FNL.js.map +1 -0
- package/dist/chunk-OM6SCJ7H.js +18 -0
- package/dist/chunk-OM6SCJ7H.js.map +1 -0
- package/dist/chunk-PKD4WVX5.js +63 -0
- package/dist/chunk-PKD4WVX5.js.map +1 -0
- package/dist/chunk-PMBLXGFM.js +3384 -0
- package/dist/chunk-PMBLXGFM.js.map +1 -0
- package/dist/chunk-PMNE5GIN.js +279 -0
- package/dist/chunk-PMNE5GIN.js.map +1 -0
- package/dist/chunk-QAWI64VR.js +148 -0
- package/dist/chunk-QAWI64VR.js.map +1 -0
- package/dist/chunk-QGADSPHZ.js +449 -0
- package/dist/chunk-QGADSPHZ.js.map +1 -0
- package/dist/chunk-SPYN66UV.js +338 -0
- package/dist/chunk-SPYN66UV.js.map +1 -0
- package/dist/context.d.ts +9 -3
- package/dist/context.js +2 -1
- package/dist/controller.d.ts +33 -7
- package/dist/controller.js +18 -8
- package/dist/dependencies.d.ts +44 -0
- package/dist/dependencies.js +10 -0
- package/dist/dev.d.ts +9 -3
- package/dist/dev.js +3 -4
- package/dist/game-builds.d.ts +200 -0
- package/dist/game-builds.js +16 -0
- package/dist/game-builds.js.map +1 -0
- package/dist/game-run-watch-CEd_SpAT.d.ts +84 -0
- package/dist/game-runs.d.ts +1452 -0
- package/dist/game-runs.js +76 -0
- package/dist/game-runs.js.map +1 -0
- package/dist/game-session-broker-CUvORfMd.d.ts +439 -0
- package/dist/game-session-broker.d.ts +4 -57
- package/dist/game-session-broker.js +33 -228
- package/dist/game-session-broker.js.map +1 -1
- package/dist/game-session.d.ts +3931 -10
- package/dist/game-session.js +186 -15
- package/dist/game-session.js.map +1 -1
- package/dist/game-settings.d.ts +16 -0
- package/dist/game-settings.js +237 -0
- package/dist/game-settings.js.map +1 -0
- package/dist/games.d.ts +11 -4
- package/dist/games.js +4 -2
- package/dist/harness/visual.d.ts +34 -151
- package/dist/harness/visual.js +6 -1
- package/dist/logs.d.ts +8 -2
- package/dist/logs.js +3 -4
- package/dist/logs.js.map +1 -1
- package/dist/managed-process-scope-BicYi_t9.d.ts +3 -0
- package/dist/mcp-config.js +2 -1
- package/dist/mcp-config.js.map +1 -1
- package/dist/platform-auth.d.ts +8 -111
- package/dist/platform-auth.js +9 -1
- package/dist/platform-game-analytics.d.ts +51 -0
- package/dist/platform-game-analytics.js +49 -0
- package/dist/platform-game-analytics.js.map +1 -0
- package/dist/platform-game-app-id.d.ts +46 -0
- package/dist/platform-game-app-id.js +93 -0
- package/dist/platform-game-app-id.js.map +1 -0
- package/dist/platform-game-media.d.ts +40 -2
- package/dist/platform-game-media.js +1 -1
- package/dist/platform-games.d.ts +24 -2
- package/dist/platform-games.js +16 -84
- package/dist/platform-games.js.map +1 -1
- package/dist/quality.d.ts +9 -3
- package/dist/quality.js +3 -4
- package/dist/quality.js.map +1 -1
- package/dist/release.d.ts +226 -16
- package/dist/release.js +18 -1331
- package/dist/release.js.map +1 -1
- package/dist/rooms-check.d.ts +90 -0
- package/dist/rooms-check.js +717 -0
- package/dist/rooms-check.js.map +1 -0
- package/dist/source-tree-contract.d.ts +16 -0
- package/dist/source-tree-contract.js +13 -0
- package/dist/source-tree-contract.js.map +1 -0
- package/dist/testing.d.ts +464 -0
- package/dist/testing.js +27 -0
- package/dist/testing.js.map +1 -0
- package/dist/tooling/describe-game.js +54 -0
- package/dist/tooling/describe-game.js.map +1 -0
- package/dist/tooling/game-session-broker.js +28 -0
- package/dist/tooling/game-session-broker.js.map +1 -0
- package/dist/tooling/hold-runtime-host.js +769 -67
- package/dist/tooling/hold-runtime-host.js.map +1 -1
- package/dist/tooling/list-visual-scenarios.js +18 -55
- package/dist/tooling/list-visual-scenarios.js.map +1 -1
- package/dist/tooling/process-scope-bootstrap.mjs +24 -0
- package/dist/tooling/process-scope-guard.d.ts +2 -0
- package/dist/tooling/process-scope-guard.js +388 -0
- package/dist/tooling/process-scope-guard.js.map +1 -0
- package/dist/tooling/process-scope-windows.ps1 +148 -0
- package/dist/tooling/rooms-check-device.d.ts +2 -0
- package/dist/tooling/rooms-check-device.js +498 -0
- package/dist/tooling/rooms-check-device.js.map +1 -0
- package/dist/tooling/run-headless-room.d.ts +2 -0
- package/dist/tooling/run-headless-room.js +287 -0
- package/dist/tooling/run-headless-room.js.map +1 -0
- package/dist/tooling/run-test-profile.d.ts +2 -0
- package/dist/tooling/run-test-profile.js +181 -0
- package/dist/tooling/run-test-profile.js.map +1 -0
- package/dist/tooling/run-visual-capture.js +70 -34
- package/dist/tooling/run-visual-capture.js.map +1 -1
- package/dist/tooling/seal-game-build.d.ts +2 -0
- package/dist/tooling/seal-game-build.js +120 -0
- package/dist/tooling/seal-game-build.js.map +1 -0
- package/dist/{types-C6NrHt88.d.ts → types-CdYrgrG_.d.ts} +337 -76
- package/dist/types-DyRD-ym1.d.ts +141 -0
- package/dist/visual.d.ts +9 -3
- package/dist/visual.js +24 -68
- package/dist/visual.js.map +1 -1
- package/package.json +51 -14
- package/src/bounded-response.ts +28 -0
- package/src/built-game-runtime.ts +152 -0
- package/src/context.ts +2 -13
- package/src/controller-protocol.ts +22 -0
- package/src/controller.ts +747 -597
- package/src/current-room-host.ts +166 -0
- package/src/decision-provider.ts +102 -0
- package/src/dependencies.ts +176 -0
- package/src/dependency-install-contract.ts +12 -0
- package/src/dev.ts +46 -50
- package/src/game-action-observation.ts +11 -1
- package/src/game-build-protocol.ts +72 -0
- package/src/game-build.ts +483 -0
- package/src/game-run-owner.ts +2358 -0
- package/src/game-run-protocol.ts +448 -0
- package/src/game-run-record.ts +92 -0
- package/src/game-run-replay.ts +95 -0
- package/src/game-run-watch.ts +155 -0
- package/src/game-session-broker.ts +689 -197
- package/src/game-session-operations.ts +61 -0
- package/src/game-session-protocol.ts +180 -0
- package/src/game-session-runtime.ts +861 -0
- package/src/game-session.ts +164 -417
- package/src/game-settings.ts +295 -0
- package/src/games.ts +88 -92
- package/src/harness/visual/browser.ts +100 -0
- package/src/harness/visual/controller-observation.ts +181 -0
- package/src/harness/visual/runner.ts +24 -21
- package/src/harness/visual/runtime-controller-observations.ts +151 -0
- package/src/harness/visual/scenario-contract.ts +1 -2
- package/src/harness/visual/scenario-helpers.ts +5 -1
- package/src/harness/visual/screencast.ts +155 -0
- package/src/harness/visual/session.ts +72 -41
- package/src/harness/visual/types.ts +8 -5
- package/src/headless-room-protocol.ts +112 -0
- package/src/headless-room.ts +222 -0
- package/src/helper-channel.ts +229 -0
- package/src/helper-scripts.ts +25 -5
- package/src/installed-dependencies.ts +74 -0
- package/src/managed-process-scope.ts +481 -0
- package/src/node-process-environment.ts +10 -0
- package/src/platform-auth.ts +194 -55
- package/src/platform-game-analytics.ts +50 -0
- package/src/platform-game-app-id.ts +99 -0
- package/src/platform-games.ts +13 -111
- package/src/policy-artifact-contract.ts +52 -0
- package/src/policy-artifacts.ts +134 -0
- package/src/process-scope-admission.ts +50 -0
- package/src/process-scope-protocol.ts +66 -0
- package/src/process-scope.ts +327 -0
- package/src/release.ts +28 -42
- package/src/rooms-check-fleet.ts +194 -0
- package/src/rooms-check-link.ts +138 -0
- package/src/rooms-check-protocol.ts +244 -0
- package/src/rooms-check.ts +797 -0
- package/src/runtime-owner-protocol.ts +106 -18
- package/src/source-tree-contract.ts +70 -0
- package/src/source-tree.ts +84 -0
- package/src/test-profile-process.ts +153 -0
- package/src/test-profile-protocol.ts +116 -0
- package/src/testing.ts +430 -0
- package/src/tooling/declaration-hook.ts +52 -0
- package/src/tooling/describe-game.ts +49 -0
- package/src/tooling/game-session-broker.ts +7 -0
- package/src/tooling/hold-runtime-host.ts +255 -38
- package/src/tooling/list-visual-scenarios.ts +19 -62
- package/src/tooling/load-game.ts +79 -0
- package/src/tooling/process-scope-bootstrap.mjs +24 -0
- package/src/tooling/process-scope-guard.ts +213 -0
- package/src/tooling/process-scope-windows.ps1 +148 -0
- package/src/tooling/rooms-check-device.ts +493 -0
- package/src/tooling/run-headless-room.ts +326 -0
- package/src/tooling/run-test-profile.ts +190 -0
- package/src/tooling/run-visual-capture.ts +37 -23
- package/src/tooling/runtime-owner-actions.ts +23 -0
- package/src/tooling/seal-game-build.ts +118 -0
- package/src/tooling/visual-pack.ts +10 -45
- package/src/types.ts +54 -77
- package/src/visual.ts +14 -22
- package/src/windows-process-scopes.ts +189 -0
- package/dist/agent.d.ts +0 -15
- package/dist/agent.js +0 -19
- package/dist/chunk-5YAARMW5.js +0 -36
- package/dist/chunk-5YAARMW5.js.map +0 -1
- package/dist/chunk-6WQODT37.js +0 -1019
- package/dist/chunk-6WQODT37.js.map +0 -1
- package/dist/chunk-CKFT2ZJE.js.map +0 -1
- package/dist/chunk-ER3Q2C4G.js +0 -358
- package/dist/chunk-ER3Q2C4G.js.map +0 -1
- package/dist/chunk-GUEZP773.js.map +0 -1
- package/dist/chunk-HIDNI56E.js +0 -33
- package/dist/chunk-HIDNI56E.js.map +0 -1
- package/dist/chunk-QKXS5D35.js +0 -43
- package/dist/chunk-QKXS5D35.js.map +0 -1
- package/dist/chunk-S4LSCEVE.js +0 -261
- package/dist/chunk-S4LSCEVE.js.map +0 -1
- package/dist/chunk-VKMJO6VN.js.map +0 -1
- package/dist/chunk-WFUR3MXY.js +0 -67
- package/dist/chunk-WFUR3MXY.js.map +0 -1
- package/dist/chunk-XEMR7KUE.js +0 -361
- package/dist/chunk-XEMR7KUE.js.map +0 -1
- package/dist/chunk-ZLPD7FY5.js +0 -191
- package/dist/chunk-ZLPD7FY5.js.map +0 -1
- package/dist/tooling/agent-contract.js +0 -193
- package/dist/tooling/agent-contract.js.map +0 -1
- package/dist/tooling/inspect-airjam-agent.js +0 -37
- package/dist/tooling/inspect-airjam-agent.js.map +0 -1
- package/src/agent.ts +0 -380
- package/src/tooling/agent-contract.ts +0 -232
- package/src/tooling/agent-declaration.ts +0 -36
- package/src/tooling/airjam-agent-inspection.ts +0 -45
- package/src/tooling/airjam-agent.ts +0 -118
- package/src/tooling/inspect-airjam-agent.ts +0 -20
- /package/dist/{agent.js.map → dependencies.js.map} +0 -0
- /package/dist/tooling/{agent-contract.d.ts → describe-game.d.ts} +0 -0
- /package/dist/tooling/{inspect-airjam-agent.d.ts → game-session-broker.d.ts} +0 -0
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const gameBuildManifestSchema: z.ZodObject<{
|
|
4
|
+
version: z.ZodLiteral<1>;
|
|
5
|
+
buildKey: z.ZodString;
|
|
6
|
+
sourceHash: z.ZodString;
|
|
7
|
+
lockfileHash: z.ZodString;
|
|
8
|
+
distHash: z.ZodString;
|
|
9
|
+
toolchain: z.ZodObject<{
|
|
10
|
+
node: z.ZodString;
|
|
11
|
+
pnpm: z.ZodString;
|
|
12
|
+
devtools: z.ZodString;
|
|
13
|
+
platform: z.ZodString;
|
|
14
|
+
architecture: z.ZodString;
|
|
15
|
+
implementationHash: z.ZodString;
|
|
16
|
+
environmentHash: z.ZodString;
|
|
17
|
+
projectRoot: z.ZodString;
|
|
18
|
+
nodeAbi: z.ZodString;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
dependencies: z.ZodObject<{
|
|
21
|
+
installedTreeHash: z.ZodString;
|
|
22
|
+
installedLockfileHash: z.ZodString;
|
|
23
|
+
installation: z.ZodObject<{
|
|
24
|
+
durationMs: z.ZodNumber;
|
|
25
|
+
packageCount: z.ZodNumber;
|
|
26
|
+
reused: z.ZodNumber;
|
|
27
|
+
downloaded: z.ZodNumber;
|
|
28
|
+
added: z.ZodNumber;
|
|
29
|
+
importMethods: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
30
|
+
stages: z.ZodArray<z.ZodObject<{
|
|
31
|
+
stage: z.ZodString;
|
|
32
|
+
offsetMs: z.ZodNumber;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
createdAt: z.ZodISODateTime;
|
|
37
|
+
files: z.ZodArray<z.ZodObject<{
|
|
38
|
+
path: z.ZodString;
|
|
39
|
+
bytes: z.ZodNumber;
|
|
40
|
+
sha256: z.ZodString;
|
|
41
|
+
}, z.core.$strip>>;
|
|
42
|
+
sourceArchive: z.ZodObject<{
|
|
43
|
+
bytes: z.ZodNumber;
|
|
44
|
+
sha256: z.ZodString;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
declare const gameBuildIdentitySchema: z.ZodObject<{
|
|
48
|
+
version: z.ZodLiteral<1>;
|
|
49
|
+
buildKey: z.ZodString;
|
|
50
|
+
sourceHash: z.ZodString;
|
|
51
|
+
lockfileHash: z.ZodString;
|
|
52
|
+
distHash: z.ZodString;
|
|
53
|
+
toolchain: z.ZodObject<{
|
|
54
|
+
node: z.ZodString;
|
|
55
|
+
pnpm: z.ZodString;
|
|
56
|
+
devtools: z.ZodString;
|
|
57
|
+
platform: z.ZodString;
|
|
58
|
+
architecture: z.ZodString;
|
|
59
|
+
implementationHash: z.ZodString;
|
|
60
|
+
environmentHash: z.ZodString;
|
|
61
|
+
projectRoot: z.ZodString;
|
|
62
|
+
nodeAbi: z.ZodString;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
dependencies: z.ZodObject<{
|
|
65
|
+
installedTreeHash: z.ZodString;
|
|
66
|
+
installedLockfileHash: z.ZodString;
|
|
67
|
+
installation: z.ZodObject<{
|
|
68
|
+
durationMs: z.ZodNumber;
|
|
69
|
+
packageCount: z.ZodNumber;
|
|
70
|
+
reused: z.ZodNumber;
|
|
71
|
+
downloaded: z.ZodNumber;
|
|
72
|
+
added: z.ZodNumber;
|
|
73
|
+
importMethods: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
74
|
+
stages: z.ZodArray<z.ZodObject<{
|
|
75
|
+
stage: z.ZodString;
|
|
76
|
+
offsetMs: z.ZodNumber;
|
|
77
|
+
}, z.core.$strip>>;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
}, z.core.$strip>;
|
|
80
|
+
createdAt: z.ZodISODateTime;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
declare const pinnedGameBuildSchema: z.ZodObject<{
|
|
83
|
+
rootDir: z.ZodString;
|
|
84
|
+
distDir: z.ZodString;
|
|
85
|
+
configPath: z.ZodString;
|
|
86
|
+
manifestPath: z.ZodString;
|
|
87
|
+
sourceArchivePath: z.ZodString;
|
|
88
|
+
manifest: z.ZodObject<{
|
|
89
|
+
version: z.ZodLiteral<1>;
|
|
90
|
+
buildKey: z.ZodString;
|
|
91
|
+
sourceHash: z.ZodString;
|
|
92
|
+
lockfileHash: z.ZodString;
|
|
93
|
+
distHash: z.ZodString;
|
|
94
|
+
toolchain: z.ZodObject<{
|
|
95
|
+
node: z.ZodString;
|
|
96
|
+
pnpm: z.ZodString;
|
|
97
|
+
devtools: z.ZodString;
|
|
98
|
+
platform: z.ZodString;
|
|
99
|
+
architecture: z.ZodString;
|
|
100
|
+
implementationHash: z.ZodString;
|
|
101
|
+
environmentHash: z.ZodString;
|
|
102
|
+
projectRoot: z.ZodString;
|
|
103
|
+
nodeAbi: z.ZodString;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
dependencies: z.ZodObject<{
|
|
106
|
+
installedTreeHash: z.ZodString;
|
|
107
|
+
installedLockfileHash: z.ZodString;
|
|
108
|
+
installation: z.ZodObject<{
|
|
109
|
+
durationMs: z.ZodNumber;
|
|
110
|
+
packageCount: z.ZodNumber;
|
|
111
|
+
reused: z.ZodNumber;
|
|
112
|
+
downloaded: z.ZodNumber;
|
|
113
|
+
added: z.ZodNumber;
|
|
114
|
+
importMethods: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
115
|
+
stages: z.ZodArray<z.ZodObject<{
|
|
116
|
+
stage: z.ZodString;
|
|
117
|
+
offsetMs: z.ZodNumber;
|
|
118
|
+
}, z.core.$strip>>;
|
|
119
|
+
}, z.core.$strip>;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
createdAt: z.ZodISODateTime;
|
|
122
|
+
files: z.ZodArray<z.ZodObject<{
|
|
123
|
+
path: z.ZodString;
|
|
124
|
+
bytes: z.ZodNumber;
|
|
125
|
+
sha256: z.ZodString;
|
|
126
|
+
}, z.core.$strip>>;
|
|
127
|
+
sourceArchive: z.ZodObject<{
|
|
128
|
+
bytes: z.ZodNumber;
|
|
129
|
+
sha256: z.ZodString;
|
|
130
|
+
}, z.core.$strip>;
|
|
131
|
+
}, z.core.$strip>;
|
|
132
|
+
reused: z.ZodBoolean;
|
|
133
|
+
}, z.core.$strip>;
|
|
134
|
+
type PinnedGameBuild = z.infer<typeof pinnedGameBuildSchema>;
|
|
135
|
+
declare const gameBuildResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
136
|
+
type: z.ZodLiteral<"air-jam-game-build/v1">;
|
|
137
|
+
ok: z.ZodLiteral<true>;
|
|
138
|
+
build: z.ZodObject<{
|
|
139
|
+
rootDir: z.ZodString;
|
|
140
|
+
distDir: z.ZodString;
|
|
141
|
+
configPath: z.ZodString;
|
|
142
|
+
manifestPath: z.ZodString;
|
|
143
|
+
sourceArchivePath: z.ZodString;
|
|
144
|
+
manifest: z.ZodObject<{
|
|
145
|
+
version: z.ZodLiteral<1>;
|
|
146
|
+
buildKey: z.ZodString;
|
|
147
|
+
sourceHash: z.ZodString;
|
|
148
|
+
lockfileHash: z.ZodString;
|
|
149
|
+
distHash: z.ZodString;
|
|
150
|
+
toolchain: z.ZodObject<{
|
|
151
|
+
node: z.ZodString;
|
|
152
|
+
pnpm: z.ZodString;
|
|
153
|
+
devtools: z.ZodString;
|
|
154
|
+
platform: z.ZodString;
|
|
155
|
+
architecture: z.ZodString;
|
|
156
|
+
implementationHash: z.ZodString;
|
|
157
|
+
environmentHash: z.ZodString;
|
|
158
|
+
projectRoot: z.ZodString;
|
|
159
|
+
nodeAbi: z.ZodString;
|
|
160
|
+
}, z.core.$strip>;
|
|
161
|
+
dependencies: z.ZodObject<{
|
|
162
|
+
installedTreeHash: z.ZodString;
|
|
163
|
+
installedLockfileHash: z.ZodString;
|
|
164
|
+
installation: z.ZodObject<{
|
|
165
|
+
durationMs: z.ZodNumber;
|
|
166
|
+
packageCount: z.ZodNumber;
|
|
167
|
+
reused: z.ZodNumber;
|
|
168
|
+
downloaded: z.ZodNumber;
|
|
169
|
+
added: z.ZodNumber;
|
|
170
|
+
importMethods: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
171
|
+
stages: z.ZodArray<z.ZodObject<{
|
|
172
|
+
stage: z.ZodString;
|
|
173
|
+
offsetMs: z.ZodNumber;
|
|
174
|
+
}, z.core.$strip>>;
|
|
175
|
+
}, z.core.$strip>;
|
|
176
|
+
}, z.core.$strip>;
|
|
177
|
+
createdAt: z.ZodISODateTime;
|
|
178
|
+
files: z.ZodArray<z.ZodObject<{
|
|
179
|
+
path: z.ZodString;
|
|
180
|
+
bytes: z.ZodNumber;
|
|
181
|
+
sha256: z.ZodString;
|
|
182
|
+
}, z.core.$strip>>;
|
|
183
|
+
sourceArchive: z.ZodObject<{
|
|
184
|
+
bytes: z.ZodNumber;
|
|
185
|
+
sha256: z.ZodString;
|
|
186
|
+
}, z.core.$strip>;
|
|
187
|
+
}, z.core.$strip>;
|
|
188
|
+
reused: z.ZodBoolean;
|
|
189
|
+
}, z.core.$strip>;
|
|
190
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
191
|
+
type: z.ZodLiteral<"air-jam-game-build/v1">;
|
|
192
|
+
ok: z.ZodLiteral<false>;
|
|
193
|
+
error: z.ZodString;
|
|
194
|
+
}, z.core.$strip>], "ok">;
|
|
195
|
+
declare const gameBuildMarkerSchema: z.ZodObject<{
|
|
196
|
+
buildKey: z.ZodString;
|
|
197
|
+
projectRoot: z.ZodString;
|
|
198
|
+
}, z.core.$strict>;
|
|
199
|
+
|
|
200
|
+
export { type PinnedGameBuild, gameBuildIdentitySchema, gameBuildManifestSchema, gameBuildMarkerSchema, gameBuildResultSchema, pinnedGameBuildSchema };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
gameBuildIdentitySchema,
|
|
3
|
+
gameBuildManifestSchema,
|
|
4
|
+
gameBuildMarkerSchema,
|
|
5
|
+
gameBuildResultSchema,
|
|
6
|
+
pinnedGameBuildSchema
|
|
7
|
+
} from "./chunk-ASC2CK2R.js";
|
|
8
|
+
import "./chunk-OM6SCJ7H.js";
|
|
9
|
+
export {
|
|
10
|
+
gameBuildIdentitySchema,
|
|
11
|
+
gameBuildManifestSchema,
|
|
12
|
+
gameBuildMarkerSchema,
|
|
13
|
+
gameBuildResultSchema,
|
|
14
|
+
pinnedGameBuildSchema
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=game-builds.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { Writable } from 'node:stream';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
declare const MAXIMUM_GAME_WATCH_FRAME_BASE64: number;
|
|
5
|
+
declare const GAME_WATCH_HEARTBEAT_MS = 2000;
|
|
6
|
+
declare const gameRunWatchSurfaceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7
|
+
kind: z.ZodLiteral<"host">;
|
|
8
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
9
|
+
kind: z.ZodLiteral<"controller">;
|
|
10
|
+
seatId: z.ZodString;
|
|
11
|
+
}, z.core.$strict>], "kind">;
|
|
12
|
+
type GameRunWatchSurface = z.infer<typeof gameRunWatchSurfaceSchema>;
|
|
13
|
+
declare function formatGameRunWatchSurface(surface: GameRunWatchSurface): string;
|
|
14
|
+
declare function parseGameRunWatchSurface(value: string): GameRunWatchSurface;
|
|
15
|
+
declare const gameRunWatchRequestSchema: z.ZodObject<{
|
|
16
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
17
|
+
runId: z.ZodUUID;
|
|
18
|
+
surface: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
19
|
+
kind: z.ZodLiteral<"host">;
|
|
20
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
21
|
+
kind: z.ZodLiteral<"controller">;
|
|
22
|
+
seatId: z.ZodString;
|
|
23
|
+
}, z.core.$strict>], "kind">;
|
|
24
|
+
}, z.core.$strict>;
|
|
25
|
+
declare const gameRunWatchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
26
|
+
type: z.ZodLiteral<"ready">;
|
|
27
|
+
runId: z.ZodUUID;
|
|
28
|
+
surface: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
29
|
+
kind: z.ZodLiteral<"host">;
|
|
30
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
31
|
+
kind: z.ZodLiteral<"controller">;
|
|
32
|
+
seatId: z.ZodString;
|
|
33
|
+
}, z.core.$strict>], "kind">;
|
|
34
|
+
width: z.ZodNumber;
|
|
35
|
+
height: z.ZodNumber;
|
|
36
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
37
|
+
type: z.ZodLiteral<"frame">;
|
|
38
|
+
seq: z.ZodNumber;
|
|
39
|
+
capturedAt: z.ZodNumber;
|
|
40
|
+
data: z.ZodString;
|
|
41
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
42
|
+
type: z.ZodLiteral<"heartbeat">;
|
|
43
|
+
at: z.ZodNumber;
|
|
44
|
+
lastFrameSeq: z.ZodNullable<z.ZodNumber>;
|
|
45
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
46
|
+
type: z.ZodLiteral<"error">;
|
|
47
|
+
message: z.ZodString;
|
|
48
|
+
}, z.core.$strict>], "type">;
|
|
49
|
+
type GameRunWatchEvent = z.infer<typeof gameRunWatchEventSchema>;
|
|
50
|
+
declare const gameSurfaceWatchEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
51
|
+
type: z.ZodLiteral<"ready">;
|
|
52
|
+
width: z.ZodNumber;
|
|
53
|
+
height: z.ZodNumber;
|
|
54
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
55
|
+
type: z.ZodLiteral<"frame">;
|
|
56
|
+
seq: z.ZodNumber;
|
|
57
|
+
capturedAt: z.ZodNumber;
|
|
58
|
+
data: z.ZodString;
|
|
59
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
60
|
+
type: z.ZodLiteral<"heartbeat">;
|
|
61
|
+
at: z.ZodNumber;
|
|
62
|
+
lastFrameSeq: z.ZodNullable<z.ZodNumber>;
|
|
63
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
64
|
+
type: z.ZodLiteral<"error">;
|
|
65
|
+
message: z.ZodString;
|
|
66
|
+
}, z.core.$strict>], "type">;
|
|
67
|
+
type GameSurfaceWatchEvent = z.infer<typeof gameSurfaceWatchEventSchema>;
|
|
68
|
+
type GameSurfaceWatcher = (onEvent: (event: GameSurfaceWatchEvent) => void, signal: AbortSignal) => Promise<void>;
|
|
69
|
+
declare class GameRunWatchWriter {
|
|
70
|
+
private readonly output;
|
|
71
|
+
private blocked;
|
|
72
|
+
private closed;
|
|
73
|
+
private ready?;
|
|
74
|
+
private frame?;
|
|
75
|
+
private heartbeat?;
|
|
76
|
+
private readonly drained;
|
|
77
|
+
constructor(output: Writable);
|
|
78
|
+
send(event: GameRunWatchEvent): void;
|
|
79
|
+
private flush;
|
|
80
|
+
close(): void;
|
|
81
|
+
}
|
|
82
|
+
declare function readGameRunWatchStream(stream: ReadableStream<Uint8Array>, onEvent: (event: GameRunWatchEvent) => void): Promise<void>;
|
|
83
|
+
|
|
84
|
+
export { type GameSurfaceWatchEvent as G, MAXIMUM_GAME_WATCH_FRAME_BASE64 as M, GAME_WATCH_HEARTBEAT_MS as a, gameRunWatchRequestSchema as b, gameRunWatchSurfaceSchema as c, GameRunWatchWriter as d, type GameRunWatchEvent as e, formatGameRunWatchSurface as f, gameRunWatchEventSchema as g, type GameRunWatchSurface as h, type GameSurfaceWatcher as i, parseGameRunWatchSurface as p, readGameRunWatchStream as r };
|