Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
173 commits
Select commit Hold shift + click to select a range
fc72143
feat(io): build a USD stage from an export scene
nodemode-ai Dec 5, 2026
cf2e83f
feat(ui): drive Preferences from one table with search and reset
nodemode-ai Dec 5, 2026
5c86a08
feat(ui): add a node browser, deep search and wire gestures to the graph
nodemode-ai Dec 5, 2026
1a64ea7
feat(commands): export a spin viewer from generated cameras
nodemode-ai Dec 5, 2026
e67434a
feat(scene): add mesh.replace to change a mesh's data in place
nodemode-ai Dec 5, 2026
589478d
fix(ui): paint new shortcut rows and keep the close button reachable
nodemode-ai Dec 5, 2026
d645425
docs(menus): log the floor, cap and hint for point and dropdown menus
nodemode-ai Dec 5, 2026
b1bf2d8
feat(ui): add presentation mode with a shot and configuration strip
nodemode-ai Dec 5, 2026
f7a3ea5
fix(ui): label the shortcuts bar buttons in their text spans
nodemode-ai Dec 5, 2026
f71fbe5
feat(commands): add the uv group for layouts, unwraps and pictures
nodemode-ai Dec 5, 2026
fba5920
feat(i18n): add the keys namespace for the shortcuts editor
nodemode-ai Dec 5, 2026
81ffc7c
docs: describe the shortcuts editor and log its decisions
nodemode-ai Dec 5, 2026
becbca2
fix(menus): keep popup menus under the bar, capped, with a more hint
nodemode-ai Dec 5, 2026
7c88cdf
fix(ui): paint new strip chips at once and hide all presentation chrome
nodemode-ai Dec 5, 2026
78e2641
docs(present): describe presentation mode and log its decisions
nodemode-ai Dec 5, 2026
0835b75
feat(workspaces): add the Workspace menu, full view and section order
nodemode-ai Dec 5, 2026
74e3086
fix(workspaces): sort wrapped sections and keep focus out of panels
nodemode-ai Dec 5, 2026
9a542b1
docs(workspaces): describe workspaces, keys and section order
nodemode-ai Dec 5, 2026
47efdd9
feat(bake): bake the flagged materials of an export scene
nodemode-ai Dec 5, 2026
b027251
feat(commands): build the export scene from the document
nodemode-ai Dec 5, 2026
14bf7a9
feat(commands): export models through export.model and export.formats
nodemode-ai Dec 5, 2026
d015a37
feat(io): read lights, variants and FormShot materials from glTF
nodemode-ai Dec 5, 2026
6a7f4e6
feat(io): find PBR texture sets and give maps their roles
nodemode-ai Dec 5, 2026
8861dbd
fix(dock): match the dock's chord exactly, as the shell does
nodemode-ai Dec 5, 2026
0c58702
fix(measure): move the Measure tool to Shift+M
nodemode-ai Dec 5, 2026
b5aef16
fix(desktop): let the main window go full screen
nodemode-ai Dec 5, 2026
c6e26cb
feat(agent): read and write preferences files for the window
nodemode-ai Dec 5, 2026
1027feb
fix(ui): free the editor close button and keep browser double-clicks
nodemode-ai Dec 5, 2026
6248c49
fix(ui): show Save Selection as Setup again after a browser search
nodemode-ai Dec 5, 2026
50f7d25
fix(ui): keep Preferences steady while searching and resetting
nodemode-ai Dec 5, 2026
11731a7
fix(commands): settle the spin page hint before first paint
nodemode-ai Dec 5, 2026
6908c7a
fix(labels): let a label drag win over the gizmo and finish in order
nodemode-ai Dec 5, 2026
78a21f2
docs(graph): describe the node editor and log the 0.11.0 work
nodemode-ai Dec 5, 2026
cb99072
feat(uv): add the UV engine with unwrapping, relaxing and packing
nodemode-ai Dec 5, 2026
9d33dbe
feat(io): read a USD stage into a raw scene
nodemode-ai Dec 5, 2026
fd2fb2d
docs(prefs): describe the preferences table and log the work
nodemode-ai Dec 5, 2026
b101bb7
fix(uv): stack only mirrored copies, and serve base pictures and exports
nodemode-ai Dec 5, 2026
4ee545d
feat(commands): import MaterialX documents and PBR texture sets
nodemode-ai Dec 5, 2026
c5e6d4b
feat(ui): add the UV editor window
nodemode-ai Dec 5, 2026
b5ba249
refactor(prefs): drop the old shortcut block's helpers and styles
nodemode-ai Dec 5, 2026
ccdc8cb
feat(labels): place labels in the viewport by dragging their footprint
nodemode-ai Dec 5, 2026
e2ac5a3
docs(labels): describe label placement in the viewport and log it
nodemode-ai Dec 5, 2026
72e8a73
feat(commands): add the graph preview worker and node setups
nodemode-ai Dec 5, 2026
78f886a
fix(commands): hide the reset button of the web viewer on the pictures
nodemode-ai Dec 5, 2026
48a71e8
docs(spin): describe the spin viewer export and log its design
nodemode-ai Dec 5, 2026
d573576
feat(io): read Rhino 3DM archives with FormShot's own reader
nodemode-ai Dec 5, 2026
a8f6e24
fix(ui): fix the UV status widths and clear stale chart selections
nodemode-ai Dec 5, 2026
28669e0
fix(io): check 3DM checksums the way openNURBS writes them
nodemode-ai Dec 5, 2026
7e74e80
fix(io): match pxr on asset arrays, small values and renamed fields
nodemode-ai Dec 5, 2026
7add4d8
docs(uv): describe the UV editor and log its engine and window
nodemode-ai Dec 5, 2026
e874bdb
docs(io): describe the 3DM reader and log how it was verified
nodemode-ai Dec 5, 2026
bc06ff2
feat(io): write and read the usdc crate form and USDZ packages
nodemode-ai Dec 5, 2026
a4151ab
refactor(io): satisfy clippy in the crate reader and writer
nodemode-ai Dec 5, 2026
0c46b7e
feat(io): read advanced B-reps, B-spline curves and edge loops in IFC
nodemode-ai Dec 5, 2026
a2f11a1
docs(io): describe the crate form and USDZ packages
nodemode-ai Dec 5, 2026
87c51a9
feat(bake): bake material programs over uv layouts and atlases
nodemode-ai Dec 5, 2026
8da25bb
feat(commands): bake flagged export materials through fsh-bake
nodemode-ai Dec 5, 2026
bf46030
fix(commands): let transmissive surfaces show what is behind them
nodemode-ai Dec 5, 2026
ff6b883
feat(commands): reserve the UV crate and the graph and UV groups
nodemode-ai Dec 5, 2026
fda5300
feat(ui): reserve the editor modules and share the editor window
nodemode-ai Dec 5, 2026
c04b83f
feat(ui): add the shortcuts editor window and key map model
nodemode-ai Dec 5, 2026
572a846
feat(bake): pack atlas charts on a skyline
nodemode-ai Dec 5, 2026
3474554
docs(bake): describe material baking and log it
nodemode-ai Dec 5, 2026
2687235
feat(io): write and parse the usda text form
nodemode-ai Dec 5, 2026
1c4efab
docs(wiki): add the Editors page and say where the editors change a page
nodemode-ai Dec 5, 2026
fb0bc03
fix(i18n): keep Chat as the Hungarian table already has it
nodemode-ai Dec 5, 2026
b059546
feat(i18n): translate the editors strings into Italian
nodemode-ai Dec 5, 2026
94aee7b
feat(i18n): translate the editors and windows strings into Spanish
nodemode-ai Dec 5, 2026
06271b7
feat(i18n): translate the editors and windows into Mexican Spanish
nodemode-ai Dec 5, 2026
b39cb5c
feat(i18n): translate the editors and keys strings into Ukrainian
nodemode-ai Dec 5, 2026
47839e1
feat(i18n): translate the editors strings into Dutch
nodemode-ai Dec 5, 2026
44cb0db
feat(i18n): translate the editor strings into Brazilian Portuguese
nodemode-ai Dec 5, 2026
5b252de
docs(readme): list the editors and tell newcomers where they live
nodemode-ai Dec 5, 2026
eade12f
feat(i18n): translate the editors and keys strings into Turkish
nodemode-ai Dec 5, 2026
a99e4c5
feat(i18n): translate the editors strings into Danish
nodemode-ai Dec 5, 2026
8dc46da
feat(i18n): translate the editors and keys strings into Indonesian
nodemode-ai Dec 5, 2026
16be27b
feat(i18n): translate the editor strings into French
nodemode-ai Dec 5, 2026
e775bda
feat(i18n): translate the editors and settings into Simplified Chinese
nodemode-ai Dec 5, 2026
326ecaa
feat(i18n): translate the editors and settings into Traditional Chinese
nodemode-ai Dec 5, 2026
b738952
feat(i18n): translate the editors and settings strings into Japanese
nodemode-ai Dec 5, 2026
f3d671a
feat(i18n): translate the editors and settings strings into Korean
nodemode-ai Dec 5, 2026
d371ba9
docs(architecture): place the editors in the data flow and input order
nodemode-ai Dec 5, 2026
89083e7
feat(i18n): translate the editor strings into Canadian French
nodemode-ai Dec 5, 2026
997ea22
feat(i18n): translate the editors strings into German
nodemode-ai Dec 5, 2026
81cfb3b
feat(i18n): translate the editors strings into Finnish
nodemode-ai Dec 5, 2026
b9622f0
feat(i18n): translate the editors strings into Norwegian Bokmal
nodemode-ai Dec 5, 2026
759a936
feat(i18n): translate the editors strings into Swedish
nodemode-ai Dec 5, 2026
09ecc61
feat(i18n): translate the editors strings into Russian
nodemode-ai Dec 5, 2026
0083a1c
feat(i18n): translate the editors strings into Polish
nodemode-ai Dec 5, 2026
51fd0b6
feat(i18n): translate the editors strings into Czech
nodemode-ai Dec 5, 2026
2fcdc58
feat(i18n): translate the editors and keys strings into Hungarian
nodemode-ai Dec 5, 2026
f1a5590
feat(i18n): translate the editors and keys strings into Thai
nodemode-ai Dec 5, 2026
5a33f9c
feat(i18n): translate the editors and settings strings into Vietnamese
nodemode-ai Dec 5, 2026
07bcb9f
fix(io): standard normal maps, crate values and pruned scopes in USD
nodemode-ai Dec 5, 2026
380daab
feat(commands): light the web viewer's diffuse from the lamps' positions
nodemode-ai Dec 5, 2026
305ef25
docs(frontend): log the lead fixes and the editors' translations
nodemode-ai Dec 5, 2026
0d34cd8
style(commands): satisfy clippy in the web configurator export
nodemode-ai Dec 5, 2026
e95684c
style(io): satisfy clippy in the USD text, build and import modules
nodemode-ai Dec 5, 2026
56c0983
docs(io): document USD text, export and import
nodemode-ai Dec 5, 2026
926d376
feat(io): write binary glTF from the export scene
nodemode-ai Dec 5, 2026
7ab9c46
fix(io): tangents, shared pictures and exact whites in GLB exports
nodemode-ai Dec 5, 2026
d618597
docs(export): describe model export, the scene mapping and GLB
nodemode-ai Dec 5, 2026
1af98f7
fix(io): detect spaced IFC headers and bound far or huge IFC values
nodemode-ai Dec 5, 2026
e1fbef3
feat(import): let an import leave out a file's FormShot materials
nodemode-ai Dec 5, 2026
be0fbaf
feat(io): read IFC building models with an own Part 21 reader
nodemode-ai Dec 5, 2026
d8871ca
docs(io): describe the IFC reader and log its decisions and checks
nodemode-ai Dec 5, 2026
0f88aef
fix(commands): keep the web page still when the view or message changes
nodemode-ai Dec 5, 2026
aa584b4
fix(io): follow MaterialX includes and bound texture placement chains
nodemode-ai Dec 5, 2026
fb34bc2
docs: describe the web configurator export
nodemode-ai Dec 5, 2026
bbdf07f
feat(io): read MaterialX documents into material drafts
nodemode-ai Dec 5, 2026
edeeefb
fix(io): carry IFC element metadata into the imported parts
nodemode-ai Dec 5, 2026
20b4c36
feat(commands): export the web configurator as a static folder
nodemode-ai Dec 5, 2026
106513e
docs(materials): describe MaterialX and texture set import
nodemode-ai Dec 5, 2026
fc3ee11
feat(import): open USD, USDZ, 3DM and IFC models everywhere
nodemode-ai Dec 5, 2026
1d4e48f
fix(viewport): let a click in the viewport take focus off a control
nodemode-ai Dec 5, 2026
649dfa0
docs(architecture): add the exchange, fsh-bake and the new readers
nodemode-ai Dec 5, 2026
607abd6
docs(output): point to model export, the spin viewer and the web page
nodemode-ai Dec 5, 2026
07b2d72
docs(configurator): describe the web configurator export
nodemode-ai Dec 5, 2026
e9d692a
docs(wiki): add the Exchange page and link it
nodemode-ai Dec 5, 2026
23ee975
docs(readme): list model export, the viewers, the new readers and docs
nodemode-ai Dec 5, 2026
5a1d7d6
docs(claude): note the exchange module, export, USD stage and fsh-bake
nodemode-ai Dec 5, 2026
46eaedd
docs(skills): add the editors sub-skill and route P16 work to it
nodemode-ai Dec 5, 2026
4b77b53
docs(skills): add the exchange sub-skill, its map rows and P16-P17 evals
nodemode-ai Dec 5, 2026
11f0982
docs(import): add the USD, 3DM and IFC readers and the native option
nodemode-ai Dec 5, 2026
7bb5a12
fix(graph): keep a node added at the centre clear of the output node
nodemode-ai Dec 5, 2026
da486b9
feat(service): export folders, downloads and material uploads
nodemode-ai Dec 5, 2026
2306e05
feat(exchange): export and material import dialogs in the window
nodemode-ai Dec 5, 2026
552a24d
docs: describe exchange in the window
nodemode-ai Dec 5, 2026
89fa43e
docs(skills): clear harness validator gates and front-load the trigger
nodemode-ai Dec 5, 2026
2429ed7
chore(release): 0.11.0
nodemode-ai Dec 5, 2026
5c3abf5
feat(io): reserve the export scene, the USD stage and three readers
nodemode-ai Dec 5, 2026
d85b9f3
feat(commands): reserve the bake crate, the export scene and four groups
nodemode-ai Dec 5, 2026
0217b64
feat(ui): reserve the exchange module and its service router
nodemode-ai Dec 5, 2026
c29ec8c
feat(io): write OBJ with MTL, STL and PLY in world space
nodemode-ai Dec 5, 2026
988cd31
fix(import): name USD, USDZ, 3DM and IFC; send USD layers with siblings
nodemode-ai Dec 5, 2026
01be76b
style(import): keep the drop title stretch rule in the import sheet
nodemode-ai Dec 5, 2026
4b6844d
docs: log the native import option, IFC metadata and import fixes
nodemode-ai Dec 5, 2026
1c5af16
feat(i18n): translate the exchange window into Spanish
nodemode-ai Dec 5, 2026
e4e04f3
feat(i18n): translate the exchange window into Mexican Spanish
nodemode-ai Dec 5, 2026
3768986
feat(i18n): translate the exchange window into Brazilian Portuguese
nodemode-ai Dec 5, 2026
f4007da
feat(i18n): translate the exchange window into French
nodemode-ai Dec 5, 2026
84fecbc
feat(i18n): translate the exchange window into Canadian French
nodemode-ai Dec 5, 2026
bf592ce
feat(i18n): translate the exchange window into Finnish
nodemode-ai Dec 5, 2026
8f696f6
feat(i18n): translate the exchange window into Norwegian
nodemode-ai Dec 5, 2026
3ed1675
feat(i18n): translate the exchange window into Swedish
nodemode-ai Dec 5, 2026
7e36400
feat(i18n): translate the exchange window into German
nodemode-ai Dec 5, 2026
8fce826
feat(i18n): translate the exchange window into Italian
nodemode-ai Dec 5, 2026
fac988b
feat(i18n): translate the exchange window into Dutch
nodemode-ai Dec 5, 2026
b0837e8
feat(i18n): translate the exchange window into Danish
nodemode-ai Dec 5, 2026
424c634
feat(i18n): translate the exchange window into Turkish
nodemode-ai Dec 5, 2026
46946b1
feat(i18n): translate the exchange window into Indonesian
nodemode-ai Dec 5, 2026
f61874c
feat(i18n): translate the exchange window into Thai
nodemode-ai Dec 5, 2026
8719a1b
feat(i18n): translate the exchange window into Vietnamese
nodemode-ai Dec 5, 2026
6cf45a6
feat(i18n): translate the exchange window into Simplified Chinese
nodemode-ai Dec 5, 2026
f9cf649
feat(i18n): translate the exchange window into Traditional Chinese
nodemode-ai Dec 5, 2026
875522f
feat(i18n): translate the exchange window into Japanese
nodemode-ai Dec 5, 2026
d5cea96
feat(i18n): translate the exchange window into Korean
nodemode-ai Dec 5, 2026
5a1530a
feat(i18n): translate the exchange window into Russian
nodemode-ai Dec 5, 2026
d0cd2ab
feat(i18n): translate the exchange window into Polish
nodemode-ai Dec 5, 2026
0bb549c
feat(i18n): translate the exchange window into Czech
nodemode-ai Dec 5, 2026
c6da6ca
feat(i18n): translate the exchange window into Hungarian
nodemode-ai Dec 5, 2026
b8f0e73
feat(i18n): translate the exchange window into Ukrainian
nodemode-ai Dec 5, 2026
7bd8c90
fix(export): write clear glass with a white base colour
nodemode-ai Dec 5, 2026
dc2fc6e
fix(export): warn about variants, lights and sizes a format drops
nodemode-ai Dec 5, 2026
b545c33
fix(export): say when bake_size is above the baker's largest picture
nodemode-ai Dec 5, 2026
f3895cd
fix(export): refuse unknown export.model arguments
nodemode-ai Dec 5, 2026
2849a65
docs(native): log the P17 QA export fixes
nodemode-ai Dec 5, 2026
414ceb5
fix(export): carry each light's FormShot JSON so area lights reopen
nodemode-ai Dec 5, 2026
0fdc927
fix(io): say when a file is not USD or a stage holds no mesh
nodemode-ai Dec 5, 2026
7dd1863
fix(io): count 3DM lights and block definition contents in warnings
nodemode-ai Dec 5, 2026
91e891c
fix(commands): refuse unknown arguments of export status and cancel
nodemode-ai Dec 5, 2026
a7274ff
docs: lights in the FormShot JSON, USD variants and reader warnings
nodemode-ai Dec 5, 2026
509cf4f
chore(release): 0.12.0
nodemode-ai Dec 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 14 additions & 0 deletions .agents/skills/formshot-rendering/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,20 @@ The tool list comes from the engine's catalogue. `references/tools.md`, when pre
3. `scene.add_cutaway {cutaway: {shape, cap, targets}}` opens parts; `scene.set_cutaway`, `cutaway.set_enabled` and `cutaway.set_targets` change it.
4. `transport.features` lists each feature with whether the document uses it and whether the GPU renders it; when the GPU refuses, the CPU renders and `render.status` says why.

