dsh-cad-harness 0.1.2-preview.1 → 0.2.1-preview.2

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 (175) hide show
  1. package/NOTICE +1 -1
  2. package/README.en.md +48 -28
  3. package/README.md +32 -19
  4. package/docs/TOKEN-BASELINE.json +71 -0
  5. package/docs/TOOL-CONTRACTS.md +146 -33
  6. package/docs/TOOL-SURFACE-MAP.md +101 -0
  7. package/docs/TOOL-SURFACE-V1.json +279 -0
  8. package/docs/en/llm/README.md +75 -0
  9. package/docs/en/llm/assembly.md +293 -0
  10. package/docs/en/llm/cadquery.md +62 -0
  11. package/docs/en/llm/conventions.md +73 -0
  12. package/docs/en/llm/delivery.md +173 -0
  13. package/docs/en/llm/engines.md +97 -0
  14. package/docs/en/llm/library.md +75 -0
  15. package/docs/en/llm/manufacturing.md +178 -0
  16. package/docs/en/llm/modeling.md +89 -0
  17. package/docs/en/llm/processes.md +51 -0
  18. package/docs/en/llm/traps.md +119 -0
  19. package/docs/en/llm/verify.md +365 -0
  20. package/docs/llm/README.md +75 -0
  21. package/docs/llm/assembly.md +269 -0
  22. package/docs/llm/cadquery.md +59 -0
  23. package/docs/llm/conventions.md +75 -0
  24. package/docs/llm/delivery.md +174 -0
  25. package/docs/llm/engines.md +92 -0
  26. package/docs/llm/library.md +71 -0
  27. package/docs/llm/manufacturing.md +232 -0
  28. package/docs/llm/modeling.md +121 -0
  29. package/docs/llm/processes.md +52 -0
  30. package/docs/llm/traps.md +120 -0
  31. package/docs/llm/verify.md +364 -0
  32. package/lib/check-register.js +1580 -0
  33. package/lib/check-register.js.map +7 -0
  34. package/lib/client.js +2617 -354
  35. package/lib/client.js.map +4 -4
  36. package/lib/contract-cli.js +405 -103
  37. package/lib/contract-cli.js.map +4 -4
  38. package/lib/import-run.js +64 -9
  39. package/lib/import-run.js.map +3 -3
  40. package/lib/index.js +9841 -5808
  41. package/lib/index.js.map +4 -4
  42. package/lib/provision.js +1293 -0
  43. package/lib/provision.js.map +7 -0
  44. package/lib/types/client/assembly.d.ts +19 -0
  45. package/lib/types/client/audit-gaps.d.ts +97 -0
  46. package/lib/types/client/bom-csv.d.ts +44 -0
  47. package/lib/types/client/explode.d.ts +35 -0
  48. package/lib/types/client/fit.d.ts +12 -0
  49. package/lib/types/client/free-orbit.d.ts +1 -1
  50. package/lib/types/client/i18n.d.ts +137 -1
  51. package/lib/types/client/measure-families.d.ts +70 -0
  52. package/lib/types/client/mesh-cache.d.ts +16 -0
  53. package/lib/types/client/overlay.d.ts +1 -1
  54. package/lib/types/client/panel.d.ts +70 -0
  55. package/lib/types/client/playback.d.ts +43 -0
  56. package/lib/types/client/project.d.ts +4 -0
  57. package/lib/types/client/section.d.ts +76 -6
  58. package/lib/types/client/shot-caption.d.ts +20 -0
  59. package/lib/types/client/stream-progress.d.ts +27 -0
  60. package/lib/types/client/view-orientation.d.ts +33 -0
  61. package/lib/types/host/appearance-budget.d.ts +13 -0
  62. package/lib/types/host/appearance-delta.d.ts +62 -0
  63. package/lib/types/host/appearance-exposure.d.ts +66 -0
  64. package/lib/types/host/assembly-check.d.ts +8 -0
  65. package/lib/types/host/assembly-contract.d.ts +0 -1
  66. package/lib/types/host/brief-gate.d.ts +7 -0
  67. package/lib/types/host/budget-bootstrap.d.ts +34 -0
  68. package/lib/types/host/cadquery-pack.d.ts +7 -0
  69. package/lib/types/host/check-rerun.d.ts +85 -0
  70. package/lib/types/host/checkers/registry.d.ts +1 -1
  71. package/lib/types/host/checkers/types.d.ts +1 -1
  72. package/lib/types/host/compile.d.ts +8 -0
  73. package/lib/types/host/deliver-audit-value.d.ts +112 -0
  74. package/lib/types/host/deliver-defer.d.ts +7 -0
  75. package/lib/types/host/deliver-plan.d.ts +23 -0
  76. package/lib/types/host/deliver-present.d.ts +19 -0
  77. package/lib/types/host/delivery-audit.d.ts +12 -0
  78. package/lib/types/host/delivery-gate.d.ts +7 -0
  79. package/lib/types/host/delivery-handoff.d.ts +4 -0
  80. package/lib/types/host/delivery-routes.d.ts +1 -0
  81. package/lib/types/host/delivery-state.d.ts +85 -0
  82. package/lib/types/host/design-exceptions.d.ts +24 -0
  83. package/lib/types/host/export-gate.d.ts +12 -0
  84. package/lib/types/host/fluid-jobs.d.ts +39 -0
  85. package/lib/types/host/fluid.d.ts +142 -5
  86. package/lib/types/host/inspect.d.ts +26 -5
  87. package/lib/types/host/legacy-route.d.ts +26 -0
  88. package/lib/types/host/library.d.ts +142 -0
  89. package/lib/types/host/manifest.d.ts +71 -0
  90. package/lib/types/host/parts.d.ts +38 -0
  91. package/lib/types/host/present-gate.d.ts +15 -0
  92. package/lib/types/host/project.d.ts +23 -3
  93. package/lib/types/host/provision-cli.d.ts +39 -0
  94. package/lib/types/host/python-runtime.d.ts +32 -2
  95. package/lib/types/host/python-worker.d.ts +1 -1
  96. package/lib/types/host/retire.d.ts +55 -0
  97. package/lib/types/host/revert.d.ts +29 -0
  98. package/lib/types/host/runs.d.ts +12 -0
  99. package/lib/types/host/stress-hotspots.d.ts +86 -0
  100. package/lib/types/host/support-seats.d.ts +49 -0
  101. package/lib/types/host/surface-assembly.d.ts +1 -1
  102. package/lib/types/host/surface-deliver.d.ts +1 -1
  103. package/lib/types/host/surface-part.d.ts +1 -1
  104. package/lib/types/host/surface-see.d.ts +1 -1
  105. package/lib/types/host/surface-session.d.ts +1 -1
  106. package/lib/types/host/surface-trim.d.ts +170 -0
  107. package/lib/types/host/surface.d.ts +22 -0
  108. package/lib/types/host/verify/check-register.d.ts +2 -0
  109. package/lib/types/host/verify/freshness.d.ts +1 -1
  110. package/lib/types/host/version-export.d.ts +13 -0
  111. package/lib/types/host/version.d.ts +9 -0
  112. package/lib/types/host/versions-index.d.ts +43 -0
  113. package/lib/types/host/write-assembly.d.ts +31 -0
  114. package/lib/types/shared/error-envelope.d.ts +14 -1
  115. package/lib/types/shared/products-wire.d.ts +3 -0
  116. package/lib/types/shared/types.d.ts +10 -0
  117. package/lib/verify.js +239 -33
  118. package/lib/verify.js.map +4 -4
  119. package/library/README.md +8 -8
  120. package/package.json +64 -40
  121. package/presets/cad/preset.patch.yml +5 -2
  122. package/presets/cad/workflow.md +5 -2
  123. package/python/cad_worker/stress_fem.py +11 -1
  124. package/python/cad_worker/worker.py +148 -2
  125. package/schemas/assembly-manifest.schema.json +17 -2
  126. package/scripts/check-register.mjs +5 -0
  127. package/scripts/doctor.mjs +1 -1
  128. package/scripts/provision.mjs +240 -0
  129. package/scripts/setup.mjs +131 -88
  130. package/skills/cad-assembly/SKILL.md +10 -7
  131. package/skills/cad-manufacturing/SKILL.md +4 -4
  132. package/skills/cad-modeling-measure/SKILL.md +4 -3
  133. package/skills/cad-simulation/SKILL.md +4 -3
  134. package/skills/cad-toolbox/SKILL.md +120 -155
  135. package/docs/PEARL-PLAN.md +0 -984
  136. package/docs/PEARL-REPORT-2026-11-05.md +0 -343
  137. package/examples/pearls/probes.json +0 -9
  138. package/lib/types/host/pearls/context.d.ts +0 -2
  139. package/lib/types/host/pearls/contract.d.ts +0 -62
  140. package/lib/types/host/pearls/execute-template.d.ts +0 -42
  141. package/lib/types/host/pearls/execute.d.ts +0 -27
  142. package/lib/types/host/pearls/format.d.ts +0 -19
  143. package/lib/types/host/pearls/inputs.d.ts +0 -18
  144. package/lib/types/host/pearls/plan.d.ts +0 -4
  145. package/lib/types/host/pearls/probes.d.ts +0 -15
  146. package/lib/types/host/pearls/profile.d.ts +0 -39
  147. package/lib/types/host/pearls/prompt.d.ts +0 -2
  148. package/lib/types/host/pearls/repair-history.d.ts +0 -15
  149. package/lib/types/host/pearls/repair-loop.d.ts +0 -23
  150. package/lib/types/host/pearls/repair.d.ts +0 -26
  151. package/lib/types/host/pearls/run.d.ts +0 -36
  152. package/pearls/brief/pearl.json +0 -11
  153. package/pearls/brief/templates/standard.json +0 -27
  154. package/pearls/deliver/pearl.json +0 -30
  155. package/pearls/deliver/templates/standard.json +0 -32
  156. package/pearls/fit/INTERFACE-GUIDE.md +0 -88
  157. package/pearls/fit/pearl.json +0 -37
  158. package/pearls/fit/templates/mechanism.json +0 -77
  159. package/pearls/fit/templates/static.json +0 -84
  160. package/pearls/make/pearl.json +0 -31
  161. package/pearls/make/templates/fdm.json +0 -54
  162. package/pearls/make/templates/wood.json +0 -44
  163. package/pearls/model/ASSEMBLY-CONTRACT.md +0 -55
  164. package/pearls/model/pearl.json +0 -34
  165. package/pearls/model/templates/assembly.json +0 -78
  166. package/pearls/model/templates/import.json +0 -28
  167. package/pearls/model/templates/scad.json +0 -32
  168. package/pearls/probe-templates/fit-clearance/check.mjs +0 -46
  169. package/pearls/probe-templates/fit-clearance/manifest.json +0 -12
  170. package/pearls/probe-templates/fit-clearance/negative.json +0 -4
  171. package/pearls/probes.json +0 -9
  172. package/pearls/review/pearl.json +0 -31
  173. package/pearls/review/templates/section.json +0 -32
  174. package/pearls/review/templates/visual.json +0 -32
  175. package/schemas/necklace-contract.schema.json +0 -142
