@bendyline/molen-tooling 0.0.10 → 0.0.12

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.
Files changed (66) hide show
  1. package/dist/capture/harness.js +610 -271
  2. package/dist/capture/worldgen-preview.js +396 -298
  3. package/dist/cli.mjs +2 -2
  4. package/dist/docs-src/guide/3d-art-guidelines.md +34 -10
  5. package/dist/docs-src/guide/3d-model-assets.md +40 -2
  6. package/dist/docs-src/guide/adaptive-performance.md +12 -4
  7. package/dist/docs-src/guide/aircraft.md +126 -26
  8. package/dist/docs-src/guide/ambient-life.md +13 -4
  9. package/dist/docs-src/guide/audio.md +19 -5
  10. package/dist/docs-src/guide/building-interiors.md +7 -2
  11. package/dist/docs-src/guide/determinism.md +1 -1
  12. package/dist/docs-src/guide/dioramas.md +6 -0
  13. package/dist/docs-src/guide/earth-view.md +121 -20
  14. package/dist/docs-src/guide/entities.md +84 -5
  15. package/dist/docs-src/guide/figures.md +31 -7
  16. package/dist/docs-src/guide/graphics-performance.md +27 -12
  17. package/dist/docs-src/guide/medium-fi.md +269 -25
  18. package/dist/docs-src/guide/navigation.md +5 -2
  19. package/dist/docs-src/guide/project.md +5 -0
  20. package/dist/docs-src/guide/recognizable-places.md +6 -0
  21. package/dist/docs-src/guide/regional-fleets.md +94 -0
  22. package/dist/docs-src/guide/regional-world.md +398 -0
  23. package/dist/docs-src/guide/sky.md +36 -3
  24. package/dist/docs-src/guide/structure-library.md +4 -1
  25. package/dist/docs-src/guide/surface-rendering.md +264 -2
  26. package/dist/docs-src/guide/terrain.md +5 -0
  27. package/dist/docs-src/guide/typography.md +105 -0
  28. package/dist/docs-src/guide/vehicle-interiors.md +169 -9
  29. package/dist/docs-src/guide/vehicles.md +13 -2
  30. package/dist/docs-src/guide/weather.md +15 -8
  31. package/dist/docs-src/guide/worldgen.md +88 -10
  32. package/dist/docs-src/llms.txt +5 -1
  33. package/dist/docs-src/schemas/README.md +6 -0
  34. package/dist/docs-src/schemas/archstyle.md +66 -0
  35. package/dist/docs-src/schemas/components.md +1087 -66
  36. package/dist/docs-src/schemas/ecology-atlas.md +236 -0
  37. package/dist/docs-src/schemas/fleet-catalog.md +113 -0
  38. package/dist/docs-src/schemas/landmark.md +10 -0
  39. package/dist/docs-src/schemas/matgraph.md +11 -1
  40. package/dist/docs-src/schemas/pack-source.md +11 -1
  41. package/dist/docs-src/schemas/pack.md +1 -1
  42. package/dist/docs-src/schemas/project.md +1 -1
  43. package/dist/docs-src/schemas/region-atlas.md +6 -0
  44. package/dist/docs-src/schemas/regional-catalog.md +1436 -0
  45. package/dist/docs-src/schemas/scatter.md +110 -4
  46. package/dist/docs-src/schemas/structure-placement-data.md +662 -0
  47. package/dist/docs-src/schemas/structure-placement-index.md +87 -0
  48. package/dist/docs-src/schemas/structure-placements.md +183 -0
  49. package/dist/docs-src/schemas/terrain-package.md +41 -0
  50. package/dist/docs-src/schemas/transport-network.md +8 -0
  51. package/dist/docs-src/schemas/types.md +1 -1
  52. package/dist/docs-src/schemas/wildlife-ranges.md +251 -0
  53. package/dist/docs-src/schemas/worldgen-batch.md +61 -0
  54. package/dist/index.d.mts +2 -0
  55. package/dist/index.mjs +1 -1
  56. package/dist/{mcp-BbxqqnD1.mjs → mcp-BXaK46X-.mjs} +1 -1
  57. package/dist/{ops-b4Pag8U-.mjs → ops-Cm7WNvb9.mjs} +55 -22
  58. package/dist/templates/city-courier/gen/molen-types.ts +138 -17
  59. package/dist/templates/city-courier/scripts/molen-scripts.d.ts +138 -17
  60. package/dist/templates/figures-gallery/test/headless.test.ts +2 -1
  61. package/dist/templates/index.json +17 -17
  62. package/dist/templates/skybound/gen/molen-types.ts +138 -17
  63. package/dist/templates/skybound/scripts/molen-scripts.d.ts +138 -17
  64. package/dist/templates/top-down-arena/scripts/molen-scripts.d.ts +138 -17
  65. package/dist/templates/top-down-arena/src/gen/molen-types.ts +138 -17
  66. package/package.json +13 -13
