@casys/mcp-prusaslicer 0.5.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -17,6 +17,32 @@ This is a slicing estimate, not printer telemetry or a price quote. It complemen
17
17
  and [`mcp-calculix`](https://github.com/superWorldSavior/mcp-calculix), which performs
18
18
  FEA.
19
19
 
20
+ ## Widgets
21
+
22
+ Results are shown as small, individual MCP App widgets, one reading each, never a
23
+ dashboard. Each widget is its own `ui://mcp-prusaslicer/<widget>` resource and adapts to
24
+ the width its host grants (a Compose board snaps its resize handle between
25
+ `supportedWidths`; a standalone host gets the widest).
26
+
27
+ | Widget (`ui://mcp-prusaslicer/…`) | Kind | Shows | `supportedWidths` |
28
+ | --------------------------------- | ----- | -------------------------------------------------------------- | ----------------- |
29
+ | `print-estimate` | stat | Print time with 1 to 3 filament numbers (mass, length, volume) | 280, 380, 520 |
30
+ | `slicing-profile` | table | Effective slicing parameters read back from the G-code | 320, 440, 640 |
31
+
32
+ Smallest width: the essential (print time and one number; 4 parameters). Middle: the
33
+ usual reading (8 parameters, units, override markers). Largest: the full detail of that
34
+ one thing (silent-mode time, overrides, not-checked list; all 14 parameters with their
35
+ PrusaSlicer key) with a provenance footer (engine, G-code, STL, profile and config
36
+ SHA-256). `prusaslicer_estimate_fff` and `run_snippet` advertise `print-estimate` by
37
+ default; a board selects the other widget for the same result by resource URI. Mass is
38
+ shown only when the slicer reported it. `SLICER_WIDGETS` (exported from `mod.ts`) lists
39
+ URIs, kinds and `supportedWidths` for a board to read:
40
+
41
+ ```ts
42
+ import { SLICER_WIDGETS } from "jsr:@casys/mcp-prusaslicer";
43
+ // { resourceUri: widget.uri, supportedWidths: widget.supportedWidths }
44
+ ```
45
+
20
46
  ## Current release 0.4.0
21
47
 
22
48
  The published 0.4.0 image bundles PrusaSlicer 2.9.2 and runs without a display. It