@miragon/pulse-widget-shell 0.24.2 → 0.25.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.
Files changed (917) hide show
  1. package/README.md +134 -127
  2. package/dist/caller.d.ts +3 -0
  3. package/dist/caller.d.ts.map +1 -0
  4. package/dist/caller.js +18 -0
  5. package/dist/caller.js.map +1 -0
  6. package/dist/composed-server.d.ts +34 -66
  7. package/dist/composed-server.d.ts.map +1 -1
  8. package/dist/composed-server.js +130 -137
  9. package/dist/composed-server.js.map +1 -1
  10. package/dist/composition.d.ts +61 -111
  11. package/dist/composition.d.ts.map +1 -1
  12. package/dist/composition.js +120 -54
  13. package/dist/composition.js.map +1 -1
  14. package/dist/font-assets.d.ts +7 -28
  15. package/dist/font-assets.d.ts.map +1 -1
  16. package/dist/font-assets.js +11 -43
  17. package/dist/font-assets.js.map +1 -1
  18. package/dist/health.d.ts +9 -45
  19. package/dist/health.d.ts.map +1 -1
  20. package/dist/health.js +6 -24
  21. package/dist/health.js.map +1 -1
  22. package/dist/host-boot.d.ts +8 -38
  23. package/dist/host-boot.d.ts.map +1 -1
  24. package/dist/host-boot.js +10 -32
  25. package/dist/host-boot.js.map +1 -1
  26. package/dist/http-edge.d.ts +20 -76
  27. package/dist/http-edge.d.ts.map +1 -1
  28. package/dist/http-edge.js +17 -60
  29. package/dist/http-edge.js.map +1 -1
  30. package/dist/metrics.d.ts +6 -21
  31. package/dist/metrics.d.ts.map +1 -1
  32. package/dist/metrics.js +8 -36
  33. package/dist/metrics.js.map +1 -1
  34. package/dist/node-listener.d.ts +7 -39
  35. package/dist/node-listener.d.ts.map +1 -1
  36. package/dist/node-listener.js +6 -18
  37. package/dist/node-listener.js.map +1 -1
  38. package/dist/oauth-env.d.ts +15 -35
  39. package/dist/oauth-env.d.ts.map +1 -1
  40. package/dist/oauth-env.js +122 -62
  41. package/dist/oauth-env.js.map +1 -1
  42. package/dist/protocol/bpmn-names.d.ts +19 -0
  43. package/dist/protocol/bpmn-names.d.ts.map +1 -0
  44. package/dist/{bpmn-names.js → protocol/bpmn-names.js} +9 -38
  45. package/dist/protocol/bpmn-names.js.map +1 -0
  46. package/dist/protocol/served-fonts.d.ts +17 -0
  47. package/dist/protocol/served-fonts.d.ts.map +1 -0
  48. package/dist/protocol/served-fonts.js +30 -0
  49. package/dist/protocol/served-fonts.js.map +1 -0
  50. package/dist/protocol/tool-result.d.ts +24 -0
  51. package/dist/protocol/tool-result.d.ts.map +1 -0
  52. package/dist/protocol/tool-result.js +37 -0
  53. package/dist/protocol/tool-result.js.map +1 -0
  54. package/dist/protocol/translator.d.ts +14 -0
  55. package/dist/protocol/translator.d.ts.map +1 -0
  56. package/dist/protocol/translator.js +18 -0
  57. package/dist/protocol/translator.js.map +1 -0
  58. package/dist/protocol/view-name.d.ts +11 -0
  59. package/dist/protocol/view-name.d.ts.map +1 -0
  60. package/dist/protocol/view-name.js +23 -0
  61. package/dist/protocol/view-name.js.map +1 -0
  62. package/dist/request-context.d.ts +4 -33
  63. package/dist/request-context.d.ts.map +1 -1
  64. package/dist/request-context.js +11 -43
  65. package/dist/request-context.js.map +1 -1
  66. package/dist/server.d.ts +19 -39
  67. package/dist/server.d.ts.map +1 -1
  68. package/dist/server.js +28 -32
  69. package/dist/server.js.map +1 -1
  70. package/dist/testing/glossary.d.ts +4 -32
  71. package/dist/testing/glossary.d.ts.map +1 -1
  72. package/dist/testing/glossary.js +6 -30
  73. package/dist/testing/glossary.js.map +1 -1
  74. package/dist/testing/index.d.ts +1 -38
  75. package/dist/testing/index.d.ts.map +1 -1
  76. package/dist/testing/index.js +1 -38
  77. package/dist/testing/index.js.map +1 -1
  78. package/dist/tool-errors.d.ts +16 -0
  79. package/dist/tool-errors.d.ts.map +1 -0
  80. package/dist/tool-errors.js +23 -0
  81. package/dist/tool-errors.js.map +1 -0
  82. package/dist/tool-registrar.d.ts +29 -0
  83. package/dist/tool-registrar.d.ts.map +1 -0
  84. package/dist/tool-registrar.js +47 -0
  85. package/dist/tool-registrar.js.map +1 -0
  86. package/dist/tool-registration.d.ts +35 -0
  87. package/dist/tool-registration.d.ts.map +1 -0
  88. package/dist/tool-registration.js +80 -0
  89. package/dist/tool-registration.js.map +1 -0
  90. package/dist/tool-schema-trim.d.ts +1 -15
  91. package/dist/tool-schema-trim.d.ts.map +1 -1
  92. package/dist/tool-schema-trim.js +1 -16
  93. package/dist/tool-schema-trim.js.map +1 -1
  94. package/dist/toolsets.d.ts +10 -56
  95. package/dist/toolsets.d.ts.map +1 -1
  96. package/dist/toolsets.js +2 -10
  97. package/dist/toolsets.js.map +1 -1
  98. package/dist/ui/action-feedback.d.ts +4 -26
  99. package/dist/ui/action-feedback.d.ts.map +1 -1
  100. package/dist/ui/action-feedback.js +5 -19
  101. package/dist/ui/action-feedback.js.map +1 -1
  102. package/dist/ui/ask-ai-button.d.ts +6 -43
  103. package/dist/ui/ask-ai-button.d.ts.map +1 -1
  104. package/dist/ui/ask-ai-button.js +6 -18
  105. package/dist/ui/ask-ai-button.js.map +1 -1
  106. package/dist/ui/ask-ai-prompt.d.ts +6 -82
  107. package/dist/ui/ask-ai-prompt.d.ts.map +1 -1
  108. package/dist/ui/ask-ai-prompt.js +10 -77
  109. package/dist/ui/ask-ai-prompt.js.map +1 -1
  110. package/dist/ui/bpmn-tokens.d.ts +3 -48
  111. package/dist/ui/bpmn-tokens.d.ts.map +1 -1
  112. package/dist/ui/bpmn-tokens.js +3 -46
  113. package/dist/ui/bpmn-tokens.js.map +1 -1
  114. package/dist/ui/bpmn-zoom-controls.d.ts +4 -17
  115. package/dist/ui/bpmn-zoom-controls.d.ts.map +1 -1
  116. package/dist/ui/bpmn-zoom-controls.js +2 -16
  117. package/dist/ui/bpmn-zoom-controls.js.map +1 -1
  118. package/dist/ui/call-observer.d.ts +35 -0
  119. package/dist/ui/call-observer.d.ts.map +1 -0
  120. package/dist/ui/call-observer.js +86 -0
  121. package/dist/ui/call-observer.js.map +1 -0
  122. package/dist/ui/confirm-dialog.d.ts +4 -31
  123. package/dist/ui/confirm-dialog.d.ts.map +1 -1
  124. package/dist/ui/confirm-dialog.js +4 -27
  125. package/dist/ui/confirm-dialog.js.map +1 -1
  126. package/dist/ui/count-tone.d.ts +3 -17
  127. package/dist/ui/count-tone.d.ts.map +1 -1
  128. package/dist/ui/count-tone.js +2 -16
  129. package/dist/ui/count-tone.js.map +1 -1
  130. package/dist/ui/declare-served-fonts.d.ts +4 -10
  131. package/dist/ui/declare-served-fonts.d.ts.map +1 -1
  132. package/dist/ui/declare-served-fonts.js +6 -13
  133. package/dist/ui/declare-served-fonts.js.map +1 -1
  134. package/dist/ui/describe-error.d.ts +5 -47
  135. package/dist/ui/describe-error.d.ts.map +1 -1
  136. package/dist/ui/describe-error.js +8 -45
  137. package/dist/ui/describe-error.js.map +1 -1
  138. package/dist/ui/display-mode-toggle.d.ts +3 -16
  139. package/dist/ui/display-mode-toggle.d.ts.map +1 -1
  140. package/dist/ui/display-mode-toggle.js +6 -15
  141. package/dist/ui/display-mode-toggle.js.map +1 -1
  142. package/dist/ui/error-labels.d.ts +3 -19
  143. package/dist/ui/error-labels.d.ts.map +1 -1
  144. package/dist/ui/error-labels.js +0 -1
  145. package/dist/ui/error-labels.js.map +1 -1
  146. package/dist/ui/hand-off-button.d.ts +3 -18
  147. package/dist/ui/hand-off-button.d.ts.map +1 -1
  148. package/dist/ui/hand-off-button.js +3 -18
  149. package/dist/ui/hand-off-button.js.map +1 -1
  150. package/dist/ui/host-context.d.ts +13 -50
  151. package/dist/ui/host-context.d.ts.map +1 -1
  152. package/dist/ui/host-context.js +20 -51
  153. package/dist/ui/host-context.js.map +1 -1
  154. package/dist/ui/host-contexts.d.ts +19 -0
  155. package/dist/ui/host-contexts.d.ts.map +1 -0
  156. package/dist/ui/host-contexts.js +31 -0
  157. package/dist/ui/host-contexts.js.map +1 -0
  158. package/dist/ui/host-document.d.ts +3 -18
  159. package/dist/ui/host-document.d.ts.map +1 -1
  160. package/dist/ui/host-document.js +7 -25
  161. package/dist/ui/host-document.js.map +1 -1
  162. package/dist/ui/host-widgets.d.ts +21 -4
  163. package/dist/ui/host-widgets.d.ts.map +1 -1
  164. package/dist/ui/host-widgets.js +19 -11
  165. package/dist/ui/host-widgets.js.map +1 -1
  166. package/dist/ui/id-text.d.ts +1 -17
  167. package/dist/ui/id-text.d.ts.map +1 -1
  168. package/dist/ui/id-text.js +5 -26
  169. package/dist/ui/id-text.js.map +1 -1
  170. package/dist/ui/index.d.ts +24 -43
  171. package/dist/ui/index.d.ts.map +1 -1
  172. package/dist/ui/index.js +36 -51
  173. package/dist/ui/index.js.map +1 -1
  174. package/dist/ui/inline-budget.d.ts +2 -16
  175. package/dist/ui/inline-budget.d.ts.map +1 -1
  176. package/dist/ui/inline-budget.js +1 -8
  177. package/dist/ui/inline-budget.js.map +1 -1
  178. package/dist/ui/inline-fit-registry.d.ts +4 -31
  179. package/dist/ui/inline-fit-registry.d.ts.map +1 -1
  180. package/dist/ui/inline-fit-registry.js +9 -27
  181. package/dist/ui/inline-fit-registry.js.map +1 -1
  182. package/dist/ui/inline-fit-solve.d.ts +5 -27
  183. package/dist/ui/inline-fit-solve.d.ts.map +1 -1
  184. package/dist/ui/inline-fit-solve.js +4 -23
  185. package/dist/ui/inline-fit-solve.js.map +1 -1
  186. package/dist/ui/inline-fit.d.ts +4 -53
  187. package/dist/ui/inline-fit.d.ts.map +1 -1
  188. package/dist/ui/inline-fit.js +16 -62
  189. package/dist/ui/inline-fit.js.map +1 -1
  190. package/dist/ui/kit-labels.d.ts +12 -51
  191. package/dist/ui/kit-labels.d.ts.map +1 -1
  192. package/dist/ui/kit-labels.js +18 -28
  193. package/dist/ui/kit-labels.js.map +1 -1
  194. package/dist/ui/list-table.d.ts +15 -69
  195. package/dist/ui/list-table.d.ts.map +1 -1
  196. package/dist/ui/list-table.js +11 -69
  197. package/dist/ui/list-table.js.map +1 -1
  198. package/dist/ui/locale-gate.d.ts +11 -0
  199. package/dist/ui/locale-gate.d.ts.map +1 -0
  200. package/dist/ui/locale-gate.js +53 -0
  201. package/dist/ui/locale-gate.js.map +1 -0
  202. package/dist/ui/mcp-use-host.d.ts +20 -0
  203. package/dist/ui/mcp-use-host.d.ts.map +1 -0
  204. package/dist/ui/mcp-use-host.js +162 -0
  205. package/dist/ui/mcp-use-host.js.map +1 -0
  206. package/dist/ui/open-in-cockpit-link.d.ts +2 -21
  207. package/dist/ui/open-in-cockpit-link.d.ts.map +1 -1
  208. package/dist/ui/open-in-cockpit-link.js +5 -20
  209. package/dist/ui/open-in-cockpit-link.js.map +1 -1
  210. package/dist/ui/paged-rows.d.ts +3 -14
  211. package/dist/ui/paged-rows.d.ts.map +1 -1
  212. package/dist/ui/paged-rows.js +4 -14
  213. package/dist/ui/paged-rows.js.map +1 -1
  214. package/dist/ui/query-fallback.d.ts +2 -16
  215. package/dist/ui/query-fallback.d.ts.map +1 -1
  216. package/dist/ui/query-fallback.js +2 -14
  217. package/dist/ui/query-fallback.js.map +1 -1
  218. package/dist/ui/shell-host.d.ts +13 -23
  219. package/dist/ui/shell-host.d.ts.map +1 -1
  220. package/dist/ui/shell-host.js +1 -46
  221. package/dist/ui/shell-host.js.map +1 -1
  222. package/dist/ui/test-view-host.d.ts +51 -0
  223. package/dist/ui/test-view-host.d.ts.map +1 -0
  224. package/dist/ui/test-view-host.js +72 -0
  225. package/dist/ui/test-view-host.js.map +1 -0
  226. package/dist/ui/tool-query.d.ts +41 -0
  227. package/dist/ui/tool-query.d.ts.map +1 -0
  228. package/dist/ui/tool-query.js +128 -0
  229. package/dist/ui/tool-query.js.map +1 -0
  230. package/dist/ui/use-apply-theme.d.ts +1 -8
  231. package/dist/ui/use-apply-theme.d.ts.map +1 -1
  232. package/dist/ui/use-apply-theme.js +1 -8
  233. package/dist/ui/use-apply-theme.js.map +1 -1
  234. package/dist/ui/use-bpmn-viewer.d.ts +39 -73
  235. package/dist/ui/use-bpmn-viewer.d.ts.map +1 -1
  236. package/dist/ui/use-bpmn-viewer.js +18 -66
  237. package/dist/ui/use-bpmn-viewer.js.map +1 -1
  238. package/dist/ui/use-detail-view.d.ts +4 -26
  239. package/dist/ui/use-detail-view.d.ts.map +1 -1
  240. package/dist/ui/use-detail-view.js +7 -28
  241. package/dist/ui/use-detail-view.js.map +1 -1
  242. package/dist/ui/use-paged-list-view.d.ts +5 -25
  243. package/dist/ui/use-paged-list-view.d.ts.map +1 -1
  244. package/dist/ui/use-paged-list-view.js +5 -14
  245. package/dist/ui/use-paged-list-view.js.map +1 -1
  246. package/dist/ui/use-paged-view-data.d.ts +11 -66
  247. package/dist/ui/use-paged-view-data.d.ts.map +1 -1
  248. package/dist/ui/use-paged-view-data.js +20 -53
  249. package/dist/ui/use-paged-view-data.js.map +1 -1
  250. package/dist/ui/view-call.d.ts +66 -0
  251. package/dist/ui/view-call.d.ts.map +1 -0
  252. package/dist/ui/view-call.js +63 -0
  253. package/dist/ui/view-call.js.map +1 -0
  254. package/dist/ui/view-data-state.d.ts +1 -31
  255. package/dist/ui/view-data-state.d.ts.map +1 -1
  256. package/dist/ui/view-data-state.js +3 -32
  257. package/dist/ui/view-data-state.js.map +1 -1
  258. package/dist/ui/view-error-boundary.d.ts +24 -0
  259. package/dist/ui/view-error-boundary.d.ts.map +1 -0
  260. package/dist/ui/view-error-boundary.js +33 -0
  261. package/dist/ui/view-error-boundary.js.map +1 -0
  262. package/dist/ui/view-frame.d.ts +15 -0
  263. package/dist/ui/view-frame.d.ts.map +1 -0
  264. package/dist/ui/view-frame.js +72 -0
  265. package/dist/ui/view-frame.js.map +1 -0
  266. package/dist/ui/view-host.d.ts +35 -0
  267. package/dist/ui/view-host.d.ts.map +1 -0
  268. package/dist/ui/view-host.js +18 -0
  269. package/dist/ui/view-host.js.map +1 -0
  270. package/dist/ui/view-meta.d.ts +6 -29
  271. package/dist/ui/view-meta.d.ts.map +1 -1
  272. package/dist/ui/view-meta.js +2 -13
  273. package/dist/ui/view-meta.js.map +1 -1
  274. package/dist/ui/view-refresh-state.d.ts +4 -18
  275. package/dist/ui/view-refresh-state.d.ts.map +1 -1
  276. package/dist/ui/view-refresh-state.js +1 -7
  277. package/dist/ui/view-refresh-state.js.map +1 -1
  278. package/dist/ui/view-root.d.ts +26 -0
  279. package/dist/ui/view-root.d.ts.map +1 -0
  280. package/dist/ui/view-root.js +48 -0
  281. package/dist/ui/view-root.js.map +1 -0
  282. package/dist/ui/views.d.ts +17 -0
  283. package/dist/ui/views.d.ts.map +1 -0
  284. package/dist/ui/views.js +11 -0
  285. package/dist/ui/views.js.map +1 -0
  286. package/dist/ui/widget-shell.d.ts +1 -13
  287. package/dist/ui/widget-shell.d.ts.map +1 -1
  288. package/dist/ui/widget-shell.js +5 -30
  289. package/dist/ui/widget-shell.js.map +1 -1
  290. package/dist/view-bundle.d.ts +15 -0
  291. package/dist/view-bundle.d.ts.map +1 -0
  292. package/dist/view-bundle.js +23 -0
  293. package/dist/view-bundle.js.map +1 -0
  294. package/dist/view-results.d.ts +12 -23
  295. package/dist/view-results.d.ts.map +1 -1
  296. package/dist/view-results.js +14 -11
  297. package/dist/view-results.js.map +1 -1
  298. package/dist/widget-tool-bindings.d.ts +19 -48
  299. package/dist/widget-tool-bindings.d.ts.map +1 -1
  300. package/dist/widget-tool-bindings.js +21 -49
  301. package/dist/widget-tool-bindings.js.map +1 -1
  302. package/package.json +24 -36
  303. package/dist/adapt-data-widget.d.ts +0 -7
  304. package/dist/adapt-data-widget.d.ts.map +0 -1
  305. package/dist/adapt-data-widget.js +0 -7
  306. package/dist/adapt-data-widget.js.map +0 -1
  307. package/dist/bpmn-names.d.ts +0 -42
  308. package/dist/bpmn-names.d.ts.map +0 -1
  309. package/dist/bpmn-names.js.map +0 -1
  310. package/dist/bpmn-names.test.d.ts +0 -2
  311. package/dist/bpmn-names.test.d.ts.map +0 -1
  312. package/dist/bpmn-names.test.js +0 -143
  313. package/dist/bpmn-names.test.js.map +0 -1
  314. package/dist/build-data-feed-result.test.d.ts +0 -2
  315. package/dist/build-data-feed-result.test.d.ts.map +0 -1
  316. package/dist/build-data-feed-result.test.js +0 -28
  317. package/dist/build-data-feed-result.test.js.map +0 -1
  318. package/dist/build-single-widget-view.test.d.ts +0 -2
  319. package/dist/build-single-widget-view.test.d.ts.map +0 -1
  320. package/dist/build-single-widget-view.test.js +0 -136
  321. package/dist/build-single-widget-view.test.js.map +0 -1
  322. package/dist/builder-texts.d.ts +0 -27
  323. package/dist/builder-texts.d.ts.map +0 -1
  324. package/dist/builder-texts.js +0 -32
  325. package/dist/builder-texts.js.map +0 -1
  326. package/dist/builder-texts.test.d.ts +0 -2
  327. package/dist/builder-texts.test.d.ts.map +0 -1
  328. package/dist/builder-texts.test.js +0 -54
  329. package/dist/builder-texts.test.js.map +0 -1
  330. package/dist/catalogue-sync.d.ts +0 -18
  331. package/dist/catalogue-sync.d.ts.map +0 -1
  332. package/dist/catalogue-sync.js +0 -31
  333. package/dist/catalogue-sync.js.map +0 -1
  334. package/dist/catalogue-sync.test.d.ts +0 -2
  335. package/dist/catalogue-sync.test.d.ts.map +0 -1
  336. package/dist/catalogue-sync.test.js +0 -22
  337. package/dist/catalogue-sync.test.js.map +0 -1
  338. package/dist/composed-server.edge.test.d.ts +0 -2
  339. package/dist/composed-server.edge.test.d.ts.map +0 -1
  340. package/dist/composed-server.edge.test.js +0 -184
  341. package/dist/composed-server.edge.test.js.map +0 -1
  342. package/dist/composed-server.fonts.test.d.ts +0 -2
  343. package/dist/composed-server.fonts.test.d.ts.map +0 -1
  344. package/dist/composed-server.fonts.test.js +0 -186
  345. package/dist/composed-server.fonts.test.js.map +0 -1
  346. package/dist/composed-server.test.d.ts +0 -2
  347. package/dist/composed-server.test.d.ts.map +0 -1
  348. package/dist/composed-server.test.js +0 -332
  349. package/dist/composed-server.test.js.map +0 -1
  350. package/dist/composition.test.d.ts +0 -2
  351. package/dist/composition.test.d.ts.map +0 -1
  352. package/dist/composition.test.js +0 -275
  353. package/dist/composition.test.js.map +0 -1
  354. package/dist/dashboard-store-postgres.d.ts +0 -43
  355. package/dist/dashboard-store-postgres.d.ts.map +0 -1
  356. package/dist/dashboard-store-postgres.js +0 -225
  357. package/dist/dashboard-store-postgres.js.map +0 -1
  358. package/dist/dashboard-store-postgres.test.d.ts +0 -2
  359. package/dist/dashboard-store-postgres.test.d.ts.map +0 -1
  360. package/dist/dashboard-store-postgres.test.js +0 -272
  361. package/dist/dashboard-store-postgres.test.js.map +0 -1
  362. package/dist/font-assets.test.d.ts +0 -2
  363. package/dist/font-assets.test.d.ts.map +0 -1
  364. package/dist/font-assets.test.js +0 -123
  365. package/dist/font-assets.test.js.map +0 -1
  366. package/dist/health.test.d.ts +0 -2
  367. package/dist/health.test.d.ts.map +0 -1
  368. package/dist/health.test.js +0 -140
  369. package/dist/health.test.js.map +0 -1
  370. package/dist/host-boot.test.d.ts +0 -2
  371. package/dist/host-boot.test.d.ts.map +0 -1
  372. package/dist/host-boot.test.js +0 -59
  373. package/dist/host-boot.test.js.map +0 -1
  374. package/dist/http-edge.test.d.ts +0 -2
  375. package/dist/http-edge.test.d.ts.map +0 -1
  376. package/dist/http-edge.test.js +0 -255
  377. package/dist/http-edge.test.js.map +0 -1
  378. package/dist/metrics.test.d.ts +0 -2
  379. package/dist/metrics.test.d.ts.map +0 -1
  380. package/dist/metrics.test.js +0 -154
  381. package/dist/metrics.test.js.map +0 -1
  382. package/dist/node-listener.test.d.ts +0 -2
  383. package/dist/node-listener.test.d.ts.map +0 -1
  384. package/dist/node-listener.test.js +0 -331
  385. package/dist/node-listener.test.js.map +0 -1
  386. package/dist/oauth-env.test.d.ts +0 -2
  387. package/dist/oauth-env.test.d.ts.map +0 -1
  388. package/dist/oauth-env.test.js +0 -76
  389. package/dist/oauth-env.test.js.map +0 -1
  390. package/dist/postgres.d.ts +0 -59
  391. package/dist/postgres.d.ts.map +0 -1
  392. package/dist/postgres.js +0 -80
  393. package/dist/postgres.js.map +0 -1
  394. package/dist/profile-advisory.d.ts +0 -19
  395. package/dist/profile-advisory.d.ts.map +0 -1
  396. package/dist/profile-advisory.js +0 -48
  397. package/dist/profile-advisory.js.map +0 -1
  398. package/dist/profile-advisory.test.d.ts +0 -2
  399. package/dist/profile-advisory.test.d.ts.map +0 -1
  400. package/dist/profile-advisory.test.js +0 -53
  401. package/dist/profile-advisory.test.js.map +0 -1
  402. package/dist/profile-constants.d.ts +0 -37
  403. package/dist/profile-constants.d.ts.map +0 -1
  404. package/dist/profile-constants.js +0 -37
  405. package/dist/profile-constants.js.map +0 -1
  406. package/dist/profile-migrations.d.ts +0 -71
  407. package/dist/profile-migrations.d.ts.map +0 -1
  408. package/dist/profile-migrations.js +0 -88
  409. package/dist/profile-migrations.js.map +0 -1
  410. package/dist/profile-migrations.test.d.ts +0 -2
  411. package/dist/profile-migrations.test.d.ts.map +0 -1
  412. package/dist/profile-migrations.test.js +0 -200
  413. package/dist/profile-migrations.test.js.map +0 -1
  414. package/dist/profile-record.d.ts +0 -60
  415. package/dist/profile-record.d.ts.map +0 -1
  416. package/dist/profile-record.js +0 -78
  417. package/dist/profile-record.js.map +0 -1
  418. package/dist/profile-slice.d.ts +0 -53
  419. package/dist/profile-slice.d.ts.map +0 -1
  420. package/dist/profile-slice.js +0 -73
  421. package/dist/profile-slice.js.map +0 -1
  422. package/dist/profile-slice.test.d.ts +0 -2
  423. package/dist/profile-slice.test.d.ts.map +0 -1
  424. package/dist/profile-slice.test.js +0 -73
  425. package/dist/profile-slice.test.js.map +0 -1
  426. package/dist/profile-store-env.d.ts +0 -34
  427. package/dist/profile-store-env.d.ts.map +0 -1
  428. package/dist/profile-store-env.js +0 -44
  429. package/dist/profile-store-env.js.map +0 -1
  430. package/dist/profile-store-env.test.d.ts +0 -2
  431. package/dist/profile-store-env.test.d.ts.map +0 -1
  432. package/dist/profile-store-env.test.js +0 -69
  433. package/dist/profile-store-env.test.js.map +0 -1
  434. package/dist/profile-store-postgres.d.ts +0 -33
  435. package/dist/profile-store-postgres.d.ts.map +0 -1
  436. package/dist/profile-store-postgres.js +0 -87
  437. package/dist/profile-store-postgres.js.map +0 -1
  438. package/dist/profile-store-raw.test.d.ts +0 -2
  439. package/dist/profile-store-raw.test.d.ts.map +0 -1
  440. package/dist/profile-store-raw.test.js +0 -185
  441. package/dist/profile-store-raw.test.js.map +0 -1
  442. package/dist/profile-store.d.ts +0 -85
  443. package/dist/profile-store.d.ts.map +0 -1
  444. package/dist/profile-store.js +0 -182
  445. package/dist/profile-store.js.map +0 -1
  446. package/dist/profile-store.test.d.ts +0 -2
  447. package/dist/profile-store.test.d.ts.map +0 -1
  448. package/dist/profile-store.test.js +0 -353
  449. package/dist/profile-store.test.js.map +0 -1
  450. package/dist/profile.d.ts +0 -75
  451. package/dist/profile.d.ts.map +0 -1
  452. package/dist/profile.js +0 -85
  453. package/dist/profile.js.map +0 -1
  454. package/dist/profile.test.d.ts +0 -2
  455. package/dist/profile.test.d.ts.map +0 -1
  456. package/dist/profile.test.js +0 -71
  457. package/dist/profile.test.js.map +0 -1
  458. package/dist/request-context.test.d.ts +0 -2
  459. package/dist/request-context.test.d.ts.map +0 -1
  460. package/dist/request-context.test.js +0 -107
  461. package/dist/request-context.test.js.map +0 -1
  462. package/dist/served-fonts.d.ts +0 -38
  463. package/dist/served-fonts.d.ts.map +0 -1
  464. package/dist/served-fonts.js +0 -51
  465. package/dist/served-fonts.js.map +0 -1
  466. package/dist/served-fonts.test.d.ts +0 -2
  467. package/dist/served-fonts.test.d.ts.map +0 -1
  468. package/dist/served-fonts.test.js +0 -30
  469. package/dist/served-fonts.test.js.map +0 -1
  470. package/dist/server-locale.d.ts +0 -58
  471. package/dist/server-locale.d.ts.map +0 -1
  472. package/dist/server-locale.js +0 -64
  473. package/dist/server-locale.js.map +0 -1
  474. package/dist/server-locale.test.d.ts +0 -2
  475. package/dist/server-locale.test.d.ts.map +0 -1
  476. package/dist/server-locale.test.js +0 -90
  477. package/dist/server-locale.test.js.map +0 -1
  478. package/dist/shell-catalogue.d.ts +0 -12
  479. package/dist/shell-catalogue.d.ts.map +0 -1
  480. package/dist/shell-catalogue.js +0 -142
  481. package/dist/shell-catalogue.js.map +0 -1
  482. package/dist/shell-settings-contract.d.ts +0 -34
  483. package/dist/shell-settings-contract.d.ts.map +0 -1
  484. package/dist/shell-settings-contract.js +0 -21
  485. package/dist/shell-settings-contract.js.map +0 -1
  486. package/dist/shell-settings.d.ts +0 -24
  487. package/dist/shell-settings.d.ts.map +0 -1
  488. package/dist/shell-settings.js +0 -148
  489. package/dist/shell-settings.js.map +0 -1
  490. package/dist/shell-settings.test.d.ts +0 -2
  491. package/dist/shell-settings.test.d.ts.map +0 -1
  492. package/dist/shell-settings.test.js +0 -115
  493. package/dist/shell-settings.test.js.map +0 -1
  494. package/dist/testing/catalog-text.d.ts +0 -53
  495. package/dist/testing/catalog-text.d.ts.map +0 -1
  496. package/dist/testing/catalog-text.js +0 -146
  497. package/dist/testing/catalog-text.js.map +0 -1
  498. package/dist/testing/catalog-text.test.d.ts +0 -2
  499. package/dist/testing/catalog-text.test.d.ts.map +0 -1
  500. package/dist/testing/catalog-text.test.js +0 -137
  501. package/dist/testing/catalog-text.test.js.map +0 -1
  502. package/dist/testing/colors.d.ts +0 -34
  503. package/dist/testing/colors.d.ts.map +0 -1
  504. package/dist/testing/colors.js +0 -124
  505. package/dist/testing/colors.js.map +0 -1
  506. package/dist/testing/colors.test.d.ts +0 -2
  507. package/dist/testing/colors.test.d.ts.map +0 -1
  508. package/dist/testing/colors.test.js +0 -166
  509. package/dist/testing/colors.test.js.map +0 -1
  510. package/dist/testing/contrast.d.ts +0 -77
  511. package/dist/testing/contrast.d.ts.map +0 -1
  512. package/dist/testing/contrast.js +0 -382
  513. package/dist/testing/contrast.js.map +0 -1
  514. package/dist/testing/contrast.test.d.ts +0 -2
  515. package/dist/testing/contrast.test.d.ts.map +0 -1
  516. package/dist/testing/contrast.test.js +0 -230
  517. package/dist/testing/contrast.test.js.map +0 -1
  518. package/dist/testing/display-texts.d.ts +0 -23
  519. package/dist/testing/display-texts.d.ts.map +0 -1
  520. package/dist/testing/display-texts.js +0 -88
  521. package/dist/testing/display-texts.js.map +0 -1
  522. package/dist/testing/display-texts.test.d.ts +0 -2
  523. package/dist/testing/display-texts.test.d.ts.map +0 -1
  524. package/dist/testing/display-texts.test.js +0 -169
  525. package/dist/testing/display-texts.test.js.map +0 -1
  526. package/dist/testing/glossary.test.d.ts +0 -2
  527. package/dist/testing/glossary.test.d.ts.map +0 -1
  528. package/dist/testing/glossary.test.js +0 -78
  529. package/dist/testing/glossary.test.js.map +0 -1
  530. package/dist/testing/glyphs.d.ts +0 -27
  531. package/dist/testing/glyphs.d.ts.map +0 -1
  532. package/dist/testing/glyphs.js +0 -130
  533. package/dist/testing/glyphs.js.map +0 -1
  534. package/dist/testing/glyphs.test.d.ts +0 -2
  535. package/dist/testing/glyphs.test.d.ts.map +0 -1
  536. package/dist/testing/glyphs.test.js +0 -146
  537. package/dist/testing/glyphs.test.js.map +0 -1
  538. package/dist/testing/icon-sizes.d.ts +0 -22
  539. package/dist/testing/icon-sizes.d.ts.map +0 -1
  540. package/dist/testing/icon-sizes.js +0 -39
  541. package/dist/testing/icon-sizes.js.map +0 -1
  542. package/dist/testing/icon-sizes.test.d.ts +0 -2
  543. package/dist/testing/icon-sizes.test.d.ts.map +0 -1
  544. package/dist/testing/icon-sizes.test.js +0 -36
  545. package/dist/testing/icon-sizes.test.js.map +0 -1
  546. package/dist/testing/source-scan.d.ts +0 -16
  547. package/dist/testing/source-scan.d.ts.map +0 -1
  548. package/dist/testing/source-scan.js +0 -57
  549. package/dist/testing/source-scan.js.map +0 -1
  550. package/dist/testing/tone-pairs.d.ts +0 -20
  551. package/dist/testing/tone-pairs.d.ts.map +0 -1
  552. package/dist/testing/tone-pairs.js +0 -154
  553. package/dist/testing/tone-pairs.js.map +0 -1
  554. package/dist/testing/type-scale.d.ts +0 -40
  555. package/dist/testing/type-scale.d.ts.map +0 -1
  556. package/dist/testing/type-scale.js +0 -55
  557. package/dist/testing/type-scale.js.map +0 -1
  558. package/dist/testing/type-scale.test.d.ts +0 -2
  559. package/dist/testing/type-scale.test.d.ts.map +0 -1
  560. package/dist/testing/type-scale.test.js +0 -61
  561. package/dist/testing/type-scale.test.js.map +0 -1
  562. package/dist/tool-schema-trim.test.d.ts +0 -2
  563. package/dist/tool-schema-trim.test.d.ts.map +0 -1
  564. package/dist/tool-schema-trim.test.js +0 -53
  565. package/dist/tool-schema-trim.test.js.map +0 -1
  566. package/dist/toolsets.test.d.ts +0 -2
  567. package/dist/toolsets.test.d.ts.map +0 -1
  568. package/dist/toolsets.test.js +0 -86
  569. package/dist/toolsets.test.js.map +0 -1
  570. package/dist/ui/action-feedback.test.d.ts +0 -2
  571. package/dist/ui/action-feedback.test.d.ts.map +0 -1
  572. package/dist/ui/action-feedback.test.js +0 -77
  573. package/dist/ui/action-feedback.test.js.map +0 -1
  574. package/dist/ui/app-shell-providers.d.ts +0 -18
  575. package/dist/ui/app-shell-providers.d.ts.map +0 -1
  576. package/dist/ui/app-shell-providers.js +0 -19
  577. package/dist/ui/app-shell-providers.js.map +0 -1
  578. package/dist/ui/app-shell-providers.test.d.ts +0 -2
  579. package/dist/ui/app-shell-providers.test.d.ts.map +0 -1
  580. package/dist/ui/app-shell-providers.test.js +0 -249
  581. package/dist/ui/app-shell-providers.test.js.map +0 -1
  582. package/dist/ui/ask-ai-button.test.d.ts +0 -2
  583. package/dist/ui/ask-ai-button.test.d.ts.map +0 -1
  584. package/dist/ui/ask-ai-button.test.js +0 -103
  585. package/dist/ui/ask-ai-button.test.js.map +0 -1
  586. package/dist/ui/ask-ai-prompt.test.d.ts +0 -2
  587. package/dist/ui/ask-ai-prompt.test.d.ts.map +0 -1
  588. package/dist/ui/ask-ai-prompt.test.js +0 -240
  589. package/dist/ui/ask-ai-prompt.test.js.map +0 -1
  590. package/dist/ui/bpmn-heatmap/heat-ramp.test.d.ts +0 -2
  591. package/dist/ui/bpmn-heatmap/heat-ramp.test.d.ts.map +0 -1
  592. package/dist/ui/bpmn-heatmap/heat-ramp.test.js +0 -174
  593. package/dist/ui/bpmn-heatmap/heat-ramp.test.js.map +0 -1
  594. package/dist/ui/bpmn-heatmap/heat-utils.d.ts +0 -119
  595. package/dist/ui/bpmn-heatmap/heat-utils.d.ts.map +0 -1
  596. package/dist/ui/bpmn-heatmap/heat-utils.js +0 -231
  597. package/dist/ui/bpmn-heatmap/heat-utils.js.map +0 -1
  598. package/dist/ui/bpmn-heatmap/heat-utils.test.d.ts +0 -2
  599. package/dist/ui/bpmn-heatmap/heat-utils.test.d.ts.map +0 -1
  600. package/dist/ui/bpmn-heatmap/heat-utils.test.js +0 -59
  601. package/dist/ui/bpmn-heatmap/heat-utils.test.js.map +0 -1
  602. package/dist/ui/bpmn-heatmap-labels.d.ts +0 -46
  603. package/dist/ui/bpmn-heatmap-labels.d.ts.map +0 -1
  604. package/dist/ui/bpmn-heatmap-labels.js +0 -16
  605. package/dist/ui/bpmn-heatmap-labels.js.map +0 -1
  606. package/dist/ui/bpmn-heatmap-widget.d.ts +0 -38
  607. package/dist/ui/bpmn-heatmap-widget.d.ts.map +0 -1
  608. package/dist/ui/bpmn-heatmap-widget.js +0 -65
  609. package/dist/ui/bpmn-heatmap-widget.js.map +0 -1
  610. package/dist/ui/bpmn-heatmap-widget.test.d.ts +0 -2
  611. package/dist/ui/bpmn-heatmap-widget.test.d.ts.map +0 -1
  612. package/dist/ui/bpmn-heatmap-widget.test.js +0 -173
  613. package/dist/ui/bpmn-heatmap-widget.test.js.map +0 -1
  614. package/dist/ui/bpmn-heatmap.d.ts +0 -61
  615. package/dist/ui/bpmn-heatmap.d.ts.map +0 -1
  616. package/dist/ui/bpmn-heatmap.js +0 -119
  617. package/dist/ui/bpmn-heatmap.js.map +0 -1
  618. package/dist/ui/bpmn-tokens.test.d.ts +0 -2
  619. package/dist/ui/bpmn-tokens.test.d.ts.map +0 -1
  620. package/dist/ui/bpmn-tokens.test.js +0 -98
  621. package/dist/ui/bpmn-tokens.test.js.map +0 -1
  622. package/dist/ui/brand-gates.test.d.ts +0 -2
  623. package/dist/ui/brand-gates.test.d.ts.map +0 -1
  624. package/dist/ui/brand-gates.test.js +0 -131
  625. package/dist/ui/brand-gates.test.js.map +0 -1
  626. package/dist/ui/brand-mark.d.ts +0 -37
  627. package/dist/ui/brand-mark.d.ts.map +0 -1
  628. package/dist/ui/brand-mark.js +0 -33
  629. package/dist/ui/brand-mark.js.map +0 -1
  630. package/dist/ui/brand-mark.test.d.ts +0 -2
  631. package/dist/ui/brand-mark.test.d.ts.map +0 -1
  632. package/dist/ui/brand-mark.test.js +0 -111
  633. package/dist/ui/brand-mark.test.js.map +0 -1
  634. package/dist/ui/confirm-dialog.test.d.ts +0 -2
  635. package/dist/ui/confirm-dialog.test.d.ts.map +0 -1
  636. package/dist/ui/confirm-dialog.test.js +0 -115
  637. package/dist/ui/confirm-dialog.test.js.map +0 -1
  638. package/dist/ui/count-tone.test.d.ts +0 -2
  639. package/dist/ui/count-tone.test.d.ts.map +0 -1
  640. package/dist/ui/count-tone.test.js +0 -27
  641. package/dist/ui/count-tone.test.js.map +0 -1
  642. package/dist/ui/create-use-t.d.ts +0 -15
  643. package/dist/ui/create-use-t.d.ts.map +0 -1
  644. package/dist/ui/create-use-t.js +0 -17
  645. package/dist/ui/create-use-t.js.map +0 -1
  646. package/dist/ui/declare-served-fonts.test.d.ts +0 -2
  647. package/dist/ui/declare-served-fonts.test.d.ts.map +0 -1
  648. package/dist/ui/declare-served-fonts.test.js +0 -44
  649. package/dist/ui/declare-served-fonts.test.js.map +0 -1
  650. package/dist/ui/describe-error.test.d.ts +0 -2
  651. package/dist/ui/describe-error.test.d.ts.map +0 -1
  652. package/dist/ui/describe-error.test.js +0 -274
  653. package/dist/ui/describe-error.test.js.map +0 -1
  654. package/dist/ui/format.d.ts +0 -81
  655. package/dist/ui/format.d.ts.map +0 -1
  656. package/dist/ui/format.js +0 -189
  657. package/dist/ui/format.js.map +0 -1
  658. package/dist/ui/format.test.d.ts +0 -2
  659. package/dist/ui/format.test.d.ts.map +0 -1
  660. package/dist/ui/format.test.js +0 -181
  661. package/dist/ui/format.test.js.map +0 -1
  662. package/dist/ui/generic-widgets.d.ts +0 -15
  663. package/dist/ui/generic-widgets.d.ts.map +0 -1
  664. package/dist/ui/generic-widgets.js +0 -122
  665. package/dist/ui/generic-widgets.js.map +0 -1
  666. package/dist/ui/generic-widgets.test.d.ts +0 -2
  667. package/dist/ui/generic-widgets.test.d.ts.map +0 -1
  668. package/dist/ui/generic-widgets.test.js +0 -139
  669. package/dist/ui/generic-widgets.test.js.map +0 -1
  670. package/dist/ui/hand-off-button.test.d.ts +0 -2
  671. package/dist/ui/hand-off-button.test.d.ts.map +0 -1
  672. package/dist/ui/hand-off-button.test.js +0 -78
  673. package/dist/ui/hand-off-button.test.js.map +0 -1
  674. package/dist/ui/host-context.test.d.ts +0 -2
  675. package/dist/ui/host-context.test.d.ts.map +0 -1
  676. package/dist/ui/host-context.test.js +0 -160
  677. package/dist/ui/host-context.test.js.map +0 -1
  678. package/dist/ui/host-document.test.d.ts +0 -2
  679. package/dist/ui/host-document.test.d.ts.map +0 -1
  680. package/dist/ui/host-document.test.js +0 -112
  681. package/dist/ui/host-document.test.js.map +0 -1
  682. package/dist/ui/humanize-key.d.ts +0 -11
  683. package/dist/ui/humanize-key.d.ts.map +0 -1
  684. package/dist/ui/humanize-key.js +0 -26
  685. package/dist/ui/humanize-key.js.map +0 -1
  686. package/dist/ui/humanize-key.test.d.ts +0 -2
  687. package/dist/ui/humanize-key.test.d.ts.map +0 -1
  688. package/dist/ui/humanize-key.test.js +0 -42
  689. package/dist/ui/humanize-key.test.js.map +0 -1
  690. package/dist/ui/icon.d.ts +0 -37
  691. package/dist/ui/icon.d.ts.map +0 -1
  692. package/dist/ui/icon.js +0 -32
  693. package/dist/ui/icon.js.map +0 -1
  694. package/dist/ui/id-breaks.d.ts +0 -17
  695. package/dist/ui/id-breaks.d.ts.map +0 -1
  696. package/dist/ui/id-breaks.js +0 -36
  697. package/dist/ui/id-breaks.js.map +0 -1
  698. package/dist/ui/id-breaks.test.d.ts +0 -2
  699. package/dist/ui/id-breaks.test.d.ts.map +0 -1
  700. package/dist/ui/id-breaks.test.js +0 -37
  701. package/dist/ui/id-breaks.test.js.map +0 -1
  702. package/dist/ui/id-text.test.d.ts +0 -2
  703. package/dist/ui/id-text.test.d.ts.map +0 -1
  704. package/dist/ui/id-text.test.js +0 -122
  705. package/dist/ui/id-text.test.js.map +0 -1
  706. package/dist/ui/index.test.d.ts +0 -2
  707. package/dist/ui/index.test.d.ts.map +0 -1
  708. package/dist/ui/index.test.js +0 -34
  709. package/dist/ui/index.test.js.map +0 -1
  710. package/dist/ui/inline-fit-solve.test.d.ts +0 -2
  711. package/dist/ui/inline-fit-solve.test.d.ts.map +0 -1
  712. package/dist/ui/inline-fit-solve.test.js +0 -108
  713. package/dist/ui/inline-fit-solve.test.js.map +0 -1
  714. package/dist/ui/inline-fit-time.test.d.ts +0 -2
  715. package/dist/ui/inline-fit-time.test.d.ts.map +0 -1
  716. package/dist/ui/inline-fit-time.test.js +0 -110
  717. package/dist/ui/inline-fit-time.test.js.map +0 -1
  718. package/dist/ui/inline-fit.test-support.d.ts +0 -26
  719. package/dist/ui/inline-fit.test-support.d.ts.map +0 -1
  720. package/dist/ui/inline-fit.test-support.js +0 -34
  721. package/dist/ui/inline-fit.test-support.js.map +0 -1
  722. package/dist/ui/inline-fit.test.d.ts +0 -2
  723. package/dist/ui/inline-fit.test.d.ts.map +0 -1
  724. package/dist/ui/inline-fit.test.js +0 -159
  725. package/dist/ui/inline-fit.test.js.map +0 -1
  726. package/dist/ui/kit-labels.test.d.ts +0 -2
  727. package/dist/ui/kit-labels.test.d.ts.map +0 -1
  728. package/dist/ui/kit-labels.test.js +0 -98
  729. package/dist/ui/kit-labels.test.js.map +0 -1
  730. package/dist/ui/kit-type-roles.test.d.ts +0 -2
  731. package/dist/ui/kit-type-roles.test.d.ts.map +0 -1
  732. package/dist/ui/kit-type-roles.test.js +0 -122
  733. package/dist/ui/kit-type-roles.test.js.map +0 -1
  734. package/dist/ui/komet-svg.d.ts +0 -15
  735. package/dist/ui/komet-svg.d.ts.map +0 -1
  736. package/dist/ui/komet-svg.js +0 -21
  737. package/dist/ui/komet-svg.js.map +0 -1
  738. package/dist/ui/list-table.test.d.ts +0 -2
  739. package/dist/ui/list-table.test.d.ts.map +0 -1
  740. package/dist/ui/list-table.test.js +0 -169
  741. package/dist/ui/list-table.test.js.map +0 -1
  742. package/dist/ui/localized-app-view.d.ts +0 -40
  743. package/dist/ui/localized-app-view.d.ts.map +0 -1
  744. package/dist/ui/localized-app-view.js +0 -71
  745. package/dist/ui/localized-app-view.js.map +0 -1
  746. package/dist/ui/log-text.d.ts +0 -24
  747. package/dist/ui/log-text.d.ts.map +0 -1
  748. package/dist/ui/log-text.js +0 -31
  749. package/dist/ui/log-text.js.map +0 -1
  750. package/dist/ui/menu-item.d.ts +0 -12
  751. package/dist/ui/menu-item.d.ts.map +0 -1
  752. package/dist/ui/menu-item.js +0 -13
  753. package/dist/ui/menu-item.js.map +0 -1
  754. package/dist/ui/named-id.d.ts +0 -23
  755. package/dist/ui/named-id.d.ts.map +0 -1
  756. package/dist/ui/named-id.js +0 -21
  757. package/dist/ui/named-id.js.map +0 -1
  758. package/dist/ui/named-id.test.d.ts +0 -2
  759. package/dist/ui/named-id.test.d.ts.map +0 -1
  760. package/dist/ui/named-id.test.js +0 -57
  761. package/dist/ui/named-id.test.js.map +0 -1
  762. package/dist/ui/native-select.d.ts +0 -17
  763. package/dist/ui/native-select.d.ts.map +0 -1
  764. package/dist/ui/native-select.js +0 -20
  765. package/dist/ui/native-select.js.map +0 -1
  766. package/dist/ui/navigation-focus.d.ts +0 -20
  767. package/dist/ui/navigation-focus.d.ts.map +0 -1
  768. package/dist/ui/navigation-focus.js +0 -25
  769. package/dist/ui/navigation-focus.js.map +0 -1
  770. package/dist/ui/navigation-focus.test.d.ts +0 -2
  771. package/dist/ui/navigation-focus.test.d.ts.map +0 -1
  772. package/dist/ui/navigation-focus.test.js +0 -28
  773. package/dist/ui/navigation-focus.test.js.map +0 -1
  774. package/dist/ui/paged-list-footer.test.d.ts +0 -2
  775. package/dist/ui/paged-list-footer.test.d.ts.map +0 -1
  776. package/dist/ui/paged-list-footer.test.js +0 -128
  777. package/dist/ui/paged-list-footer.test.js.map +0 -1
  778. package/dist/ui/parse-tool-result.test.d.ts +0 -2
  779. package/dist/ui/parse-tool-result.test.d.ts.map +0 -1
  780. package/dist/ui/parse-tool-result.test.js +0 -88
  781. package/dist/ui/parse-tool-result.test.js.map +0 -1
  782. package/dist/ui/profile-gate.d.ts +0 -37
  783. package/dist/ui/profile-gate.d.ts.map +0 -1
  784. package/dist/ui/profile-gate.js +0 -126
  785. package/dist/ui/profile-gate.js.map +0 -1
  786. package/dist/ui/profile-gate.test.d.ts +0 -2
  787. package/dist/ui/profile-gate.test.d.ts.map +0 -1
  788. package/dist/ui/profile-gate.test.js +0 -246
  789. package/dist/ui/profile-gate.test.js.map +0 -1
  790. package/dist/ui/query-fallback.test.d.ts +0 -2
  791. package/dist/ui/query-fallback.test.d.ts.map +0 -1
  792. package/dist/ui/query-fallback.test.js +0 -49
  793. package/dist/ui/query-fallback.test.js.map +0 -1
  794. package/dist/ui/row-card.d.ts +0 -13
  795. package/dist/ui/row-card.d.ts.map +0 -1
  796. package/dist/ui/row-card.js +0 -11
  797. package/dist/ui/row-card.js.map +0 -1
  798. package/dist/ui/section.d.ts +0 -18
  799. package/dist/ui/section.d.ts.map +0 -1
  800. package/dist/ui/section.js +0 -14
  801. package/dist/ui/section.js.map +0 -1
  802. package/dist/ui/segmented-control.d.ts +0 -25
  803. package/dist/ui/segmented-control.d.ts.map +0 -1
  804. package/dist/ui/segmented-control.js +0 -22
  805. package/dist/ui/segmented-control.js.map +0 -1
  806. package/dist/ui/settings-labels.d.ts +0 -33
  807. package/dist/ui/settings-labels.d.ts.map +0 -1
  808. package/dist/ui/settings-labels.js +0 -50
  809. package/dist/ui/settings-labels.js.map +0 -1
  810. package/dist/ui/settings-layout.d.ts +0 -29
  811. package/dist/ui/settings-layout.d.ts.map +0 -1
  812. package/dist/ui/settings-layout.js +0 -49
  813. package/dist/ui/settings-layout.js.map +0 -1
  814. package/dist/ui/settings-layout.test.d.ts +0 -2
  815. package/dist/ui/settings-layout.test.d.ts.map +0 -1
  816. package/dist/ui/settings-layout.test.js +0 -73
  817. package/dist/ui/settings-layout.test.js.map +0 -1
  818. package/dist/ui/settings.d.ts +0 -47
  819. package/dist/ui/settings.d.ts.map +0 -1
  820. package/dist/ui/settings.js +0 -48
  821. package/dist/ui/settings.js.map +0 -1
  822. package/dist/ui/settings.test.d.ts +0 -2
  823. package/dist/ui/settings.test.d.ts.map +0 -1
  824. package/dist/ui/settings.test.js +0 -38
  825. package/dist/ui/settings.test.js.map +0 -1
  826. package/dist/ui/shell-settings.d.ts +0 -31
  827. package/dist/ui/shell-settings.d.ts.map +0 -1
  828. package/dist/ui/shell-settings.js +0 -97
  829. package/dist/ui/shell-settings.js.map +0 -1
  830. package/dist/ui/shell-settings.test.d.ts +0 -2
  831. package/dist/ui/shell-settings.test.d.ts.map +0 -1
  832. package/dist/ui/shell-settings.test.js +0 -108
  833. package/dist/ui/shell-settings.test.js.map +0 -1
  834. package/dist/ui/shell-widgets.d.ts +0 -14
  835. package/dist/ui/shell-widgets.d.ts.map +0 -1
  836. package/dist/ui/shell-widgets.js +0 -18
  837. package/dist/ui/shell-widgets.js.map +0 -1
  838. package/dist/ui/table.d.ts +0 -61
  839. package/dist/ui/table.d.ts.map +0 -1
  840. package/dist/ui/table.js +0 -43
  841. package/dist/ui/table.js.map +0 -1
  842. package/dist/ui/tone-components.test.d.ts +0 -2
  843. package/dist/ui/tone-components.test.d.ts.map +0 -1
  844. package/dist/ui/tone-components.test.js +0 -145
  845. package/dist/ui/tone-components.test.js.map +0 -1
  846. package/dist/ui/tone-contrast.test.d.ts +0 -2
  847. package/dist/ui/tone-contrast.test.d.ts.map +0 -1
  848. package/dist/ui/tone-contrast.test.js +0 -66
  849. package/dist/ui/tone-contrast.test.js.map +0 -1
  850. package/dist/ui/toolkit-overlap.test.d.ts +0 -2
  851. package/dist/ui/toolkit-overlap.test.d.ts.map +0 -1
  852. package/dist/ui/toolkit-overlap.test.js +0 -86
  853. package/dist/ui/toolkit-overlap.test.js.map +0 -1
  854. package/dist/ui/use-apply-theme.test.d.ts +0 -2
  855. package/dist/ui/use-apply-theme.test.d.ts.map +0 -1
  856. package/dist/ui/use-apply-theme.test.js +0 -102
  857. package/dist/ui/use-apply-theme.test.js.map +0 -1
  858. package/dist/ui/use-bpmn-viewer.test.d.ts +0 -2
  859. package/dist/ui/use-bpmn-viewer.test.d.ts.map +0 -1
  860. package/dist/ui/use-bpmn-viewer.test.js +0 -239
  861. package/dist/ui/use-bpmn-viewer.test.js.map +0 -1
  862. package/dist/ui/use-detail-view.test.d.ts +0 -2
  863. package/dist/ui/use-detail-view.test.d.ts.map +0 -1
  864. package/dist/ui/use-detail-view.test.js +0 -178
  865. package/dist/ui/use-detail-view.test.js.map +0 -1
  866. package/dist/ui/use-paged-list-view.test.d.ts +0 -2
  867. package/dist/ui/use-paged-list-view.test.d.ts.map +0 -1
  868. package/dist/ui/use-paged-list-view.test.js +0 -136
  869. package/dist/ui/use-paged-list-view.test.js.map +0 -1
  870. package/dist/ui/use-paged-view-data.seeded.test.d.ts +0 -2
  871. package/dist/ui/use-paged-view-data.seeded.test.d.ts.map +0 -1
  872. package/dist/ui/use-paged-view-data.seeded.test.js +0 -144
  873. package/dist/ui/use-paged-view-data.seeded.test.js.map +0 -1
  874. package/dist/ui/use-paged-view-data.test.d.ts +0 -2
  875. package/dist/ui/use-paged-view-data.test.d.ts.map +0 -1
  876. package/dist/ui/use-paged-view-data.test.js +0 -330
  877. package/dist/ui/use-paged-view-data.test.js.map +0 -1
  878. package/dist/ui/use-reset-on-change.d.ts +0 -22
  879. package/dist/ui/use-reset-on-change.d.ts.map +0 -1
  880. package/dist/ui/use-reset-on-change.js +0 -29
  881. package/dist/ui/use-reset-on-change.js.map +0 -1
  882. package/dist/ui/use-reset-on-change.test.d.ts +0 -2
  883. package/dist/ui/use-reset-on-change.test.d.ts.map +0 -1
  884. package/dist/ui/use-reset-on-change.test.js +0 -61
  885. package/dist/ui/use-reset-on-change.test.js.map +0 -1
  886. package/dist/ui/use-view-data.seeded.test.d.ts +0 -2
  887. package/dist/ui/use-view-data.seeded.test.d.ts.map +0 -1
  888. package/dist/ui/use-view-data.seeded.test.js +0 -168
  889. package/dist/ui/use-view-data.seeded.test.js.map +0 -1
  890. package/dist/ui/view-data-state.test.d.ts +0 -2
  891. package/dist/ui/view-data-state.test.d.ts.map +0 -1
  892. package/dist/ui/view-data-state.test.js +0 -62
  893. package/dist/ui/view-data-state.test.js.map +0 -1
  894. package/dist/ui/view-meta.test.d.ts +0 -2
  895. package/dist/ui/view-meta.test.d.ts.map +0 -1
  896. package/dist/ui/view-meta.test.js +0 -92
  897. package/dist/ui/view-meta.test.js.map +0 -1
  898. package/dist/ui/widget-shell.test.d.ts +0 -2
  899. package/dist/ui/widget-shell.test.d.ts.map +0 -1
  900. package/dist/ui/widget-shell.test.js +0 -41
  901. package/dist/ui/widget-shell.test.js.map +0 -1
  902. package/dist/widget-meta-defaults.d.ts +0 -48
  903. package/dist/widget-meta-defaults.d.ts.map +0 -1
  904. package/dist/widget-meta-defaults.js +0 -80
  905. package/dist/widget-meta-defaults.js.map +0 -1
  906. package/dist/widget-meta-defaults.test.d.ts +0 -2
  907. package/dist/widget-meta-defaults.test.d.ts.map +0 -1
  908. package/dist/widget-meta-defaults.test.js +0 -196
  909. package/dist/widget-meta-defaults.test.js.map +0 -1
  910. package/dist/widget-tool-bindings.test.d.ts +0 -2
  911. package/dist/widget-tool-bindings.test.d.ts.map +0 -1
  912. package/dist/widget-tool-bindings.test.js +0 -83
  913. package/dist/widget-tool-bindings.test.js.map +0 -1
  914. package/dist/with-tool-errors.test.d.ts +0 -2
  915. package/dist/with-tool-errors.test.d.ts.map +0 -1
  916. package/dist/with-tool-errors.test.js +0 -38
  917. package/dist/with-tool-errors.test.js.map +0 -1