## Workflow 9: UV layouts and material previews

1. `uv.layout {node, set}` reads one UV set of a part's mesh (or `{mesh}` by key): charts, seams, stretch (1 is none) and overlap. Chart ids from it feed `uv.relax` and `uv.transform`.
2. `uv.unwrap {node, angle, margin, size}` cuts seams, flattens each chart and packs them in one undo step; `uv.relax {iterations}` lowers stretch, `uv.pack` lays the charts out again, `uv.symmetrize {axis, from}` makes both halves share a region of the texture. `uv.add_set`, `uv.copy_set` and `uv.remove_set` manage the sets; `uv.export_layout {path}` writes an SVG or PNG picture.
3. `graph.preview {key, wait_ms}` renders a ball wearing a material for a quick look without touching the live render; `graph.setups` lists saved node setups, `graph.setup_save` and `graph.setup_remove` change them.

## Workflow 10: exchange

1. `export.formats` lists what `export.model` writes (glb, obj, stl, ply, usda, usdc, usdz) with what each carries, its side files and its options. `export.model {path, format, selection_only, hidden}` writes the document as a model file; the format follows the path's extension, a file is written whole or not at all, and the reply's warnings list every approximation.
2. For GLB add `native: true` to keep each material's and light's FormShot JSON so FormShot reopens the file unchanged, and `bake: true` (with `bake_size`) so graphs, labels, projections and slot settings a format cannot map are baked into pictures. OBJ, usda, usdc and USDZ read `bake` too; `ascii` makes STL and PLY text.
3. `export.web {folder, mode: "3d" | "images" | "both"}` writes the web configurator, a static folder that opens from disk; while its pictures render, `export.web_status {folder}` shows each job and `export.web_cancel {folder}` stops the unfinished ones. `export.spin {folder, columns, rows}` renders views around the product through the render queue into a spin viewer; follow it with `export.spin_status {id}` and stop it with `export.spin_cancel {id}`, which leaves no folder.
4. `material.probe_import {path}` reads a MaterialX document, a folder or ZIP of PBR maps without changing the document. Then `material.import_mtlx {path, materials}` adds the materials of a `.mtlx`, or `material.import_maps {path, name, projection}` adds one material per texture set, each in one undo step; neither assigns the new materials, so `material.assign` does.
5. `file.import {path, native: false}` reads a FormShot GLB or USD with its plain materials only; USD, USDZ, 3DM and IFC files open like any other model.

