stack3js 0.0.0-stage → 0.6.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.
Files changed (97) hide show
  1. package/COMMAND.md +145 -0
  2. package/LICENSE +21 -0
  3. package/README.md +304 -2
  4. package/THIRD-PARTY-LICENSES.md +100 -0
  5. package/bin/stack3.mjs +5437 -0
  6. package/blender/import_stack.py +89 -0
  7. package/examples/future-tank.stack3.json +1 -0
  8. package/examples/traffic-cone-4view.png +0 -0
  9. package/meshing/blocks.py +82 -0
  10. package/meshing/branches.py +62 -0
  11. package/meshing/dexel.py +67 -0
  12. package/meshing/field_data.py +19 -0
  13. package/meshing/finish_blender.py +203 -0
  14. package/meshing/finishing.py +155 -0
  15. package/meshing/geometry.py +71 -0
  16. package/meshing/guided.py +150 -0
  17. package/meshing/implicit.py +178 -0
  18. package/meshing/intersection.py +33 -0
  19. package/meshing/material.py +115 -0
  20. package/meshing/mesh.py +103 -0
  21. package/meshing/network.py +136 -0
  22. package/meshing/regularization.py +213 -0
  23. package/meshing/sections.py +165 -0
  24. package/meshing/signed_distance.py +93 -0
  25. package/package.json +32 -4
  26. package/references/hard-surface/README.md +40 -0
  27. package/references/hard-surface/atlas/concrete-barrier-4view.png +0 -0
  28. package/references/hard-surface/atlas/preview.pipeline.yaml +14 -0
  29. package/references/hard-surface/case-studies/benchmark/README.md +22 -0
  30. package/references/hard-surface/case-studies/benchmark/lod-bevel.pipeline.yaml +258 -0
  31. package/references/hard-surface/finishing/exports.yaml +10 -0
  32. package/references/hard-surface/finishing/finish-lod.pipeline.yaml +33 -0
  33. package/references/hard-surface/finishing/inputs/stack/stack.json +1 -0
  34. package/references/hard-surface/finishing/inputs/stack/stack.png +0 -0
  35. package/references/hard-surface/finishing/regularize.pipeline.yaml +46 -0
  36. package/references/hard-surface/measured-depth/sdf/compare.pipeline.yaml +12 -0
  37. package/references/hard-surface/measured-depth/sdf/inputs/field.npy +0 -0
  38. package/references/hard-surface/measured-depth/sdf/inputs/stack/stack.json +1 -0
  39. package/references/hard-surface/measured-depth/sdf/inputs/stack/stack.png +0 -0
  40. package/references/hard-surface/measured-depth/sdf/inputs/truth.json +1 -0
  41. package/references/hard-surface/measured-depth/sdf/sdf.guide.json +3 -0
  42. package/references/hard-surface/measured-depth/triple-dexel/compare.pipeline.yaml +12 -0
  43. package/references/hard-surface/measured-depth/triple-dexel/dexel.guide.json +3 -0
  44. package/references/hard-surface/measured-depth/triple-dexel/inputs/fixture.json +22 -0
  45. package/references/hard-surface/measured-depth/triple-dexel/inputs/stack/stack.json +22 -0
  46. package/references/hard-surface/measured-depth/triple-dexel/inputs/stack/stack.png +0 -0
  47. package/references/hard-surface/measured-depth/triple-dexel/inputs/triple-dexel.npz +0 -0
  48. package/references/hard-surface/schema/pipeline-fragment.schema.json +5 -0
  49. package/references/hard-surface/schema/pipeline.schema.json +181 -0
  50. package/schema/pipeline-fragment.schema.json +5 -0
  51. package/schema/pipeline.schema.json +181 -0
  52. package/verification/assembly.py +96 -0
  53. package/verification/landmarks.py +53 -0
  54. package/verification/panels.py +137 -0
  55. package/verification/projections.py +135 -0
  56. package/verification/verify.py +108 -0
  57. package/viewer/dist/THIRD-PARTY-LICENSES.md +174 -0
  58. package/viewer/dist/assets/GLTFExporter-xdVCArY-.js +1 -0
  59. package/viewer/dist/assets/ant-mech-angled-leg-4view-BO2qt1_k.png +0 -0
  60. package/viewer/dist/assets/ant-mech-body-4view-D9xVPpbc.png +0 -0
  61. package/viewer/dist/assets/ant-mech-center-leg-4view-BcphjF_G.png +0 -0
  62. package/viewer/dist/assets/compare-B6DWTZS9.css +1 -0
  63. package/viewer/dist/assets/compare-Du4RoRQO.js +6 -0
  64. package/viewer/dist/assets/compare.worker-CgJq-znx.js +21 -0
  65. package/viewer/dist/assets/concrete-barrier-4view-7PsO3Ftq.png +0 -0
  66. package/viewer/dist/assets/emscripten-module-uFzwHH0Y.wasm +0 -0
  67. package/viewer/dist/assets/emscripten-module.browser-BcR5qphc.js +1 -0
  68. package/viewer/dist/assets/ffi-Boa1QuFa.js +1 -0
  69. package/viewer/dist/assets/fillet-rover-body-4-view-Chk8Mx4R.png +0 -0
  70. package/viewer/dist/assets/fillet-rover-wheel-4-view-B-F8flOC.png +0 -0
  71. package/viewer/dist/assets/hull-4view-BPPqJYUz.png +0 -0
  72. package/viewer/dist/assets/hull-base-color-4view-DrQmdT3h.png +0 -0
  73. package/viewer/dist/assets/hull-clay-4view-3Cu-4Hvr.png +0 -0
  74. package/viewer/dist/assets/hull-depth-4view-DCOdT5ev.png +0 -0
  75. package/viewer/dist/assets/hull-normal-4view-CvLaFITy.png +0 -0
  76. package/viewer/dist/assets/inspection-robot-body-4-view-CLMaHFYm.png +0 -0
  77. package/viewer/dist/assets/inspection-robot-wheel-4-view-27wRsxcs.png +0 -0
  78. package/viewer/dist/assets/plastic-barrier-4view-DQkTBW_i.png +0 -0
  79. package/viewer/dist/assets/presets-jXE0t1fU.js +1 -0
  80. package/viewer/dist/assets/preview-cache-BKV0EZl9.js +1 -0
  81. package/viewer/dist/assets/project-BzR9Ensg.css +1 -0
  82. package/viewer/dist/assets/project-DtHHhfo-.js +17 -0
  83. package/viewer/dist/assets/reconstruct.worker-ONc9GyFO.js +21 -0
  84. package/viewer/dist/assets/script-engine-Bs3azDYZ.js +6 -0
  85. package/viewer/dist/assets/style-CMUT8CmM.css +1 -0
  86. package/viewer/dist/assets/style-D6eZHs3D.js +4004 -0
  87. package/viewer/dist/assets/tank-hull-4view-B4sMMkP5.png +0 -0
  88. package/viewer/dist/assets/tank-track-4view-DAIiMTy3.png +0 -0
  89. package/viewer/dist/assets/tank-turret-4view-Cx0FuNFu.png +0 -0
  90. package/viewer/dist/assets/traffic-cone-4view-DG-TkITx.png +0 -0
  91. package/viewer/dist/assets/viewer-DIjS0No7.js +2 -0
  92. package/viewer/dist/assets/wet-floor-sign-4view-CWJDyeTX.png +0 -0
  93. package/viewer/dist/compare.html +47 -0
  94. package/viewer/dist/examples/traffic-cone-4view.png +0 -0
  95. package/viewer/dist/index.html +148 -0
  96. package/viewer/dist/playground/index.html +3342 -0
  97. package/viewer/dist/project.html +83 -0