@@ -0,0 +1,26 @@
1
+ import { type CallObserver } from "./call-observer.js";
2
+ import { type HostWidgets } from "./host-widgets.js";
3
+ import type { ViewComponent, ViewMap } from "./views.js";
4
+ export interface MountViewOptions {
5
+ /** The view's name (= its show tool's name); the stripped-result recovery re-runs it. */
6
+ name: string | undefined;
7
+ view: ViewComponent | undefined;
8
+ hostWidgets?: HostWidgets;
9
+ }
10
+ export interface MountViewsOptions {
11
+ views: ViewMap;
12
+ hostWidgets?: HostWidgets;
13
+ }
14
+ /** One view, no map: the observer listens BEFORE the runtime connects, so it sees every notification. */
15
+ export declare function mountView(options: MountViewOptions): void;
16
+ /** The view the document's prelude names; an unknown name renders the "can't show" state. */
17
+ export declare function mountViews({ views, hostWidgets }: MountViewsOptions): void;
18
+ /**
19
+ * The provider order is load-bearing: the host first (every hook below reads it), ONE query client
20
+ * per document, the document layer (theme, fonts, the inline budget box), the gate that resolves
21
+ * the locale from the host context, then the kit's icon stroke and toasts.
22
+ */
23
+ export declare function ViewRoot({ name, view, hostWidgets, observer, }: MountViewOptions & {
24
+ observer: CallObserver | null;
25
+ }): import("react").JSX.Element;
26
+ //# sourceMappingURL=view-root.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"view-root.d.ts","sourceRoot":"","sources":["../../src/ui/view-root.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAuB,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAG3E,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAKzE,OAAO,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAExD,MAAM,WAAW,gBAAgB;IAC/B,yFAAyF;IACzF,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;IACxB,IAAI,EAAE,aAAa,GAAG,SAAS,CAAA;IAC/B,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,OAAO,CAAA;IACd,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B;AAID,yGAAyG;AACzG,wBAAgB,SAAS,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAMzD;AAED,6FAA6F;AAC7F,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,iBAAiB,GAAG,IAAI,CAI1E;AAUD;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,IAAI,EACJ,WAAW,EACX,QAAQ,GACT,EAAE,gBAAgB,GAAG;IAAE,QAAQ,EAAE,YAAY,GAAG,IAAI,CAAA;CAAE,+BAqBtD"}
@@ -0,0 +1,48 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * The bundle root (the second widget-shell file that imports `mcp-use/react`; the other is
4
+ * `mcp-use-host.tsx`). `mountViews` picks the view the document's prelude names; `mountView`
5
+ * mounts one view without a map, the entry a per-view build would call.
6
+ */
7
+ import { StrictMode, useState } from "react";
8
+ import { QueryClientProvider } from "@tanstack/react-query";
9
+ import { ToastProvider, ICON_STROKE } from "@miragon/pulse-ui";
10
+ import { LucideProvider } from "lucide-react";
11
+ import { bootstrapView } from "mcp-use/react";
12
+ import { readViewName } from "../protocol/view-name.js";
13
+ import { installCallObserver } from "./call-observer.js";
14
+ import { SHELL_VIEW_CONFIG } from "./display-mode-toggle.js";
15
+ import { HostDocument } from "./host-document.js";
16
+ import { HostWidgetsProvider } from "./host-widgets.js";
17
+ import { McpUseViewHost, useMcpUseViewCall } from "./mcp-use-host.js";
18
+ import { LocaleGate } from "./locale-gate.js";
19
+ import { createViewQueryClient } from "./tool-query.js";
20
+ import { ViewFrame } from "./view-frame.js";
21
+ const NO_WIDGETS = {};
22
+ /** One view, no map: the observer listens BEFORE the runtime connects, so it sees every notification. */
23
+ export function mountView(options) {
24
+ const observer = installCallObserver();
25
+ bootstrapView({
26
+ default: () => _jsx(ViewRoot, { ...options, observer: observer }),
27
+ viewConfig: SHELL_VIEW_CONFIG,
28
+ });
29
+ }
30
+ /** The view the document's prelude names; an unknown name renders the "can't show" state. */
31
+ export function mountViews({ views, hostWidgets }) {
32
+ const name = readViewName();
33
+ const view = name !== undefined && Object.hasOwn(views, name) ? views[name] : undefined;
34
+ mountView({ name, view, hostWidgets });
35
+ }
36
+ function McpUseViewFrame({ name, view, observer, }) {
37
+ return _jsx(ViewFrame, { call: useMcpUseViewCall(name, observer), view: view });
38
+ }
39
+ /**
40
+ * The provider order is load-bearing: the host first (every hook below reads it), ONE query client
41
+ * per document, the document layer (theme, fonts, the inline budget box), the gate that resolves
42
+ * the locale from the host context, then the kit's icon stroke and toasts.
43
+ */
44
+ export function ViewRoot({ name, view, hostWidgets, observer, }) {
45
+ const [client] = useState(createViewQueryClient);
46
+ return (_jsx(StrictMode, { children: _jsx(McpUseViewHost, { children: _jsx(QueryClientProvider, { client: client, children: _jsx(HostDocument, { children: _jsx(LocaleGate, { children: _jsx(LucideProvider, { strokeWidth: ICON_STROKE, children: _jsx(ToastProvider, { children: _jsx(HostWidgetsProvider, { widgets: hostWidgets ?? NO_WIDGETS, children: _jsx(McpUseViewFrame, { name: name, view: view, observer: observer }) }) }) }) }) }) }) }) }));
47
+ }
48
+ //# sourceMappingURL=view-root.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"view-root.js","sourceRoot":"","sources":["../../src/ui/view-root.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,aAAa,EAAE,M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,QAAQ,GACkE;IAC1E,OAAO,KAAC,SAAS,IAAC,IAAI,EAAE,iBAAiB,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,GAAI,CAAA;AAC3E,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,QAAQ,CAAC,EACvB,IAAI,EACJ,IAAI,EACJ,WAAW,EACX,QAAQ,GAC6C;IACrD,MAAM,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC,qBAAqB,CAAC,CAAA;IAChD,OAAO,CACL,KAAC,UAAU,cACT,KAAC,cAAc,cACb,KAAC,mBAAmB,IAAC,MAAM,EAAE,MAAM,YACjC,KAAC,YAAY,cACX,KAAC,UAAU,cACT,KAAC,cAAc,IAAC,WAAW,EAAE,WAAW,YACtC,KAAC,aAAa,cACZ,KAAC,mBAAmB,IAAC,OAAO,EAAE,WAAW,IAAI,UAAU,YACrD,KAAC,eAAe,IAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,GAAI,GAC3C,GACR,GACD,GACN,GACA,GACK,GACP,GACN,CACd,CAAA;AACH,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { type ReactNode } from "react";
2
+ /** A view gets its show tool's `structuredContent` as `data`; it composes its own widgets. */
3
+ export interface ViewProps<TData> {
4
+ data: TData;
5
+ }
6
+ /** A function type (contravariant in `data`), so every `ViewComponent<X>` is a `ViewComponent`. */
7
+ export type ViewComponent<TData = never> = (props: ViewProps<TData>) => ReactNode;
8
+ /** Key = view name = show tool name (`showToolBinding`). */
9
+ export type ViewMap = Readonly<Record<string, ViewComponent>>;
10
+ /**
11
+ * The static-layout helper: full-width rows, each widget in its own shell. Every row sits in its
12
+ * own error boundary, so one crashing widget shows its fallback while its siblings stay up.
13
+ */
14
+ export declare function ViewStack({ children }: {
15
+ children: ReactNode;
16
+ }): import("react").JSX.Element;
17
+ //# sourceMappingURL=views.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"views.d.ts","sourceRoot":"","sources":["../../src/ui/views.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAGhE,8FAA8F;AAC9F,MAAM,WAAW,SAAS,CAAC,KAAK;IAC9B,IAAI,EAAE,KAAK,CAAA;CACZ;AAED,mGAAmG;AACnG,MAAM,MAAM,aAAa,CAAC,KAAK,GAAG,KAAK,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,KAAK,SAAS,CAAA;AAEjF,4DAA4D;AAC5D,MAAM,MAAM,OAAO,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAA;AAE7D;;;GAGG;AACH,wBAAgB,SAAS,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAU9D"}
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Children, isValidElement } from "react";
3
+ import { ViewErrorBoundary } from "./view-error-boundary.js";
4
+ /**
5
+ * The static-layout helper: full-width rows, each widget in its own shell. Every row sits in its
6
+ * own error boundary, so one crashing widget shows its fallback while its siblings stay up.
7
+ */
8
+ export function ViewStack({ children }) {
9
+ return (_jsx("div", { className: "flex min-w-0 flex-col gap-4", children: Children.toArray(children).map((child, index) => (_jsx(ViewErrorBoundary, { children: child }, isValidElement(child) ? child.key : index))) }));
10
+ }
11
+ //# sourceMappingURL=views.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"views.js","sourceRoot":"","sources":["../../src/ui/views.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAkB,MAAM,OAAO,CAAA;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAa5D;;;GAGG;AACH,MAAM,UAAU,SAAS,CAAC,EAAE,QAAQ,EAA2B;IAC7D,OAAO,CACL,cAAK,SAAS,EAAC,6BAA6B,YACzC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAChD,KAAC,iBAAiB,cACf,KAAK,IADgB,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAE7C,CACrB,CAAC,GACE,CACP,CAAA;AACH,CAAC"}
@@ -1,22 +1,10 @@
1
1
  import { type ReactNode } from "react";
