@bendyline/molen-tooling 0.0.11 → 0.0.13

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 (70) hide show
  1. package/dist/capture/harness.js +682 -293
  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 +27 -2
  6. package/dist/docs-src/guide/adaptive-performance.md +42 -7
  7. package/dist/docs-src/guide/aircraft.md +249 -27
  8. package/dist/docs-src/guide/ambient-life.md +28 -5
  9. package/dist/docs-src/guide/audio.md +19 -5
  10. package/dist/docs-src/guide/boats.md +9 -4
  11. package/dist/docs-src/guide/boost-mode.md +64 -0
  12. package/dist/docs-src/guide/building-interiors.md +7 -2
  13. package/dist/docs-src/guide/determinism.md +1 -1
  14. package/dist/docs-src/guide/dioramas.md +17 -4
  15. package/dist/docs-src/guide/earth-view.md +225 -24
  16. package/dist/docs-src/guide/entities.md +87 -5
  17. package/dist/docs-src/guide/figures.md +31 -7
  18. package/dist/docs-src/guide/graphics-performance.md +203 -24
  19. package/dist/docs-src/guide/input.md +34 -1
  20. package/dist/docs-src/guide/liveries.md +167 -0
  21. package/dist/docs-src/guide/livery-catalog.md +2659 -0
  22. package/dist/docs-src/guide/livery-gallery.md +2684 -0
  23. package/dist/docs-src/guide/medium-fi.md +279 -27
  24. package/dist/docs-src/guide/navigation.md +5 -2
  25. package/dist/docs-src/guide/night-lighting.md +96 -0
  26. package/dist/docs-src/guide/project.md +6 -1
  27. package/dist/docs-src/guide/recognizable-places.md +6 -0
  28. package/dist/docs-src/guide/regional-fleets.md +94 -0
  29. package/dist/docs-src/guide/regional-world.md +19 -6
  30. package/dist/docs-src/guide/rendering-backends.md +6 -2
  31. package/dist/docs-src/guide/sky.md +36 -3
  32. package/dist/docs-src/guide/structure-library.md +4 -1
  33. package/dist/docs-src/guide/surface-rendering.md +276 -2
  34. package/dist/docs-src/guide/terrain.md +43 -0
  35. package/dist/docs-src/guide/typography.md +105 -0
  36. package/dist/docs-src/guide/vehicle-interiors.md +169 -9
  37. package/dist/docs-src/guide/vehicles.md +26 -3
  38. package/dist/docs-src/guide/weather.md +15 -8
  39. package/dist/docs-src/guide/worldgen.md +100 -13
  40. package/dist/docs-src/llms.txt +9 -1
  41. package/dist/docs-src/schemas/README.md +3 -0
  42. package/dist/docs-src/schemas/archstyle.md +65 -0
  43. package/dist/docs-src/schemas/components.md +2009 -213
  44. package/dist/docs-src/schemas/fleet-catalog.md +113 -0
  45. package/dist/docs-src/schemas/landmark.md +10 -0
  46. package/dist/docs-src/schemas/matgraph.md +11 -1
  47. package/dist/docs-src/schemas/pack-source.md +11 -1
  48. package/dist/docs-src/schemas/pack.md +1 -1
  49. package/dist/docs-src/schemas/project.md +1 -1
  50. package/dist/docs-src/schemas/regional-catalog.md +39 -0
  51. package/dist/docs-src/schemas/scatter.md +36 -0
  52. package/dist/docs-src/schemas/structure-placement-data.md +753 -0
  53. package/dist/docs-src/schemas/structure-placement-index.md +87 -0
  54. package/dist/docs-src/schemas/structure-placements.md +274 -0
  55. package/dist/docs-src/schemas/transport-network.md +8 -0
  56. package/dist/docs-src/schemas/types.md +1 -1
  57. package/dist/docs-src/schemas/worldgen-batch.md +145 -0
  58. package/dist/index.d.mts +2 -0
  59. package/dist/index.mjs +1 -1
  60. package/dist/{mcp-BbxqqnD1.mjs → mcp-BXaK46X-.mjs} +1 -1
  61. package/dist/{ops-b4Pag8U-.mjs → ops-Cm7WNvb9.mjs} +55 -22
  62. package/dist/templates/city-courier/gen/molen-types.ts +240 -17
  63. package/dist/templates/city-courier/scripts/molen-scripts.d.ts +240 -17
  64. package/dist/templates/figures-gallery/test/headless.test.ts +2 -1
  65. package/dist/templates/index.json +17 -17
  66. package/dist/templates/skybound/gen/molen-types.ts +240 -17
  67. package/dist/templates/skybound/scripts/molen-scripts.d.ts +240 -17
  68. package/dist/templates/top-down-arena/scripts/molen-scripts.d.ts +240 -17
  69. package/dist/templates/top-down-arena/src/gen/molen-types.ts +240 -17
  70. package/package.json +13 -13
