@air-jam/devtools 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 +112 -2
- package/dist/chunk-2O67AXCU.js +470 -0
- 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-MEIMOSZC.js +749 -0
- package/dist/chunk-MEIMOSZC.js.map +1 -0
- package/dist/chunk-O3XG3FNL.js +1014 -0
- 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 +19 -0
- package/dist/context.js +10 -0
- package/dist/context.js.map +1 -0
- package/dist/controller.d.ts +67 -0
- package/dist/controller.js +40 -0
- package/dist/controller.js.map +1 -0
- package/dist/dependencies.d.ts +44 -0
- package/dist/dependencies.js +10 -0
- package/dist/dependencies.js.map +1 -0
- package/dist/dev.d.ts +21 -0
- package/dist/dev.js +19 -0
- package/dist/dev.js.map +1 -0
- 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 -0
- package/dist/game-session-broker.js +40 -0
- package/dist/game-session-broker.js.map +1 -0
- package/dist/game-session.d.ts +3934 -0
- package/dist/game-session.js +195 -0
- package/dist/game-session.js.map +1 -0
- 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 +28 -0
- package/dist/games.js +16 -0
- package/dist/games.js.map +1 -0
- package/dist/harness/visual.d.ts +204 -0
- package/dist/harness/visual.js +46 -0
- package/dist/harness/visual.js.map +1 -0
- package/dist/logs.d.ts +15 -0
- package/dist/logs.js +57 -0
- package/dist/logs.js.map +1 -0
- package/dist/managed-process-scope-BicYi_t9.d.ts +3 -0
- package/dist/mcp-config.d.ts +63 -0
- package/dist/mcp-config.js +191 -0
- package/dist/mcp-config.js.map +1 -0
- package/dist/platform-auth.d.ts +9 -0
- package/dist/platform-auth.js +45 -0
- package/dist/platform-auth.js.map +1 -0
- 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 +347 -0
- package/dist/platform-game-media.js +168 -0
- package/dist/platform-game-media.js.map +1 -0
- package/dist/platform-games.d.ts +87 -0
- package/dist/platform-games.js +183 -0
- package/dist/platform-games.js.map +1 -0
- package/dist/quality.d.ts +16 -0
- package/dist/quality.js +62 -0
- package/dist/quality.js.map +1 -0
- package/dist/release.d.ts +1304 -0
- package/dist/release.js +34 -0
- package/dist/release.js.map +1 -0
- 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.d.ts +2 -0
- package/dist/tooling/describe-game.js +54 -0
- package/dist/tooling/describe-game.js.map +1 -0
- package/dist/tooling/game-session-broker.d.ts +2 -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.d.ts +2 -0
- package/dist/tooling/hold-runtime-host.js +931 -0
- package/dist/tooling/hold-runtime-host.js.map +1 -0
- package/dist/tooling/list-visual-scenarios.d.ts +2 -0
- package/dist/tooling/list-visual-scenarios.js +25 -0
- package/dist/tooling/list-visual-scenarios.js.map +1 -0
- package/dist/tooling/managed-dev-supervisor.d.ts +2 -0
- package/dist/tooling/managed-dev-supervisor.js +51 -0
- package/dist/tooling/managed-dev-supervisor.js.map +1 -0
- 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.d.ts +2 -0
- package/dist/tooling/run-visual-capture.js +203 -0
- package/dist/tooling/run-visual-capture.js.map +1 -0
- 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-CdYrgrG_.d.ts +1036 -0
- package/dist/types-DyRD-ym1.d.ts +141 -0
- package/dist/visual.d.ts +21 -0
- package/dist/visual.js +219 -0
- package/dist/visual.js.map +1 -0
- package/package.json +150 -3
- package/src/bounded-response.ts +28 -0
- package/src/built-game-runtime.ts +152 -0
- package/src/commands.ts +40 -0
- package/src/context.ts +218 -0
- package/src/controller-protocol.ts +22 -0
- package/src/controller.ts +1526 -0
- 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 +995 -0
- package/src/fs-utils.ts +93 -0
- package/src/game-action-observation.ts +106 -0
- 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 +793 -0
- 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 +206 -0
- package/src/game-settings.ts +295 -0
- package/src/games.ts +262 -0
- package/src/harness/visual/browser.ts +100 -0
- package/src/harness/visual/controller-observation.ts +181 -0
- package/src/harness/visual/prefab-contract.ts +29 -0
- package/src/harness/visual/prefab-runner.ts +178 -0
- package/src/harness/visual/runner.ts +549 -0
- package/src/harness/visual/runtime-controller-observations.ts +151 -0
- package/src/harness/visual/scenario-contract.ts +8 -0
- package/src/harness/visual/scenario-helpers.ts +67 -0
- package/src/harness/visual/screencast.ts +155 -0
- package/src/harness/visual/session.ts +400 -0
- package/src/harness/visual/types.ts +184 -0
- package/src/harness/visual.ts +7 -0
- 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 +69 -0
- package/src/installed-dependencies.ts +74 -0
- package/src/logs.ts +67 -0
- package/src/managed-process-scope.ts +481 -0
- package/src/mcp-config.ts +262 -0
- package/src/node-process-environment.ts +10 -0
- package/src/platform-auth.ts +594 -0
- package/src/platform-game-analytics.ts +50 -0
- package/src/platform-game-app-id.ts +99 -0
- package/src/platform-game-media.ts +209 -0
- package/src/platform-games.ts +217 -0
- 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/quality.ts +82 -0
- package/src/release.ts +1683 -0
- 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 +218 -0
- 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 +441 -0
- package/src/tooling/list-visual-scenarios.ts +21 -0
- package/src/tooling/load-game.ts +79 -0
- package/src/tooling/managed-dev-supervisor.ts +71 -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 +231 -0
- package/src/tooling/runtime-owner-actions.ts +65 -0
- package/src/tooling/seal-game-build.ts +118 -0
- package/src/tooling/visual-pack.ts +11 -0
- package/src/types.ts +928 -0
- package/src/visual.ts +296 -0
- package/src/windows-process-scopes.ts +189 -0
- package/src/workspace-contract.ts +32 -0
package/src/types.ts
ADDED
|
@@ -0,0 +1,928 @@
|
|
|
1
|
+
import type { AirJamActionInvocationResult } from "@air-jam/sdk";
|
|
2
|
+
import type { AirJamGameDescription } from "@air-jam/sdk/core";
|
|
3
|
+
import type {
|
|
4
|
+
PlatformMachineCreateOwnedGameInput,
|
|
5
|
+
PlatformMachineCreateOwnedGameResult,
|
|
6
|
+
PlatformMachineFinalizeReleaseUploadResult,
|
|
7
|
+
PlatformMachineGetOwnedGameMediaResult,
|
|
8
|
+
PlatformMachineGetOwnedGameResult,
|
|
9
|
+
PlatformMachineGetReleaseResult,
|
|
10
|
+
PlatformMachineListOwnedGamesResult,
|
|
11
|
+
PlatformMachineListReleasesResult,
|
|
12
|
+
PlatformMachineMutateOwnedGameMediaAssetResult,
|
|
13
|
+
PlatformMachinePublishReleaseResult,
|
|
14
|
+
PlatformMachineReleaseGeneration,
|
|
15
|
+
PlatformMachineReleaseJob,
|
|
16
|
+
PlatformMachineRequestOwnedGameMediaUploadTargetInput,
|
|
17
|
+
PlatformMachineRequestOwnedGameMediaUploadTargetResult,
|
|
18
|
+
PlatformMachineRequestReleaseGenerationExportResult,
|
|
19
|
+
PlatformMachineRequestReleaseUploadTargetResult,
|
|
20
|
+
PlatformMachineUpdateOwnedGameInput,
|
|
21
|
+
PlatformMachineUpdateOwnedGameResult,
|
|
22
|
+
} from "@air-jam/sdk/platform-machine";
|
|
23
|
+
import type { ControllerDisconnection } from "./controller-protocol.js";
|
|
24
|
+
import type { AirJamRuntimeOwnerScreenshot } from "./runtime-owner-protocol.js";
|
|
25
|
+
|
|
26
|
+
export type AirJamProjectMode = "monorepo" | "standalone-game" | "unknown";
|
|
27
|
+
|
|
28
|
+
export type JsonObject = Record<string, unknown>;
|
|
29
|
+
|
|
30
|
+
export type PackageJson = JsonObject & {
|
|
31
|
+
name?: string;
|
|
32
|
+
version?: string;
|
|
33
|
+
private?: boolean;
|
|
34
|
+
packageManager?: string;
|
|
35
|
+
scripts?: Record<string, string>;
|
|
36
|
+
dependencies?: Record<string, string>;
|
|
37
|
+
devDependencies?: Record<string, string>;
|
|
38
|
+
peerDependencies?: Record<string, string>;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export type AirJamPackageManager = "pnpm" | "npm" | "yarn" | "bun" | "unknown";
|
|
42
|
+
|
|
43
|
+
export type AirJamProjectContext = {
|
|
44
|
+
rootDir: string;
|
|
45
|
+
mode: AirJamProjectMode;
|
|
46
|
+
packageManager: AirJamPackageManager;
|
|
47
|
+
packageJsonPath: string | null;
|
|
48
|
+
packageJson: PackageJson | null;
|
|
49
|
+
workspaceRoot: string | null;
|
|
50
|
+
reasons: string[];
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export type AirJamCapabilityGroup =
|
|
54
|
+
| "project"
|
|
55
|
+
| "games"
|
|
56
|
+
| "logs"
|
|
57
|
+
| "runtime"
|
|
58
|
+
| "quality"
|
|
59
|
+
| "repo-workspace"
|
|
60
|
+
| "ai-pack";
|
|
61
|
+
|
|
62
|
+
export type AirJamProjectInspection = {
|
|
63
|
+
context: AirJamProjectContext;
|
|
64
|
+
capabilities: AirJamCapabilityGroup[];
|
|
65
|
+
scripts: Record<string, string>;
|
|
66
|
+
airJamPackages: Record<string, string>;
|
|
67
|
+
files: {
|
|
68
|
+
agents: string | null;
|
|
69
|
+
plan: string | null;
|
|
70
|
+
suggestions: string | null;
|
|
71
|
+
docsIndex: string | null;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export type AirJamGameSummary = {
|
|
76
|
+
id: string;
|
|
77
|
+
name: string;
|
|
78
|
+
rootDir: string;
|
|
79
|
+
packageName: string | null;
|
|
80
|
+
description: string | null;
|
|
81
|
+
category: string | null;
|
|
82
|
+
scaffold: boolean | null;
|
|
83
|
+
manifestPath: string | null;
|
|
84
|
+
configPath: string;
|
|
85
|
+
declaration: AirJamGameDescription;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export type AirJamGameInspection = AirJamGameSummary & {
|
|
89
|
+
packageJsonPath: string | null;
|
|
90
|
+
scripts: Record<string, string>;
|
|
91
|
+
qualityGates: AirJamQualityGate[];
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export type AirJamLocalHostedGameDefaults = {
|
|
95
|
+
projectDir: string;
|
|
96
|
+
configPath: string | null;
|
|
97
|
+
manifestPath: string | null;
|
|
98
|
+
packageJsonPath: string | null;
|
|
99
|
+
packageName: string | null;
|
|
100
|
+
sourceUrl: string | null;
|
|
101
|
+
metadata: {
|
|
102
|
+
name: string | null;
|
|
103
|
+
slug: string | null;
|
|
104
|
+
description: string | null;
|
|
105
|
+
category: string | null;
|
|
106
|
+
tags: string[];
|
|
107
|
+
};
|
|
108
|
+
template: {
|
|
109
|
+
id: string | null;
|
|
110
|
+
name: string | null;
|
|
111
|
+
description: string | null;
|
|
112
|
+
category: string | null;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
export type AirJamQualityGate =
|
|
117
|
+
| "typecheck"
|
|
118
|
+
| "lint"
|
|
119
|
+
| "test"
|
|
120
|
+
| "build"
|
|
121
|
+
| "format-check"
|
|
122
|
+
| "scaffold-smoke"
|
|
123
|
+
| "release-check";
|
|
124
|
+
|
|
125
|
+
export type AirJamLocalReleaseIssue = {
|
|
126
|
+
code: string;
|
|
127
|
+
severity: "error" | "warning";
|
|
128
|
+
message: string;
|
|
129
|
+
path: string | null;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
export type InspectLocalReleaseOptions = {
|
|
133
|
+
cwd?: string;
|
|
134
|
+
distDir?: string;
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
export type AirJamLocalReleaseDoctor = {
|
|
138
|
+
projectDir: string;
|
|
139
|
+
packageJsonPath: string | null;
|
|
140
|
+
packageName: string | null;
|
|
141
|
+
packageVersion: string | null;
|
|
142
|
+
packageManager: AirJamPackageManager;
|
|
143
|
+
configPath: string | null;
|
|
144
|
+
buildScript: string | null;
|
|
145
|
+
gameSlug: string | null;
|
|
146
|
+
controllerPath: string | null;
|
|
147
|
+
distDir: string;
|
|
148
|
+
distExists: boolean;
|
|
149
|
+
distEntryExists: boolean;
|
|
150
|
+
recommendedBundlePath: string;
|
|
151
|
+
canBundle: boolean;
|
|
152
|
+
issues: AirJamLocalReleaseIssue[];
|
|
153
|
+
hostedContract: {
|
|
154
|
+
entryPath: string;
|
|
155
|
+
manifestPath: string;
|
|
156
|
+
hostPath: string;
|
|
157
|
+
controllerPath: string;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
export type ValidateLocalReleaseOptions = {
|
|
162
|
+
cwd?: string;
|
|
163
|
+
distDir?: string;
|
|
164
|
+
bundlePath?: string;
|
|
165
|
+
skipBuild?: boolean;
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
export type AirJamLocalReleaseValidation = {
|
|
169
|
+
source:
|
|
170
|
+
| {
|
|
171
|
+
kind: "project";
|
|
172
|
+
projectDir: string;
|
|
173
|
+
distDir: string;
|
|
174
|
+
bundlePath: null;
|
|
175
|
+
}
|
|
176
|
+
| {
|
|
177
|
+
kind: "bundle";
|
|
178
|
+
projectDir: null;
|
|
179
|
+
distDir: null;
|
|
180
|
+
bundlePath: string;
|
|
181
|
+
};
|
|
182
|
+
ok: boolean;
|
|
183
|
+
issues: AirJamLocalReleaseIssue[];
|
|
184
|
+
manifest: JsonObject | null;
|
|
185
|
+
entryPath: string | null;
|
|
186
|
+
wrapperDirectory: string | null;
|
|
187
|
+
fileCount: number;
|
|
188
|
+
extractedSizeBytes: number;
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
export type BundleLocalReleaseOptions = {
|
|
192
|
+
cwd?: string;
|
|
193
|
+
distDir?: string;
|
|
194
|
+
out?: string;
|
|
195
|
+
skipBuild?: boolean;
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
export type BundleLocalReleaseResult = {
|
|
199
|
+
projectDir: string;
|
|
200
|
+
distDir: string;
|
|
201
|
+
outputFile: string;
|
|
202
|
+
built: boolean;
|
|
203
|
+
buildResult: CommandResult | null;
|
|
204
|
+
validation: AirJamLocalReleaseValidation;
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
export type ListPlatformReleaseTargetsOptions = {
|
|
208
|
+
platformUrl?: string;
|
|
209
|
+
token?: string;
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
export type ListPlatformGamesOptions = {
|
|
213
|
+
platformUrl?: string;
|
|
214
|
+
token?: string;
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
export type InspectPlatformGameOptions = {
|
|
218
|
+
platformUrl?: string;
|
|
219
|
+
token?: string;
|
|
220
|
+
slugOrId: string;
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
export type CreatePlatformGameOptions = {
|
|
224
|
+
platformUrl?: string;
|
|
225
|
+
token?: string;
|
|
226
|
+
input: PlatformMachineCreateOwnedGameInput;
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
export type UpdatePlatformGameOptions = {
|
|
230
|
+
platformUrl?: string;
|
|
231
|
+
token?: string;
|
|
232
|
+
slugOrId: string;
|
|
233
|
+
input: PlatformMachineUpdateOwnedGameInput;
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
export type InspectPlatformGameMediaOptions = {
|
|
237
|
+
platformUrl?: string;
|
|
238
|
+
token?: string;
|
|
239
|
+
slugOrId: string;
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
export type RequestPlatformGameMediaUploadTargetOptions = {
|
|
243
|
+
platformUrl?: string;
|
|
244
|
+
token?: string;
|
|
245
|
+
slugOrId: string;
|
|
246
|
+
input: PlatformMachineRequestOwnedGameMediaUploadTargetInput;
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
export type MutatePlatformGameMediaAssetOptions = {
|
|
250
|
+
platformUrl?: string;
|
|
251
|
+
token?: string;
|
|
252
|
+
slugOrId: string;
|
|
253
|
+
assetId: string;
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
export type UploadPlatformGameMediaFileOptions = {
|
|
257
|
+
platformUrl?: string;
|
|
258
|
+
token?: string;
|
|
259
|
+
slugOrId: string;
|
|
260
|
+
kind: "thumbnail" | "cover" | "preview_video";
|
|
261
|
+
filePath: string;
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
export type ListPlatformReleasesOptions = {
|
|
265
|
+
platformUrl?: string;
|
|
266
|
+
token?: string;
|
|
267
|
+
slugOrId: string;
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
export type InspectPlatformReleaseOptions = {
|
|
271
|
+
platformUrl?: string;
|
|
272
|
+
token?: string;
|
|
273
|
+
releaseId: string;
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
export type ArchivePlatformReleaseOptions = InspectPlatformReleaseOptions;
|
|
277
|
+
|
|
278
|
+
export type PublishPlatformReleaseOptions = {
|
|
279
|
+
platformUrl?: string;
|
|
280
|
+
token?: string;
|
|
281
|
+
releaseId: string;
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
export type UploadPlatformReleaseGenerationOptions = {
|
|
285
|
+
platformUrl?: string;
|
|
286
|
+
token?: string;
|
|
287
|
+
releaseId: string;
|
|
288
|
+
cwd?: string;
|
|
289
|
+
bundlePath: string;
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
export type FinalizePlatformReleaseGenerationOptions = {
|
|
293
|
+
platformUrl?: string;
|
|
294
|
+
token?: string;
|
|
295
|
+
releaseId: string;
|
|
296
|
+
generationId: string;
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
export type ExportPlatformReleaseGenerationOptions = {
|
|
300
|
+
platformUrl?: string;
|
|
301
|
+
token?: string;
|
|
302
|
+
releaseId: string;
|
|
303
|
+
generationId: string;
|
|
304
|
+
cwd?: string;
|
|
305
|
+
out?: string;
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
export type ExportPlatformReleaseGenerationResult =
|
|
309
|
+
PlatformMachineRequestReleaseGenerationExportResult & {
|
|
310
|
+
outputFile: string;
|
|
311
|
+
sizeBytes: number;
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
export type SubmitPlatformReleaseOptions = {
|
|
315
|
+
platformUrl?: string;
|
|
316
|
+
token?: string;
|
|
317
|
+
slugOrId: string;
|
|
318
|
+
versionLabel?: string;
|
|
319
|
+
cwd?: string;
|
|
320
|
+
distDir?: string;
|
|
321
|
+
bundlePath?: string;
|
|
322
|
+
skipBuild?: boolean;
|
|
323
|
+
waitForProcessing?: boolean;
|
|
324
|
+
processingTimeoutMs?: number;
|
|
325
|
+
processingPollIntervalMs?: number;
|
|
326
|
+
publish?: boolean;
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
export type ListPlatformReleaseTargetsResult =
|
|
330
|
+
PlatformMachineListOwnedGamesResult;
|
|
331
|
+
|
|
332
|
+
export type InspectPlatformGameMediaResult =
|
|
333
|
+
PlatformMachineGetOwnedGameMediaResult;
|
|
334
|
+
|
|
335
|
+
export type RequestPlatformGameMediaUploadTargetResult =
|
|
336
|
+
PlatformMachineRequestOwnedGameMediaUploadTargetResult;
|
|
337
|
+
|
|
338
|
+
export type MutatePlatformGameMediaAssetResult =
|
|
339
|
+
PlatformMachineMutateOwnedGameMediaAssetResult;
|
|
340
|
+
|
|
341
|
+
export type ListPlatformReleasesResult = PlatformMachineListReleasesResult;
|
|
342
|
+
|
|
343
|
+
export type InspectPlatformReleaseResult = PlatformMachineGetReleaseResult;
|
|
344
|
+
|
|
345
|
+
export type PublishPlatformReleaseResult = PlatformMachinePublishReleaseResult;
|
|
346
|
+
|
|
347
|
+
export type UploadPlatformReleaseGenerationResult =
|
|
348
|
+
PlatformMachineRequestReleaseUploadTargetResult & {
|
|
349
|
+
bundlePath: string;
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
export type FinalizePlatformReleaseGenerationResult =
|
|
353
|
+
PlatformMachineFinalizeReleaseUploadResult;
|
|
354
|
+
|
|
355
|
+
export type ListPlatformGamesResult = PlatformMachineListOwnedGamesResult;
|
|
356
|
+
|
|
357
|
+
export type InspectPlatformGameResult = PlatformMachineGetOwnedGameResult;
|
|
358
|
+
|
|
359
|
+
export type CreatePlatformGameResult = PlatformMachineCreateOwnedGameResult;
|
|
360
|
+
|
|
361
|
+
export type UpdatePlatformGameResult = PlatformMachineUpdateOwnedGameResult;
|
|
362
|
+
|
|
363
|
+
export type SubmitPlatformReleaseResult = {
|
|
364
|
+
bundlePath: string;
|
|
365
|
+
createdRelease: PlatformMachineGetReleaseResult["release"];
|
|
366
|
+
createdGeneration: PlatformMachineReleaseGeneration;
|
|
367
|
+
submittedRelease: PlatformMachineGetReleaseResult["release"];
|
|
368
|
+
submittedGeneration: PlatformMachineReleaseGeneration;
|
|
369
|
+
processingJob: PlatformMachineReleaseJob;
|
|
370
|
+
processedRelease: PlatformMachineGetReleaseResult["release"] | null;
|
|
371
|
+
publishedRelease: PlatformMachineGetReleaseResult["release"] | null;
|
|
372
|
+
};
|
|
373
|
+
|
|
374
|
+
export type AirJamPlatformAuthStatus = {
|
|
375
|
+
authenticated: boolean;
|
|
376
|
+
storagePath: string;
|
|
377
|
+
platformBaseUrl: string | null;
|
|
378
|
+
clientName: string | null;
|
|
379
|
+
storedAt: string | null;
|
|
380
|
+
user: {
|
|
381
|
+
id: string;
|
|
382
|
+
name: string;
|
|
383
|
+
email: string;
|
|
384
|
+
role: "creator" | "ops_admin";
|
|
385
|
+
} | null;
|
|
386
|
+
session: {
|
|
387
|
+
id: string;
|
|
388
|
+
expiresAt: string;
|
|
389
|
+
refreshExpiresAt: string;
|
|
390
|
+
createdAt: string;
|
|
391
|
+
userAgent: string;
|
|
392
|
+
} | null;
|
|
393
|
+
};
|
|
394
|
+
|
|
395
|
+
export type CommandResult = {
|
|
396
|
+
command: string;
|
|
397
|
+
args: string[];
|
|
398
|
+
cwd: string;
|
|
399
|
+
exitCode: number | null;
|
|
400
|
+
signal: NodeJS.Signals | null;
|
|
401
|
+
stdout: string;
|
|
402
|
+
stderr: string;
|
|
403
|
+
durationMs: number;
|
|
404
|
+
ok: boolean;
|
|
405
|
+
};
|
|
406
|
+
|
|
407
|
+
export type ReadDevLogsOptions = {
|
|
408
|
+
cwd?: string;
|
|
409
|
+
view?: "signal" | "full" | string;
|
|
410
|
+
source?: string;
|
|
411
|
+
trace?: string;
|
|
412
|
+
room?: string;
|
|
413
|
+
controller?: string;
|
|
414
|
+
event?: string;
|
|
415
|
+
process?: string;
|
|
416
|
+
level?: string;
|
|
417
|
+
runtime?: string;
|
|
418
|
+
epoch?: number;
|
|
419
|
+
consoleCategory?: string;
|
|
420
|
+
file?: string;
|
|
421
|
+
tail?: number;
|
|
422
|
+
};
|
|
423
|
+
|
|
424
|
+
export type RunQualityGateOptions = {
|
|
425
|
+
cwd?: string;
|
|
426
|
+
gate: AirJamQualityGate;
|
|
427
|
+
packageFilter?: string;
|
|
428
|
+
};
|
|
429
|
+
|
|
430
|
+
export type RunCompleteEvaluationOptions = {
|
|
431
|
+
cwd?: string;
|
|
432
|
+
};
|
|
433
|
+
|
|
434
|
+
export type AirJamCompleteEvaluationResult = {
|
|
435
|
+
contract: "air-jam-complete-evaluation/v1";
|
|
436
|
+
status: "passed" | "failed";
|
|
437
|
+
startedAt: string;
|
|
438
|
+
endedAt: string;
|
|
439
|
+
gates: Array<{
|
|
440
|
+
gate: AirJamQualityGate;
|
|
441
|
+
result: CommandResult;
|
|
442
|
+
}>;
|
|
443
|
+
};
|
|
444
|
+
|
|
445
|
+
export type AirJamDevMode = "standalone-dev" | "arcade-dev" | "arcade-test";
|
|
446
|
+
|
|
447
|
+
export type AirJamVisualArtifactMode = "standalone-dev" | "arcade-built";
|
|
448
|
+
|
|
449
|
+
export type AirJamVisualCaptureMode = "standalone-dev" | "arcade-test";
|
|
450
|
+
|
|
451
|
+
export type AirJamManagedDevProcess = {
|
|
452
|
+
id: string;
|
|
453
|
+
pid: number;
|
|
454
|
+
cwd: string;
|
|
455
|
+
projectMode: Exclude<AirJamProjectMode, "unknown">;
|
|
456
|
+
mode: AirJamDevMode;
|
|
457
|
+
topologyMode: "standalone-dev" | "arcade-live" | "arcade-built";
|
|
458
|
+
secure: boolean;
|
|
459
|
+
gameId: string | null;
|
|
460
|
+
command: string;
|
|
461
|
+
args: string[];
|
|
462
|
+
logPath: string;
|
|
463
|
+
expectedLogPath: string | null;
|
|
464
|
+
startedAt: string;
|
|
465
|
+
};
|
|
466
|
+
|
|
467
|
+
export type AirJamSurfaceUrlSummary = {
|
|
468
|
+
appOrigin: string | null;
|
|
469
|
+
hostUrl: string | null;
|
|
470
|
+
controllerBaseUrl: string | null;
|
|
471
|
+
publicHost: string | null;
|
|
472
|
+
localBuildUrl: string | null;
|
|
473
|
+
browserBuildUrl: string | null;
|
|
474
|
+
};
|
|
475
|
+
|
|
476
|
+
export type AirJamRuntimeTopology = {
|
|
477
|
+
projectMode: Exclude<AirJamProjectMode, "unknown">;
|
|
478
|
+
mode: AirJamDevMode;
|
|
479
|
+
topologyMode: "standalone-dev" | "arcade-live" | "arcade-built";
|
|
480
|
+
gameId: string | null;
|
|
481
|
+
secure: boolean;
|
|
482
|
+
surfaces: Record<string, JsonObject>;
|
|
483
|
+
urls: AirJamSurfaceUrlSummary;
|
|
484
|
+
process: AirJamManagedDevProcess | null;
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
export type StartDevOptions = {
|
|
488
|
+
cwd?: string;
|
|
489
|
+
gameId?: string;
|
|
490
|
+
mode?: AirJamDevMode;
|
|
491
|
+
secure?: boolean;
|
|
492
|
+
};
|
|
493
|
+
|
|
494
|
+
export type StartDevResult = {
|
|
495
|
+
process: AirJamManagedDevProcess;
|
|
496
|
+
reusedExistingProcess: boolean;
|
|
497
|
+
topology: AirJamRuntimeTopology;
|
|
498
|
+
};
|
|
499
|
+
|
|
500
|
+
export type StopDevOptions = {
|
|
501
|
+
cwd?: string;
|
|
502
|
+
processId?: string;
|
|
503
|
+
mode?: AirJamDevMode;
|
|
504
|
+
};
|
|
505
|
+
|
|
506
|
+
export type StopDevResult = {
|
|
507
|
+
stopped: AirJamManagedDevProcess[];
|
|
508
|
+
};
|
|
509
|
+
|
|
510
|
+
export type AirJamUnmanagedDevProcess = {
|
|
511
|
+
pid: number;
|
|
512
|
+
ports: number[];
|
|
513
|
+
command: string | null;
|
|
514
|
+
startedAt: string | null;
|
|
515
|
+
ageMs: number | null;
|
|
516
|
+
managed: false;
|
|
517
|
+
};
|
|
518
|
+
|
|
519
|
+
export type GetDevStatusOptions = {
|
|
520
|
+
cwd?: string;
|
|
521
|
+
};
|
|
522
|
+
|
|
523
|
+
export type AirJamDevStatus = {
|
|
524
|
+
gameSessionBroker: Awaited<
|
|
525
|
+
ReturnType<
|
|
526
|
+
typeof import("./game-session-broker.js").getGameSessionBrokerStatus
|
|
527
|
+
>
|
|
528
|
+
>;
|
|
529
|
+
processes: AirJamManagedDevProcess[];
|
|
530
|
+
unmanagedProcesses: AirJamUnmanagedDevProcess[];
|
|
531
|
+
knownPorts: number[];
|
|
532
|
+
};
|
|
533
|
+
|
|
534
|
+
export type ResetLocalDevOptions = {
|
|
535
|
+
cwd?: string;
|
|
536
|
+
};
|
|
537
|
+
|
|
538
|
+
export type ResetLocalDevResult = {
|
|
539
|
+
gameSessionBroker: Awaited<
|
|
540
|
+
ReturnType<typeof import("./game-session-broker.js").stopGameSessionBroker>
|
|
541
|
+
>;
|
|
542
|
+
stoppedManaged: AirJamManagedDevProcess[];
|
|
543
|
+
stoppedUnmanaged: AirJamUnmanagedDevProcess[];
|
|
544
|
+
remainingUnmanaged: AirJamUnmanagedDevProcess[];
|
|
545
|
+
knownPorts: number[];
|
|
546
|
+
};
|
|
547
|
+
|
|
548
|
+
export type GetTopologyOptions = {
|
|
549
|
+
cwd?: string;
|
|
550
|
+
gameId?: string;
|
|
551
|
+
mode?: AirJamDevMode;
|
|
552
|
+
secure?: boolean;
|
|
553
|
+
};
|
|
554
|
+
|
|
555
|
+
export type AirJamVisualScenarioSummary = {
|
|
556
|
+
gameId: string;
|
|
557
|
+
scenarioId: string;
|
|
558
|
+
description: string | null;
|
|
559
|
+
supportedModes: AirJamVisualCaptureMode[];
|
|
560
|
+
};
|
|
561
|
+
|
|
562
|
+
export type AirJamGameAgentActionDescriptor = import("zod").z.infer<
|
|
563
|
+
typeof import("@air-jam/sdk/agent-tooling").agentActionDescriptorSchema
|
|
564
|
+
>;
|
|
565
|
+
|
|
566
|
+
export type AirJamGameSnapshotInspection = {
|
|
567
|
+
contractId: string;
|
|
568
|
+
runtimeId: string;
|
|
569
|
+
controllerSessionId: string;
|
|
570
|
+
gameId: string;
|
|
571
|
+
/** Logical store names declared by the game contract. */
|
|
572
|
+
snapshotStoreDomains: string[];
|
|
573
|
+
/** Concrete replicated store domains used by the active runtime. */
|
|
574
|
+
runtimeStoreDomains: string[];
|
|
575
|
+
storeDomainBindings: Array<{
|
|
576
|
+
contractStoreDomain: string;
|
|
577
|
+
runtimeStoreDomain: string;
|
|
578
|
+
}>;
|
|
579
|
+
snapshotDescription: string | null;
|
|
580
|
+
actions: AirJamGameAgentActionDescriptor[];
|
|
581
|
+
snapshot: JsonObject;
|
|
582
|
+
rawStores: AirJamRuntimeStoreSnapshot[];
|
|
583
|
+
};
|
|
584
|
+
|
|
585
|
+
export type AirJamGameActionAcknowledgementObservation =
|
|
586
|
+
| "host-acknowledged"
|
|
587
|
+
| "host-acknowledgement-not-observed";
|
|
588
|
+
|
|
589
|
+
export type AirJamGameActionOutcome =
|
|
590
|
+
| "contract_changed"
|
|
591
|
+
| "runtime_replaced"
|
|
592
|
+
| "accepted"
|
|
593
|
+
| "rejected"
|
|
594
|
+
| "acknowledgement-not-observed-state-changed"
|
|
595
|
+
| "acknowledgement-not-observed-no-state-change-observed";
|
|
596
|
+
|
|
597
|
+
export type InvokeGameActionResult = AirJamVirtualControllerSessionSummary & {
|
|
598
|
+
actionId: string;
|
|
599
|
+
lane: "player" | "host";
|
|
600
|
+
actionName: string;
|
|
601
|
+
storeDomain: string;
|
|
602
|
+
payload?: unknown;
|
|
603
|
+
sentAt: string;
|
|
604
|
+
acknowledgement: AirJamActionInvocationResult;
|
|
605
|
+
acknowledgementObservation: AirJamGameActionAcknowledgementObservation;
|
|
606
|
+
outcome: AirJamGameActionOutcome;
|
|
607
|
+
snapshotBefore: AirJamGameSnapshotInspection;
|
|
608
|
+
snapshotAfter: AirJamGameSnapshotInspection;
|
|
609
|
+
snapshotAfterStatus:
|
|
610
|
+
| "committed-update-observed"
|
|
611
|
+
| "no-new-commit-before-timeout"
|
|
612
|
+
| "contract_changed"
|
|
613
|
+
| "runtime_replaced";
|
|
614
|
+
observedStateChange: boolean;
|
|
615
|
+
};
|
|
616
|
+
|
|
617
|
+
export type AirJamGameSessionActionDescriptor = {
|
|
618
|
+
actionId: string;
|
|
619
|
+
lane: "player" | "host";
|
|
620
|
+
source: "semantic-game";
|
|
621
|
+
description: string | null;
|
|
622
|
+
availability: string | null;
|
|
623
|
+
payload: {
|
|
624
|
+
kind: "none" | "boolean" | "number" | "string" | "enum" | "json";
|
|
625
|
+
description: string | null;
|
|
626
|
+
allowedValues?: string[];
|
|
627
|
+
};
|
|
628
|
+
resultDescription: string | null;
|
|
629
|
+
};
|
|
630
|
+
|
|
631
|
+
export type AirJamVisualScenarioList = {
|
|
632
|
+
gameId: string;
|
|
633
|
+
configPath: string;
|
|
634
|
+
scenarios: AirJamVisualScenarioSummary[];
|
|
635
|
+
};
|
|
636
|
+
|
|
637
|
+
export type ListVisualScenariosOptions = {
|
|
638
|
+
cwd?: string;
|
|
639
|
+
gameId?: string;
|
|
640
|
+
};
|
|
641
|
+
|
|
642
|
+
export type CaptureVisualsOptions = {
|
|
643
|
+
cwd?: string;
|
|
644
|
+
gameId?: string;
|
|
645
|
+
scenarioId?: string;
|
|
646
|
+
mode?: AirJamVisualCaptureMode;
|
|
647
|
+
secure?: boolean;
|
|
648
|
+
};
|
|
649
|
+
|
|
650
|
+
export type AirJamVisualScenarioMetadata = {
|
|
651
|
+
gameId: string;
|
|
652
|
+
scenarioId: string;
|
|
653
|
+
scenarioDescription: string | null;
|
|
654
|
+
runtimeMode: AirJamVisualArtifactMode;
|
|
655
|
+
capturedAt: string;
|
|
656
|
+
status: "captured" | "failed";
|
|
657
|
+
urls: JsonObject;
|
|
658
|
+
screenshots: Array<{
|
|
659
|
+
surface: "host" | "controller";
|
|
660
|
+
viewportName: string;
|
|
661
|
+
width: number;
|
|
662
|
+
height: number;
|
|
663
|
+
fileName: string;
|
|
664
|
+
relativePath: string;
|
|
665
|
+
}>;
|
|
666
|
+
notes: string[];
|
|
667
|
+
error: {
|
|
668
|
+
message: string;
|
|
669
|
+
stack: string | null;
|
|
670
|
+
} | null;
|
|
671
|
+
};
|
|
672
|
+
|
|
673
|
+
export type CaptureVisualsResult = {
|
|
674
|
+
gameId: string;
|
|
675
|
+
artifactRoot: string;
|
|
676
|
+
summaryPath: string;
|
|
677
|
+
summary: AirJamVisualCaptureSummary;
|
|
678
|
+
scenarios: AirJamVisualScenarioMetadata[];
|
|
679
|
+
};
|
|
680
|
+
|
|
681
|
+
export type ConnectControllerOptions = {
|
|
682
|
+
cwd?: string;
|
|
683
|
+
gameId?: string;
|
|
684
|
+
mode?: AirJamDevMode;
|
|
685
|
+
secure?: boolean;
|
|
686
|
+
roomId?: string;
|
|
687
|
+
controllerJoinUrl?: string;
|
|
688
|
+
nickname?: string;
|
|
689
|
+
avatarId?: string;
|
|
690
|
+
timeoutMs?: number;
|
|
691
|
+
};
|
|
692
|
+
|
|
693
|
+
export type SendControllerInputOptions = {
|
|
694
|
+
controllerSessionId: string;
|
|
695
|
+
input: JsonObject;
|
|
696
|
+
};
|
|
697
|
+
|
|
698
|
+
export type InvokeControllerActionOptions = {
|
|
699
|
+
timeoutMs?: number;
|
|
700
|
+
controllerSessionId: string;
|
|
701
|
+
actionName: string;
|
|
702
|
+
storeDomain: string;
|
|
703
|
+
payload?: JsonObject;
|
|
704
|
+
};
|
|
705
|
+
|
|
706
|
+
export type DisconnectControllerOptions = {
|
|
707
|
+
controllerSessionId: string;
|
|
708
|
+
};
|
|
709
|
+
|
|
710
|
+
export type ReadRuntimeSnapshotOptions = {
|
|
711
|
+
controllerSessionId: string;
|
|
712
|
+
storeDomains?: string[];
|
|
713
|
+
requestSync?: boolean;
|
|
714
|
+
timeoutMs?: number;
|
|
715
|
+
};
|
|
716
|
+
|
|
717
|
+
export type AirJamRuntimeStoreSnapshot = {
|
|
718
|
+
storeDomain: string;
|
|
719
|
+
data: JsonObject;
|
|
720
|
+
updatedAt: string;
|
|
721
|
+
revision: number;
|
|
722
|
+
};
|
|
723
|
+
|
|
724
|
+
export type AirJamVirtualControllerSessionSummary = {
|
|
725
|
+
controllerSessionId: string;
|
|
726
|
+
gameId: string | null;
|
|
727
|
+
projectMode: AirJamProjectMode;
|
|
728
|
+
mode: AirJamDevMode | null;
|
|
729
|
+
topologyMode:
|
|
730
|
+
| "standalone-dev"
|
|
731
|
+
| "arcade-live"
|
|
732
|
+
| "arcade-built"
|
|
733
|
+
| "self-hosted-production"
|
|
734
|
+
| null;
|
|
735
|
+
secure: boolean;
|
|
736
|
+
process: AirJamManagedDevProcess | null;
|
|
737
|
+
roomId: string;
|
|
738
|
+
/** The seat the room gave this phone. */
|
|
739
|
+
controllerId: string;
|
|
740
|
+
controllerJoinUrl: string;
|
|
741
|
+
socketOrigin: string;
|
|
742
|
+
connected: boolean;
|
|
743
|
+
connectedAt: string;
|
|
744
|
+
disconnectedAt: string | null;
|
|
745
|
+
disconnectReason: string | null;
|
|
746
|
+
};
|
|
747
|
+
|
|
748
|
+
export type AirJamVirtualControllerSession =
|
|
749
|
+
AirJamVirtualControllerSessionSummary & {
|
|
750
|
+
welcome: JsonObject | null;
|
|
751
|
+
controllerState: JsonObject | null;
|
|
752
|
+
players: JsonObject[];
|
|
753
|
+
storeSnapshots: AirJamRuntimeStoreSnapshot[];
|
|
754
|
+
lastSignal: JsonObject | null;
|
|
755
|
+
lastError: JsonObject | null;
|
|
756
|
+
requestedStoreDomains: string[];
|
|
757
|
+
missingStoreDomains: string[];
|
|
758
|
+
};
|
|
759
|
+
|
|
760
|
+
export type SendControllerInputResult =
|
|
761
|
+
AirJamVirtualControllerSessionSummary & {
|
|
762
|
+
input: JsonObject;
|
|
763
|
+
sentAt: string;
|
|
764
|
+
};
|
|
765
|
+
|
|
766
|
+
export type InvokeControllerActionResult =
|
|
767
|
+
AirJamVirtualControllerSessionSummary & {
|
|
768
|
+
actionName: string;
|
|
769
|
+
storeDomain: string;
|
|
770
|
+
payload?: JsonObject;
|
|
771
|
+
sentAt: string;
|
|
772
|
+
acknowledgement: AirJamActionInvocationResult;
|
|
773
|
+
};
|
|
774
|
+
|
|
775
|
+
export type DisconnectControllerResult = ControllerDisconnection & {
|
|
776
|
+
disconnected: boolean;
|
|
777
|
+
session: AirJamVirtualControllerSessionSummary;
|
|
778
|
+
};
|
|
779
|
+
|
|
780
|
+
export type AirJamRuntimeSnapshotInspection = AirJamVirtualControllerSession;
|
|
781
|
+
|
|
782
|
+
export type OpenGameSessionOptions = ConnectControllerOptions;
|
|
783
|
+
|
|
784
|
+
export type ReadGameSessionOptions = {
|
|
785
|
+
cwd?: string;
|
|
786
|
+
gameSessionId: string;
|
|
787
|
+
timeoutMs?: number;
|
|
788
|
+
};
|
|
789
|
+
|
|
790
|
+
export type SendGameSessionInputOptions = {
|
|
791
|
+
cwd?: string;
|
|
792
|
+
gameSessionId: string;
|
|
793
|
+
input: JsonObject;
|
|
794
|
+
};
|
|
795
|
+
|
|
796
|
+
export type InvokeGameSessionActionOptions = {
|
|
797
|
+
cwd?: string;
|
|
798
|
+
gameSessionId: string;
|
|
799
|
+
actionId: string;
|
|
800
|
+
payload?: unknown;
|
|
801
|
+
timeoutMs?: number;
|
|
802
|
+
};
|
|
803
|
+
|
|
804
|
+
export type CaptureGameSessionVisualsOptions = {
|
|
805
|
+
cwd?: string;
|
|
806
|
+
gameSessionId: string;
|
|
807
|
+
timeoutMs?: number;
|
|
808
|
+
};
|
|
809
|
+
|
|
810
|
+
export type CloseGameSessionOptions = {
|
|
811
|
+
cwd?: string;
|
|
812
|
+
gameSessionId: string;
|
|
813
|
+
};
|
|
814
|
+
|
|
815
|
+
export type AirJamGameSessionSummary = {
|
|
816
|
+
ownerInstanceId: string;
|
|
817
|
+
semanticAccess: "owned-host" | "delegated-host" | "participant-only";
|
|
818
|
+
gameSessionId: string;
|
|
819
|
+
cwd: string;
|
|
820
|
+
gameId: string | null;
|
|
821
|
+
controllerSessionId: string;
|
|
822
|
+
projectMode: AirJamProjectMode;
|
|
823
|
+
mode: AirJamDevMode | null;
|
|
824
|
+
topologyMode:
|
|
825
|
+
| "standalone-dev"
|
|
826
|
+
| "arcade-live"
|
|
827
|
+
| "arcade-built"
|
|
828
|
+
| "self-hosted-production"
|
|
829
|
+
| null;
|
|
830
|
+
secure: boolean;
|
|
831
|
+
process: AirJamManagedDevProcess | null;
|
|
832
|
+
roomId: string;
|
|
833
|
+
/** The seat the room gave this phone. */
|
|
834
|
+
controllerId: string;
|
|
835
|
+
controllerJoinUrl: string;
|
|
836
|
+
socketOrigin: string;
|
|
837
|
+
connected: boolean;
|
|
838
|
+
connectedAt: string;
|
|
839
|
+
disconnectedAt: string | null;
|
|
840
|
+
disconnectReason: string | null;
|
|
841
|
+
hasAgentContract: boolean;
|
|
842
|
+
actions: AirJamGameSessionActionDescriptor[];
|
|
843
|
+
};
|
|
844
|
+
|
|
845
|
+
export type AirJamGameSessionInspection = AirJamGameSessionSummary & {
|
|
846
|
+
runtimeSnapshot: AirJamRuntimeSnapshotInspection;
|
|
847
|
+
gameSnapshot: AirJamGameSnapshotInspection | null;
|
|
848
|
+
};
|
|
849
|
+
|
|
850
|
+
export type SendGameSessionInputResult = AirJamGameSessionSummary & {
|
|
851
|
+
input: JsonObject;
|
|
852
|
+
sentAt: string;
|
|
853
|
+
};
|
|
854
|
+
|
|
855
|
+
export type InvokeGameSessionActionResult = AirJamGameSessionSummary & {
|
|
856
|
+
actionId: string;
|
|
857
|
+
lane: "player" | "host";
|
|
858
|
+
invocation: InvokeGameActionResult;
|
|
859
|
+
};
|
|
860
|
+
|
|
861
|
+
export type AirJamGameSessionVisualCaptureResult = AirJamGameSessionSummary & {
|
|
862
|
+
contract: "air-jam-game-session-visual-capture/v1";
|
|
863
|
+
capturedAt: string;
|
|
864
|
+
artifactDir: string;
|
|
865
|
+
screenshots: Array<AirJamRuntimeOwnerScreenshot & { filePath: string }>;
|
|
866
|
+
};
|
|
867
|
+
|
|
868
|
+
export type CloseGameSessionResult = {
|
|
869
|
+
closed: boolean;
|
|
870
|
+
disconnection: Pick<DisconnectControllerResult, "release" | "leave">;
|
|
871
|
+
session: AirJamGameSessionSummary;
|
|
872
|
+
};
|
|
873
|
+
|
|
874
|
+
export type AirJamVisualCaptureSummary = {
|
|
875
|
+
gameId: string;
|
|
876
|
+
mode: AirJamVisualArtifactMode;
|
|
877
|
+
secure: boolean;
|
|
878
|
+
capturedAt: string;
|
|
879
|
+
scenarios: Array<{
|
|
880
|
+
scenarioId: string;
|
|
881
|
+
status: "captured" | "failed";
|
|
882
|
+
screenshotCount: number;
|
|
883
|
+
relativeDir: string;
|
|
884
|
+
}>;
|
|
885
|
+
};
|
|
886
|
+
|
|
887
|
+
export type AirJamVisualCaptureInspection = {
|
|
888
|
+
gameId: string;
|
|
889
|
+
summaryPath: string;
|
|
890
|
+
summary: AirJamVisualCaptureSummary;
|
|
891
|
+
};
|
|
892
|
+
|
|
893
|
+
export type AirJamPlatformMachineSessionStore = import("zod").infer<
|
|
894
|
+
typeof import("./platform-auth.js").storedPlatformSessionSchema
|
|
895
|
+
>;
|
|
896
|
+
|
|
897
|
+
export type StartPlatformDeviceAuthorizationOptions = {
|
|
898
|
+
platformUrl?: string;
|
|
899
|
+
clientName?: string;
|
|
900
|
+
};
|
|
901
|
+
|
|
902
|
+
export type PollPlatformDeviceAuthorizationOptions = {
|
|
903
|
+
platformUrl?: string;
|
|
904
|
+
deviceCode: string;
|
|
905
|
+
};
|
|
906
|
+
|
|
907
|
+
export type LoginPlatformWithDeviceFlowOptions = {
|
|
908
|
+
platformUrl?: string;
|
|
909
|
+
clientName?: string;
|
|
910
|
+
onPrompt?: (payload: {
|
|
911
|
+
deviceCode: string;
|
|
912
|
+
userCode: string;
|
|
913
|
+
verificationUrl: string;
|
|
914
|
+
verificationUriComplete: string;
|
|
915
|
+
expiresAt: string;
|
|
916
|
+
intervalSeconds: number;
|
|
917
|
+
}) => void | Promise<void>;
|
|
918
|
+
};
|
|
919
|
+
|
|
920
|
+
export type GetPlatformMachineProfileOptions = {
|
|
921
|
+
platformUrl?: string;
|
|
922
|
+
token?: string;
|
|
923
|
+
};
|
|
924
|
+
|
|
925
|
+
export type LogoutPlatformMachineSessionOptions = {
|
|
926
|
+
platformUrl?: string;
|
|
927
|
+
token?: string;
|
|
928
|
+
};
|