@@ -0,0 +1,87 @@
1
+ # Regional structure placement directory (`molen/structure-placement-index@1`)
2
+
3
+ Spatial coverage and pack paths for lazily loaded placement regions.
4
+
5
+ ## Example
6
+
7
+ ```json
8
+ {
9
+ "format": "molen/structure-placement-index@1",
10
+ "shards": {},
11
+ "cells": {}
12
+ }
13
+ ```
14
+
15
+ ## JSON Schema
16
+
17
+ ```json
18
+ {
19
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
20
+ "type": "object",
21
+ "properties": {
22
+ "format": {
23
+ "type": "string",
24
+ "const": "molen/structure-placement-index@1"
25
+ },
26
+ "shards": {
27
+ "type": "object",
28
+ "propertyNames": {
29
+ "type": "string",
30
+ "pattern": "^[0123456789bcdefghjkmnpqrstuvwxyz]{2,12}$"
31
+ },
32
+ "additionalProperties": {
33
+ "type": "object",
34
+ "properties": {
35
+ "path": {
36
+ "type": "string",
37
+ "pattern": "^(?![A-Za-z]:|[/\\\\])(?!.*\\\\)(?!.*(?:^|\\/)\\.\\.?(?:\\/|$)).+\\.json$"
38
+ },
39
+ "bytes": {
40
+ "type": "integer",
41
+ "exclusiveMinimum": 0,
42
+ "maximum": 9007199254740991
43
+ },
44
+ "count": {
45
+ "type": "integer",
46
+ "exclusiveMinimum": 0,
47
+ "maximum": 9007199254740991
48
+ },
49
+ "minLevel": {
50
+ "type": "integer",
51
+ "minimum": 0,
52
+ "maximum": 26
53
+ }
54
+ },
55
+ "required": [
56
+ "path",
57
+ "bytes",
58
+ "count",
59
+ "minLevel"
60
+ ],
61
+ "additionalProperties": false
62
+ }
63
+ },
64
+ "cells": {
65
+ "type": "object",
66
+ "propertyNames": {
67
+ "type": "string",
68
+ "pattern": "^[0123456789bcdefghjkmnpqrstuvwxyz]{2}$"
69
+ },
70
+ "additionalProperties": {
71
+ "minItems": 1,
72
+ "type": "array",
73
+ "items": {
74
+ "type": "string",
75
+ "pattern": "^[0123456789bcdefghjkmnpqrstuvwxyz]{2,12}$"
76
+ }
77
+ }
78
+ }
79
+ },
80
+ "required": [
81
+ "format",
82
+ "shards",
83
+ "cells"
84
+ ],
85
+ "additionalProperties": false
86
+ }
87
+ ```
@@ -231,6 +231,68 @@ WGS84 anchors for authored models; draft entries are indexed but not rendered.
231
231
  "replaceFootprint": {
232
232
  "type": "boolean"
233
233
  },
