@bendyline/molen-tooling 0.0.2 → 0.0.4
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/README.md +4 -4
- package/dist/capture/harness.js +222 -222
- package/dist/capture/worldgen-preview.js +288 -288
- package/dist/cli.mjs +162 -10
- package/dist/docs-src/guide/3d-model-assets.md +35 -3
- package/dist/docs-src/guide/adaptive-performance.md +4 -0
- package/dist/docs-src/guide/agent-loop.md +6 -6
- package/dist/docs-src/guide/aircraft.md +28 -7
- package/dist/docs-src/guide/ambient-life.md +389 -0
- package/dist/docs-src/guide/audio.md +247 -0
- package/dist/docs-src/guide/browser-mount.md +8 -1
- package/dist/docs-src/guide/building-interiors.md +5 -4
- package/dist/docs-src/guide/capability-authoring.md +5 -0
- package/dist/docs-src/guide/determinism.md +35 -27
- package/dist/docs-src/guide/earth-view.md +492 -0
- package/dist/docs-src/guide/entities.md +9 -1
- package/dist/docs-src/guide/examples.md +6 -2
- package/dist/docs-src/guide/figures.md +3 -0
- package/dist/docs-src/guide/game-samples.md +22 -5
- package/dist/docs-src/guide/graphics-performance.md +40 -8
- package/dist/docs-src/guide/input.md +9 -0
- package/dist/docs-src/guide/markers.md +55 -0
- package/dist/docs-src/guide/materials.md +10 -3
- package/dist/docs-src/guide/navigation.md +150 -0
- package/dist/docs-src/guide/project.md +1 -1
- package/dist/docs-src/guide/quickstart.md +2 -2
- package/dist/docs-src/guide/recognizable-places.md +3 -2
- package/dist/docs-src/guide/scripting.md +4 -2
- package/dist/docs-src/guide/sky.md +16 -0
- package/dist/docs-src/guide/source-bundles.md +0 -1
- package/dist/docs-src/guide/structure-library.md +2 -2
- package/dist/docs-src/guide/surface-rendering.md +4 -3
- package/dist/docs-src/guide/terrain.md +52 -2
- package/dist/docs-src/guide/vehicles.md +32 -10
- package/dist/docs-src/guide/worldgen.md +3 -3
- package/dist/docs-src/llms.txt +14 -5
- package/dist/docs-src/schemas/README.md +4 -0
- package/dist/docs-src/schemas/archive-set.md +175 -0
- package/dist/docs-src/schemas/components.md +1634 -2
- package/dist/docs-src/schemas/matgraph.md +6 -0
- package/dist/docs-src/schemas/scene.md +105 -0
- package/dist/docs-src/schemas/soundbank.md +251 -0
- package/dist/docs-src/schemas/structure-placements.md +496 -0
- package/dist/docs-src/schemas/terrain-package.md +120 -0
- package/dist/docs-src/schemas/transport-network.md +351 -0
- package/dist/index.d.mts +49 -2
- package/dist/index.mjs +81 -4
- package/dist/{mcp-AOfIp89b.mjs → mcp-BtuworIW.mjs} +88 -3
- package/dist/{ops-C4BvDgP-.mjs → ops-DMGcWoL2.mjs} +1204 -93
- package/dist/templates/city-courier/README.md +14 -1
- package/dist/templates/city-courier/delivery-run.replay.json +151 -151
- package/dist/templates/city-courier/gen/molen-types.ts +223 -5
- package/dist/templates/city-courier/package.json +2 -0
- package/dist/templates/city-courier/scene.json +142 -246
- package/dist/templates/city-courier/scripts/game.ts +7 -15
- package/dist/templates/city-courier/scripts/molen-scripts.d.ts +252 -16
- package/dist/templates/city-courier/src/audio.ts +96 -0
- package/dist/templates/city-courier/src/game-shell.css +8 -0
- package/dist/templates/city-courier/src/main.ts +3 -0
- package/dist/templates/city-courier/src/worker.ts +3 -1
- package/dist/templates/city-courier/test/headless.test.ts +3 -2
- package/dist/templates/data-viz/README.md +1 -1
- package/dist/templates/index.json +22 -1
- package/dist/templates/skybound/README.md +13 -0
- package/dist/templates/skybound/first-leap.replay.json +152 -152
- package/dist/templates/skybound/gen/molen-types.ts +223 -5
- package/dist/templates/skybound/package.json +1 -0
- package/dist/templates/skybound/scene.json +40 -0
- package/dist/templates/skybound/scripts/game.ts +8 -5
- package/dist/templates/skybound/scripts/molen-scripts.d.ts +248 -5
- package/dist/templates/skybound/src/audio.ts +96 -0
- package/dist/templates/skybound/src/game-shell.css +8 -0
- package/dist/templates/skybound/src/main.ts +3 -0
- package/dist/templates/skybound/test/headless.test.ts +1 -1
- package/dist/templates/terrain-flyover/README.md +2 -2
- package/dist/templates/top-down-arena/README.md +15 -2
- package/dist/templates/top-down-arena/arena-skirmish.replay.json +152 -152
- package/dist/templates/top-down-arena/package.json +1 -0
- package/dist/templates/top-down-arena/scene.json +20 -0
- package/dist/templates/top-down-arena/scripts/combat.ts +1 -0
- package/dist/templates/top-down-arena/scripts/molen-scripts.d.ts +248 -5
- package/dist/templates/top-down-arena/src/audio.ts +96 -0
- package/dist/templates/top-down-arena/src/gen/molen-types.ts +223 -5
- package/dist/templates/top-down-arena/src/main.ts +3 -0
- package/dist/templates/top-down-arena/test/headless.test.ts +1 -1
- package/package.json +13 -12
|
@@ -16,7 +16,7 @@ every entry and provides dimension, texture and detail controls.
|
|
|
16
16
|
|
|
17
17
|
For enterable buildings and lazy ground-floor furnishings, see [Building interiors](building-interiors.md).
|
|
18
18
|
|
|
19
|
-
```
|
|
19
|
+
```text
|
|
20
20
|
@bendyline/molen-worldgen world-agnostic core
|
|
21
21
|
/kernel formats, footprint analysis, roofs and walls, batch generator, GLB encoder, seeds
|
|
22
22
|
/client buffers to three.js meshes, instanced boxes, style-pack loader
|
|
@@ -185,7 +185,7 @@ defaults, not recovered building measurements. Source heights and levels take pr
|
|
|
185
185
|
|
|
186
186
|
## 4. Seeds and identity
|
|
187
187
|
|
|
188
|
-
```
|
|
188
|
+
```text
|
|
189
189
|
building seed: wg1|b|<pack.name>@<pack.version>|<style.id>@<style.version>|<identity>
|
|
190
190
|
aspect seed: <building seed>|massing | roof | facade | palette:<name> | material:<part> | props:<id>
|
|
191
191
|
prop salt: wg1|p|<pack>@<version>|<scatter.id>@<version>|<rule.id> then hashCoord(cellX, cellZ, salt)
|
|
@@ -244,7 +244,7 @@ A style pack's source directory looks like this (the default pack's is
|
|
|
244
244
|
[`content/worldgen/`](https://github.com/bendyline/molen/tree/main/content/worldgen) in the engine
|
|
245
245
|
repository); `molen pack build <dir>` turns one into a content pack.
|
|
246
246
|
|
|
247
|
-
```
|
|
247
|
+
```text
|
|
248
248
|
my-stylepack/
|
|
249
249
|
stylepack.json name, version (seeds), namespace, id → path maps, defaults, imports
|
|
250
250
|
styles/**/*.archstyle.json
|
package/dist/docs-src/llms.txt
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
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
|
+
Engine version: 0.0.4. 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
|
|
|
@@ -27,9 +27,13 @@ downloads them into a project and pins them in project.json.
|
|
|
27
27
|
- [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
28
|
- [Browser mount](guide/browser-mount.md): `buildWorld` in a Worker + `await mountExperience` on the page; events and state for HUDs.
|
|
29
29
|
- [Input profiles and joysticks](guide/input.md): keyboard/controller remapping, raw axes, walking/driving/flying profiles, analog commands, and optional React controls.
|
|
30
|
+
- [Camera navigation](guide/navigation.md): orbit, fly, walk (capsule collision against streamed geometry) and follow cameras for `createViewer` hosts; one input model across keys, gamepad, pointer gestures and an on-screen touch stick.
|
|
31
|
+
- [World markers](guide/markers.md): screen-sized photo pins and labels pinned to world positions, ground-snapped, occluded, faded, budgeted and pickable.
|
|
32
|
+
- [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.
|
|
30
33
|
- [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.
|
|
31
34
|
- [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.
|
|
32
35
|
- [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
|
+
- [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.
|
|
33
37
|
- [Graphics performance](guide/graphics-performance.md): sparse transforms, static instancing, worker preparation, staged uploads, animation/light policy and terrain transitions.
|
|
34
38
|
- [Terrain and world explorer](guide/terrain.md): fixed-grid and screen-space pyramid streaming,
|
|
35
39
|
projected Earth coordinates, optional semantic tile layers, the installable tiled-world package
|
|
@@ -38,7 +42,7 @@ downloads them into a project and pins them in project.json.
|
|
|
38
42
|
- [Worldgen: styled buildings and scatter](guide/worldgen.md): any outline → a styled building; `worldgenBuilding` component, `molen.worldgen.*` script queries, worker + cache for map tiles
|
|
39
43
|
(footprint analysis, roofs, walls), labeled polygons → deterministic props, style packs, and the
|
|
40
44
|
Earth binding (region atlas, terrain-semantics adapter, tile renderers).
|
|
41
|
-
- [Default structure library](guide/structure-library.md): 120 resizable buildings in 13 taxonomies,
|
|
45
|
+
- [Default structure library](guide/structure-library.md): 120 resizable buildings in 13 taxonomies, 51 shared construction materials, regional placement and the interactive model sheet.
|
|
42
46
|
- [Recognizable places](guide/recognizable-places.md): store identity matching, reusable signs, tenant facades and mapped outdoor props.
|
|
43
47
|
- [Building interiors](guide/building-interiors.md): deterministic layouts by use, real entrances and frontage windows, lazy rendering and walk collision.
|
|
44
48
|
- [3D art guidelines](guide/3d-art-guidelines.md): shared polygonal fidelity, scale, material library, LOD and visual review for static and procedural models.
|
|
@@ -50,6 +54,7 @@ downloads them into a project and pins them in project.json.
|
|
|
50
54
|
- [Aircraft](guide/aircraft.md): P-51D and OH-6 assets, flight physics, cockpit instruments, practice airfield and controls.
|
|
51
55
|
- [Vehicle interiors and model signals](guide/vehicle-interiors.md): model-owned cabins, declarative simulation-to-GLB bindings, script-owned telemetry, and nearby detail loading.
|
|
52
56
|
- [Figures](guide/figures.md): stylized humans, bipeds and quadrupeds: presets and descriptors, canonical rigs and sockets, deterministic gaits, `figureAttachment` accessories, riders, and `molen figure preview`.
|
|
57
|
+
- [Ambient life](guide/ambient-life.md): NPC cars, pedestrians, trains and aircraft that spawn around an observer on a transport network (the scene `ambient` block, `molen/transport-network@1`, `molen.ambient.*`, the Earth view's `ambient` option, `ambientRole` content).
|
|
53
58
|
- [Complete game samples](guide/game-samples.md): city driving, first-person dungeon, and platformer; shared follow cameras and XY platform physics.
|
|
54
59
|
- [Samples gallery](guide/examples.md): every sample with its molen.dev/play link and `--template` id, plus the capability layers (kinematics,
|
|
55
60
|
character, pathfinding, physics-rapier, terrain) — copy-and-modify starting points.
|
|
@@ -83,10 +88,12 @@ All formats carry a `"format": "molen/<kind>@<n>"` (or `"kind"`) envelope and ar
|
|
|
83
88
|
with `molen validate <file>`, which prints precise, fixable errors. The shipped specs (JSON
|
|
84
89
|
Schema + example, generated from the registry) live in [schemas/](schemas/README.md):
|
|
85
90
|
|
|
86
|
-
- [Scene manifest](schemas/scene.md) (`molen/scene@3`: entities, prefabs, `commands`, `components`, camera, input, physics, terrain)
|
|
91
|
+
- [Scene manifest](schemas/scene.md) (`molen/scene@3`: entities, prefabs, `commands`, `components`, camera, input, physics, terrain, ambient)
|
|
92
|
+
- [Transport network](schemas/transport-network.md) (`molen/transport-network@1`: roads, railways and paths for ambient traffic)
|
|
87
93
|
- [Command envelope](schemas/command.md) · [Assertions](schemas/assert.md)
|
|
88
94
|
- [Keyframe](schemas/keyframe.md) · [Delta](schemas/delta.md) · [Replay](schemas/replay.md)
|
|
89
95
|
- [Components](schemas/components.md) — every component with units and axis conventions
|
|
96
|
+
- [Sound bank](schemas/soundbank.md) (`molen/soundbank@1`: sound ids → clips, loops, gain, pitch, bus, provenance)
|
|
90
97
|
|
|
91
98
|
## The API surface
|
|
92
99
|
|
|
@@ -102,7 +109,8 @@ Schema + example, generated from the registry) live in [schemas/](schemas/README
|
|
|
102
109
|
- `molen validate <file> [--kind k] [--project p]` — validate an asset (pinpoint, fixable errors; scene `type` refs resolve through the project)
|
|
103
110
|
- `molen sim run <scene|name> --ticks N [--setup m] [--commands f] [--assert f] [--hash]`
|
|
104
111
|
- `molen asset import <file.glb> [--id <id>] [--trimesh]` · `asset inspect <ref> [--verify]` · `asset list` · `asset shot <ref> --out-dir d [--variant ktx2]`
|
|
105
|
-
- `molen pack build <dir> --out-dir d` · `pack inspect|verify <pack>` · `pack extract <pack> --out-dir d` · `pack fetch <url> [--project p]` — content packs (deterministic zips with a manifest); CLI ops find them via project.json `packs` and `MOLEN_PACKS`
|
|
112
|
+
- `molen pack build <dir> --out-dir d` · `pack inspect|verify <pack>` · `pack extract <pack> --out-dir d` · `pack fetch <url> [ids…] [--out-dir d] [--project p]` — content packs (deterministic zips with a manifest); CLI ops find them via project.json `packs` and `MOLEN_PACKS`
|
|
113
|
+
- `molen audio plan <scene> --ticks N [--bank b.json] [--commands f] [--weather w] [--mode m]` — list the loops and one-shots a scene would play, headlessly · `audio import <file> --id <id> --bank <bank.json> --license <spdx>` · `audio check <bank.json>`
|
|
106
114
|
- `molen asset pack <ref>|--all` — runtime GLB variant (KTX2 textures + mips, 4-8x less GPU memory) · `asset stage --out-dir d [--variant ktx2]` — browser bundle + assets.index.json
|
|
107
115
|
- `molen drive <scene> --actions f --out-dir d [--assert f]` — PLAY a scene: commands in, frames out (deterministic)
|
|
108
116
|
- `molen play <built-app-dir> --scenario f --out-dir d` — PLAY a browser experience: UI inputs in, screenshots/probes/diagnostics out
|
|
@@ -118,6 +126,7 @@ Schema + example, generated from the registry) live in [schemas/](schemas/README
|
|
|
118
126
|
- `molen docs search <query> [-k N] [--design]` · `molen describe [op]`
|
|
119
127
|
- `molen worldgen preview [style.json] [--pack p] [--style id] [--batch f] [--angles N] --out p.png` — generate buildings and render them headlessly · `worldgen bake [batch.json] [--outline "x,z;…" --style id] --out <assets-dir> [--id id]` — bake to a glTF asset + sidecar · `worldgen stats <terrain-package.json> [--tile z/x/y | --auto] [--dump batch.json]` — generate one real tile and report
|
|
120
128
|
- `molen figure preview [descriptor.figure.json] [--preset id[,id]] [--lineup humans|bodies|species|all] [--mode idle|walk|run|sit|jump|fall] [--angles N|review] --out p.png` — render figures headlessly · `figure presets [--json]` — list the shipped presets
|
|
129
|
+
- `molen network bake <terrain-package.json> (--tile z/x/y [--radius N] | --bbox w,s,e,n) --out network.json [--classes road,rail,path] [--heights]` — bake mapped roads, railways and paths into a transport network for ambient traffic
|
|
121
130
|
- `molen mcp` — start the MCP server (stdio)
|
|
122
131
|
|
|
123
132
|
## MCP tools (the server mirrors the CLI 1:1; `molen describe` cross-references both)
|
|
@@ -128,7 +137,7 @@ Schema + example, generated from the registry) live in [schemas/](schemas/README
|
|
|
128
137
|
`check_types`, `reserve_type`, `generate_types`, `import_asset`, `inspect_asset`, `pack_asset`, `stage_assets`,
|
|
129
138
|
`list_assets`, `drive_scene` (returns frames as IMAGES), `play_experience` (plays a built browser app and returns frames as IMAGES), `screenshot_asset` (turntable images),
|
|
130
139
|
`test_types`, `worldgen_preview` (generated buildings as IMAGES), `worldgen_bake`, `worldgen_stats`,
|
|
131
|
-
`figure_preview` (figures as IMAGES), `list_figure_presets`. Call `describe_op` for I/O contracts.
|
|
140
|
+
`figure_preview` (figures as IMAGES), `list_figure_presets`, `network_bake`, `plan_audio`, `import_sound`, `check_soundbank`. Call `describe_op` for I/O contracts.
|
|
132
141
|
|
|
133
142
|
|
|
134
143
|
## Design reference (for deeper questions; the historical design plan, on GitHub)
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Autogenerated from the schema registry `molen validate` checks against; `molen schema list` and `molen schema get <kind>` print the same set at runtime.
|
|
4
4
|
|
|
5
5
|
- [Components](components.md) — the component vocabulary (`molen components`)
|
|
6
|
+
- [Archive set](archive-set.md) — `molen/archive-set@1`
|
|
6
7
|
- [Architectural style](archstyle.md) — `molen/archstyle@1`
|
|
7
8
|
- [Assertion document](assert.md) — `molen/assert@1`
|
|
8
9
|
- [Asset sidecar](asset.md) — `molen/asset@1`
|
|
@@ -27,10 +28,13 @@ Autogenerated from the schema registry `molen validate` checks against; `molen s
|
|
|
27
28
|
- [Replay fixture](replay.md) — `molen/replay@1`
|
|
28
29
|
- [Scatter rules](scatter.md) — `molen/scatter@1`
|
|
29
30
|
- [Scene manifest](scene.md) — `molen/scene@3`
|
|
31
|
+
- [Sound bank](soundbank.md) — `molen/soundbank@1`
|
|
30
32
|
- [Logical source bundle](source-bundle.md) — `molen/source-bundle@1`
|
|
33
|
+
- [Geographic structure placements](structure-placements.md) — `molen/structure-placements@1`
|
|
31
34
|
- [Style pack manifest](stylepack.md) — `molen/stylepack@1`
|
|
32
35
|
- [Terrain descriptor](terrain.md) — `molen/terrain@2`
|
|
33
36
|
- [Terrain package manifest](terrain-package.md) — `molen/terrain-package@1`
|
|
37
|
+
- [Transport network](transport-network.md) — `molen/transport-network@1`
|
|
34
38
|
- [Entity type registry](types.md) — `molen/types@1`
|
|
35
39
|
- [UV paint sidecar](uvpaint.md) — `molen/uvpaint@1`
|
|
36
40
|
- [Worldgen batch](worldgen-batch.md) — `molen/worldgen-batch@1`
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
# Archive set (`molen/archive-set@1`)
|
|
2
|
+
|
|
3
|
+
One tile pyramid split across PMTiles archives: a coarse base plus detail archives partitioned by the tile at a fixed level.
|
|
4
|
+
|
|
5
|
+
## Example
|
|
6
|
+
|
|
7
|
+
```json
|
|
8
|
+
{
|
|
9
|
+
"format": "molen/archive-set@1",
|
|
10
|
+
"name": "world-features",
|
|
11
|
+
"tileType": "mvt",
|
|
12
|
+
"partitionLevel": 7,
|
|
13
|
+
"base": {
|
|
14
|
+
"url": "base.pmtiles",
|
|
15
|
+
"minLevel": 0,
|
|
16
|
+
"maxLevel": 7
|
|
17
|
+
},
|
|
18
|
+
"archives": [
|
|
19
|
+
{
|
|
20
|
+
"id": "pacific-northwest-01",
|
|
21
|
+
"url": "2026-09/pacific-northwest-01.pmtiles",
|
|
22
|
+
"minLevel": 8,
|
|
23
|
+
"maxLevel": 13,
|
|
24
|
+
"partitions": "2600-2603,2728-2731"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## JSON Schema
|
|
31
|
+
|
|
32
|
+
```json
|
|
33
|
+
{
|
|
34
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
35
|
+
"type": "object",
|
|
36
|
+
"properties": {
|
|
37
|
+
"format": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"const": "molen/archive-set@1",
|
|
40
|
+
"description": "Format envelope; always 'molen/archive-set@1'."
|
|
41
|
+
},
|
|
42
|
+
"name": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"minLength": 1,
|
|
45
|
+
"description": "Archive set name."
|
|
46
|
+
},
|
|
47
|
+
"tileType": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"enum": [
|
|
50
|
+
"png",
|
|
51
|
+
"mvt"
|
|
52
|
+
],
|
|
53
|
+
"description": "Payload type shared by every archive: 'png' (e.g. PNG16 elevation) or 'mvt'."
|
|
54
|
+
},
|
|
55
|
+
"partitionLevel": {
|
|
56
|
+
"type": "integer",
|
|
57
|
+
"minimum": 0,
|
|
58
|
+
"maximum": 10,
|
|
59
|
+
"description": "Level whose tiles partition the detail archives; a detail tile belongs to the archive listing its ancestor at this level."
|
|
60
|
+
},
|
|
61
|
+
"base": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"properties": {
|
|
64
|
+
"url": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"minLength": 1,
|
|
67
|
+
"description": "Archive URL, relative to this document or absolute (http/https)."
|
|
68
|
+
},
|
|
69
|
+
"minLevel": {
|
|
70
|
+
"type": "integer",
|
|
71
|
+
"minimum": 0,
|
|
72
|
+
"maximum": 30,
|
|
73
|
+
"description": "Coarsest level the base archive serves."
|
|
74
|
+
},
|
|
75
|
+
"maxLevel": {
|
|
76
|
+
"type": "integer",
|
|
77
|
+
"minimum": 0,
|
|
78
|
+
"maximum": 30,
|
|
79
|
+
"description": "Finest level the base archive serves."
|
|
80
|
+
},
|
|
81
|
+
"bytes": {
|
|
82
|
+
"type": "integer",
|
|
83
|
+
"minimum": 0,
|
|
84
|
+
"maximum": 9007199254740991,
|
|
85
|
+
"description": "Archive size in bytes."
|
|
86
|
+
},
|
|
87
|
+
"sha256": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
90
|
+
"description": "Hex sha256 of the archive."
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"required": [
|
|
94
|
+
"url",
|
|
95
|
+
"minLevel",
|
|
96
|
+
"maxLevel"
|
|
97
|
+
],
|
|
98
|
+
"additionalProperties": false,
|
|
99
|
+
"description": "Optional coarse archive serving every level up to its maxLevel."
|
|
100
|
+
},
|
|
101
|
+
"archives": {
|
|
102
|
+
"type": "array",
|
|
103
|
+
"items": {
|
|
104
|
+
"type": "object",
|
|
105
|
+
"properties": {
|
|
106
|
+
"id": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"minLength": 1,
|
|
109
|
+
"description": "Unique archive id, e.g. \"pacific-northwest-02\"."
|
|
110
|
+
},
|
|
111
|
+
"url": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"minLength": 1,
|
|
114
|
+
"description": "Archive URL, relative to this document or absolute (http/https)."
|
|
115
|
+
},
|
|
116
|
+
"minLevel": {
|
|
117
|
+
"type": "integer",
|
|
118
|
+
"minimum": 0,
|
|
119
|
+
"maximum": 30,
|
|
120
|
+
"description": "Coarsest level the archive serves (at least partitionLevel)."
|
|
121
|
+
},
|
|
122
|
+
"maxLevel": {
|
|
123
|
+
"type": "integer",
|
|
124
|
+
"minimum": 0,
|
|
125
|
+
"maximum": 30,
|
|
126
|
+
"description": "Finest level the archive serves."
|
|
127
|
+
},
|
|
128
|
+
"partitions": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"pattern": "^(\\d+(-\\d+)?(,\\d+(-\\d+)?)*)?$",
|
|
131
|
+
"description": "Run-length list of partition cells it owns, as indices y * 2^partitionLevel + x (e.g. \"40-44,60\")."
|
|
132
|
+
},
|
|
133
|
+
"bounds": {
|
|
134
|
+
"minItems": 4,
|
|
135
|
+
"maxItems": 4,
|
|
136
|
+
"type": "array",
|
|
137
|
+
"items": {
|
|
138
|
+
"type": "number"
|
|
139
|
+
},
|
|
140
|
+
"description": "Informational [west, south, east, north] in degrees."
|
|
141
|
+
},
|
|
142
|
+
"bytes": {
|
|
143
|
+
"type": "integer",
|
|
144
|
+
"minimum": 0,
|
|
145
|
+
"maximum": 9007199254740991,
|
|
146
|
+
"description": "Archive size in bytes."
|
|
147
|
+
},
|
|
148
|
+
"sha256": {
|
|
149
|
+
"type": "string",
|
|
150
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
151
|
+
"description": "Hex sha256 of the archive."
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"required": [
|
|
155
|
+
"id",
|
|
156
|
+
"url",
|
|
157
|
+
"minLevel",
|
|
158
|
+
"maxLevel",
|
|
159
|
+
"partitions"
|
|
160
|
+
],
|
|
161
|
+
"additionalProperties": false
|
|
162
|
+
},
|
|
163
|
+
"description": "Detail archives, each owning a disjoint set of partition cells."
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"required": [
|
|
167
|
+
"format",
|
|
168
|
+
"name",
|
|
169
|
+
"tileType",
|
|
170
|
+
"partitionLevel",
|
|
171
|
+
"archives"
|
|
172
|
+
],
|
|
173
|
+
"additionalProperties": false
|
|
174
|
+
}
|
|
175
|
+
```
|