From a75eca0eeba3c81db06fe8db5dc927064b3fcc00 Mon Sep 17 00:00:00 2001 From: fork Date: Sun, 22 Nov 2026 10:41:56 +0100 Subject: [PATCH] SolidCraft plugin: read entries show their answers; one request per action SolidCraft's entry dialog shows a result only for read entries; an edit entry just closes. status, check and live had to be edit entries (document.metadata is edit-classified), so their answers never appeared. They are read entries again over document.inspect (read-classified, metadata + unsaved flag); check and live say when the design has unsaved changes. The BOM and link checks need edit-classified commands and moved to check-assembly. Request files are request-..json: asking twice replaces the first, and live shows requests the desktop app has not taken yet (desktop/src/scbridge.rs follows the name). On SolidCraft 0.45.0 (solidcraft-cli plugin test --require-cases): 16 cases pass. A guard test pins that read entries call only read commands. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 10 + desktop/README.md | 2 +- desktop/src/scbridge.rs | 7 +- docs/src/research/solidcraft-bridge.md | 43 ++- plugins/solidcraft/README.md | 23 +- plugins/solidcraft/plugin.json | 14 +- plugins/solidcraft/src/bridge.rs | 19 +- plugins/solidcraft/src/logic.rs | 254 +++++++++++++----- .../request-PRT_2D000042.A.check_in.json | 1 + .../solidcraft/tests/check-assembly-part.json | 1 + .../tests/live-pending-request.json | 1 + 11 files changed, 269 insertions(+), 106 deletions(-) create mode 100644 plugins/solidcraft/tests/bridge-pending/request-PRT_2D000042.A.check_in.json create mode 100644 plugins/solidcraft/tests/check-assembly-part.json create mode 100644 plugins/solidcraft/tests/live-pending-request.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 21021873..b3ea2543 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,16 @@ see the notices in the README. ### Added +- **SolidCraft plugin: answers you can see.** SolidCraft shows the result of a + plugin entry only for read entries, so *TeamCraft status*, *Check for + TeamCraft* and *TeamCraft live status* are read entries again, over + `document.inspect`; until now their answers never appeared in SolidCraft's + dialog. *check* and *live* also say when the design has unsaved changes. + The BOM and linked-design checks moved to *Check assembly for TeamCraft* + (an edit entry: its findings go to the CLI, MCP and the assistant). + Requests now have one file per revision and action, so asking twice does + not ask twice, and *live* shows requests the desktop app has not taken yet. + 16 cases pass on SolidCraft 0.45.0. - **Desktop: the problem-report tracker as a policy** (#378, #381). The managed-deployment policy `ReportUrl` (registry, macOS profile, `/etc/teamcraft/policies.json`; ADMX/ADML and examples updated) names the diff --git a/desktop/README.md b/desktop/README.md index 25b9e130..9766fe50 100755 --- a/desktop/README.md +++ b/desktop/README.md @@ -35,7 +35,7 @@ TeamCraft server – it is a client, not an offline copy. | Park | *Park…* (Workspace tab, *More ▾*, the check-in dialog): the ticked files go up as new versions through the upload endpoint (`POST …/files`) and the check-out **stays** – work in progress survives a lost laptop. After somebody else released your check-out, the Workspace tab shows *Released by X; your local changes are kept and need a new check-out* (`released` of the server's file status) | | Native CAD previews | The preview image stored in Inventor and Solid Edge files in the Files tab, a picture of the 3D preview for NX and SOLIDWORKS files; on Windows *STEP* in the Workspace tab and *Create STEP exports … first* at check-in export with the installed Inventor or Solid Edge (COM automation through Windows PowerShell; uses your own licence); on every system SolidCraft designs (`.sc`) export through SolidCraft's `solidcraft-cli run --in … --out ….stp` (found through `SOLIDCRAFT_CLI`, `PATH` or the default install folders). A failed export never stops the check-in: the file goes without its STEP and the result says why | | SolidCraft item data | *Item data* in the Workspace tab (SolidCraft designs of your check-out, not open in SolidCraft): `solidcraft-cli run