package/NOTICE CHANGED
@@ -1,4 +1,4 @@
1
- ToyMarker · dsh-cad-harness
1
+ 营造(Yingzao) · dsh-cad-harness
2
2
  Copyright 2026 songsenand <songsenand@163.com> and other contributors
3
3
 
4
4
  本产品以 Apache License 2.0 发布(全文见 LICENSE)。
package/README.en.md CHANGED
@@ -7,18 +7,27 @@ fluid/process checks, immutable versions, and an evidence policy).
7
7
  This package is normally installed as a dsh plugin bundle, not imported as a
8
8
  library.
9
9
 
10
- ## Install (preview)
10
+ ## Install
11
11
 
12
- Tarball release (no build; `lib/` is included):
12
+ npm (recommended; no build, `lib/` is included):
13
13
 
14
14
  ```bash
15
- tar -xzf dsh-cad-harness-0.1.2-preview.1.tgz
15
+ dsh plugin --profile <profile> add dsh-cad-harness
16
+ npx dsh-cad-setup # preset + OpenSCAD
17
+ npx dsh-cad-doctor # kind=ok, or an explained degraded
18
+ npx dsh-cad-backend --show # kernel=openscad, compileBackend=auto
19
+ # restart dsh; then choose the 「营造模式」 preset for a new session
20
+ ```
21
+
22
+ Tarball (offline / intranet fallback; no build):
23
+
24
+ ```bash
25
+ tar -xzf dsh-cad-harness-<version>.tgz # use the release page version
16
26
  dsh plugin --profile <profile> add -w "$PWD/package"
17
27
  cd package
18
- node scripts/setup.mjs # writes this machine's skill path into the preset
19
- node scripts/doctor.mjs # kind=ok, or an explained degraded
20
- node scripts/backend.mjs --show # kernel=openscad, compileBackend=auto
21
- # restart dsh; then choose the 「营造模式」 preset for a new session
28
+ npx dsh-cad-setup
29
+ npx dsh-cad-doctor
30
+ npx dsh-cad-backend --show
22
31
  ```
