forgecad 0.9.16 → 0.10.0

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 (147) hide show
  1. package/dist/assets/{AdminPage-CXvls4-J.js → AdminPage-DwYHz72L.js} +1 -1
  2. package/dist/assets/{BenchmarkPage-B27zk8xL.js → BenchmarkPage-a9_f-1US.js} +1 -1
  3. package/dist/assets/{BlogPage-CMAVvgQL.js → BlogPage-DodHpvmf.js} +1 -1
  4. package/dist/assets/{DocsPage-knf4I4h7.js → DocsPage-B5LePEuj.js} +8 -858
  5. package/dist/assets/EditorApp-QXsAISLR.js +16307 -0
  6. package/dist/assets/{EmbedViewer-D7ZGlFjx.js → EmbedViewer-DdEHGUMU.js} +2 -2
  7. package/dist/assets/{LandingPageProofDriven-CnevhTE8.js → LandingPageProofDriven-yhhOodbf.js} +1 -1
  8. package/dist/assets/{LegalPage-BPTUmqeg.js → LegalPage-5RbKRGYK.js} +1 -1
  9. package/dist/assets/{PricingPage-B0D4goG_.js → PricingPage-E3Rma7aV.js} +1 -1
  10. package/dist/assets/{SettingsPage-CFF-UgjI.js → SettingsPage-BJZcM97j.js} +1 -1
  11. package/dist/assets/{app-T0pDcSX4.js → app-DSYrDg0V.js} +733 -205
  12. package/dist/assets/cli/{render-C5pcIISc.js → render-ZMHR9HkV.js} +19 -46
  13. package/dist/assets/{constructionHistoryWorker-Ba2Hm58b.js → constructionHistoryWorker-AwMMWSxg.js} +1103 -349
  14. package/dist/assets/{evalWorker-vkx310U2.js → evalWorker-DbNs7Dkp.js} +3798 -1622
  15. package/dist/assets/{inspectWorker-BuTJDVX6.js → inspectWorker-CZsCFtQT.js} +1163 -409
  16. package/dist/assets/{jointPose-B_Cgedn9.js → jointPose-DO6mnXn_.js} +1 -1
  17. package/dist/assets/{manifold-BWgsjmAM.js → manifold-BGlQBBH9.js} +1 -1
  18. package/dist/assets/{manifold-rZexZI0G.js → manifold-BU-tJwQh.js} +1 -1
  19. package/dist/assets/{manifold-D6IFSkhH.js → manifold-fy2MV7K1.js} +2 -2
  20. package/dist/assets/{reportWorker-0AGij1Ru.js → reportWorker-DO6hcQbh.js} +7155 -2437
  21. package/dist/assets/{scalar-sampling-budget-J5cuzxT1.js → scalar-sampling-budget-o90NSNmF.js} +3940 -1742
  22. package/dist/assets/{scanProxyWorker-Vl4Wxa1y.js → scanProxyWorker-2GtDLk-R.js} +1 -1
  23. package/dist/assets/{javascript-1kQXfVaz.js → typescript-DBQ6RN5l.js} +874 -22
  24. package/dist/cli/render.html +1 -1
  25. package/dist/docs/index.html +3 -3
  26. package/dist/docs-raw/AI/usage.md +1 -1
  27. package/dist/docs-raw/CLI.md +63 -241
  28. package/dist/docs-raw/README.md +6 -0
  29. package/dist/docs-raw/component-model.md +17 -150
  30. package/dist/docs-raw/generated/assembly.md +139 -598
  31. package/dist/docs-raw/generated/concepts.md +245 -3501
  32. package/dist/docs-raw/generated/core.md +277 -1251
  33. package/dist/docs-raw/generated/curves.md +387 -1608
  34. package/dist/docs-raw/generated/legacy.md +162 -0
  35. package/dist/docs-raw/generated/lib.md +227 -85
  36. package/dist/docs-raw/generated/output.md +38 -73
  37. package/dist/docs-raw/generated/runtime-names.md +23 -23
  38. package/dist/docs-raw/generated/sdf.md +68 -284
  39. package/dist/docs-raw/generated/sheet-metal.md +68 -335
  40. package/dist/docs-raw/generated/sketch.md +240 -1161
  41. package/dist/docs-raw/generated/viewport.md +75 -316
  42. package/dist/docs-raw/generated/wood.md +21 -49
  43. package/dist/docs-raw/guides/coordinate-system.md +4 -42
  44. package/dist/docs-raw/guides/inspection-bundles.md +44 -442
  45. package/dist/docs-raw/guides/joint-design.md +18 -79
  46. package/dist/docs-raw/guides/positioning.md +21 -143
  47. package/dist/docs-raw/guides/scene-presentation.md +89 -0
  48. package/dist/docs-raw/skills/forgecad-3d-reconstruction.md +25 -111
  49. package/dist/docs-raw/skills/forgecad-blockout-model.md +20 -117
  50. package/dist/docs-raw/skills/forgecad-component-model.md +23 -107
  51. package/dist/docs-raw/skills/forgecad-high-level-spec.md +47 -155
  52. package/dist/docs-raw/skills/forgecad-image-replicator.md +26 -143
  53. package/dist/docs-raw/skills/forgecad-lld.md +19 -113
  54. package/dist/docs-raw/skills/forgecad-make-a-model.md +112 -532
  55. package/dist/docs-raw/skills/forgecad-model-grader.md +38 -108
  56. package/dist/docs-raw/skills/forgecad-prepare-prompt.md +24 -211
  57. package/dist/docs-raw/skills/forgecad-project.md +13 -131
  58. package/dist/docs-raw/skills/forgecad-reconstruction-benchmark.md +42 -134
  59. package/dist/docs-raw/skills/forgecad-render-inspect.md +27 -174
  60. package/dist/docs-raw/skills/forgecad-visual-spec.md +32 -112
  61. package/dist/docs-raw/skills/forgecad.md +19 -18
  62. package/dist/docs-raw/skills/index.md +2 -0
  63. package/dist/docs-raw/welcome.md +2 -2
  64. package/dist/index.html +1 -1
  65. package/dist/llms.txt +1 -2
  66. package/dist/sitemap.xml +13 -13
  67. package/dist-cli/{check-compiler-SYQ2PWOB.js → check-compiler-JTVBITCR.js} +1 -1
  68. package/dist-cli/{check-query-propagation-HIAGV62W.js → check-query-propagation-3FFLSMVN.js} +1 -1
  69. package/dist-cli/{chunk-SPZE3DUY.js → chunk-OAN5T4XD.js} +4412 -2212
  70. package/dist-cli/forgecad.js +507 -179
  71. package/dist-skill/CONTEXT.md +2172 -8377
  72. package/dist-skill/SKILL.md +15 -15
  73. package/dist-skill/docs/API/core/concepts.md +27 -157
  74. package/dist-skill/docs/CLI.md +63 -241
  75. package/dist-skill/docs/generated/assembly.md +138 -549
  76. package/dist-skill/docs/generated/core.md +277 -1251
  77. package/dist-skill/docs/generated/curves.md +387 -1609
  78. package/dist-skill/docs/generated/lib.md +227 -85
  79. package/dist-skill/docs/generated/output.md +38 -73
  80. package/dist-skill/docs/generated/runtime-names.md +16 -21
  81. package/dist-skill/docs/generated/sdf.md +68 -284
  82. package/dist-skill/docs/generated/sheet-metal.md +68 -335
  83. package/dist-skill/docs/generated/sketch.md +240 -1160
  84. package/dist-skill/docs/generated/viewport.md +75 -223
  85. package/dist-skill/docs/generated/wood.md +21 -49
  86. package/dist-skill/docs/guides/coordinate-system.md +4 -42
  87. package/dist-skill/docs/guides/inspection-bundles.md +44 -442
  88. package/dist-skill/docs/guides/joint-design.md +18 -79
  89. package/dist-skill/docs/guides/positioning.md +21 -143
  90. package/dist-skill/docs/guides/scene-presentation.md +89 -0
  91. package/dist-skill/docs/guides/surface-members.md +26 -0
  92. package/dist-skill/library/forgecad-3d-reconstruction/SKILL.md +23 -111
  93. package/dist-skill/library/forgecad-blockout-model/SKILL.md +18 -117
  94. package/dist-skill/library/forgecad-component-model/SKILL.md +21 -107
  95. package/dist-skill/library/forgecad-high-level-spec/SKILL.md +45 -155
  96. package/dist-skill/library/forgecad-image-replicator/SKILL.md +24 -143
  97. package/dist-skill/library/forgecad-lld/SKILL.md +17 -113
  98. package/dist-skill/library/forgecad-make-a-model/SKILL.md +110 -532
  99. package/dist-skill/library/forgecad-model-grader/SKILL.md +36 -108
  100. package/dist-skill/library/forgecad-prepare-prompt/SKILL.md +35 -224
  101. package/dist-skill/library/forgecad-prepare-prompt/references/default-profiles.md +43 -271
  102. package/dist-skill/library/forgecad-prepare-prompt/references/master-prompt.md +30 -99
  103. package/dist-skill/library/forgecad-project/SKILL.md +13 -133
  104. package/dist-skill/library/forgecad-reconstruction-benchmark/SKILL.md +29 -123
  105. package/dist-skill/library/forgecad-render-inspect/SKILL.md +25 -174
  106. package/dist-skill/library/forgecad-visual-spec/SKILL.md +30 -111
  107. package/dist-skill/website/skills/forgecad-3d-reconstruction.md +58 -0
  108. package/dist-skill/website/skills/forgecad-blockout-model.md +49 -0
  109. package/dist-skill/website/skills/forgecad-component-model.md +53 -0
  110. package/dist-skill/website/skills/forgecad-high-level-spec.md +101 -0
  111. package/dist-skill/website/skills/forgecad-image-replicator.md +63 -0
  112. package/dist-skill/website/skills/forgecad-lld.md +41 -0
  113. package/dist-skill/website/skills/forgecad-make-a-model.md +186 -0
  114. package/dist-skill/website/skills/forgecad-model-grader.md +82 -0
  115. package/dist-skill/website/skills/forgecad-prepare-prompt.md +63 -0
  116. package/dist-skill/website/skills/forgecad-project.md +26 -0
  117. package/dist-skill/website/skills/forgecad-reconstruction-benchmark.md +60 -0
  118. package/dist-skill/website/skills/forgecad-render-inspect.md +80 -0
  119. package/dist-skill/website/skills/forgecad-visual-spec.md +71 -0
  120. package/dist-skill/website/skills/forgecad.md +122 -0
  121. package/dist-skill/website/skills/index.md +26 -0
  122. package/examples/api/comparison-imported-sphere-candidate.forge.js +1 -1
  123. package/examples/api/conformal-product-ribbon.forge.js +1 -1
  124. package/examples/api/exact-sheet-shell-assembly.forge.js +1 -1
  125. package/examples/api/extrude-options.forge.js +4 -2
  126. package/examples/api/field-loft-drive-tip.forge.js +40 -0
  127. package/examples/api/guided-loft-olive-oil-bottle.forge.js +1 -1
  128. package/examples/api/highlight-debug.forge.js +10 -10
  129. package/examples/api/mesh-import-slats.forge.js +1 -1
  130. package/examples/api/real-product-curves.forge.js +1 -1
  131. package/examples/api/sculpt-box-circle-booleans.forge.js +1 -1
  132. package/examples/api/sdf-shapes.forge.js +2 -5
  133. package/examples/api/sketch-rounding-strategies.forge.js +6 -6
  134. package/examples/api/surface-member-bottle-cage.forge.js +3 -3
  135. package/examples/api/surface-member-conformal-product-ribbon.forge.js +3 -3
  136. package/examples/api/surface-member-razor-inlay.forge.js +1 -1
  137. package/examples/api/variable-sweep-test.forge.js +3 -3
  138. package/examples/mechanical/airplane-propeller.forge.js +74 -39
  139. package/examples/nurbs-surface.forge.js +1 -1
  140. package/examples/products/iphone.forge.js +1 -1
  141. package/package.json +1 -1
  142. package/dist/assets/EditorApp-BHMQlJ-D.js +0 -14686
  143. package/dist/docs-raw/guides/geometry-conventions.md +0 -52
  144. package/dist/docs-raw/guides/modeling-recipes.md +0 -78
  145. package/dist-skill/docs/guides/geometry-conventions.md +0 -52
  146. package/dist-skill/docs/guides/modeling-recipes.md +0 -78
  147. package/dist-skill/library/forgecad-visual-spec/references/prompt-template.md +0 -79
