The crossings are the ones trim_rsketch cuts at (the same solved geometry and intersection code), returned by the sketch solve the
editor already calls. The frontend's own intersection module is gone; its end-to-end coincidence tests moved to sketch-chain.test.ts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The canvas found bounded faces of the line/arc graph itself and matched them to the solver's profiles by area and
centroid; the SDK offers only simple loops and chains, so a branched or tangent-trimmed sketch showed loops the SDK
did not have and 'the profile is still being matched' never cleared. The solve now returns the SDK's own list (indices
are the ones make_face_from_sketch_rface takes) plus why an edge set is none, and the canvas draws exactly those.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
fillet_corner/chamfer_corner round or bevel the corner of two lines that share a point (tangent and radius/length constraints keep
it defined); project_rsketch brings geometry from another sketch or from the edges of a shape into a sketch as fixed construction
geometry, which is how sketches in different planes are related; explode_rassembly returns an assembly with the component
placements displaced for an exploded view (factor, centre or axis, per-component directions and weights). C++, bound,
recorded, replayable, stubbed, documented and tested like trim/extend.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sketching happens in the viewport (the camera turns to the chosen plane or face, the model stays visible and orbitable, the
drawing is an SVG overlay projected through the live camera); the separate canvas panel is gone. The sketch plane can be a face
frame. Trim and extend are not editor features: sketch_doc.apply_edit builds the SDK Sketch from the document, calls
scad.<op>_rsketch and turns the result back; the command line (sca sketch op) and /api/sketch/op are the same thin bridge.
Cut/boss/extrude from a sketch accept 'against the normal'; profiles carry a plane label; an edit that removes parameters writes
the feature cell before the params cell so no cell reads a name that is gone.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Trim removes the part of a line, circle or arc that contains a point, between the nearest crossings (or the ones named in
against); extend lengthens a line until it meets the next entity. Both work on the solved geometry, keep the sketch connected
(point_on ties, horizontal/vertical kept, dimensions that cannot hold dropped), are recorded in the operation graph and replay
from model JSON. diff_sketch_rsketchdiff reports what an edit created, removed and changed. C++ in src/cpp/src/sketch/edit.cpp,
bound in bind_sketch.cpp, with doctest cases, Python tests and API pages; the two operations join the canonical core op set.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
sca new --kind blank writes a part notebook with no cells; the first GUI feature adds the product cell that builds the Part
from it, and later features that consume that body move it along. editor-collaboration.md says what a GUI cell looks like,
that GUI commands never overwrite an edit made in between, and how the inline selection recipes behave.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The skill entry is rebuilt around how an agent reads: SKILL.md is a 94-line router whose route
table gives the batch to read for each workflow; the first batch is 488-881 compiled lines
(was a median of 1,493). Long workflows are split into role pages (single-part 1157 -> outline
+ role pages, drawing-reconstruction 586 -> outline + stage pages); ql-playbook and
notebook-runtime are split by job. Every workflow has Read now / Read when / Unattended mode,
and discipline/operating-modes.md says what replaces each gate when nobody can answer.
New: scan-reconstruction workflow, core-rules.md (rule IDs), parallel-read blocks for
claudecode, zcode, opencode and codex.
docs/skill-design.md is the contract; skillbuild --check enforces it (src/simplecadapi/skill/lint.py,
opt in through [lint] in skillproj.toml).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Version in pyproject.toml, the project entry of uv.lock and SKILL.md; the CHANGELOG heading; docs/updates/2.2.7 (EN and
zh-CN); the update notes of both READMEs replaced with this version's.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A new discipline file with the rules, the reason for each and the error you get when it is broken; wired into SKILL.md,
the single-part and assembly workflows, the feature tree convention and the runtime guide.
Written from what the agents actually did (26 sessions in Langfuse): float(NAME) around every Var (119 times), and the
template's NameError when sca cell put replaces the params cell while the base cell still reads RADIUS (6 sessions).
Every statement about Var was checked against the SDK: units convert (2 in = 50.8 mm), mixing length and angle in an
expression or unit and unitless variables raises when evaluated, but a Var is not checked against the parameter it is
passed to; the package definition does not record the parameters, so the file does not claim it.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2.2.6 gave them symbolic arithmetic only; int(), round(), comparisons, max/min/sorted, range(n), [0] * n, lst[n - 1],
//, %, f"{r:.2f}" raised, and r == 5.0 / r in [5.0] answered False for a Var whose value is 5.0 (an agent lost ten
minutes in a scan-to-CAD run to a ql predicate with a Var-derived value that matched nothing).
Arithmetic stays an Expr (the formula); decisions read the value the expression has now (the value float(x) gives).
Two expressions compare by formula, an expression and a number by value; numpy scalars are accepted as operands.
Unchanged: bool(var) raises (an old test pins it), json.dumps(var) raises. There is no __array__ on purpose: marimo keys
an object that has one by its value alone, so a changed name, unit, tolerance or comment would no longer redo the cells
that read it (caught by test_cell_cache_store). __rmul__ hands list / str repetition back to Python.
A matrix test runs each usage with a number, a Var and an Expr and asserts the same answer. DEVIATIONS.md lists what
changed against 2.2.6; the notebook-runtime guide tells a model how to use a scad.var.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
verify.to_ocp / from_ocp now delegate to the bridge of this branch (_glue.bridge), which also backs shape.wrapped when
OCP is installed: one conversion, one place. The verifier-scripts skill reference and the CHANGELOG say that
shape.wrapped is an OCP shape with the extra (PR #67 described it as the SDK's own binding). CI: the verifier-bridge
step is kept next to the C++ parity and stub steps.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- use(): two notebooks run under one graph id replace each other's memo entry (the registry holds one run's nodes
per graph id; the older entry handed out a product whose nodes were gone).
- Editor: a post that is not a readable preview is answered 400, not 409; the server's model is one value replaced
atomically; the signing of a publish is handed out once, so a stray second post cannot be filed under it.
- Cell memory: set_metadata/auto_tag_faces change a value in place, so an entry holding a value they changed is
dropped (it was handed out changed); the marimo hook checks the signature it re-implements and says so when it
cannot; the length reads under the lock.
- Handled failures print a [sca] line (preview warm-up, lineage record, cache entry delete, preview frame, signing,
damaged kept model) instead of passing silently.
- Tests: a damaged preview, bytes that are no preview, the single model value, the signing handed out once, a
moved and turned solid keeps its location and face orientation through .wrapped, saved values in the digests of a
real notebook, the marimo hook, a value changed in place.
- Docs: docs/environment.md lists every SCA_* switch; CHANGELOG states the one-time rebuild of notebooks with saved
parameters, the copy semantics of .wrapped, the memory limit.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
With the verify extra installed, wrapped returns an OCP TopoDS_Shape of the class of its kind (as CadQuery's does), so the
OCCT code an agent writes for verifier scripts runs as written. It is a copy made through BinTools; without OCP it stays
the SDK's own OCCT shape, and SCA_WRAPPED=native|ocp chooses. The SDK's own layers take _native_wrapped, and the
inspect.brep queries, the STEP export and the kernel geometry helpers accept either kind of shape.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
shape.wrapped is the SDK's own binding, so OCP functions reject it and verifier scripts that did
BRepGProp.VolumeProperties_s(solid.wrapped, ...) stopped working with the C++ engine. simplecadapi.verify.to_ocp / from_ocp
bridge through OpenCASCADE's binary format; the verify extra installs OCP 7.9 without VTK. The SDK itself never imports OCP.
The skill gets references/discipline/verifier-scripts.md, whose code the tests execute.
The fem extra (gmsh, ccx2paraview[VTK]) is removed with the README steps that used it; vtk is out of the lock file.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
matplotlib moves to the core dependencies; the inspect extra stays as an empty alias so older
install commands work. The wheel smoke test renders a STEP through inspect.brep.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A cut that splits the body returned only the first solid from cut_rsolid, silently losing the rest
(a slot through a bar reported half the volume). cut_rsolid_list returns all pieces (empty when the
body is consumed), is recorded as make_cut_rsolid_list and replays. cut_rsolid now raises when the
result is not exactly one solid and names cut_rsolid_list. Tests that relied on the dropped sliver
of a tangent cut use a tool that does not touch the walls.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Entity-map callouts re-anchor onto their own geometry when occluded; the
VTK dependency, worker process and xvfb steps are gone.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
cadquery-ocp used to install VTK; without it the BREP-rendering tests failed in CI. vtk goes into the inspect
extra (users) and the dev group (tests).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Beta: the first release with prebuilt wheels (Linux x86_64 and aarch64, macOS arm64, Windows x86_64,
Python 3.10-3.13). Version in pyproject.toml, the uv.lock project entry and SKILL.md; CHANGELOG, update notes
(English and 中文), README update notes.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The modeling API (shapes, operators, sketches, products, queries, the reactive graph) is implemented in
C++20 on OpenCASCADE (src/cpp) and ships inside the wheel as simplecadapi._cpp. The Python layers that stay
Python (runtime, build, artifacts, editor, inspect, exporter, translators, scene) run on it unchanged; the
previous Python test suite passes on the new engine.
Layout: src/cpp and src/simplecadapi side by side, one distribution built by scikit-build-core.
simplecadapi.core, .operators.*, .ql, .std.* and the other legacy modules are real forwarding modules; the
Python adapter layer is simplecadapi/_glue. OCP is no longer a dependency and nothing imports it.
Release: .github/workflows/release.yml builds wheels for Linux x86_64 and aarch64, macOS arm64 and Windows
x86_64 (Python 3.10-3.13) against one static OCCT, runs the test suite on the Linux wheels and publishes to
GitHub and PyPI; ci.yml caches the static OCCT for the test jobs.
Errors: every message the library writes is English; the tag-validation and semantic-query errors render in
full with possible causes and fixes.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Move scale/transform/boolean_rsolidlist/offset/draft/extrude_taper/extrude_until/
sweep_multisection into the module of their family (old module paths remain as
deprecated aliases); the API reference is generated for every operator.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Four operators modules (deformation, draft, limited_extrusion, section_features)
were missing from the generator's source list and its table of public
functions, so the docs of scale/transform/offset/boolean_rsolidlist/draft/
extrude_until/extrude_taper/sweep_multisection were hand-kept and the generator
deleted them. operators/ is now discovered, a function the package exports is
public, the content of the hand-written docs moved into the docstrings (Args,
Raises, Examples), and tests check that every operators function has a doc
and that the committed docs equal the generator's output.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Regenerated with tools/auto_docs_gen.py. (The generator also deletes the docs of
draft/offset/scale/transform/extrude_taper/extrude_until/sweep_multisection, which
are kept by hand; those deletions are not part of this.)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
An agent working a multi-notebook workspace had to leave the CLI to keep
working: every switch of the editor's open notebook was a raw curl to
/api/workspace/open found by reading the installed server's source, the
viewport image was read out of .sca-editor/ by hand, and a write refused
while another notebook was open left no in-CLI way out.
- sca cell open NOTEBOOK switches the running editor and waits for the
notebook's kernel (SCA_EDITOR_OPEN_WAIT or --wait, default 120s), so
the following write does not race the boot. Re-opening the notebook
that is already open and ready does not restart the kernel.
- sca cell put/insert/rm/run take --open to switch and write in one
step; a refused write now names sca cell open as the remedy.
- /api/cells reports kernel, so a caller can tell a booted notebook
from one whose name has flipped while the kernel still boots.
- sca viewport [WORKSPACE] [--out PATH] reports the viewport image's
path, age and size, and copies it out for an agent's image reader.
- The bundled skill's editor-collaboration reference documents all three.
Printing an inspection now shows a one-line digest (the per-face records are
to_dict()/.faces). The skill says what an agent in a shared editor needed
told: while an editor runs, sca cell is the only way to change a regular
cell — the file only when no editor runs or for the cells sca cell refuses.
dof=0 says the constraint system closed, not that the shape is right
(mirror solutions); verify by measurement. And a modeling project is managed
like software: git from the first file, commits at verified milestones,
generated state ignored.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Subfolders of any depth are listed; names decide what is skipped
(dot/underscore-prefixed, node_modules, venv, site-packages, build, dist).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The version of this release is 2.2.3: rename the version, update notes and README references.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The editor held the open notebook in memory and rewrote the file on each edit, so an
agent's saved change was overwritten and never noticed. The file is now watched and
applied cell by cell (agent's version wins a same-cell conflict), the workspace list
follows new files, and sca cell/new edit through the running editor.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Version bump, changelog (2.2.1 section, including the modeling features and exact
volume integration of the build123d work), update notes in English and Chinese,
README pre-release notices removed.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- both READMEs open with the line to paste to a coding agent
- pillar 3 is now the code-first editor (screenshot added); Re-Studio and the
standalone sca-web-editor references are gone
- update notes for 2.2, install and examples sections brought up to date
- remove the Re-Studio skill workflow and its demo media (10 MB)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Install (uv tool, pipx, else pip), skill install to ~/.agents/skills, sca init,
explain the SDK from the skill, open the u_link example in the editor and coach
the person through parameters, selection and handing work to the agent.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- sca example u_link [DIR]: copy the bundled motor-mount workspace out, ready for sca edit
- sca skill where: print the install destination without writing
- release: build editor-web before uv build; the sdist carries the built UI and the
five demo notebooks (the wheel is built from it); verify the wheel's contents
- skill: editor-collaboration domain (selection cell, snapshot, cell references,
parameters), routed from SKILL.md; version metadata brought up to date
- fix a SyntaxWarning printed on every sca call
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The cell cache is stored under a digest of the files each cell depends on
(modules reached through the names it reads, through the notebook functions it
calls, and through the cells it reads from; child notebooks; inputs) instead
of one digest for the notebook: a changed module recomputes what reads it and
restores the rest, and going back restores everything. The editor kernel runs
cells through the same cache (cells downstream of saved parameter values are
keyed by them; cells that run child notebooks are not cached there).
The render mesh of a face is computed with numpy in the profile's fixed
operation order: identical bytes, package builds about twice as fast.
The editor also watches the data files a notebook lists in 'inputs'.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The workspace lists the local modules notebooks import (sca ls reports them
too) and opens one in a module view: autosaved source plus its dataclass
fields (and commented constants) as controls written into the file. A change,
from the editor or on disk, reloads the module in the kernel and reruns the
notebook; used notebooks are rerun from their files. Number boxes keep the
typed text until it is committed.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The editor moves in from sca-web-editor as simplecadapi.editor (UI sources
in editor-web/, built into the package; 'editor' extra). It no longer
records anything itself: the kernel runs the notebook with the SDK cell
executor, the server asks it for the product (runtime.live.publish_live)
when marimo reports a completed run, and parameters are saved values the
executor applies, so marimo's dataflow reruns what reads them. Controls
come from '# ui:' comments; a workspace is any directory of notebooks.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Add signed offsets, affine transforms, draft, tapered and limited extrusions, and multi-section sweeps with strict graph replay. Support closed and periodic sketch B-splines and accurate rational-surface volume integration.
make_surface_patch_rface re-fits its boundary edges, so neighbouring patches
do not sew into a closed shell. Say so in the docstring and in the
surface-patch and sewing diagnostics, and add a test that sews six Gordon
patches built from a shared edge network into a closed solid. The API pages
are regenerated: make_surface_patch_rface picks up the new docstring, and
render_screenshot_rpath picks up its existing note on the worker subprocess.
Co-Authored-By: Claude Code <noreply@anthropic.com>