23
32
 
24
33
  Source checkout (development):
@@ -26,17 +35,17 @@ Source checkout (development):
26
35
  ```bash
27
36
  dsh plugin --profile <profile> add -w /path/to/dsh-cad-harness
28
37
  cd /path/to/dsh-cad-harness && pnpm install && pnpm run build
29
- npm run setup
38
+ node scripts/setup.mjs
30
39
  ```
31
40
 
32
- `node scripts/setup.mjs --check` reports whether the preset is stale. The package
41
+ `npx dsh-cad-setup --check` reports whether the preset is stale. The package
33
42
  ships with the CAD skill path omitted on purpose: an absolute path from the
34
43
  packing machine would be wrong here.
35
44
 
36
- **After a dsh upgrade, run `node scripts/setup.mjs` again and restart.** The preset is
45
+ **After a dsh upgrade, run `npx dsh-cad-setup` again and restart.** The preset is
37
46
  a verbatim copy of dsh's `standard.patch.yml`, and dsh removes or renames internal
38
47
  rows between releases. A preset mounts as a whole: one stale row and the 「营造模式」
39
- mode does not appear at all — no error, just a missing mode. `node scripts/doctor.mjs`
48
+ mode does not appear at all — no error, just a missing mode. `npx dsh-cad-doctor`
40
49
  reports `preset-standard-drift` and names this fix.