@@ -5,7 +5,7 @@ skill-order: 1
5
5
 
6
6
  # ForgeCAD CLI
7
7
 
8
- Create projects, open local studios, run, inspect, export, publish, and sync `.forge.js` models from your terminal. Core workflows are included with a free ForgeCAD account; advanced exports and rendering are Pro.
8
+ Create projects, open local studios, run, inspect, export, publish, and sync `.forge.js` models from your terminal. Licensing tiers are summarized once in [Setup & Licensing](#setup--licensing).
9
9
 
10
10
  ## Quick Start
11
11
 
@@ -32,7 +32,7 @@ forgecad project push
32
32
  forgecad project open
33
33
  ```
34
34
 
35
- Local modeling, inspection, export, and skill-install commands do not require a ForgeCAD account. Hosted project sync, publishing, token management, and license activation require sign-in. Run `forgecad login` and choose email/password or API token when prompted. Use `FORGECAD_TOKEN=fc_pat_... forgecad <hosted-command>` only for CI/CD and one-off automation. `forgecad studio` always requires an explicit project path; use `.` for the current project.
35
+ Local modeling, inspection, export, and skill-install commands do not require a ForgeCAD account. Hosted project sync, publishing, token management, and license activation require sign-in: run `forgecad login` and choose email/password or API token (for GitHub/Google accounts, create a token in Settings > API Tokens first). Use `FORGECAD_TOKEN=fc_pat_... forgecad <hosted-command>` only for CI/CD and one-off automation. `forgecad studio` always requires an explicit project path; use `.` for the current project.
36
36
 
37
37
  You can also start from the hosted starter project with `forgecad project clone start-here`, then `cd start-here` and `forgecad studio .`.
38
38
 
@@ -46,9 +46,7 @@ ForgeCAD includes a local editor. Open it around a dedicated project folder, edi
46
46
  | `dev <project-path> [project-path ...]` | Start the Vite dev server for ForgeCAD source development. |
47
47
  | `web` | Start a local dev server in web/playground mode (no filesystem, localStorage only). |
48
48
 
49
- `forgecad studio <project-path>` is the normal installed-CLI command for users. `forgecad dev <project-path>` starts the Vite dev server and is mainly for ForgeCAD source development.
50
-
51
- Keep one long-running `forgecad studio <project-path> [project-path ...]` process open with every active project folder listed in its arguments; the user opens the single printed localhost port once, and AI agents should only create or edit files under those folders so the browser updates live without starting more servers.
49
+ `forgecad studio <project-path>` is the normal installed-CLI command; `forgecad dev` starts the Vite dev server and is mainly for ForgeCAD source development. Keep one long-running `forgecad studio <project-path> [project-path ...]` process open with every active project folder as an argument — the user opens the single printed localhost port once, and AI agents only create or edit files under those folders so the browser updates live without starting more servers.
52
50
 
53
51
  <details>
54
52
  <summary>Common flags for studio / dev</summary>
@@ -70,35 +68,15 @@ Execute scripts and produce images headless — no browser window. Renders use C
70
68
 
71
69
  Execute a Forge script quickly and print the inner-loop build summary: build count, verification results, parameters, and timing.
72
70
 
73
- The fast validation command. Runs your script with the real geometry kernel (no browser needed) and reports whether it built, how many objects came back, any `verify.*` results, parameter values, script logs, and elapsed script time. This is the command agents should run frequently while editing a model.
74
-
75
- **Fast by default** — a bare `forgecad run model.forge.js` does not compute per-object volumes, bounding boxes, construction history, feature tallies, or solver profiles. Those run diagnostics are useful, but they are no longer part of the hot path.
76
-
77
- **Opt-in diagnostics** — use `--details` for volume/bounding-box/object geometry summaries, `--history` for the construction tree, `--features` for feature tallies, or `--solver-profile` for constraint solver timing. Use `inspect fit interference`, `inspect physical gaps`, or `inspect mechanical-integrity --collisions` for spatial and collision evidence.
78
-
79
- **Verification results** — runs any `verify.*` checks in the script and reports pass/fail with expected vs actual values. Verification failures remain non-fatal so the model can still render and be inspected.
80
-
81
- **Physical connectivity** — pass `--connectivity` to list physically connected components across visible objects. Overlapping bbox candidates are checked with exact geometry by default, while bbox-only contact is treated as evidence rather than proof of one connected component. This helps answer whether the model is one continuous assembly or several separate islands.
71
+ The fast validation command: runs the script with the real geometry kernel (no browser) and reports build status, object count, `verify.*` pass/fail with expected vs actual values (non-fatal — the model still renders), parameter values, script logs, and timing. Run it frequently while editing.
82
72
 
83
- **Quality preset**pass `--quality live|default|high` to select the same geometry quality profile used by the editor and export tools. `live` is the fastest preset for large audit models.
73
+ A bare `forgecad run` skips expensive diagnostics. Opt in with `--details` (volumes/bounds), `--history` (construction tree), `--features` (feature tallies), `--solver-profile` (constraint solver timing), or `--connectivity` (physical connected components bbox contact is evidence, exact geometry is checked by default). `--quality live|default|high` selects the same geometry quality profile as the editor and export tools; `live` is fastest for large models.
84
74
 
85
- **Direct CAD inputs** pass `.stl`, `.obj`, `.3mf`, `.step`, or `.stp` directly when you just want to inspect an external asset. Mesh files are imported with `importMesh(...)`; STEP/STP files are imported with `importStep(...)` and auto-select OCCT unless you pass `--backend`.
86
-
87
- For deeper confidence gates, prefer `forgecad inspect mechanical-integrity`, `forgecad check print`, or targeted evidence commands such as `forgecad inspect fit interference` instead of turning `run` back into a catch-all audit command.
75
+ Direct `.stl`/`.obj`/`.3mf`/`.step`/`.stp` inputs are imported automatically; STEP/STP auto-selects OCCT unless you pass `--backend`. For deeper confidence gates, prefer `inspect mechanical-integrity`, `check print`, or `inspect fit interference` instead of turning `run` into a catch-all audit command.
88
76
 
89
77
  ```bash
90
- forgecad run examples/api/static-assembly-connectors.forge.js
91
- forgecad run examples/api/static-assembly-connectors.forge.js --focus
92
- forgecad run examples/api/static-assembly-connectors.forge.js --focus "Bench.Slat*"
93
- forgecad run examples/api/static-assembly-connectors.forge.js --hide "Bench.Slat0,Bench.Slat1"
94
- forgecad run examples/api/static-assembly-connectors.forge.js --details --history
95
- forgecad run examples/products/cup.forge.js --connectivity
96
- forgecad run examples/products/cup.forge.js --journeys
97
- forgecad run examples/products/cup.forge.js --backend occt
98
- forgecad run examples/products/cup.forge.js --backend truck --quality live
99
- forgecad run examples/products/cup.forge.js --debug-imports
100
- forgecad run examples/products/cup.forge.js -p "Wall Thickness=3" -p "Body Height=200"
101
- forgecad run examples/constraints/06-complex-spectrogram.forge.js --solver-debug-out tmp/spectrogram-debug
78
+ forgecad run model.forge.js
79
+ forgecad run model.forge.js --details --history
102
80
  ```
103
81
 
104
82
  ### `forgecad ls`
@@ -110,11 +88,8 @@ Runs the model headlessly and prints the exact object paths that CLI tools can t
110
88
  The default output is a compact line-oriented list. Use `--tree` for an indented hierarchy, `--long` for geometry metrics, or `--json` for automation.
111
89
 
112
90
  ```bash
113
- forgecad ls examples/api/static-assembly-connectors.forge.js
114
- forgecad ls examples/api/static-assembly-connectors.forge.js --tree
115
- forgecad ls examples/api/static-assembly-connectors.forge.js Bench
116
- forgecad ls examples/api/static-assembly-connectors.forge.js "Bench/Slat0" --long
117
- forgecad ls examples/api/static-assembly-connectors.forge.js --json
91
+ forgecad ls model.forge.js
92
+ forgecad ls model.forge.js --tree
118
93
  ```
119
94
 
120
95
  ### `forgecad show`
@@ -126,37 +101,23 @@ The main quick visual path for agents. Pass a model and, optionally, a target pa
126
101
  Without a target, `show` renders the whole scene and behaves like a shorter, intent-first wrapper around `render 3d`.
127
102
 
128
103
  ```bash
129
- forgecad show examples/api/static-assembly-connectors.forge.js
130
- forgecad show examples/api/static-assembly-connectors.forge.js Bench
131
- forgecad show examples/api/static-assembly-connectors.forge.js "Bench/Slat0" --from front --out slat-front.png
132
- forgecad show model.forge.js --camera "proj=perspective;pos=200,-160,120;target=0,0,20;up=0,0,1;fov=38"
104
+ forgecad show model.forge.js
105
+ forgecad show model.forge.js Bench
133
106
  ```
134
107
 
135
108
  ### Object Filtering: `--focus` and `--hide`
136
109
 
137
- Several CLI commands can filter the visible object set without changing model code: `render 3d`, `render wireframe`, `inspect <family> <mode>`, `capture`, and `check print`.
138
-
139
- Use `forgecad ls model.forge.js` to list exact object paths quickly, then pass those names or globs to `--focus` or `--hide` on render and inspection commands.
110
+ `render 3d`, `render wireframe`, `inspect <family> <mode>`, `capture`, and `check print` can filter the visible object set without changing model code. Use `forgecad ls model.forge.js` to list exact object paths, then pass names or globs:
140
111
 
141
112
  ```bash
142
- forgecad ls examples/api/static-assembly-connectors.forge.js --tree
143
- forgecad render 3d examples/api/static-assembly-connectors.forge.js bench.png --focus "Bench.*"
144
- forgecad render 3d examples/api/static-assembly-connectors.forge.js slats.png --focus "Bench.Slat*"
145
- forgecad inspect fit interference examples/api/static-assembly-connectors.forge.js --focus "Bench.*"
146
- forgecad inspect visual objects examples/api/static-assembly-connectors.forge.js --hide "Bench.Slat0,Bench.Slat1" --camera iso
113
+ forgecad render 3d model.forge.js bench.png --focus "Bench.*"
114
+ forgecad inspect visual objects model.forge.js --hide "Bench.Slat0,Bench.Slat1" --camera iso
147
115
  ```
148
116
 
149
- Rules:
150
-
151
- - A bare `--focus` hides mock objects and keeps real objects.
152
- - `--focus name1,name2` renders only matching objects.
153
- - `--hide name1,name2` removes matching objects from the visible scene.
154
- - Matching is case-insensitive and supports `*` / `?` globs.
155
- - `--focus` and `--hide` are mutually exclusive.
156
- - Filtering happens after the script runs; it does not avoid evaluating the full model.
157
- - Filtering works on returned object names. For grouped children, use concrete child names or globs like `Bench.*`.
158
- - If a model unions many parts into one returned shape, the original parts cannot be isolated by CLI filtering.
159
- - Filtered renders fail when no renderable objects remain, and exact cameras report visible objects that are partially or fully outside the camera frame.
117
+ - `--focus name1,name2` shows only matching objects; a bare `--focus` (no value) hides mock objects and keeps real ones.
118
+ - `--hide name1,name2` removes matching objects. `--focus` and `--hide` are mutually exclusive.
119
+ - Matching is case-insensitive with `*` / `?` globs against returned object names — use child names or globs like `Bench.*` for grouped children. Parts unioned into one returned shape cannot be isolated.
120
+ - Filtering happens after the script runs (the full model is always evaluated). Filtered renders fail when no renderable objects remain, and exact cameras report visible objects partially or fully outside the frame.
160
121
 
161
122
  ### `forgecad inspect`
162
123
 
@@ -181,49 +142,20 @@ Inspect a model by asking for one explicit kind of evidence.
181
142
  ```bash
182
143
  forgecad inspect history main.forge.js --object "Left Leg" --level object
183
144
  forgecad inspect design-trace main.forge.js --query feature:hole
184
- forgecad inspect fit interference main.forge.js --camera iso
185
- forgecad inspect visual cutaway main.forge.js --plane yz
186
- forgecad inspect visual objects main.forge.js --camera front --camera right
187
- forgecad inspect manufacture thickness main.forge.js --min 1.6 --warn 2.4
188
- forgecad inspect section main.forge.js --plane yz --ray bore:-20,0:20,0
189
- forgecad inspect replay outputs/inspect/<probe>/result.json --source candidate.forge.js
190
- forgecad inspect sections at main.forge.js --plane yz --offset 12.5
191
- forgecad inspect sections stack main.forge.js --plane yz --every 1
192
- forgecad inspect compare overlay candidate.forge.js --with reference.3mf
193
145
  ```
194
146
 
195
147
  ### `forgecad inspect sketch`
196
148
 
197
149
  Inspect returned sketches and profile regions used by returned shapes.
198
150
 
199
- Runs a model and reports inspectable 2D sketch/profile regions without requiring model code to register inspection hooks. The command inspects returned Sketch objects and profile-bearing shape compile plans such as extrude, cut, and revolve. Use `--seed x,y` to dry-run which region a point selector would consume, and `--operation extrude` to check extrusion compatibility.
151
+ External inspection: runs the model, then reads returned `Sketch`/`ConstraintSketch` objects and profile-bearing shape compile plans (extrude, cut, revolve) — model code never calls an inspection API. Reports filled selectable regions (sorted largest-first, run-local ids like `R0`) and excluded hole interiors. `--seed x,y` is the stable selection mechanism (not region ids): it dry-runs which region a point selector would consume, and seed failures exit nonzero (outside every region, on a boundary, inside a hole, ambiguous, or incompatible operation). `--operation extrude` checks only whether the selected filled region can be consumed by extrusion.
200
152
 
201
153
  ```bash
202
- forgecad inspect sketch examples/api/sketch-regions.forge.js
203
- forgecad inspect sketch model.forge.js --object "Profile" --seed 45,15
154
+ forgecad inspect sketch model.forge.js
204
155
  forgecad inspect sketch model.forge.js --json --object "Body" --seed 45,15 --operation extrude
205
156
  ```
206
157
 
207
- `inspect sketch` is external inspection: it runs the script, then reads returned scene objects and shape compile plans. Model code should not call an inspection API. It reports selectable 2D `regions` from returned `Sketch` / `ConstraintSketch` objects and from profile-bearing returned shapes (`extrude.profile`, `cut.profile`, `revolve.profile`).
208
-
209
- JSON contract: `targets[]` are inspectable sketches/profile uses; `regions[]` are filled selectable areas sorted largest-first with run-local ids like `R0`; `holes[]` are excluded interiors; `selection` is present only with `--seed`; `profileTree` is compile-plan provenance, not JavaScript variable names. Stable selection v1 is `--seed x,y`, not region id.
210
-
211
- Seed failures are explicit and exit nonzero when no target matches: outside every region, on a boundary, inside a hole, ambiguous, no regions, or incompatible operation. `--operation extrude` only checks whether the selected filled region can be consumed by extrusion; open path/rail selection is intentionally unsupported in v1.
212
-
213
- | Command | Description |
214
- |---------|-------------|
215
- | `inspect sketch` | Inspect returned sketches and profile regions used by returned shapes. |
216
- | `inspect visual image` | Capture standard shaded viewport evidence. |
217
- | `inspect visual objects` | Capture object identity evidence. |
218
- | `inspect section` | Run one exact section probe with optional ray rulers. |
219
- | `inspect replay` | Replay a saved section inspection result on a source model. |
220
- | `inspect fit interference` | Capture positive-volume interference evidence. |
221
- | `inspect manufacture thickness` | Capture wall-thickness evidence. |
222
- | `inspect sections at` | Capture one exact section at a plane offset. |
223
- | `inspect sections stack` | Capture periodic physical section slices. |
224
- | `inspect sections sample` | Capture a fixed number of representative section slices. |
225
- | `inspect compare overlay` | Capture candidate-vs-reference comparison evidence. |
226
- | `inspect evidence` | List available inspect commands. |
158
+ The full `inspect sketch` JSON contract (`targets[]`/`regions[]`/`holes[]`/`selection`/`profileTree` semantics) lives in [guides/inspection-bundles.md](guides/inspection-bundles.md).
227
159
 
228
160
  ### `forgecad render`
229
161
 
@@ -239,43 +171,23 @@ Render a Forge scene. Use a subcommand — `3d`, `views`, `section`, `wireframe`
239
171
  - `render hq` — path-traced via Blender Cycles, for documentation and marketing shots
240
172
 
241
173
  ```bash
242
- forgecad render 3d examples/products/cup.forge.js
243
- forgecad inspect fit interference examples/api/static-assembly-connectors.forge.js --camera iso
244
- forgecad render views examples/products/cup.forge.js
245
- forgecad render wireframe examples/products/cup.forge.js
246
- forgecad render section examples/furniture/01-table.forge.js --plane XZ
247
- forgecad render hq examples/products/cup.forge.js --preset dramatic
174
+ forgecad render 3d model.forge.js
175
+ forgecad render section model.forge.js --plane XZ
248
176
  ```
249
177
 
250
178
  ### `forgecad render 3d`
251
179
 
252
180
  Render a Forge scene to PNG using the real viewport renderer.
253
181
 
254
- Launches a headless Chrome instance, renders the scene with the same WebGL viewport as the editor, and saves a PNG. The output path defaults to `<script-name>.png` next to the input file. Each render uses a private renderer server by default, so parallel renders do not compete for the same Vite port.
255
-
256
- The input can be a `.forge.js` script or a direct `.stl`, `.obj`, `.3mf`, `.step`, or `.stp` asset. Direct STEP/STP rendering auto-selects OCCT unless you pass `--backend`.
257
-
258
- Use `--focus` to isolate specific parts (hides everything else) or `--hide` to remove clutter like mock objects. The `--view` flag selects a named camera declared in `scene({ views })`. The `--camera` flag accepts built-in views (`front`, `top`, `iso`), `azimuth:elevation` angles, or an exact `proj/pos/target/up/fov` camera spec — pass `--camera` multiple times to render several viewpoints in one run. Use `--camera-json <file>` or `--scene <file>` for exact reproducible viewport cameras without shell escaping. Filtered renders report any visible objects whose bounding boxes are partially or fully outside the camera frame; exact cameras fail when they frame none of the visible objects.
182
+ Launches headless Chrome, renders the scene with the same WebGL viewport as the editor, and saves a PNG. The output path defaults to `<script-name>.png` next to the input; the input can be a `.forge.js` script or a direct `.stl`/`.obj`/`.3mf`/`.step`/`.stp` asset.
259
183
 
260
- Use `--edges=<off|thin|bold>` to control the edge overlay. For a pure wireframe look, use `render wireframe` instead.
184
+ `--camera` accepts built-in views (`front`, `top`, `iso`), `azimuth:elevation` angles, or an exact `proj/pos/target/up/fov` camera spec — pass it multiple times to render several viewpoints in one run. `--view` selects a named camera declared in `scene({ views })`; `--camera-json <file>` or `--scene <file>` give exact reproducible cameras without shell escaping. `--focus`/`--hide` filter visible objects; `--edges=<off|thin|bold>` controls the edge overlay.
261
185
 
262
- This is the standard way to visually verify geometry from the CLI or in agent workflows. For higher quality (path-traced, materials, HDRI lighting), use `render hq` instead.
186
+ This is the standard way to visually verify geometry from the CLI or in agent workflows. For path-traced quality use `render hq`; for edges only use `render wireframe`.
263
187
 
264
188
  ```bash
265
- forgecad render 3d examples/products/cup.forge.js
266
- forgecad render 3d examples/api/static-assembly-connectors.forge.js --focus
267
- forgecad render 3d examples/api/static-assembly-connectors.forge.js --focus "Bench.Slat*"
268
- forgecad render 3d examples/api/static-assembly-connectors.forge.js --hide "Bench.Slat0,Bench.Slat1"
269
- forgecad render 3d model.forge.js --view hero
270
- forgecad render 3d model.forge.js --camera 45:30
271
- forgecad render 3d model.forge.js --camera "proj=perspective;pos=200,-160,120;target=0,0,20;up=0,0,1;fov=38"
272
- forgecad render 3d model.forge.js --camera-json camera.json
273
- forgecad render 3d model.forge.js --scene scene.json
274
- forgecad render 3d model.forge.js --camera front --camera side
275
- forgecad render 3d model.forge.js -p "Wall Thickness=3"
276
- forgecad render 3d model.forge.js --edges bold
277
- forgecad render 3d model.forge.js --edges off
278
- forgecad render 3d bracket.3mf bracket.png
189
+ forgecad render 3d model.forge.js
190
+ forgecad render 3d model.forge.js --camera front --camera side --edges bold
279
191
  ```
280
192
 
281
193
  ### `forgecad render views`
@@ -296,138 +208,77 @@ Render a Forge scene as a wireframe (edges only, no shading).
296
208
  Same as `render 3d` but renders only the edge geometry — no shaded surfaces. Useful for construction-style documentation or highlighting structural features without material detail.
297
209
 
298
210
  ```bash
299
- forgecad render wireframe examples/products/cup.forge.js
300
- forgecad render wireframe examples/products/cup.forge.js --camera iso
211
+ forgecad render wireframe model.forge.js
212
+ forgecad render wireframe model.forge.js --camera iso
301
213
  ```
302
214
 
303
215
  ### `forgecad render hq` **\[Pro\]**
304
216
 
305
217
  High-quality render via Blender Cycles — path-traced, HDRI, material presets.
306
218
 
307
- Exports the scene to Blender and renders with Cycles (path tracer). Requires Blender installed and on PATH.
219
+ Exports the scene to Blender and renders with Cycles (path tracer); requires Blender on PATH. Output defaults to `<script-name>-hq.png`.
308
220
 
309
- Choose a `--preset` for the look: `studio` (neutral product shot), `dramatic` (high-contrast), `clay` (matte, no color), `glass`, `metallic`, `toon`, `xray`, `normals`, `silhouette`, and more. Control quality vs speed with `--samples` (default 256). Use `--view`, `--camera`, `--camera-json`, or `--scene <file>` for still camera control, matching `render 3d`. Use `--transparent` for a transparent background (compositing-ready).
310
-
311
- Output defaults to `<script-name>-hq.png`. Great for documentation, marketing renders, and social media.
221
+ `--preset` picks the look (`studio`, `dramatic`, `clay`, `glass`, `metallic`, `toon`, `xray`, `normals`, `silhouette`, and more); `--samples` (default 256) trades quality vs speed; `--transparent` gives a compositing-ready background. Camera control (`--view`, `--camera`, `--camera-json`, `--scene <file>`) matches `render 3d`.
312
222
 
313
223
  ```bash
314
- forgecad render hq examples/products/cup.forge.js
315
- forgecad render hq examples/products/cup.forge.js hero.png --preset dramatic --samples 1024
316
- forgecad render hq examples/products/cup.forge.js hero.png --view hero
317
- forgecad render hq examples/products/cup.forge.js hero.png --camera-json camera.json
318
- forgecad render hq examples/products/cup.forge.js --preset clay --size 2048
319
- forgecad render hq examples/products/cup.forge.js --transparent --preset glass
224
+ forgecad render hq model.forge.js
225
+ forgecad render hq model.forge.js hero.png --preset dramatic --samples 1024
320
226
  ```
321
227
 
322
228
  ### `forgecad capture gif|mp4` **\[Pro\]**
323
229
 
324
230
  Animated orbit, section sweep, or named joint playback.
325
231
 
326
- Renders an animated sequence by either orbiting the camera around the model or playing back a named joint animation. Use `--capture orbit` (default) for a turntable rotation, `--capture animation --animation <name>` to play a named joint clip, or `--capture section-sweep` to move a clipping plane through the model. Supports `--cut-plane` to animate with a static cross-section visible. Use `--view`, `--camera`, `--camera-json`, or `--scene <file>` to choose the orbit base camera or the fixed camera for animations and section sweeps.
232
+ Renders an animated sequence: `--capture orbit` (default) for a turntable, `--capture animation --animation <name>` for a named joint clip, or `--capture section-sweep` to move a clipping plane through the model. `--cut-plane` keeps a static cross-section visible while animating; the orbit base or fixed camera comes from `--view`, `--camera`, `--camera-json`, or `--scene <file>`.
327
233
 
328
234
  ```bash
329
- forgecad capture gif examples/products/cup.forge.js
330
- forgecad capture gif examples/3d-printer.forge.js out/section.gif --cut-plane "Front Section"
331
- forgecad capture gif model.forge.js out/raw.gif --param "Output=raw-sdf"
332
- forgecad capture gif model.forge.js out/front.gif --camera front
333
- forgecad capture gif model.forge.js out/hero.gif --view hero
334
- forgecad capture gif examples/3d-printer.forge.js out/sweep.gif --capture section-sweep --sweep-plane YZ
335
- forgecad capture mp4 examples/products/cup.forge.js
336
- forgecad capture mp4 examples/api/assembly-kinematics-four-bar.forge.js out/four-bar.mp4 --view iso
337
- forgecad capture mp4 model.forge.js out/raw.mp4 --param "Output=raw-sdf"
338
- forgecad capture mp4 model.forge.js out/front.mp4 --camera front
339
- forgecad capture mp4 model.forge.js out/hero.mp4 --view hero
340
- forgecad capture mp4 examples/3d-printer.forge.js out/sweep.mp4 --capture section-sweep --sweep-plane YZ --sweep-frames 180
235
+ forgecad capture gif model.forge.js
236
+ forgecad capture gif model.forge.js out/sweep.gif --capture section-sweep --sweep-plane YZ
341
237
  ```
342
238
 
343
239
  ### `forgecad render section`
344
240
 
345
241
  Render a 2D cross-section of a 3D model (cut by a plane) to SVG or PNG.
346
242
 
347
- Cuts all shapes in the scene with an axis-aligned plane and produces a 2D cross-section drawing. The default plane is XY at Z=0. Use `--plane XZ` or `--plane YZ` for other orientations, and `--offset` to shift the cut position.
348
-
349
- Output format is determined by the file extension: `.svg` (default, vector) or `.png` (rasterized at `--size` pixels). Use `--edges=<off|thin|bold>` to control the outline stroke on cut shapes.
350
-
351
- Useful for verifying internal geometry, wall thicknesses, and fit checks that aren't visible in 3D renders.
243
+ Cuts all shapes with an axis-aligned plane (default XY at Z=0; `--plane XZ|YZ` reorients, `--offset` shifts the cut) and writes a 2D cross-section drawing. The file extension picks the format: `.svg` (default, vector) or `.png` (rasterized at `--size` pixels); `--edges=<off|thin|bold>` sets the outline stroke. Useful for verifying internal geometry, wall thicknesses, and fits that aren't visible in 3D renders.
352
244
 
353
245
  ```bash
354
- forgecad render section examples/furniture/01-table.forge.js
355
- forgecad render section examples/furniture/01-table.forge.js out/section.svg --plane XZ --offset 10
356
- forgecad render section examples/furniture/01-table.forge.js out/section.png --size 2048
357
- forgecad render section examples/furniture/01-table.forge.js out/bold.svg --edges bold
246
+ forgecad render section model.forge.js
247
+ forgecad render section model.forge.js out/section.svg --plane XZ --offset 10
358
248
  ```
359
249
 
360
250
  | Command | Description |
361
251
  |---------|-------------|
362
252
  | `render sketch` | Render a 2D sketch .forge.js to PNG. |
363
253
 
364
- <details>
365
- <summary>All render / capture flags</summary>
254
+ ### Behavioral notes
255
+
256
+ - Each render starts a private renderer server by default, so parallel renders do not collide. When sharing one server via `--port`, run renders sequentially — concurrent renders against a shared Vite server race and time out.
257
+ - Direct `.step` / `.stp` inputs auto-select the OCCT backend unless `--backend` is passed.
258
+ - Passing `--camera` several times writes one PNG per camera named `<output>_<camera>.png`; a single camera writes exactly the given output path. If a multi-camera run does not emit the PNGs you expect, rerun one camera at a time with explicit output paths.
259
+
260
+ ### Cross-cutting flags
261
+
262
+ These flags work across run / render / capture / inspect commands:
366
263
 
367
264
  | Option | Description |
368
265
  |--------|-------------|
369
266
  | `--param <Key=Value>` | Override a parameter value (Key=Value). Repeatable. |
370
- | `-p <Key=Value>` | Shorthand for --param |
371
267
  | `--joint <JointName=Value>` | Override a Motion tab joint value (JointName=Value). Repeatable. |
372
268
  | `--focus <names>` | Focus: no arg hides mocks; comma-separated names/globs show only those |
373
269
  | `--hide <names>` | Hide comma-separated object names/globs |
374
270
  | `--camera <front\|back\|side\|right\|top\|iso\|az:el\|az:el:dist\|spec>` | Camera preset, spherical (az:el), or full spec such as `proj=perspective;pos=x,y,z;target=x,y,z;up=x,y,z;fov=45`. Repeatable. |
375
- | `--camera-json <file>` | Exact viewport camera JSON file |
376
271
  | `--view <name>` | Named camera view declared by the model with scene({ views }) |
377
272
  | `--size <px>` | Image size in pixels |
378
- | `--scene <json\|file>` | Viewport scene state JSON or JSON file |
379
- | `--background <color>` | Canvas background override |
380
- | `--render-mode <solid\|wireframe>` | Shaded solid (default) or wireframe only |
381
- | `--edges <off\|thin\|bold>` | Edge overlay preset in solid mode (default: off) |
382
- | `--render-style <classic\|studio\|fast\|glass\|inspection\|contour\|scan>` | Visual render style (render default: classic; inspect default: inspection) |
383
- | `--scan-granularity <12-144>` | Scan cells across the scene longest axis |
384
- | `--port <n>` | Renderer server port |
385
- | `--fresh-server` | Start a fresh renderer instead of reusing an existing one |
386
- | `--chrome-path <path>` | Chrome or Chromium executable path |
387
- | `--output <path>` | Output file path |
388
- | `--json` | Print machine-readable JSON |
389
273
  | `--quality <default\|live\|high>` | Mesh quality preset |
390
- | `--backend <manifold\|occt\|truck>` | Geometry backend (default: manifold) |
391
- | `--preset <name>` | Material/lighting preset |
392
- | `--width <px>` | Output width in pixels |
393
- | `--height <px>` | Output height in pixels |
394
- | `--samples <n>` | Render samples (more = higher quality, slower) |
395
- | `--engine <cycles\|eevee>` | Render engine |
396
- | `--transparent` | Transparent background (RGBA) |
397
- | `--no-denoise` | Disable denoising |
398
- | `--hdri <path.hdr>` | Custom HDRI environment map path |
399
- | `--video` | Render orbit turntable video (MP4) |
400
- | `--frames <n>` | Video frames per revolution |
401
- | `--fps <n>` | Video frame rate |
402
- | `--pitch <deg>` | Camera pitch angle in degrees |
403
- | `--format <gif\|mp4>` | Output format |
404
- | `--capture <orbit\|animation\|section-sweep>` | Capture preset |
405
- | `--animation <name>` | Named joint animation clip |
406
- | `--animation-loops <n>` | Repeat the selected animation clip |
407
- | `--cut-plane <name>` | Enable a named cut plane |
408
- | `--sweep-plane <XY\|XZ\|YZ>` | Moving plane for section-sweep |
409
- | `--sweep-normal <x,y,z>` | Custom section-sweep normal |
410
- | `--sweep-from <min\|max\|offset>` | Section-sweep start offset |
411
- | `--sweep-to <min\|max\|offset>` | Section-sweep end offset |
412
- | `--sweep-padding <n>` | Auto sweep range padding in model units |
413
- | `--sweep-frames <n>` | Moving frames for section-sweep |
414
- | `--sweep-ease <linear\|smoothstep>` | Section-sweep interpolation |
415
- | `--section-style <hatched\|clean>` | Section cap style for sweep captures |
416
- | `--wireframe-pass` | Enable an extra wireframe pass (off by default) |
417
- | `--no-wireframe-pass` | Disable the extra wireframe pass |
418
- | `--pixel-ratio <n>` | Render supersampling factor |
419
- | `--frames-per-turn <n>` | Frames for one orbit turn |
420
- | `--hold-frames <n>` | Freeze frames before each pass |
421
- | `--encoder <auto\|ffmpeg\|js>` | GIF encoder strategy |
422
- | `--crf <n>` | ffmpeg/libx264 quality |
423
- | `--ffmpeg-path <path>` | ffmpeg executable path |
424
- | `--list` | Print available animations and cut planes |
274
+ | `--backend <manifold\|occt\|truck>` | Geometry backend (default: manifold; STEP inputs default to OCCT) |
275
+ | `--json` | Print machine-readable JSON |
425
276
 
426
- </details>
277
+ Every command has more — Blender-only `render hq` flags (`--preset`, `--samples`, `--engine`, `--hdri`, `--transparent`, `--video`) and capture-only flags (`--capture`, `--animation`, `--cut-plane`, `--sweep-*`, `--fps`) among them. Run `forgecad <command> --help` for the full list.
427
278
 
428
279
  ## Export
429
280
 
430
- Export to every format you need. Export actions are free to run for personal non-commercial use; Pro covers human-operated commercial CAD work, and Enterprise covers backend or embedded application usage.
281
+ Export to every format you need.
431
282
 
432
283
  | Command | Format | Use case |
433
284
  |---------|--------|----------|
@@ -443,13 +294,12 @@ Export to every format you need. Export actions are free to run for personal non
443
294
  | `export urdf` **\[Production\]** | URDF package | ROS / PyBullet / MuJoCo |
444
295
  | `export report` **\[Production\]** | PDF report | Multi-view report with BOM and dimensions |
445
296
  | `export cutting-layout` **\[Production\]** | PDF/DXF | Sheet cutting layout with cut sequence |
446
- | `link` | URL | Generate a ForgeCAD share link from a GitHub Gist URL or ID and copy it to clipboard. |
297
+ | `link` | URL | Share link from a GitHub Gist URL or ID (copied to clipboard) |
447
298
 
448
299
  ```bash
449
300
  # Sheet material
450
- forgecad cut-list examples/api/sheet-stock-cut-list.forge.js
451
- forgecad export cutting-layout examples/api/sheet-stock-cut-list.forge.js --sheet-width 420 --sheet-height 594 --kerf 3
452
- forgecad export cutting-layout examples/api/sheet-stock-cut-list.forge.js out/layout.dxf
301
+ forgecad cut-list shelf.forge.js
302
+ forgecad export cutting-layout shelf.forge.js --sheet-width 420 --sheet-height 594 --kerf 3
453
303
 
454
304
  # 3D printing
455
305
  forgecad check print bracket.forge.js
@@ -492,25 +342,7 @@ A project is a local folder linked to the hosted app by `forgecad.json`. Use `fo
492
342
 
493
343
  Keep the project root small and intentional. Do not run the editor from `~`, downloads, desktop, or a huge source tree. ForgeCAD scans project files such as `.forge.js`, `.js`, `.svg`, and `.dxf`; broad roots make local workflows and AI-agent context slow and confusing.
494
344
 
495
- ### Get started
496
-
497
- ```bash
498
- forgecad login
499
- mkdir spool-adapter
500
- cd spool-adapter
501
- forgecad project init "Spool Adapter"
502
- forgecad new adapter --template part
503
- forgecad studio .
504
-
505
- # or clone an existing hosted project:
506
- forgecad project clone start-here
507
- cd start-here
508
- forgecad studio .
509
- ```
510
-
511
- `forgecad login` asks how you want to sign in, then prompts for either email/password or an API token. If your account was created through GitHub or Google, create an API token in Settings > API Tokens, run `forgecad login`, and choose API token. Use `FORGECAD_TOKEN=fc_pat_...` only for CI/CD and one-off automation.
512
-
513
- `forgecad project init` creates the remote project, writes `forgecad.json`, pushes any existing local source files, and records server file IDs. `forgecad project push` syncs an already initialized project; it does not create a remote project from an arbitrary folder.
345
+ First-time setup (login, init, studio) is the [Quick Start](#quick-start) sequence above. `forgecad project init` creates the remote project, writes `forgecad.json`, pushes any existing local source files, and records server file IDs. `forgecad project push` syncs an already initialized project; it does not create a remote project from an arbitrary folder.
514
346
 
515
347
  ### Sync
516
348
 
@@ -605,13 +437,9 @@ Shares are live references — always the current version, not a snapshot.
605
437
  ForgeCAD files are plain JavaScript. AI coding agents should work inside an initialized project folder, write and iterate on local files, and use the CLI for evidence. See [AI Usage](AI/usage.md) for approved models, project-first setup, installable skills, quality prompts, and completion criteria.
606
438
 
607
439
  ```bash
608
- # Install the full public ForgeCAD skill library
440
+ # Install the full public ForgeCAD skill library (--target claude|opencode for a specific agent)
609
441
  forgecad skill install
610
442
 
611
- # Target a specific local agent skill directory when needed
612
- forgecad skill install --target claude
613
- forgecad skill install --target opencode
614
-
615
443
  # Or export a single context file for chat UIs (Claude.ai, ChatGPT, ...)
616
444
  forgecad skill one-file ~/Desktop/forgecad-context.md
617
445
 
@@ -634,7 +462,6 @@ Runs both inputs headlessly, samples their triangle surfaces, feature edges, bou
634
462
  ```bash
635
463
  forgecad compare 3d reference.stl reconstruction.forge.js
636
464
  forgecad compare 3d reference.step reconstruction.forge.js --json --samples 3000
637
- forgecad compare 3d source.3mf candidate.3mf --align center --tolerance-mm 0.5 --fail-under 90
638
465
  ```
639
466
 
640
467
  ### `forgecad check print`
@@ -646,24 +473,19 @@ Runs a Forge script with the headless kernel and emits a slicer-adjacent printab
646
473
  Checks include script `verify.*` results, exact positive-volume object collisions, physical component count, mesh topology, sampled wall thickness, unsupported overhang budget, and bed-contact area. Use `--json` for automation and `--output` to save the full report while keeping the readable terminal summary.
647
474
 
648
475
  ```bash
649
- forgecad check print examples/api/attachTo-basics.forge.js
650
- forgecad check print examples/api/verification-demo.forge.js --json
651
- forgecad check print model.forge.js --min-wall 1.2 --warn-wall 2
652
- forgecad check print model.forge.js --expect-components 1 -p "Wall Thickness=3"
476
+ forgecad check print model.forge.js
477
+ forgecad check print model.forge.js --json
653
478
  ```
654
479
 
655
480
  ### `forgecad inspect mechanical-integrity`
656
481
 
657
482
  Inspect generated ForgeCAD models for mechanical integrity failures.
658
483
 
659
- Scans a Forge script or a folder of generated projects and runs a mechanical integrity inspection. The inspection flags timeouts, runtime errors, missing `verify.*` checks, missing executed mechanical-interface checks, fragmented named groups, uncontracted manual assemblies, optional positive-volume object collisions, and excessive physical component counts when requested. Markdown details include suggested repair patterns such as connector-authored mates, bolted service covers, pinned levers, captured slides, hinges, clevis joints, retained shafts, and seated bearings. When `--collisions` is enabled, the Markdown details list the largest overlapping object pairs by volume so agents can repair the highest-risk interfaces first. Exact collision checks use a default 40-pair bbox-overlap budget and 30s exact-check time budget; exhausting either budget fails the file instead of silently passing a partial check. Script-authored `console.warn()` diagnostics are reported as warnings; use `verify.*` checks or `console.error()` for gate-failing contracts. Script-side joint sweeps use a separate validation step budget so the gate can keep default geometry quality while failing truncated validation explicitly.
484
+ Scans a Forge script or a folder of generated projects and flags timeouts, runtime errors, missing `verify.*` checks, missing executed mechanical-interface checks, fragmented named groups, uncontracted manual assemblies, and (when requested) positive-volume collisions and excessive physical component counts. Details suggest concrete repair patterns. With `--collisions`, the largest overlapping object pairs are listed by volume so the highest-risk interfaces get repaired first; exhausting the exact-check pair or time budget fails the file instead of silently passing a partial check, and truncated script-side joint-sweep validation fails explicitly. Script `console.warn()` diagnostics are reported as warnings; use `verify.*` checks or `console.error()` for gate-failing contracts.
660
485
 
661
486
  ```bash
662
487
  forgecad inspect mechanical-integrity path/to/generated-models
663
- forgecad inspect mechanical-integrity path/to/model/main.forge.js --min-verifications 2
664
- forgecad inspect mechanical-integrity path/to/model/main.forge.js --collisions
665
- forgecad inspect mechanical-integrity path/to/generated-models --collisions --collision-pair-limit 250
666
- forgecad inspect mechanical-integrity path/to/generated-models --json --timeout-ms 40000 --jobs 4
488
+ forgecad inspect mechanical-integrity model.forge.js --min-verifications 2
667
489
  ```
668
490
 
669
491
  <details>