@feedmepos/mf-miniprogram-v2 0.2.9-dev.8 → 0.2.9

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.
Files changed (26) hide show
  1. package/dist/{App-DvS0M-h7.js → App-DDgjAONU.js} +3 -3
  2. package/dist/{BrandFontPicker-D8OXBoHt.js → BrandFontPicker-BVfiQBLP.js} +1 -1
  3. package/dist/BrandKitView-BLH-bglF.js +329 -0
  4. package/dist/{ControlPlaneView-CgALjn7t.js → ControlPlaneView-B852gLmR.js} +9058 -8599
  5. package/dist/{EcosystemView-BMleE1Oz.js → EcosystemView-BY2B_LEL.js} +5 -5
  6. package/dist/{LegacyWorkspaceEntry-DBIDEJNj.js → LegacyWorkspaceEntry-DrL-C0xx.js} +1 -1
  7. package/dist/{MobileProjectDialog-B3fhhssO.js → MobileProjectDialog-DsXmMUHH.js} +2 -2
  8. package/dist/{MobileProjectsView-BQ3f5seS.js → MobileProjectsView-CMj0mnZh.js} +4 -4
  9. package/dist/{ModuleCenterView-_yy5EJVi.js → ModuleCenterView-DG7ea0p5.js} +1 -1
  10. package/dist/{ModuleDetailView-oe44R9vG.js → ModuleDetailView-DweKadjB.js} +1 -1
  11. package/dist/{PagesView-CRJ9PifL.js → PagesView-W8d-G5HZ.js} +1 -1
  12. package/dist/{PortalSettingsView-CP87BEmb.js → PortalSettingsView-DFsXYy48.js} +10 -10
  13. package/dist/{TemplateCenterView-Kl3rlE4I.js → TemplateCenterView-BH3C5h50.js} +2 -2
  14. package/dist/{WorkspaceEntryView-hi6v5jO2.js → WorkspaceEntryView-Dx8stquZ.js} +1 -1
  15. package/dist/app.js +11 -11
  16. package/dist/{controlPlane-D17RrVO0.js → controlPlane-CiuLVd7s.js} +19 -18
  17. package/dist/{localPreference-cX7JCvEc.js → localPreference-Cdti49bE.js} +2 -2
  18. package/dist/package.json +1 -1
  19. package/dist/{portalContext-BWcPaz4H.js → portalContext-CCW6O5KF.js} +2 -2
  20. package/dist/{routes-D17DkfPa.js → routes-W8KfuhWL.js} +12 -2
  21. package/dist/style.css +1 -1
  22. package/dist/useBrandKit-fmzepsFY.js +1096 -0
  23. package/dist/{useModuleCatalog-D_F-vVPX.js → useModuleCatalog-C7kO_Rjg.js} +2 -2
  24. package/package.json +1 -1
  25. package/dist/BrandKitView-lDQ2s5BD.js +0 -276
  26. package/dist/useBrandKit-C8qxHPWH.js +0 -1048
@@ -1,6 +1,10 @@
1
1
  const t = (e, s) => `/api/businesses/${e}/projects/${s}`, i = {
2
2
  projects: (e) => `/api/businesses/${e}/projects`,
3
3
  portalContext: (e) => `/api/businesses/${e}/portal-context`,
4
+ /** The editable slice of the business's BrandKit, proxied to brand-app (Remy's fm-miniprogram MCP). */
5
+ brandKit: (e) => `/api/businesses/${e}/brandkit`,
6
+ pwaConfig: (e) => `/api/businesses/${e}/pwa-config`,
7
+ configChange: (e, s) => `/api/businesses/${e}/config-changes/${s}`,
4
8
  project: (e, s) => t(e, s),
5
9
  provision: (e, s) => `${t(e, s)}/provision`,
6
10
  refreshSlug: (e, s) => `${t(e, s)}/refresh-slug`,
@@ -21,6 +25,12 @@ const t = (e, s) => `/api/businesses/${e}/projects/${s}`, i = {
21
25
  restoreCheckpoint: (e, s, a, p) => `${i.checkpoints(e, s, a)}/${p}/restore`,
22
26
  previewBridgeTicket: (e, s, a) => `${i.session(e, s, a)}/preview-bridge/ticket`,
23
27
  previewBridgeSocket: (e, s, a) => `${i.session(e, s, a)}/preview-bridge/socket`,
28
+ /** Where a tab deposits its current token when the agent's server-run tools
29
+ * find the session's parked one expired (control-plane agent-credential.ts). */
30
+ agentCredential: (e, s, a) => `${i.session(e, s, a)}/agent-credential`,
31
+ /** The agent's dish-photo proposals for a session, and the merchant's answer to one. */
32
+ dishPhotoProposals: (e, s, a) => `${i.session(e, s, a)}/dish-photo-proposals`,
33
+ decideDishPhotoProposal: (e, s, a, p, n) => `${i.session(e, s, a)}/dish-photo-proposals/${p}/${n}`,
24
34
  uploads: (e, s, a, p = "") => `${i.session(e, s, a)}/uploads${p ? `?${p}` : ""}`,
25
35
  archive: (e, s, a) => `${i.session(e, s, a)}/archive`,
26
36
  commit: (e, s, a) => `${i.session(e, s, a)}/commit`,
@@ -47,8 +57,8 @@ const t = (e, s) => `/api/businesses/${e}/projects/${s}`, i = {
47
57
  start: (e, s, a) => {
48
58
  const p = new URLSearchParams();
49
59
  e && p.set("businessId", e), s && p.set("projectId", s), a && p.set("sessionId", a);
50
- const r = p.toString();
51
- return `/api/start${r ? `?${r}` : ""}`;
60
+ const n = p.toString();
61
+ return `/api/start${n ? `?${n}` : ""}`;
52
62
  },
53
63
  opencode: (e = "") => `/api/opencode${e ? `/${e.replace(/^\/+/, "")}` : ""}`,
54
64
  /** The shared component library's catalog. Deliberately not under a