41
50
 
42
51
  ## Requirements
@@ -46,7 +55,9 @@ reports `preset-standard-drift` and names this fix.
46
55
  - OpenSCAD on `PATH` (or `CAD_OPENSCAD_BIN`); 2021.01 works but `doctor` reports
47
56
  `degraded`; 2025.06+ enables the Manifold backend
48
57
  - BOSL2 optional, under `lib/BOSL2/` in the source checkout
49
- - Python runtime is provisioned on first use (about 400 MB, not shipped)
58
+ - Python runtime: prepared by `setup` (~350 MB; `--python=system` reuses a system
59
+ CPython 3.13, `--from-python` is the offline path)
60
+ - CadQuery pack optional, ~1.6 GiB, post-install: `npx dsh-cad-provision --cadquery`
50
61
 
51
62
  ## Preview limits
52
63
 
@@ -58,32 +69,41 @@ reports `preset-standard-drift` and names this fix.
58
69
  - UI English covers the tab title, environment notices, export dialog and main
59
70
  empty states; the deep panel is still mostly Chinese.
60
71
  - OpenSCAD 2021.01 works but has no Manifold backend; 2025.06+ is recommended.
61
- - No second geometry kernel in this preview; CadQuery/FreeCAD are planned.
72
+ - OpenSCAD is the default kernel; CadQuery is an optional B-rep pack (about 1.6 GiB, installed explicitly), and FreeCAD remains planned.
62
73
 
63
74
  ## Commands
64
75
 
65
76
  ```bash
66
- node scripts/doctor.mjs --json
67
- node scripts/backend.mjs --show
68
- node scripts/verify-cli.mjs <project> --advisory
69
- node scripts/clean.mjs # dry-run; --apply to remove stale temp dirs
77
+ npx dsh-cad-doctor --json
78
+ npx dsh-cad-backend --show
79
+ npx dsh-cad-verify <project> --advisory
80
+ npx dsh-cad-check-register <project> --id <id>
81
+ npx dsh-cad-clean # dry-run; --apply to remove stale temp dirs
70
82
  ```
71
83
 
72
84
  The `dsh-cad-*` binaries are declared in `package.json`; they are on `PATH` when
73
85
  the package is linked into a profile/tool installation. From an unpacked tarball,
74
86
  `node scripts/*.mjs` is the reliable form.
75
87
 
