@womp/mcp-ui 0.1.10 → 0.1.11

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
@@ -203,10 +203,17 @@ recognises it. Where the card differs, it is because MCP differs:
203
203
  `scripts/gen-pantone.mjs <path to swan-frontend's PantoneCoatedColors.js>`;
204
204
  regenerate it if the frontend's list changes. Colour never re-quotes — it
205
205
  never changes the price.
206
- - **Hollow never orders.** Escape holes are placed in the editor, so choosing
207
- Hollow shows its price and turns the button into "Continue on womp.com",
208
- which calls `prepare_print` and opens the project. The backend refuses
209
- `hollow: true` outright; the card never sends it.
206
+ - **Hollow never orders, and since v1 is not even shown.** Escape holes are
207
+ placed in the editor, so choosing Hollow shows its price and turns the button
208
+ into "Continue on womp.com", which calls `prepare_print` and opens the
209
+ project. The backend refuses `hollow: true` outright; the card never sends it.
210
+ The whole section is driven by the quote's `hollow` row, which swan-backend
211
+ stopped publishing (`gc.mcp.printHollowPricing`, off) — so the card hides it
212
+ with no change of its own, published version included.
213
+ - **Which materials appear is the backend's call.** The tiles are the quote's
214
+ `materials` array verbatim, and swan-backend now sends only what chat sells
215
+ (`gc.mcp.printMaterials`; v1 is Clear + Tinted clear). With no Enterprise entry
216
+ in the list the disclosure below hides itself — again, no card change.
210
217
  - **Gated Enterprise materials stay visible**, with a crown, behind a
211
218
  disclosure. Tapping one keeps the current selection and shows the
212
219
  contact-sales note (the backend's `contactUrl`) — the panel's dialog, flattened.
@@ -248,9 +255,13 @@ the card itself stayed 360px. Every grid in the card is
248
255
  `grid-template-columns: minmax(0, 1fr)` and the inputs have `width: 0` as their
249
256
  flex basis. If a row overflows, look there first.
250
257
 
251
- The stub takes three switches for the states a default account never shows:
258
+ The stub takes five switches for the states a default account never shows:
252
259
  `FAKE_ENTERPRISE=1` (Enterprise materials orderable), `FAKE_PRO=1` (hollow
253
- priced as available), `FAKE_REPAIRED=1` (the repaired / non-manifold callouts).
260
+ priced as available), `FAKE_REPAIRED=1` (the repaired / non-manifold callouts),
261
+ `FAKE_ALL_MATERIALS=1` (the whole catalog, i.e. before the v1 narrowing) and
262
+ `FAKE_HOLLOW=1` (quotes carry the hollow row again, which brings the card's
263
+ Solid/Hollow section back). The last two default to what swan-backend now
264
+ defaults to, so the card meets the shipped contract here.
254
265
  It also keeps the last `sync_print_config` and merges it into `add_to_cart` /
255
266
  `prepare_print` the way the server does — module scope, not inside
256
267
  `buildServer()`, which runs per request exactly as swan-backend's does.