234
+ "buildingCutout": {
235
+ "type": "object",
236
+ "properties": {
237
+ "minimumCoverage": {
238
+ "type": "number",
239
+ "exclusiveMinimum": 0,
240
+ "maximum": 1
241
+ },
242
+ "outline": {
243
+ "minItems": 3,
244
+ "maxItems": 512,
245
+ "type": "array",
246
+ "items": {
247
+ "type": "array",
248
+ "prefixItems": [
249
+ {
250
+ "type": "number"
251
+ },
252
+ {
253
+ "type": "number"
254
+ }
255
+ ],
256
+ "items": false,
257
+ "minItems": 2,
258
+ "maxItems": 2
259
+ }
260
+ },
261
+ "outlines": {
262
+ "minItems": 1,
263
+ "maxItems": 64,
264
+ "type": "array",
265
+ "items": {
266
+ "minItems": 3,
267
+ "maxItems": 512,
268
+ "type": "array",
269
+ "items": {
270
+ "type": "array",
271
+ "prefixItems": [
272
+ {
273
+ "type": "number"
274
+ },
275
+ {
276
+ "type": "number"
277
+ }
278
+ ],
279
+ "items": false,
280
+ "minItems": 2,
281
+ "maxItems": 2
282
+ }
283
+ }
284
+ },
285
+ "basis": {
286
+ "type": "string",
287
+ "minLength": 1
288
+ }
289
+ },
290
+ "required": [
291
+ "outline",
292
+ "basis"
293
+ ],
294
+ "additionalProperties": false
295
+ },
234
296
  "groundCutout": {
235
297
  "type": "object",
236
298
  "properties": {
@@ -253,6 +315,53 @@ WGS84 anchors for authored models; draft entries are indexed but not rendered.
253
315
  "maxItems": 2
254
316
  }
255
317
  },
318
+ "outlines": {
319
+ "minItems": 1,
320
+ "maxItems": 64,
321
+ "type": "array",
322
+ "items": {
323
+ "minItems": 3,
324
+ "maxItems": 512,
325
+ "type": "array",
326
+ "items": {
327
+ "type": "array",
328
+ "prefixItems": [
329
+ {
330
+ "type": "number"
331
+ },
332
+ {
333
+ "type": "number"
334
+ }
335
+ ],
336
+ "items": false,
337
+ "minItems": 2,
338
+ "maxItems": 2
339
+ }
340
+ }
341
+ },
342
+ "additionalOutlines": {
343
+ "maxItems": 63,
344
+ "type": "array",
345
+ "items": {
346
+ "minItems": 3,
347
+ "maxItems": 512,
348
+ "type": "array",
349
+ "items": {
350
+ "type": "array",
351
+ "prefixItems": [
352
+ {
353
+ "type": "number"
354
+ },
355
+ {
356
+ "type": "number"
357
+ }
358
+ ],
359
+ "items": false,
360
+ "minItems": 2,
361
+ "maxItems": 2
362
+ }
363
+ }
364
+ },
256
365
  "basis": {
257
366
  "type": "string",
258
367
  "minLength": 1
@@ -264,6 +373,44 @@ WGS84 anchors for authored models; draft entries are indexed but not rendered.
264
373
  ],
265
374
  "additionalProperties": false
266
375
  },
376
+ "waterCutout": {
377
+ "type": "object",
378
+ "properties": {
379
+ "outlines": {
380
+ "minItems": 1,
381
+ "maxItems": 16,
382
+ "type": "array",
383
+ "items": {
384
+ "minItems": 3,
385
+ "maxItems": 512,
386
+ "type": "array",
387
+ "items": {
388
+ "type": "array",
389
+ "prefixItems": [
390
+ {
391
+ "type": "number"
392
+ },
393
+ {
394
+ "type": "number"
395
+ }
396
+ ],
397
+ "items": false,
398
+ "minItems": 2,
399
+ "maxItems": 2
400
+ }
401
+ }
402
+ },
403
+ "basis": {
404
+ "type": "string",
405
+ "minLength": 1
406
+ }
407
+ },
408
+ "required": [
409
+ "outlines",
410
+ "basis"
411
+ ],
412
+ "additionalProperties": false
413
+ },
267
414
  "mapIdentity": {
268
415
  "type": "object",
269
416
  "properties": {
@@ -399,6 +546,14 @@ WGS84 anchors for authored models; draft entries are indexed but not rendered.
399
546
  "minLength": 1
400
547
  }
401
548
  },