package/COMMAND.md ADDED
@@ -0,0 +1,145 @@
1
+ # stack3 command reference
2
+
3
+ Generated from the CLI when packaging. Recipe paths are relative to this document.
4
+
5
+ ## CLI help
6
+
7
+ ```text
8
+ Usage: stack3 <verb> <input> [options]
9
+
10
+ help [topic] Show command help (pipeline, mesh, or capabilities)
11
+ capabilities [--json] List mesh methods, runtime requirements, schemas and example recipes
12
+ example <name> Copy future-tank or traffic-cone into the current directory
13
+ verify -f <manifest> Measure atlas views and mounts in one JSON report
14
+ inspect <input> Check mapped directions and fitted image sizes
15
+ build <input> Build an asset and save it to --output
16
+ pipeline --help Render or run YAML, or export its JSON Schema
17
+ mesh <stack-directory> Extract a surface from saved stack.png + stack.json (--output mesh.glb)
18
+ --mesh-method marching-cubes (default), surface-nets, voxel
19
+ or section-loft, heightfield, smooth-loft, revolve, extended-mc, hermite-dc, mc33, branch-loft, path-sweep, section-network, greedy, monotone, signed-distance-dc
20
+ --guide <part.json> uses pivot-relative stack XYZ scene units.
21
+ section-loft, smooth-loft, branch-loft, heightfield: optional axis (x/y/z, default z)
22
+ section-loft, smooth-loft: optional stations [{slice,outer?,holes?}]
23
+ revolve: axis + origin, optional segments (8-512, default 64)
24
+ path-sweep: path; optional up and profile {outer,holes?} (defaults to first stack section)
25
+ section-network: sections [{source:"independent",origin,u,v,outer,holes?}], optional tolerance
26
+ hermite-dc: optional field (.npy SDF) or dexel (.npz crossings and normals)
27
+ signed-distance-dc: optional field, outerIterations and innerIterations
28
+ extended-mc, mc33, greedy, monotone: no guide
29
+ New methods use uv or STACK3_PYTHON. See the stack3 skill for guide examples.
30
+ view <directory> Open a stack bundle in Blender (use --web for the browser viewer)
31
+ --output scene.blend saves a named scene; add --no-open for headless export
32
+ --no-open alone prints the web preview URL
33
+ project --help Edit a level and control its live viewer and playground
34
+
35
+ Inputs
36
+ PNG atlas Supply --layout top,left,front,rear (add right,bottom for six views)
37
+ JSON manifest Map directions to separate PNG paths under "views"
38
+
39
+ Build options
40
+ --format glb|stack Write a GLB file or a directory with stack.png and stack.json
41
+ Can be omitted when --output ends in .glb
42
+ --output <path> Required output path
43
+ --texture-projection <name> auto (default) or top-contour for GLB output
44
+ --mesh-method <name> marching-cubes (default) or contour for GLB output
45
+ --contour-hub Add a centered round axle measured from TOP and LEFT
46
+ --layers <integer|native> Vertical samples (default 128)
47
+ --spacing <number> Sprite stack spacing multiplier (default 1)
48
+ --profile <name> silhouette, round, or round-base
49
+ --no-cache Bypass the local build cache
50
+ --resolution <integer|native> Longer horizontal axis samples (default 96)
51
+ --height <number> Asset height in scene units (default 1)
52
+ --pivot ground|center Origin position (default ground)
53
+ --threshold <0–255> Background threshold for opaque PNGs (default 238)
54
+ ```
55
+
56
+ ## Verification
57
+
58
+ ```text
59
+ stack3 verify -f <manifest.yaml> [--output-dir <dir>]
60
+ Print one JSON measurement report to stdout.
61
+ Atlas: projections and landmarks. Assembly: whole and part atlases plus mount measurements.
62
+ --output-dir <dir> Also save report.json and annotated PNG overlays
63
+ -f, --file Image and child manifest paths are relative to their YAML file.
64
+ ```
65
+
66
+ ## YAML pipelines
67
+
68
+ ```text
69
+ Usage: stack3 pipeline <render|run> <pipeline.yaml> [-f <values.yaml> ...]
70
+ stack3 pipeline schema [recipe|fragment]
71
+ render Resolve includes and values, then print the validated pipeline YAML.
72
+ run Execute the same resolved pipeline and write its GLB outputs.
73
+ schema Print a standalone JSON Schema. The default is recipe.
74
+ -f, --values Override defaults in order. The last file takes precedence.
75
+
76
+ Nodes: load-stack, reconstruct-stack, extract-mesh, write-glb.
77
+ Run stack3 capabilities --json for backends, guide fields and sample paths.
78
+ ```
79
+
80
+ ## Pipeline capabilities
81
+
82
+ ```text
83
+ Usage: stack3 capabilities [--json]
84
+ List pipeline nodes, mesh methods, backends, schemas and runnable samples.
85
+
86
+ Pipeline nodes: load-stack, reconstruct-stack, extract-mesh, write-glb
87
+ Mesh methods: marching-cubes, surface-nets, voxel, section-loft, heightfield, smooth-loft, revolve, extended-mc, hermite-dc, mc33, branch-loft, path-sweep, section-network, greedy, monotone, signed-distance-dc
88
+
89
+ Geometry and export stages
90
+ Voxel Reconstruction (node) reconstruct-stack, load-stack
91
+ SDF and Normal Estimation (python) hermite-dc, signed-distance-dc
92
+ Triple-Dexel Hermite Data (python) guide.dexel, hermite-dc
93
+ Feature Segmentation and Plane Fitting (python) fitTolerance
94
+ Primitive Fitting (python) fitTolerance, primitives
95
+ Feature Boundary Stitching (python) fitTolerance
96
+ Guided Geometry Regularization (python) regularization.tolerance, regularization.features, regularization.relations
97
+ Procedural Bevel (blender) bevelWidth, bevelSegments
98
+ Selective Rim Bevel after QEM (blender) lodBevel.preTriangleBudget, lodBevel.rims, triangleBudget, bevelWidth, bevelSegments
99
+ Mesh Optimization and LOD (blender) dissolveAngle, triangleBudget
100
+ Multi-view Texture Projection (node or python) extract-mesh
101
+ Weighted Normals (python) extract-mesh, finish
102
+ Ambient Occlusion (blender) aoRadius
103
+ GLB Export and GPU Instancing (node) write-glb, lit, instances
104
+
105
+ JSON Schemas
106
+ stack3 pipeline schema recipe
107
+ stack3 pipeline schema fragment
108
+
109
+ Bundled recipes
110
+ atlas-preview (node)
111
+ references/hard-surface/atlas/preview.pipeline.yaml
112
+ finish-lod (node, python, blender)
113
+ references/hard-surface/finishing/finish-lod.pipeline.yaml
114
+ guided-regularization (node, python)
115
+ references/hard-surface/finishing/regularize.pipeline.yaml
116
+ benchmark-beveled-lod (node, python, blender)
117
+ references/hard-surface/case-studies/benchmark/lod-bevel.pipeline.yaml
118
+ triple-dexel (node, python)
119
+ references/hard-surface/measured-depth/triple-dexel/compare.pipeline.yaml
120
+ signed-distance (node, python, gpytoolbox)
121
+ references/hard-surface/measured-depth/sdf/compare.pipeline.yaml
122
+ ```
123
+
124
+ ## Scene projects
125
+
126
+ ```text
127
+ Usage: stack3 project <verb> [project-file] [options]
128
+
129
+ schema List agent actions and field constraints as JSON
130
+ components [component-id] List built-in script components or inspect one
131
+ init <file> [--name <name>] Create a level project
132
+ get <file> Read JSON hierarchy, settings, and current view state
133
+ import <file> <atlas.png>... Embed PNGs and add a scene object for each
134
+ [--layout top,left,front,rear] Direction order shared by inputs in this command
135
+ [--parent <node-id>] Place the new objects under an existing node
136
+ apply <file> <actions.json|-> Apply an atomic JSON action batch or read it from stdin
137
+ [--revision <number>] Require this revision before applying changes
138
+ preset <file> four-wheel <root-id> Attach WASD Vehicle and four Sprite Stack Wheel components
139
+ [--wheels <fl,fr,rl,rr>] Specify wheel IDs in front-left, front-right, rear-left, rear-right order
140
+ [--revision <number>] Require this revision before applying changes
141
+ preset <file> tracked-tank <root-id> Attach Tracked Drive, Turret Control, and both Track Belt components
142
+ open <file> [--no-open] [--playground] Open the live editor or interactive play view
143
+ export <file> <node-id> --output <path> Export one object's asset with its reconstruction settings
144
+ [--format stack|glb] Overrides the object's output format
145
+ ```
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 ev3rlit and stack3.js contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,305 @@
1
- # Temporary Holding Version
1
+ # CLI
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ ## Installation
4
+
5
+ With Node.js 22.12 or later, install the CLI from npm.
6
+
7
+ ```sh
8
+ npm install -g stack3js
9
+ stack3 --version
10
+ ```
11
+
12
+ The CLI is also available from [GitHub Releases](https://github.com/ev3rlit/stack3.js/releases).
13
+
14
+ ## Commands
15
+
16
+ The command grammar is `stack3 <verb> <input> [options]`. Choose the output with `--format glb` or `--format stack`. A `.glb` output path also selects GLB automatically.
17
+
18
+ | Command | Purpose |
19
+ | --- | --- |
20
+ | `stack3 help [pipeline\|mesh\|capabilities]` | Show usage and supported commands. |
21
+ | `stack3 capabilities --json` | Inspect methods, guide fields, backends, pipeline nodes, schemas and bundled samples. |
22
+ | `stack3 example <name>` | Copy the bundled `future-tank` project or `traffic-cone` atlas. Use `--output` to choose a destination. |
23
+ | `stack3 inspect <input>` | Report mapped and missing directions, image dimensions, and input warnings. |
24
+ | `stack3 build <input> --output <file.glb>` | Reconstruct a mesh and write a GLB. |
25
+ | `stack3 build <input> --format stack --output <directory>` | Reconstruct a runtime stack and write its slice data and metadata. |
26
+ | `stack3 mesh <stack-directory> --output <file.glb>` | Reopen a saved stack and extract a surface from slice alpha (≥128). Use the default `marching-cubes`, another baseline (`surface-nets` or `voxel`), or a part-specific extractor. Run `stack3 mesh --help` for method names and `--guide <part.json>` inputs. Part-specific extractors use uv or a configured `STACK3_PYTHON`. See the [stack3 method and guide reference](https://github.com/ev3rlit/stack3.js/blob/main/skills/stack3/SKILL.md#choose-the-surface-method-per-part). Surface color comes from projections of the stored RGB. |
27
+ | `stack3 pipeline render <pipeline.yaml>` | Resolve includes and values into a validated, executable graph. |
28
+ | `stack3 pipeline run <pipeline.yaml>` | Execute the graph and write its GLB outputs. |
29
+ | `stack3 pipeline schema [recipe\|fragment]` | Print a standalone JSON Schema. Defaults to the root recipe schema. |
30
+ | `stack3 view <directory>` | Open an exported stack in Blender. Use `--output scene.blend` to keep a named scene, or add `--no-open` to that output for headless export. `--web` opens the web viewer; `--no-open` alone still prints its URL. |
31
+
32
+ For an atlas, supply its reading order with `--layout`.
33
+
34
+ ```sh
35
+ stack3 inspect crate-4view.png --layout top,left,front,rear
36
+ stack3 build crate-6view.png --layout top,left,front,rear,right,bottom --output crate.glb
37
+ ```
38
+
39
+ For individual images, pass a JSON manifest. Paths are relative to that manifest. Add `right` and `bottom` for a six-view set.
40
+
41
+ ```json
42
+ {
43
+ "views": {
44
+ "top": "crate-top.png",
45
+ "left": "crate-left.png",
46
+ "front": "crate-front.png",
47
+ "rear": "crate-rear.png"
48
+ }
49
+ }
50
+ ```
51
+
52
+ ```sh
53
+ stack3 build crate-views.json --format stack --output crate-stack/
54
+ stack3 view crate-stack/ --output crate.blend
55
+ ```
56
+
57
+ | Build option | Default | Effect |
58
+ | --- | --- | --- |
59
+ | `--texture-projection` | auto | For GLB output, use `top-contour` to project the TOP panel onto the upper surface while retaining elevation UVs on the walls |
60
+ | `--mesh-method` | marching-cubes | Choose `contour` for a plate extruded from the FRONT alpha outline |
61
+ | `--contour-hub` | off | Add a centered, turned hub to a contour mesh using TOP and LEFT |
62
+ | `--layers` | 128 | Vertical samples (integer ≥ 8 or `native`) |
63
+ | `--spacing` | 1 | Multiply the gap between stack slices and the exported vertical bounds |
64
+ | `--profile` | silhouette | Choose `round` or `round-base` to fit elliptical cross-sections |
65
+ | `--resolution` | 96 | Samples on the longer horizontal axis (integer ≥ 16 or `native`), or radial segments for a contour hub |
66
+ | `--height` | 1 | Asset height in scene units |
67
+ | `--pivot` | ground | Use the bottom or center as the origin |
68
+ | `--threshold` | 238 | Background removal threshold for opaque PNGs |
69
+
70
+ Contour extrusion preserves islands and through-holes. FRONT and REAR paint the caps and the other views paint the side walls. The plate uses the full depth unless a round hub is requested. For a hub, provide a solid center in FRONT, a thin blade edge with a projecting axle in TOP and a centered collar in LEFT. Vertical layer count applies to grid reconstruction.
71
+
72
+ `inspect` reports `nativeSamples` for X, Y, and Z from the fitted view images. For example, a taller elevation can supply detail above 128 layers. Use `--layers native` for the tallest fitted elevation and `--resolution native` for the pixel span on the longer horizontal axis (minimum 8 and 16 samples respectively). Numeric counts above the source detail are allowed and resample the images. Dense grids require memory proportional to width × depth × layers. Source PNG decoding separately checks 8,192 px per side and 16 MP per file. A generated stack sheet is checked against its manifest dimensions when reopened.
73
+
74
+ The stack bundle contains `stack.png` and `stack.json`. Its metadata records the atlas layout, slice order, dimensions, spacing, scale, and pivot.
75
+
76
+ Repeated builds reuse the local cache for matching input, format, and settings. Use `--no-cache` to bypass it or `STACK3_CACHE_DIR` to choose its location.
77
+
78
+ `view` and `project open` use the browser viewer bundled with the installed CLI. The preview server listens on loopback. Press Ctrl+C to close it.
79
+
80
+ [CLI requirements and completion check](https://github.com/ev3rlit/stack3.js/blob/main/docs/cli/README.md)
81
+
82
+ ## YAML pipelines
83
+
84
+ Get supported backends and sample paths with `stack3 capabilities --json`. The bundled groups cover RGB atlas preview, mesh finishing with LOD and instancing, measured SDF, and Triple-Dexel. Copy a group to a writable workspace before creating outputs there.
85
+
86
+ Use the [pipeline JSON Schema](schema/pipeline.schema.json) for root and rendered recipes and the [fragment JSON Schema](schema/pipeline-fragment.schema.json) for files listed under `includes`. Both ship in the CLI package under `schema/`.
87
+
88
+ ```sh
89
+ stack3 pipeline schema > pipeline.schema.json
90
+ stack3 pipeline schema fragment > pipeline-fragment.schema.json
91
+ ```
92
+
93
+ With YAML Language Server, place this comment on the first line of the recipe and adjust the path to the schema.
94
+
95
+ ```yaml
96
+ # yaml-language-server: $schema=./schema/pipeline.schema.json
97
+ ```
98
+
99
+ The schema describes fields, types, ranges, node-specific options and supported value references. `pipeline render` also checks resolved values, node dependencies and output path collisions. Keys in a `-f` values file depend on the recipe, so the generic schema leaves its values mapping open.
100
+
101
+ Nodes refer to other nodes by ID. Put them all under `nodes` in one pipeline, or use `includes` for reusable fragments. Here `cab.pipeline.yaml` uses a saved stack for both preview and export.
102
+
103
+ ```yaml
104
+ version: 1
105
+ includes: [surfaces.yaml]
106
+ values:
107
+ stack: ./cab-stack
108
+ output: ./dist
109
+ precision: hermite-dc
110
+ nodes:
111
+ - id: source
112
+ type: load-stack
113
+ path: '{{ .Values.stack }}'
114
+ ```
115
+
116
+ `surfaces.yaml` contributes these nodes. `hermite-dc` uses the same Python environment as `stack3 mesh`.
117
+
118
+ ```yaml
119
+ nodes:
120
+ - { id: fast, type: extract-mesh, input: source, method: surface-nets }
121
+ - { id: precise, type: extract-mesh, input: source, method: '{{ .Values.precision }}' }
122
+ - { id: preview, type: write-glb, input: fast, path: '{{ .Values.output }}/preview.glb' }
123
+ - { id: export, type: write-glb, input: precise, path: '{{ .Values.output }}/cab.glb' }
124
+ ```
125
+
126
+ An optional `release.values.yaml` can set `output: ./release`. Multiple `-f` files override earlier values in order. Included defaults are applied before the including file's defaults. A quoted whole-field reference preserves the value's YAML type, so `layers: '{{ .Values.layers }}'` can resolve to an integer. References can also appear inside paths.
127
+
128
+ ```sh
129
+ stack3 pipeline render cab.pipeline.yaml -f release.values.yaml > cab.resolved.yaml
130
+ stack3 pipeline run cab.resolved.yaml
131
+ ```
132
+
133
+ Include paths are relative to the file declaring them. Node paths are relative to the root pipeline and become absolute in the rendered YAML, which can be run from another directory. `render` resolves and validates the graph without opening asset inputs or writing GLBs. `run` shares each node's result across its consumers. If a later node fails, outputs already written are kept.
134
+
135
+ To start from an atlas, use `type: reconstruct-stack` for `source`, set `path` to the PNG and `layout` to `top,left,front,rear`, or set `path` to a JSON view manifest. Optional fields are `layers`, `resolution`, `height`, `pivot`, `threshold`, and `profile`. Use `load-stack` to preserve edits to a saved stack. An `extract-mesh` node accepts the existing stack mesh methods and can take a `guide` path for part-specific methods.
136
+
137
+ ### Hard-surface finishing
138
+
139
+ Add `finish` to an extraction node to fit and optimize a closed surface. Fitting groups connected faces by normal direction, then fits supported planes and optionally spheres or cylinders. Shared vertices are solved together along patch boundaries. Vertices outside those groups follow the extractor. Finishing checks winding, edge incidence, components and Euler characteristic before returning new geometry. A failed topology-changing operation logs the reason and retains the preceding mesh.
140
+
141
+ From a source checkout, run the [concrete barrier recipe](../../examples/hard-surface.pipeline.yaml) to generate a Surface Nets preview, a finished Hermite DC model, a lower-budget GLB, a Carrera comparison and a row of GPU instances.
142
+
143
+ ```sh
144
+ npm run cli -- pipeline run examples/hard-surface.pipeline.yaml
145
+ ```
146
+
147
+ ```yaml
148
+ version: 1
149
+ values:
150
+ stack: ./housing-stack
151
+ bevel: 0.006
152
+ nodes:
153
+ - { id: source, type: load-stack, path: '{{ .Values.stack }}' }
154
+ - id: housing
155
+ type: extract-mesh
156
+ input: source
157
+ method: hermite-dc
158
+ cache: true
159
+ finish:
160
+ fitTolerance: 0.008
161
+ primitives: true
162
+ bevelWidth: '{{ .Values.bevel }}'
163
+ bevelSegments: 2
164
+ dissolveAngle: 0.5
165
+ triangleBudget: 500
166
+ aoRadius: 0.15
167
+ - { id: model, type: write-glb, input: housing, path: ./out/housing.glb, lit: true }
168
+ - { id: row, type: write-glb, input: housing, path: ./out/row.glb, lit: true, instances: [[0, 0, 0], [1.5, 0, 0]] }
169
+ - { id: carrera, type: extract-mesh, input: source, method: signed-distance-dc }
170
+ - { id: comparison, type: write-glb, input: carrera, path: ./out/signed-distance.glb }
171
+ ```
172
+
173
+ - `fitTolerance`, `bevelWidth` and `aoRadius` use scene units. Blender runs headless for bevel, planar dissolve, quadric simplification and AO. Use `BLENDER_BIN` to choose an executable. Each LOD is a GLB from a branch with its own `triangleBudget` target. Re-import or measure thin features at each target budget.
174
+ - Texture projection uses the saved RGB and runs after topology changes. Creases split the area-weighted vertex normals. AO is written as vertex color (`COLOR_0`). `lit: true` selects a diffuse PBR material. `instances` writes `EXT_mesh_gpu_instancing` with per-instance translations in glTF XYZ coordinates.
175
+ - `cache: true` reuses processed geometry across runs using the stack, settings, guide and external field contents. Omit it when comparing different Blender or Python builds. Multiple outputs consuming one node share its in-memory result.
176
+
177
+ ### Guided geometry regularization
178
+
179
+ Use `finish.regularization` to select measured features before optional bevel and QEM. The [regularization recipe](../../skills/stack3/references/hard-surface/finishing/regularize.pipeline.yaml) fits two planes, a bore wall and rim, and a polygonal pocket rim. It also optimizes a perpendicular relation. Regularization alone runs with the existing Python meshing environment.
180
+
181
+ Coordinates are pivot-relative stack XYZ scene units. The `tolerance` controls sample selection and fitting. Each `features` entry has a unique `id` and one of these types.
182
+
183
+ | Type | Fields | Operation |
184
+ | --- | --- | --- |
185
+ | `plane` | `bounds`, `normal` | Select a patch by its bounding box and normal hint, then fit an SVD plane. |
186
+ | `circle` | `center`, `axis`, `radius` | Select a rim from a center and radius hint. Fit its center and radius in the plane perpendicular to the supplied axis. |
187
+ | `cylinder` | `center`, `axis`, `radius`, `bounds` | Fit a center and radius for a bounded cylindrical wall with a fixed axis. |
188
+ | `polygon` | `corners` | Supply ordered XYZ corner hints. Fit supporting lines on the contour's plane and check that adjacent lines meet near the supplied corners. |
189
+
190
+ `bounds` contains minimum and maximum XYZ points. Optional `relations` entries use `type: parallel`, `perpendicular`, or `coplanar` and `features: [idA, idB]` to jointly refine two or more fitted planes. Relations are soft constraints backed by the sampled surface. A joint fit is rejected if its sample residual exceeds `tolerance`. Shared vertices are solved together. Moves longer than twice `tolerance` and moves incident to unsafe faces are discarded. Inspect the fitted and skipped feature IDs, solver diagnostics and actual mesh measurements after the run.
191
+
192
+ ### Selective rim bevel for LODs
193
+
194
+ Set `finish.lodBevel` to run QEM before beveling selected circular rims. Supply `finish.triangleBudget` for the final cap and a smaller `lodBevel.preTriangleBudget` to leave room for bevel faces. `finish.bevelWidth` is required and `finish.bevelSegments` defaults to two.
195
+
196
+ Each `rims` entry supplies an `id`, `axis` (`x`, `y`, or `z`), `center`, `radius`, `radialTolerance`, and `axialTolerance`. Coordinates are pivot-relative stack XYZ scene units. The axis is perpendicular to the rim plane. The remaining center coordinates locate the circle. Both endpoints of a selected crease must lie within the tolerances. Rims run in recipe order. The pipeline fails if a rim has no matching creases, an operation breaks closed topology, or the result exceeds the final budget.
197
+
198
+ The [hard-surface benchmark](../../examples/hard-surface-benchmark/README.md) shows a verified configuration with Triple-Dexel, a 1,900-triangle pre-budget, and two selected rims within a 2,400-triangle final budget.
199
+
200
+ ### Compare the two Dual Contouring methods
201
+
202
+ `hermite-dc` uses boundary crossings and estimated normals. `signed-distance-dc` uses Carrera et al.'s maintained [Gpytoolbox implementation](https://gpytoolbox.org/0.3.8/dual_contouring_of_signed_distance_data/). uv resolves Gpytoolbox 0.3.8 for that method. When using `STACK3_PYTHON`, install Gpytoolbox 0.3.8 in the selected environment.
203
+
204
+ ```sh
205
+ stack3 mesh housing-stack/ --mesh-method hermite-dc --output hermite.glb
206
+ stack3 mesh housing-stack/ --mesh-method signed-distance-dc --output carrera.glb
207
+ ```
208
+
209
+ For a matched-input comparison, pass `--guide field.json` to both methods. A guide like `{"field":"housing.npy"}` reads a finite floating-point array in XYZ order with shape `(width + 2, depth + 2, layers + 2)`. Samples sit at cell centers with one empty layer of padding. Distances are in scene units, negative inside, and their signs must match the saved stack. Without an external field, `signed-distance-dc` estimates distances from occupancy using physical axis spacing. Its guide accepts `outerIterations` and `innerIterations` from 1 to 100. The CLI defaults are 3 and 12 and use Gpytoolbox's automatically selected near-surface samples for repeatable local comparisons.
210
+
211
+ #### Registered triple-dexel input
212
+
213
+ An optional `{"dexel":"triple-dexel.npz"}` guide gives `hermite-dc` crossing locations and outward normals directly. The saved stack supplies the sampled occupancy and RGB. Use an NPZ with scalar `version: 1`, XYZ `grid`, `origin` and `step`, and these arrays for each axis `x`, `y` and `z`:
214
+
215
+ - `<axis>_offsets` indexes each ray in the packed arrays. The transverse coordinates are in XYZ order with the ray axis omitted, flattened in C order. Transverse rays pass through the other axes' cell centers.
216
+ - `<axis>_depth` contains strictly increasing enter/exit pairs on each ray. Rays point in the positive axis direction. Depth is measured from the stack grid's lower plane in scene units.
217
+ - `<axis>_normals` contains one outward XYZ unit vector per crossing.
218
+
219
+ All axes must classify the saved cell centers identically. A sign-changing grid edge must contain one crossing. The CLI reports additional crossings on edges without a sampled sign change. Use a finer grid to resolve thin features that fall entirely inside an edge. Supply either `dexel` or `field` in the guide.
220
+
221
+ ## Scene projects
222
+
223
+ A scene project stores embedded PNG assets, a hierarchy of nodes, per-object reconstruction settings, camera and renderer settings, and a playback clock. A node can be a group, or an instance of an embedded atlas. Multiple nodes can share the source bytes and use different settings.
224
+
225
+ ```sh
226
+ stack3 project init yard.stack3.json --name "Test Yard"
227
+ stack3 project import yard.stack3.json body.png wheel.png --layout top,left,front,rear
228
+ stack3 project get yard.stack3.json
229
+ stack3 project schema
230
+ stack3 project open yard.stack3.json
231
+ ```
232
+
233
+ Use the IDs from `get` or `import` when building an action batch. An agent can create groups, instance an atlas, move nodes under a different parent, set per-object layer count or spacing, select nodes, and control the view and playback. The editor sees CLI changes automatically. Actions are atomic. Pass `--revision` when an edit depends on a specific project version.
234
+
235
+ ```sh
236
+ stack3 project apply yard.stack3.json - <<'JSON'
237
+ [
238
+ {"action":"node.add","id":"vehicle","name":"Vehicle"},
239
+ {"action":"node.move","id":"BODY_NODE_ID","parentId":"vehicle"},
240
+ {"action":"node.move","id":"WHEEL_NODE_ID","parentId":"vehicle"},
241
+ {"action":"node.set","id":"BODY_NODE_ID","patch":{"settings":{"layers":72,"spacing":1.15,"resolution":128}}},
242
+ {"action":"node.set","id":"vehicle","patch":{"angularVelocity":[0,35,0]}},
243
+ {"action":"view.set","patch":{"backend":"gpu","selected":"vehicle"}},
244
+ {"action":"view.frame"},
245
+ {"action":"play.start"}
246
+ ]
247
+ JSON
248
+ stack3 project open yard.stack3.json --playground
249
+ ```
250
+
251
+ Use `project open --no-open` to print a JSON object containing the local URL. `project get` returns scene data without base64 images. `project import` accepts multiple paths per call. Use separate calls or `atlas.embed` with `node.add` when the layouts differ. `project export <file> <node-id> --output <path>` exports one atlas-backed node using its settings. Placement and hierarchy remain in the project file.
252
+
253
+ The project Playground plays the editable scene. Nodes support linear and angular motion, inherited through the hierarchy. Use `play.nudge` to move or rotate a node temporarily. In scenes with no enabled scripts, the movement buttons and WASD use that same action. Reset clears temporary offsets and script state while preserving authored transforms and component settings.
254
+
255
+ Use **Inspector → Rendering** in Editor or Playground to select a part and switch between **Sprite stack** and **Marching Cubes (3D mesh)**. Use **Viewport → CPU rendering** in that tab to compare **Detail Normals**, **Subpixel AA**, and **Specular AA** during playback. Detail Normals uses texture luminance to perturb the surface normal. Subpixel AA resolves four depth and coverage samples per pixel independently of Supersampling. Specular AA broadens highlights based on normal variation. For the two lighting options, enable **Material lighting** on the parts being compared. The three controls are also available to `view.set` as `detailNormals`, `subpixelAA`, and `specularAA` with `backend: "cpu"`.
256
+
257
+ ### Script components
258
+
259
+ Use `stack3 project components` to list the built-in components as JSON, or `stack3 project components wasd-vehicle` and `stack3 project components sprite-stack-wheel` to read their JavaScript and inspector field defaults.
260
+
261
+ Once the wheels are atlas-backed direct children of a vehicle root, attach the driver and four wheel components atomically.
262
+
263
+ ```sh
264
+ stack3 project preset cart.stack3.json four-wheel vehicle
265
+ stack3 project preset cart.stack3.json four-wheel vehicle --wheels fl,fr,rl,rr
266
+ ```
267
+
268
+ Use the vehicle root's local −Z as forward and smaller X for its left side. The preset identifies wheels by name or shared atlas, or takes the four explicit node IDs in front-left, front-right, rear-left, rear-right order. It binds those IDs into the driver, derives initial wheelbase and radius from the scene, and prints the resulting assignments. Running it again keeps existing inspector values and authored poses. A conflicting customized component source returns an error before any changes are written.
269
+
270
+ For an assembled tank, run `stack3 project preset tank.stack3.json tracked-tank tank`. Place two atlas-backed Sprite stack tracks directly under the root, one on each side of local X, and name the tracks or their atlases with `track` or `tread`. Use a named `Turret pivot` child with the turret under it, or a direct turret node with its origin at the desired rotation center. The preset adds Tracked Drive, Turret Control, and two Track Belt components. Both presets are also in **Inspector → Presets** in Editor and Playground. In Play, WASD or the arrow keys drive the hull, and Q/E turn the turret. A stationary hull turn advances one belt and reverses the other. Belt rendering uses the original TOP atlas colors in both CPU and GPU Sprite stack previews.
271
+
272
+ Custom scripts can return `childTrackTravel` as a map from direct child ID to signed distance in the parent's movement units. The receiving track's script returns its `trackBelt` multiplier (−4 to 4). Reset clears playback-only belt offsets.
273
+
274
+ Select a node and use **Inspector → Script components → Add script**. Under **Edit script**, provide JavaScript defining `function update(input)` and an array of numeric inspector fields. Each field has `name`, `label`, `value`, `min`, `max`, and `step`. Save and enable the component, then press **Play** in the Playground. **Add WASD vehicle** inserts a complete driving script with adjustable speeds, steering, and wheel dimensions. That template expects forward along local −Z and uses child names containing “wheel” for roll; names starting with “Front” also steer.
275
+
276
+ ```js
277
+ function update({ dt, keys, fields, state }) {
278
+ const x = (state.x ?? 0) + (keys.includes('KeyD') ? fields.speed * dt : 0);
279
+ return { state: { x }, translation: [x, 0, 0] };
280
+ }
281
+ ```
282
+
283
+ For this example use `[{"name":"speed","label":"Speed","value":1,"min":0,"max":5,"step":0.1}]` for the field definitions.
284
+
285
+ Attach **Add Sprite Stack Wheel** to an atlas-backed child node to opt into wheel rendering. The parent script supplies that child's `childRotations` as roll around local X, steering around Y, and an optional tilt around Z. The wheel component returns `stackWheel: { rollScale, steeringScale }` (both from −4 to 4). In Sprite Stack mode the renderer applies roll by resampling the wheel volume onto horizontal slices and steers the whole wheel around its hub. In 3D mesh mode it rotates the mesh around the hub. The roll and steering multipliers can be set independently in the wheel inspector.
286
+
287
+ Each update receives elapsed seconds `dt`, the playback clock `time`, held physical key codes, current field values, the previous JSON `state`, the node’s authored `position` and `rotation`, and its direct `children` with IDs, names, and positions. Return absolute playback offsets relative to the authored pose in `translation` (XYZ units) and `rotation` (XYZ degrees), optional `childRotations` keyed by direct child ID (local XYZ degrees), and the JSON `state` for the next update. Scripts run only during live Play in each browser tab, inside a JavaScript VM with execution and memory limits. Pause freezes the preview, and Reset discards runtime state. Use **Viewport → Follow object** to track a scripted node with the camera.
288
+
289
+ The CLI can attach or edit a component with `script.set` (`nodeId`, `id`, and `patch`), detach it with `script.remove`, and select a camera target with `view.set` (`patch.follow`). See `project schema` for the full action shape.
290
+
291
+ For Blender preview, install Blender and put its executable on your PATH or set `BLENDER_BIN`. The standard macOS app location is detected automatically. The packed scene retains one textured quad per layer. With no output path the preview scene is written to a temporary directory.
292
+
293
+ ## Verify orthographic artwork
294
+
295
+ `stack3 verify -f manifest.yaml` prints one JSON report. An atlas manifest measures projections and landmarks. An assembly manifest also follows the whole and part atlas paths. Its report contains `atlases.whole`, `atlases.parts` keyed by part name, and `results` with each part's mounting measurements. Each manifest supplies its own measurement tolerance. Add `--output-dir qa` to save the same JSON as report.json alongside the annotated overlays. Completed measurements exit zero. Invalid inputs exit nonzero. Read the pixel distances, unsupported sample counts and the applicable tolerance per run. Per-result status describes measurement availability. Run with uv or set STACK3_PYTHON to a Python environment with NumPy, Pillow, headless OpenCV and PyYAML. The verification script declares the tested versions.
296
+
297
+ **Atlas YAML.** Supply all four named views. Each has an image path, optional crop [left, top, width, height], origin [u,v] of the common coordinate system in the cropped panel, and a single positive scale in pixels per common unit. Image and manifest paths are relative to their containing YAML file. Pixel centers have integer coordinates. Positive image u points right and v down. Axis directions for (u,v) are TOP (+x,+y), LEFT (−y,−z), FRONT (+x,−z), REAR (−x,−z). The front points down in TOP and left in LEFT. Determine the registration from known common landmarks or scale evidence. Missing registration yields registration-needed. To segment an opaque white background, set mask to white (foreground requires alpha ≥128 and minimum RGB below threshold, default 238). For transparent images, use alpha (≥128).
298
+
299
+ Each boundary pixel supplies two coordinates. The remaining axis must have a common occupied interval in all other applicable silhouettes. Scanlines use pixel footprints, retain disconnected intervals and holes, and include the opposing elevation when present. A parallel view is checked at the corresponding pixel. tolerancePx defaults to 1. Disjoint-interval gaps use source-panel pixels; a scanline with no foreground has no finite interval gap and reports null. An unsupported parallel pixel has its own distance. Reports group consecutive unsupported samples along closed contour walks; sample counts refer to contour samples, not arc lengths. The overlay highlights these contours and illustrates one set of rays. Counts describe the sampled contours under the declared registration.
300
+
301
+ For landmarks supply entries with an id and a points map of view names to local [u,v] observations. A null observation marks an occlusion. Compare shared axes first, then use compatible pairs to predict an independently observed view. Shared-axis residuals are in the second input panel's pixels, and reprojection errors are in the held-out panel's pixels. The JSON records both.
302
+
303
+ **Assembly YAML.** Set whole to an atlas manifest and map parts by name. Each part supplies its atlas and mounts. Provide two or more distinct TOP pairs and at least one FRONT pair, each with part and whole pixel coordinates. TOP fits one positive uniform scale and planar translation, FRONT fits height. Frames must already share their physical orientation. Anchor residuals are recorded separately from checks. Each check names an id and view and supplies either a held-out part/whole point pair or a visible edge polyline in whole-panel pixels. The latter measures the maximum distance along that marked segment to the projected part outline. Set visible to false for hidden features. The reported transform remains fixed for every check.
304
+
305
+ See the [runnable locomotive example and measured outputs](../../samples/inspection/locomotive-verify/README.md).
@@ -0,0 +1,100 @@
1
+ # CLI third-party licenses
2
+
3
+ ## d3-array - 3.2.5
4
+
5
+ Copyright 2010-2026 Mike Bostock
6
+
7
+ Permission to use, copy, modify, and/or distribute this software for any purpose
8
+ with or without fee is hereby granted, provided that the above copyright notice
9
+ and this permission notice appear in all copies.
10
+
11
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
12
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
13
+ FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
14
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
15
+ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
16
+ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
17
+ THIS SOFTWARE.
18
+
19
+ ## d3-contour - 4.0.3
20
+
21
+ Copyright 2012-2026 Mike Bostock
22
+
23
+ Permission to use, copy, modify, and/or distribute this software for any purpose
24
+ with or without fee is hereby granted, provided that the above copyright notice
25
+ and this permission notice appear in all copies.
26
+
27
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
28
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
29
+ FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
30
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
31
+ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
32
+ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
33
+ THIS SOFTWARE.
34
+
35
+ ## earcut - 3.2.4
36
+
37
+ ISC License
38
+
39
+ Copyright (c) 2026, Mapbox
40
+
41
+ Permission to use, copy, modify, and/or distribute this software for any purpose
42
+ with or without fee is hereby granted, provided that the above copyright notice
43
+ and this permission notice appear in all copies.
44
+
45
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
46
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
47
+ FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
48
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
49
+ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
50
+ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
51
+ THIS SOFTWARE.
52
+
53
+ ## fflate - 0.8.3
54
+
55
+ MIT License
56
+
57
+ Copyright (c) 2026 Arjun Barrett
58
+
59
+ Permission is hereby granted, free of charge, to any person obtaining a copy
60
+ of this software and associated documentation files (the "Software"), to deal
61
+ in the Software without restriction, including without limitation the rights
62
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
63
+ copies of the Software, and to permit persons to whom the Software is
64
+ furnished to do so, subject to the following conditions:
65
+
66
+ The above copyright notice and this permission notice shall be included in all
67
+ copies or substantial portions of the Software.
68
+
69
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
70
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
71
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
72
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
73
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
74
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
75
+ SOFTWARE.
76
+
77
+ ## simplify-js - 1.2.4
78
+
79
+ Copyright (c) 2017, Vladimir Agafonkin
80
+ All rights reserved.
81
+
82
+ Redistribution and use in source and binary forms, with or without modification, are
83
+ permitted provided that the following conditions are met:
84
+
85
+ 1. Redistributions of source code must retain the above copyright notice, this list of
86
+ conditions and the following disclaimer.
87
+
88
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list
89
+ of conditions and the following disclaimer in the documentation and/or other materials
90
+ provided with the distribution.
91
+
92
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
93
+ EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
94
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
95
+ COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
96
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
97
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
98
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
99
+ TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
100
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.