2
- /** Provide the host-reported display mode to the widget tree (bundle root only). */
3
2
  export declare function DisplayModeProvider({ mode, children }: {
4
3
  mode: string;
5
4
  children: ReactNode;
6
5
  }): import("react").JSX.Element;
7
- /** The host-reported display mode for this subtree (`"inline"` outside a host). */
8
6
  export declare function useHostDisplayMode(): string;
9
- /**
10
- * Top-level container for a Miragon-styled widget. Sets max-width, padding,
11
- * background, and the default text/font conventions used by all dashboards.
12
- * Nesting-aware: an inner WidgetShell keeps only the section stack (gap), so a
13
- * widget that owns a shell can be embedded under an app-level shell unchanged.
14
- *
15
- * Padding on the CI grid: 24 px, 16 px below 640 px (an inline view on a
16
- * phone or in a narrow chat column). Every child may shrink below its content
17
- * (`min-w-0`), so a wide table scrolls inside its own region (`ListTable`)
18
- * instead of widening the document.
19
- */
7
+ /** Every child may shrink (`min-w-0`), so a wide table scrolls in its own region instead of widening the document. */
20
8
  export declare function WidgetShell({ children, className }: {
21
9
  children: ReactNode;
22
10
  className?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"widget-shell.d.ts","sourceRoot":"","sources":["../../src/ui/widget-shell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAoBjE,oFAAoF;AACpF,wBAAgB,mBAAmB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAE5F;AAED,mFAAmF;AACnF,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,+BAsB/F"}
1
+ {"version":3,"file":"widget-shell.d.ts","sourceRoot":"","sources":["../../src/ui/widget-shell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AASjE,wBAAgB,mBAAmB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAE5F;AAED,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C;AAED,sHAAsH;AACtH,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,+BAoB/F"}
@@ -1,46 +1,21 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { createContext, useContext } from "react";
3
- import { cn } from "@miragon/mcp-toolkit-ui";
4
- /**
5
- * True below an already-rendered WidgetShell. Widgets wrap themselves in a
6
- * shell so they work standalone; composed hosts (the cockpit) also wrap the
7
- * whole app in one — without this flag every embedded widget would stack a
8
- * second layer of background, padding and max-width inside the first.
9
- */
3
+ import { cn } from "@miragon/pulse-ui";
4
+ /** Without this flag every embedded widget would stack a second background and padding inside the first. */
10
5
  const InsideShellContext = createContext(false);
11
- /**
12
- * The host's display mode for the current render. mcp-use 2.x's
13
- * `useDisplayMode` only works inside a `bootstrapView`-mounted view, so the
14
- * value is provided from the bundle root (where that hook is legal) and
15
- * defaults to `"inline"` everywhere else (unit renders, fixtures, standalone
16
- * embeds) — exactly the pre-2.x fallback behaviour.
17
- */
6
+ /** mcp-use 2.x's `useDisplayMode` only works under `bootstrapView`, so the bundle root provides it. */
18
7
  const DisplayModeContext = createContext("inline");
19
- /** Provide the host-reported display mode to the widget tree (bundle root only). */
20
8
  export function DisplayModeProvider({ mode, children }) {
21
9
  return _jsx(DisplayModeContext.Provider, { value: mode, children: children });
22
10
  }
23
- /** The host-reported display mode for this subtree (`"inline"` outside a host). */
24
11
  export function useHostDisplayMode() {
25
12
  return useContext(DisplayModeContext);
26
13
  }
27
- /**
28
- * Top-level container for a Miragon-styled widget. Sets max-width, padding,
29
- * background, and the default text/font conventions used by all dashboards.
30
- * Nesting-aware: an inner WidgetShell keeps only the section stack (gap), so a
31
- * widget that owns a shell can be embedded under an app-level shell unchanged.
32
- *
33
- * Padding on the CI grid: 24 px, 16 px below 640 px (an inline view on a
34
- * phone or in a narrow chat column). Every child may shrink below its content
35
- * (`min-w-0`), so a wide table scrolls inside its own region (`ListTable`)
36
- * instead of widening the document.
37
- */
14
+ /** Every child may shrink (`min-w-0`), so a wide table scrolls in its own region instead of widening the document. */
38
15
  export function WidgetShell({ children, className }) {
39
16
  const nested = useContext(InsideShellContext);
40
17
  const displayMode = useContext(DisplayModeContext);
41
- // Nested: drop background, padding, max-width and centering (the outer shell
42
- // owns those), but keep the internal section stack — widgets rely on the
43
- // shell's gap for the spacing between their own header/KPIs/tables.
18
+ // Nested: keep the section stack; widgets rely on the shell's gap.
44
19
  if (nested) {
45
20
  return _jsx("div", { className: cn("flex min-w-0 flex-col gap-6", className), children: children });
46
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"widget-shell.js","sourceRoot":"","sources":["../../src/ui/widget-shell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAkB,MAAM,OAAO,CAAA;AACjE,OAAO,EAAE,EAAE,EAAE,MAAM,yBAAyB,CAAA;AAE5C;;;;;GAKG;AACH,MAAM,kBAAkB,GAAG,aA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PE]`) in every server that bundles views.
4
+ *
5
+ * pnpm installs a package once per peer set, so the connectors, your own modules and the app
6
+ * can each see their own copy of these. Each copy carries its own React context or module
7
+ * state: the view root (widget-shell's copy) provides the view host and the ONE `QueryClient`,
8
+ * but a widget that reads another copy finds no host and no client, and every in-widget query
9
+ * hangs on "Loading…". The same holds for the view runtime in `mcp-use/react`, the locale and
10
+ * toast contexts of `@miragon/pulse-ui`, the view runtime of this package and the
11
+ * `LucideProvider` of `lucide-react` (dedupe a 1.x copy: 0.x has no `LucideProvider`).
12
+ * A version bump of this package ships a change to the list; never trim it in a host.
13
+ */
14
+ export declare const VIEW_BUNDLE_DEDUPE: readonly ["react", "react-dom", "@tanstack/react-query", "mcp-use", "@miragon/pulse-ui", "@miragon/pulse-widget-shell", "lucide-react"];
15
+ //# sourceMappingURL=view-bundle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"view-bundle.d.ts","sourceRoot":"","sources":["../src/view-bundle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,kBAAkB,yIAQrB,CAAA"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * The packages a host's view bundle must resolve to ONE instance: spread it into Vite's
3
+ * `resolve.dedupe` (`dedupe: [...VIEW_BUNDLE_DEDUPE]`) in every server that bundles views.
4
+ *
5
+ * pnpm installs a package once per peer set, so the connectors, your own modules and the app
6
+ * can each see their own copy of these. Each copy carries its own React context or module
7
+ * state: the view root (widget-shell's copy) provides the view host and the ONE `QueryClient`,
8
+ * but a widget that reads another copy finds no host and no client, and every in-widget query
9
+ * hangs on "Loading…". The same holds for the view runtime in `mcp-use/react`, the locale and
10
+ * toast contexts of `@miragon/pulse-ui`, the view runtime of this package and the
11
+ * `LucideProvider` of `lucide-react` (dedupe a 1.x copy: 0.x has no `LucideProvider`).
12
+ * A version bump of this package ships a change to the list; never trim it in a host.
13
+ */
14
+ export const VIEW_BUNDLE_DEDUPE = [
15
+ "react",
16
+ "react-dom",
17
+ "@tanstack/react-query",
18
+ "mcp-use",
19
+ "@miragon/pulse-ui",
20
+ "@miragon/pulse-widget-shell",
21
+ "lucide-react",
22
+ ];
23
+ //# sourceMappingURL=view-bundle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"view-bundle.js","sourceRoot":"","sources":["../src/view-bundle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,OAAO;IACP,WAAW;IACX,uBAAuB;IACvB,SAAS;IACT,mBAAmB;IACnB,6BAA6B;IAC7B,cAAc;CACN,CAAA"}
@@ -1,26 +1,20 @@
1
- import { type ComposedViewInput, type SingleWidgetViewInput } from "@miragon/mcp-toolkit-core";
2
1
  /**
3
- * The tool results every module returns, in one module of their own so the
4
- * shell's own tools (`shell-settings.ts`) use them without importing the
5
- * `/server` barrel that re-exports them.
2
+ * A type alias, NOT an interface: TypeScript synthesizes the index signature mcp-use's tool
3
+ * callback expects for anonymous types only.
6
4
  */
7
- /**
8
- * mcp-use's raw `server.tool()` callback expects a result with an implicit
9
- * string index signature, which TypeScript synthesizes for anonymous object
10
- * types but NOT for the toolkit's named `ViewToolResult` interface. Re-annotate
11
- * the builders' return as that anonymous shape (the runtime value is the
12
- * toolkit's, unchanged) so the eager `*_show_*` handlers stay assignable.
13
- */
14
- type ViewResult = {
5
+ export type ViewResult = {
15
6
  content: {
16
7
  type: "text";
17
8
  text: string;
18
9
  }[];
19
10
  structuredContent: Record<string, unknown>;
20
11
  };
21
- export declare const buildSingleWidgetView: (input: SingleWidgetViewInput) => ViewResult;
22
- export declare const buildComposedView: (input: ComposedViewInput) => ViewResult;
23
- /** An app-only feed's result: the payload once, as compact JSON text. */
12
+ /**
13
+ * A show tool's result: `structuredContent` IS the data its view renders (the view is picked by
14
+ * its name, the tool's name); the text is what the model reads: a short summary or, where the
15
+ * model needs the figures, the result as compact JSON.
16
+ */
17
+ export declare function buildViewResult(data: object, summary: string): ViewResult;
24
18
  type FeedResult = {
25
19
  content: {
26
20
  type: "text";
@@ -28,14 +22,9 @@ type FeedResult = {
28
22
  }[];
29
23
  };
30
24
  /**
31
- * Plain (no-UI) tool result for an app-only `*_data` feed: the JSON payload
32
- * ONCE, as compact text, deliberately free of widget `_meta` keys — a
33
- * widget-tool result (`ui.resourceUri`) would be rendered by the host instead
34
- * of being returned to the in-widget `callTool()` (architecture invariant 5).
35
- * Text, not `structuredContent`: the widgets read either (the toolkit's
36
- * `parseToolResult` falls back to the JSON text), a host that strips
37
- * `structuredContent` keeps text, and sending both doubled every feed.
38
- * The single shared implementation for every module's data feeds.
25
+ * No widget `_meta`: a widget-tool result would be rendered by the host instead
26
+ * of reaching the in-widget `callTool()`. Text only: hosts may strip
27
+ * `structuredContent`, and sending both doubled every feed.
39
28
  */
40
29
  export declare const buildDataFeedResult: (data: Record<string, unknown>) => FeedResult;
41
30
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"view-results.d.ts","sourceRoot":"","sources":["../src/view-results.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC3B,MAAM,2BAA2B,CAAA;AAElC;;;;GAIG;AAEH;;;;;;GAMG;AACH,KAAK,UAAU,GAAG;IAChB,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACzC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC3C,CAAA;AAED,eAAO,MAAM,qBAAqB,GAAI,OAAO,qBAAqB,KAAG,UACnC,CAAA;AAElC,eAAO,MAAM,iBAAiB,GAAI,OAAO,iBAAiB,KAAG,UAC/B,CAAA;AAE9B,yEAAyE;AACzE,KAAK,UAAU,GAAG;IAAE,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAAE,CAAA;AAE/D;;;;;;;;;GASG;AACH,eAAO,MAAM,mBAAmB,GAAI,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAG,UAElE,CAAA"}
1
+ {"version":3,"file":"view-results.d.ts","sourceRoot":"","sources":["../src/view-results.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACzC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC3C,CAAA;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,UAAU,CAKzE;AAED,KAAK,UAAU,GAAG;IAAE,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAAE,CAAA;AAE/D;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAAI,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAG,UAElE,CAAA"}
@@ -1,15 +1,18 @@
1
- import { buildComposedView as buildComposedViewCore, buildSingleWidgetView as buildSingleWidgetViewCore, } from "@miragon/mcp-toolkit-core";
2
- export const buildSingleWidgetView = (input) => buildSingleWidgetViewCore(input);
3
- export const buildComposedView = (input) => buildComposedViewCore(input);
4
1
  /**
5
- * Plain (no-UI) tool result for an app-only `*_data` feed: the JSON payload
6
- * ONCE, as compact text, deliberately free of widget `_meta` keys — a
7
- * widget-tool result (`ui.resourceUri`) would be rendered by the host instead
8
- * of being returned to the in-widget `callTool()` (architecture invariant 5).
9
- * Text, not `structuredContent`: the widgets read either (the toolkit's
10
- * `parseToolResult` falls back to the JSON text), a host that strips
11
- * `structuredContent` keeps text, and sending both doubled every feed.
12
- * The single shared implementation for every module's data feeds.
2
+ * A show tool's result: `structuredContent` IS the data its view renders (the view is picked by
3
+ * its name, the tool's name); the text is what the model reads: a short summary or, where the
4
+ * model needs the figures, the result as compact JSON.
5
+ */
6
+ export function buildViewResult(data, summary) {
7
+ return {
8
+ content: [{ type: "text", text: summary }],
9
+ structuredContent: data,
10
+ };
11
+ }
12
+ /**
13
+ * No widget `_meta`: a widget-tool result would be rendered by the host instead
14
+ * of reaching the in-widget `callTool()`. Text only: hosts may strip
15
+ * `structuredContent`, and sending both doubled every feed.
13
16
  */
14
17
  export const buildDataFeedResult = (data) => ({
15
18
  content: [{ type: "text", text: JSON.stringify(data) }],
@@ -1 +1 @@
1
- {"version":3,"file":"view-results.js","sourceRoot":"","sources":["../src/view-results.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,IAAI,qBAAqB,EAC1C,qBAAqB,IAAI,yBAAyB,GAGnD,MAAM,2BAA2B,CAAA;AAoBlC,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,KAA4B,EAAc,EAAE,CAChF,yBAAyB,CAAC,KAAK,CAAC,CAAA;AAElC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAwB,EAAc,EAAE,CACxE,qBAAqB,CAAC,KAAK,CAAC,CAAA;AAK9B;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAA6B,EAAc,EAAE,CAAC,CAAC;IACjF,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;CACxD,CAAC,CAAA"}
1
+ {"version":3,"file":"view-results.js","sourceRoot":"","sources":["../src/view-results.ts"],"names":[],"mappings":"AASA;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,IAAY,EAAE,OAAe;IAC3D,OAAO;QACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;QAC1C,iBAAiB,EAAE,IAA+B;KACnD,CAAA;AACH,CAAC;AAID;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAA6B,EAAc,EAAE,CAAC,CAAC;IACjF,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;CACxD,CAAC,CAAA"}
@@ -1,28 +1,12 @@
1
1
  import { z } from "zod";
2
+ /** mcp-use's scheme for view resources; it exports none, and the widget-contract e2e pins it. */
3
+ export declare const VIEW_RESOURCE_URI_PREFIX = "ui://views/";
4
+ export declare function viewResourceUri(viewName: string): string;
2
5
  /**
3
- * The two spreads every module's raw `server.tool()` widget registrations
4
- * compose — the wire-contract halves of architecture invariant 5. One
5
- * implementation for all modules (they were byte-identical copies before):
6
- * a module that hand-rolls these drifts out of the widget-contract e2e test's
7
- * expectations on the first mcp-use change.
8
- */
9
- /**
10
- * View binding + Apps-SDK `_meta` half for a widget-RENDERING (model-visible)
11
- * tool — spread into the `server.tool` definition of every `show_*` tool. The
12
- * view name IS the tool name: mcp-use derives the entire MCP Apps half of the
13
- * wire contract (`_meta.ui.resourceUri`, flat `ui/resourceUri`, resource CSP)
14
- * from the first-class `view` binding — never stamp `ui` keys by hand, mcp-use
15
- * overwrites that namespace on `tools/list`. What mcp-use does NOT derive is
16
- * the OpenAI Apps SDK half (`openai/*`): `appsSdkMeta` builds it, pointing
17
- * `openai/outputTemplate` at the same `ui://views/<name>.html` resource. The
18
- * `outputSchema` is required by mcp-use for any view-bound tool; `passthrough`
19
- * matches the free-form `structuredContent` the view builders return without
20
- * stripping keys on SDK-side validation.
21
- *
22
- * The view resource carries its title as `description` (hosts that list
23
- * resources show it) and asks the host for a border (`prefersBorder`, owner
24
- * decision 2026-10-12, #344 N159): the cards draw none of their own, so a
25
- * frame sets them off from the chat around them.
6
+ * mcp-use derives the MCP Apps half of `_meta` from `view` and overwrites `ui` on tools/list; this
7
+ * stamps only the OpenAI Apps SDK half (`openai/*`), in the wire order hosts read. mcp-use requires
8
+ * an `outputSchema`; `passthrough` keeps free-form `structuredContent` intact. `prefersBorder`: the
9
+ * cards draw no frame of their own (#344).
26
10
  */
27
11
  export declare function showToolBinding(name: string, title: string): {
28
12
  view: {
@@ -31,36 +15,23 @@ export declare function showToolBinding(name: string, title: string): {
31
15
  prefersBorder: boolean;
32
16
  };
33
17
  outputSchema: z.ZodObject<{}, z.core.$loose>;
34
- _meta: Record<string, unknown>;
18
+ _meta: {
19
+ "openai/outputTemplate": string;
20
+ "openai/toolInvocation/invoking": string;
21
+ "openai/toolInvocation/invoked": string;
22
+ "openai/widgetAccessible": boolean;
23
+ "openai/resultCanProduceWidget": boolean;
24
+ };
35
25
  };
36
26
  /**
37
- * The strict input schema every raw `server.tool()` registration declares —
38
- * the twin of the toolkit registrar's `strictInput` option for the widget
39
- * path, which registers outside the registrar. A non-strict `z.object` lets
40
- * mcp-use STRIP an unknown key before the handler runs: a misnamed optional
41
- * filter then silently widens the result (#329). Strict, the schema is
42
- * advertised with `additionalProperties: false`, and an unknown key fails
43
- * validation with the toolkit's own message — every unknown key plus every
44
- * valid one — as an `isError` result the model can correct in one retry.
45
- *
46
- * The message mirrors the toolkit's `unknownKeysMessage` (not exported);
47
- * `widget-tool-bindings.test.ts` pins the two to the same text.
27
+ * A non-strict `z.object` lets mcp-use STRIP an unknown key, so a misnamed
28
+ * filter silently widens the result (#329). The registrar and every raw
29
+ * registration take this one schema.
48
30
  */
49
31
  export declare function strictToolInput<TShape extends z.ZodRawShape>(shape: TShape): z.ZodObject<{ -readonly [P in keyof TShape]: TShape[P]; }, z.core.$strict>;
50
32
  /**
51
- * App-only marker for the internal `*_data` feeds — spread into each feed's
52
- * `server.tool` definition. `visibility: "app"` is mcp-use 2's first-class
53
- * field (emitted as SEP-1865 `_meta.ui.visibility: ["app"]`): conforming hosts
54
- * hide these tools from the LLM tool surface while keeping them callable from
55
- * widgets via `callTool`; the "Internal JSON feed" descriptions stay as
56
- * fallback for non-conforming hosts. Deliberately no `view` binding — the
57
- * feeds must return JSON, not render UI.
58
- *
59
- * `openai/widgetAccessible` covers the Apps-SDK half of the dual contract:
60
- * those hosts only allow in-widget callTool on tools carrying the key — a
61
- * feed without it renders fine but every pagination/search/refresh is denied.
62
- * The key does NOT render anything (no outputTemplate), so the feeds stay
63
- * JSON-only. mcp-use passes non-`ui` `_meta` entries through untouched.
33
+ * SEP-1865 hosts hide `visibility: "app"` tools from the LLM. Apps-SDK hosts
34
+ * deny in-widget callTool without `openai/widgetAccessible`; it renders nothing.
64
35
  */
65
36
  export declare const appOnly: {
66
37
  visibility: "app";
@@ -1 +1 @@
1
- {"version":3,"file":"widget-tool-bindings.d.ts","sourceRoot":"","sources":["../src/widget-tool-bindings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;;;;;;;;EAM1D;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,eAAe,CAAC,MAAM,SAAS,CAAC,CAAC,WAAW,EAAE,KAAK,EAAE,MAAM,8EAM1E;AAUD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,OAAO;;;;;CAGnB,CAAA"}
1
+ {"version":3,"file":"widget-tool-bindings.d.ts","sourceRoot":"","sources":["../src/widget-tool-bindings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,iGAAiG;AACjG,eAAO,MAAM,wBAAwB,gBAAgB,CAAA;AAErD,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAExD;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;;;;;;;;;;;;;;EAY1D;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,MAAM,SAAS,CAAC,CAAC,WAAW,EAAE,KAAK,EAAE,MAAM,8EAM1E;AAUD;;;GAGG;AACH,eAAO,MAAM,OAAO;;;;;CAGnB,CAAA"}
@@ -1,49 +1,32 @@
1
1
  import { z } from "zod";
2
- import { appsSdkMeta, viewResourceUri } from "@miragon/mcp-toolkit-core";
3
- /**
4
- * The two spreads every module's raw `server.tool()` widget registrations
5
- * compose — the wire-contract halves of architecture invariant 5. One
6
- * implementation for all modules (they were byte-identical copies before):
7
- * a module that hand-rolls these drifts out of the widget-contract e2e test's
8
- * expectations on the first mcp-use change.
9
- */
2
+ /** mcp-use's scheme for view resources; it exports none, and the widget-contract e2e pins it. */
3
+ export const VIEW_RESOURCE_URI_PREFIX = "ui://views/";
4
+ export function viewResourceUri(viewName) {
5
+ return `${VIEW_RESOURCE_URI_PREFIX}${viewName}.html`;
6
+ }
10
7
  /**
11
- * View binding + Apps-SDK `_meta` half for a widget-RENDERING (model-visible)
12
- * tool — spread into the `server.tool` definition of every `show_*` tool. The
13
- * view name IS the tool name: mcp-use derives the entire MCP Apps half of the
14
- * wire contract (`_meta.ui.resourceUri`, flat `ui/resourceUri`, resource CSP)
15
- * from the first-class `view` binding — never stamp `ui` keys by hand, mcp-use
16
- * overwrites that namespace on `tools/list`. What mcp-use does NOT derive is
17
- * the OpenAI Apps SDK half (`openai/*`): `appsSdkMeta` builds it, pointing
18
- * `openai/outputTemplate` at the same `ui://views/<name>.html` resource. The
19
- * `outputSchema` is required by mcp-use for any view-bound tool; `passthrough`
20
- * matches the free-form `structuredContent` the view builders return without
21
- * stripping keys on SDK-side validation.
22
- *
23
- * The view resource carries its title as `description` (hosts that list
24
- * resources show it) and asks the host for a border (`prefersBorder`, owner
25
- * decision 2026-10-12, #344 N159): the cards draw none of their own, so a
26
- * frame sets them off from the chat around them.
8
+ * mcp-use derives the MCP Apps half of `_meta` from `view` and overwrites `ui` on tools/list; this
9
+ * stamps only the OpenAI Apps SDK half (`openai/*`), in the wire order hosts read. mcp-use requires
10
+ * an `outputSchema`; `passthrough` keeps free-form `structuredContent` intact. `prefersBorder`: the
11
+ * cards draw no frame of their own (#344).
27
12
  */
28
13
  export function showToolBinding(name, title) {
29
14
  return {
30
15
  view: { name, description: title, prefersBorder: true },
31
16
  outputSchema: z.object({}).passthrough(),
32
- _meta: appsSdkMeta({ resourceUri: viewResourceUri(name), title }),
17
+ _meta: {
18
+ "openai/outputTemplate": viewResourceUri(name),
19
+ "openai/toolInvocation/invoking": `Loading ${title}…`,
20
+ "openai/toolInvocation/invoked": `${title} ready`,
21
+ "openai/widgetAccessible": true,
22
+ "openai/resultCanProduceWidget": true,
23
+ },
33
24
  };
34
25
  }
35
26
  /**
36
- * The strict input schema every raw `server.tool()` registration declares —
37
- * the twin of the toolkit registrar's `strictInput` option for the widget
38
- * path, which registers outside the registrar. A non-strict `z.object` lets
39
- * mcp-use STRIP an unknown key before the handler runs: a misnamed optional
40
- * filter then silently widens the result (#329). Strict, the schema is
41
- * advertised with `additionalProperties: false`, and an unknown key fails
42
- * validation with the toolkit's own message — every unknown key plus every
43
- * valid one — as an `isError` result the model can correct in one retry.
44
- *
45
- * The message mirrors the toolkit's `unknownKeysMessage` (not exported);
46
- * `widget-tool-bindings.test.ts` pins the two to the same text.
27
+ * A non-strict `z.object` lets mcp-use STRIP an unknown key, so a misnamed
28
+ * filter silently widens the result (#329). The registrar and every raw
29
+ * registration take this one schema.
47
30
  */
48
31
  export function strictToolInput(shape) {
49
32
  const valid = Object.keys(shape);
@@ -59,19 +42,8 @@ function unknownKeysMessage(unknown, valid) {
59
42
  : `${head} Valid keys: ${quote(valid)}.`;
60
43
  }
61
44
  /**
62
- * App-only marker for the internal `*_data` feeds — spread into each feed's
63
- * `server.tool` definition. `visibility: "app"` is mcp-use 2's first-class
64
- * field (emitted as SEP-1865 `_meta.ui.visibility: ["app"]`): conforming hosts
65
- * hide these tools from the LLM tool surface while keeping them callable from
66
- * widgets via `callTool`; the "Internal JSON feed" descriptions stay as
67
- * fallback for non-conforming hosts. Deliberately no `view` binding — the
68
- * feeds must return JSON, not render UI.
69
- *
70
- * `openai/widgetAccessible` covers the Apps-SDK half of the dual contract:
71
- * those hosts only allow in-widget callTool on tools carrying the key — a
72
- * feed without it renders fine but every pagination/search/refresh is denied.
73
- * The key does NOT render anything (no outputTemplate), so the feeds stay
74
- * JSON-only. mcp-use passes non-`ui` `_meta` entries through untouched.
45
+ * SEP-1865 hosts hide `visibility: "app"` tools from the LLM. Apps-SDK hosts
46
+ * deny in-widget callTool without `openai/widgetAccessible`; it renders nothing.
75
47
  */
76
48
  export const appOnly = {
77
49
  visibility: "app",
@@ -1 +1 @@
1
- {"version":3,"file":"widget-tool-bindings.js","sourceRoot":"","sources":["../src/widget-tool-bindings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAExE;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,eAAe,CAAC,IAAY,EAAE,KAAa;IACzD,OAAO;QACL,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE;QACvD,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE;QACxC,KAAK,EAAE,WAAW,CAAC,EAAE,WAAW,EAAE,eAAe,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC;KAClE,CAAA;AACH,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,eAAe,CAA+B,KAAa;IACzE,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IAChC,OAAO,CAAC,CAAC,YAAY,CAAC,KAAK,EAAE;QAC3B,KAAK,EAAE,CAAC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