76
- ## What's new in 0.1.2-preview.1
77
-
78
- - `generate` takes `dryRun` (compile + measure, save nothing) and `preflight` (save only watertight single-body meshes).
79
- - `cad_check` `sweep` screens a declared joint range before a motion run; revolute joints can declare `overlapEnvelope` / `fit`; motion supports a `gear` ratio.
80
- - Print overhang is a support cost reported as a finding; only a process profile with `overhangDeg.hard: true` lowers the verdict.
81
- - Heat-map layers (fused / thickness / overhang / von Mises) and a host-following light/dark theme.
82
- - New sewing-rotary-hook and 3-speed-derailleur examples (each with a CadQuery variant); older examples move to the history index without being deleted.
83
- - Full notes and known issues: `docs/dev/RELEASE-NOTES-0.1.2.md` in the source repository.
88
+ ## What's new in 0.2.1-preview.2 (unreleased)
89
+
90
+ - **Measurement**: distance, three-point angle, section area and hole diameter, with a renameable/deletable measurement history that travels with the screenshot.
91
+ - **Viewport**: one 「View」 menu with front/back/left/right/top/bottom + iso, perspective↔orthographic, restore/Home; per-part hide/isolate/highlight.
92
+ - **Checks**: `run.json` records the request, so manufacturing/assembly can re-run and stress can replay on the current version; missing inputs are refused by name.
93
+ - **Fluid**: the flow axis follows the cavity; long runs show progress and can be cancelled; outside particles are pushed back (penetration 7,098→0).
94
+ - **Delivery**: audit view in the panel, BOM CSV export, and the risk-annotated export gate.
95
+ - **Part retirement**: an abandoned half is retired (reversible), not deleted; the default removes its assembly nodes in one sealed contract revision and the navigator folds it away.
96
+ - **Standard-parts catalogue**: 99 specs / 14 families ship with the package; `cad_part` (`action: "library"`) lists, gets and imports them (`list` / `get` / `import`). `fit` is the assembly/contract geometry, `visual` is display-only, and the version records `libraryRef`.
97
+ - **Delivery gate**: a CAD file can leave only through export or `cad_deliver` `present` (the latter takes `{versionId, format}` and the plugin generates the file and its sha256 receipt); bare `present` of an arbitrary CAD path is rejected. Hard blockers make the state `blocked`; soft findings are `warnings` (`difficult` is only a warning label, not a third state). Every warning must be explained in `evidence-exceptions.json` (`finding` + `reason` + `expiresAt`) before delivery; otherwise the gate refuses. A successful delivery writes a receipt.
98
+ - **Kickoff gate**: a blank project must write its `brief` on the assembly root first (`processes` / `verify` / `buyVsMake` / `limits`; `limits` is `maxX`/`maxY`/`maxZ` in mm, or `{source:"none", note}`); without it the design/check/simulate tools are refused, and old projects need one brief.
99
+ - **Delivery reminder (agent first)**: every user turn that used a design/verification tool is checked; ordinary iteration injects the gaps, a completion claim/delivery attempt gets one follow-up, and only an ineffective reminder reaches the panel. `cad_deliver` `defer` stops the reminder for a revision.
100
+ - `generate` still takes `dryRun` / `preflight`; `cad_check` `sweep` screens a joint range before a motion run; motion supports a `gear` ratio.
101
+ - Full notes, evidence and known issues: `docs/dev/RELEASE-NOTES-0.2.0.md` in the source repository.
84
102
 
85
103
  ## Documentation
86
104
 
87
- The full user, agent and maintainer docs live in the source repository under
88
- `docs/` (`docs/user/` with English mirrors, `docs/llm/`, `docs/dev/`); the
89
- maintainer docs remain Chinese for this preview.
105
+ The Agent reference (`docs/llm/`, English mirror in `docs/en/llm/`) ships inside
106
+ the package beside the tool contracts, so an installed plugin's agent reads its
107
+ long-form rules without a checkout. The user guide and maintainer notes
108
+ (`docs/user/`, `docs/dev/`) stay in the source repository; the maintainer docs
109
+ remain Chinese for 0.2.0.
package/README.md CHANGED
@@ -14,13 +14,16 @@ you accept a model, and the final call left to you.
14
14
 