## When something fails

- "locked": the node or a group above it is locked; `scene.set_locked` unlocks it.
Expand Down
296 changes: 288 additions & 8 deletions .agents/skills/formshot-rendering/references/tools.md

Large diffs are not rendered by default.

30 changes: 19 additions & 11 deletions .claude/skills/formshot-harness/SKILL.md

Large diffs are not rendered by default.

54 changes: 54 additions & 0 deletions .claude/skills/formshot-harness/references/evals.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,42 @@ Expected observable behaviour:
- Names `./formshot mcp` (the stdio bridge with autostart) and `POST /mcp` on 127.0.0.1:8300.
- Notes one undo step per mutating command.

### Eval 4: a UV command that keeps undo whole

Prompt: "Add a uv.straighten command to formshot that lines up a chart's border with the U axis."
Expected observable behaviour:
- Loads editors, then command-registry, then verification.
- Puts the algorithm in fsh-uv (fsh-core only, deterministic, no new dependency) and the command in `fsh-commands/src/ext/uv.rs` with a description and JSON schema in `COMMANDS`.
- Writes the result through `mesh.replace`, not a new document command, and remakes tangents when set 0 changes.
- Checks `cargo check --target wasm32-unknown-unknown -p fsh-uv`, runs the command through `formshot-engine dispatch`, reads `uv.layout` stats before and after, and shows one `history.undo` restoring the mesh exactly.
- Updates `docs/UV-EDITOR.md` and logs rationale in `native/HASHOUT_LOG.md` § fsh-uv.

