@volter/project 0.0.0-stage → 0.5.204
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 +202 -0
- package/NOTICE +6 -0
- package/README.md +18 -3
- package/package.json +64 -4
- package/schemas/engine-api.json +57 -0
- package/schemas/engine-api.md +22 -0
- package/schemas/volter-project.schema.json +468 -0
- package/schemas/volter-settings.schema.json +149 -0
- package/src/adapter/adapter-module.ts +997 -0
- package/src/adapter/adapter-surface.ts +34 -0
- package/src/adapter/authoring-seam-contract.ts +224 -0
- package/src/adapter/authoring.ts +1336 -0
- package/src/adapter/binding.ts +445 -0
- package/src/adapter/debug-registry-ref.ts +19 -0
- package/src/adapter/editor-looks.ts +519 -0
- package/src/adapter/finders/finder-result.ts +29 -0
- package/src/adapter/finders/registry.ts +116 -0
- package/src/adapter/frame-capture.ts +80 -0
- package/src/adapter/host-context.ts +114 -0
- package/src/adapter/index.ts +209 -0
- package/src/adapter/ingest/contract-system-slots.ts +28 -0
- package/src/adapter/ingest/game-contract-seams.ts +86 -0
- package/src/adapter/ingest/game-contract.ts +506 -0
- package/src/adapter/ingest/mount-readiness.ts +140 -0
- package/src/adapter/loop-gate-report.ts +53 -0
- package/src/adapter/manifest-interpreter.ts +64 -0
- package/src/adapter/native-entry-surface.ts +100 -0
- package/src/adapter/physics-adapter-2d.ts +30 -0
- package/src/adapter/render-audio.ts +20 -0
- package/src/adapter/render-memory.ts +34 -0
- package/src/adapter/renderer-config.ts +84 -0
- package/src/adapter/root-adapter.ts +243 -0
- package/src/adapter/root-seam-contract.ts +61 -0
- package/src/adapter/root-stacking.ts +67 -0
- package/src/adapter/seam-evidence.ts +336 -0
- package/src/adapter/system-adapter.ts +865 -0
- package/src/adapter/system-seam-contract.ts +138 -0
- package/src/adapter/system-slot.ts +301 -0
- package/src/adapter/transform.ts +35 -0
- package/src/adapter/workspace-arrangement.ts +92 -0
- package/src/core/system-phase.ts +52 -0
- package/src/inspection.ts +281 -0
- package/src/manifest/configuration-kinds.ts +241 -0
- package/src/manifest/editor-port.ts +69 -0
- package/src/manifest/filename.ts +45 -0
- package/src/manifest/kind-modules.ts +58 -0
- package/src/manifest/load-file.ts +33 -0
- package/src/manifest/load.ts +380 -0
- package/src/manifest/locate.ts +55 -0
- package/src/manifest/runtime-environment.ts +48 -0
- package/src/manifest/schema.ts +690 -0
- package/src/settings/keys.ts +152 -0
- package/src/settings/schema.ts +151 -0
|
@@ -0,0 +1,468 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "AUTO-GENERATED by scripts/generate-schema.ts — do not edit manually",
|
|
3
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"$schema": {
|
|
7
|
+
"description": "Optional JSON Schema URI for editor autocomplete and validation",
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
10
|
+
"manifestVersion": {
|
|
11
|
+
"type": "number",
|
|
12
|
+
"const": 2,
|
|
13
|
+
"description": "Manifest file format version (v2 clean roots)"
|
|
14
|
+
},
|
|
15
|
+
"name": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "Game display name"
|
|
18
|
+
},
|
|
19
|
+
"appId": {
|
|
20
|
+
"description": "Stable reverse-domain application id used by packaged targets",
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"version": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"description": "The game's own version (used for orphan detection)"
|
|
26
|
+
},
|
|
27
|
+
"engine": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"properties": {
|
|
30
|
+
"version": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "Exact @volter/project semver this game was scaffolded/last upgraded against — an identity pin, not a range"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"required": [
|
|
36
|
+
"version"
|
|
37
|
+
],
|
|
38
|
+
"additionalProperties": false,
|
|
39
|
+
"description": "Engine version pin"
|
|
40
|
+
},
|
|
41
|
+
"roots": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"items": {
|
|
44
|
+
"type": "object",
|
|
45
|
+
"properties": {
|
|
46
|
+
"id": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"description": "Unique id for this root within the manifest (enforced-unique, D-V6 — GameManifestSchema.roots rejects duplicates)"
|
|
49
|
+
},
|
|
50
|
+
"description": {
|
|
51
|
+
"description": "Optional one-line description of this root's game/content (e.g. an ingested game's blurb — the manifest-native replacement for a registry entry's description field)",
|
|
52
|
+
"type": "string"
|
|
53
|
+
},
|
|
54
|
+
"adapter": {
|
|
55
|
+
"description": "This root's adapter and sole rendering/lifecycle discriminator",
|
|
56
|
+
"anyOf": [
|
|
57
|
+
{
|
|
58
|
+
"type": "string",
|
|
59
|
+
"enum": [
|
|
60
|
+
"three",
|
|
61
|
+
"canvas",
|
|
62
|
+
"dom"
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"type": "object",
|
|
67
|
+
"properties": {
|
|
68
|
+
"module": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"description": "Game-folder-relative path to a custom adapter module (trust boundary)"
|
|
71
|
+
},
|
|
72
|
+
"surface": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"enum": [
|
|
75
|
+
"three",
|
|
76
|
+
"canvas",
|
|
77
|
+
"dom"
|
|
78
|
+
],
|
|
79
|
+
"description": "Native surface exposed by this custom adapter contract"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"required": [
|
|
83
|
+
"module",
|
|
84
|
+
"surface"
|
|
85
|
+
],
|
|
86
|
+
"additionalProperties": false
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"type": "object",
|
|
90
|
+
"properties": {
|
|
91
|
+
"surface": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"enum": [
|
|
94
|
+
"three",
|
|
95
|
+
"canvas",
|
|
96
|
+
"dom"
|
|
97
|
+
],
|
|
98
|
+
"description": "Native surface captured from the unmodified game"
|
|
99
|
+
},
|
|
100
|
+
"ingest": {
|
|
101
|
+
"type": "object",
|
|
102
|
+
"properties": {
|
|
103
|
+
"contractShim": {
|
|
104
|
+
"description": "Project-relative path to a HOST-ADDED ES module that declares this game's `window.volterGame` contract (adapter/ingest/game-contract.ts) WITHOUT editing a vendored byte — the pristine-copy door. The host imports it immediately BEFORE the game's own entry module, in the editor's realm. TIMING CONTRACT, which a shim author must obey: because it runs before the game`s entry, it MUST assign `window.volterGame` SYNCHRONOUSLY at top level. Anything that needs the game`s own modules must be LAZY: a dynamic `import()` INSIDE each verb/provider closure, resolved at call time. Importing a game module eagerly from the shim would evaluate it ahead of the game`s own entry and reorder its module side effects. Every such `import()` MUST take a STRING LITERAL, never a variable/table lookup. A variable specifier is not statically analyzable, so the dev server leaves it alone and it resolves at runtime against the shim`s own `/@fs/` url — while the game`s entry has had ITS relative imports rewritten to whatever url the server considers canonical for those files. Module identity is per-url, so the shim silently binds a SECOND, freshly-evaluated copy of the whole game and every provider reports a game that never started. Measured on a vendored three game: 285 world segments through the game`s own graph, 0 through the shim`s, and no error anywhere.",
|
|
105
|
+
"type": "string"
|
|
106
|
+
},
|
|
107
|
+
"dataWriter": {
|
|
108
|
+
"description": "Project-relative path to a HOST-ADDED ES module that writes this game's own DATA file back — the sibling of a source write for a game whose authorable truth is not source. A level-based game places its enemies, pickups and objectives in binary records inside a level file, reaching no source literal, so an authored move of one is an edit to that file and nothing else can write it. The module declares two exports and the host knows nothing else about it: `dataFile` (a project-relative string — the ONE file this writer edits) and `planDataEdit(bytes, {record, property, baseline, next})`, which returns `{changed: true, bytes}` or `{changed: false, reason}` and may be async. It is loaded in the editor realm beside the game, so it may `import()` the game's own modules to resolve what only a running game knows (a level writer asks the game`s own spatial lookup which cell a moved object landed in, and refuses \"outside the level\" rather than writing data the game would read back wrong). It NEVER fabricates: a record it cannot address, or a property it does not model, is a named refusal. An object is anchored to a record by carrying `userData.volterRecordIndex` — the game declares that identity itself (a recorded patch or a shim); the host never infers one.",
|
|
109
|
+
"type": "string"
|
|
110
|
+
},
|
|
111
|
+
"assets": {
|
|
112
|
+
"description": "Path-substring -> served-URL rewrites for this ingested game (IngestGame.assets today)",
|
|
113
|
+
"type": "object",
|
|
114
|
+
"propertyNames": {
|
|
115
|
+
"type": "string"
|
|
116
|
+
},
|
|
117
|
+
"additionalProperties": {
|
|
118
|
+
"type": "string"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"moduleAliases": {
|
|
122
|
+
"description": "The game's OWN bundler path aliases, restated as a mounting fact so its source resolves unedited. A game built with its own Vite/webpack config routinely imports itself through an alias (`~/lib/config`, `@/store/x`); the editor boots Vite from the ENGINE's config and never reads a game's own, so without this every such import is an unresolvable specifier and the mount dies at transform time. Key = the specifier PREFIX exactly as the game writes it (\"~/\"); value = the repo-root-relative directory it means (\"/vendor/games/<id>/src/\"). SELF-SCOPING: the host honors an entry only for importers inside the vendored game folder the value points into, so one game's alias can never capture another module's import. Rewriting the game's own imports instead would be a large non-seam-shaped diff against unmodified source — this declares the fact rather than editing it away.",
|
|
123
|
+
"type": "object",
|
|
124
|
+
"propertyNames": {
|
|
125
|
+
"type": "string"
|
|
126
|
+
},
|
|
127
|
+
"additionalProperties": {
|
|
128
|
+
"type": "string"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"domStubs": {
|
|
132
|
+
"description": "DOM API stub ids this ingested game requires to run headlessly/in-realm",
|
|
133
|
+
"type": "array",
|
|
134
|
+
"items": {
|
|
135
|
+
"type": "string"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"captureTimeoutMs": {
|
|
139
|
+
"description": "How long the host waits for this game's first captured frame before the mount FAILS by name. A game that needs a long boot (streamed world assets, a menu the player must clear) raises it; the default is 10s.",
|
|
140
|
+
"type": "number"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"additionalProperties": false,
|
|
144
|
+
"description": "Ingest adapter configuration for an unmodified game (a repo-vendored game or your own external folder)"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"required": [
|
|
148
|
+
"surface",
|
|
149
|
+
"ingest"
|
|
150
|
+
],
|
|
151
|
+
"additionalProperties": false
|
|
152
|
+
}
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
"entry": {
|
|
156
|
+
"description": "Module exporting a world root — a TSX/R3F component or a setup()/adapter (three), or a React component (dom). Required for every built-in adapter root.",
|
|
157
|
+
"type": "string"
|
|
158
|
+
},
|
|
159
|
+
"styles": {
|
|
160
|
+
"description": "Project-root-relative CSS files this root's mount needs — the PAGE-level stylesheet a game written to own a browser tab keeps its layout in (an ingested game is the standing case: its own entry imported the sheet, the host shim that replaces that entry cannot, because `html`/`body`/`*` rules would restyle the editor). Declared here, the editor serves each file rewritten to apply ONLY inside the container it mounts the root's DOM in (`@scope`; packages/editor/server/scoped-game-css.ts), so the HUD is styled on the UI board's story cards and on the game surface without the editor seeing a single one of those rules. The files themselves are never modified.",
|
|
161
|
+
"type": "array",
|
|
162
|
+
"items": {
|
|
163
|
+
"type": "string"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"world": {
|
|
167
|
+
"description": "The component this root's WORLD is, in the game's own source. Two readers, and they mount different things: the EDITOR mounts THIS component alone as the root's design-time document, while `entry` above stays what PLAY mounts (the whole game — its own composition, its own HUD, its own loop). It sits on the ROOT rather than inside any one adapter because the split it names is not about ingest: a game whose runtime entry is a SHELL over the thing an author actually edits has this shape whether the source is vendored or first-party. Two shipped cases, one field: an ingested game whose `entry` mounts game+HUD+loop while the named export is the world alone; and a translated Unity/Godot port, whose `entry` is a scene HOST that mounts the scene the built player starts on (`EditorBuildSettings` index 0 — routinely a menu with no 3D content at all) while the named export opens the scene an author edits. That is Unity's own split: build settings say where the PLAYER starts; the Scene view opens a scene, and Unity keeps that fact somewhere else entirely. A game whose world is not a separate component omits this and keeps mounting through `entry` in both modes.",
|
|
168
|
+
"type": "object",
|
|
169
|
+
"properties": {
|
|
170
|
+
"entry": {
|
|
171
|
+
"type": "string",
|
|
172
|
+
"description": "Project-relative path to the game's OWN module exporting that component"
|
|
173
|
+
},
|
|
174
|
+
"export": {
|
|
175
|
+
"description": "Named export to read from that module; omit when the module default-exports it",
|
|
176
|
+
"type": "string"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"required": [
|
|
180
|
+
"entry"
|
|
181
|
+
],
|
|
182
|
+
"additionalProperties": false
|
|
183
|
+
},
|
|
184
|
+
"zOrder": {
|
|
185
|
+
"default": 0,
|
|
186
|
+
"description": "Canvas stacking order; ties broken by array order",
|
|
187
|
+
"type": "integer",
|
|
188
|
+
"minimum": -9007199254740991,
|
|
189
|
+
"maximum": 9007199254740991
|
|
190
|
+
},
|
|
191
|
+
"pausable": {
|
|
192
|
+
"default": true,
|
|
193
|
+
"description": "Whether play-mode pause/step applies to this root",
|
|
194
|
+
"type": "boolean"
|
|
195
|
+
},
|
|
196
|
+
"loop": {
|
|
197
|
+
"default": "gated",
|
|
198
|
+
"description": "gated: host-driven loop (default). self-driven: this root drives its own loop (composited, unsynchronized)",
|
|
199
|
+
"type": "string",
|
|
200
|
+
"enum": [
|
|
201
|
+
"gated",
|
|
202
|
+
"self-driven"
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"required": [
|
|
207
|
+
"id",
|
|
208
|
+
"adapter"
|
|
209
|
+
],
|
|
210
|
+
"additionalProperties": false
|
|
211
|
+
},
|
|
212
|
+
"description": "The project's explicit adapter-root composition — ZERO OR MORE roots, and no implicit root: a project with no roots mounts nothing (a library of models, a folder of documents) and the editor derives its chrome from what IS declared. Root ids are unique, and a project declares at most ONE world root per medium — one `three`, one `dom`, one canvas-surface root (first-party canvas, canvas ingest and canvas module are the same medium)."
|
|
213
|
+
},
|
|
214
|
+
"authoring": {
|
|
215
|
+
"description": "Editor-only authoring metadata; never runtime ownership",
|
|
216
|
+
"type": "object",
|
|
217
|
+
"properties": {
|
|
218
|
+
"hierarchy": {
|
|
219
|
+
"description": "Editor projection for native adapter roots",
|
|
220
|
+
"type": "object",
|
|
221
|
+
"properties": {
|
|
222
|
+
"rootLabels": {
|
|
223
|
+
"description": "Optional editor labels keyed by adapter-root id",
|
|
224
|
+
"type": "object",
|
|
225
|
+
"propertyNames": {
|
|
226
|
+
"type": "string"
|
|
227
|
+
},
|
|
228
|
+
"additionalProperties": {
|
|
229
|
+
"type": "string"
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"groups": {
|
|
233
|
+
"description": "Optional editor-only hierarchy groups",
|
|
234
|
+
"type": "array",
|
|
235
|
+
"items": {
|
|
236
|
+
"type": "object",
|
|
237
|
+
"properties": {
|
|
238
|
+
"id": {
|
|
239
|
+
"type": "string",
|
|
240
|
+
"description": "Unique editor-only group id"
|
|
241
|
+
},
|
|
242
|
+
"label": {
|
|
243
|
+
"type": "string",
|
|
244
|
+
"description": "Editor-only group label"
|
|
245
|
+
},
|
|
246
|
+
"roots": {
|
|
247
|
+
"minItems": 1,
|
|
248
|
+
"type": "array",
|
|
249
|
+
"items": {
|
|
250
|
+
"type": "string"
|
|
251
|
+
},
|
|
252
|
+
"description": "Adapter-root ids shown under this editor-only group"
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
"required": [
|
|
256
|
+
"id",
|
|
257
|
+
"label",
|
|
258
|
+
"roots"
|
|
259
|
+
],
|
|
260
|
+
"additionalProperties": false
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
"additionalProperties": false
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
"additionalProperties": false
|
|
268
|
+
},
|
|
269
|
+
"configurations": {
|
|
270
|
+
"description": "The project's run configurations — its ENTRYPOINTS beyond the host mount (`play`): each an id and a registered kind (`process`, `compound`, and whatever a capability registers) with that kind's own fields. The editor's transport and a harness start the same declaration.",
|
|
271
|
+
"type": "array",
|
|
272
|
+
"items": {
|
|
273
|
+
"type": "object",
|
|
274
|
+
"properties": {
|
|
275
|
+
"id": {
|
|
276
|
+
"type": "string",
|
|
277
|
+
"minLength": 1,
|
|
278
|
+
"description": "Configuration id, unique in the manifest"
|
|
279
|
+
},
|
|
280
|
+
"kind": {
|
|
281
|
+
"type": "string",
|
|
282
|
+
"minLength": 1,
|
|
283
|
+
"description": "A registered run kind"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
"required": [
|
|
287
|
+
"id",
|
|
288
|
+
"kind"
|
|
289
|
+
],
|
|
290
|
+
"additionalProperties": {}
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
"resolution": {
|
|
294
|
+
"description": "Canvas resolution",
|
|
295
|
+
"type": "object",
|
|
296
|
+
"properties": {
|
|
297
|
+
"width": {
|
|
298
|
+
"type": "number",
|
|
299
|
+
"description": "Canvas width in pixels"
|
|
300
|
+
},
|
|
301
|
+
"height": {
|
|
302
|
+
"type": "number",
|
|
303
|
+
"description": "Canvas height in pixels"
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
"required": [
|
|
307
|
+
"width",
|
|
308
|
+
"height"
|
|
309
|
+
],
|
|
310
|
+
"additionalProperties": false
|
|
311
|
+
},
|
|
312
|
+
"rendering": {
|
|
313
|
+
"description": "Construction-time renderer properties, which no world can declare after the fact. Everything a world CAN declare (tone mapping, output colour space, clear colour, shadow filter) lives on the world's own renderer config instead.",
|
|
314
|
+
"type": "object",
|
|
315
|
+
"properties": {
|
|
316
|
+
"antialias": {
|
|
317
|
+
"type": "boolean",
|
|
318
|
+
"description": "Whether every three root is built with a multisampled drawing buffer. This is the ONE render property a world cannot declare for itself (adapter/renderer-config.ts): a WebGL context fixes its sample count at CREATION from this boolean, long before a world mounts, so it belongs to the PROJECT. The runtime reader is mount-manifest.ts, which threads it into createHostRenderer for each three root. WebGL exposes no sample COUNT — the implementation picks one (4x on every desktop browser measured), so a source engine that authored 8x/16x gets multisampling but not its exact count."
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
"required": [
|
|
322
|
+
"antialias"
|
|
323
|
+
],
|
|
324
|
+
"additionalProperties": false
|
|
325
|
+
},
|
|
326
|
+
"debug": {
|
|
327
|
+
"description": "Debug-bridge production gating (D18) — governs whether ?volter-debug=1 installs window.__volter outside dev builds.",
|
|
328
|
+
"type": "object",
|
|
329
|
+
"properties": {
|
|
330
|
+
"allowInProduction": {
|
|
331
|
+
"type": "boolean",
|
|
332
|
+
"description": "Allow the ?volter-debug=1 introspection bridge and debug-command invocation in production builds. Default false: the bridge only installs in dev builds. The runtime reader is the debug-bridge installer (D18)."
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
"required": [
|
|
336
|
+
"allowInProduction"
|
|
337
|
+
],
|
|
338
|
+
"additionalProperties": false
|
|
339
|
+
},
|
|
340
|
+
"determinism": {
|
|
341
|
+
"description": "Seeded-RNG determinism contract (D15) — governs whether ctx.random is boot-seeded from a reproducible seed and whether the gameplay-rng-ban scan / dev-mode Math.random phase trap are active for this project.",
|
|
342
|
+
"type": "object",
|
|
343
|
+
"properties": {
|
|
344
|
+
"seededRandom": {
|
|
345
|
+
"type": "boolean",
|
|
346
|
+
"description": "Declares that ALL gameplay RNG in this project flows through ctx.random (the named-stream seeded PRNG) rather than raw Math.random/Date.now/performance.now. Three runtime enforcers key off this flag: the boot-time seeding reader (mount-manifest.ts seeds ctx.random from defaultSeed/?volter-seed=/explicit config, in that precedence, only when true), the gameplay-rng-ban burn-down scan (test/gameplay-rng-ban.test.ts — lints this project's src/ for raw RNG/wall-clock calls), and the dev-mode Math.random phase trap (runtime/gameplay-rng-trap.ts — warns once per call site during a gameplay frame, never throws). Default false: an undeclared project gets no determinism contract at all (that IS the opt-out — no dead field)."
|
|
347
|
+
},
|
|
348
|
+
"defaultSeed": {
|
|
349
|
+
"description": "The seed ctx.random boots from when seededRandom is true, unless overridden by ?volter-seed=<int> (the query param always wins over this manifest default) or an even higher-precedence explicit config value a host passes directly. Optional — omit to fall back to the runtime's own fixed default seed.",
|
|
350
|
+
"type": "integer",
|
|
351
|
+
"minimum": -9007199254740991,
|
|
352
|
+
"maximum": 9007199254740991
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
"required": [
|
|
356
|
+
"seededRandom"
|
|
357
|
+
],
|
|
358
|
+
"additionalProperties": false
|
|
359
|
+
},
|
|
360
|
+
"budget": {
|
|
361
|
+
"description": "Performance budget (W3d, F11 perf regression gates) asserted by `volter perf --assert-budget`: a seeded, fixed-step headless run samples the engine profiler and fails (nonzero exit) when any metric here is exceeded. Only headlessly-measurable metrics are budgetable; real GPU frame time is not (SwiftShader).",
|
|
362
|
+
"type": "object",
|
|
363
|
+
"properties": {
|
|
364
|
+
"frameCpuMsP95": {
|
|
365
|
+
"description": "Maximum allowed p95 of per-frame CPU time (ms) across the measured frames of a `volter perf` seeded headless run. CPU-side only: headless runs rasterize under SwiftShader, so this is main-thread frame cost, NOT real GPU frame time. Machine-dependent — prefer the baseline-diff tolerance band for regression gating and use this as a coarse absolute ceiling.",
|
|
366
|
+
"type": "number",
|
|
367
|
+
"exclusiveMinimum": 0
|
|
368
|
+
},
|
|
369
|
+
"physicsMsP95": {
|
|
370
|
+
"description": "Maximum allowed p95 of the profiler's `physics` phase time (ms) per fixed-step frame in a `volter perf` run. Same CPU-timing caveats as frameCpuMsP95.",
|
|
371
|
+
"type": "number",
|
|
372
|
+
"exclusiveMinimum": 0
|
|
373
|
+
},
|
|
374
|
+
"maxEntities": {
|
|
375
|
+
"description": "Maximum allowed entity-tagged scene-graph nodes (nodes carrying userData.entityId) summed across the game's three/canvas worlds at the end of a `volter perf` run. Exact and deterministic under a seed — no tolerance band.",
|
|
376
|
+
"type": "integer",
|
|
377
|
+
"minimum": 0,
|
|
378
|
+
"maximum": 9007199254740991
|
|
379
|
+
},
|
|
380
|
+
"maxDrawCalls": {
|
|
381
|
+
"description": "Maximum allowed renderer draw calls in any measured frame of a `volter perf` run (the profiler's per-frame render.drawCalls, from renderer.info). Exact and deterministic under a seed.",
|
|
382
|
+
"type": "integer",
|
|
383
|
+
"exclusiveMinimum": 0,
|
|
384
|
+
"maximum": 9007199254740991
|
|
385
|
+
},
|
|
386
|
+
"maxTriangles": {
|
|
387
|
+
"description": "Maximum allowed rendered triangles in any measured frame of a `volter perf` run (the profiler's per-frame render.triangles, from renderer.info). Exact and deterministic under a seed.",
|
|
388
|
+
"type": "integer",
|
|
389
|
+
"exclusiveMinimum": 0,
|
|
390
|
+
"maximum": 9007199254740991
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
"additionalProperties": false
|
|
394
|
+
},
|
|
395
|
+
"learn": {
|
|
396
|
+
"description": "Optional learner-facing metadata (FT-5) — set on shipped example projects so the gallery/wizard/Learn-catalog registries can be generated from the manifest itself",
|
|
397
|
+
"type": "object",
|
|
398
|
+
"properties": {
|
|
399
|
+
"kind": {
|
|
400
|
+
"type": "string",
|
|
401
|
+
"enum": [
|
|
402
|
+
"starter",
|
|
403
|
+
"feature",
|
|
404
|
+
"sample-game",
|
|
405
|
+
"lesson-companion"
|
|
406
|
+
],
|
|
407
|
+
"description": "Content kind in the FTUE taxonomy (§3): starter (minimal per-genre starting point), feature (demonstrates a subsystem), sample-game (complete game as an architectural reference), lesson-companion (exists to back a Learn-site lesson)"
|
|
408
|
+
},
|
|
409
|
+
"title": {
|
|
410
|
+
"type": "string",
|
|
411
|
+
"minLength": 1,
|
|
412
|
+
"description": "Learner-facing display title (gallery card headline)"
|
|
413
|
+
},
|
|
414
|
+
"summary": {
|
|
415
|
+
"type": "string",
|
|
416
|
+
"minLength": 1,
|
|
417
|
+
"description": "One-sentence learner-facing summary (gallery card body)"
|
|
418
|
+
},
|
|
419
|
+
"difficulty": {
|
|
420
|
+
"type": "string",
|
|
421
|
+
"enum": [
|
|
422
|
+
"beginner",
|
|
423
|
+
"intermediate",
|
|
424
|
+
"advanced"
|
|
425
|
+
],
|
|
426
|
+
"description": "Learner-facing difficulty rating"
|
|
427
|
+
},
|
|
428
|
+
"features": {
|
|
429
|
+
"type": "array",
|
|
430
|
+
"items": {
|
|
431
|
+
"type": "string",
|
|
432
|
+
"pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
|
|
433
|
+
},
|
|
434
|
+
"description": "Short kebab-case feature tags used as gallery/catalog filter facets"
|
|
435
|
+
},
|
|
436
|
+
"thumbnail": {
|
|
437
|
+
"description": "Optional thumbnail image reference, PROJECT-relative (canonical path: learn/thumbnail.png — the §3 schema path). Generated per FT-11 by the deterministic render tooling (scripts/generate-learn-thumbnails.ts), never hand-made",
|
|
438
|
+
"type": "string"
|
|
439
|
+
},
|
|
440
|
+
"preview": {
|
|
441
|
+
"description": "Optional short preview video/loop reference, PROJECT-relative (canonical path: learn/preview.mp4; generated per FT-11)",
|
|
442
|
+
"type": "string"
|
|
443
|
+
},
|
|
444
|
+
"lesson": {
|
|
445
|
+
"description": "Optional Learn-site lesson URL that teaches this project 1:1 (e.g. https://example.com/manual/physics/joints/)",
|
|
446
|
+
"type": "string"
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
"required": [
|
|
450
|
+
"kind",
|
|
451
|
+
"title",
|
|
452
|
+
"summary",
|
|
453
|
+
"difficulty",
|
|
454
|
+
"features"
|
|
455
|
+
],
|
|
456
|
+
"additionalProperties": false
|
|
457
|
+
}
|
|
458
|
+
},
|
|
459
|
+
"required": [
|
|
460
|
+
"manifestVersion",
|
|
461
|
+
"name",
|
|
462
|
+
"version",
|
|
463
|
+
"engine",
|
|
464
|
+
"roots"
|
|
465
|
+
],
|
|
466
|
+
"additionalProperties": false,
|
|
467
|
+
"description": "Game manifest (volter.project.json) — the complete v2 project configuration"
|
|
468
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "AUTO-GENERATED by scripts/generate-schema.ts — do not edit manually",
|
|
3
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"$schema": {
|
|
7
|
+
"description": "JSON Schema pointer for editor autocomplete; ignored by the editor.",
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
10
|
+
"appearance": {
|
|
11
|
+
"description": "How the editor chrome looks.",
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"palette": {
|
|
15
|
+
"description": "Editor palette id — a built-in or a custom theme document.",
|
|
16
|
+
"type": "string"
|
|
17
|
+
},
|
|
18
|
+
"material": {
|
|
19
|
+
"description": "Editor material id (`classic`, `glass`, or one a style bundle carries).",
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"icons": {
|
|
23
|
+
"description": "Editor icon set id (`default`, or one a style bundle carries).",
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"regions": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"properties": {
|
|
29
|
+
"workspaceTabs": {
|
|
30
|
+
"description": "The workspace tab strip in the top bar (Blender's); hidden unless a style shows it.",
|
|
31
|
+
"type": "string",
|
|
32
|
+
"enum": [
|
|
33
|
+
"shown",
|
|
34
|
+
"hidden"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"header": {
|
|
38
|
+
"description": "The top header bar.",
|
|
39
|
+
"type": "string",
|
|
40
|
+
"enum": [
|
|
41
|
+
"shown",
|
|
42
|
+
"hidden"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"shelf": {
|
|
46
|
+
"description": "The utility shelf.",
|
|
47
|
+
"type": "string",
|
|
48
|
+
"enum": [
|
|
49
|
+
"shown",
|
|
50
|
+
"hidden"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"inspector": {
|
|
54
|
+
"description": "Inspector presentation: the narrow docked column or a properties panel.",
|
|
55
|
+
"type": "string",
|
|
56
|
+
"enum": [
|
|
57
|
+
"column",
|
|
58
|
+
"properties",
|
|
59
|
+
"card"
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"drawer": {
|
|
63
|
+
"description": "The bottom drawer.",
|
|
64
|
+
"type": "string",
|
|
65
|
+
"enum": [
|
|
66
|
+
"shown",
|
|
67
|
+
"hidden"
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
"telemetry": {
|
|
71
|
+
"description": "The top bar's runtime telemetry cluster: the frame-rate readout, its sparkline and the audio meter. The Profiler utility is the same information's other door.",
|
|
72
|
+
"type": "string",
|
|
73
|
+
"enum": [
|
|
74
|
+
"shown",
|
|
75
|
+
"hidden"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
"hierarchyTypeSuffix": {
|
|
79
|
+
"description": "The `·TypeName` a component-instance row prints after its name in the hierarchy. Hidden leaves the row its name alone, the way Blender's Outliner does; the type stays reachable through the row's own tooltip and the inspector.",
|
|
80
|
+
"type": "string",
|
|
81
|
+
"enum": [
|
|
82
|
+
"shown",
|
|
83
|
+
"hidden"
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
"hierarchyInstanceRule": {
|
|
87
|
+
"description": "The dotted rule a component-instance row draws under its name in the hierarchy. Hidden leaves the name unmarked, the way Blender's Outliner does; the fact stays reachable through the row's own tooltip, its source actions and the inspector.",
|
|
88
|
+
"type": "string",
|
|
89
|
+
"enum": [
|
|
90
|
+
"shown",
|
|
91
|
+
"hidden"
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
"hierarchyRestrictions": {
|
|
95
|
+
"description": "Which restriction columns a hierarchy row carries at its right edge: this editor's selection lock beside the eye, or Blender's default filter — the eye in its own column with the render column reserved and blank, three.js having one visibility flag for viewport and render alike.",
|
|
96
|
+
"type": "string",
|
|
97
|
+
"enum": [
|
|
98
|
+
"select+viewport",
|
|
99
|
+
"viewport+render"
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"additionalProperties": false,
|
|
104
|
+
"description": "Which chrome regions a style bundle shows or hides."
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"additionalProperties": false
|
|
108
|
+
},
|
|
109
|
+
"keymap": {
|
|
110
|
+
"description": "Active keymap preset id (`volter`, `blender`, …).",
|
|
111
|
+
"type": "string"
|
|
112
|
+
},
|
|
113
|
+
"play": {
|
|
114
|
+
"description": "How the editor presents Play mode.",
|
|
115
|
+
"type": "object",
|
|
116
|
+
"properties": {
|
|
117
|
+
"keepPanelsVisible": {
|
|
118
|
+
"description": "Keep editor panels visible when starting Play, instead of letting an immersive workspace hide them. Turning this on during Play restores the panels; turning it off applies on the next Play.",
|
|
119
|
+
"type": "boolean"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"additionalProperties": false
|
|
123
|
+
},
|
|
124
|
+
"devicePreview": {
|
|
125
|
+
"description": "The device frame the Game document previews in.",
|
|
126
|
+
"type": "object",
|
|
127
|
+
"properties": {
|
|
128
|
+
"preset": {
|
|
129
|
+
"description": "Device preview frame preset id.",
|
|
130
|
+
"type": "string"
|
|
131
|
+
},
|
|
132
|
+
"touch": {
|
|
133
|
+
"description": "Touch emulation override; null follows the preset.",
|
|
134
|
+
"anyOf": [
|
|
135
|
+
{
|
|
136
|
+
"type": "boolean"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"type": "null"
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"additionalProperties": false
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"additionalProperties": false,
|
|
148
|
+
"description": "Editor settings — the user layer and the project layer share this shape."
|
|
149
|
+
}
|