15
15
  ```bash
16
16
  dsh plugin --profile <profile> add dsh-cad-harness
17
- npx dsh-cad-setup --openscad=auto # preset + OpenSCAD
17
+ npx dsh-cad-setup # preset + Python runtime + OpenSCAD
18
18
  npx dsh-cad-doctor # kind=ok, or an explained degraded
19
19
  ```
20
20
 
21
21
  `setup` writes this machine's skill path into the preset; an absolute path from the
22
- packing machine would be wrong here, so the package ships without it. Restart dsh,
23
- then start a session with the 「营造模式」 preset.
22
+ packing machine would be wrong here, so the package ships without it. It then prepares
23
+ the two hard prerequisites: the bundled Python 3.13 runtime (npmmirror first) and
24
+ OpenSCAD (system 2025.06+ if present, otherwise the pinned download). If either piece
25
+ fails, the plugin is still installed and the command exits `3`; re-run it after fixing
26
+ the source. Restart dsh, then start a session with the 「营造模式」 preset.
24
27
 
25
28
  **After a dsh upgrade, run `npx dsh-cad-setup` again and restart.** The preset is a
26
29
  verbatim copy of dsh's `standard.patch.yml`, and dsh removes or renames internal rows
@@ -35,27 +38,37 @@ does not appear at all — no error, just a missing mode. `npx dsh-cad-doctor` r
35
38
 
36
39
  - Node.js >= 20
37
40
  - dsh, with the CAD bundle enabled for the profile
38
- - OpenSCAD on `PATH` (or `CAD_OPENSCAD_BIN`); 2021.01 works but `doctor` reports
39
- `degraded` — the same model measured 2467 ms on it against 69 ms on a Manifold
40
- build. 2025.06+ enables the Manifold backend; `npx dsh-cad-provision` installs the
41
- pinned snapshot
41
+ - OpenSCAD: `setup` takes an existing 2025.06+ copy or installs the pinned snapshot;
42
+ 2021.01 works but `doctor` reports `degraded` — the same model measured 2467 ms on it
43
+ against 69 ms on a Manifold build. `CAD_OPENSCAD_BIN` overrides the choice
44
+ - Python runtime: prepared by `setup` (~350 MB; `--python=system` reuses a system
45
+ CPython 3.13, `--from-python` is the offline path)
46
+ - CadQuery pack optional, ~1.6 GiB, post-install: `npx dsh-cad-provision --cadquery`
42
47
  - BOSL2 optional, under `lib/BOSL2/` in the source checkout
43
- - Python runtime is provisioned on first use (about 400 MB)
44
48
 
45
- ## What's new in 0.1.2-preview.1
46
-
47
- - `generate` takes `dryRun` (compile + measure, save nothing) and `preflight` (save only watertight single-body meshes).
48
- - `cad_check` `sweep` screens a declared joint range before a motion run; revolute joints can declare `overlapEnvelope` / `fit`; motion supports a `gear` ratio.
49
- - Print overhang is a support cost reported as a finding; only a process profile with `overhangDeg.hard: true` lowers the verdict.
50
- - Heat-map layers (fused / thickness / overhang / von Mises) and a host-following light/dark theme.
51
- - New sewing-rotary-hook and 3-speed-derailleur examples (each with a CadQuery variant); older examples move to the history index without being deleted.
52
- - Full notes and known issues: `docs/dev/RELEASE-NOTES-0.1.2.md` in the source repository.
49
+ ## What's new in 0.2.1-preview.2 (unreleased)
50
+
51
+ - **Measurement**: distance, three-point angle, section area and hole diameter, with a renameable/deletable measurement history that travels with the screenshot.
52
+ - **Viewport**: one 「View」 menu with front/back/left/right/top/bottom + iso, perspective↔orthographic, restore/Home; per-part hide/isolate/highlight.
53
+ - **Checks**: `run.json` records the request, so manufacturing/assembly can re-run and stress can replay on the current version; missing inputs are refused by name.
54
+ - **Fluid**: the flow axis follows the cavity; long runs show progress and can be cancelled; plaster/outside particles are pushed back (penetration 7,098→0).
55
+ - **Delivery**: audit view in the panel, BOM CSV export, and the risk-annotated export gate.
56
+ - **Part retirement**: an abandoned half is retired (reversible), not deleted; the default removes its assembly nodes in one sealed contract revision and the navigator folds it away.
57
+ - **Standard-parts catalogue**: 99 specs / 14 families ship with the package; `cad_part` (`action: "library"`) lists, gets and imports them (`list` / `get` / `import`). `fit` is the assembly/contract geometry, `visual` is display-only, and the version records `libraryRef`.
58
+ - **Delivery gate**: a CAD file can leave only through export or `cad_deliver` `present` (the latter takes `{versionId, format}` and the plugin generates the file and its sha256 receipt); bare `present` of an arbitrary CAD path is rejected. Hard blockers make the state `blocked`; soft findings are `warnings` (`difficult` is only a warning label, not a third state). Every warning must be explained in `evidence-exceptions.json` (`finding` + `reason` + `expiresAt`) before delivery; otherwise the gate refuses. A successful delivery writes a receipt.
59
+ - **Kickoff gate**: a blank project must write its `brief` on the assembly root first (`processes` / `verify` / `buyVsMake` / `limits`; `limits` is `maxX`/`maxY`/`maxZ` in mm, or `{source:"none", note}`); without it the design/check/simulate tools are refused, and old projects need one brief.
60
+ - **Delivery reminder (agent first)**: every user turn that used a design/verification tool is checked; ordinary iteration injects the gaps, a completion claim/delivery attempt gets one follow-up, and only an ineffective reminder reaches the panel. `cad_deliver` `defer` stops the reminder for a revision.
61
+ - `generate` still takes `dryRun` / `preflight`; `cad_check` `sweep` screens a joint range before a motion run; motion supports a `gear` ratio.
62
+ - Full notes, evidence and known issues: `docs/dev/RELEASE-NOTES-0.2.0.md` in the source repository.
53
63
 
