Command ids are SolveCraft's own: 173 ids that were another product's internal command ids become dotted, lower-case ids (<area>.<thing>[.<variant>]: solid.extrude, sketch.rectangle.two_point, sheet.flange, joint.drive, ...), in the registry, toolbar, dialogs, shortcuts, palette, control channel, MCP, examples, scenarios and docs
The old ids live only in crates/engine/src/legacy_ids.rs (the legacy migration table): find_command maps them, so old scripts, recipes and control calls keep working, and saved shortcuts, recent and pinned commands are migrated on load (designs store no command ids). Parity maps the observed catalog ids to ours through xtask/data/fusion-ids.tsv. The agent rule now reads: our own dotted id, never another product's. Cargo.toml's repository points at github.com/bherbruck/solvecraft. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
740360d7c3
commit
d10312b7fd
158 files changed
+3611
-3205
No files matched your search
+9
-9
@@ -70,7 +70,7 @@ Errors: an unknown tool or arguments that don't match the tool's schema are JSON
|
||||
result with `isError: true` and the engine's message, which the model can read and correct.
|
||||
|
||||
`batch` rollback undoes as many steps as the batch added to the undo history; batches that
|
||||
themselves call `UndoCommand`, `NewDocumentCommand` or `doc.open` are not rolled back exactly.
|
||||
themselves call `edit.undo`, `file.new` or `doc.open` are not rolled back exactly.
|
||||
|
||||
## A typical session
|
||||
|
||||
@@ -78,14 +78,14 @@ themselves call `UndoCommand`, `NewDocumentCommand` or `doc.open` are not rolled
|
||||
→ {"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"me","version":"1"}}}
|
||||
→ {"jsonrpc":"2.0","method":"notifications/initialized"}
|
||||
→ {"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"batch","arguments":{"commands":[
|
||||
{"command":"SketchCreate","params":{"plane":"XY"}},
|
||||
{"command":"ShapeRectangleTwoPoint","params":{"p0":[0,0],"p1":[40,30]}},
|
||||
{"command":"SketchStop"},
|
||||
{"command":"Extrude","params":{"distance":20}},
|
||||
{"command":"FusionFilletEdgesCommand","params":{"edges":[[0,0,10]],"radius":3}},
|
||||
{"command":"SketchCreate","params":{"plane":"XY"}},
|
||||
{"command":"CircleCenterRadius","params":{"center":[20,15],"radius":5}},
|
||||
{"command":"Extrude","params":{"distance":20,"operation":"cut"}}]}}}
|
||||
{"command":"sketch.create","params":{"plane":"XY"}},
|
||||
{"command":"sketch.rectangle.two_point","params":{"p0":[0,0],"p1":[40,30]}},
|
||||
{"command":"sketch.finish"},
|
||||
{"command":"solid.extrude","params":{"distance":20}},
|
||||
{"command":"solid.fillet","params":{"edges":[[0,0,10]],"radius":3}},
|
||||
{"command":"sketch.create","params":{"plane":"XY"}},
|
||||
{"command":"sketch.circle.center","params":{"center":[20,15],"radius":5}},
|
||||
{"command":"solid.extrude","params":{"distance":20,"operation":"cut"}}]}}}
|
||||
← {"jsonrpc":"2.0","id":2,"result":{"content":[{"type":"text","text":"{\"ok\": true, \"completed\": 8, \"results\": [...]}"}]}}
|
||||
→ {"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"measure","arguments":{}}}
|
||||
← … "total": {"volume_mm3": 22390.6, …}
|
||||
|
||||
Reference in new issue
Block a user