@godot-mcp/protocol 0.0.0 → 0.1.0
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 +105 -2
- package/dist/canonicalJson.d.ts +4 -0
- package/dist/canonicalJson.d.ts.map +1 -0
- package/dist/canonicalJson.js +68 -0
- package/dist/canonicalJson.js.map +1 -0
- package/dist/editor.d.ts +130 -0
- package/dist/editor.d.ts.map +1 -0
- package/dist/editor.js +179 -0
- package/dist/editor.js.map +1 -0
- package/dist/editorAuthoring.d.ts +246 -0
- package/dist/editorAuthoring.d.ts.map +1 -0
- package/dist/editorAuthoring.js +132 -0
- package/dist/editorAuthoring.js.map +1 -0
- package/dist/editorMutation.d.ts +1239 -0
- package/dist/editorMutation.d.ts.map +1 -0
- package/dist/editorMutation.js +178 -0
- package/dist/editorMutation.js.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -0
- package/dist/input.d.ts +1414 -0
- package/dist/input.d.ts.map +1 -0
- package/dist/input.js +237 -0
- package/dist/input.js.map +1 -0
- package/dist/projectOperations.d.ts +151 -0
- package/dist/projectOperations.d.ts.map +1 -0
- package/dist/projectOperations.js +138 -0
- package/dist/projectOperations.js.map +1 -0
- package/dist/runtime.d.ts +349 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +164 -0
- package/dist/runtime.js.map +1 -0
- package/dist/runtimeDebug.d.ts +115 -0
- package/dist/runtimeDebug.d.ts.map +1 -0
- package/dist/runtimeDebug.js +123 -0
- package/dist/runtimeDebug.js.map +1 -0
- package/dist/runtimePerformance.d.ts +262 -0
- package/dist/runtimePerformance.d.ts.map +1 -0
- package/dist/runtimePerformance.js +165 -0
- package/dist/runtimePerformance.js.map +1 -0
- package/dist/runtimeShared.d.ts +19 -0
- package/dist/runtimeShared.d.ts.map +1 -0
- package/dist/runtimeShared.js +18 -0
- package/dist/runtimeShared.js.map +1 -0
- package/dist/schemas.d.ts +118 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +95 -0
- package/dist/schemas.js.map +1 -0
- package/dist/unsafeFixture.d.ts +51 -0
- package/dist/unsafeFixture.d.ts.map +1 -0
- package/dist/unsafeFixture.js +25 -0
- package/dist/unsafeFixture.js.map +1 -0
- package/dist/version.d.ts +3 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +4 -0
- package/dist/version.js.map +1 -0
- package/dist/visual.d.ts +812 -0
- package/dist/visual.d.ts.map +1 -0
- package/dist/visual.js +177 -0
- package/dist/visual.js.map +1 -0
- package/package.json +25 -6
- package/product.json +4 -0
- package/index.js +0 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Godot MCP 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,106 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Godot MCP
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Godot MCP is an open-source, security-first MCP server and Godot editor addon. Phase 7 provides reversible installation, authenticated Godot 4.7 editor attachment, six default observe-only tools, explicitly gated runtime/input surfaces, permission-scoped editor authoring, native read-only GDScript debugging, and bounded structured performance evidence.
|
|
4
|
+
|
|
5
|
+
## Requirements
|
|
6
|
+
|
|
7
|
+
- macOS (the currently certified platform)
|
|
8
|
+
- Node.js 22
|
|
9
|
+
- pnpm 11.13.0
|
|
10
|
+
- Godot 4.7 stable
|
|
11
|
+
|
|
12
|
+
Compatibility is evidence-gated by `release/compatibility-matrix.json`. Godot 4.4–4.6 and Linux/Windows remain experimental until their exact matrix cells carry trusted certification receipts; pending cells are not advertised as supported.
|
|
13
|
+
|
|
14
|
+
## Source quick start
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
pnpm install --frozen-lockfile
|
|
18
|
+
pnpm build
|
|
19
|
+
node /absolute/path/to/godot-mcp/packages/cli/dist/bin.js init --project /absolute/path/to/godot-project
|
|
20
|
+
node /absolute/path/to/godot-mcp/packages/cli/dist/bin.js doctor --project /absolute/path/to/godot-project
|
|
21
|
+
node /absolute/path/to/godot-mcp/packages/cli/dist/bin.js editor --project /absolute/path/to/godot-project
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
For a verified release-to-release replacement, run `godot-mcp upgrade --project /absolute/path/to/godot-project --source /absolute/path/to/new/addons/godot_mcp`. Upgrade and rollback refuse independently modified installed files and preserve the original uninstall preimage.
|
|
25
|
+
|
|
26
|
+
Use the `editor` command for the Phase 7-certified launch. It writes a short-lived owner-only startup attestation, then starts Godot with the authenticated editor debugger and native DAP assigned to one loopback port; the debugger binds first, so unauthenticated DAP never acquires a listener. The addon consumes the attestation and connects outward only when a matching MCP runtime publishes a short-lived pairing descriptor. Opening the project through another launcher keeps earlier editor features available, but runtime debugging fails closed because secure startup cannot be proven by copied user arguments alone.
|
|
27
|
+
|
|
28
|
+
Register the source checkout with Codex using absolute paths:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
codex mcp add godot -- node /absolute/path/to/godot-mcp/packages/cli/dist/bin.js connect --project /absolute/path/to/godot-project
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
The default registration remains observe-only. To opt into one MCP-owned instrumented runtime, explicitly grant both its tier and pack:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
codex mcp add godot-runtime -- node /absolute/path/to/godot-mcp/packages/cli/dist/bin.js connect --project /absolute/path/to/godot-project --grant runtime_control --pack runtime
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
To launch and automate the owned runtime, grant the input pack separately:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
codex mcp add godot-runtime-input -- node /absolute/path/to/godot-mcp/packages/cli/dist/bin.js connect --project /absolute/path/to/godot-project --grant runtime_control --pack runtime --pack input
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
To preview and apply bounded editor mutations, explicitly grant both the mutation tier and editor pack:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
codex mcp add godot-editor -- node /absolute/path/to/godot-mcp/packages/cli/dist/bin.js connect --project /absolute/path/to/godot-project --grant project_mutate --pack editor
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Start a fresh Codex task after registration so the newly registered MCP server is exposed. To stop using the addon while retaining its files, or remove the verified installation completely:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
node /absolute/path/to/godot-mcp/packages/cli/dist/bin.js disable --project /absolute/path/to/godot-project
|
|
56
|
+
node /absolute/path/to/godot-mcp/packages/cli/dist/bin.js uninstall --project /absolute/path/to/godot-project
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Uninstall refuses to remove the addon, project configuration, or `project.godot` if they changed independently after installation.
|
|
60
|
+
|
|
61
|
+
## Implemented MCP tools
|
|
62
|
+
|
|
63
|
+
- `godot_session` — attachment, project identity, versions, and grants
|
|
64
|
+
- `godot_capabilities` — currently visible observe/core capabilities
|
|
65
|
+
- `godot_doctor` — installation, plugin, identity, and attachment diagnostics
|
|
66
|
+
- `godot_help` — built-in usage and security-boundary help
|
|
67
|
+
- `godot_query` — bounded editor state, open scene/tree/node metadata, indexed resources, approved project settings, and redacted diagnostics
|
|
68
|
+
- `godot_capture` — bounded PNG from the current 2D or selected 3D editor viewport, returned as MCP image content and persisted as session evidence
|
|
69
|
+
|
|
70
|
+
The default six tools are read-only and closed-world. A runtime-authorized session additionally exposes:
|
|
71
|
+
|
|
72
|
+
- `godot_runtime` — launch, bounded runtime queries/control, native GDScript breakpoints/stacks/variables/selector watches, monitor snapshots, and cancellable structured profiles for one authenticated child runtime
|
|
73
|
+
- `godot_runtime_capture` — one to eight ordered running-game PNG frames with verified evidence metadata
|
|
74
|
+
- `godot_input` — bounded events, frame-indexed sequences, non-passive recording, and deterministic replay for the owned runtime
|
|
75
|
+
- `godot_editor` — preview, apply, undo, and redo one bounded scene/node/resource/source authoring batch with durable idempotency and native editor history
|
|
76
|
+
|
|
77
|
+
For example:
|
|
78
|
+
|
|
79
|
+
```json
|
|
80
|
+
{ "operation": "scene_tree", "scenePath": "res://main.tscn", "maxDepth": 8, "maxNodes": 250 }
|
|
81
|
+
{ "viewport": "2d", "maxWidth": 1280, "maxHeight": 720 }
|
|
82
|
+
{ "operation": "launch", "scenePath": "res://main.tscn" }
|
|
83
|
+
{ "operation": "debug_breakpoints_set", "handle": { "runId": "<run UUID>", "generation": 1 }, "breakpoints": [{ "sourcePath": "res://player.gd", "line": 42 }] }
|
|
84
|
+
{ "operation": "profile_start", "handle": { "runId": "<run UUID>", "generation": 1 }, "durationMs": 1000, "intervalFrames": 1, "groups": ["frame", "memory"], "retainRaw": false }
|
|
85
|
+
{ "operation": "sequence", "handle": { "runId": "<run UUID>", "generation": 1 }, "mode": "deterministic", "events": [{ "frameOffset": 0, "event": { "type": "action", "action": "jump", "pressed": true, "strengthMillionths": 1000000 } }, { "frameOffset": 1, "event": { "type": "action", "action": "jump", "pressed": false, "strengthMillionths": 0 } }] }
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Runtime control and input are off unless their explicit flags are present. Deterministic sequences/replay require a paused owned runtime; offsets are zero-based, so offsets 0–1 process across two rendered frames and leave it paused. Recording captures only MCP-injected events. Receipts and audit summaries omit raw action names, keycodes, coordinates, and trace payloads. There is no OS-global/editor input, arbitrary text, process, filesystem, network, method-call, or GDScript-evaluation primitive.
|
|
89
|
+
|
|
90
|
+
## Development and certification
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
GODOT_BIN=/opt/homebrew/bin/godot pnpm qa:phase-0-1
|
|
94
|
+
GODOT_BIN=/opt/homebrew/bin/godot pnpm qa:phase-2
|
|
95
|
+
GODOT_BIN=/opt/homebrew/bin/godot pnpm qa:phase-3
|
|
96
|
+
GODOT_BIN=/opt/homebrew/bin/godot pnpm qa:phase-4
|
|
97
|
+
GODOT_BIN=/opt/homebrew/bin/godot pnpm qa:phase-5
|
|
98
|
+
GODOT_BIN=/opt/homebrew/bin/godot pnpm qa:phase-6
|
|
99
|
+
GODOT_BIN=/opt/homebrew/bin/godot pnpm qa:phase-7
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
The Phase 7 gate certifies secure shared-port editor startup, native-DAP inertness, authenticated editor-session debugging, breakpoints/stacks/variables/selector watches, bounded public monitor snapshots, completed and cancelled profiles, hostile-input rejection, published stdio behavior, and zero owned-state or fixture residue. Earlier gates remain required regressions. See [Phase 7 testing](docs/testing/phase-7.md), [Phase 6 testing](docs/testing/phase-6.md), the [threat model](docs/security/threat-model.md), the [bridge protocol](docs/protocol/bridge-v1.md), and the [master design](docs/superpowers/specs/2026-07-15-godot-mcp-master-design.md).
|
|
103
|
+
|
|
104
|
+
## Roadmap
|
|
105
|
+
|
|
106
|
+
Later phases add declarative playtests, imports/builds/exports, evidence retrieval, compatibility lanes, and explicitly gated disposable-fixture unsafe mode. None of those capabilities are claimed by Phase 7.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"canonicalJson.d.ts","sourceRoot":"","sources":["../src/canonicalJson.ts"],"names":[],"mappings":"AA0DA,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAEpD;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKxD;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAMrD"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
function normalize(value, ancestors) {
|
|
2
|
+
if (value === null || typeof value === "boolean" || typeof value === "string") {
|
|
3
|
+
return value;
|
|
4
|
+
}
|
|
5
|
+
if (typeof value === "number") {
|
|
6
|
+
if (!Number.isFinite(value) || !Number.isSafeInteger(value)) {
|
|
7
|
+
throw new TypeError("Canonical JSON v1 accepts only finite safe integers");
|
|
8
|
+
}
|
|
9
|
+
return Object.is(value, -0) ? 0 : value;
|
|
10
|
+
}
|
|
11
|
+
if (value === undefined ||
|
|
12
|
+
typeof value === "bigint" ||
|
|
13
|
+
typeof value === "function" ||
|
|
14
|
+
typeof value === "symbol") {
|
|
15
|
+
throw new TypeError(`Canonical JSON v1 does not support ${typeof value}`);
|
|
16
|
+
}
|
|
17
|
+
if (ancestors.has(value)) {
|
|
18
|
+
throw new TypeError("Canonical JSON v1 does not support cyclic values");
|
|
19
|
+
}
|
|
20
|
+
ancestors.add(value);
|
|
21
|
+
try {
|
|
22
|
+
if (Array.isArray(value)) {
|
|
23
|
+
const normalized = [];
|
|
24
|
+
for (let index = 0; index < value.length; index += 1) {
|
|
25
|
+
if (!(index in value)) {
|
|
26
|
+
throw new TypeError("Canonical JSON v1 does not support sparse arrays");
|
|
27
|
+
}
|
|
28
|
+
normalized.push(normalize(value[index], ancestors));
|
|
29
|
+
}
|
|
30
|
+
return normalized;
|
|
31
|
+
}
|
|
32
|
+
const prototype = Object.getPrototypeOf(value);
|
|
33
|
+
if (prototype !== Object.prototype && prototype !== null) {
|
|
34
|
+
throw new TypeError("Canonical JSON v1 accepts only arrays and plain objects");
|
|
35
|
+
}
|
|
36
|
+
if (Object.getOwnPropertySymbols(value).length > 0) {
|
|
37
|
+
throw new TypeError("Canonical JSON v1 does not support symbol keys");
|
|
38
|
+
}
|
|
39
|
+
const normalized = {};
|
|
40
|
+
for (const key of Object.keys(value).sort()) {
|
|
41
|
+
normalized[key] = normalize(value[key], ancestors);
|
|
42
|
+
}
|
|
43
|
+
return normalized;
|
|
44
|
+
}
|
|
45
|
+
finally {
|
|
46
|
+
ancestors.delete(value);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
export function canonicalJson(value) {
|
|
50
|
+
return JSON.stringify(normalize(value, new Set()));
|
|
51
|
+
}
|
|
52
|
+
export function canonicalFloat64Le(value) {
|
|
53
|
+
if (!Number.isFinite(value))
|
|
54
|
+
throw new TypeError("Float64 canonical encoding requires a finite number");
|
|
55
|
+
const bytes = new Uint8Array(8);
|
|
56
|
+
new DataView(bytes.buffer).setFloat64(0, value, true);
|
|
57
|
+
return [...bytes].map((byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
58
|
+
}
|
|
59
|
+
export function decodeFloat64Le(value) {
|
|
60
|
+
if (!/^[a-f0-9]{16}$/.test(value))
|
|
61
|
+
throw new TypeError("Float64 canonical encoding must be 16 lowercase hex characters");
|
|
62
|
+
const bytes = Uint8Array.from(value.match(/../g).map((pair) => Number.parseInt(pair, 16)));
|
|
63
|
+
const decoded = new DataView(bytes.buffer).getFloat64(0, true);
|
|
64
|
+
if (!Number.isFinite(decoded))
|
|
65
|
+
throw new TypeError("Float64 canonical encoding must decode to a finite number");
|
|
66
|
+
return decoded;
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=canonicalJson.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"canonicalJson.js","sourceRoot":"","sources":["../src/canonicalJson.ts"],"names":[],"mappings":"AAEA,SAAS,SAAS,CAAC,KAAc,EAAE,SAAsB;IACvD,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,SAAS,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9E,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;YAC5D,MAAM,IAAI,SAAS,CAAC,qDAAqD,CAAC,CAAC;QAC7E,CAAC;QACD,OAAO,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAC1C,CAAC;IAED,IACE,KAAK,KAAK,SAAS;QACnB,OAAO,KAAK,KAAK,QAAQ;QACzB,OAAO,KAAK,KAAK,UAAU;QAC3B,OAAO,KAAK,KAAK,QAAQ,EACzB,CAAC;QACD,MAAM,IAAI,SAAS,CAAC,sCAAsC,OAAO,KAAK,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED,IAAI,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;QACzB,MAAM,IAAI,SAAS,CAAC,kDAAkD,CAAC,CAAC;IAC1E,CAAC;IAED,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACrB,IAAI,CAAC;QACH,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YACzB,MAAM,UAAU,GAAqB,EAAE,CAAC;YACxC,KAAK,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InputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
|
+
operation: z.ZodLiteral<"editor_state">;
|
|
4
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5
|
+
operation: z.ZodLiteral<"scene_tree">;
|
|
6
|
+
scenePath: z.ZodOptional<z.ZodString>;
|
|
7
|
+
maxDepth: z.ZodDefault<z.ZodNumber>;
|
|
8
|
+
maxNodes: z.ZodDefault<z.ZodNumber>;
|
|
9
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
10
|
+
operation: z.ZodLiteral<"node">;
|
|
11
|
+
scenePath: z.ZodString;
|
|
12
|
+
nodePath: z.ZodString;
|
|
13
|
+
includeProperties: z.ZodDefault<z.ZodBoolean>;
|
|
14
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
15
|
+
operation: z.ZodLiteral<"resources">;
|
|
16
|
+
prefix: z.ZodDefault<z.ZodString>;
|
|
17
|
+
kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
18
|
+
other: "other";
|
|
19
|
+
script: "script";
|
|
20
|
+
audio: "audio";
|
|
21
|
+
shader: "shader";
|
|
22
|
+
scene: "scene";
|
|
23
|
+
resource: "resource";
|
|
24
|
+
texture: "texture";
|
|
25
|
+
}>>>;
|
|
26
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
27
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
28
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
29
|
+
operation: z.ZodLiteral<"project_settings">;
|
|
30
|
+
prefix: z.ZodEnum<{
|
|
31
|
+
"application/": "application/";
|
|
32
|
+
"audio/": "audio/";
|
|
33
|
+
"display/": "display/";
|
|
34
|
+
"input/": "input/";
|
|
35
|
+
"navigation/": "navigation/";
|
|
36
|
+
"physics/": "physics/";
|
|
37
|
+
"rendering/": "rendering/";
|
|
38
|
+
}>;
|
|
39
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
40
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
41
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
42
|
+
operation: z.ZodLiteral<"diagnostics">;
|
|
43
|
+
afterSequence: z.ZodDefault<z.ZodNumber>;
|
|
44
|
+
levels: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
45
|
+
script: "script";
|
|
46
|
+
error: "error";
|
|
47
|
+
log: "log";
|
|
48
|
+
warning: "warning";
|
|
49
|
+
shader: "shader";
|
|
50
|
+
}>>>;
|
|
51
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
52
|
+
}, z.core.$strict>], "operation">;
|
|
53
|
+
export declare const EditorCaptureInputSchema: z.ZodObject<{
|
|
54
|
+
viewport: z.ZodEnum<{
|
|
55
|
+
"2d": "2d";
|
|
56
|
+
"3d": "3d";
|
|
57
|
+
}>;
|
|
58
|
+
viewportIndex: z.ZodOptional<z.ZodNumber>;
|
|
59
|
+
maxWidth: z.ZodDefault<z.ZodNumber>;
|
|
60
|
+
maxHeight: z.ZodDefault<z.ZodNumber>;
|
|
61
|
+
}, z.core.$strict>;
|
|
62
|
+
export declare const EditorCaptureResultSchema: z.ZodObject<{
|
|
63
|
+
mimeType: z.ZodLiteral<"image/png">;
|
|
64
|
+
viewport: z.ZodEnum<{
|
|
65
|
+
"2d": "2d";
|
|
66
|
+
"3d": "3d";
|
|
67
|
+
}>;
|
|
68
|
+
viewportIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
69
|
+
width: z.ZodNumber;
|
|
70
|
+
height: z.ZodNumber;
|
|
71
|
+
byteLength: z.ZodNumber;
|
|
72
|
+
sha256: z.ZodString;
|
|
73
|
+
}, z.core.$strict>;
|
|
74
|
+
export declare const BridgeCommandChunkSchema: z.ZodObject<{
|
|
75
|
+
requestId: z.ZodUUID;
|
|
76
|
+
index: z.ZodNumber;
|
|
77
|
+
total: z.ZodNumber;
|
|
78
|
+
sha256: z.ZodString;
|
|
79
|
+
data: z.ZodString;
|
|
80
|
+
}, z.core.$strict>;
|
|
81
|
+
export declare const BridgeCommandResultSchema: z.ZodObject<{
|
|
82
|
+
requestId: z.ZodUUID;
|
|
83
|
+
ok: z.ZodBoolean;
|
|
84
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
85
|
+
binary: z.ZodOptional<z.ZodObject<{
|
|
86
|
+
size: z.ZodNumber;
|
|
87
|
+
sha256: z.ZodString;
|
|
88
|
+
chunks: z.ZodNumber;
|
|
89
|
+
}, z.core.$strict>>;
|
|
90
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
91
|
+
code: z.ZodEnum<{
|
|
92
|
+
INVALID_REQUEST: "INVALID_REQUEST";
|
|
93
|
+
PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
|
|
94
|
+
CONFLICT: "CONFLICT";
|
|
95
|
+
TARGET_NOT_FOUND: "TARGET_NOT_FOUND";
|
|
96
|
+
TIMEOUT: "TIMEOUT";
|
|
97
|
+
GODOT_RUNTIME_ERROR: "GODOT_RUNTIME_ERROR";
|
|
98
|
+
NOT_ATTACHED: "NOT_ATTACHED";
|
|
99
|
+
AUTHENTICATION_FAILED: "AUTHENTICATION_FAILED";
|
|
100
|
+
PERMISSION_REQUIRED: "PERMISSION_REQUIRED";
|
|
101
|
+
VERSION_MISMATCH: "VERSION_MISMATCH";
|
|
102
|
+
PROJECT_CHANGED: "PROJECT_CHANGED";
|
|
103
|
+
PATH_DENIED: "PATH_DENIED";
|
|
104
|
+
STALE_HANDLE: "STALE_HANDLE";
|
|
105
|
+
PRECONDITION_FAILED: "PRECONDITION_FAILED";
|
|
106
|
+
CANCELLED: "CANCELLED";
|
|
107
|
+
GODOT_PARSE_ERROR: "GODOT_PARSE_ERROR";
|
|
108
|
+
ASSERTION_FAILED: "ASSERTION_FAILED";
|
|
109
|
+
ROLLBACK_FAILED: "ROLLBACK_FAILED";
|
|
110
|
+
EXPORT_LEAK_DETECTED: "EXPORT_LEAK_DETECTED";
|
|
111
|
+
}>;
|
|
112
|
+
message: z.ZodString;
|
|
113
|
+
retryable: z.ZodBoolean;
|
|
114
|
+
failedPhase: z.ZodDefault<z.ZodString>;
|
|
115
|
+
partialEffects: z.ZodDefault<z.ZodBoolean>;
|
|
116
|
+
rollback: z.ZodDefault<z.ZodEnum<{
|
|
117
|
+
failed: "failed";
|
|
118
|
+
succeeded: "succeeded";
|
|
119
|
+
not_needed: "not_needed";
|
|
120
|
+
not_attempted: "not_attempted";
|
|
121
|
+
}>>;
|
|
122
|
+
safeRecovery: z.ZodDefault<z.ZodString>;
|
|
123
|
+
}, z.core.$strict>>;
|
|
124
|
+
}, z.core.$strict>;
|
|
125
|
+
export type EditorQueryInput = z.infer<typeof EditorQueryInputSchema>;
|
|
126
|
+
export type EditorCaptureInput = z.infer<typeof EditorCaptureInputSchema>;
|
|
127
|
+
export type EditorCaptureResult = z.infer<typeof EditorCaptureResultSchema>;
|
|
128
|
+
export type BridgeCommandChunk = z.infer<typeof BridgeCommandChunkSchema>;
|
|
129
|
+
export type BridgeCommandResult = z.infer<typeof BridgeCommandResultSchema>;
|
|
130
|
+
//# sourceMappingURL=editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../src/editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA8CxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCA0DjC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;kBAgBjC,CAAC;AAEL,eAAO,MAAM,yBAAyB;;;;;;;;;;;kBAAwB,CAAC;AAE/D,eAAO,MAAM,wBAAwB;;;;;;kBAQ1B,CAAC;AAEZ,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAsDlC,CAAC;AAEL,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
package/dist/editor.js
ADDED
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
const ResPathSchema = z
|
|
3
|
+
.string()
|
|
4
|
+
.min(6)
|
|
5
|
+
.max(512)
|
|
6
|
+
.startsWith("res://")
|
|
7
|
+
.refine((value) => !value.includes("\0") && !value.slice("res://".length).split("/").includes(".."), {
|
|
8
|
+
message: "res:// path may not traverse outside the project",
|
|
9
|
+
});
|
|
10
|
+
const NodePathSchema = z
|
|
11
|
+
.string()
|
|
12
|
+
.min(1)
|
|
13
|
+
.max(512)
|
|
14
|
+
.refine((value) => !value.startsWith("/") && !value.includes(":") && !value.split("/").includes(".."), {
|
|
15
|
+
message: "NodePath must be relative and may not contain traversal or subnames",
|
|
16
|
+
});
|
|
17
|
+
const CaptureMetadataSchema = z
|
|
18
|
+
.object({
|
|
19
|
+
mimeType: z.literal("image/png"),
|
|
20
|
+
viewport: z.enum(["2d", "3d"]),
|
|
21
|
+
viewportIndex: z.number().int().min(0).max(3).nullable().optional(),
|
|
22
|
+
width: z.number().int().min(1).max(2048),
|
|
23
|
+
height: z.number().int().min(1).max(2048),
|
|
24
|
+
byteLength: z.number().int().min(1).max(8 * 1024 * 1024),
|
|
25
|
+
sha256: z.string().regex(/^[a-f0-9]{64}$/),
|
|
26
|
+
})
|
|
27
|
+
.strict()
|
|
28
|
+
.superRefine((value, context) => {
|
|
29
|
+
if (value.viewport === "2d" && value.viewportIndex != null) {
|
|
30
|
+
context.addIssue({
|
|
31
|
+
code: "custom",
|
|
32
|
+
path: ["viewportIndex"],
|
|
33
|
+
message: "viewportIndex is valid only for 3d",
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
const CursorSchema = z.string().max(256).optional();
|
|
38
|
+
export const EditorQueryInputSchema = z.discriminatedUnion("operation", [
|
|
39
|
+
z.object({ operation: z.literal("editor_state") }).strict(),
|
|
40
|
+
z
|
|
41
|
+
.object({
|
|
42
|
+
operation: z.literal("scene_tree"),
|
|
43
|
+
scenePath: ResPathSchema.optional(),
|
|
44
|
+
maxDepth: z.number().int().min(0).max(32).default(12),
|
|
45
|
+
maxNodes: z.number().int().min(1).max(1000).default(500),
|
|
46
|
+
})
|
|
47
|
+
.strict(),
|
|
48
|
+
z
|
|
49
|
+
.object({
|
|
50
|
+
operation: z.literal("node"),
|
|
51
|
+
scenePath: ResPathSchema,
|
|
52
|
+
nodePath: NodePathSchema,
|
|
53
|
+
includeProperties: z.boolean().default(true),
|
|
54
|
+
})
|
|
55
|
+
.strict(),
|
|
56
|
+
z
|
|
57
|
+
.object({
|
|
58
|
+
operation: z.literal("resources"),
|
|
59
|
+
prefix: ResPathSchema.default("res://"),
|
|
60
|
+
kinds: z
|
|
61
|
+
.array(z.enum(["scene", "script", "resource", "shader", "texture", "audio", "other"]))
|
|
62
|
+
.max(7)
|
|
63
|
+
.optional(),
|
|
64
|
+
cursor: CursorSchema,
|
|
65
|
+
limit: z.number().int().min(1).max(2000).default(200),
|
|
66
|
+
})
|
|
67
|
+
.strict(),
|
|
68
|
+
z
|
|
69
|
+
.object({
|
|
70
|
+
operation: z.literal("project_settings"),
|
|
71
|
+
prefix: z.enum([
|
|
72
|
+
"application/",
|
|
73
|
+
"audio/",
|
|
74
|
+
"display/",
|
|
75
|
+
"input/",
|
|
76
|
+
"navigation/",
|
|
77
|
+
"physics/",
|
|
78
|
+
"rendering/",
|
|
79
|
+
]),
|
|
80
|
+
cursor: CursorSchema,
|
|
81
|
+
limit: z.number().int().min(1).max(2000).default(200),
|
|
82
|
+
})
|
|
83
|
+
.strict(),
|
|
84
|
+
z
|
|
85
|
+
.object({
|
|
86
|
+
operation: z.literal("diagnostics"),
|
|
87
|
+
afterSequence: z.number().int().min(0).default(0),
|
|
88
|
+
levels: z
|
|
89
|
+
.array(z.enum(["log", "warning", "error", "script", "shader"]))
|
|
90
|
+
.min(1)
|
|
91
|
+
.max(5)
|
|
92
|
+
.default(["log", "warning", "error", "script", "shader"]),
|
|
93
|
+
limit: z.number().int().min(1).max(500).default(100),
|
|
94
|
+
})
|
|
95
|
+
.strict(),
|
|
96
|
+
]);
|
|
97
|
+
export const EditorCaptureInputSchema = z
|
|
98
|
+
.object({
|
|
99
|
+
viewport: z.enum(["2d", "3d"]),
|
|
100
|
+
viewportIndex: z.number().int().min(0).max(3).optional(),
|
|
101
|
+
maxWidth: z.number().int().min(1).max(2048).default(1280),
|
|
102
|
+
maxHeight: z.number().int().min(1).max(2048).default(720),
|
|
103
|
+
})
|
|
104
|
+
.strict()
|
|
105
|
+
.superRefine((value, context) => {
|
|
106
|
+
if (value.viewport === "2d" && value.viewportIndex !== undefined) {
|
|
107
|
+
context.addIssue({
|
|
108
|
+
code: "custom",
|
|
109
|
+
path: ["viewportIndex"],
|
|
110
|
+
message: "viewportIndex is valid only for 3d",
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
export const EditorCaptureResultSchema = CaptureMetadataSchema;
|
|
115
|
+
export const BridgeCommandChunkSchema = z
|
|
116
|
+
.object({
|
|
117
|
+
requestId: z.uuid(),
|
|
118
|
+
index: z.number().int().min(0).max(15),
|
|
119
|
+
total: z.number().int().min(1).max(16),
|
|
120
|
+
sha256: z.string().regex(/^[a-f0-9]{64}$/),
|
|
121
|
+
data: z.string().max(700_000),
|
|
122
|
+
})
|
|
123
|
+
.strict();
|
|
124
|
+
export const BridgeCommandResultSchema = z
|
|
125
|
+
.object({
|
|
126
|
+
requestId: z.uuid(),
|
|
127
|
+
ok: z.boolean(),
|
|
128
|
+
data: z.unknown().optional(),
|
|
129
|
+
binary: z
|
|
130
|
+
.object({
|
|
131
|
+
size: z.number().int().min(1).max(8 * 1024 * 1024),
|
|
132
|
+
sha256: z.string().regex(/^[a-f0-9]{64}$/),
|
|
133
|
+
chunks: z.number().int().min(1).max(16),
|
|
134
|
+
})
|
|
135
|
+
.strict()
|
|
136
|
+
.optional(),
|
|
137
|
+
error: z
|
|
138
|
+
.object({
|
|
139
|
+
code: z.enum([
|
|
140
|
+
"INVALID_REQUEST",
|
|
141
|
+
"PAYLOAD_TOO_LARGE",
|
|
142
|
+
"CONFLICT",
|
|
143
|
+
"TARGET_NOT_FOUND",
|
|
144
|
+
"TIMEOUT",
|
|
145
|
+
"GODOT_RUNTIME_ERROR",
|
|
146
|
+
"NOT_ATTACHED",
|
|
147
|
+
"AUTHENTICATION_FAILED",
|
|
148
|
+
"PERMISSION_REQUIRED",
|
|
149
|
+
"VERSION_MISMATCH",
|
|
150
|
+
"PROJECT_CHANGED",
|
|
151
|
+
"PATH_DENIED",
|
|
152
|
+
"STALE_HANDLE",
|
|
153
|
+
"PRECONDITION_FAILED",
|
|
154
|
+
"CANCELLED",
|
|
155
|
+
"GODOT_PARSE_ERROR",
|
|
156
|
+
"ASSERTION_FAILED",
|
|
157
|
+
"ROLLBACK_FAILED",
|
|
158
|
+
"EXPORT_LEAK_DETECTED",
|
|
159
|
+
]),
|
|
160
|
+
message: z.string().max(4096),
|
|
161
|
+
retryable: z.boolean(),
|
|
162
|
+
failedPhase: z.string().min(1).max(128).default("request"),
|
|
163
|
+
partialEffects: z.boolean().default(false),
|
|
164
|
+
rollback: z.enum(["not_needed", "succeeded", "failed", "not_attempted"]).default("not_needed"),
|
|
165
|
+
safeRecovery: z.string().min(1).max(1024).default("Review the error and retry only after correcting the request"),
|
|
166
|
+
})
|
|
167
|
+
.strict()
|
|
168
|
+
.optional(),
|
|
169
|
+
})
|
|
170
|
+
.strict()
|
|
171
|
+
.superRefine((value, context) => {
|
|
172
|
+
if (value.ok === (value.error !== undefined)) {
|
|
173
|
+
context.addIssue({
|
|
174
|
+
code: "custom",
|
|
175
|
+
message: "success requires no error and failure requires an error",
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
//# sourceMappingURL=editor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor.js","sourceRoot":"","sources":["../src/editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,aAAa,GAAG,CAAC;KACpB,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,GAAG,CAAC;KACR,UAAU,CAAC,QAAQ,CAAC;KACpB,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;IACnG,OAAO,EAAE,kDAAkD;CAC5D,CAAC,CAAC;AAEL,MAAM,cAAc,GAAG,CAAC;KACrB,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,GAAG,CAAC;KACR,MAAM,CACL,CAAC,KAAK,EAAE,EAAE,CACR,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,EACpF;IACE,OAAO,EAAE,qEAAqE;CAC/E,CACF,CAAC;AAEJ,MAAM,qBAAqB,GAAG,CAAC;KAC5B,MAAM,C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