@air-jam/devtools 0.0.0-stage → 0.9.3
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 +52 -2
- package/dist/agent.d.ts +15 -0
- package/dist/agent.js +19 -0
- package/dist/agent.js.map +1 -0
- package/dist/chunk-5YAARMW5.js +36 -0
- package/dist/chunk-5YAARMW5.js.map +1 -0
- package/dist/chunk-6WQODT37.js +1019 -0
- package/dist/chunk-6WQODT37.js.map +1 -0
- package/dist/chunk-CKFT2ZJE.js +801 -0
- package/dist/chunk-CKFT2ZJE.js.map +1 -0
- package/dist/chunk-ER3Q2C4G.js +358 -0
- package/dist/chunk-ER3Q2C4G.js.map +1 -0
- package/dist/chunk-GUEZP773.js +851 -0
- package/dist/chunk-GUEZP773.js.map +1 -0
- package/dist/chunk-HIDNI56E.js +33 -0
- package/dist/chunk-HIDNI56E.js.map +1 -0
- package/dist/chunk-QKXS5D35.js +43 -0
- package/dist/chunk-QKXS5D35.js.map +1 -0
- package/dist/chunk-S4LSCEVE.js +261 -0
- package/dist/chunk-S4LSCEVE.js.map +1 -0
- package/dist/chunk-VKMJO6VN.js +360 -0
- package/dist/chunk-VKMJO6VN.js.map +1 -0
- package/dist/chunk-WFUR3MXY.js +67 -0
- package/dist/chunk-WFUR3MXY.js.map +1 -0
- package/dist/chunk-XEMR7KUE.js +361 -0
- package/dist/chunk-XEMR7KUE.js.map +1 -0
- package/dist/chunk-ZLPD7FY5.js +191 -0
- package/dist/chunk-ZLPD7FY5.js.map +1 -0
- package/dist/context.d.ts +13 -0
- package/dist/context.js +9 -0
- package/dist/context.js.map +1 -0
- package/dist/controller.d.ts +41 -0
- package/dist/controller.js +30 -0
- package/dist/controller.js.map +1 -0
- package/dist/dev.d.ts +15 -0
- package/dist/dev.js +20 -0
- package/dist/dev.js.map +1 -0
- package/dist/game-session-broker.d.ts +57 -0
- package/dist/game-session-broker.js +235 -0
- package/dist/game-session-broker.js.map +1 -0
- package/dist/game-session.d.ts +13 -0
- package/dist/game-session.js +24 -0
- package/dist/game-session.js.map +1 -0
- package/dist/games.d.ts +21 -0
- package/dist/games.js +14 -0
- package/dist/games.js.map +1 -0
- package/dist/harness/visual.d.ts +321 -0
- package/dist/harness/visual.js +41 -0
- package/dist/harness/visual.js.map +1 -0
- package/dist/logs.d.ts +9 -0
- package/dist/logs.js +58 -0
- package/dist/logs.js.map +1 -0
- package/dist/mcp-config.d.ts +63 -0
- package/dist/mcp-config.js +190 -0
- package/dist/mcp-config.js.map +1 -0
- package/dist/platform-auth.d.ts +112 -0
- package/dist/platform-auth.js +37 -0
- package/dist/platform-auth.js.map +1 -0
- package/dist/platform-game-media.d.ts +309 -0
- package/dist/platform-game-media.js +168 -0
- package/dist/platform-game-media.js.map +1 -0
- package/dist/platform-games.d.ts +65 -0
- package/dist/platform-games.js +251 -0
- package/dist/platform-games.js.map +1 -0
- package/dist/quality.d.ts +10 -0
- package/dist/quality.js +63 -0
- package/dist/quality.js.map +1 -0
- package/dist/release.d.ts +1094 -0
- package/dist/release.js +1347 -0
- package/dist/release.js.map +1 -0
- package/dist/tooling/agent-contract.d.ts +2 -0
- package/dist/tooling/agent-contract.js +193 -0
- package/dist/tooling/agent-contract.js.map +1 -0
- package/dist/tooling/hold-runtime-host.d.ts +2 -0
- package/dist/tooling/hold-runtime-host.js +229 -0
- package/dist/tooling/hold-runtime-host.js.map +1 -0
- package/dist/tooling/inspect-airjam-agent.d.ts +2 -0
- package/dist/tooling/inspect-airjam-agent.js +37 -0
- package/dist/tooling/inspect-airjam-agent.js.map +1 -0
- package/dist/tooling/list-visual-scenarios.d.ts +2 -0
- package/dist/tooling/list-visual-scenarios.js +62 -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/run-visual-capture.d.ts +2 -0
- package/dist/tooling/run-visual-capture.js +167 -0
- package/dist/tooling/run-visual-capture.js.map +1 -0
- package/dist/types-C6NrHt88.d.ts +775 -0
- package/dist/visual.d.ts +15 -0
- package/dist/visual.js +263 -0
- package/dist/visual.js.map +1 -0
- package/package.json +113 -3
- package/src/agent.ts +380 -0
- package/src/commands.ts +40 -0
- package/src/context.ts +229 -0
- package/src/controller.ts +1376 -0
- package/src/dev.ts +999 -0
- package/src/fs-utils.ts +93 -0
- package/src/game-action-observation.ts +96 -0
- package/src/game-session-broker.ts +301 -0
- package/src/game-session.ts +459 -0
- package/src/games.ts +266 -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 +546 -0
- package/src/harness/visual/scenario-contract.ts +9 -0
- package/src/harness/visual/scenario-helpers.ts +63 -0
- package/src/harness/visual/session.ts +369 -0
- package/src/harness/visual/types.ts +181 -0
- package/src/harness/visual.ts +7 -0
- package/src/helper-scripts.ts +49 -0
- package/src/logs.ts +67 -0
- package/src/mcp-config.ts +262 -0
- package/src/platform-auth.ts +455 -0
- package/src/platform-game-media.ts +209 -0
- package/src/platform-games.ts +315 -0
- package/src/quality.ts +82 -0
- package/src/release.ts +1697 -0
- package/src/runtime-owner-protocol.ts +130 -0
- package/src/tooling/agent-contract.ts +232 -0
- package/src/tooling/agent-declaration.ts +36 -0
- package/src/tooling/airjam-agent-inspection.ts +45 -0
- package/src/tooling/airjam-agent.ts +118 -0
- package/src/tooling/hold-runtime-host.ts +224 -0
- package/src/tooling/inspect-airjam-agent.ts +20 -0
- package/src/tooling/list-visual-scenarios.ts +64 -0
- package/src/tooling/managed-dev-supervisor.ts +71 -0
- package/src/tooling/run-visual-capture.ts +217 -0
- package/src/tooling/runtime-owner-actions.ts +42 -0
- package/src/tooling/visual-pack.ts +46 -0
- package/src/types.ts +951 -0
- package/src/visual.ts +304 -0
- package/src/workspace-contract.ts +32 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Air Jam contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,53 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Air Jam Devtools
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The Node authoring and evaluation toolchain shared by Air Jam CLI, MCP and
|
|
4
|
+
Studio consumers. Games use `@air-jam/sdk`; tools use the explicit devtools
|
|
5
|
+
module that owns their operation. There is no catch-all root import.
|
|
6
|
+
|
|
7
|
+
## Entry points
|
|
8
|
+
|
|
9
|
+
| Import suffix | Responsibility |
|
|
10
|
+
| --------------------- | ----------------------------------------------------------------- |
|
|
11
|
+
| `context` | Discover and inspect a game or declared workspace |
|
|
12
|
+
| `games` | Inspect games and their available capabilities |
|
|
13
|
+
| `dev` | Start, inspect, reset and stop managed development |
|
|
14
|
+
| `logs` | Read the unified development log stream |
|
|
15
|
+
| `controller` | Connect virtual controllers, send input and inspect runtime state |
|
|
16
|
+
| `agent` | Inspect semantic game contracts and invoke actions |
|
|
17
|
+
| `game-session` | Own a complete semantic playtest session |
|
|
18
|
+
| `game-session-broker` | Broker sessions for tool hosts |
|
|
19
|
+
| `visual` | List scenarios and capture game visuals |
|
|
20
|
+
| `harness/visual` | Define and run visual or prefab capture harnesses |
|
|
21
|
+
| `quality` | Run project quality gates and complete evaluations |
|
|
22
|
+
| `mcp-config` | Inspect, write and repair project MCP configuration |
|
|
23
|
+
| `platform-auth` | Authenticate optional hosted operations |
|
|
24
|
+
| `platform-games` | Manage optional hosted game metadata |
|
|
25
|
+
| `platform-game-media` | Manage optional hosted game media |
|
|
26
|
+
| `release` | Prepare and operate optional hosted releases |
|
|
27
|
+
|
|
28
|
+
Functions and their public option/result types share an entry point:
|
|
29
|
+
|
|
30
|
+
```ts
|
|
31
|
+
import { startDev, type StartDevOptions } from "@air-jam/devtools/dev";
|
|
32
|
+
|
|
33
|
+
const options: StartDevOptions = { cwd: process.cwd(), mode: "standalone-dev" };
|
|
34
|
+
const development = await startDev(options);
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
CLI and MCP are the normal human/agent front doors. Import these modules when
|
|
38
|
+
embedding the same operations in another tool host. Packaged executable helpers
|
|
39
|
+
are implementation details used by that version of devtools, not independent
|
|
40
|
+
public entry points.
|
|
41
|
+
|
|
42
|
+
## Workspace and package contracts
|
|
43
|
+
|
|
44
|
+
Ordinary game projects need no workspace declaration. A workspace owns its
|
|
45
|
+
entrypoint and supported modes through the
|
|
46
|
+
[workspace runtime contract](../../docs/contracts/workspace-runtime-contract.md),
|
|
47
|
+
not through a guessed repository layout or a root SDK dependency.
|
|
48
|
+
|
|
49
|
+
All six Air Jam packages release together. Upgrade the coordinated family
|
|
50
|
+
together; documented module exports and their types follow the
|
|
51
|
+
[public support contract](../../docs/contracts/public-package-support-contract.md).
|
|
52
|
+
Hosted clients are optional: local development, inspection and evaluation do
|
|
53
|
+
not require an Air Jam platform account.
|
package/dist/agent.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { I as InspectGameAgentContractOptions, A as AirJamAgentContractInspection, R as ReadGameSnapshotOptions, a as AirJamGameSnapshotInspection, J as JsonObject, b as InvokeGameActionOptions, c as InvokeGameActionResult } from './types-C6NrHt88.js';
|
|
2
|
+
import '@air-jam/sdk';
|
|
3
|
+
import '@air-jam/sdk/platform-machine';
|
|
4
|
+
|
|
5
|
+
declare const inspectGameAgentContract: ({ cwd, gameId, }?: InspectGameAgentContractOptions) => Promise<AirJamAgentContractInspection>;
|
|
6
|
+
declare const readGameSnapshot: ({ controllerSessionId, requestSync, timeoutMs, }: ReadGameSnapshotOptions) => Promise<AirJamGameSnapshotInspection>;
|
|
7
|
+
declare const resolveGameActionPayload: ({ cwd, gameId, actionId, payload, }: {
|
|
8
|
+
cwd?: string;
|
|
9
|
+
gameId: string;
|
|
10
|
+
actionId: string;
|
|
11
|
+
payload?: unknown;
|
|
12
|
+
}) => Promise<JsonObject | undefined>;
|
|
13
|
+
declare const invokeGameAction: ({ controllerSessionId, actionId, payload, timeoutMs, }: InvokeGameActionOptions) => Promise<InvokeGameActionResult>;
|
|
14
|
+
|
|
15
|
+
export { AirJamAgentContractInspection, AirJamGameSnapshotInspection, InspectGameAgentContractOptions, InvokeGameActionOptions, InvokeGameActionResult, ReadGameSnapshotOptions, inspectGameAgentContract, invokeGameAction, readGameSnapshot, resolveGameActionPayload };
|
package/dist/agent.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
inspectGameAgentContract,
|
|
3
|
+
invokeGameAction,
|
|
4
|
+
readGameSnapshot,
|
|
5
|
+
resolveGameActionPayload
|
|
6
|
+
} from "./chunk-XEMR7KUE.js";
|
|
7
|
+
import "./chunk-6WQODT37.js";
|
|
8
|
+
import "./chunk-QKXS5D35.js";
|
|
9
|
+
import "./chunk-CKFT2ZJE.js";
|
|
10
|
+
import "./chunk-ZLPD7FY5.js";
|
|
11
|
+
import "./chunk-5YAARMW5.js";
|
|
12
|
+
import "./chunk-S4LSCEVE.js";
|
|
13
|
+
export {
|
|
14
|
+
inspectGameAgentContract,
|
|
15
|
+
invokeGameAction,
|
|
16
|
+
readGameSnapshot,
|
|
17
|
+
resolveGameActionPayload
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=agent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// src/commands.ts
|
|
2
|
+
import crossSpawn from "cross-spawn";
|
|
3
|
+
var createBaseEnv = () => ({
|
|
4
|
+
...process.env,
|
|
5
|
+
CI: process.env.CI ?? "1",
|
|
6
|
+
NO_UPDATE_NOTIFIER: "1"
|
|
7
|
+
});
|
|
8
|
+
var runCommandResult = ({
|
|
9
|
+
command,
|
|
10
|
+
args,
|
|
11
|
+
cwd
|
|
12
|
+
}) => {
|
|
13
|
+
const startedAt = Date.now();
|
|
14
|
+
const result = crossSpawn.sync(command, args, {
|
|
15
|
+
cwd,
|
|
16
|
+
encoding: "utf8",
|
|
17
|
+
env: createBaseEnv()
|
|
18
|
+
});
|
|
19
|
+
const exitCode = result.status ?? null;
|
|
20
|
+
return {
|
|
21
|
+
command,
|
|
22
|
+
args,
|
|
23
|
+
cwd,
|
|
24
|
+
exitCode,
|
|
25
|
+
signal: result.signal,
|
|
26
|
+
stdout: result.stdout ?? "",
|
|
27
|
+
stderr: result.stderr ?? (result.error instanceof Error ? result.error.message : ""),
|
|
28
|
+
durationMs: Date.now() - startedAt,
|
|
29
|
+
ok: exitCode === 0 && !result.error
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export {
|
|
34
|
+
runCommandResult
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=chunk-5YAARMW5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands.ts"],"sourcesContent":["import crossSpawn from \"cross-spawn\";\nimport type { CommandResult } from \"./types.js\";\n\nconst createBaseEnv = (): NodeJS.ProcessEnv => ({\n ...process.env,\n CI: process.env.CI ?? \"1\",\n NO_UPDATE_NOTIFIER: \"1\",\n});\n\nexport const runCommandResult = ({\n command,\n args,\n cwd,\n}: {\n command: string;\n args: string[];\n cwd: string;\n}): CommandResult => {\n const startedAt = Date.now();\n const result = crossSpawn.sync(command, args, {\n cwd,\n encoding: \"utf8\",\n env: createBaseEnv(),\n });\n\n const exitCode = result.status ?? null;\n return {\n command,\n args,\n cwd,\n exitCode,\n signal: result.signal,\n stdout: result.stdout ?? \"\",\n stderr:\n result.stderr ??\n (result.error instanceof Error ? result.error.message : \"\"),\n durationMs: Date.now() - startedAt,\n ok: exitCode === 0 && !result.error,\n };\n};\n"],"mappings":";AAAA,OAAO,gBAAgB;AAGvB,IAAM,gBAAgB,OAA0B;AAAA,EAC9C,GAAG,QAAQ;AAAA,EACX,IAAI,QAAQ,IAAI,MAAM;AAAA,EACtB,oBAAoB;AACtB;AAEO,IAAM,mBAAmB,CAAC;AAAA,EAC/B;AAAA,EACA;AAAA,EACA;AACF,MAIqB;AACnB,QAAM,YAAY,KAAK,IAAI;AAC3B,QAAM,SAAS,WAAW,KAAK,SAAS,MAAM;AAAA,IAC5C;AAAA,IACA,UAAU;AAAA,IACV,KAAK,cAAc;AAAA,EACrB,CAAC;AAED,QAAM,WAAW,OAAO,UAAU;AAClC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,QAAQ,OAAO;AAAA,IACf,QAAQ,OAAO,UAAU;AAAA,IACzB,QACE,OAAO,WACN,OAAO,iBAAiB,QAAQ,OAAO,MAAM,UAAU;AAAA,IAC1D,YAAY,KAAK,IAAI,IAAI;AAAA,IACzB,IAAI,aAAa,KAAK,CAAC,OAAO;AAAA,EAChC;AACF;","names":[]}
|