dsh-cad-harness 0.1.2-preview.1 → 0.1.2-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.
package/README.en.md CHANGED
@@ -12,7 +12,7 @@ library.
12
12
  Tarball release (no build; `lib/` is included):
13
13
 
14
14
  ```bash
15
- tar -xzf dsh-cad-harness-0.1.2-preview.1.tgz
15
+ tar -xzf dsh-cad-harness-0.1.2-preview.2.tgz
16
16
  dsh plugin --profile <profile> add -w "$PWD/package"
17
17
  cd package
18
18
  node scripts/setup.mjs # writes this machine's skill path into the preset
@@ -73,7 +73,7 @@ The `dsh-cad-*` binaries are declared in `package.json`; they are on `PATH` when
73
73
  the package is linked into a profile/tool installation. From an unpacked tarball,
74
74
  `node scripts/*.mjs` is the reliable form.
75
75
 
76
- ## What's new in 0.1.2-preview.1
76
+ ## What's new in 0.1.2-preview.2
77
77
 
78
78
  - `generate` takes `dryRun` (compile + measure, save nothing) and `preflight` (save only watertight single-body meshes).
79
79
  - `cad_check` `sweep` screens a declared joint range before a motion run; revolute joints can declare `overlapEnvelope` / `fit`; motion supports a `gear` ratio.
package/README.md CHANGED
@@ -42,7 +42,7 @@ does not appear at all — no error, just a missing mode. `npx dsh-cad-doctor` r
42
42
  - BOSL2 optional, under `lib/BOSL2/` in the source checkout
43
43
  - Python runtime is provisioned on first use (about 400 MB)
44
44
 
45
- ## What's new in 0.1.2-preview.1
45
+ ## What's new in 0.1.2-preview.2
46
46
 
47
47
  - `generate` takes `dryRun` (compile + measure, save nothing) and `preflight` (save only watertight single-body meshes).
48
48
  - `cad_check` `sweep` screens a declared joint range before a motion run; revolute joints can declare `overlapEnvelope` / `fit`; motion supports a `gear` ratio.
package/library/README.md CHANGED
@@ -4,7 +4,7 @@ v0 core: **99 specs / 14 families**, each with a `fit` LOD and a `visual` LOD.
4
4
  Geometry is generated and committed; the files are self-contained (STEP/STL +
5
5
  `part.json`), and no CAD kernel is needed to inspect or import them.
6
6
 
7
- ## Access status (0.1.2-preview.1)
7
+ ## Access status (0.1.2-preview.2)
8
8
 
9
9
  The catalogue **ships**, but the production tool surface has **no first-class
10
10
  catalogue action** (`cad_part` is still create/generate/import/merge/role/
@@ -55,7 +55,7 @@ the datums and measured bbox/volume.
55
55
  - **visual** is display-only: thread relief/chamfers, bearing balls, real spring
56
56
  coils; a visual bbox must stay inside the fit envelope.
57
57
  - **LOD is intended to be chosen by the agent at use time**, not by package membership. That is
58
- a design target for the future catalogue action, not a capability of 0.1.2-preview.1. When the
58
+ a design target for the future catalogue action, not a capability of 0.1.2-preview.2. When the
59
59
  action lands, checks default to fit, rendering to visual; explicit selection wins; a missing
60
60
  LOD is an error, not a silent fallback.
61
61
  - `frequency.source: "assumed"` on every spec. This is an experience baseline,
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "llm",
12
12
  "agent"
13
13
  ],
14
- "version": "0.1.2-preview.1",
14
+ "version": "0.1.2-preview.2",
15
15
  "type": "module",
16
16
  "main": "lib/index.js",
17
17
  "types": "lib/types/host/index.d.ts",
@@ -151,7 +151,7 @@ add symlinks. A copied corpus is still a fork even if it has its own `project.js
151
151
  - **Datums** are declared `datum("name",[x,y,z])` at top level in final world coordinates; they do not affect the mesh. `datum_axis` / `datum_plane` / `datum_cyl` exist for assemblies — signature is `(name, point, dir)`, POINT FIRST: a positional swap compiles silently and corrupts the contract (a zero dir is now a compile error; a dir that dwarfs its point warns as a swap). `cad_assembly` (`action: "datums"`) lists or records; recording creates a **new version** (mesh copied, no recompile) — point the manifest at the returned id. Do not spend a `cad_part` (`action: "generate"`) round on an anchor-only change.
152
152
  - **The manifest** is an ordinary file, by default `<workspace>/assembly/assembly.json`; `cad_assembly` (`action: "check"`) resolves a relative `manifestPath` against the workspace first. Edit it with `write` / `edit`; do not patch JSON by shell.
153
153
  - **BOSL2 is an OpenSCAD modelling library, not the standard-parts catalogue.** It is available in `cad_part` (`action: "generate"`) when writing `scadCode` (`std`, `screws`, `gears`, `walls`, `threading`, `sliders`, `ball_bearings`); use it instead of hand-rolling a thread/gear/fillet.
154
- - **The 99 pre-generated standard parts are shipped but not tool-exposed in 0.1.2-preview.1.** `library/catalog.json` has the IDs and `fit`/`visual` LODs, but there is no `cad_part` list/get/import-by-catalog action. Do not claim you can select a catalogue part; if the user gives a `library/parts/.../fit/model.step` path, import it as `stock`. Read `docs/llm/library.md` before answering catalogue questions.
154
+ - **The 99 pre-generated standard parts are shipped but not tool-exposed in 0.1.2-preview.2.** `library/catalog.json` has the IDs and `fit`/`visual` LODs, but there is no `cad_part` list/get/import-by-catalog action. Do not claim you can select a catalogue part; if the user gives a `library/parts/.../fit/model.step` path, import it as `stock`. Read `docs/llm/library.md` before answering catalogue questions.
155
155
  - **`judge` / `scan` / `both`**: `judge` (default) returns the verdict and no field; `scan` returns the field and **no verdict**; `both` returns both. The **run report** always records both halves — the mode trims the reply, not the record. In `judge` the reply still carries `nextLook` (`{tool, args, why}`) because a verdict without a place is the failure HARNESS §11.14 exists to prevent.
156
156
  - **Runtime**: measuring/checking/simulating need the pinned Python runtime (`cad_python` (`action: "runtime"`) provisions/repairs); `cad_python` (`action: "run"`) shares it. `cad_deliver` (`action: "audit"`), `cad_part` (`action: "create"`), `cad_assembly` (`action: "datums"`), `cad_see` (`action: "render"`), `cad_see` (`action: "reference"`) do not need it. **`cad_assembly` (`action: "check"`) does.**
157
157
  - **Images are the biggest context spend.** New/reshaped parts deserve all four views; a numeric iteration needs `views: ["iso"]`. The user's reference image is pruned first — recall it before claiming a match.