549
+ "names": {
550
+ "minItems": 1,
551
+ "type": "array",
552
+ "items": {
553
+ "type": "string",
554
+ "minLength": 1
555
+ }
556
+ },
402
557
  "tags": {
403
558
  "type": "object",
404
559
  "propertyNames": {
@@ -437,6 +592,34 @@ WGS84 anchors for authored models; draft entries are indexed but not rendered.
437
592
  "minItems": 3,
438
593
  "maxItems": 3
439
594
  },
595
+ "bounds": {
596
+ "type": "array",
597
+ "prefixItems": [
598
+ {
599
+ "type": "number",
600
+ "minimum": -180,
601
+ "maximum": 180
602
+ },
603
+ {
604
+ "type": "number",
605
+ "minimum": -90,
606
+ "maximum": 90
607
+ },
608
+ {
609
+ "type": "number",
610
+ "minimum": -180,
611
+ "maximum": 180
612
+ },
613
+ {
614
+ "type": "number",
615
+ "minimum": -90,
616
+ "maximum": 90
617
+ }
618
+ ],
619
+ "items": false,
620
+ "minItems": 4,
621
+ "maxItems": 4
622
+ },
440
623
  "orientation": {
441
624
  "type": "string",
442
625
  "enum": [
@@ -128,6 +128,47 @@ Installable tiled-world package: coordinate space, elevation, optional semantic
128
128
  "minLength": 1,
129
129
  "description": "Package name."
130
130
  },
131
+ "agriculture": {
132
+ "type": "object",
133
+ "properties": {
134
+ "urlTemplate": {
135
+ "type": "string",
136
+ "minLength": 1,
137
+ "description": "Versioned agricultural JSON tile URL, relative to this package or absolute; {z}/{x}/{y} placeholders."
138
+ },
139
+ "level": {
140
+ "type": "integer",
141
+ "minimum": 0,
142
+ "maximum": 20,
143
+ "description": "Single stored XYZ level; finer views use the corresponding parent grid."
144
+ },
145
+ "source": {
146
+ "type": "string",
147
+ "minLength": 1,
148
+ "description": "Pinned dataset identity, checked against every tile."
149
+ },
150
+ "year": {
151
+ "type": "integer",
152
+ "minimum": 1900,
153
+ "maximum": 2200,
154
+ "description": "Observation year, not the current growing season."
155
+ },
156
+ "maxTileBytes": {
157
+ "type": "integer",
158
+ "minimum": 1024,
159
+ "maximum": 1048576,
160
+ "description": "Uncompressed download bound; default 131072 bytes."
161
+ }
162
+ },
163
+ "required": [
164
+ "urlTemplate",
165
+ "level",
166
+ "source",
167
+ "year"
168
+ ],
169
+ "additionalProperties": false,
170
+ "description": "Optional global or regional agricultural retrieval dataset; missing tiles retain basemap/fallback crops. Include its license in attribution."
171
+ },
131
172
  "version": {
132
173
  "type": "string",
133
174
  "minLength": 1,
@@ -148,6 +148,14 @@ Roads, railways and paths ambient NPCs move on, for scenes without streamed map
148
148
  "items": {
149
149
  "type": "object",
150
150
  "properties": {
151
+ "drivingSide": {
152
+ "type": "string",
153
+ "enum": [
154
+ "right",
155
+ "left"
156
+ ],
157
+ "description": "Overrides the document road driving side."
158
+ },
151
159
  "id": {
152
160
  "type": "string",
153
161
  "minLength": 1,
@@ -113,7 +113,7 @@ Namespaced entity types with doc strings, default components, inheritance, and a
113
113
  "type": "array",
114
114
  "items": {
115
115
  "type": "string",
116
- "pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"
116
+ "pattern": "^[a-z][a-z0-9_]*(\\.[a-z0-9][a-z0-9_]*)*$"
117
117
  },
118
118
  "description": "Project asset ids this type references (e.g. its gltf model)."
119
119
  },
@@ -0,0 +1,251 @@
1
+ # Wildlife country range limits (`molen/wildlife-ranges@1`)
2
+
3
+ Attributed coarse country membership for supported taxa. Combine with ecology and mapped habitat; not occurrence data.
4
+
5
+ ## Example
6
+
7
+ ```json
8
+ {
9
+ "format": "molen/wildlife-ranges@1",
10
+ "id": "example.ranges",
11
+ "version": 1,
12
+ "title": "Range example",
13
+ "cellDegrees": 10,
14
+ "countries": [],
15
+ "rows": [
16
+ [
17
+ 36,
18
+ 0
19
+ ],
20
+ [
21
+ 36,
22
+ 0
23
+ ],
24
+ [
25
+ 36,
26
+ 0
27
+ ],
28
+ [
29
+ 36,
30
+ 0
31
+ ],
32
+ [
33
+ 36,
34
+ 0
35
+ ],
36
+ [
37
+ 36,
38
+ 0
39
+ ],
40
+ [
41
+ 36,
42
+ 0
43
+ ],
44
+ [
45
+ 36,
46
+ 0
47
+ ],
48
+ [
49
+ 36,
50
+ 0
51
+ ],
52
+ [
53
+ 36,
54
+ 0
55
+ ],
56
+ [
57
+ 36,
58
+ 0
59
+ ],
60
+ [
61
+ 36,
62
+ 0
63
+ ],
64
+ [
65
+ 36,
66
+ 0
67
+ ],
68
+ [
69
+ 36,
70
+ 0
71
+ ],
72
+ [
73
+ 36,
74
+ 0
75
+ ],
76
+ [
77
+ 36,
78
+ 0
79
+ ],
80
+ [
81
+ 36,
82
+ 0
83
+ ],
84
+ [
85
+ 36,
86
+ 0
87
+ ]
88
+ ],
89
+ "taxa": [],
90
+ "sources": [
91
+ {
92
+ "title": "Example source",
93
+ "url": "https://example.com",
94
+ "license": "CC0-1.0",
95
+ "sha256": "sha256:0000000000000000000000000000000000000000000000000000000000000000",
96
+ "interpretation": "Example only."
97
+ }
98
+ ]
99
+ }
100
+ ```
101
+
102
+ ## JSON Schema
103
+
104
+ ```json
105
+ {
106
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
107
+ "type": "object",
108
+ "properties": {
109
+ "format": {
110
+ "type": "string",
111
+ "const": "molen/wildlife-ranges@1"
112
+ },
113
+ "id": {
114
+ "type": "string",
115
+ "minLength": 1
116
+ },
117
+ "version": {
118
+ "type": "integer",
119
+ "exclusiveMinimum": 0,
120
+ "maximum": 9007199254740991
121
+ },
122
+ "title": {
123
+ "type": "string",
124
+ "minLength": 1
125
+ },
126
+ "cellDegrees": {
127
+ "type": "number",
128
+ "minimum": 0.05,
129
+ "maximum": 10
130
+ },
131
+ "countries": {
132
+ "maxItems": 65534,
133
+ "type": "array",
134
+ "items": {
135
+ "type": "object",
136
+ "properties": {
137
+ "code": {
138
+ "type": "string",
139
+ "minLength": 2,
140
+ "maxLength": 3
141
+ },
142
+ "name": {
143
+ "type": "string",
144
+ "minLength": 1
145
+ }
146
+ },
147
+ "required": [
148
+ "code",
149
+ "name"
150
+ ],
151
+ "additionalProperties": false
152
+ }
153
+ },
154
+ "rows": {
155
+ "type": "array",
156
+ "items": {
157
+ "type": "array",
158
+ "items": {
159
+ "type": "integer",
160
+ "minimum": 0,
161
+ "maximum": 9007199254740991
162
+ }
163
+ }
164
+ },
165
+ "taxa": {
166
+ "type": "array",
167
+ "items": {
168
+ "type": "object",
169
+ "properties": {
170
+ "id": {
171
+ "type": "string",
172
+ "minLength": 1
173
+ },
174
+ "sourceId": {
175
+ "type": "string",
176
+ "minLength": 1
177
+ },
178
+ "name": {
179
+ "type": "string",
180
+ "minLength": 1
181
+ },
182
+ "countries": {
183
+ "type": "array",
184
+ "items": {
185
+ "type": "string",
186
+ "minLength": 2,
187
+ "maxLength": 3
188
+ }
189
+ }
190
+ },
191
+ "required": [
192
+ "id",
193
+ "sourceId",
194
+ "name",
195
+ "countries"
196
+ ],
197
+ "additionalProperties": false
198
+ }
199
+ },
200
+ "sources": {
201
+ "minItems": 1,
202
+ "type": "array",
203
+ "items": {
204
+ "type": "object",
205
+ "properties": {
206
+ "title": {
207
+ "type": "string",
208
+ "minLength": 1
209
+ },
210
+ "url": {
211
+ "type": "string",
212
+ "format": "uri"
213
+ },
214
+ "license": {
215
+ "type": "string",
216
+ "minLength": 1
217
+ },
218
+ "sha256": {
219
+ "type": "string",
220
+ "pattern": "^sha256:[a-f0-9]{64}$"
221
+ },
222
+ "interpretation": {
223
+ "type": "string",
224
+ "minLength": 1
225
+ }
226
+ },
227
+ "required": [
228
+ "title",
229
+ "url",
230
+ "license",
231
+ "sha256",
232
+ "interpretation"
233
+ ],
234
+ "additionalProperties": false
235
+ }
236
+ }
237
+ },
238
+ "required": [
239
+ "format",
240
+ "id",
241
+ "version",
242
+ "title",
243
+ "cellDegrees",
244
+ "countries",
245
+ "rows",
246
+ "taxa",
247
+ "sources"
248
+ ],
249
+ "additionalProperties": false
250
+ }
251
+ ```
@@ -133,6 +133,46 @@ A serialized generation request: labeled building outlines, optional labeled pol
133
133
  "items": {
134
134
  "type": "object",
135
135
  "properties": {
136
+ "priority": {
137
+ "type": "number"
138
+ },
139
+ "access": {
140
+ "type": "object",
141
+ "properties": {
142
+ "from": {
143
+ "minItems": 2,
144
+ "maxItems": 2,
145
+ "type": "array",
146
+ "items": {
147
+ "type": "number"
148
+ },
149
+ "description": "[x, z] in local meters."
150
+ },
151
+ "to": {
152
+ "minItems": 2,
153
+ "maxItems": 2,
154
+ "type": "array",
155
+ "items": {
156
+ "type": "number"
157
+ },
158
+ "description": "[x, z] in local meters."
159
+ },
160
+ "width": {
161
+ "type": "number",
162
+ "exclusiveMinimum": 0,
163
+ "maximum": 12
164
+ },
165
+ "garage": {
166
+ "type": "boolean"
167
+ }
168
+ },
169
+ "required": [
170
+ "from",
171
+ "to",
172
+ "width"
173
+ ],
174
+ "additionalProperties": false
175
+ },
136
176
  "identity": {
137
177
  "type": "string",
138
178
  "minLength": 1,
@@ -408,6 +448,23 @@ A serialized generation request: labeled building outlines, optional labeled pol
408
448
  },
409
449
  "description": "Open ring of [x, z] points (no repeated closing point)."
410
450
  },
451
+ "holes": {
452
+ "type": "array",
453
+ "items": {
454
+ "minItems": 3,
455
+ "type": "array",
456
+ "items": {
457
+ "minItems": 2,
458
+ "maxItems": 2,
459
+ "type": "array",
460
+ "items": {
461
+ "type": "number"
462
+ },
463
+ "description": "[x, z] in local meters."
464
+ },
465
+ "description": "Open ring of [x, z] points (no repeated closing point)."
466
+ }
467
+ },
411
468
  "polyline": {
412
469
  "minItems": 2,
413
470
  "type": "array",
@@ -421,6 +478,10 @@ A serialized generation request: labeled building outlines, optional labeled pol
421
478
  "description": "[x, z] in local meters."
422
479
  }
423
480
  },
481
+ "label": {
482
+ "type": "string",
483
+ "minLength": 1
484
+ },
424
485
  "width": {
425
486
  "type": "number",
426
487
  "minimum": 0,