- 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>
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>
- new guide docs/guides/notebook-runtime.md: the header table, one FTC
block per cell, the product-id rule, part families with notebook_id()
and use(id=...), sca run and run_notebook
- SKILL.md, the workflows, domains and discipline references now build
models as notebooks; the feature-tree convention maps blocks to cells
- regenerated API pages: run_notebook, use, notebook_id, NotebookRun,
NotebookConfig, CellReport; removed the Cache*, ContentAddressedStore,
resolve_cache_policy and incremental-solve pages, and the
cache-build-workflow guide
- README / README.zh-CN: notebook quick start and example commands
Co-Authored-By: Claude Code <noreply@anthropic.com>
The standalone viewer/ React app (scene viewer + re-mode) and its case
server tests are deleted; the studio product now lives in the separate
sca-web-editor workspace runtime. Docs/updates refreshed accordingly;
pyproject picks up marimo/plotly used by the notebook tooling.
CHANGELOG added; version bumped to 2.1.3 across pyproject, skill
frontmatter, and README current-release lines; generated skill docs
refreshed via tools/auto_docs_gen.py.
- per-addon runtime dirs (~/.sca/runtimes/<name>), created at install,
untouched by update, removed with the addon; {runtime_dir} placeholder
in command_prefix and check_cmd alongside {addon_dir}
- 'sca addon check [name]': re-probe the installed runtime NOW and
refresh the cached registry record (install-time probe is a cache,
not truth); list shows cached state with its timestamp
- sca addon use exports SCA_RUNTIME_DIR for self-locating provisioning
- update replaces the payload wholesale but preserves a legacy in-payload
.venv (pre-runtime_dir addons keep working)
- remove: records without runtime_dir delete nothing extra — never
interpret the missing field as Path('') == CWD (regression test pins
the exact failure that motivated this guard)
- docs: Payload vs runtime state section, check verb, updated examples
- version 2.1.3b4
- simplecad-cache/simplecad-export entry points are gone (hard cut):
the same commands live under the unified dispatcher
(simplecadapi.cli) as 'sca cache ...' and 'sca export ...', each
group registered at parser level so per-group --help works
- sca init now wires the shell by default (--no-shell skips): a
~/.sca/bin/sca shim (Windows sca.cmd) execs the installing venv's
console script — the venv bin itself never goes on PATH — and the
shim dir lands on PATH via a marked, removable block in ~/.zshenv
(read by non-interactive shells, so agents see the command),
~/.bashrc, fish conf.d, or the Windows user PATH registry value
with a change broadcast; rc files are created only for the login
shell or when they already exist; re-running init refreshes the
shim (target discovery is symlink-safe, no resolve() out of venv)
- addon/cache/export cli modules expose configure(subparsers) +
_execute(args); module run() keeps the CLI-shaped argv
- docs: sca namespace across evergreen docs, shell-integration
section, 'never writes shell profiles' contract line retired
- tests: +17 (dispatcher groups, shell integration, entry-point
absence); cache/export suites moved to group-token argv
- 'sca init' replaces 'sca addon init' (init configures the machine, it
is not an addon operation); guidance text, config comment, and docs
follow; the 2.1.3b1 changelogs keep the historical command name
- version 2.2.0 -> 2.1.3b3 (pyproject + uv.lock)
- local installs ignore virtualenvs and tool caches (.venv, venv,
.pytest_cache, .mypy_cache, .ruff_cache, .tox): a real addon checkout
carried a full .venv straight into the addon home
- validated end to end against sca-connectors-addone 0.6.0: prerelease
compat floor parses, git-origin name consistency passes, probe runs
through command_prefix in the final installed layout, use dispatch
exports SCA_ADDON_DIR, update re-probes after wiping a provisioned
.venv (loud FAILED warning, non-blocking)
- standard: repository name == [addon].name == SKILL.md frontmatter name,
enforced at add/update (GitHub repo slug, or local git-origin basename
falling back to directory name); skill dirs install as sca-<name>
without doubling a leading sca-
- [runtime].command_prefix (optional): shell prelude joined in front of
check_cmd and every use dispatch; single {addon_dir} placeholder,
unknown placeholders rejected at descriptor load
- sca addon use NAME [CMD...]: run cmd inside the addon's declared
environment (SCA_ADDON_DIR exported, exit code propagates, --capture
for programmatic output); bare 'use NAME' reports prefix + dir
- runtime probe now executes AFTER the payload is committed, in the
final installed layout, so prefixes referencing {addon_dir} resolve;
failing probe remains a loud non-blocking warning
- use argv is shell-quoted per element so quoted args survive sh -c
- docs: descriptor reference, naming standard, use; SDK 2.1.2 -> 2.2.0
- tests: 12 new (descriptor prefix validation, name consistency, use
flows, prefixed probe); addon suites 73 green
Reported by the OmniSim evaluation of the public u-link example
(2026-09-11): pip install + export.py on Windows died three times in
the build layer before any geometry was built.
- Binary-mode opens: every byte-exact os.open site now sets O_BINARY
via _internal/os_compat.with_binary_flag. autocrlf=true clones read
builder sources in text mode, stripped CR, and aborted with a false
file_input_changed (25579-byte u_link.py read back as 25092); the
same hazard expanded LF on cache writes and would corrupt CAS
hashes. Sites: build/dependencies.py, artifacts/feature_graph.py,
scene/archive.py, cache/store.py (object/record writes, lock
create), artifacts/interface.py (lock create).
- Directory fsync is POSIX-only: os.open(<dir>)+fsync raised
PermissionError on Windows in cache/store.py and
artifacts/interface.py; both now no-op off POSIX via one helper.
- Stale-lock recovery by evidence: a lock whose recorded owner pid is
provably dead is recovered immediately (unreadable owners still wait
out the age gate, live owners are never broken). Windows liveness
probing uses OpenProcess/GetExitCodeProcess — os.kill(pid, 0) maps
to TerminateProcess there and kills the process being probed.
- Console hardening at import: non-UTF strict streams are reconfigured
to backslashreplace so a cp1252 console cannot raise
UnicodeEncodeError from a diagnostic print inside an error handler
and mask the real failure.
- .gitattributes: byte-exact by default, LF pinned for text formats,
so builder-source digests stop depending on core.autocrlf.
Tests: test_os_compat.py (15) + dead-owner immediate recovery in
test_cache_store.py; full suite 1799 passed, 5 skipped. ty: zero new
diagnostics.
Add the drawing inspection namespace and its parser, calibration, section and
independent acceptance dependencies on the current dev architecture.
Protect input BREP during material fusion and sectioning. Bind dimensions,
annotations and visual reviews to source identities and measured geometry.
Connect the workflow and generated API docs to all seven skill build targets.
Make standalone verifier tests work with the pytest console entry point.
Validation: 186 drawing, documentation, skill-target and public API tests;
16 non-render BREP query tests; compileall and skillbuild --check.