@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,236 @@
1
+ # Ecological geography atlas (`molen/ecology-atlas@1`)
2
+
3
+ Compact global ecological geography with attributed source and run-length encoded rows.
4
+
5
+ ## Example
6
+
7
+ ```json
8
+ {
9
+ "format": "molen/ecology-atlas@1",
10
+ "id": "example.ecology",
11
+ "version": 1,
12
+ "title": "Coarse habitat geography",
13
+ "cellDegrees": 10,
14
+ "regions": [
15
+ {
16
+ "id": 1,
17
+ "name": "Example forest",
18
+ "biome": 4,
19
+ "realm": "Palearctic"
20
+ }
21
+ ],
22
+ "rows": [
23
+ [
24
+ 36,
25
+ 0
26
+ ],
27
+ [
28
+ 36,
29
+ 0
30
+ ],
31
+ [
32
+ 36,
33
+ 0
34
+ ],
35
+ [
36
+ 36,
37
+ 0
38
+ ],
39
+ [
40
+ 36,
41
+ 1
42
+ ],
43
+ [
44
+ 36,
45
+ 0
46
+ ],
47
+ [
48
+ 36,
49
+ 0
50
+ ],
51
+ [
52
+ 36,
53
+ 0
54
+ ],
55
+ [
56
+ 36,
57
+ 0
58
+ ],
59
+ [
60
+ 36,
61
+ 0
62
+ ],
63
+ [
64
+ 36,
65
+ 0
66
+ ],
67
+ [
68
+ 36,
69
+ 0
70
+ ],
71
+ [
72
+ 36,
73
+ 0
74
+ ],
75
+ [
76
+ 36,
77
+ 0
78
+ ],
79
+ [
80
+ 36,
81
+ 0
82
+ ],
83
+ [
84
+ 36,
85
+ 0
86
+ ],
87
+ [
88
+ 36,
89
+ 0
90
+ ],
91
+ [
92
+ 36,
93
+ 0
94
+ ]
95
+ ],
96
+ "source": {
97
+ "title": "Synthetic schema example",
98
+ "url": "https://example.com/ecology",
99
+ "license": "MIT",
100
+ "citation": "Molen schema example",
101
+ "sha256": "sha256:0000000000000000000000000000000000000000000000000000000000000000",
102
+ "interpretation": "Synthetic geography for format demonstration only."
103
+ }
104
+ }
105
+ ```
106
+
107
+ ## JSON Schema
108
+
109
+ ```json
110
+ {
111
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
112
+ "type": "object",
113
+ "properties": {
114
+ "format": {
115
+ "type": "string",
116
+ "const": "molen/ecology-atlas@1"
117
+ },
118
+ "id": {
119
+ "type": "string",
120
+ "pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"
121
+ },
122
+ "version": {
123
+ "type": "integer",
124
+ "exclusiveMinimum": 0,
125
+ "maximum": 9007199254740991
126
+ },
127
+ "title": {
128
+ "type": "string",
129
+ "minLength": 1
130
+ },
131
+ "cellDegrees": {
132
+ "type": "number",
133
+ "minimum": 0.05,
134
+ "maximum": 10,
135
+ "description": "Global equal-angle cell size in degrees."
136
+ },
137
+ "regions": {
138
+ "maxItems": 65534,
139
+ "type": "array",
140
+ "items": {
141
+ "type": "object",
142
+ "properties": {
143
+ "id": {
144
+ "type": "integer",
145
+ "minimum": 0,
146
+ "maximum": 9007199254740991
147
+ },
148
+ "name": {
149
+ "type": "string",
150
+ "minLength": 1
151
+ },
152
+ "biome": {
153
+ "type": "integer",
154
+ "minimum": 0,
155
+ "maximum": 14
156
+ },
157
+ "realm": {
158
+ "type": "string",
159
+ "minLength": 1
160
+ }
161
+ },
162
+ "required": [
163
+ "id",
164
+ "name",
165
+ "biome",
166
+ "realm"
167
+ ],
168
+ "additionalProperties": false
169
+ }
170
+ },
171
+ "rows": {
172
+ "maxItems": 3600,
173
+ "type": "array",
174
+ "items": {
175
+ "maxItems": 14400,
176
+ "type": "array",
177
+ "items": {
178
+ "type": "integer",
179
+ "minimum": 0,
180
+ "maximum": 9007199254740991
181
+ }
182
+ },
183
+ "description": "North-to-south rows: alternating run length and 1-based region index; 0 is uncovered."
184
+ },
185
+ "source": {
186
+ "type": "object",
187
+ "properties": {
188
+ "title": {
189
+ "type": "string",
190
+ "minLength": 1
191
+ },
192
+ "url": {
193
+ "type": "string",
194
+ "format": "uri"
195
+ },
196
+ "license": {
197
+ "type": "string",
198
+ "minLength": 1
199
+ },
200
+ "citation": {
201
+ "type": "string",
202
+ "minLength": 1
203
+ },
204
+ "sha256": {
205
+ "type": "string",
206
+ "pattern": "^sha256:[a-f0-9]{64}$"
207
+ },
208
+ "interpretation": {
209
+ "type": "string",
210
+ "minLength": 1
211
+ }
212
+ },
213
+ "required": [
214
+ "title",
215
+ "url",
216
+ "license",
217
+ "citation",
218
+ "sha256",
219
+ "interpretation"
220
+ ],
221
+ "additionalProperties": false
222
+ }
223
+ },
224
+ "required": [
225
+ "format",
226
+ "id",
227
+ "version",
228
+ "title",
229
+ "cellDegrees",
230
+ "regions",
231
+ "rows",
232
+ "source"
233
+ ],
234
+ "additionalProperties": false
235
+ }
236
+ ```
@@ -0,0 +1,113 @@
1
+ # Regional vehicle fleet (`molen/fleet-catalog@1`)
2
+
3
+ Shared vehicle IDs with inherited regional spawn weights and a global fallback.
4
+
5
+ ## Example
6
+
7
+ ```json
8
+ {
9
+ "format": "molen/fleet-catalog@1",
10
+ "id": "example.fleet",
11
+ "version": 1,
12
+ "description": "Illustrative visual mixture",
13
+ "fallback": "global",
14
+ "regions": {},
15
+ "profiles": [
16
+ {
17
+ "id": "global",
18
+ "title": "Global",
19
+ "weights": {
20
+ "example.car": 1
21
+ }
22
+ }
23
+ ]
24
+ }
25
+ ```
26
+
27
+ ## JSON Schema
28
+
29
+ ```json
30
+ {
31
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
32
+ "type": "object",
33
+ "properties": {
34
+ "format": {
35
+ "type": "string",
36
+ "const": "molen/fleet-catalog@1"
37
+ },
38
+ "id": {
39
+ "type": "string",
40
+ "minLength": 1
41
+ },
42
+ "version": {
43
+ "type": "integer",
44
+ "exclusiveMinimum": 0,
45
+ "maximum": 9007199254740991
46
+ },
47
+ "description": {
48
+ "type": "string"
49
+ },
50
+ "fallback": {
51
+ "type": "string",
52
+ "minLength": 1
53
+ },
54
+ "regions": {
55
+ "type": "object",
56
+ "propertyNames": {
57
+ "type": "string"
58
+ },
59
+ "additionalProperties": {
60
+ "type": "string",
61
+ "minLength": 1
62
+ }
63
+ },
64
+ "profiles": {
65
+ "minItems": 1,
66
+ "type": "array",
67
+ "items": {
68
+ "type": "object",
69
+ "properties": {
70
+ "id": {
71
+ "type": "string",
72
+ "minLength": 1
73
+ },
74
+ "title": {
75
+ "type": "string",
76
+ "minLength": 1
77
+ },
78
+ "extends": {
79
+ "type": "string"
80
+ },
81
+ "weights": {
82
+ "type": "object",
83
+ "propertyNames": {
84
+ "type": "string",
85
+ "minLength": 1
86
+ },
87
+ "additionalProperties": {
88
+ "type": "number",
89
+ "minimum": 0
90
+ }
91
+ }
92
+ },
93
+ "required": [
94
+ "id",
95
+ "title",
96
+ "weights"
97
+ ],
98
+ "additionalProperties": false
99
+ }
100
+ }
101
+ },
102
+ "required": [
103
+ "format",
104
+ "id",
105
+ "version",
106
+ "description",
107
+ "fallback",
108
+ "regions",
109
+ "profiles"
110
+ ],
111
+ "additionalProperties": false
112
+ }
113
+ ```
@@ -64,6 +64,16 @@ Reusable sign or furniture geometry recipe, with colors, facade appearance and d
64
64
  "sign": {
65
65
  "type": "object",
66
66
  "properties": {
67
+ "font": {
68
+ "type": "string",
69
+ "minLength": 1,
70
+ "maxLength": 100
71
+ },
72
+ "letterSpacing": {
73
+ "type": "number",
74
+ "minimum": 0,
75
+ "maximum": 16
76
+ },
67
77
  "text": {
68
78
  "type": "string",
69
79
  "minLength": 1,
@@ -559,7 +559,7 @@ A small node graph (noise, gradients, ramps, blends) CPU-rasterized to textures.
559
559
  "type": {
560
560
  "type": "string",
561
561
  "const": "bricks",
562
- "description": "Brick/mortar mask (1 = brick, 0 = mortar)."
562
+ "description": "Running-bond bricks: a brick/mortar mask, a per-brick random value or the position within a row."
563
563
  },
564
564
  "params": {
565
565
  "type": "object",
@@ -591,6 +591,16 @@ A small node graph (noise, gradients, ramps, blends) CPU-rasterized to textures.
591
591
  "minimum": 0,
592
592
  "maximum": 1,
593
593
  "description": "Horizontal shift of alternate rows as a fraction of a brick, 0..1 (default 0.5)."
594
+ },
595
+ "output": {
596
+ "default": "mask",
597
+ "type": "string",
598
+ "enum": [
599
+ "mask",
600
+ "random",
601
+ "row"
602
+ ],
603
+ "description": "mask (default): 1 on a brick, 0 on mortar. random: a stable 0..1 value per brick (0 on mortar), for per-tile tone variation. row: position within the row, 0 at its top (v) edge to 1 at its bottom, for course shading and normals."
594
604
  }
595
605
  },
596
606
  "additionalProperties": false,
@@ -88,7 +88,7 @@ Build settings for a content pack, kept as molen-pack.source.json in the directo
88
88
  "type": "object",
89
89
  "propertyNames": {
90
90
  "type": "string",
91
- "pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"
91
+ "pattern": "^[a-z][a-z0-9_]*(\\.[a-z0-9][a-z0-9_]*)*$"
92
92
  },
93
93
  "additionalProperties": {
94
94
  "type": "string",
@@ -123,6 +123,16 @@ Build settings for a content pack, kept as molen-pack.source.json in the directo
123
123
  },
124
124
  "description": "Role (e.g. types, stylepack, stars) to the file or files that provide it."
125
125
  },
126
+ "independent": {
127
+ "default": [],
128
+ "type": "array",
129
+ "items": {
130
+ "type": "string",
131
+ "minLength": 1,
132
+ "pattern": "^(?![A-Za-z]:|[/\\\\])(?!.*\\\\)(?!.*(?:^|\\/)\\.\\.?(?:\\/|$)).+$"
133
+ },
134
+ "description": "Files or directory prefixes ending / kept independently readable."
135
+ },
126
136
  "solid": {
127
137
  "default": true,
128
138
  "type": "boolean",
@@ -113,7 +113,7 @@ Manifest inside a content pack: a zip file carrying models, documents and catalo
113
113
  "type": "object",
114
114
  "propertyNames": {
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
  "additionalProperties": {
119
119
  "type": "string",
@@ -86,7 +86,7 @@ Binds an experience project together: scenes by name, type-registry documents, i
86
86
  "type": "object",
87
87
  "propertyNames": {
88
88
  "type": "string",
89
- "pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)*$"
89
+ "pattern": "^[a-z][a-z0-9_]*(\\.[a-z0-9][a-z0-9_]*)*$"
90
90
  },
91
91
  "additionalProperties": {
92
92
  "type": "string",
@@ -172,6 +172,12 @@ Binds archstyles and scatter rule sets to places on Earth: prioritized lon/lat r
172
172
  "maximum": 9007199254740991,
173
173
  "description": "Bump when bindings change on purpose."
174
174
  },
175
+ "fallbackDistanceMeters": {
176
+ "type": "number",
177
+ "minimum": 0,
178
+ "maximum": 5000,
179
+ "description": "Optional nearest-outline fallback in local world meters, used only when no region contains the point. Compensates for coarse coastlines; default 0."
180
+ },
175
181
  "regions": {
176
182
  "default": [],
177
183
  "type": "array",