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>
- 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
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.
- @scad.part/@scad.assemble anchor defaults to the builder script's own
directory: cache + interface state land beside the source, standalone
scripts run anywhere, and the pyproject.toml walk-up requirement is
gone (explicit project_root still relocates the anchor)
- file_input() paths resolve relative to the anchor; in-repo examples
rewritten to script-relative declarations
- HistCAD translator emits keyword-form sketch-family calls (corpus
self-documentation), pinned by tests; booleans stay positional by
*solids signature
- both translators emit project_root=Path(__file__).parent explicitly;
examples/histcad_demo regenerated (STEP volume reconciliation held)
- FTC convention documents @scad.part parameters and the cache contract
- version stamps 2.1.2 + bilingual update notes
Tooling patch: SDK API unchanged. Adds the CadQuery→FTC translator toolset
with snapshot constraint recovery (merged in #49) and its bilingual update
notes; version stamps updated in pyproject+lock, SKILL frontmatter, and
both READMEs.
- rename every numbered example (04/08/10/11/7ep scripts, 12/16/20/21 dirs)
to clean names; each example now writes artifacts to its own out/ folder
- examples/README rewritten as a category index (part / assembly / reverse
engineering / FEM); stale run_examples.py reference removed
- flange_plate gains the quickstart FTC part (model.py + external verify.py
+ README); u_link/ap242/flange demo builders read the new asset paths
- ap242_gmsh_volume_mesh gains render_views.py for the demo gallery
fix(artifacts): round-trip-stable geometry fingerprint bounds
AddOptimal bounds wobble by one shape-tolerance quantum between a fresh
shape and the same shape read back from BRep bytes, so definitions sitting
on a quantization cell edge failed every package re-validation. Quantize
bounds at a fixed 1e-4 mm grid, far coarser than the wobble; full suite
green (1503 passed). Stored packages captured before this change must be
recaptured.
State the ordering discipline positively: a tag lands in the step right
after the operation that produced its targets, because projections into
later outputs are computed at op time. Rule 2 keeps the ownership
half (resolved-list targets), rule 3 owns the timing half, and both name
the same surface error so the misleading 'not owned' message resolves to
the right defect.
The hand-written guide at references/docs/guides/ql-selection-playbook.md
sat inside the generated-docs mirror directory under a title identical to
the verified playbook, so agents entering via SKILL.md saw only the older
unpinned copy. Merge its unique content (selection loop, predicate
vocabulary, shared-boundary failure signatures, bore->rim chamfer and
face->datum recipes, lineage routes, facts printing) into
references/ql-playbook.md and retire the guide.
Recipe snippets were re-executed against dev @ 94e3e3e (11/11) before
merging; two session-path corrections came out of that run and are now
documented in Ground rule 2: apply_tag_rselection targets must be a
resolved list, and tags must land before the next operation consumes the
shape.
Replaces the AGPL-3.0 license text with the canonical Apache License 2.0
and updates every reference: pyproject trove classifier, both README
license sections, and the skill frontmatter. The article drafts under
docs/ are untracked and were updated separately.
Two agent-SDK quality rulings from the u_link misrender review:
- zero-hit guard: requesting a highlight tag that matches no geometry now
raises with the missing tag names and likely causes (typo / wrong build
stage) instead of silently labelling empty air — the guard immediately
caught two real misuses (S1 blank labelled with S3-stage tags; flange
fillet tag lost to a downstream feature rewrite)
- label typography: all font sizes move to final-image-pixel semantics
scaled by supersample; callout lower bound 12->18, legend 10->12 with
wider cap, panel title floor raised; margins scale with font size so
large text does not overflow panels
- fix surfaced while verifying: candidate dataset names referenced by
callouts did not survive the macOS worker hop (surface_group_N vs
surface_groups_N) — re-anchoring silently no-op'd on darwin; naming
aligned and verified end-to-end (occluded rim-fillet anchor re-anchors
onto the visible lower half of the same ring)
Design ruling: exactly one way to produce annotated multi-view renders.
- render_screenshot_rpath always routes through the multi-view grid
engine: view='auto' = the default four-view set, an explicit preset
name or (elevation, azimuth) pair = a single full-frame panel, views=
accepts up to four (elevation, azimuth, label) triples (more are
rejected). The separate single-view code path is deleted (engine,
worker 'sdk' mode and its dispatch), along with the studio-vs-grid
rejection contract
- style defaults to 'studio': the default output is now a black-stage
four-panel grid with camera-derived three-point lighting per panel,
tubed edge ink, supersampling and light-on-dark labels/legend;
style='standard' remains the explicit flat diagnostic look
(render_shape_views_rpath pins standard to keep its inspect semantics)
- zoom applies to single-panel renders; view_up applies to every panel
- framing parity verified at pixel level: single-panel studio through
the new path matches the deleted single-view path output (mean diff
0.59, 1.38% pixels), so render_showcase.py and existing studio assets
are stable
- tests: >4 views rejected, explicit view routes through the grid
engine as one panel, default style is studio (differs from explicit
standard), real-render assertions made behavioral instead of size
thresholds; 31/31 incl. integration suite; API doc regenerated
- render_screenshot_rpath now accepts raw TopoDS_Shape entries alongside
SDK solids: the STEP inspection family renders through the same public
entry with the same edge ink, supersampling and (for solids) tag
highlights/callouts — one API at SDK level, one engine below it
- edge ink + supersampling pushed DOWN into the shared multi-view grid
engine (_render_polydata_views_in_process): the default 4-panel
diagnostic grid and render_shape_views_rpath (inspect channel) now
draw tubed BRep edges with LANCZOS supersampling like the single-view
path; grid review score 9/10 (was thin 1px lines)
- render_shape_views_rpath keeps its signature as the inspect-family
convenience entry (dpi sizing contract preserved: 3240x2160) and gains
the 0.04mm edge deflection cap; it is no longer the only way to render
raw shapes
- ty config: unresolved-import ignored repo-wide — OCP/VTK ship no .pyi
stubs and examples import sibling modules, so import resolution was
~900 diagnostics of environmental noise (verified: zero real defects
in the class); replaces the duck-typing workaround with natural
isinstance(TopoDS_Shape) checks
- gates: 13/13 render tests, mixed [Solid, raw] input smoke, grid visual
review, API docs regenerated, step-inspection domain doc notes the
unified entry
Closes the edge-crispness gap against the three.js viewer; the single-view
standard style now matches its 'light metal + dark ink' look (8/10 vs 9/10
in side-by-side review; remaining gap is lighting, not edges):
- tubed edge ink enabled for BOTH styles (was studio-only): dark
(0.145, 0.165, 0.196) vtkTubeFilter tubes, width as span fraction
(default lowered 0.0026 -> 0.0019 after visual iteration); tube sides
10 -> 14; edge_width_scale=0 falls back to the legacy thin lines
- edge discretization decoupled from the surface tessellation: dedicated
0.04 mm chord-error cap (was the shared 0.35 surface deflection), so
curved edges stay smooth once tubed — same philosophy as the viewer's
.lines.glb assets
- deterministic supersampling: render at integer factor (default 2,
validated 1-3) and LANCZOS-downsample; FXAA off when supersampling;
legend text scales with the factor so the final look is preserved
- coincident-topology polygon offset added (shared walls after booleans)
- tests: supersample writes the requested image size at factors 1/2/3,
out-of-range factor rejected; 13/13 pass; API doc regenerated
Default single-view output changes once, deliberately (thin light lines
-> crisp dark ink); supersample=1 + edge_width_scale=0 restores the
legacy 1:1 look.
Reviewed keep of the BLDC-GIF render pipeline changes (all opt-in; the
default inspection path is byte-identical, verified by A/B render):
- render_screenshot_rpath: + linear_deflection / angular_deflection
(tighten tessellation for high-res diagnosis), style='studio'
(product-shot look: black stage, camera-derived three-point lighting,
metal specular), edge_width_scale (tubed-edge radius as span fraction,
validated [0, 0.02]), view_up (explicit camera roll for inclined
orbits)
- BRep edges as vtkTubeFilter geometry in studio style: LineWidth is
capped ~3px on macOS, so edges must be geometry to stay readable at
high resolution / for small features
- contracts: unknown style, studio+views grid and out-of-range
edge_width_scale are rejected with guidance errors
- tests: three rejection contracts + studio/standard divergence smoke
(size-threshold assertion replaced with a behavioral one: outputs must
differ); 11/11 pass
- API doc regenerated via tools/auto_docs_gen.py (also picked up the
view_up parameter the hand edit had missed)
- examples/20 render_showcase.py: four-module axial explode (ESC /
motor / two-stage reducer / output shaft) with concentric radius-band
peeling, inclined camera orbit, exploded turntable GIF export