@@ -4,10 +4,12 @@
4
4
  > three.js rendering client, authored through JSON schemas, a small typed API, and a headless
5
5
  > dev loop. This bundle is version-locked to the engine release.
6
6
 
7
- Engine version: 0.0.7. three.js peer range: >=0.184.0 <0.187.0 (developed against 0.184.0). Node ≥ 22.13, ESM only.
7
+ Engine version: 0.0.9. three.js peer range: >=0.184.0 <0.187.0 (developed against 0.184.0). Node ≥ 22.13, ESM only.
8
8
 
9
9
  ## Start here
10
10
 
11
+ - [Regional vehicle fleets](guide/regional-fleets.md): geographic traffic and parking mixes, shared vehicle IDs, lazy model downloads and bounded residency.
12
+
11
13
  This bundle ships inside `@bendyline/molen-tooling` at `dist/docs-src/` (in a project:
12
14
  `node_modules/@bendyline/molen-tooling/dist/docs-src/llms.txt`) and is published at
13
15
  https://molen.dev/llms.txt. Everything it describes works from the npm packages; no clone of the
@@ -23,6 +25,9 @@ downloads them into a project and pins them in project.json.
23
25
  - [Projects & types](guide/project.md): project.json, the namespaced entity type registry, reservations, and typed TS authoring (`defineExperience` + `molen types gen`).
24
26
  - [Projects & content packs](guide/project.md): content (entity types and models, style packs, catalogs, stars) ships as `molen/pack@1` zip packs, never in npm packages; list them in project.json `packs` or open them with `@bendyline/molen-pack`.
25
27
  - [Reusable entities](guide/entities.md): the `molen.entities` content pack (trees, rocks, aircraft, vehicles) and how to bind it through a pack's asset provider.
28
+ - [Vehicle liveries](guide/liveries.md): selectable paint slots, camouflage and projected markings shared by aircraft, cars, RVs and boats; model-independent recipes and reference provenance.
29
+ - [Livery gallery](guide/livery-gallery.md): rendered aircraft, RV and car comparisons, with an explicit audit of reference-inspired and original designs.
30
+ - [Complete livery catalog](guide/livery-catalog.md): every vehicle type and livery id, evidence classification and source links, generated from the runtime catalog.
26
31
  - [Scripting](guide/scripting.md): game logic as scene-data scripts (the verb set, `molen.onCommand` for input) or a setup module; `molen types gen` + `molen scripts check` type-check them. Scripts run with the host process's authority — see "Script trust" below.
27
32
  - [Determinism](guide/determinism.md): the contract — what reproduces and at what level per subsystem, what breaks it, what `STATE_FORMAT` means for save files and recorded replays, and what is explicitly not promised.
28
33
  - [Browser mount](guide/browser-mount.md): `buildWorld` in a Worker + `await mountExperience` on the page; events and state for HUDs.
