@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
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const RuntimeScenePathSchema: z.ZodString;
|
|
3
|
+
export declare const RuntimeNodePathSchema: z.ZodString;
|
|
4
|
+
export declare const RuntimePrimitiveSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
5
|
+
export declare const SafeRuntimePropertyPatternSchema: z.ZodString;
|
|
6
|
+
export declare const RuntimeWaitConditionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7
|
+
type: z.ZodLiteral<"node_exists">;
|
|
8
|
+
nodePath: z.ZodString;
|
|
9
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
10
|
+
type: z.ZodLiteral<"node_missing">;
|
|
11
|
+
nodePath: z.ZodString;
|
|
12
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
13
|
+
type: z.ZodLiteral<"property_equals">;
|
|
14
|
+
nodePath: z.ZodString;
|
|
15
|
+
property: z.ZodString;
|
|
16
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
17
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
18
|
+
type: z.ZodLiteral<"property_matches">;
|
|
19
|
+
nodePath: z.ZodString;
|
|
20
|
+
property: z.ZodString;
|
|
21
|
+
pattern: z.ZodString;
|
|
22
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
23
|
+
type: z.ZodLiteral<"signal_emitted">;
|
|
24
|
+
nodePath: z.ZodString;
|
|
25
|
+
signal: z.ZodString;
|
|
26
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
27
|
+
type: z.ZodLiteral<"log_matches">;
|
|
28
|
+
pattern: z.ZodString;
|
|
29
|
+
level: z.ZodOptional<z.ZodEnum<{
|
|
30
|
+
script: "script";
|
|
31
|
+
error: "error";
|
|
32
|
+
log: "log";
|
|
33
|
+
warning: "warning";
|
|
34
|
+
shader: "shader";
|
|
35
|
+
}>>;
|
|
36
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
37
|
+
type: z.ZodLiteral<"frames_elapsed">;
|
|
38
|
+
frames: z.ZodNumber;
|
|
39
|
+
}, z.core.$strict>], "type">;
|
|
40
|
+
export declare const RuntimeOperationInputSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
41
|
+
operation: z.ZodLiteral<"launch">;
|
|
42
|
+
scenePath: z.ZodString;
|
|
43
|
+
startupTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
44
|
+
pins: z.ZodOptional<z.ZodObject<{
|
|
45
|
+
width: z.ZodNumber;
|
|
46
|
+
height: z.ZodNumber;
|
|
47
|
+
renderer: z.ZodEnum<{
|
|
48
|
+
gl_compatibility: "gl_compatibility";
|
|
49
|
+
mobile: "mobile";
|
|
50
|
+
}>;
|
|
51
|
+
locale: z.ZodString;
|
|
52
|
+
seed: z.ZodNumber;
|
|
53
|
+
fixedFps: z.ZodUnion<readonly [z.ZodLiteral<30>, z.ZodLiteral<60>, z.ZodLiteral<120>]>;
|
|
54
|
+
}, z.core.$strict>>;
|
|
55
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
56
|
+
operation: z.ZodLiteral<"status">;
|
|
57
|
+
handle: z.ZodOptional<z.ZodObject<{
|
|
58
|
+
runId: z.ZodUUID;
|
|
59
|
+
generation: z.ZodNumber;
|
|
60
|
+
}, z.core.$strict>>;
|
|
61
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
62
|
+
operation: z.ZodLiteral<"tree">;
|
|
63
|
+
handle: z.ZodObject<{
|
|
64
|
+
runId: z.ZodUUID;
|
|
65
|
+
generation: z.ZodNumber;
|
|
66
|
+
}, z.core.$strict>;
|
|
67
|
+
root: z.ZodDefault<z.ZodString>;
|
|
68
|
+
maxDepth: z.ZodDefault<z.ZodNumber>;
|
|
69
|
+
maxNodes: z.ZodDefault<z.ZodNumber>;
|
|
70
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
71
|
+
operation: z.ZodLiteral<"node">;
|
|
72
|
+
handle: z.ZodObject<{
|
|
73
|
+
runId: z.ZodUUID;
|
|
74
|
+
generation: z.ZodNumber;
|
|
75
|
+
}, z.core.$strict>;
|
|
76
|
+
nodePath: z.ZodString;
|
|
77
|
+
includeProperties: z.ZodDefault<z.ZodBoolean>;
|
|
78
|
+
includeSignals: z.ZodDefault<z.ZodBoolean>;
|
|
79
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
80
|
+
operation: z.ZodLiteral<"logs">;
|
|
81
|
+
handle: z.ZodObject<{
|
|
82
|
+
runId: z.ZodUUID;
|
|
83
|
+
generation: z.ZodNumber;
|
|
84
|
+
}, z.core.$strict>;
|
|
85
|
+
afterSequence: z.ZodDefault<z.ZodNumber>;
|
|
86
|
+
levels: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
87
|
+
script: "script";
|
|
88
|
+
error: "error";
|
|
89
|
+
log: "log";
|
|
90
|
+
warning: "warning";
|
|
91
|
+
shader: "shader";
|
|
92
|
+
}>>>;
|
|
93
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
94
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
95
|
+
operation: z.ZodLiteral<"wait">;
|
|
96
|
+
handle: z.ZodObject<{
|
|
97
|
+
runId: z.ZodUUID;
|
|
98
|
+
generation: z.ZodNumber;
|
|
99
|
+
}, z.core.$strict>;
|
|
100
|
+
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
101
|
+
condition: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
102
|
+
type: z.ZodLiteral<"node_exists">;
|
|
103
|
+
nodePath: z.ZodString;
|
|
104
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
105
|
+
type: z.ZodLiteral<"node_missing">;
|
|
106
|
+
nodePath: z.ZodString;
|
|
107
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
108
|
+
type: z.ZodLiteral<"property_equals">;
|
|
109
|
+
nodePath: z.ZodString;
|
|
110
|
+
property: z.ZodString;
|
|
111
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
112
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
113
|
+
type: z.ZodLiteral<"property_matches">;
|
|
114
|
+
nodePath: z.ZodString;
|
|
115
|
+
property: z.ZodString;
|
|
116
|
+
pattern: z.ZodString;
|
|
117
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
118
|
+
type: z.ZodLiteral<"signal_emitted">;
|
|
119
|
+
nodePath: z.ZodString;
|
|
120
|
+
signal: z.ZodString;
|
|
121
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
122
|
+
type: z.ZodLiteral<"log_matches">;
|
|
123
|
+
pattern: z.ZodString;
|
|
124
|
+
level: z.ZodOptional<z.ZodEnum<{
|
|
125
|
+
script: "script";
|
|
126
|
+
error: "error";
|
|
127
|
+
log: "log";
|
|
128
|
+
warning: "warning";
|
|
129
|
+
shader: "shader";
|
|
130
|
+
}>>;
|
|
131
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
132
|
+
type: z.ZodLiteral<"frames_elapsed">;
|
|
133
|
+
frames: z.ZodNumber;
|
|
134
|
+
}, z.core.$strict>], "type">;
|
|
135
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
136
|
+
operation: z.ZodLiteral<"pause">;
|
|
137
|
+
handle: z.ZodObject<{
|
|
138
|
+
runId: z.ZodUUID;
|
|
139
|
+
generation: z.ZodNumber;
|
|
140
|
+
}, z.core.$strict>;
|
|
141
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
142
|
+
operation: z.ZodLiteral<"resume">;
|
|
143
|
+
handle: z.ZodObject<{
|
|
144
|
+
runId: z.ZodUUID;
|
|
145
|
+
generation: z.ZodNumber;
|
|
146
|
+
}, z.core.$strict>;
|
|
147
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
148
|
+
operation: z.ZodLiteral<"step">;
|
|
149
|
+
handle: z.ZodObject<{
|
|
150
|
+
runId: z.ZodUUID;
|
|
151
|
+
generation: z.ZodNumber;
|
|
152
|
+
}, z.core.$strict>;
|
|
153
|
+
frames: z.ZodNumber;
|
|
154
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
155
|
+
operation: z.ZodLiteral<"stop">;
|
|
156
|
+
handle: z.ZodObject<{
|
|
157
|
+
runId: z.ZodUUID;
|
|
158
|
+
generation: z.ZodNumber;
|
|
159
|
+
}, z.core.$strict>;
|
|
160
|
+
}, z.core.$strict>], "operation">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
161
|
+
operation: z.ZodLiteral<"debug_breakpoints_set">;
|
|
162
|
+
handle: z.ZodObject<{
|
|
163
|
+
runId: z.ZodUUID;
|
|
164
|
+
generation: z.ZodNumber;
|
|
165
|
+
}, z.core.$strict>;
|
|
166
|
+
breakpoints: z.ZodArray<z.ZodObject<{
|
|
167
|
+
sourcePath: z.ZodString;
|
|
168
|
+
line: z.ZodNumber;
|
|
169
|
+
}, z.core.$strict>>;
|
|
170
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
171
|
+
operation: z.ZodLiteral<"debug_status">;
|
|
172
|
+
handle: z.ZodObject<{
|
|
173
|
+
runId: z.ZodUUID;
|
|
174
|
+
generation: z.ZodNumber;
|
|
175
|
+
}, z.core.$strict>;
|
|
176
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
177
|
+
operation: z.ZodLiteral<"debug_wait">;
|
|
178
|
+
handle: z.ZodObject<{
|
|
179
|
+
runId: z.ZodUUID;
|
|
180
|
+
generation: z.ZodNumber;
|
|
181
|
+
}, z.core.$strict>;
|
|
182
|
+
afterSequence: z.ZodDefault<z.ZodNumber>;
|
|
183
|
+
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
184
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
185
|
+
operation: z.ZodLiteral<"debug_pause">;
|
|
186
|
+
handle: z.ZodObject<{
|
|
187
|
+
runId: z.ZodUUID;
|
|
188
|
+
generation: z.ZodNumber;
|
|
189
|
+
}, z.core.$strict>;
|
|
190
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
191
|
+
operation: z.ZodLiteral<"debug_continue">;
|
|
192
|
+
handle: z.ZodObject<{
|
|
193
|
+
runId: z.ZodUUID;
|
|
194
|
+
generation: z.ZodNumber;
|
|
195
|
+
}, z.core.$strict>;
|
|
196
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
197
|
+
operation: z.ZodLiteral<"debug_step_over">;
|
|
198
|
+
handle: z.ZodObject<{
|
|
199
|
+
runId: z.ZodUUID;
|
|
200
|
+
generation: z.ZodNumber;
|
|
201
|
+
}, z.core.$strict>;
|
|
202
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
203
|
+
operation: z.ZodLiteral<"debug_step_into">;
|
|
204
|
+
handle: z.ZodObject<{
|
|
205
|
+
runId: z.ZodUUID;
|
|
206
|
+
generation: z.ZodNumber;
|
|
207
|
+
}, z.core.$strict>;
|
|
208
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
209
|
+
operation: z.ZodLiteral<"debug_stack">;
|
|
210
|
+
handle: z.ZodObject<{
|
|
211
|
+
runId: z.ZodUUID;
|
|
212
|
+
generation: z.ZodNumber;
|
|
213
|
+
}, z.core.$strict>;
|
|
214
|
+
offset: z.ZodDefault<z.ZodNumber>;
|
|
215
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
216
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
217
|
+
offset: z.ZodDefault<z.ZodNumber>;
|
|
218
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
219
|
+
operation: z.ZodLiteral<"debug_variables">;
|
|
220
|
+
handle: z.ZodObject<{
|
|
221
|
+
runId: z.ZodUUID;
|
|
222
|
+
generation: z.ZodNumber;
|
|
223
|
+
}, z.core.$strict>;
|
|
224
|
+
frameToken: z.ZodString;
|
|
225
|
+
scope: z.ZodEnum<{
|
|
226
|
+
globals: "globals";
|
|
227
|
+
members: "members";
|
|
228
|
+
locals: "locals";
|
|
229
|
+
}>;
|
|
230
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
231
|
+
offset: z.ZodDefault<z.ZodNumber>;
|
|
232
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
233
|
+
operation: z.ZodLiteral<"debug_children">;
|
|
234
|
+
handle: z.ZodObject<{
|
|
235
|
+
runId: z.ZodUUID;
|
|
236
|
+
generation: z.ZodNumber;
|
|
237
|
+
}, z.core.$strict>;
|
|
238
|
+
variableToken: z.ZodString;
|
|
239
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
240
|
+
operation: z.ZodLiteral<"debug_watch">;
|
|
241
|
+
handle: z.ZodObject<{
|
|
242
|
+
runId: z.ZodUUID;
|
|
243
|
+
generation: z.ZodNumber;
|
|
244
|
+
}, z.core.$strict>;
|
|
245
|
+
frameToken: z.ZodString;
|
|
246
|
+
selectors: z.ZodArray<z.ZodObject<{
|
|
247
|
+
scope: z.ZodEnum<{
|
|
248
|
+
globals: "globals";
|
|
249
|
+
members: "members";
|
|
250
|
+
locals: "locals";
|
|
251
|
+
}>;
|
|
252
|
+
path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
253
|
+
}, z.core.$strict>>;
|
|
254
|
+
}, z.core.$strict>], "operation">, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
255
|
+
operation: z.ZodLiteral<"monitor_snapshot">;
|
|
256
|
+
handle: z.ZodObject<{
|
|
257
|
+
runId: z.ZodUUID;
|
|
258
|
+
generation: z.ZodNumber;
|
|
259
|
+
}, z.core.$strict>;
|
|
260
|
+
groups: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
261
|
+
custom: "custom";
|
|
262
|
+
frame: "frame";
|
|
263
|
+
memory: "memory";
|
|
264
|
+
objects: "objects";
|
|
265
|
+
rendering: "rendering";
|
|
266
|
+
physics: "physics";
|
|
267
|
+
audio: "audio";
|
|
268
|
+
navigation: "navigation";
|
|
269
|
+
pipeline: "pipeline";
|
|
270
|
+
}>>>;
|
|
271
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
272
|
+
operation: z.ZodLiteral<"profile_start">;
|
|
273
|
+
handle: z.ZodObject<{
|
|
274
|
+
runId: z.ZodUUID;
|
|
275
|
+
generation: z.ZodNumber;
|
|
276
|
+
}, z.core.$strict>;
|
|
277
|
+
durationMs: z.ZodNumber;
|
|
278
|
+
intervalFrames: z.ZodNumber;
|
|
279
|
+
groups: z.ZodArray<z.ZodEnum<{
|
|
280
|
+
custom: "custom";
|
|
281
|
+
frame: "frame";
|
|
282
|
+
memory: "memory";
|
|
283
|
+
objects: "objects";
|
|
284
|
+
rendering: "rendering";
|
|
285
|
+
physics: "physics";
|
|
286
|
+
audio: "audio";
|
|
287
|
+
navigation: "navigation";
|
|
288
|
+
pipeline: "pipeline";
|
|
289
|
+
}>>;
|
|
290
|
+
retainRaw: z.ZodDefault<z.ZodBoolean>;
|
|
291
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
292
|
+
operation: z.ZodLiteral<"profile_status">;
|
|
293
|
+
handle: z.ZodObject<{
|
|
294
|
+
runId: z.ZodUUID;
|
|
295
|
+
generation: z.ZodNumber;
|
|
296
|
+
}, z.core.$strict>;
|
|
297
|
+
jobToken: z.ZodString;
|
|
298
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
299
|
+
operation: z.ZodLiteral<"profile_cancel">;
|
|
300
|
+
handle: z.ZodObject<{
|
|
301
|
+
runId: z.ZodUUID;
|
|
302
|
+
generation: z.ZodNumber;
|
|
303
|
+
}, z.core.$strict>;
|
|
304
|
+
jobToken: z.ZodString;
|
|
305
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
306
|
+
operation: z.ZodLiteral<"profile_result">;
|
|
307
|
+
handle: z.ZodObject<{
|
|
308
|
+
runId: z.ZodUUID;
|
|
309
|
+
generation: z.ZodNumber;
|
|
310
|
+
}, z.core.$strict>;
|
|
311
|
+
jobToken: z.ZodString;
|
|
312
|
+
}, z.core.$strict>], "operation">]>;
|
|
313
|
+
export declare const RuntimeCaptureInputSchema: z.ZodObject<{
|
|
314
|
+
handle: z.ZodObject<{
|
|
315
|
+
runId: z.ZodUUID;
|
|
316
|
+
generation: z.ZodNumber;
|
|
317
|
+
}, z.core.$strict>;
|
|
318
|
+
maxWidth: z.ZodDefault<z.ZodNumber>;
|
|
319
|
+
maxHeight: z.ZodDefault<z.ZodNumber>;
|
|
320
|
+
frameCount: z.ZodDefault<z.ZodNumber>;
|
|
321
|
+
intervalFrames: z.ZodDefault<z.ZodNumber>;
|
|
322
|
+
advancePaused: z.ZodDefault<z.ZodBoolean>;
|
|
323
|
+
}, z.core.$strict>;
|
|
324
|
+
export declare const RuntimeCaptureFrameMetadataSchema: z.ZodObject<{
|
|
325
|
+
mimeType: z.ZodLiteral<"image/png">;
|
|
326
|
+
width: z.ZodNumber;
|
|
327
|
+
height: z.ZodNumber;
|
|
328
|
+
byteLength: z.ZodNumber;
|
|
329
|
+
sha256: z.ZodString;
|
|
330
|
+
frameIndex: z.ZodNumber;
|
|
331
|
+
}, z.core.$strict>;
|
|
332
|
+
export declare const RuntimeCommandSchema: z.ZodObject<{
|
|
333
|
+
handle: z.ZodObject<{
|
|
334
|
+
runId: z.ZodUUID;
|
|
335
|
+
generation: z.ZodNumber;
|
|
336
|
+
}, z.core.$strict>;
|
|
337
|
+
requestId: z.ZodUUID;
|
|
338
|
+
sequence: z.ZodNumber;
|
|
339
|
+
deadlineUnixMs: z.ZodNumber;
|
|
340
|
+
operation: z.ZodString;
|
|
341
|
+
arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
342
|
+
}, z.core.$strict>;
|
|
343
|
+
export { RuntimeHandleSchema } from "./runtimeShared.js";
|
|
344
|
+
export type { RuntimeHandle } from "./runtimeShared.js";
|
|
345
|
+
export type RuntimeOperationInput = z.infer<typeof RuntimeOperationInputSchema>;
|
|
346
|
+
export type RuntimeCaptureInput = z.infer<typeof RuntimeCaptureInputSchema>;
|
|
347
|
+
export type RuntimeCaptureFrameMetadata = z.infer<typeof RuntimeCaptureFrameMetadataSchema>;
|
|
348
|
+
export type RuntimeCommand = z.infer<typeof RuntimeCommandSchema>;
|
|
349
|
+
//# sourceMappingURL=runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,sBAAsB,aAQ/B,CAAC;AAEL,eAAO,MAAM,qBAAqB,aAW/B,CAAC;AAEJ,eAAO,MAAM,sBAAsB,0EAA8E,CAAC;AAClH,eAAO,MAAM,gCAAgC,aAY1C,CAAC;AAEJ,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAkCrC,CAAC;AAkEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAItC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;kBAS3B,CAAC;AAEZ,eAAO,MAAM,iCAAiC;;;;;;;kBASnC,CAAC;AAEZ,eAAO,MAAM,oBAAoB;;;;;;;;;;kBAStB,CAAC;AAEZ,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5F,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
package/dist/runtime.js
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { RuntimeDebugOperationInputSchema } from "./runtimeDebug.js";
|
|
3
|
+
import { RuntimePerformanceOperationInputSchema } from "./runtimePerformance.js";
|
|
4
|
+
import { RuntimeHandleSchema, RuntimeLaunchPinsSchema } from "./runtimeShared.js";
|
|
5
|
+
export const RuntimeScenePathSchema = z
|
|
6
|
+
.string()
|
|
7
|
+
.min(8)
|
|
8
|
+
.max(512)
|
|
9
|
+
.startsWith("res://")
|
|
10
|
+
.endsWith(".tscn")
|
|
11
|
+
.refine((value) => !value.includes("\0") && !value.slice(6).split("/").includes(".."), {
|
|
12
|
+
message: "Runtime scene path may not traverse outside the project",
|
|
13
|
+
});
|
|
14
|
+
export const RuntimeNodePathSchema = z
|
|
15
|
+
.string()
|
|
16
|
+
.min(1)
|
|
17
|
+
.max(512)
|
|
18
|
+
.refine((value) => !value.startsWith("/") &&
|
|
19
|
+
!value.includes(":") &&
|
|
20
|
+
!value.includes("\0") &&
|
|
21
|
+
!value.split("/").includes(".."), { message: "Runtime node path must be relative and contain no traversal or subnames" });
|
|
22
|
+
export const RuntimePrimitiveSchema = z.union([z.string().max(4096), z.number().finite(), z.boolean(), z.null()]);
|
|
23
|
+
export const SafeRuntimePropertyPatternSchema = z
|
|
24
|
+
.string()
|
|
25
|
+
.min(1)
|
|
26
|
+
.max(64)
|
|
27
|
+
.refine((pattern) => !/[\\+{}()|]/.test(pattern) &&
|
|
28
|
+
(pattern.match(/\*/g)?.length ?? 0) <= 1 &&
|
|
29
|
+
!pattern.includes("**") &&
|
|
30
|
+
!pattern.includes("*?") &&
|
|
31
|
+
!pattern.includes("?*"), { message: "Runtime property pattern uses unsupported regex features" });
|
|
32
|
+
export const RuntimeWaitConditionSchema = z.discriminatedUnion("type", [
|
|
33
|
+
z.object({ type: z.literal("node_exists"), nodePath: RuntimeNodePathSchema }).strict(),
|
|
34
|
+
z.object({ type: z.literal("node_missing"), nodePath: RuntimeNodePathSchema }).strict(),
|
|
35
|
+
z
|
|
36
|
+
.object({
|
|
37
|
+
type: z.literal("property_equals"),
|
|
38
|
+
nodePath: RuntimeNodePathSchema,
|
|
39
|
+
property: z.string().min(1).max(128).regex(/^[A-Za-z_][A-Za-z0-9_]*$/),
|
|
40
|
+
value: RuntimePrimitiveSchema,
|
|
41
|
+
})
|
|
42
|
+
.strict(),
|
|
43
|
+
z
|
|
44
|
+
.object({
|
|
45
|
+
type: z.literal("property_matches"),
|
|
46
|
+
nodePath: RuntimeNodePathSchema,
|
|
47
|
+
property: z.string().min(1).max(128).regex(/^[A-Za-z_][A-Za-z0-9_]*$/),
|
|
48
|
+
pattern: SafeRuntimePropertyPatternSchema,
|
|
49
|
+
})
|
|
50
|
+
.strict(),
|
|
51
|
+
z
|
|
52
|
+
.object({
|
|
53
|
+
type: z.literal("signal_emitted"),
|
|
54
|
+
nodePath: RuntimeNodePathSchema,
|
|
55
|
+
signal: z.string().min(1).max(128).regex(/^[A-Za-z_][A-Za-z0-9_]*$/),
|
|
56
|
+
})
|
|
57
|
+
.strict(),
|
|
58
|
+
z
|
|
59
|
+
.object({
|
|
60
|
+
type: z.literal("log_matches"),
|
|
61
|
+
pattern: z.string().min(1).max(256),
|
|
62
|
+
level: z.enum(["log", "warning", "error", "script", "shader"]).optional(),
|
|
63
|
+
})
|
|
64
|
+
.strict(),
|
|
65
|
+
z.object({ type: z.literal("frames_elapsed"), frames: z.number().int().min(1).max(10_000) }).strict(),
|
|
66
|
+
]);
|
|
67
|
+
const RuntimeHandleOperationSchema = (operation) => z.object({ operation: z.literal(operation), handle: RuntimeHandleSchema }).strict();
|
|
68
|
+
const BaseRuntimeOperationInputSchema = z.discriminatedUnion("operation", [
|
|
69
|
+
z
|
|
70
|
+
.object({
|
|
71
|
+
operation: z.literal("launch"),
|
|
72
|
+
scenePath: RuntimeScenePathSchema,
|
|
73
|
+
startupTimeoutMs: z.number().int().min(1_000).max(30_000).default(15_000),
|
|
74
|
+
pins: RuntimeLaunchPinsSchema.optional(),
|
|
75
|
+
})
|
|
76
|
+
.strict(),
|
|
77
|
+
z.object({ operation: z.literal("status"), handle: RuntimeHandleSchema.optional() }).strict(),
|
|
78
|
+
z
|
|
79
|
+
.object({
|
|
80
|
+
operation: z.literal("tree"),
|
|
81
|
+
handle: RuntimeHandleSchema,
|
|
82
|
+
root: RuntimeNodePathSchema.default("."),
|
|
83
|
+
maxDepth: z.number().int().min(0).max(32).default(12),
|
|
84
|
+
maxNodes: z.number().int().min(1).max(1_000).default(500),
|
|
85
|
+
})
|
|
86
|
+
.strict(),
|
|
87
|
+
z
|
|
88
|
+
.object({
|
|
89
|
+
operation: z.literal("node"),
|
|
90
|
+
handle: RuntimeHandleSchema,
|
|
91
|
+
nodePath: RuntimeNodePathSchema,
|
|
92
|
+
includeProperties: z.boolean().default(true),
|
|
93
|
+
includeSignals: z.boolean().default(true),
|
|
94
|
+
})
|
|
95
|
+
.strict(),
|
|
96
|
+
z
|
|
97
|
+
.object({
|
|
98
|
+
operation: z.literal("logs"),
|
|
99
|
+
handle: RuntimeHandleSchema,
|
|
100
|
+
afterSequence: z.number().int().min(0).default(0),
|
|
101
|
+
levels: z
|
|
102
|
+
.array(z.enum(["log", "warning", "error", "script", "shader"]))
|
|
103
|
+
.min(1)
|
|
104
|
+
.max(5)
|
|
105
|
+
.default(["log", "warning", "error", "script", "shader"]),
|
|
106
|
+
limit: z.number().int().min(1).max(500).default(100),
|
|
107
|
+
})
|
|
108
|
+
.strict(),
|
|
109
|
+
z
|
|
110
|
+
.object({
|
|
111
|
+
operation: z.literal("wait"),
|
|
112
|
+
handle: RuntimeHandleSchema,
|
|
113
|
+
timeoutMs: z.number().int().min(1).max(30_000).default(10_000),
|
|
114
|
+
condition: RuntimeWaitConditionSchema,
|
|
115
|
+
})
|
|
116
|
+
.strict(),
|
|
117
|
+
RuntimeHandleOperationSchema("pause"),
|
|
118
|
+
RuntimeHandleOperationSchema("resume"),
|
|
119
|
+
z
|
|
120
|
+
.object({
|
|
121
|
+
operation: z.literal("step"),
|
|
122
|
+
handle: RuntimeHandleSchema,
|
|
123
|
+
frames: z.number().int().min(1).max(120),
|
|
124
|
+
})
|
|
125
|
+
.strict(),
|
|
126
|
+
RuntimeHandleOperationSchema("stop"),
|
|
127
|
+
]);
|
|
128
|
+
export const RuntimeOperationInputSchema = z.union([
|
|
129
|
+
BaseRuntimeOperationInputSchema,
|
|
130
|
+
RuntimeDebugOperationInputSchema,
|
|
131
|
+
RuntimePerformanceOperationInputSchema,
|
|
132
|
+
]);
|
|
133
|
+
export const RuntimeCaptureInputSchema = z
|
|
134
|
+
.object({
|
|
135
|
+
handle: RuntimeHandleSchema,
|
|
136
|
+
maxWidth: z.number().int().min(1).max(2048).default(1280),
|
|
137
|
+
maxHeight: z.number().int().min(1).max(2048).default(720),
|
|
138
|
+
frameCount: z.number().int().min(1).max(8).default(1),
|
|
139
|
+
intervalFrames: z.number().int().min(1).max(120).default(1),
|
|
140
|
+
advancePaused: z.boolean().default(false),
|
|
141
|
+
})
|
|
142
|
+
.strict();
|
|
143
|
+
export const RuntimeCaptureFrameMetadataSchema = z
|
|
144
|
+
.object({
|
|
145
|
+
mimeType: z.literal("image/png"),
|
|
146
|
+
width: z.number().int().min(1).max(2048),
|
|
147
|
+
height: z.number().int().min(1).max(2048),
|
|
148
|
+
byteLength: z.number().int().min(1).max(8 * 1024 * 1024),
|
|
149
|
+
sha256: z.string().regex(/^[a-f0-9]{64}$/),
|
|
150
|
+
frameIndex: z.number().int().min(0).max(7),
|
|
151
|
+
})
|
|
152
|
+
.strict();
|
|
153
|
+
export const RuntimeCommandSchema = z
|
|
154
|
+
.object({
|
|
155
|
+
handle: RuntimeHandleSchema,
|
|
156
|
+
requestId: z.uuid(),
|
|
157
|
+
sequence: z.number().int().positive(),
|
|
158
|
+
deadlineUnixMs: z.number().int().positive(),
|
|
159
|
+
operation: z.string().min(1).max(64),
|
|
160
|
+
arguments: z.record(z.string(), z.unknown()),
|
|
161
|
+
})
|
|
162
|
+
.strict();
|
|
163
|
+
export { RuntimeHandleSchema } from "./runtimeShared.js";
|
|
164
|
+
//# sourceMappingURL=runtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,gCAAgC,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,sCAAsC,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAElF,MAAM,CAAC,MAAM,sBAAsB,GAA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AAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const DebugFrameTokenSchema: z.ZodString;
|
|
3
|
+
export declare const DebugVariableTokenSchema: z.ZodString;
|
|
4
|
+
export declare const DebugStopResultSchema: z.ZodObject<{
|
|
5
|
+
sequence: z.ZodNumber;
|
|
6
|
+
reason: z.ZodEnum<{
|
|
7
|
+
unknown: "unknown";
|
|
8
|
+
breakpoint: "breakpoint";
|
|
9
|
+
exception: "exception";
|
|
10
|
+
step: "step";
|
|
11
|
+
pause: "pause";
|
|
12
|
+
}>;
|
|
13
|
+
}, z.core.$strict>;
|
|
14
|
+
export declare const RuntimeDebugOperationInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
15
|
+
operation: z.ZodLiteral<"debug_breakpoints_set">;
|
|
16
|
+
handle: z.ZodObject<{
|
|
17
|
+
runId: z.ZodUUID;
|
|
18
|
+
generation: z.ZodNumber;
|
|
19
|
+
}, z.core.$strict>;
|
|
20
|
+
breakpoints: z.ZodArray<z.ZodObject<{
|
|
21
|
+
sourcePath: z.ZodString;
|
|
22
|
+
line: z.ZodNumber;
|
|
23
|
+
}, z.core.$strict>>;
|
|
24
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
25
|
+
operation: z.ZodLiteral<"debug_status">;
|
|
26
|
+
handle: z.ZodObject<{
|
|
27
|
+
runId: z.ZodUUID;
|
|
28
|
+
generation: z.ZodNumber;
|
|
29
|
+
}, z.core.$strict>;
|
|
30
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
31
|
+
operation: z.ZodLiteral<"debug_wait">;
|
|
32
|
+
handle: z.ZodObject<{
|
|
33
|
+
runId: z.ZodUUID;
|
|
34
|
+
generation: z.ZodNumber;
|
|
35
|
+
}, z.core.$strict>;
|
|
36
|
+
afterSequence: z.ZodDefault<z.ZodNumber>;
|
|
37
|
+
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
38
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
39
|
+
operation: z.ZodLiteral<"debug_pause">;
|
|
40
|
+
handle: z.ZodObject<{
|
|
41
|
+
runId: z.ZodUUID;
|
|
42
|
+
generation: z.ZodNumber;
|
|
43
|
+
}, z.core.$strict>;
|
|
44
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
45
|
+
operation: z.ZodLiteral<"debug_continue">;
|
|
46
|
+
handle: z.ZodObject<{
|
|
47
|
+
runId: z.ZodUUID;
|
|
48
|
+
generation: z.ZodNumber;
|
|
49
|
+
}, z.core.$strict>;
|
|
50
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
51
|
+
operation: z.ZodLiteral<"debug_step_over">;
|
|
52
|
+
handle: z.ZodObject<{
|
|
53
|
+
runId: z.ZodUUID;
|
|
54
|
+
generation: z.ZodNumber;
|
|
55
|
+
}, z.core.$strict>;
|
|
56
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
57
|
+
operation: z.ZodLiteral<"debug_step_into">;
|
|
58
|
+
handle: z.ZodObject<{
|
|
59
|
+
runId: z.ZodUUID;
|
|
60
|
+
generation: z.ZodNumber;
|
|
61
|
+
}, z.core.$strict>;
|
|
62
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
63
|
+
operation: z.ZodLiteral<"debug_stack">;
|
|
64
|
+
handle: z.ZodObject<{
|
|
65
|
+
runId: z.ZodUUID;
|
|
66
|
+
generation: z.ZodNumber;
|
|
67
|
+
}, z.core.$strict>;
|
|
68
|
+
offset: z.ZodDefault<z.ZodNumber>;
|
|
69
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
70
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
71
|
+
offset: z.ZodDefault<z.ZodNumber>;
|
|
72
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
73
|
+
operation: z.ZodLiteral<"debug_variables">;
|
|
74
|
+
handle: z.ZodObject<{
|
|
75
|
+
runId: z.ZodUUID;
|
|
76
|
+
generation: z.ZodNumber;
|
|
77
|
+
}, z.core.$strict>;
|
|
78
|
+
frameToken: z.ZodString;
|
|
79
|
+
scope: z.ZodEnum<{
|
|
80
|
+
globals: "globals";
|
|
81
|
+
members: "members";
|
|
82
|
+
locals: "locals";
|
|
83
|
+
}>;
|
|
84
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
85
|
+
offset: z.ZodDefault<z.ZodNumber>;
|
|
86
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
87
|
+
operation: z.ZodLiteral<"debug_children">;
|
|
88
|
+
handle: z.ZodObject<{
|
|
89
|
+
runId: z.ZodUUID;
|
|
90
|
+
generation: z.ZodNumber;
|
|
91
|
+
}, z.core.$strict>;
|
|
92
|
+
variableToken: z.ZodString;
|
|
93
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
94
|
+
operation: z.ZodLiteral<"debug_watch">;
|
|
95
|
+
handle: z.ZodObject<{
|
|
96
|
+
runId: z.ZodUUID;
|
|
97
|
+
generation: z.ZodNumber;
|
|
98
|
+
}, z.core.$strict>;
|
|
99
|
+
frameToken: z.ZodString;
|
|
100
|
+
selectors: z.ZodArray<z.ZodObject<{
|
|
101
|
+
scope: z.ZodEnum<{
|
|
102
|
+
globals: "globals";
|
|
103
|
+
members: "members";
|
|
104
|
+
locals: "locals";
|
|
105
|
+
}>;
|
|
106
|
+
path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
107
|
+
}, z.core.$strict>>;
|
|
108
|
+
}, z.core.$strict>], "operation">;
|
|
109
|
+
export declare const RUNTIME_DEBUG_OPERATIONS: readonly ["debug_breakpoints_set", "debug_status", "debug_wait", "debug_pause", "debug_continue", "debug_step_over", "debug_step_into", "debug_stack", "debug_variables", "debug_children", "debug_watch"];
|
|
110
|
+
type OpaqueDebugFrame = z.infer<typeof DebugFrameTokenSchema>;
|
|
111
|
+
type OpaqueDebugVariable = z.infer<typeof DebugVariableTokenSchema>;
|
|
112
|
+
export { type OpaqueDebugFrame as DebugFrameToken, type OpaqueDebugVariable as DebugVariableToken };
|
|
113
|
+
export type DebugStopResult = z.infer<typeof DebugStopResultSchema>;
|
|
114
|
+
export type RuntimeDebugOperationInput = z.infer<typeof RuntimeDebugOperationInputSchema>;
|
|
115
|
+
//# sourceMappingURL=runtimeDebug.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtimeDebug.d.ts","sourceRoot":"","sources":["../src/runtimeDebug.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,qBAAqB,aAAqB,CAAC;AACxD,eAAO,MAAM,wBAAwB,aAAqB,CAAC;AAE3D,eAAO,MAAM,qBAAqB;;;;;;;;;kBAKvB,CAAC;AAyDZ,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAgD3C,CAAC;AAEH,eAAO,MAAM,wBAAwB,4MAY3B,CAAC;AAEX,KAAK,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC9D,KAAK,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AACpE,OAAO,EAAE,KAAK,gBAAgB,IAAI,eAAe,EAAE,KAAK,mBAAmB,IAAI,kBAAkB,EAAE,CAAC;AACpG,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|