### Eval 5: carry a new material field through export

Prompt: "formshot's GLB export drops the coat tint; carry it where the format can and say where it cannot."
Expected observable behaviour:
- Loads exchange, then io-formats.
- Maps the field once in `fsh-commands/src/exchange/build.rs` (or `maps.rs`) onto `ExportScene`, not in the GLB writer by reading the document.
- Adds a sentence to `warnings` for each format that cannot hold it and updates the table in `docs/EXPORT.md`.
- Validates the GLB with the Khronos glTF validator, reruns the round trip render comparison with and without the FormShot JSON, and shows two exports of one document with equal hashes.

### Eval 6: presentation leaves the document untouched

Prompt: "After leaving formshot's presentation mode the project shows as modified. Fix it."
Expected observable behaviour:
- Loads editors, then ui-shell.
- Traces `frontend/src/ui/present/session.ts`: `history.begin_group` on entering, `history.abandon_group` until the depth returns on leaving, selection and time restored.
- Keeps the chrome hidden by flags without rebuilding regions and reports layout shift measured with the CPU throttled 4x.
- Shows the undo list, redo list and dirty flag equal before entering and after leaving.

### Eval 7: a damaged USDZ

Prompt: "Importing this USDZ crashes the formshot engine."
Expected observable behaviour:
- Loads exchange.
- Looks in `fsh-io/src/usd/usdz.rs` and `usdc/read.rs` for a count or offset used before it was checked, and fixes it so the file gives `malformed` or `unsupported` with a sentence.
- Runs thousands of truncated and bit-flipped copies from a scratch folder outside the repo and reports zero panics; adds no test file.