@@ -32,6 +37,7 @@ downloads them into a project and pins them in project.json.
32
37
  - [Earth view](guide/earth-view.md): `mountEarthView` from `@bendyline/molen-earth` — real-world terrain, buildings, landmarks, orbit/walk/drive/fly (cars on the nearest road, airborne P-51 or OH-6), a `vehicleStatus()` HUD feed, decluttered lat/lon markers, credits and adaptive quality in one call.
33
38
  - [WebGPU and WebGL](guide/rendering-backends.md): the `backend` option ('auto' | 'webgl' | 'webgpu') on the asynchronous client factories, legacy WebGL fallback, compatible materials, and world-explorer comparisons.
34
39
  - [Earth and authored skies](guide/sky.md): day/night cycles, geographic Sun/Moon positions and lunar phases, catalog stars, simulation clocks, custom-world palettes, and the sky observatory.
40
+ - [Night lighting](guide/night-lighting.md): deterministic occupied windows, streetlamp emission and pavement pools, dusk activation, and light metadata for authored models.
35
41
  - [Weather and physical atmosphere](guide/weather.md): independent clouds, precipitation and visibility; profiles, temperature/pressure/wind for simulation and aircraft physics; cloud/rain/snow rendering.
36
42
  - [Sound and music](guide/audio.md): sound banks, `audioEnvironment`/`audioSource`/`audioZone` rules driven by weather, sky, listener and entity signals, `molen.audio.*` in scripts, `molen audio plan` to hear a scene headlessly, and the CC0 `molen.sounds` pack.
37
43
  - [Graphics performance](guide/graphics-performance.md): sparse transforms, static instancing, worker preparation, staged uploads, animation/light policy and terrain transitions.
@@ -48,11 +54,13 @@ downloads them into a project and pins them in project.json.
48
54
  - [Building interiors](guide/building-interiors.md): deterministic layouts by use, real entrances and frontage windows, lazy rendering and walk collision.
49
55
  - [3D art guidelines](guide/3d-art-guidelines.md): shared polygonal fidelity, scale, material library, LOD and visual review for static and procedural models.
50
56
  - [Medium-fi style guide](guide/medium-fi.md): the Earth view's target look (a bright polygonal model railroad), the shared light rig, palette bands, polygon budgets per LOD, landmark recognition rules, rendering modes and the review checklist for any new model or style.
57
+ - [Fonts and lettering](guide/typography.md): shared vector font layout, highway/storefront faces, workers, content packs and model export.
51
58
  - [Materials](guide/materials.md): palette and procedural material-graph textures.
52
59
  - [3D model assets](guide/3d-model-assets.md): prompt-to-glTF authoring, PBR texture conventions, import, visual QA, and browser hosting.
53
60
  - [Logical source bundles](guide/source-bundles.md): one copyable folder per entity, structure, vehicle, prop, or other authored thing, with all definitions and source files listed in `source.json`.
54
61
  - [Components](schemas/components.md): the component vocabulary `molen validate` checks against.
55
62
  - [Mountable vehicles](guide/vehicles.md): stable parking entities, driver seats, deterministic vehicle physics, safe exits, and cockpit/chase views.
63
+ - [Boost mode](guide/boost-mode.md): optional 4× travel for people, vehicles and ambient life; Earth T toggle, host API and snapshot-safe kernel setting.
56
64
  - [Boats and water](guide/boats.md): powered hulls, helm controls, passengers, boarding points, swells, currents and Earth-view water coverage.
57
65
  - [Aircraft](guide/aircraft.md): P-51D and OH-6 assets, flight physics, cockpit instruments, practice airfield and controls.
58
66
  - [Vehicle interiors and model signals](guide/vehicle-interiors.md): model-owned cabins, declarative simulation-to-GLB bindings, keyframed exterior animation (landing gear, doors, control surfaces), script-owned telemetry, and nearby detail loading.
