@playcraft/common 0.1.65 → 0.1.67
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/dist/agent-tools/replica-validation.d.ts +2 -2
- package/dist/agent-tools/video-model-proxy.d.ts +1 -1
- package/dist/agent-tools/video-replication.d.ts +4 -4
- package/dist/cloud-workspace/runtime/agent-command.d.ts +3 -3
- package/dist/cloud-workspace/runtime/agent-generation-provenance.js +1 -1
- package/dist/cloud-workspace/runtime/agent-generation-provenance.js.map +1 -1
- package/dist/cloud-workspace/runtime/agent-read.d.ts +6 -6
- package/dist/cloud-workspace/runtime/animation-editor.d.ts +26 -26
- package/dist/cloud-workspace/runtime/animation-quality.d.ts +1 -1
- package/dist/cloud-workspace/runtime/artifacts.d.ts +7 -7
- package/dist/cloud-workspace/runtime/asset-generation-bundle.d.ts +2 -2
- package/dist/cloud-workspace/runtime/asset-generation-tools.d.ts +49 -1
- package/dist/cloud-workspace/runtime/asset-generation-tools.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/asset-generation-tools.js +1 -1
- package/dist/cloud-workspace/runtime/asset-generation-tools.js.map +1 -1
- package/dist/cloud-workspace/runtime/asset-generation.d.ts +109 -12
- package/dist/cloud-workspace/runtime/asset-generation.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/asset-generation.js +24 -4
- package/dist/cloud-workspace/runtime/asset-generation.js.map +1 -1
- package/dist/cloud-workspace/runtime/asset-library-save.d.ts +8 -8
- package/dist/cloud-workspace/runtime/audio-adjustments.d.ts +13 -0
- package/dist/cloud-workspace/runtime/audio-adjustments.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-adjustments.js +90 -0
- package/dist/cloud-workspace/runtime/audio-adjustments.js.map +1 -0
- package/dist/cloud-workspace/runtime/audio-asset-protocol.d.ts +664 -0
- package/dist/cloud-workspace/runtime/audio-asset-protocol.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-asset-protocol.js +98 -0
- package/dist/cloud-workspace/runtime/audio-asset-protocol.js.map +1 -0
- package/dist/cloud-workspace/runtime/audio-document.d.ts +127 -0
- package/dist/cloud-workspace/runtime/audio-document.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-document.js +293 -0
- package/dist/cloud-workspace/runtime/audio-document.js.map +1 -0
- package/dist/cloud-workspace/runtime/audio-export.d.ts +25 -0
- package/dist/cloud-workspace/runtime/audio-export.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-export.js +21 -0
- package/dist/cloud-workspace/runtime/audio-export.js.map +1 -0
- package/dist/cloud-workspace/runtime/audio-player.d.ts +18 -0
- package/dist/cloud-workspace/runtime/audio-player.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-player.js +98 -0
- package/dist/cloud-workspace/runtime/audio-player.js.map +1 -0
- package/dist/cloud-workspace/runtime/audio-synthesizer.d.ts +38 -0
- package/dist/cloud-workspace/runtime/audio-synthesizer.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/audio-synthesizer.js +342 -0
- package/dist/cloud-workspace/runtime/audio-synthesizer.js.map +1 -0
- package/dist/cloud-workspace/runtime/batch-runs.d.ts +2 -2
- package/dist/cloud-workspace/runtime/composer-context.d.ts +122 -0
- package/dist/cloud-workspace/runtime/composer-context.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/composer-context.js +2 -0
- package/dist/cloud-workspace/runtime/composer-context.js.map +1 -1
- package/dist/cloud-workspace/runtime/execution-admission.d.ts +2 -2
- package/dist/cloud-workspace/runtime/execution-context.d.ts +112 -0
- package/dist/cloud-workspace/runtime/execution-context.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/execution-context.js +62 -0
- package/dist/cloud-workspace/runtime/execution-context.js.map +1 -0
- package/dist/cloud-workspace/runtime/index.d.ts +14 -0
- package/dist/cloud-workspace/runtime/index.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/index.js +14 -0
- package/dist/cloud-workspace/runtime/index.js.map +1 -1
- package/dist/cloud-workspace/runtime/level-editor-agent.d.ts +331 -0
- package/dist/cloud-workspace/runtime/level-editor-agent.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-agent.js +172 -0
- package/dist/cloud-workspace/runtime/level-editor-agent.js.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-authoring.d.ts +125 -0
- package/dist/cloud-workspace/runtime/level-editor-authoring.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-authoring.js +63 -0
- package/dist/cloud-workspace/runtime/level-editor-authoring.js.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-compiler.d.ts +260 -0
- package/dist/cloud-workspace/runtime/level-editor-compiler.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-compiler.js +530 -0
- package/dist/cloud-workspace/runtime/level-editor-compiler.js.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-extension.d.ts +115 -0
- package/dist/cloud-workspace/runtime/level-editor-extension.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-extension.js +107 -0
- package/dist/cloud-workspace/runtime/level-editor-extension.js.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-path.d.ts +12 -0
- package/dist/cloud-workspace/runtime/level-editor-path.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-path.js +110 -0
- package/dist/cloud-workspace/runtime/level-editor-path.js.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-reducer.d.ts +30 -0
- package/dist/cloud-workspace/runtime/level-editor-reducer.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-reducer.js +627 -0
- package/dist/cloud-workspace/runtime/level-editor-reducer.js.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-schema.d.ts +621 -0
- package/dist/cloud-workspace/runtime/level-editor-schema.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-schema.js +409 -0
- package/dist/cloud-workspace/runtime/level-editor-schema.js.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-validation.d.ts +11 -0
- package/dist/cloud-workspace/runtime/level-editor-validation.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor-validation.js +128 -0
- package/dist/cloud-workspace/runtime/level-editor-validation.js.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor.d.ts +7 -0
- package/dist/cloud-workspace/runtime/level-editor.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/level-editor.js +7 -0
- package/dist/cloud-workspace/runtime/level-editor.js.map +1 -0
- package/dist/cloud-workspace/runtime/model-build-inputs.d.ts +1 -1
- package/dist/cloud-workspace/runtime/model-production.d.ts +41 -23
- package/dist/cloud-workspace/runtime/model-production.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/model-quality.d.ts +7 -7
- package/dist/cloud-workspace/runtime/model-validation.d.ts +8 -8
- package/dist/cloud-workspace/runtime/operations.d.ts +364 -8
- package/dist/cloud-workspace/runtime/operations.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/operations.js +33 -6
- package/dist/cloud-workspace/runtime/operations.js.map +1 -1
- package/dist/cloud-workspace/runtime/parameter-agent.d.ts +2 -2
- package/dist/cloud-workspace/runtime/previews.d.ts +3 -3
- package/dist/cloud-workspace/runtime/score-document.d.ts +285 -0
- package/dist/cloud-workspace/runtime/score-document.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/score-document.js +114 -0
- package/dist/cloud-workspace/runtime/score-document.js.map +1 -0
- package/dist/cloud-workspace/runtime/score-editing.d.ts +39 -0
- package/dist/cloud-workspace/runtime/score-editing.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/score-editing.js +180 -0
- package/dist/cloud-workspace/runtime/score-editing.js.map +1 -0
- package/dist/cloud-workspace/runtime/score-merging.d.ts +4 -0
- package/dist/cloud-workspace/runtime/score-merging.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/score-merging.js +74 -0
- package/dist/cloud-workspace/runtime/score-merging.js.map +1 -0
- package/dist/cloud-workspace/runtime/score-midi.d.ts +7 -0
- package/dist/cloud-workspace/runtime/score-midi.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/score-midi.js +226 -0
- package/dist/cloud-workspace/runtime/score-midi.js.map +1 -0
- package/dist/cloud-workspace/runtime/score-synthesizer.d.ts +51 -0
- package/dist/cloud-workspace/runtime/score-synthesizer.d.ts.map +1 -0
- package/dist/cloud-workspace/runtime/score-synthesizer.js +388 -0
- package/dist/cloud-workspace/runtime/score-synthesizer.js.map +1 -0
- package/dist/cloud-workspace/runtime/skills.d.ts +2 -2
- package/dist/cloud-workspace/runtime/skills.d.ts.map +1 -1
- package/dist/cloud-workspace/runtime/workspace-notifications.d.ts +1 -1
- package/dist/cloud-workspace/runtime/workspace-ui.d.ts +4 -4
- package/dist/project-skills/local-snapshot.d.ts +5 -3
- package/dist/project-skills/local-snapshot.d.ts.map +1 -1
- package/dist/project-skills/local-snapshot.js +15 -4
- package/dist/project-skills/local-snapshot.js.map +1 -1
- package/dist/project-skills/protocol.d.ts +7 -3
- package/dist/project-skills/protocol.d.ts.map +1 -1
- package/dist/project-skills/protocol.js +19 -1
- package/dist/project-skills/protocol.js.map +1 -1
- package/dist/project-skills/types.d.ts +13 -0
- package/dist/project-skills/types.d.ts.map +1 -1
- package/dist/project-skills/types.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const LEVEL_EDITOR_TASK_ACTIONS: readonly ["initialize", "evolve", "repair"];
|
|
3
|
+
export declare const LEVEL_EDITOR_TASK_STATUSES: readonly ["running", "reported", "checking", "verified", "needs-verification", "failed", "stale", "invalid", "uncertain", "interrupted"];
|
|
4
|
+
export declare const levelEditorTaskRequestSchema: z.ZodObject<{
|
|
5
|
+
version: z.ZodLiteral<1>;
|
|
6
|
+
taskId: z.ZodString;
|
|
7
|
+
action: z.ZodEnum<{
|
|
8
|
+
initialize: "initialize";
|
|
9
|
+
evolve: "evolve";
|
|
10
|
+
repair: "repair";
|
|
11
|
+
}>;
|
|
12
|
+
goal: z.ZodOptional<z.ZodString>;
|
|
13
|
+
editorId: z.ZodOptional<z.ZodString>;
|
|
14
|
+
sourceFingerprint: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strict>;
|
|
16
|
+
export type LevelEditorTaskRequest = z.infer<typeof levelEditorTaskRequestSchema>;
|
|
17
|
+
export declare const levelEditorTaskIntentSchema: z.ZodObject<{
|
|
18
|
+
action: z.ZodEnum<{
|
|
19
|
+
initialize: "initialize";
|
|
20
|
+
evolve: "evolve";
|
|
21
|
+
repair: "repair";
|
|
22
|
+
}>;
|
|
23
|
+
goal: z.ZodString;
|
|
24
|
+
editorId: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, z.core.$strict>;
|
|
26
|
+
export type LevelEditorTaskIntent = z.infer<typeof levelEditorTaskIntentSchema>;
|
|
27
|
+
export declare const levelEditorTaskReportSchema: z.ZodObject<{
|
|
28
|
+
version: z.ZodLiteral<1>;
|
|
29
|
+
taskId: z.ZodString;
|
|
30
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
31
|
+
path: z.ZodString;
|
|
32
|
+
sha256: z.ZodString;
|
|
33
|
+
}, z.core.$strict>>;
|
|
34
|
+
consumers: z.ZodArray<z.ZodObject<{
|
|
35
|
+
path: z.ZodString;
|
|
36
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
summary: z.ZodString;
|
|
38
|
+
}, z.core.$strict>>;
|
|
39
|
+
operations: z.ZodArray<z.ZodString>;
|
|
40
|
+
missing: z.ZodArray<z.ZodString>;
|
|
41
|
+
preserved: z.ZodOptional<z.ZodBoolean>;
|
|
42
|
+
migration: z.ZodOptional<z.ZodObject<{
|
|
43
|
+
fromDataContractVersion: z.ZodNumber;
|
|
44
|
+
toDataContractVersion: z.ZodNumber;
|
|
45
|
+
summary: z.ZodString;
|
|
46
|
+
}, z.core.$strict>>;
|
|
47
|
+
}, z.core.$strict>;
|
|
48
|
+
export type LevelEditorTaskReport = z.infer<typeof levelEditorTaskReportSchema>;
|
|
49
|
+
export declare const levelEditorTaskCheckSchema: z.ZodObject<{
|
|
50
|
+
script: z.ZodEnum<{
|
|
51
|
+
build: "build";
|
|
52
|
+
typecheck: "typecheck";
|
|
53
|
+
"test:level-editor": "test:level-editor";
|
|
54
|
+
}>;
|
|
55
|
+
code: z.ZodNullable<z.ZodNumber>;
|
|
56
|
+
timedOut: z.ZodBoolean;
|
|
57
|
+
canceled: z.ZodOptional<z.ZodBoolean>;
|
|
58
|
+
logDigest: z.ZodString;
|
|
59
|
+
startedAt: z.ZodString;
|
|
60
|
+
finishedAt: z.ZodString;
|
|
61
|
+
}, z.core.$strict>;
|
|
62
|
+
export declare const levelEditorTaskRecordSchema: z.ZodObject<{
|
|
63
|
+
version: z.ZodLiteral<1>;
|
|
64
|
+
taskId: z.ZodString;
|
|
65
|
+
action: z.ZodEnum<{
|
|
66
|
+
initialize: "initialize";
|
|
67
|
+
evolve: "evolve";
|
|
68
|
+
repair: "repair";
|
|
69
|
+
}>;
|
|
70
|
+
goal: z.ZodOptional<z.ZodString>;
|
|
71
|
+
editorId: z.ZodOptional<z.ZodString>;
|
|
72
|
+
workspaceId: z.ZodString;
|
|
73
|
+
directoryName: z.ZodString;
|
|
74
|
+
sessionId: z.ZodString;
|
|
75
|
+
generation: z.ZodNumber;
|
|
76
|
+
runtimeEpoch: z.ZodNumber;
|
|
77
|
+
status: z.ZodEnum<{
|
|
78
|
+
failed: "failed";
|
|
79
|
+
invalid: "invalid";
|
|
80
|
+
running: "running";
|
|
81
|
+
reported: "reported";
|
|
82
|
+
checking: "checking";
|
|
83
|
+
verified: "verified";
|
|
84
|
+
"needs-verification": "needs-verification";
|
|
85
|
+
stale: "stale";
|
|
86
|
+
uncertain: "uncertain";
|
|
87
|
+
interrupted: "interrupted";
|
|
88
|
+
}>;
|
|
89
|
+
reportPath: z.ZodString;
|
|
90
|
+
report: z.ZodOptional<z.ZodObject<{
|
|
91
|
+
version: z.ZodLiteral<1>;
|
|
92
|
+
taskId: z.ZodString;
|
|
93
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
94
|
+
path: z.ZodString;
|
|
95
|
+
sha256: z.ZodString;
|
|
96
|
+
}, z.core.$strict>>;
|
|
97
|
+
consumers: z.ZodArray<z.ZodObject<{
|
|
98
|
+
path: z.ZodString;
|
|
99
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
100
|
+
summary: z.ZodString;
|
|
101
|
+
}, z.core.$strict>>;
|
|
102
|
+
operations: z.ZodArray<z.ZodString>;
|
|
103
|
+
missing: z.ZodArray<z.ZodString>;
|
|
104
|
+
preserved: z.ZodOptional<z.ZodBoolean>;
|
|
105
|
+
migration: z.ZodOptional<z.ZodObject<{
|
|
106
|
+
fromDataContractVersion: z.ZodNumber;
|
|
107
|
+
toDataContractVersion: z.ZodNumber;
|
|
108
|
+
summary: z.ZodString;
|
|
109
|
+
}, z.core.$strict>>;
|
|
110
|
+
}, z.core.$strict>>;
|
|
111
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
112
|
+
script: z.ZodEnum<{
|
|
113
|
+
build: "build";
|
|
114
|
+
typecheck: "typecheck";
|
|
115
|
+
"test:level-editor": "test:level-editor";
|
|
116
|
+
}>;
|
|
117
|
+
code: z.ZodNullable<z.ZodNumber>;
|
|
118
|
+
timedOut: z.ZodBoolean;
|
|
119
|
+
canceled: z.ZodOptional<z.ZodBoolean>;
|
|
120
|
+
logDigest: z.ZodString;
|
|
121
|
+
startedAt: z.ZodString;
|
|
122
|
+
finishedAt: z.ZodString;
|
|
123
|
+
}, z.core.$strict>>;
|
|
124
|
+
sourceDigest: z.ZodOptional<z.ZodString>;
|
|
125
|
+
initializationSkill: z.ZodOptional<z.ZodObject<{
|
|
126
|
+
entryKey: z.ZodString;
|
|
127
|
+
lockHash: z.ZodString;
|
|
128
|
+
}, z.core.$strict>>;
|
|
129
|
+
productionCheck: z.ZodOptional<z.ZodObject<{
|
|
130
|
+
reportHash: z.ZodString;
|
|
131
|
+
artifactCount: z.ZodNumber;
|
|
132
|
+
moduleCount: z.ZodNumber;
|
|
133
|
+
checkedAt: z.ZodString;
|
|
134
|
+
}, z.core.$strict>>;
|
|
135
|
+
receiptId: z.ZodOptional<z.ZodString>;
|
|
136
|
+
error: z.ZodOptional<z.ZodString>;
|
|
137
|
+
createdAt: z.ZodString;
|
|
138
|
+
updatedAt: z.ZodString;
|
|
139
|
+
}, z.core.$strict>;
|
|
140
|
+
export type LevelEditorTaskRecord = z.infer<typeof levelEditorTaskRecordSchema>;
|
|
141
|
+
export declare const levelEditorTaskListSchema: z.ZodObject<{
|
|
142
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
143
|
+
version: z.ZodLiteral<1>;
|
|
144
|
+
taskId: z.ZodString;
|
|
145
|
+
action: z.ZodEnum<{
|
|
146
|
+
initialize: "initialize";
|
|
147
|
+
evolve: "evolve";
|
|
148
|
+
repair: "repair";
|
|
149
|
+
}>;
|
|
150
|
+
goal: z.ZodOptional<z.ZodString>;
|
|
151
|
+
editorId: z.ZodOptional<z.ZodString>;
|
|
152
|
+
workspaceId: z.ZodString;
|
|
153
|
+
directoryName: z.ZodString;
|
|
154
|
+
sessionId: z.ZodString;
|
|
155
|
+
generation: z.ZodNumber;
|
|
156
|
+
runtimeEpoch: z.ZodNumber;
|
|
157
|
+
status: z.ZodEnum<{
|
|
158
|
+
failed: "failed";
|
|
159
|
+
invalid: "invalid";
|
|
160
|
+
running: "running";
|
|
161
|
+
reported: "reported";
|
|
162
|
+
checking: "checking";
|
|
163
|
+
verified: "verified";
|
|
164
|
+
"needs-verification": "needs-verification";
|
|
165
|
+
stale: "stale";
|
|
166
|
+
uncertain: "uncertain";
|
|
167
|
+
interrupted: "interrupted";
|
|
168
|
+
}>;
|
|
169
|
+
reportPath: z.ZodString;
|
|
170
|
+
report: z.ZodOptional<z.ZodObject<{
|
|
171
|
+
version: z.ZodLiteral<1>;
|
|
172
|
+
taskId: z.ZodString;
|
|
173
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
174
|
+
path: z.ZodString;
|
|
175
|
+
sha256: z.ZodString;
|
|
176
|
+
}, z.core.$strict>>;
|
|
177
|
+
consumers: z.ZodArray<z.ZodObject<{
|
|
178
|
+
path: z.ZodString;
|
|
179
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
180
|
+
summary: z.ZodString;
|
|
181
|
+
}, z.core.$strict>>;
|
|
182
|
+
operations: z.ZodArray<z.ZodString>;
|
|
183
|
+
missing: z.ZodArray<z.ZodString>;
|
|
184
|
+
preserved: z.ZodOptional<z.ZodBoolean>;
|
|
185
|
+
migration: z.ZodOptional<z.ZodObject<{
|
|
186
|
+
fromDataContractVersion: z.ZodNumber;
|
|
187
|
+
toDataContractVersion: z.ZodNumber;
|
|
188
|
+
summary: z.ZodString;
|
|
189
|
+
}, z.core.$strict>>;
|
|
190
|
+
}, z.core.$strict>>;
|
|
191
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
192
|
+
script: z.ZodEnum<{
|
|
193
|
+
build: "build";
|
|
194
|
+
typecheck: "typecheck";
|
|
195
|
+
"test:level-editor": "test:level-editor";
|
|
196
|
+
}>;
|
|
197
|
+
code: z.ZodNullable<z.ZodNumber>;
|
|
198
|
+
timedOut: z.ZodBoolean;
|
|
199
|
+
canceled: z.ZodOptional<z.ZodBoolean>;
|
|
200
|
+
logDigest: z.ZodString;
|
|
201
|
+
startedAt: z.ZodString;
|
|
202
|
+
finishedAt: z.ZodString;
|
|
203
|
+
}, z.core.$strict>>;
|
|
204
|
+
sourceDigest: z.ZodOptional<z.ZodString>;
|
|
205
|
+
initializationSkill: z.ZodOptional<z.ZodObject<{
|
|
206
|
+
entryKey: z.ZodString;
|
|
207
|
+
lockHash: z.ZodString;
|
|
208
|
+
}, z.core.$strict>>;
|
|
209
|
+
productionCheck: z.ZodOptional<z.ZodObject<{
|
|
210
|
+
reportHash: z.ZodString;
|
|
211
|
+
artifactCount: z.ZodNumber;
|
|
212
|
+
moduleCount: z.ZodNumber;
|
|
213
|
+
checkedAt: z.ZodString;
|
|
214
|
+
}, z.core.$strict>>;
|
|
215
|
+
receiptId: z.ZodOptional<z.ZodString>;
|
|
216
|
+
error: z.ZodOptional<z.ZodString>;
|
|
217
|
+
createdAt: z.ZodString;
|
|
218
|
+
updatedAt: z.ZodString;
|
|
219
|
+
}, z.core.$strict>>;
|
|
220
|
+
}, z.core.$strict>;
|
|
221
|
+
/** Browser projection strips private source-turn and control-queue fields. */
|
|
222
|
+
export declare const levelEditorRequestRecordSchema: z.ZodObject<{
|
|
223
|
+
requestId: z.ZodString;
|
|
224
|
+
taskId: z.ZodString;
|
|
225
|
+
attemptId: z.ZodOptional<z.ZodString>;
|
|
226
|
+
retryOfRequestId: z.ZodOptional<z.ZodString>;
|
|
227
|
+
failedStage: z.ZodOptional<z.ZodEnum<{
|
|
228
|
+
preview: "preview";
|
|
229
|
+
generate: "generate";
|
|
230
|
+
verify: "verify";
|
|
231
|
+
}>>;
|
|
232
|
+
retryableStage: z.ZodOptional<z.ZodEnum<{
|
|
233
|
+
preview: "preview";
|
|
234
|
+
verify: "verify";
|
|
235
|
+
}>>;
|
|
236
|
+
workspaceId: z.ZodString;
|
|
237
|
+
directoryName: z.ZodString;
|
|
238
|
+
sourceSessionId: z.ZodString;
|
|
239
|
+
generation: z.ZodNumber;
|
|
240
|
+
runtimeEpoch: z.ZodNumber;
|
|
241
|
+
action: z.ZodEnum<{
|
|
242
|
+
initialize: "initialize";
|
|
243
|
+
evolve: "evolve";
|
|
244
|
+
repair: "repair";
|
|
245
|
+
}>;
|
|
246
|
+
goal: z.ZodString;
|
|
247
|
+
stage: z.ZodEnum<{
|
|
248
|
+
preview: "preview";
|
|
249
|
+
generate: "generate";
|
|
250
|
+
verify: "verify";
|
|
251
|
+
complete: "complete";
|
|
252
|
+
}>;
|
|
253
|
+
status: z.ZodEnum<{
|
|
254
|
+
failed: "failed";
|
|
255
|
+
cancelled: "cancelled";
|
|
256
|
+
stale: "stale";
|
|
257
|
+
uncertain: "uncertain";
|
|
258
|
+
requested: "requested";
|
|
259
|
+
queued: "queued";
|
|
260
|
+
dispatched: "dispatched";
|
|
261
|
+
}>;
|
|
262
|
+
error: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
263
|
+
createdAt: z.ZodString;
|
|
264
|
+
updatedAt: z.ZodString;
|
|
265
|
+
}, z.core.$strip>;
|
|
266
|
+
export type LevelEditorRequestRecord = z.infer<typeof levelEditorRequestRecordSchema>;
|
|
267
|
+
export declare const levelEditorRequestListSchema: z.ZodObject<{
|
|
268
|
+
requests: z.ZodArray<z.ZodObject<{
|
|
269
|
+
requestId: z.ZodString;
|
|
270
|
+
taskId: z.ZodString;
|
|
271
|
+
attemptId: z.ZodOptional<z.ZodString>;
|
|
272
|
+
retryOfRequestId: z.ZodOptional<z.ZodString>;
|
|
273
|
+
failedStage: z.ZodOptional<z.ZodEnum<{
|
|
274
|
+
preview: "preview";
|
|
275
|
+
generate: "generate";
|
|
276
|
+
verify: "verify";
|
|
277
|
+
}>>;
|
|
278
|
+
retryableStage: z.ZodOptional<z.ZodEnum<{
|
|
279
|
+
preview: "preview";
|
|
280
|
+
verify: "verify";
|
|
281
|
+
}>>;
|
|
282
|
+
workspaceId: z.ZodString;
|
|
283
|
+
directoryName: z.ZodString;
|
|
284
|
+
sourceSessionId: z.ZodString;
|
|
285
|
+
generation: z.ZodNumber;
|
|
286
|
+
runtimeEpoch: z.ZodNumber;
|
|
287
|
+
action: z.ZodEnum<{
|
|
288
|
+
initialize: "initialize";
|
|
289
|
+
evolve: "evolve";
|
|
290
|
+
repair: "repair";
|
|
291
|
+
}>;
|
|
292
|
+
goal: z.ZodString;
|
|
293
|
+
stage: z.ZodEnum<{
|
|
294
|
+
preview: "preview";
|
|
295
|
+
generate: "generate";
|
|
296
|
+
verify: "verify";
|
|
297
|
+
complete: "complete";
|
|
298
|
+
}>;
|
|
299
|
+
status: z.ZodEnum<{
|
|
300
|
+
failed: "failed";
|
|
301
|
+
cancelled: "cancelled";
|
|
302
|
+
stale: "stale";
|
|
303
|
+
uncertain: "uncertain";
|
|
304
|
+
requested: "requested";
|
|
305
|
+
queued: "queued";
|
|
306
|
+
dispatched: "dispatched";
|
|
307
|
+
}>;
|
|
308
|
+
error: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
309
|
+
createdAt: z.ZodString;
|
|
310
|
+
updatedAt: z.ZodString;
|
|
311
|
+
}, z.core.$strip>>;
|
|
312
|
+
}, z.core.$strict>;
|
|
313
|
+
export declare const levelEditorRetryPayloadSchema: z.ZodObject<{
|
|
314
|
+
version: z.ZodLiteral<1>;
|
|
315
|
+
requestId: z.ZodString;
|
|
316
|
+
attemptId: z.ZodString;
|
|
317
|
+
stage: z.ZodEnum<{
|
|
318
|
+
preview: "preview";
|
|
319
|
+
verify: "verify";
|
|
320
|
+
}>;
|
|
321
|
+
expectedSourceFingerprint: z.ZodString;
|
|
322
|
+
expectedDefinitionHash: z.ZodString;
|
|
323
|
+
expectedDocumentHashes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
324
|
+
}, z.core.$strict>;
|
|
325
|
+
export type LevelEditorRetryPayload = z.infer<typeof levelEditorRetryPayloadSchema>;
|
|
326
|
+
export declare const levelEditorVerifyPayloadSchema: z.ZodObject<{
|
|
327
|
+
taskId: z.ZodString;
|
|
328
|
+
retryRequestId: z.ZodOptional<z.ZodString>;
|
|
329
|
+
}, z.core.$strict>;
|
|
330
|
+
export type LevelEditorVerifyPayload = z.infer<typeof levelEditorVerifyPayloadSchema>;
|
|
331
|
+
//# sourceMappingURL=level-editor-agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"level-editor-agent.d.ts","sourceRoot":"","sources":["../../../src/cloud-workspace/runtime/level-editor-agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,yBAAyB,6CA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uB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,eAAO,MAAM,8BAA8B;;;kBAEhC,CAAC;AACZ,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { workspaceRelativePathSchema } from './files.js';
|
|
3
|
+
import { levelEditorDigestSchema, levelEditorIdSchema } from './level-editor-schema.js';
|
|
4
|
+
export const LEVEL_EDITOR_TASK_ACTIONS = ['initialize', 'evolve', 'repair'];
|
|
5
|
+
export const LEVEL_EDITOR_TASK_STATUSES = [
|
|
6
|
+
'running',
|
|
7
|
+
'reported',
|
|
8
|
+
'checking',
|
|
9
|
+
'verified',
|
|
10
|
+
'needs-verification',
|
|
11
|
+
'failed',
|
|
12
|
+
'stale',
|
|
13
|
+
'invalid',
|
|
14
|
+
'uncertain',
|
|
15
|
+
'interrupted',
|
|
16
|
+
];
|
|
17
|
+
export const levelEditorTaskRequestSchema = z
|
|
18
|
+
.object({
|
|
19
|
+
version: z.literal(1),
|
|
20
|
+
taskId: z.string().uuid(),
|
|
21
|
+
action: z.enum(LEVEL_EDITOR_TASK_ACTIONS),
|
|
22
|
+
goal: z.string().trim().min(1).max(4000).optional(),
|
|
23
|
+
editorId: levelEditorIdSchema.optional(),
|
|
24
|
+
sourceFingerprint: levelEditorDigestSchema.optional(),
|
|
25
|
+
})
|
|
26
|
+
.strict();
|
|
27
|
+
export const levelEditorTaskIntentSchema = z
|
|
28
|
+
.object({
|
|
29
|
+
action: z.enum(LEVEL_EDITOR_TASK_ACTIONS),
|
|
30
|
+
goal: z.string().trim().min(1).max(4000),
|
|
31
|
+
editorId: levelEditorIdSchema.optional(),
|
|
32
|
+
})
|
|
33
|
+
.strict();
|
|
34
|
+
const evidence = z
|
|
35
|
+
.object({
|
|
36
|
+
path: workspaceRelativePathSchema,
|
|
37
|
+
line: z.number().int().positive().max(1_000_000).optional(),
|
|
38
|
+
summary: z.string().min(1).max(2000),
|
|
39
|
+
})
|
|
40
|
+
.strict();
|
|
41
|
+
export const levelEditorTaskReportSchema = z
|
|
42
|
+
.object({
|
|
43
|
+
version: z.literal(1),
|
|
44
|
+
taskId: z.string().uuid(),
|
|
45
|
+
sources: z
|
|
46
|
+
.array(z.object({ path: workspaceRelativePathSchema, sha256: levelEditorDigestSchema }).strict())
|
|
47
|
+
.min(1)
|
|
48
|
+
.max(2048),
|
|
49
|
+
consumers: z.array(evidence).min(1).max(128),
|
|
50
|
+
operations: z.array(z.string().min(1).max(128)).min(1).max(256),
|
|
51
|
+
missing: z.array(z.string().min(1).max(2000)).max(128),
|
|
52
|
+
preserved: z.boolean().optional(),
|
|
53
|
+
migration: z
|
|
54
|
+
.object({
|
|
55
|
+
fromDataContractVersion: z.number().int().positive(),
|
|
56
|
+
toDataContractVersion: z.number().int().positive(),
|
|
57
|
+
summary: z.string().trim().min(1).max(4000),
|
|
58
|
+
})
|
|
59
|
+
.strict()
|
|
60
|
+
.optional(),
|
|
61
|
+
})
|
|
62
|
+
.strict()
|
|
63
|
+
.superRefine((value, context) => {
|
|
64
|
+
if (new Set(value.sources.map((item) => item.path)).size !== value.sources.length)
|
|
65
|
+
context.addIssue({
|
|
66
|
+
code: 'custom',
|
|
67
|
+
message: 'level_editor_report_duplicate_source',
|
|
68
|
+
path: ['sources'],
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
export const levelEditorTaskCheckSchema = z
|
|
72
|
+
.object({
|
|
73
|
+
script: z.enum(['test:level-editor', 'build', 'typecheck']),
|
|
74
|
+
code: z.number().int().nullable(),
|
|
75
|
+
timedOut: z.boolean(),
|
|
76
|
+
canceled: z.boolean().optional(),
|
|
77
|
+
logDigest: levelEditorDigestSchema,
|
|
78
|
+
startedAt: z.string().min(1),
|
|
79
|
+
finishedAt: z.string().min(1),
|
|
80
|
+
})
|
|
81
|
+
.strict();
|
|
82
|
+
export const levelEditorTaskRecordSchema = z
|
|
83
|
+
.object({
|
|
84
|
+
version: z.literal(1),
|
|
85
|
+
taskId: z.string().uuid(),
|
|
86
|
+
action: z.enum(LEVEL_EDITOR_TASK_ACTIONS),
|
|
87
|
+
goal: z.string().max(4000).optional(),
|
|
88
|
+
editorId: levelEditorIdSchema.optional(),
|
|
89
|
+
workspaceId: z.string().min(1).max(128),
|
|
90
|
+
directoryName: z.string().min(1).max(128),
|
|
91
|
+
sessionId: z.string().min(1).max(128),
|
|
92
|
+
generation: z.number().int().nonnegative(),
|
|
93
|
+
runtimeEpoch: z.number().int().nonnegative(),
|
|
94
|
+
status: z.enum(LEVEL_EDITOR_TASK_STATUSES),
|
|
95
|
+
reportPath: workspaceRelativePathSchema,
|
|
96
|
+
report: levelEditorTaskReportSchema.optional(),
|
|
97
|
+
checks: z.array(levelEditorTaskCheckSchema).max(3),
|
|
98
|
+
sourceDigest: levelEditorDigestSchema.optional(),
|
|
99
|
+
initializationSkill: z
|
|
100
|
+
.object({ entryKey: z.string().min(1).max(256), lockHash: levelEditorDigestSchema })
|
|
101
|
+
.strict()
|
|
102
|
+
.optional(),
|
|
103
|
+
productionCheck: z
|
|
104
|
+
.object({
|
|
105
|
+
reportHash: levelEditorDigestSchema,
|
|
106
|
+
artifactCount: z.number().int().positive().max(4096),
|
|
107
|
+
moduleCount: z.number().int().positive().max(10000),
|
|
108
|
+
checkedAt: z.string().min(1),
|
|
109
|
+
})
|
|
110
|
+
.strict()
|
|
111
|
+
.optional(),
|
|
112
|
+
receiptId: z.string().uuid().optional(),
|
|
113
|
+
error: z.string().min(1).max(256).optional(),
|
|
114
|
+
createdAt: z.string().min(1),
|
|
115
|
+
updatedAt: z.string().min(1),
|
|
116
|
+
})
|
|
117
|
+
.strict();
|
|
118
|
+
export const levelEditorTaskListSchema = z
|
|
119
|
+
.object({ tasks: z.array(levelEditorTaskRecordSchema).max(256) })
|
|
120
|
+
.strict();
|
|
121
|
+
/** Browser projection strips private source-turn and control-queue fields. */
|
|
122
|
+
export const levelEditorRequestRecordSchema = z
|
|
123
|
+
.object({
|
|
124
|
+
requestId: z.string().uuid(),
|
|
125
|
+
taskId: z.string().uuid(),
|
|
126
|
+
attemptId: z.string().uuid().optional(),
|
|
127
|
+
retryOfRequestId: z.string().uuid().optional(),
|
|
128
|
+
failedStage: z.enum(['generate', 'verify', 'preview']).optional(),
|
|
129
|
+
retryableStage: z.enum(['verify', 'preview']).optional(),
|
|
130
|
+
workspaceId: z.string().min(1).max(128),
|
|
131
|
+
directoryName: z.string().min(1).max(128),
|
|
132
|
+
sourceSessionId: z.string().min(1).max(128),
|
|
133
|
+
generation: z.number().int().nonnegative(),
|
|
134
|
+
runtimeEpoch: z.number().int().nonnegative(),
|
|
135
|
+
action: z.enum(LEVEL_EDITOR_TASK_ACTIONS),
|
|
136
|
+
goal: z.string().min(1).max(4000),
|
|
137
|
+
stage: z.enum(['generate', 'verify', 'preview', 'complete']),
|
|
138
|
+
status: z.enum([
|
|
139
|
+
'requested',
|
|
140
|
+
'queued',
|
|
141
|
+
'dispatched',
|
|
142
|
+
'failed',
|
|
143
|
+
'stale',
|
|
144
|
+
'uncertain',
|
|
145
|
+
'cancelled',
|
|
146
|
+
]),
|
|
147
|
+
error: z
|
|
148
|
+
.string()
|
|
149
|
+
.transform((value) => value.slice(0, 256))
|
|
150
|
+
.optional(),
|
|
151
|
+
createdAt: z.string().min(1),
|
|
152
|
+
updatedAt: z.string().min(1),
|
|
153
|
+
})
|
|
154
|
+
.strip();
|
|
155
|
+
export const levelEditorRequestListSchema = z
|
|
156
|
+
.object({ requests: z.array(levelEditorRequestRecordSchema).max(256) })
|
|
157
|
+
.strict();
|
|
158
|
+
export const levelEditorRetryPayloadSchema = z
|
|
159
|
+
.object({
|
|
160
|
+
version: z.literal(1),
|
|
161
|
+
requestId: z.string().uuid(),
|
|
162
|
+
attemptId: z.string().uuid(),
|
|
163
|
+
stage: z.enum(['verify', 'preview']),
|
|
164
|
+
expectedSourceFingerprint: levelEditorDigestSchema,
|
|
165
|
+
expectedDefinitionHash: levelEditorDigestSchema,
|
|
166
|
+
expectedDocumentHashes: z.record(levelEditorIdSchema, levelEditorDigestSchema),
|
|
167
|
+
})
|
|
168
|
+
.strict();
|
|
169
|
+
export const levelEditorVerifyPayloadSchema = z
|
|
170
|
+
.object({ taskId: z.string().uuid(), retryRequestId: z.string().uuid().optional() })
|
|
171
|
+
.strict();
|
|
172
|
+
//# sourceMappingURL=level-editor-agent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"level-editor-agent.js","sourceRoot":"","sources":["../../../src/cloud-workspace/runtime/level-editor-agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAExF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,YAAY,EAAE,QAAQ,EAAE,QAAQ,CAAU,CAAC;AACrF,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,SAAS;IACT,UAAU;IACV,UAAU;IACV,UAAU;IACV,oBAAoB;IACpB,QAAQ;IACR,OAAO;IACP,SAAS;IACT,WAAW;IACX,aAAa;CACL,CAAC;AACX,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC;KAC1C,MAAM,CAAC;IACN,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IACrB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACzB,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,yBAAyB,CAAC;IACzC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;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,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IACrB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC5B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC5B,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;IACpC,yBAAyB,EAAE,uBAAuB;IAClD,sBAAsB,EAAE,uBAAuB;IAC/C,sBAAsB,EAAE,CAAC,CAAC,MAAM,CAAC,mBAAmB,EAAE,uBAAuB,CAAC;CAC/E,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC;KAC5C,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC;KACnF,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Generated from the same schemas that compile declarations and execute commands. */
|
|
3
|
+
export declare const LEVEL_EDITOR_AUTHORING_CONTRACT: {
|
|
4
|
+
protocolVersion: number;
|
|
5
|
+
transactionVersions: number[];
|
|
6
|
+
extensionProtocol: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
7
|
+
definition: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
8
|
+
binding: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
9
|
+
collection: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
10
|
+
view: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
11
|
+
commandDeclaration: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
12
|
+
taskReport: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
13
|
+
commandInputs: {
|
|
14
|
+
[k: string]: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
15
|
+
};
|
|
16
|
+
components: ({
|
|
17
|
+
propsSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
18
|
+
component: "split@1";
|
|
19
|
+
children: true;
|
|
20
|
+
bindings: readonly [];
|
|
21
|
+
actions: readonly [];
|
|
22
|
+
} | {
|
|
23
|
+
propsSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
24
|
+
component: "stack@1";
|
|
25
|
+
children: true;
|
|
26
|
+
bindings: readonly [];
|
|
27
|
+
actions: readonly [];
|
|
28
|
+
} | {
|
|
29
|
+
propsSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
30
|
+
component: "tabs@1";
|
|
31
|
+
children: true;
|
|
32
|
+
bindings: readonly [];
|
|
33
|
+
actions: readonly [];
|
|
34
|
+
} | {
|
|
35
|
+
propsSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
36
|
+
component: "group@1";
|
|
37
|
+
children: true;
|
|
38
|
+
bindings: readonly [];
|
|
39
|
+
actions: readonly [];
|
|
40
|
+
} | {
|
|
41
|
+
propsSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
42
|
+
component: "toolbar@1";
|
|
43
|
+
children: true;
|
|
44
|
+
bindings: readonly [];
|
|
45
|
+
actions: readonly [];
|
|
46
|
+
} | {
|
|
47
|
+
propsSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
48
|
+
component: "collection@1";
|
|
49
|
+
children: false;
|
|
50
|
+
bindings: readonly [];
|
|
51
|
+
actions: readonly ["insert", "duplicate", "delete", "reorder"];
|
|
52
|
+
} | {
|
|
53
|
+
propsSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
54
|
+
component: "inspector@1";
|
|
55
|
+
children: false;
|
|
56
|
+
bindings: readonly [];
|
|
57
|
+
actions: readonly [];
|
|
58
|
+
} | {
|
|
59
|
+
propsSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
60
|
+
component: "palette@1";
|
|
61
|
+
children: false;
|
|
62
|
+
bindings: readonly [];
|
|
63
|
+
actions: readonly [];
|
|
64
|
+
} | {
|
|
65
|
+
propsSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
66
|
+
component: "grid2d@1";
|
|
67
|
+
children: false;
|
|
68
|
+
bindings: readonly ["rows", "columns", "cells"];
|
|
69
|
+
actions: readonly ["paint"];
|
|
70
|
+
} | {
|
|
71
|
+
propsSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
72
|
+
component: "objects2d@1";
|
|
73
|
+
children: false;
|
|
74
|
+
bindings: readonly ["x", "y", "rotation", "scaleX", "scaleY", "asset"];
|
|
75
|
+
actions: readonly ["transform", "duplicate", "delete"];
|
|
76
|
+
} | {
|
|
77
|
+
propsSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
78
|
+
component: "paths2d@1";
|
|
79
|
+
children: false;
|
|
80
|
+
bindings: readonly [];
|
|
81
|
+
actions: readonly ["edit"];
|
|
82
|
+
} | {
|
|
83
|
+
propsSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
84
|
+
component: "objects3d@1";
|
|
85
|
+
children: false;
|
|
86
|
+
bindings: readonly ["x", "y", "z", "rotationX", "rotationY", "rotationZ", "scaleX", "scaleY", "scaleZ", "asset"];
|
|
87
|
+
actions: readonly ["transform", "duplicate", "delete"];
|
|
88
|
+
} | {
|
|
89
|
+
propsSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
90
|
+
component: "command@1";
|
|
91
|
+
children: false;
|
|
92
|
+
bindings: readonly [];
|
|
93
|
+
actions: readonly [];
|
|
94
|
+
} | {
|
|
95
|
+
propsSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
96
|
+
component: "extension-view@1";
|
|
97
|
+
children: false;
|
|
98
|
+
bindings: readonly [];
|
|
99
|
+
actions: readonly [];
|
|
100
|
+
} | {
|
|
101
|
+
propsSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
102
|
+
component: "asset-picker@1";
|
|
103
|
+
children: false;
|
|
104
|
+
bindings: readonly ["value"];
|
|
105
|
+
actions: readonly ["change"];
|
|
106
|
+
} | {
|
|
107
|
+
propsSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
108
|
+
component: "preview@1";
|
|
109
|
+
children: false;
|
|
110
|
+
bindings: readonly [];
|
|
111
|
+
actions: readonly [];
|
|
112
|
+
})[];
|
|
113
|
+
dataSchemaKeywords: ("type" | "minimum" | "maximum" | "enum" | "default" | "items" | "title" | "description" | "required" | "properties" | "const" | "minLength" | "maxLength" | "minItems" | "maxItems" | "additionalProperties" | "readOnly" | "$schema" | "$id" | "$comment" | "examples")[];
|
|
114
|
+
limits: {
|
|
115
|
+
viewNodes: number;
|
|
116
|
+
viewDepth: number;
|
|
117
|
+
bindingSegments: number;
|
|
118
|
+
transactionChanges: number;
|
|
119
|
+
transactionBytes: number;
|
|
120
|
+
jsonDepth: number;
|
|
121
|
+
jsonNodes: number;
|
|
122
|
+
};
|
|
123
|
+
invariants: string[];
|
|
124
|
+
};
|
|
125
|
+
//# sourceMappingURL=level-editor-authoring.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"level-editor-authoring.d.ts","sourceRoot":"","sources":["../../../src/cloud-workspace/runtime/level-editor-authoring.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA4BxB,sFAAsF;AACtF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkD3C,CAAC"}
|