Commit Graph

568 Commits

Author SHA1 Message Date
NiJingzhe 9b3b1ab2cf fix(editor): sca cell finds the editor through proxies and reports what it failed to reach
A container's http_proxy swallowed the health check of a 127.0.0.1 editor url
and the miss was read as "no editor is running" — both the record's url (now
always the loopback) and the check (now a proxy-bypassing opener) are fixed,
and a record whose server does not answer is an error naming the record and
url, not a silent fallthrough. Reading the file as a fallback says so on
stderr. Cell feedback: put/insert/run carry console and the not-healthy
dependents, the swept dependents run, and a failing cell names its upstream
(the failing ancestors first) with marimo's own dependency semantics.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-15 20:02:04 +08:00
Ni Jingzhe 750dad08e2 Merge pull request #49 from PhySpace/release/2.2.4
release: 2.2.4
2026-10-15 02:48:20 +08:00
NiJingzhe 1a46ccb238 release: 2.2.4
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-15 02:32:42 +08:00
Ni Jingzhe b253a6b8ca Merge pull request #48 from PhySpace/dev
Editor: reliable publish-error reporting, workspace-scan scope docs, drop the marimo button
2026-10-15 02:30:54 +08:00
NiJingzhe fb7218b145 fix(editor): remove the header's jump-to-marimo button
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-15 02:06:31 +08:00
NiJingzhe f33a84847e docs(skill): which notebooks the workspace scan lists
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>
2026-10-15 02:06:31 +08:00
NiJingzhe 678cc0f376 fix(editor): a failed publish is told on every run someone asked for, and to a late page
The page's veil lifts on a preview or an error. A publish error was deduped
per identical message with no reset when a new run began, so a repeat of the
same failure (a rerun after the first report) stayed silent: no preview, no
error, and the page waited out its three-minute veil. The dedup is kept for
the parameter burst; discrete runs (page commands, agent cell commands, a
file change, a module reload, a param commit) reset it. A page that connects
after the failure is told the last error at the end of the handshake.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-15 02:06:30 +08:00
Ni Jingzhe 30627c5343 Merge pull request #47 from PhySpace/dev
release: 2.2.3
2026-10-14 15:55:58 +08:00
Ni Jingzhe cd29762c88 Merge pull request #46 from PhySpace/release/2.2.3
release: 2.2.3
2026-10-14 15:35:23 +08:00
NiJingzhe 794d9a5331 release: 2.2.3 (not 2.3.0)
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>
2026-10-14 15:35:04 +08:00
Ni Jingzhe 3f19add266 Merge pull request #45 from PhySpace/release/2.3.0
release: 2.3.0
2026-10-14 15:33:06 +08:00
NiJingzhe f90ae2d0fe release: 2.3.0
Version bump, changelog heading, update notes (EN/中文), SKILL.md metadata, README.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 15:32:41 +08:00
Ni Jingzhe 8091d2933e Merge pull request #44 from PhySpace/fix/editor-external-edits
fix(editor): take in external edits; sca cell / sca new
2026-10-14 15:31:34 +08:00
NiJingzhe 3d4e789da6 fix(editor): take in edits made to the notebook file; sca cell / sca new
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>
2026-10-14 15:30:40 +08:00
Ni Jingzhe 36cfd2f78b Merge pull request #43 from PhySpace/dev
release: 2.2.2 — SDK code completion and new notebooks in the editor
2026-10-14 01:35:59 +08:00
Ni Jingzhe 94c42a3329 Merge pull request #42 from PhySpace/release/2.2.2
release: 2.2.2
2026-10-14 01:19:01 +08:00
NiJingzhe f2ef7fa2ab docs(readme): the update notes cover only the latest version
The section accumulated 2.2.1 and 2.1.3b1 items; it now describes 2.2.2 and points to the
changelog and docs/updates for earlier versions.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 00:59:47 +08:00
NiJingzhe 4a03c47147 release: 2.2.2
Version bump, changelog heading, update notes (EN/中文), SKILL.md metadata, README.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 00:58:26 +08:00
Ni Jingzhe cf791cda32 Merge pull request #41 from PhySpace/feat/editor-new-entry
feat(editor): create a notebook from the workspace tab
2026-10-14 00:57:38 +08:00
NiJingzhe 19f0dc2f45 Merge dev into feat/editor-new-entry; changelog entries under Unreleased
The completion entry (#40) had landed in the 2.2.1 section; both entries are under
Unreleased now, with the editor-configuration fix.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 00:39:51 +08:00
Ni Jingzhe b8bf734731 Merge pull request #40 from PhySpace/feat/editor-completion
feat(editor): code completion from the SDK; ( writes the required name= parameters
2026-10-14 00:28:58 +08:00
NiJingzhe c04f8b5528 feat(editor): create a notebook from the workspace tab
A 'new' action in the notebooks header: a name (checked against the template's rule and the
existing files), part or assembly (assembly starts with the first two parts of the workspace),
create. An empty workspace opens on the workspace tab with the form shown. Server errors (a
taken name) are shown in the form.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 00:24:48 +08:00
NiJingzhe 5aa9f53468 feat(editor): code completion from the SDK — scad. lists functions, ( writes the required name= parameters, Tab moves between them
- GET /api/sdk: the running package's public API (names, parameters, which are required, summaries)
  from inspect, for scad, scad.ql and scad.std.<module>
- editor-web/src/lib/sdk-complete.ts: member completion (scad., scad.ql., ql., Q.), snippet on accepting
  a function or typing ( after a known name, name= completion inside calls (required first, above
  Python's builtins), Tab accepts a suggestion and then moves between parameters
- the editor wrapper rebuilt its configuration on every render (new onChange / basicSetup each time),
  which drops a snippet in progress; both are stable now
- popup styled to the editor's themes

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-13 23:29:13 +08:00
Ni Jingzhe 59c6ed82a9 Merge pull request #39 from PhySpace/dev
release: 2.2.1 — the code-first editor, the agent landing path, build123d modeling features
2026-10-13 18:19:16 +08:00
Ni Jingzhe 22387222d1 Merge pull request #38 from PhySpace/release/2.2.1
release: 2.2.1
2026-10-13 18:02:39 +08:00
NiJingzhe afe4b526bc release: 2.2.1
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>
2026-10-13 17:48:10 +08:00
Ni Jingzhe d9c7449cdd Merge pull request #37 from PhySpace/fix/build123d-ftc-validation
v2.2.0b1 feat: add build123d FTC conversion and validation
2026-10-13 17:29:20 +08:00
NiJingzhe 90213bf693 test: follow the exact volume integral (Gauss-Kronrod) in two numeric expectations
- Gordon patches sewn into a cube: the knot-span integral gives the exact
  512000 mm3; the old 512019.2 was the fixed-order integrator's overshoot.
- Silent-garbage fillet: the degenerate solid now measures 0 instead of a
  phantom 1036; the exit check still raises BlendVolumeViolation, so accept
  both messages.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-13 17:13:04 +08:00
Ni Jingzhe 17d6eef9c1 Merge pull request #36 from PhySpace/feat/editor-light-mode
feat(editor): light mode
2026-10-13 17:08:54 +08:00
Ni Jingzhe 0a6e97a930 Merge pull request #35 from PhySpace/docs/readme-editor
docs(readme): lead with the agent landing line; the new editor replaces Re-Studio
2026-10-13 17:08:12 +08:00
yuliuse 3c15754221 fix: harden build123d FTC tracing replay and validation 2026-10-13 15:58:29 +08:00
NiJingzhe d8a654c162 feat(editor): light mode
Follows the system theme, with a header button cycling system/light/dark
(remembered). The page colors are CSS variables for both palettes; the 3D
viewport (background, edges, grid, axes, vertex points, selection), the
code editor and the loading veil switch with it, in place.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-13 15:30:22 +08:00
NiJingzhe 8816d511b0 docs(readme): lead with the agent landing line; the new editor replaces Re-Studio
- 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>
2026-10-13 13:22:47 +08:00
Ni Jingzhe 2f81fcdd18 Merge pull request #34 from PhySpace/feat/editor-runtime-integration
feat: code-first editor (sca edit) and the agent landing path
2026-10-13 13:14:30 +08:00
NiJingzhe ac082e1932 ci: run the editor tests, kernel included
The editor's packages join the dev group so the main job no longer skips
test_editor.py, and a separate job runs it with SCA_EDITOR_E2E=1 to boot a real
marimo kernel.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-13 13:02:16 +08:00
NiJingzhe 57f81d7922 ci: add pymupdf to the dev dependency group
CI syncs only the dev group; three drawing tests import pymupdf, which became an
optional extra, so collection failed. Putting it in the group keeps local
uv sync --group dev able to run the whole suite.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-13 12:50:10 +08:00
NiJingzhe 86522a19bc docs(readme): the agent-landing line and the editor install
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 23:27:54 +08:00
NiJingzhe e7728e302e docs: landing.md, the script an agent follows to land a user on the SDK
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>
2026-10-12 23:25:31 +08:00
NiJingzhe 6d1ddb5282 feat(cli): sca example, sca skill where; ship the editor UI and the demo in the wheel
- 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>
2026-10-12 23:21:58 +08:00
NiJingzhe 2cb2039940 chore: stop tracking design-docs and ignore it
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 22:59:36 +08:00
NiJingzhe 9edb8d4882 chore: stop tracking local tooling directories (.agents, .claude, .omp)
They are ignored now; the files stay on disk.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 19:59:23 +08:00
NiJingzhe 5a23dcf110 chore: ignore sandbox-envs and local tooling directories
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 19:50:37 +08:00
NiJingzhe 75e6be2bd6 chore: ignore the .marimo.toml that sca edit provisions
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 19:40:54 +08:00
NiJingzhe a9fc2aa410 feat(editor): log dock with re-evaluation progress; ordered notebook switching
- bottom dock: log of events/errors, progress of the cells being re-evaluated,
  running/queued/blocked on cells; errors leave the header
- opening notebooks is ordered (latest wins), a superseded open ends quietly,
  the list highlights the notebook being opened immediately
- boot waits for the instantiate run before publishing; a failing setup is
  reported as the cause; refreshed pages load an unchanged model; viewport
  redraws after resize

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 17:53:00 +08:00
NiJingzhe 4061d3cca5 fix(scene): edges no longer sink behind coarsely tessellated faces
Edges and faces are tessellated separately, so a mesh chord can bulge past an
edge's polyline and break it into dashes. The edge shader now moves its depth
0.4 mm towards the camera (screen position unchanged).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 17:04:18 +08:00
NiJingzhe 701640dbf9 fix(editor): boot the kernel non-interactively for notebooks with inline dependencies
marimo asks whether to sandbox such a notebook and waited on stdin forever
("marimo not ready after 60s"). Pass --no-sandbox and close stdin.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 16:52:52 +08:00
NiJingzhe 26acbf2192 feat(editor): live preview path — models reach the viewport without building a package
The kernel publishes a SCAPREV1 preview (triangles, edges, vertices, face/edge
groups) straight from the solids; the viewer loads it, and per-entity details
are fetched on demand (entity.info) before a selection cell is written.
Previews are cached per dependency signature for instant revisit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 07:29:53 +08:00
NiJingzhe 10d9ecb5c4 feat(scene): preview — a product's geometry straight from its solids
scene.preview makes what a viewer under edit needs, without a package: the
triangles, edge segments and vertices of each part, the index range of every
face and edge (so they can be highlighted and picked), each part once with its
instances' placements, and entity_info for one picked entity (worked out on
demand; the same properties the package sidecar holds). Geometry is kept per
(BREP content, tolerance), so a part that did not change previews for free even
if its object was rebuilt. Entity ids and properties match the package's.

Solids no longer build a mesh when created: nothing read it while modeling, and
every intermediate solid paid about 20% of the run for one.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 07:20:32 +08:00
NiJingzhe 3c104da9ca feat(editor): stop button; switching back to a notebook shows it at once
A cell's run button is a stop button while the kernel runs it (so is run-all in
the header); stopping interrupts the kernel and drops the work queued behind it.
The server forwards marimo's live cell states.

The editor remembers each notebook's last published package under a digest of
everything the model depends on (notebook, modules, children, data, saved
values, versions); switching back shows that model and the cells from the file
immediately while the kernel boots, and the kernel's own publish only reloads
the view if the model differs. Revisiting an assembly went from 16.5 s to 0.3 s.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 05:48:39 +08:00
NiJingzhe 058310f2ca fix(editor): stop the bridge interrupting long cells; calmer loading veil
marimo interrupts the kernel when the client of /api/kernel/execute
disconnects. The bridge's scratch calls had client timeouts (the 5 s watchdog
ping: 10 s; the idle probe: 15 s), so any cell that ran longer than that - a
use() of a child notebook - was killed with KeyboardInterrupt and the
product was missing. Scratch calls now wait without a timeout and the
watchdog asks /api/sessions instead.

The loading veil's swell is one long wave and its dots are dimmer.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-11 22:47:29 +08:00