54
64
  ## Documentation
55
65
 
56
- The user guide, Agent reference, and maintainer notes live in the source
57
- repository under `docs/` (`docs/user/`, `docs/llm/`, `docs/dev/`). This tarball
58
- keeps the package-local `docs/` (tool contracts) so the bundle is inspectable.
66
+ The Agent reference ships inside the package (`docs/llm/`, English mirror in
67
+ `docs/en/llm/`) beside the tool contracts (`docs/TOOL-CONTRACTS.md`): a skill
68
+ points at `../../docs/llm/<file>` from its own directory, so an installed
69
+ plugin's agent can read the long-form rules without a git checkout. The user
70
+ guide and maintainer notes (`docs/user/`, `docs/dev/`) stay in the source
71
+ repository.
59
72
 
60
73
  ## License
61
74
 
@@ -0,0 +1,71 @@
1
+ {
2
+ "recordedAt": "2026-11-26",
3
+ "surfaceSchemaChars": 4065,
4
+ "skillCatalogChars": 1865,
5
+ "fixedPrefixChars": 5930,
6
+ "surfaceBudgetChars": 6144,
7
+ "tolerance": 0.1,
8
+ "legacySchemaChars": 104675,
9
+ "components": {
10
+ "surfaces": [
11
+ {
12
+ "name": "cad_session",
13
+ "chars": 395
14
+ },
15
+ {
16
+ "name": "cad_part",
17
+ "chars": 399
18
+ },
19
+ {
20
+ "name": "cad_assembly",
21
+ "chars": 420
22
+ },
23
+ {
24
+ "name": "cad_check",
25
+ "chars": 522
26
+ },
27
+ {
28
+ "name": "cad_simulate",
29
+ "chars": 485
30
+ },
31
+ {
32
+ "name": "cad_inspect",
33
+ "chars": 546
34
+ },
35
+ {
36
+ "name": "cad_see",
37
+ "chars": 375
38
+ },
39
+ {
40
+ "name": "cad_python",
41
+ "chars": 498
42
+ },
43
+ {
44
+ "name": "cad_deliver",
45
+ "chars": 425
46
+ }
47
+ ],
48
+ "skills": [
49
+ {
50
+ "name": "cad-assembly",
51
+ "chars": 335
52
+ },
53
+ {
54
+ "name": "cad-manufacturing",
55
+ "chars": 417
56
+ },
57
+ {
58
+ "name": "cad-modeling-measure",
59
+ "chars": 386
60
+ },
61
+ {
62
+ "name": "cad-simulation",
63
+ "chars": 445
64
+ },
65
+ {
66
+ "name": "cad-toolbox",
67
+ "chars": 282
68
+ }
69
+ ]
70
+ }
71
+ }