## Should trigger

- Add a sun light to formshot
Expand All @@ -52,6 +88,17 @@ Expected observable behaviour:
- Add a storage buffer to the fsh-render-gpu kernel
- The formshot viewport chip says streamed frames instead of WebGPU
- Make the formshot gizmo snap rotation to 5 degrees
- The formshot UV editor packs charts with too much margin
- Add a setup to the formshot graph editor's browser
- A rebound shortcut in formshot still shows the old key cap in the menu
- Save my formshot panel layout as a workspace
- Export the formshot document as USDZ for AR
- The GLB export from formshot fails the glTF validator
- Make the formshot web configurator open from file://
- formshot's spin viewer sprite sheet is too large
- Import an IFC building model into formshot
- A Rhino 3DM file imports with missing parts in formshot
- Import a MaterialX material into formshot

## Should not trigger

Expand All @@ -63,3 +110,10 @@ Expected observable behaviour:
- Explain what multiple importance sampling is in general
- Build a skill pack for Terraform modules
- Implement an MCP server for a Slack integration
- Unwrap UVs for a character mesh in Blender (another app's UV editor)
- Export a USDZ from Reality Composer for an iPhone AR quick look (another tool)
- Validate a GLB that a three.js game exports (not a formshot export)
- Change the keyboard shortcuts of VS Code (another program's key map)
- Write a MaterialX shading graph for a game engine (no formshot import)
- Read IFC quantities with ifcopenshell for a cost estimate (no formshot)
- Build a 360 product spin page from photographs (no formshot render)
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ STEP and IGES are read by FormCAD's kernel worker (OpenCascade 8.0.1, release `o
## Procedure

1. Read the logs above, then `fsh-cad/src/lib.rs` and the module you touch.
2. The engine never downloads. The worker is found by `FORMSHOT_CAD_WORKER`, beside the program, then `<cache>/formshot/workers/<tag>/`; the service and `./formshot cad fetch` install it there after checking the pinned record (`RELEASE`, `RECORD_SHA256` in cad.py), `SHA256SUMS` and every file. A new worker release changes those two constants and nothing else.
2. The engine never downloads. The worker is found by `FORMSHOT_CAD_WORKER`, beside the program, then `[cache]/formshot/workers/[tag]/`; the service and `./formshot cad fetch` install it there after checking the pinned record (`RELEASE`, `RECORD_SHA256` in cad.py), `SHA256SUMS` and every file. A new worker release changes those two constants and nothing else.
3. Every worker call goes through `Worker::call` with a timeout and the `Watch`; cancel and timeout kill the child. Worker starts wait `fsh_cad::hello_timeout()` (`FORMSHOT_CAD_HELLO_TIMEOUT`, 120 s by default). The window learns which parts are CAD from `cad.parts`, not from node metadata in a snapshot; a save writes only the sources some part names. Keep `fsh-cad` out of the wasm32 tree (fsh-commands depends on it natively only).
4. CAD reads produce a `fsh_io::RawScene` in metres, Z up, and go through the shared clean-up with instancing off; nodes carry `source.path`, `source.node`, and parts `source.cad`, `cad.mesh`, `cad.quality`, `cad.unit`, `cad.up`. Keep `Engine::import`'s CAD branch at its top and the job path in `ext/import/jobs.rs`.
5. Retessellation and re-import swap meshes with `mesh.add` plus `scene.set_part_mesh`, so part ids, materials, selection and shared meshes survive; never rebuild a part.
6. Kept sources (`fshot:sources/<fnv64>.<ext>`, at most 64 MiB) live in `Preserved::sources` and in the session folder; a change keeps saves without sources byte-identical to older ones.
6. Kept sources (`fshot:sources/[fnv64].[ext]`, at most 64 MiB) live in `Preserved::sources` and in the session folder; a change keeps saves without sources byte-identical to older ones.
7. Hand-offs: readers in `fsh_io::family` recognise what each app writes (GoF manifests, FormSurface map names and templates, writers' generator lines). Anything that arrives on its own is held by the service and offered in the window (deny, once, always per app); only the window's own choice or an agent under MCP consent opens it. No URL scheme, no new file association. A hand-off is one undo step and records `source.app` and the other `source.*` keys.
8. FormCAD, FormSculpt, FormSurface and FormFabric are not edited from here; a missing feature on their side is written down as an ask in the log.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: command-registry
description: "Adds or changes a formshot engine command end to end: the fsh-scene command table, an fsh-commands session command or a command group module in fsh-commands/src/ext, its JSON schema and change level, the catalogue, dispatch through formshot-engine and fsh_py, the MCP tool list, the palette's engine.<name> entries, agents sync and docs. Load when adding a tool, a render or document command, a menu item that runs the engine, or changing dispatch."
description: "Adds or changes a formshot engine command end to end: the fsh-scene command table, an fsh-commands session command or a command group module in fsh-commands/src/ext, its JSON schema and change level, the catalogue, dispatch through formshot-engine and fsh_py, the MCP tool list, the palette's engine.[name] entries, agents sync and docs. Load when adding a tool, a render or document command, a menu item that runs the engine, or changing dispatch."
---

# Command Registry
Expand Down
Loading