Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,22 @@ see the notices in the README.

### Fixed

- **CI on `main` is green again.** The usage statistics page (#383) gives
its table headers a `scope` (accessibility check), its background and
reporting functions are named in the audit guard's `NOT_AUDITED` list with
their reasons, the web module list is in rustfmt's order, and the error
page test expects the escaped `/` MiniJinja writes (#381).
- **SolidCraft plugin: *status* and *check* run again, and each button has
its own label.** SolidCraft refused both with *permission denied: edit
command document.metadata from read entry*, because it classes the
commands they read with as edit commands, so they are now declared `edit`
(they still change nothing). The four ribbon buttons, all labelled
*TeamCraft* before, now read *TeamCraft status*, *Check for TeamCraft*,
*Link to TeamCraft item* and *Unlink from TeamCraft*.
Failures explain themselves: bad input names the field, damaged TeamCraft
data in a design is reported with the fix, and *check* never reports
*ready* when it could not read the BOM or the linked designs. All four
entries were run on SolidCraft 0.45.0 (flatpak) through `solidcraft-cli`.
- **Desktop: a slow STEP export no longer holds the check-in hostage**
(#342). With *Create STEP exports* ticked, the files are uploaded first
(parked), then exported, then checked in with the STEP files. *Cancel*
Expand Down
17 changes: 17 additions & 0 deletions docs/src/research/solidcraft-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,23 @@ Both are already skipped by the desktop app's `is_ignored`.
SolidCraft's plugins are sandboxed WebAssembly components without sockets,
HTTP or fetch: an add-in inside SolidCraft cannot talk to a TeamCraft server.

An entry declared `"effect": "read"` may only call commands SolidCraft's
command catalog classes as `read`; anything else fails with *permission
denied: edit command … from read entry*. A command is `edit` unless its
spec says it is read-only, and `document.metadata`, `assembly.bom` and
`component.links` do not (SolidCraft's open source, `crates/engine/src/cmd/`
and `crates/craft-plugin-wasm/src/native.rs`, as of November 2026). So the
plugin's `status` and `check` entries are declared `edit` even though they
only read. A ribbon slot's `name` is the label of the entry's button
(`crates/ui-egui/src/plugin_menu.rs`).

A command that fails or is refused inside an entry ends the whole run: the
host records the first failure and returns it as the entry's result, even when
the guest handles the error (`crates/craft-plugin-wasm/src/native.rs`,
`fail` and `check`; seen on SolidCraft 0.45.0 with `solidcraft-cli`). A part
without components answers `assembly.bom` with no rows and
`component.links` with no links, so neither fails on a plain part.

## Decision

* Read `.sc` designs on the server with TeamCraft's own bounded ZIP/JSON
Expand Down
Loading
Loading