@@ -14,6 +14,7 @@ Autogenerated from the schema registry `molen validate` checks against; `molen s
14
14
  - [Ecological geography atlas](ecology-atlas.md) — `molen/ecology-atlas@1`
15
15
  - [Experience play scenario](experience-play.md) — `molen/experience-play@1`
16
16
  - [Figure descriptor](figure.md) — `molen/figure@1`
17
+ - [Regional vehicle fleet](fleet-catalog.md) — `molen/fleet-catalog@1`
17
18
  - [Interior catalog](interior-catalog.md) — `molen/interior-catalog@1`
18
19
  - [Keyframe snapshot](keyframe.md) — `molen/keyframe@1`
19
20
  - [Landmark model](landmark.md) — `molen/landmark@1`
@@ -32,6 +33,8 @@ Autogenerated from the schema registry `molen validate` checks against; `molen s
32
33
  - [Scene manifest](scene.md) — `molen/scene@3`
33
34
  - [Sound bank](soundbank.md) — `molen/soundbank@1`
34
35
  - [Logical source bundle](source-bundle.md) — `molen/source-bundle@1`
36
+ - [Runtime structure placements](structure-placement-data.md) — `molen/structure-placement-data@1`
37
+ - [Regional structure placement directory](structure-placement-index.md) — `molen/structure-placement-index@1`
35
38
  - [Geographic structure placements](structure-placements.md) — `molen/structure-placements@1`
36
39
  - [Style pack manifest](stylepack.md) — `molen/stylepack@1`
37
40
  - [Terrain descriptor](terrain.md) — `molen/terrain@2`
@@ -373,6 +373,67 @@ How to turn any outline into a styled building: massing, roof grammar, facade rh
373
373
  "$schema": "https://json-schema.org/draft/2020-12/schema",
374
374
  "type": "object",
375
375
  "properties": {
376
+ "lotFences": {
377
+ "description": "Weighted fence types for invented residential lots. none leaves the yard open.",
378
+ "minItems": 1,
379
+ "maxItems": 16,
380
+ "type": "array",
381
+ "items": {
382
+ "type": "object",
383
+ "properties": {
384
+ "kind": {
385
+ "type": "string",
386
+ "enum": [
387
+ "none",
388
+ "timber",
389
+ "masonry",
390
+ "rail"
391
+ ]
392
+ },
393
+ "weight": {
394
+ "type": "number",
395
+ "exclusiveMinimum": 0
396
+ }
397
+ },
398
+ "required": [
399
+ "kind",
400
+ "weight"
401
+ ],
402
+ "additionalProperties": false
403
+ }
404
+ },
405
+ "lotPlans": {
406
+ "minItems": 1,
407
+ "maxItems": 32,
408
+ "type": "array",
409
+ "items": {
410
+ "type": "object",
411
+ "properties": {
412
+ "shape": {
413
+ "type": "string",
414
+ "enum": [
415
+ "cottage",
416
+ "ranch",
417
+ "front-garage",
418
+ "side-garage",
419
+ "courtyard",
420
+ "compact",
421
+ "shopfront"
422
+ ]
423
+ },
424
+ "weight": {
425
+ "type": "number",
426
+ "exclusiveMinimum": 0
427
+ }
428
+ },
429
+ "required": [
430
+ "shape",
431
+ "weight"
432
+ ],
433
+ "additionalProperties": false
434
+ },
435
+ "description": "Weighted resizable plans for vacant lots; supplied outlines remain authoritative."
436
+ },
376
437
  "format": {
377
438
  "type": "string",
378
439
  "const": "molen/archstyle@1",
@@ -1283,6 +1344,10 @@ How to turn any outline into a styled building: massing, roof grammar, facade rh
1283
1344
  "type": "boolean",
1284
1345
  "description": "Paired louvered shutters beside punched windows."
1285
1346
  },
1347
+ "cornerBoards": {
1348
+ "type": "boolean",
1349
+ "description": "Trim boards up each outside wall corner, as on lap-sided houses."
1350
+ },
1286
1351
  "balconies": {
1287
1352
  "type": "object",
1288
1353
  "properties": {