mcp-use 2.0.0-beta.8 → 2.0.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 (1234) hide show
  1. package/dist/bin.js +1 -179
  2. package/dist/branding.d.ts +81 -0
  3. package/dist/buffered-response.d.ts +27 -0
  4. package/dist/chunk-273ZVKJJ.js +2 -0
  5. package/dist/{chunk-FCGJJVL2.js → chunk-GX6PGIEO.js} +33 -142
  6. package/dist/chunk-IS7FKXFR.js +1 -0
  7. package/dist/chunk-KGTOBJW2.js +1 -0
  8. package/dist/chunk-MIZQEWZS.js +1 -0
  9. package/dist/chunk-OJF6B5EU.js +1 -0
  10. package/dist/chunk-PSKSL567.js +1 -0
  11. package/dist/chunk-XYHHP43G.js +1 -0
  12. package/dist/chunk-Y26DNVWA.js +3 -0
  13. package/dist/chunk-ZMU5USAZ.js +1 -0
  14. package/dist/completable.d.ts +0 -1
  15. package/dist/config.d.ts +88 -80
  16. package/dist/context.d.ts +154 -60
  17. package/dist/fetch-app.d.ts +3 -28
  18. package/dist/index-node.js +781 -0
  19. package/dist/index.d.ts +34 -14
  20. package/dist/index.js +41 -2229
  21. package/dist/internal/node-http-unavailable.js +1 -0
  22. package/dist/internal/node-http.js +1 -0
  23. package/dist/internal/resource-completion.js +1 -7
  24. package/dist/internal/usage.js +1 -0
  25. package/dist/landing-handler-TG6LVQBI.js +1 -0
  26. package/dist/landing-handler.d.ts +3 -2
  27. package/dist/landing.d.ts +19 -5
  28. package/dist/landing.js +1 -7
  29. package/dist/listen-address.d.ts +8 -0
  30. package/dist/logging.d.ts +0 -1
  31. package/dist/mcp-proxy-NETCUGUD.js +2 -0
  32. package/dist/mcp-proxy.d.ts +158 -0
  33. package/dist/middleware/cors.d.ts +0 -1
  34. package/dist/middleware/mcp-middleware.d.ts +178 -104
  35. package/dist/mount-mcp.d.ts +0 -1
  36. package/dist/next/config.d.ts +67 -0
  37. package/dist/next/handler.d.ts +32 -0
  38. package/dist/next/index.d.ts +9 -0
  39. package/dist/next/index.js +1 -0
  40. package/dist/node-bridge.d.ts +33 -4
  41. package/dist/node-bridge.js +1 -151
  42. package/dist/node-http-unavailable.d.ts +9 -0
  43. package/dist/node-http.d.ts +2 -0
  44. package/dist/oauth/adapters.d.ts +0 -1
  45. package/dist/oauth/auth0.d.ts +24 -1
  46. package/dist/oauth/auth0.js +1 -61
  47. package/dist/oauth/better-auth.d.ts +23 -1
  48. package/dist/oauth/better-auth.js +1 -76
  49. package/dist/oauth/clerk.d.ts +30 -3
  50. package/dist/oauth/clerk.js +1 -70
  51. package/dist/oauth/errors.d.ts +3 -0
  52. package/dist/oauth/guards.d.ts +0 -1
  53. package/dist/oauth/index.d.ts +0 -1
  54. package/dist/oauth/index.js +1 -28
  55. package/dist/oauth/internal.d.ts +0 -1
  56. package/dist/oauth/jwt.d.ts +10 -4
  57. package/dist/oauth/keycloak.d.ts +28 -1
  58. package/dist/oauth/keycloak.js +1 -94
  59. package/dist/oauth/provider.d.ts +17 -2
  60. package/dist/oauth/supabase.d.ts +38 -2
  61. package/dist/oauth/supabase.js +1 -101
  62. package/dist/oauth/workos.d.ts +27 -1
  63. package/dist/oauth/workos.js +1 -77
  64. package/dist/openapi/index.d.ts +0 -1
  65. package/dist/openapi/index.js +1 -7
  66. package/dist/openapi/types.d.ts +0 -1
  67. package/dist/prompts.d.ts +7 -4
  68. package/dist/public-route-DAQJGS6K.js +1 -0
  69. package/dist/react/components/error-boundary.d.ts +3 -1
  70. package/dist/react/components/image.d.ts +0 -1
  71. package/dist/react/components/model-context.d.ts +8 -57
  72. package/dist/react/components/theme-provider.d.ts +7 -4
  73. package/dist/react/components/view-controls.d.ts +0 -1
  74. package/dist/react/hooks/use-call-tool.d.ts +29 -12
  75. package/dist/react/hooks/use-display-mode.d.ts +0 -1
  76. package/dist/react/hooks/use-files.d.ts +0 -1
  77. package/dist/react/hooks/use-host-context.d.ts +5 -1
  78. package/dist/react/hooks/use-open-external.d.ts +0 -1
  79. package/dist/react/hooks/use-send-follow-up.d.ts +0 -1
  80. package/dist/react/hooks/use-send-size-changed.d.ts +0 -1
  81. package/dist/react/hooks/use-tool-context.d.ts +0 -1
  82. package/dist/react/hooks/use-view-state.d.ts +23 -0
  83. package/dist/react/hooks/use-view-theme.d.ts +0 -1
  84. package/dist/react/hooks/use-view-tool.d.ts +3 -4
  85. package/dist/react/index.d.ts +9 -9
  86. package/dist/react/index.js +286 -131
  87. package/dist/react/public-assets.d.ts +21 -6
  88. package/dist/react/runtime/bootstrap-view.d.ts +3 -4
  89. package/dist/react/runtime/model-context-store.d.ts +34 -69
  90. package/dist/react/runtime/view-config.d.ts +0 -1
  91. package/dist/react/runtime/view-runtime-context.d.ts +0 -1
  92. package/dist/react/runtime/view-runtime.d.ts +4 -6
  93. package/dist/react/types/file-types.d.ts +2 -1
  94. package/dist/react/types/host-types.d.ts +2 -1
  95. package/dist/react/types/register.d.ts +11 -4
  96. package/dist/react/types/result-types.d.ts +0 -1
  97. package/dist/resource-completion.d.ts +0 -1
  98. package/dist/resources.d.ts +14 -6
  99. package/dist/response-conversion.d.ts +25 -0
  100. package/dist/response-helpers.d.ts +231 -0
  101. package/dist/server.d.ts +134 -50
  102. package/dist/tools.d.ts +14 -14
  103. package/dist/usage.d.ts +14 -0
  104. package/dist/views/capabilities.d.ts +0 -1
  105. package/dist/views/constants.d.ts +1 -2
  106. package/dist/views/csp-env.d.ts +0 -1
  107. package/dist/views/document.d.ts +9 -11
  108. package/dist/views/index.d.ts +0 -1
  109. package/dist/views/origin.d.ts +0 -1
  110. package/dist/views/public-route.d.ts +5 -4
  111. package/dist/views/register.d.ts +1 -2
  112. package/dist/views/routes.d.ts +4 -3
  113. package/dist/views/types.d.ts +21 -17
  114. package/dist/views/wire.d.ts +7 -7
  115. package/dist/vite-client.d.ts +1 -0
  116. package/package.json +41 -21
  117. package/dist/.tsbuildinfo +0 -1
  118. package/dist/bin/args.d.ts +0 -61
  119. package/dist/bin/args.d.ts.map +0 -1
  120. package/dist/bin/main.d.ts +0 -32
  121. package/dist/bin/main.d.ts.map +0 -1
  122. package/dist/bin/start.d.ts +0 -40
  123. package/dist/bin/start.d.ts.map +0 -1
  124. package/dist/bin.d.ts +0 -3
  125. package/dist/bin.d.ts.map +0 -1
  126. package/dist/bin.js.map +0 -1
  127. package/dist/chunk-AATFAERC.js +0 -384
  128. package/dist/chunk-AATFAERC.js.map +0 -1
  129. package/dist/chunk-DPL7OEXC.js +0 -518
  130. package/dist/chunk-DPL7OEXC.js.map +0 -1
  131. package/dist/chunk-DQ7LE4ZA.js +0 -237
  132. package/dist/chunk-DQ7LE4ZA.js.map +0 -1
  133. package/dist/chunk-FC2Z2VFO.js +0 -99
  134. package/dist/chunk-FC2Z2VFO.js.map +0 -1
  135. package/dist/chunk-FCGJJVL2.js.map +0 -1
  136. package/dist/chunk-IG2BCCMU.js +0 -98
  137. package/dist/chunk-IG2BCCMU.js.map +0 -1
  138. package/dist/chunk-KIZ72TIK.js +0 -38
  139. package/dist/chunk-KIZ72TIK.js.map +0 -1
  140. package/dist/chunk-QUUANIE4.js +0 -125
  141. package/dist/chunk-QUUANIE4.js.map +0 -1
  142. package/dist/chunk-RQRT27Q3.js +0 -454
  143. package/dist/chunk-RQRT27Q3.js.map +0 -1
  144. package/dist/chunk-STCR3P5O.js +0 -95
  145. package/dist/chunk-STCR3P5O.js.map +0 -1
  146. package/dist/chunk-XUD22N3Y.js +0 -156
  147. package/dist/chunk-XUD22N3Y.js.map +0 -1
  148. package/dist/chunk-Z326HADF.js +0 -82
  149. package/dist/chunk-Z326HADF.js.map +0 -1
  150. package/dist/chunk-ZMIKQPSO.js +0 -151
  151. package/dist/chunk-ZMIKQPSO.js.map +0 -1
  152. package/dist/cli/build.d.ts +0 -61
  153. package/dist/cli/build.d.ts.map +0 -1
  154. package/dist/cli/dev-api.d.ts +0 -49
  155. package/dist/cli/dev-api.d.ts.map +0 -1
  156. package/dist/cli/dev.d.ts +0 -101
  157. package/dist/cli/dev.d.ts.map +0 -1
  158. package/dist/cli/entry.d.ts +0 -31
  159. package/dist/cli/entry.d.ts.map +0 -1
  160. package/dist/cli/index.d.ts +0 -17
  161. package/dist/cli/index.d.ts.map +0 -1
  162. package/dist/cli/port.d.ts +0 -30
  163. package/dist/cli/port.d.ts.map +0 -1
  164. package/dist/cli/tools-declaration.d.ts +0 -22
  165. package/dist/cli/tools-declaration.d.ts.map +0 -1
  166. package/dist/cli/tunnel.d.ts +0 -46
  167. package/dist/cli/tunnel.d.ts.map +0 -1
  168. package/dist/cli/views-bindings.d.ts +0 -30
  169. package/dist/cli/views-bindings.d.ts.map +0 -1
  170. package/dist/cli/views-plugin.d.ts +0 -47
  171. package/dist/cli/views-plugin.d.ts.map +0 -1
  172. package/dist/cli/views.d.ts +0 -75
  173. package/dist/cli/views.d.ts.map +0 -1
  174. package/dist/cli/vite-config.d.ts +0 -21
  175. package/dist/cli/vite-config.d.ts.map +0 -1
  176. package/dist/cli/workspace.d.ts +0 -107
  177. package/dist/cli/workspace.d.ts.map +0 -1
  178. package/dist/commands/build.d.ts +0 -8
  179. package/dist/commands/build.d.ts.map +0 -1
  180. package/dist/commands/build.js +0 -370
  181. package/dist/commands/build.js.map +0 -1
  182. package/dist/commands/client.d.ts +0 -22
  183. package/dist/commands/client.d.ts.map +0 -1
  184. package/dist/commands/client.js +0 -14
  185. package/dist/commands/client.js.map +0 -1
  186. package/dist/commands/cloud-api.d.ts +0 -70
  187. package/dist/commands/cloud-api.d.ts.map +0 -1
  188. package/dist/commands/deploy.d.ts +0 -3
  189. package/dist/commands/deploy.d.ts.map +0 -1
  190. package/dist/commands/deploy.js +0 -242
  191. package/dist/commands/deploy.js.map +0 -1
  192. package/dist/commands/deployments.d.ts +0 -3
  193. package/dist/commands/deployments.d.ts.map +0 -1
  194. package/dist/commands/deployments.js +0 -213
  195. package/dist/commands/deployments.js.map +0 -1
  196. package/dist/commands/dev.d.ts +0 -8
  197. package/dist/commands/dev.d.ts.map +0 -1
  198. package/dist/commands/dev.js +0 -656
  199. package/dist/commands/dev.js.map +0 -1
  200. package/dist/commands/identity.d.ts +0 -3
  201. package/dist/commands/identity.d.ts.map +0 -1
  202. package/dist/commands/identity.js +0 -192
  203. package/dist/commands/identity.js.map +0 -1
  204. package/dist/commands/load-client.d.ts +0 -11
  205. package/dist/commands/load-client.d.ts.map +0 -1
  206. package/dist/commands/organizations.d.ts +0 -3
  207. package/dist/commands/organizations.d.ts.map +0 -1
  208. package/dist/commands/organizations.js +0 -97
  209. package/dist/commands/organizations.js.map +0 -1
  210. package/dist/commands/screenshot.d.ts +0 -3
  211. package/dist/commands/screenshot.d.ts.map +0 -1
  212. package/dist/commands/screenshot.js +0 -463
  213. package/dist/commands/screenshot.js.map +0 -1
  214. package/dist/commands/servers.d.ts +0 -3
  215. package/dist/commands/servers.d.ts.map +0 -1
  216. package/dist/commands/servers.js +0 -278
  217. package/dist/commands/servers.js.map +0 -1
  218. package/dist/commands/shared.d.ts +0 -44
  219. package/dist/commands/shared.d.ts.map +0 -1
  220. package/dist/commands/skills.d.ts +0 -3
  221. package/dist/commands/skills.d.ts.map +0 -1
  222. package/dist/commands/skills.js +0 -84
  223. package/dist/commands/skills.js.map +0 -1
  224. package/dist/commands/start.d.ts +0 -8
  225. package/dist/commands/start.d.ts.map +0 -1
  226. package/dist/commands/start.js +0 -72
  227. package/dist/commands/start.js.map +0 -1
  228. package/dist/completable.d.ts.map +0 -1
  229. package/dist/config.d.ts.map +0 -1
  230. package/dist/context.d.ts.map +0 -1
  231. package/dist/fetch-app.d.ts.map +0 -1
  232. package/dist/index.d.ts.map +0 -1
  233. package/dist/index.js.map +0 -1
  234. package/dist/inspector-shell.d.ts +0 -87
  235. package/dist/inspector-shell.d.ts.map +0 -1
  236. package/dist/internal/resource-completion.js.map +0 -1
  237. package/dist/landing-handler-VQRYCQOV.js +0 -31
  238. package/dist/landing-handler-VQRYCQOV.js.map +0 -1
  239. package/dist/landing-handler.d.ts.map +0 -1
  240. package/dist/landing.d.ts.map +0 -1
  241. package/dist/landing.js.map +0 -1
  242. package/dist/logging.d.ts.map +0 -1
  243. package/dist/middleware/cors.d.ts.map +0 -1
  244. package/dist/middleware/mcp-middleware.d.ts.map +0 -1
  245. package/dist/mount-mcp.d.ts.map +0 -1
  246. package/dist/node-bridge.d.ts.map +0 -1
  247. package/dist/node-bridge.js.map +0 -1
  248. package/dist/oauth/adapters.d.ts.map +0 -1
  249. package/dist/oauth/auth0.d.ts.map +0 -1
  250. package/dist/oauth/auth0.js.map +0 -1
  251. package/dist/oauth/better-auth.d.ts.map +0 -1
  252. package/dist/oauth/better-auth.js.map +0 -1
  253. package/dist/oauth/clerk.d.ts.map +0 -1
  254. package/dist/oauth/clerk.js.map +0 -1
  255. package/dist/oauth/guards.d.ts.map +0 -1
  256. package/dist/oauth/index.d.ts.map +0 -1
  257. package/dist/oauth/index.js.map +0 -1
  258. package/dist/oauth/internal.d.ts.map +0 -1
  259. package/dist/oauth/jwt.d.ts.map +0 -1
  260. package/dist/oauth/keycloak.d.ts.map +0 -1
  261. package/dist/oauth/keycloak.js.map +0 -1
  262. package/dist/oauth/provider.d.ts.map +0 -1
  263. package/dist/oauth/supabase.d.ts.map +0 -1
  264. package/dist/oauth/supabase.js.map +0 -1
  265. package/dist/oauth/workos.d.ts.map +0 -1
  266. package/dist/oauth/workos.js.map +0 -1
  267. package/dist/openapi/index.d.ts.map +0 -1
  268. package/dist/openapi/index.js.map +0 -1
  269. package/dist/openapi/types.d.ts.map +0 -1
  270. package/dist/prompts.d.ts.map +0 -1
  271. package/dist/public-route-26FUVRO5.js +0 -62
  272. package/dist/public-route-26FUVRO5.js.map +0 -1
  273. package/dist/react/components/error-boundary.d.ts.map +0 -1
  274. package/dist/react/components/image.d.ts.map +0 -1
  275. package/dist/react/components/model-context.d.ts.map +0 -1
  276. package/dist/react/components/theme-provider.d.ts.map +0 -1
  277. package/dist/react/components/view-controls.d.ts.map +0 -1
  278. package/dist/react/hooks/use-call-tool.d.ts.map +0 -1
  279. package/dist/react/hooks/use-display-mode.d.ts.map +0 -1
  280. package/dist/react/hooks/use-files.d.ts.map +0 -1
  281. package/dist/react/hooks/use-host-context.d.ts.map +0 -1
  282. package/dist/react/hooks/use-open-external.d.ts.map +0 -1
  283. package/dist/react/hooks/use-send-follow-up.d.ts.map +0 -1
  284. package/dist/react/hooks/use-send-size-changed.d.ts.map +0 -1
  285. package/dist/react/hooks/use-tool-context.d.ts.map +0 -1
  286. package/dist/react/hooks/use-view-theme.d.ts.map +0 -1
  287. package/dist/react/hooks/use-view-tool.d.ts.map +0 -1
  288. package/dist/react/index.d.ts.map +0 -1
  289. package/dist/react/index.js.map +0 -1
  290. package/dist/react/public-assets.d.ts.map +0 -1
  291. package/dist/react/runtime/bootstrap-view.d.ts.map +0 -1
  292. package/dist/react/runtime/model-context-store.d.ts.map +0 -1
  293. package/dist/react/runtime/view-config.d.ts.map +0 -1
  294. package/dist/react/runtime/view-runtime-context.d.ts.map +0 -1
  295. package/dist/react/runtime/view-runtime.d.ts.map +0 -1
  296. package/dist/react/types/file-types.d.ts.map +0 -1
  297. package/dist/react/types/host-types.d.ts.map +0 -1
  298. package/dist/react/types/register.d.ts.map +0 -1
  299. package/dist/react/types/result-types.d.ts.map +0 -1
  300. package/dist/resource-completion.d.ts.map +0 -1
  301. package/dist/resources.d.ts.map +0 -1
  302. package/dist/server.d.ts.map +0 -1
  303. package/dist/tools.d.ts.map +0 -1
  304. package/dist/views/capabilities.d.ts.map +0 -1
  305. package/dist/views/constants.d.ts.map +0 -1
  306. package/dist/views/csp-env.d.ts.map +0 -1
  307. package/dist/views/document.d.ts.map +0 -1
  308. package/dist/views/index.d.ts.map +0 -1
  309. package/dist/views/origin.d.ts.map +0 -1
  310. package/dist/views/public-route.d.ts.map +0 -1
  311. package/dist/views/register.d.ts.map +0 -1
  312. package/dist/views/routes.d.ts.map +0 -1
  313. package/dist/views/types.d.ts.map +0 -1
  314. package/dist/views/wire.d.ts.map +0 -1
  315. package/node_modules/@modelcontextprotocol/client/LICENSE +0 -216
  316. package/node_modules/@modelcontextprotocol/client/README.md +0 -26
  317. package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-Asx17_Co.mjs +0 -7069
  318. package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-Asx17_Co.mjs.map +0 -1
  319. package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-B7GnTXYx.d.mts +0 -1054
  320. package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-B7GnTXYx.d.mts.map +0 -1
  321. package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-B_4czhCS.d.cts +0 -1054
  322. package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-B_4czhCS.d.cts.map +0 -1
  323. package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-DNzBrkxq.cjs +0 -7086
  324. package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-DNzBrkxq.cjs.map +0 -1
  325. package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-D9GAttn8.d.cts +0 -59
  326. package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-D9GAttn8.d.cts.map +0 -1
  327. package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-DbU8BxXO.mjs +0 -970
  328. package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-DbU8BxXO.mjs.map +0 -1
  329. package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-Djgwc46-.cjs +0 -976
  330. package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-Djgwc46-.cjs.map +0 -1
  331. package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-Xtj52JOa.d.mts +0 -59
  332. package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-Xtj52JOa.d.mts.map +0 -1
  333. package/node_modules/@modelcontextprotocol/client/dist/chunk-Bnu9O96Y.cjs +0 -60
  334. package/node_modules/@modelcontextprotocol/client/dist/chunk-Br0eD_fh.mjs +0 -42
  335. package/node_modules/@modelcontextprotocol/client/dist/index-ZagFkUbt.d.mts +0 -2675
  336. package/node_modules/@modelcontextprotocol/client/dist/index-ZagFkUbt.d.mts.map +0 -1
  337. package/node_modules/@modelcontextprotocol/client/dist/index-gN3EXmil.d.cts +0 -2678
  338. package/node_modules/@modelcontextprotocol/client/dist/index-gN3EXmil.d.cts.map +0 -1
  339. package/node_modules/@modelcontextprotocol/client/dist/index.cjs +0 -5427
  340. package/node_modules/@modelcontextprotocol/client/dist/index.cjs.map +0 -1
  341. package/node_modules/@modelcontextprotocol/client/dist/index.d.cts +0 -3196
  342. package/node_modules/@modelcontextprotocol/client/dist/index.d.cts.map +0 -1
  343. package/node_modules/@modelcontextprotocol/client/dist/index.d.mts +0 -3196
  344. package/node_modules/@modelcontextprotocol/client/dist/index.d.mts.map +0 -1
  345. package/node_modules/@modelcontextprotocol/client/dist/index.mjs +0 -5224
  346. package/node_modules/@modelcontextprotocol/client/dist/index.mjs.map +0 -1
  347. package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.cjs +0 -14
  348. package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.cjs.map +0 -1
  349. package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.d.cts +0 -13
  350. package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.d.cts.map +0 -1
  351. package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.d.mts +0 -13
  352. package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.d.mts.map +0 -1
  353. package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.mjs +0 -13
  354. package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.mjs.map +0 -1
  355. package/node_modules/@modelcontextprotocol/client/dist/shimsNode.cjs +0 -14
  356. package/node_modules/@modelcontextprotocol/client/dist/shimsNode.cjs.map +0 -1
  357. package/node_modules/@modelcontextprotocol/client/dist/shimsNode.d.cts +0 -13
  358. package/node_modules/@modelcontextprotocol/client/dist/shimsNode.d.cts.map +0 -1
  359. package/node_modules/@modelcontextprotocol/client/dist/shimsNode.d.mts +0 -13
  360. package/node_modules/@modelcontextprotocol/client/dist/shimsNode.d.mts.map +0 -1
  361. package/node_modules/@modelcontextprotocol/client/dist/shimsNode.mjs +0 -13
  362. package/node_modules/@modelcontextprotocol/client/dist/shimsNode.mjs.map +0 -1
  363. package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.cjs +0 -21
  364. package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.cjs.map +0 -1
  365. package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.d.cts +0 -13
  366. package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.d.cts.map +0 -1
  367. package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.d.mts +0 -13
  368. package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.d.mts.map +0 -1
  369. package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.mjs +0 -20
  370. package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.mjs.map +0 -1
  371. package/node_modules/@modelcontextprotocol/client/dist/src-BzzZSQyL.cjs +0 -7331
  372. package/node_modules/@modelcontextprotocol/client/dist/src-BzzZSQyL.cjs.map +0 -1
  373. package/node_modules/@modelcontextprotocol/client/dist/src-DGeA9On3.mjs +0 -6963
  374. package/node_modules/@modelcontextprotocol/client/dist/src-DGeA9On3.mjs.map +0 -1
  375. package/node_modules/@modelcontextprotocol/client/dist/stdio.cjs +0 -181
  376. package/node_modules/@modelcontextprotocol/client/dist/stdio.cjs.map +0 -1
  377. package/node_modules/@modelcontextprotocol/client/dist/stdio.d.cts +0 -87
  378. package/node_modules/@modelcontextprotocol/client/dist/stdio.d.cts.map +0 -1
  379. package/node_modules/@modelcontextprotocol/client/dist/stdio.d.mts +0 -87
  380. package/node_modules/@modelcontextprotocol/client/dist/stdio.d.mts.map +0 -1
  381. package/node_modules/@modelcontextprotocol/client/dist/stdio.mjs +0 -176
  382. package/node_modules/@modelcontextprotocol/client/dist/stdio.mjs.map +0 -1
  383. package/node_modules/@modelcontextprotocol/client/dist/types-BDNQEPSs.d.mts +0 -1099
  384. package/node_modules/@modelcontextprotocol/client/dist/types-BDNQEPSs.d.mts.map +0 -1
  385. package/node_modules/@modelcontextprotocol/client/dist/types-DsbMXNFL.d.cts +0 -1099
  386. package/node_modules/@modelcontextprotocol/client/dist/types-DsbMXNFL.d.cts.map +0 -1
  387. package/node_modules/@modelcontextprotocol/client/dist/validators/ajv.cjs +0 -5
  388. package/node_modules/@modelcontextprotocol/client/dist/validators/ajv.d.cts +0 -2
  389. package/node_modules/@modelcontextprotocol/client/dist/validators/ajv.d.mts +0 -2
  390. package/node_modules/@modelcontextprotocol/client/dist/validators/ajv.mjs +0 -3
  391. package/node_modules/@modelcontextprotocol/client/dist/validators/cfWorker.cjs +0 -3
  392. package/node_modules/@modelcontextprotocol/client/dist/validators/cfWorker.d.cts +0 -2
  393. package/node_modules/@modelcontextprotocol/client/dist/validators/cfWorker.d.mts +0 -2
  394. package/node_modules/@modelcontextprotocol/client/dist/validators/cfWorker.mjs +0 -3
  395. package/node_modules/@modelcontextprotocol/client/package.json +0 -166
  396. package/node_modules/@modelcontextprotocol/core/LICENSE +0 -216
  397. package/node_modules/@modelcontextprotocol/core/README.md +0 -40
  398. package/node_modules/@modelcontextprotocol/core/dist/auth-BUWfrB3C.d.cts +0 -8198
  399. package/node_modules/@modelcontextprotocol/core/dist/auth-BUWfrB3C.d.cts.map +0 -1
  400. package/node_modules/@modelcontextprotocol/core/dist/auth-CEFpHq32.cjs +0 -2862
  401. package/node_modules/@modelcontextprotocol/core/dist/auth-CEFpHq32.cjs.map +0 -1
  402. package/node_modules/@modelcontextprotocol/core/dist/auth-CNbu4K4a.d.mts +0 -8198
  403. package/node_modules/@modelcontextprotocol/core/dist/auth-CNbu4K4a.d.mts.map +0 -1
  404. package/node_modules/@modelcontextprotocol/core/dist/auth-DFgbUATV.mjs +0 -1653
  405. package/node_modules/@modelcontextprotocol/core/dist/auth-DFgbUATV.mjs.map +0 -1
  406. package/node_modules/@modelcontextprotocol/core/dist/index.cjs +0 -174
  407. package/node_modules/@modelcontextprotocol/core/dist/index.d.cts +0 -2
  408. package/node_modules/@modelcontextprotocol/core/dist/index.d.mts +0 -2
  409. package/node_modules/@modelcontextprotocol/core/dist/index.mjs +0 -3
  410. package/node_modules/@modelcontextprotocol/core/dist/internal.cjs +0 -199
  411. package/node_modules/@modelcontextprotocol/core/dist/internal.d.cts +0 -87
  412. package/node_modules/@modelcontextprotocol/core/dist/internal.d.cts.map +0 -1
  413. package/node_modules/@modelcontextprotocol/core/dist/internal.d.mts +0 -87
  414. package/node_modules/@modelcontextprotocol/core/dist/internal.d.mts.map +0 -1
  415. package/node_modules/@modelcontextprotocol/core/dist/internal.mjs +0 -3
  416. package/node_modules/@modelcontextprotocol/core/package.json +0 -85
  417. package/node_modules/jose/LICENSE.md +0 -21
  418. package/node_modules/jose/README.md +0 -153
  419. package/node_modules/jose/dist/types/index.d.ts +0 -55
  420. package/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +0 -31
  421. package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +0 -65
  422. package/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +0 -31
  423. package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +0 -83
  424. package/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +0 -31
  425. package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +0 -74
  426. package/node_modules/jose/dist/types/jwk/embedded.d.ts +0 -17
  427. package/node_modules/jose/dist/types/jwk/thumbprint.d.ts +0 -32
  428. package/node_modules/jose/dist/types/jwks/local.d.ts +0 -29
  429. package/node_modules/jose/dist/types/jwks/remote.d.ts +0 -237
  430. package/node_modules/jose/dist/types/jws/compact/sign.d.ts +0 -36
  431. package/node_modules/jose/dist/types/jws/compact/verify.d.ts +0 -33
  432. package/node_modules/jose/dist/types/jws/flattened/sign.d.ts +0 -42
  433. package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +0 -33
  434. package/node_modules/jose/dist/types/jws/general/sign.d.ts +0 -53
  435. package/node_modules/jose/dist/types/jws/general/verify.d.ts +0 -33
  436. package/node_modules/jose/dist/types/jwt/decrypt.d.ts +0 -35
  437. package/node_modules/jose/dist/types/jwt/encrypt.d.ts +0 -91
  438. package/node_modules/jose/dist/types/jwt/sign.d.ts +0 -43
  439. package/node_modules/jose/dist/types/jwt/unsecured.d.ts +0 -43
  440. package/node_modules/jose/dist/types/jwt/verify.d.ts +0 -37
  441. package/node_modules/jose/dist/types/key/export.d.ts +0 -33
  442. package/node_modules/jose/dist/types/key/generate_key_pair.d.ts +0 -47
  443. package/node_modules/jose/dist/types/key/generate_secret.d.ts +0 -35
  444. package/node_modules/jose/dist/types/key/import.d.ts +0 -83
  445. package/node_modules/jose/dist/types/types.d.ts +0 -841
  446. package/node_modules/jose/dist/types/util/base64url.d.ts +0 -9
  447. package/node_modules/jose/dist/types/util/decode_jwt.d.ts +0 -18
  448. package/node_modules/jose/dist/types/util/decode_protected_header.d.ts +0 -17
  449. package/node_modules/jose/dist/types/util/errors.d.ts +0 -213
  450. package/node_modules/jose/dist/webapi/index.js +0 -32
  451. package/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +0 -27
  452. package/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +0 -27
  453. package/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +0 -165
  454. package/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +0 -169
  455. package/node_modules/jose/dist/webapi/jwe/general/decrypt.js +0 -31
  456. package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +0 -187
  457. package/node_modules/jose/dist/webapi/jwk/embedded.js +0 -17
  458. package/node_modules/jose/dist/webapi/jwk/thumbprint.js +0 -68
  459. package/node_modules/jose/dist/webapi/jwks/local.js +0 -119
  460. package/node_modules/jose/dist/webapi/jwks/remote.js +0 -179
  461. package/node_modules/jose/dist/webapi/jws/compact/sign.js +0 -18
  462. package/node_modules/jose/dist/webapi/jws/compact/verify.js +0 -21
  463. package/node_modules/jose/dist/webapi/jws/flattened/sign.js +0 -92
  464. package/node_modules/jose/dist/webapi/jws/flattened/verify.js +0 -120
  465. package/node_modules/jose/dist/webapi/jws/general/sign.js +0 -73
  466. package/node_modules/jose/dist/webapi/jws/general/verify.js +0 -24
  467. package/node_modules/jose/dist/webapi/jwt/decrypt.js +0 -23
  468. package/node_modules/jose/dist/webapi/jwt/encrypt.js +0 -108
  469. package/node_modules/jose/dist/webapi/jwt/sign.js +0 -52
  470. package/node_modules/jose/dist/webapi/jwt/unsecured.js +0 -63
  471. package/node_modules/jose/dist/webapi/jwt/verify.js +0 -15
  472. package/node_modules/jose/dist/webapi/key/export.js +0 -11
  473. package/node_modules/jose/dist/webapi/key/generate_key_pair.js +0 -97
  474. package/node_modules/jose/dist/webapi/key/generate_secret.js +0 -40
  475. package/node_modules/jose/dist/webapi/key/import.js +0 -57
  476. package/node_modules/jose/dist/webapi/lib/aesgcmkw.js +0 -16
  477. package/node_modules/jose/dist/webapi/lib/aeskw.js +0 -25
  478. package/node_modules/jose/dist/webapi/lib/asn1.js +0 -243
  479. package/node_modules/jose/dist/webapi/lib/base64.js +0 -22
  480. package/node_modules/jose/dist/webapi/lib/buffer_utils.js +0 -43
  481. package/node_modules/jose/dist/webapi/lib/cek.js +0 -19
  482. package/node_modules/jose/dist/webapi/lib/check_cek_length.js +0 -7
  483. package/node_modules/jose/dist/webapi/lib/check_iv_length.js +0 -7
  484. package/node_modules/jose/dist/webapi/lib/check_key_length.js +0 -8
  485. package/node_modules/jose/dist/webapi/lib/check_key_type.js +0 -122
  486. package/node_modules/jose/dist/webapi/lib/crypto_key.js +0 -143
  487. package/node_modules/jose/dist/webapi/lib/decrypt.js +0 -106
  488. package/node_modules/jose/dist/webapi/lib/decrypt_key_management.js +0 -127
  489. package/node_modules/jose/dist/webapi/lib/digest.js +0 -4
  490. package/node_modules/jose/dist/webapi/lib/ecdhes.js +0 -52
  491. package/node_modules/jose/dist/webapi/lib/encrypt.js +0 -74
  492. package/node_modules/jose/dist/webapi/lib/encrypt_key_management.js +0 -92
  493. package/node_modules/jose/dist/webapi/lib/get_sign_verify_key.js +0 -12
  494. package/node_modules/jose/dist/webapi/lib/invalid_key_input.js +0 -27
  495. package/node_modules/jose/dist/webapi/lib/is_disjoint.js +0 -21
  496. package/node_modules/jose/dist/webapi/lib/is_jwk.js +0 -6
  497. package/node_modules/jose/dist/webapi/lib/is_key_like.js +0 -17
  498. package/node_modules/jose/dist/webapi/lib/is_object.js +0 -14
  499. package/node_modules/jose/dist/webapi/lib/iv.js +0 -19
  500. package/node_modules/jose/dist/webapi/lib/jwk_to_key.js +0 -109
  501. package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +0 -238
  502. package/node_modules/jose/dist/webapi/lib/key_to_jwk.js +0 -31
  503. package/node_modules/jose/dist/webapi/lib/normalize_key.js +0 -176
  504. package/node_modules/jose/dist/webapi/lib/pbes2kw.js +0 -39
  505. package/node_modules/jose/dist/webapi/lib/private_symbols.js +0 -1
  506. package/node_modules/jose/dist/webapi/lib/rsaes.js +0 -24
  507. package/node_modules/jose/dist/webapi/lib/sign.js +0 -9
  508. package/node_modules/jose/dist/webapi/lib/subtle_dsa.js +0 -31
  509. package/node_modules/jose/dist/webapi/lib/validate_algorithms.js +0 -10
  510. package/node_modules/jose/dist/webapi/lib/validate_crit.js +0 -33
  511. package/node_modules/jose/dist/webapi/lib/verify.js +0 -14
  512. package/node_modules/jose/dist/webapi/util/base64url.js +0 -30
  513. package/node_modules/jose/dist/webapi/util/decode_jwt.js +0 -32
  514. package/node_modules/jose/dist/webapi/util/decode_protected_header.js +0 -34
  515. package/node_modules/jose/dist/webapi/util/errors.js +0 -99
  516. package/node_modules/jose/package.json +0 -200
  517. package/node_modules/zod/LICENSE +0 -21
  518. package/node_modules/zod/README.md +0 -191
  519. package/node_modules/zod/index.cjs +0 -33
  520. package/node_modules/zod/index.d.cts +0 -4
  521. package/node_modules/zod/index.d.ts +0 -4
  522. package/node_modules/zod/index.js +0 -4
  523. package/node_modules/zod/locales/index.cjs +0 -17
  524. package/node_modules/zod/locales/index.d.cts +0 -1
  525. package/node_modules/zod/locales/index.d.ts +0 -1
  526. package/node_modules/zod/locales/index.js +0 -1
  527. package/node_modules/zod/locales/package.json +0 -7
  528. package/node_modules/zod/mini/index.cjs +0 -32
  529. package/node_modules/zod/mini/index.d.cts +0 -3
  530. package/node_modules/zod/mini/index.d.ts +0 -3
  531. package/node_modules/zod/mini/index.js +0 -3
  532. package/node_modules/zod/mini/package.json +0 -7
  533. package/node_modules/zod/package.json +0 -135
  534. package/node_modules/zod/src/index.ts +0 -4
  535. package/node_modules/zod/src/locales/index.ts +0 -1
  536. package/node_modules/zod/src/mini/index.ts +0 -3
  537. package/node_modules/zod/src/v3/ZodError.ts +0 -330
  538. package/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
  539. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
  540. package/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
  541. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
  542. package/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
  543. package/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
  544. package/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
  545. package/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
  546. package/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
  547. package/node_modules/zod/src/v3/errors.ts +0 -13
  548. package/node_modules/zod/src/v3/external.ts +0 -6
  549. package/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
  550. package/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
  551. package/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
  552. package/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
  553. package/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
  554. package/node_modules/zod/src/v3/helpers/util.ts +0 -224
  555. package/node_modules/zod/src/v3/index.ts +0 -4
  556. package/node_modules/zod/src/v3/locales/en.ts +0 -124
  557. package/node_modules/zod/src/v3/standard-schema.ts +0 -113
  558. package/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
  559. package/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
  560. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
  561. package/node_modules/zod/src/v3/tests/array.test.ts +0 -71
  562. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
  563. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
  564. package/node_modules/zod/src/v3/tests/base.test.ts +0 -29
  565. package/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
  566. package/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
  567. package/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
  568. package/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
  569. package/node_modules/zod/src/v3/tests/complex.test.ts +0 -70
  570. package/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
  571. package/node_modules/zod/src/v3/tests/date.test.ts +0 -32
  572. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
  573. package/node_modules/zod/src/v3/tests/default.test.ts +0 -112
  574. package/node_modules/zod/src/v3/tests/description.test.ts +0 -33
  575. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
  576. package/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
  577. package/node_modules/zod/src/v3/tests/error.test.ts +0 -551
  578. package/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
  579. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
  580. package/node_modules/zod/src/v3/tests/function.test.ts +0 -261
  581. package/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
  582. package/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
  583. package/node_modules/zod/src/v3/tests/intersection.test.ts +0 -110
  584. package/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
  585. package/node_modules/zod/src/v3/tests/language-server.test.ts +0 -207
  586. package/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
  587. package/node_modules/zod/src/v3/tests/map.test.ts +0 -110
  588. package/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
  589. package/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
  590. package/node_modules/zod/src/v3/tests/nan.test.ts +0 -24
  591. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
  592. package/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
  593. package/node_modules/zod/src/v3/tests/number.test.ts +0 -176
  594. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
  595. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
  596. package/node_modules/zod/src/v3/tests/object.test.ts +0 -434
  597. package/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
  598. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
  599. package/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
  600. package/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
  601. package/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
  602. package/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
  603. package/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
  604. package/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
  605. package/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
  606. package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -194
  607. package/node_modules/zod/src/v3/tests/record.test.ts +0 -171
  608. package/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
  609. package/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
  610. package/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
  611. package/node_modules/zod/src/v3/tests/set.test.ts +0 -142
  612. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
  613. package/node_modules/zod/src/v3/tests/string.test.ts +0 -916
  614. package/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
  615. package/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
  616. package/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
  617. package/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
  618. package/node_modules/zod/src/v3/tests/void.test.ts +0 -15
  619. package/node_modules/zod/src/v3/types.ts +0 -5138
  620. package/node_modules/zod/src/v4/classic/checks.ts +0 -32
  621. package/node_modules/zod/src/v4/classic/coerce.ts +0 -27
  622. package/node_modules/zod/src/v4/classic/compat.ts +0 -70
  623. package/node_modules/zod/src/v4/classic/errors.ts +0 -82
  624. package/node_modules/zod/src/v4/classic/external.ts +0 -52
  625. package/node_modules/zod/src/v4/classic/from-json-schema.ts +0 -659
  626. package/node_modules/zod/src/v4/classic/index.ts +0 -5
  627. package/node_modules/zod/src/v4/classic/iso.ts +0 -90
  628. package/node_modules/zod/src/v4/classic/parse.ts +0 -82
  629. package/node_modules/zod/src/v4/classic/schemas.ts +0 -2672
  630. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
  631. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +0 -59
  632. package/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
  633. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -216
  634. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
  635. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
  636. package/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
  637. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -54
  638. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -106
  639. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -326
  640. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
  641. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +0 -573
  642. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +0 -703
  643. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
  644. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -374
  645. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
  646. package/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -62
  647. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -302
  648. package/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -409
  649. package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +0 -27
  650. package/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
  651. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +0 -197
  652. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -694
  653. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -285
  654. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -807
  655. package/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -711
  656. package/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -96
  657. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -179
  658. package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +0 -26
  659. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +0 -895
  660. package/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -360
  661. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
  662. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +0 -39
  663. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +0 -68
  664. package/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -939
  665. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -60
  666. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -198
  667. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +0 -46
  668. package/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -109
  669. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -227
  670. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -117
  671. package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +0 -29
  672. package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +0 -24
  673. package/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -330
  674. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
  675. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
  676. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -101
  677. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
  678. package/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -325
  679. package/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -717
  680. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -333
  681. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -450
  682. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -211
  683. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -101
  684. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -74
  685. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +0 -26
  686. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -351
  687. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
  688. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
  689. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
  690. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -252
  691. package/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -717
  692. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -631
  693. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -633
  694. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -243
  695. package/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -181
  696. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -134
  697. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -125
  698. package/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -1224
  699. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -106
  700. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -771
  701. package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +0 -438
  702. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -3125
  703. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -378
  704. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -496
  705. package/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -273
  706. package/node_modules/zod/src/v4/classic/tests/url.test.ts +0 -13
  707. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
  708. package/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
  709. package/node_modules/zod/src/v4/core/api.ts +0 -1823
  710. package/node_modules/zod/src/v4/core/checks.ts +0 -1293
  711. package/node_modules/zod/src/v4/core/config.ts +0 -15
  712. package/node_modules/zod/src/v4/core/core.ts +0 -153
  713. package/node_modules/zod/src/v4/core/doc.ts +0 -44
  714. package/node_modules/zod/src/v4/core/errors.ts +0 -455
  715. package/node_modules/zod/src/v4/core/index.ts +0 -16
  716. package/node_modules/zod/src/v4/core/json-schema-generator.ts +0 -126
  717. package/node_modules/zod/src/v4/core/json-schema-processors.ts +0 -666
  718. package/node_modules/zod/src/v4/core/json-schema.ts +0 -147
  719. package/node_modules/zod/src/v4/core/parse.ts +0 -195
  720. package/node_modules/zod/src/v4/core/regexes.ts +0 -190
  721. package/node_modules/zod/src/v4/core/registries.ts +0 -105
  722. package/node_modules/zod/src/v4/core/schemas.ts +0 -4730
  723. package/node_modules/zod/src/v4/core/standard-schema.ts +0 -159
  724. package/node_modules/zod/src/v4/core/tests/extend.test.ts +0 -59
  725. package/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
  726. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
  727. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +0 -215
  728. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
  729. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +0 -181
  730. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +0 -72
  731. package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +0 -379
  732. package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +0 -163
  733. package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +0 -46
  734. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
  735. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
  736. package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +0 -105
  737. package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +0 -125
  738. package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +0 -45
  739. package/node_modules/zod/src/v4/core/to-json-schema.ts +0 -622
  740. package/node_modules/zod/src/v4/core/util.ts +0 -983
  741. package/node_modules/zod/src/v4/core/versions.ts +0 -5
  742. package/node_modules/zod/src/v4/core/zsf.ts +0 -323
  743. package/node_modules/zod/src/v4/index.ts +0 -4
  744. package/node_modules/zod/src/v4/locales/ar.ts +0 -115
  745. package/node_modules/zod/src/v4/locales/az.ts +0 -111
  746. package/node_modules/zod/src/v4/locales/be.ts +0 -176
  747. package/node_modules/zod/src/v4/locales/bg.ts +0 -128
  748. package/node_modules/zod/src/v4/locales/ca.ts +0 -116
  749. package/node_modules/zod/src/v4/locales/cs.ts +0 -118
  750. package/node_modules/zod/src/v4/locales/da.ts +0 -123
  751. package/node_modules/zod/src/v4/locales/de.ts +0 -116
  752. package/node_modules/zod/src/v4/locales/el.ts +0 -121
  753. package/node_modules/zod/src/v4/locales/en.ts +0 -123
  754. package/node_modules/zod/src/v4/locales/eo.ts +0 -118
  755. package/node_modules/zod/src/v4/locales/es.ts +0 -141
  756. package/node_modules/zod/src/v4/locales/fa.ts +0 -126
  757. package/node_modules/zod/src/v4/locales/fi.ts +0 -121
  758. package/node_modules/zod/src/v4/locales/fr-CA.ts +0 -116
  759. package/node_modules/zod/src/v4/locales/fr.ts +0 -132
  760. package/node_modules/zod/src/v4/locales/he.ts +0 -246
  761. package/node_modules/zod/src/v4/locales/hr.ts +0 -131
  762. package/node_modules/zod/src/v4/locales/hu.ts +0 -117
  763. package/node_modules/zod/src/v4/locales/hy.ts +0 -164
  764. package/node_modules/zod/src/v4/locales/id.ts +0 -115
  765. package/node_modules/zod/src/v4/locales/index.ts +0 -52
  766. package/node_modules/zod/src/v4/locales/is.ts +0 -119
  767. package/node_modules/zod/src/v4/locales/it.ts +0 -116
  768. package/node_modules/zod/src/v4/locales/ja.ts +0 -114
  769. package/node_modules/zod/src/v4/locales/ka.ts +0 -123
  770. package/node_modules/zod/src/v4/locales/kh.ts +0 -7
  771. package/node_modules/zod/src/v4/locales/km.ts +0 -119
  772. package/node_modules/zod/src/v4/locales/ko.ts +0 -121
  773. package/node_modules/zod/src/v4/locales/lt.ts +0 -239
  774. package/node_modules/zod/src/v4/locales/mk.ts +0 -118
  775. package/node_modules/zod/src/v4/locales/ms.ts +0 -115
  776. package/node_modules/zod/src/v4/locales/nl.ts +0 -121
  777. package/node_modules/zod/src/v4/locales/no.ts +0 -116
  778. package/node_modules/zod/src/v4/locales/ota.ts +0 -117
  779. package/node_modules/zod/src/v4/locales/pl.ts +0 -118
  780. package/node_modules/zod/src/v4/locales/ps.ts +0 -126
  781. package/node_modules/zod/src/v4/locales/pt.ts +0 -116
  782. package/node_modules/zod/src/v4/locales/ro.ts +0 -129
  783. package/node_modules/zod/src/v4/locales/ru.ts +0 -176
  784. package/node_modules/zod/src/v4/locales/sl.ts +0 -118
  785. package/node_modules/zod/src/v4/locales/sv.ts +0 -119
  786. package/node_modules/zod/src/v4/locales/ta.ts +0 -118
  787. package/node_modules/zod/src/v4/locales/th.ts +0 -119
  788. package/node_modules/zod/src/v4/locales/tr.ts +0 -111
  789. package/node_modules/zod/src/v4/locales/ua.ts +0 -7
  790. package/node_modules/zod/src/v4/locales/uk.ts +0 -117
  791. package/node_modules/zod/src/v4/locales/ur.ts +0 -119
  792. package/node_modules/zod/src/v4/locales/uz.ts +0 -117
  793. package/node_modules/zod/src/v4/locales/vi.ts +0 -117
  794. package/node_modules/zod/src/v4/locales/yo.ts +0 -124
  795. package/node_modules/zod/src/v4/locales/zh-CN.ts +0 -116
  796. package/node_modules/zod/src/v4/locales/zh-TW.ts +0 -115
  797. package/node_modules/zod/src/v4/mini/checks.ts +0 -32
  798. package/node_modules/zod/src/v4/mini/coerce.ts +0 -27
  799. package/node_modules/zod/src/v4/mini/external.ts +0 -41
  800. package/node_modules/zod/src/v4/mini/index.ts +0 -3
  801. package/node_modules/zod/src/v4/mini/iso.ts +0 -66
  802. package/node_modules/zod/src/v4/mini/parse.ts +0 -14
  803. package/node_modules/zod/src/v4/mini/schemas.ts +0 -1947
  804. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +0 -24
  805. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -129
  806. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -94
  807. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -144
  808. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +0 -548
  809. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
  810. package/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -22
  811. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -5
  812. package/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -993
  813. package/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -95
  814. package/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -227
  815. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
  816. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -325
  817. package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +0 -50
  818. package/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -352
  819. package/node_modules/zod/src/v4-mini/index.ts +0 -3
  820. package/node_modules/zod/v3/ZodError.cjs +0 -138
  821. package/node_modules/zod/v3/ZodError.d.cts +0 -164
  822. package/node_modules/zod/v3/ZodError.d.ts +0 -164
  823. package/node_modules/zod/v3/ZodError.js +0 -133
  824. package/node_modules/zod/v3/errors.cjs +0 -17
  825. package/node_modules/zod/v3/errors.d.cts +0 -5
  826. package/node_modules/zod/v3/errors.d.ts +0 -5
  827. package/node_modules/zod/v3/errors.js +0 -9
  828. package/node_modules/zod/v3/external.cjs +0 -22
  829. package/node_modules/zod/v3/external.d.cts +0 -6
  830. package/node_modules/zod/v3/external.d.ts +0 -6
  831. package/node_modules/zod/v3/external.js +0 -6
  832. package/node_modules/zod/v3/helpers/enumUtil.cjs +0 -2
  833. package/node_modules/zod/v3/helpers/enumUtil.d.cts +0 -8
  834. package/node_modules/zod/v3/helpers/enumUtil.d.ts +0 -8
  835. package/node_modules/zod/v3/helpers/enumUtil.js +0 -1
  836. package/node_modules/zod/v3/helpers/errorUtil.cjs +0 -9
  837. package/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -9
  838. package/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -9
  839. package/node_modules/zod/v3/helpers/errorUtil.js +0 -6
  840. package/node_modules/zod/v3/helpers/parseUtil.cjs +0 -124
  841. package/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -78
  842. package/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -78
  843. package/node_modules/zod/v3/helpers/parseUtil.js +0 -109
  844. package/node_modules/zod/v3/helpers/partialUtil.cjs +0 -2
  845. package/node_modules/zod/v3/helpers/partialUtil.d.cts +0 -8
  846. package/node_modules/zod/v3/helpers/partialUtil.d.ts +0 -8
  847. package/node_modules/zod/v3/helpers/partialUtil.js +0 -1
  848. package/node_modules/zod/v3/helpers/typeAliases.cjs +0 -2
  849. package/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -2
  850. package/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -2
  851. package/node_modules/zod/v3/helpers/typeAliases.js +0 -1
  852. package/node_modules/zod/v3/helpers/util.cjs +0 -137
  853. package/node_modules/zod/v3/helpers/util.d.cts +0 -85
  854. package/node_modules/zod/v3/helpers/util.d.ts +0 -85
  855. package/node_modules/zod/v3/helpers/util.js +0 -133
  856. package/node_modules/zod/v3/index.cjs +0 -33
  857. package/node_modules/zod/v3/index.d.cts +0 -4
  858. package/node_modules/zod/v3/index.d.ts +0 -4
  859. package/node_modules/zod/v3/index.js +0 -4
  860. package/node_modules/zod/v3/locales/en.cjs +0 -112
  861. package/node_modules/zod/v3/locales/en.d.cts +0 -3
  862. package/node_modules/zod/v3/locales/en.d.ts +0 -3
  863. package/node_modules/zod/v3/locales/en.js +0 -109
  864. package/node_modules/zod/v3/package.json +0 -7
  865. package/node_modules/zod/v3/standard-schema.cjs +0 -2
  866. package/node_modules/zod/v3/standard-schema.d.cts +0 -102
  867. package/node_modules/zod/v3/standard-schema.d.ts +0 -102
  868. package/node_modules/zod/v3/standard-schema.js +0 -1
  869. package/node_modules/zod/v3/types.cjs +0 -3777
  870. package/node_modules/zod/v3/types.d.cts +0 -1034
  871. package/node_modules/zod/v3/types.d.ts +0 -1034
  872. package/node_modules/zod/v3/types.js +0 -3695
  873. package/node_modules/zod/v4/classic/checks.cjs +0 -33
  874. package/node_modules/zod/v4/classic/checks.d.cts +0 -1
  875. package/node_modules/zod/v4/classic/checks.d.ts +0 -1
  876. package/node_modules/zod/v4/classic/checks.js +0 -1
  877. package/node_modules/zod/v4/classic/coerce.cjs +0 -47
  878. package/node_modules/zod/v4/classic/coerce.d.cts +0 -17
  879. package/node_modules/zod/v4/classic/coerce.d.ts +0 -17
  880. package/node_modules/zod/v4/classic/coerce.js +0 -17
  881. package/node_modules/zod/v4/classic/compat.cjs +0 -61
  882. package/node_modules/zod/v4/classic/compat.d.cts +0 -50
  883. package/node_modules/zod/v4/classic/compat.d.ts +0 -50
  884. package/node_modules/zod/v4/classic/compat.js +0 -31
  885. package/node_modules/zod/v4/classic/errors.cjs +0 -74
  886. package/node_modules/zod/v4/classic/errors.d.cts +0 -30
  887. package/node_modules/zod/v4/classic/errors.d.ts +0 -30
  888. package/node_modules/zod/v4/classic/errors.js +0 -48
  889. package/node_modules/zod/v4/classic/external.cjs +0 -73
  890. package/node_modules/zod/v4/classic/external.d.cts +0 -16
  891. package/node_modules/zod/v4/classic/external.d.ts +0 -16
  892. package/node_modules/zod/v4/classic/external.js +0 -20
  893. package/node_modules/zod/v4/classic/from-json-schema.cjs +0 -625
  894. package/node_modules/zod/v4/classic/from-json-schema.d.cts +0 -12
  895. package/node_modules/zod/v4/classic/from-json-schema.d.ts +0 -12
  896. package/node_modules/zod/v4/classic/from-json-schema.js +0 -599
  897. package/node_modules/zod/v4/classic/index.cjs +0 -33
  898. package/node_modules/zod/v4/classic/index.d.cts +0 -4
  899. package/node_modules/zod/v4/classic/index.d.ts +0 -4
  900. package/node_modules/zod/v4/classic/index.js +0 -4
  901. package/node_modules/zod/v4/classic/iso.cjs +0 -60
  902. package/node_modules/zod/v4/classic/iso.d.cts +0 -22
  903. package/node_modules/zod/v4/classic/iso.d.ts +0 -22
  904. package/node_modules/zod/v4/classic/iso.js +0 -30
  905. package/node_modules/zod/v4/classic/package.json +0 -7
  906. package/node_modules/zod/v4/classic/parse.cjs +0 -41
  907. package/node_modules/zod/v4/classic/parse.d.cts +0 -31
  908. package/node_modules/zod/v4/classic/parse.d.ts +0 -31
  909. package/node_modules/zod/v4/classic/parse.js +0 -15
  910. package/node_modules/zod/v4/classic/schemas.cjs +0 -1511
  911. package/node_modules/zod/v4/classic/schemas.d.cts +0 -767
  912. package/node_modules/zod/v4/classic/schemas.d.ts +0 -767
  913. package/node_modules/zod/v4/classic/schemas.js +0 -1395
  914. package/node_modules/zod/v4/core/api.cjs +0 -1227
  915. package/node_modules/zod/v4/core/api.d.cts +0 -325
  916. package/node_modules/zod/v4/core/api.d.ts +0 -325
  917. package/node_modules/zod/v4/core/api.js +0 -1087
  918. package/node_modules/zod/v4/core/checks.cjs +0 -601
  919. package/node_modules/zod/v4/core/checks.d.cts +0 -278
  920. package/node_modules/zod/v4/core/checks.d.ts +0 -278
  921. package/node_modules/zod/v4/core/checks.js +0 -575
  922. package/node_modules/zod/v4/core/core.cjs +0 -85
  923. package/node_modules/zod/v4/core/core.d.cts +0 -70
  924. package/node_modules/zod/v4/core/core.d.ts +0 -70
  925. package/node_modules/zod/v4/core/core.js +0 -78
  926. package/node_modules/zod/v4/core/doc.cjs +0 -39
  927. package/node_modules/zod/v4/core/doc.d.cts +0 -14
  928. package/node_modules/zod/v4/core/doc.d.ts +0 -14
  929. package/node_modules/zod/v4/core/doc.js +0 -35
  930. package/node_modules/zod/v4/core/errors.cjs +0 -216
  931. package/node_modules/zod/v4/core/errors.d.cts +0 -221
  932. package/node_modules/zod/v4/core/errors.d.ts +0 -221
  933. package/node_modules/zod/v4/core/errors.js +0 -185
  934. package/node_modules/zod/v4/core/index.cjs +0 -47
  935. package/node_modules/zod/v4/core/index.d.cts +0 -16
  936. package/node_modules/zod/v4/core/index.d.ts +0 -16
  937. package/node_modules/zod/v4/core/index.js +0 -16
  938. package/node_modules/zod/v4/core/json-schema-generator.cjs +0 -99
  939. package/node_modules/zod/v4/core/json-schema-generator.d.cts +0 -65
  940. package/node_modules/zod/v4/core/json-schema-generator.d.ts +0 -65
  941. package/node_modules/zod/v4/core/json-schema-generator.js +0 -95
  942. package/node_modules/zod/v4/core/json-schema-processors.cjs +0 -644
  943. package/node_modules/zod/v4/core/json-schema-processors.d.cts +0 -49
  944. package/node_modules/zod/v4/core/json-schema-processors.d.ts +0 -49
  945. package/node_modules/zod/v4/core/json-schema-processors.js +0 -601
  946. package/node_modules/zod/v4/core/json-schema.cjs +0 -2
  947. package/node_modules/zod/v4/core/json-schema.d.cts +0 -88
  948. package/node_modules/zod/v4/core/json-schema.d.ts +0 -88
  949. package/node_modules/zod/v4/core/json-schema.js +0 -1
  950. package/node_modules/zod/v4/core/package.json +0 -7
  951. package/node_modules/zod/v4/core/parse.cjs +0 -131
  952. package/node_modules/zod/v4/core/parse.d.cts +0 -49
  953. package/node_modules/zod/v4/core/parse.d.ts +0 -49
  954. package/node_modules/zod/v4/core/parse.js +0 -93
  955. package/node_modules/zod/v4/core/regexes.cjs +0 -172
  956. package/node_modules/zod/v4/core/regexes.d.cts +0 -85
  957. package/node_modules/zod/v4/core/regexes.d.ts +0 -85
  958. package/node_modules/zod/v4/core/regexes.js +0 -139
  959. package/node_modules/zod/v4/core/registries.cjs +0 -56
  960. package/node_modules/zod/v4/core/registries.d.cts +0 -35
  961. package/node_modules/zod/v4/core/registries.d.ts +0 -35
  962. package/node_modules/zod/v4/core/registries.js +0 -51
  963. package/node_modules/zod/v4/core/schemas.cjs +0 -2270
  964. package/node_modules/zod/v4/core/schemas.d.cts +0 -1184
  965. package/node_modules/zod/v4/core/schemas.d.ts +0 -1184
  966. package/node_modules/zod/v4/core/schemas.js +0 -2239
  967. package/node_modules/zod/v4/core/standard-schema.cjs +0 -2
  968. package/node_modules/zod/v4/core/standard-schema.d.cts +0 -126
  969. package/node_modules/zod/v4/core/standard-schema.d.ts +0 -126
  970. package/node_modules/zod/v4/core/standard-schema.js +0 -1
  971. package/node_modules/zod/v4/core/to-json-schema.cjs +0 -457
  972. package/node_modules/zod/v4/core/to-json-schema.d.cts +0 -114
  973. package/node_modules/zod/v4/core/to-json-schema.d.ts +0 -114
  974. package/node_modules/zod/v4/core/to-json-schema.js +0 -448
  975. package/node_modules/zod/v4/core/util.cjs +0 -734
  976. package/node_modules/zod/v4/core/util.d.cts +0 -200
  977. package/node_modules/zod/v4/core/util.d.ts +0 -200
  978. package/node_modules/zod/v4/core/util.js +0 -674
  979. package/node_modules/zod/v4/core/versions.cjs +0 -8
  980. package/node_modules/zod/v4/core/versions.d.cts +0 -5
  981. package/node_modules/zod/v4/core/versions.d.ts +0 -5
  982. package/node_modules/zod/v4/core/versions.js +0 -5
  983. package/node_modules/zod/v4/index.cjs +0 -22
  984. package/node_modules/zod/v4/index.d.cts +0 -3
  985. package/node_modules/zod/v4/index.d.ts +0 -3
  986. package/node_modules/zod/v4/index.js +0 -3
  987. package/node_modules/zod/v4/locales/ar.cjs +0 -133
  988. package/node_modules/zod/v4/locales/ar.d.cts +0 -5
  989. package/node_modules/zod/v4/locales/ar.d.ts +0 -4
  990. package/node_modules/zod/v4/locales/ar.js +0 -106
  991. package/node_modules/zod/v4/locales/az.cjs +0 -132
  992. package/node_modules/zod/v4/locales/az.d.cts +0 -5
  993. package/node_modules/zod/v4/locales/az.d.ts +0 -4
  994. package/node_modules/zod/v4/locales/az.js +0 -105
  995. package/node_modules/zod/v4/locales/be.cjs +0 -183
  996. package/node_modules/zod/v4/locales/be.d.cts +0 -5
  997. package/node_modules/zod/v4/locales/be.d.ts +0 -4
  998. package/node_modules/zod/v4/locales/be.js +0 -156
  999. package/node_modules/zod/v4/locales/bg.cjs +0 -147
  1000. package/node_modules/zod/v4/locales/bg.d.cts +0 -5
  1001. package/node_modules/zod/v4/locales/bg.d.ts +0 -4
  1002. package/node_modules/zod/v4/locales/bg.js +0 -120
  1003. package/node_modules/zod/v4/locales/ca.cjs +0 -134
  1004. package/node_modules/zod/v4/locales/ca.d.cts +0 -5
  1005. package/node_modules/zod/v4/locales/ca.d.ts +0 -4
  1006. package/node_modules/zod/v4/locales/ca.js +0 -107
  1007. package/node_modules/zod/v4/locales/cs.cjs +0 -138
  1008. package/node_modules/zod/v4/locales/cs.d.cts +0 -5
  1009. package/node_modules/zod/v4/locales/cs.d.ts +0 -4
  1010. package/node_modules/zod/v4/locales/cs.js +0 -111
  1011. package/node_modules/zod/v4/locales/da.cjs +0 -142
  1012. package/node_modules/zod/v4/locales/da.d.cts +0 -5
  1013. package/node_modules/zod/v4/locales/da.d.ts +0 -4
  1014. package/node_modules/zod/v4/locales/da.js +0 -115
  1015. package/node_modules/zod/v4/locales/de.cjs +0 -135
  1016. package/node_modules/zod/v4/locales/de.d.cts +0 -5
  1017. package/node_modules/zod/v4/locales/de.d.ts +0 -4
  1018. package/node_modules/zod/v4/locales/de.js +0 -108
  1019. package/node_modules/zod/v4/locales/el.cjs +0 -136
  1020. package/node_modules/zod/v4/locales/el.d.cts +0 -5
  1021. package/node_modules/zod/v4/locales/el.d.ts +0 -4
  1022. package/node_modules/zod/v4/locales/el.js +0 -109
  1023. package/node_modules/zod/v4/locales/en.cjs +0 -140
  1024. package/node_modules/zod/v4/locales/en.d.cts +0 -5
  1025. package/node_modules/zod/v4/locales/en.d.ts +0 -4
  1026. package/node_modules/zod/v4/locales/en.js +0 -113
  1027. package/node_modules/zod/v4/locales/eo.cjs +0 -136
  1028. package/node_modules/zod/v4/locales/eo.d.cts +0 -5
  1029. package/node_modules/zod/v4/locales/eo.d.ts +0 -4
  1030. package/node_modules/zod/v4/locales/eo.js +0 -109
  1031. package/node_modules/zod/v4/locales/es.cjs +0 -159
  1032. package/node_modules/zod/v4/locales/es.d.cts +0 -5
  1033. package/node_modules/zod/v4/locales/es.d.ts +0 -4
  1034. package/node_modules/zod/v4/locales/es.js +0 -132
  1035. package/node_modules/zod/v4/locales/fa.cjs +0 -141
  1036. package/node_modules/zod/v4/locales/fa.d.cts +0 -5
  1037. package/node_modules/zod/v4/locales/fa.d.ts +0 -4
  1038. package/node_modules/zod/v4/locales/fa.js +0 -114
  1039. package/node_modules/zod/v4/locales/fi.cjs +0 -139
  1040. package/node_modules/zod/v4/locales/fi.d.cts +0 -5
  1041. package/node_modules/zod/v4/locales/fi.d.ts +0 -4
  1042. package/node_modules/zod/v4/locales/fi.js +0 -112
  1043. package/node_modules/zod/v4/locales/fr-CA.cjs +0 -134
  1044. package/node_modules/zod/v4/locales/fr-CA.d.cts +0 -5
  1045. package/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
  1046. package/node_modules/zod/v4/locales/fr-CA.js +0 -107
  1047. package/node_modules/zod/v4/locales/fr.cjs +0 -152
  1048. package/node_modules/zod/v4/locales/fr.d.cts +0 -5
  1049. package/node_modules/zod/v4/locales/fr.d.ts +0 -4
  1050. package/node_modules/zod/v4/locales/fr.js +0 -125
  1051. package/node_modules/zod/v4/locales/he.cjs +0 -241
  1052. package/node_modules/zod/v4/locales/he.d.cts +0 -5
  1053. package/node_modules/zod/v4/locales/he.d.ts +0 -4
  1054. package/node_modules/zod/v4/locales/he.js +0 -214
  1055. package/node_modules/zod/v4/locales/hr.cjs +0 -149
  1056. package/node_modules/zod/v4/locales/hr.d.cts +0 -5
  1057. package/node_modules/zod/v4/locales/hr.d.ts +0 -4
  1058. package/node_modules/zod/v4/locales/hr.js +0 -122
  1059. package/node_modules/zod/v4/locales/hu.cjs +0 -135
  1060. package/node_modules/zod/v4/locales/hu.d.cts +0 -5
  1061. package/node_modules/zod/v4/locales/hu.d.ts +0 -4
  1062. package/node_modules/zod/v4/locales/hu.js +0 -108
  1063. package/node_modules/zod/v4/locales/hy.cjs +0 -174
  1064. package/node_modules/zod/v4/locales/hy.d.cts +0 -5
  1065. package/node_modules/zod/v4/locales/hy.d.ts +0 -4
  1066. package/node_modules/zod/v4/locales/hy.js +0 -147
  1067. package/node_modules/zod/v4/locales/id.cjs +0 -133
  1068. package/node_modules/zod/v4/locales/id.d.cts +0 -5
  1069. package/node_modules/zod/v4/locales/id.d.ts +0 -4
  1070. package/node_modules/zod/v4/locales/id.js +0 -106
  1071. package/node_modules/zod/v4/locales/index.cjs +0 -111
  1072. package/node_modules/zod/v4/locales/index.d.cts +0 -52
  1073. package/node_modules/zod/v4/locales/index.d.ts +0 -52
  1074. package/node_modules/zod/v4/locales/index.js +0 -52
  1075. package/node_modules/zod/v4/locales/is.cjs +0 -136
  1076. package/node_modules/zod/v4/locales/is.d.cts +0 -5
  1077. package/node_modules/zod/v4/locales/is.d.ts +0 -4
  1078. package/node_modules/zod/v4/locales/is.js +0 -109
  1079. package/node_modules/zod/v4/locales/it.cjs +0 -135
  1080. package/node_modules/zod/v4/locales/it.d.cts +0 -5
  1081. package/node_modules/zod/v4/locales/it.d.ts +0 -4
  1082. package/node_modules/zod/v4/locales/it.js +0 -108
  1083. package/node_modules/zod/v4/locales/ja.cjs +0 -134
  1084. package/node_modules/zod/v4/locales/ja.d.cts +0 -5
  1085. package/node_modules/zod/v4/locales/ja.d.ts +0 -4
  1086. package/node_modules/zod/v4/locales/ja.js +0 -107
  1087. package/node_modules/zod/v4/locales/ka.cjs +0 -139
  1088. package/node_modules/zod/v4/locales/ka.d.cts +0 -5
  1089. package/node_modules/zod/v4/locales/ka.d.ts +0 -4
  1090. package/node_modules/zod/v4/locales/ka.js +0 -112
  1091. package/node_modules/zod/v4/locales/kh.cjs +0 -12
  1092. package/node_modules/zod/v4/locales/kh.d.cts +0 -5
  1093. package/node_modules/zod/v4/locales/kh.d.ts +0 -5
  1094. package/node_modules/zod/v4/locales/kh.js +0 -5
  1095. package/node_modules/zod/v4/locales/km.cjs +0 -137
  1096. package/node_modules/zod/v4/locales/km.d.cts +0 -5
  1097. package/node_modules/zod/v4/locales/km.d.ts +0 -4
  1098. package/node_modules/zod/v4/locales/km.js +0 -110
  1099. package/node_modules/zod/v4/locales/ko.cjs +0 -138
  1100. package/node_modules/zod/v4/locales/ko.d.cts +0 -5
  1101. package/node_modules/zod/v4/locales/ko.d.ts +0 -4
  1102. package/node_modules/zod/v4/locales/ko.js +0 -111
  1103. package/node_modules/zod/v4/locales/lt.cjs +0 -230
  1104. package/node_modules/zod/v4/locales/lt.d.cts +0 -5
  1105. package/node_modules/zod/v4/locales/lt.d.ts +0 -4
  1106. package/node_modules/zod/v4/locales/lt.js +0 -203
  1107. package/node_modules/zod/v4/locales/mk.cjs +0 -136
  1108. package/node_modules/zod/v4/locales/mk.d.cts +0 -5
  1109. package/node_modules/zod/v4/locales/mk.d.ts +0 -4
  1110. package/node_modules/zod/v4/locales/mk.js +0 -109
  1111. package/node_modules/zod/v4/locales/ms.cjs +0 -134
  1112. package/node_modules/zod/v4/locales/ms.d.cts +0 -5
  1113. package/node_modules/zod/v4/locales/ms.d.ts +0 -4
  1114. package/node_modules/zod/v4/locales/ms.js +0 -107
  1115. package/node_modules/zod/v4/locales/nl.cjs +0 -137
  1116. package/node_modules/zod/v4/locales/nl.d.cts +0 -5
  1117. package/node_modules/zod/v4/locales/nl.d.ts +0 -4
  1118. package/node_modules/zod/v4/locales/nl.js +0 -110
  1119. package/node_modules/zod/v4/locales/no.cjs +0 -135
  1120. package/node_modules/zod/v4/locales/no.d.cts +0 -5
  1121. package/node_modules/zod/v4/locales/no.d.ts +0 -4
  1122. package/node_modules/zod/v4/locales/no.js +0 -108
  1123. package/node_modules/zod/v4/locales/ota.cjs +0 -136
  1124. package/node_modules/zod/v4/locales/ota.d.cts +0 -5
  1125. package/node_modules/zod/v4/locales/ota.d.ts +0 -4
  1126. package/node_modules/zod/v4/locales/ota.js +0 -109
  1127. package/node_modules/zod/v4/locales/package.json +0 -7
  1128. package/node_modules/zod/v4/locales/pl.cjs +0 -136
  1129. package/node_modules/zod/v4/locales/pl.d.cts +0 -5
  1130. package/node_modules/zod/v4/locales/pl.d.ts +0 -4
  1131. package/node_modules/zod/v4/locales/pl.js +0 -109
  1132. package/node_modules/zod/v4/locales/ps.cjs +0 -141
  1133. package/node_modules/zod/v4/locales/ps.d.cts +0 -5
  1134. package/node_modules/zod/v4/locales/ps.d.ts +0 -4
  1135. package/node_modules/zod/v4/locales/ps.js +0 -114
  1136. package/node_modules/zod/v4/locales/pt.cjs +0 -135
  1137. package/node_modules/zod/v4/locales/pt.d.cts +0 -5
  1138. package/node_modules/zod/v4/locales/pt.d.ts +0 -4
  1139. package/node_modules/zod/v4/locales/pt.js +0 -108
  1140. package/node_modules/zod/v4/locales/ro.cjs +0 -146
  1141. package/node_modules/zod/v4/locales/ro.d.cts +0 -5
  1142. package/node_modules/zod/v4/locales/ro.d.ts +0 -4
  1143. package/node_modules/zod/v4/locales/ro.js +0 -119
  1144. package/node_modules/zod/v4/locales/ru.cjs +0 -183
  1145. package/node_modules/zod/v4/locales/ru.d.cts +0 -5
  1146. package/node_modules/zod/v4/locales/ru.d.ts +0 -4
  1147. package/node_modules/zod/v4/locales/ru.js +0 -156
  1148. package/node_modules/zod/v4/locales/sl.cjs +0 -136
  1149. package/node_modules/zod/v4/locales/sl.d.cts +0 -5
  1150. package/node_modules/zod/v4/locales/sl.d.ts +0 -4
  1151. package/node_modules/zod/v4/locales/sl.js +0 -109
  1152. package/node_modules/zod/v4/locales/sv.cjs +0 -137
  1153. package/node_modules/zod/v4/locales/sv.d.cts +0 -5
  1154. package/node_modules/zod/v4/locales/sv.d.ts +0 -4
  1155. package/node_modules/zod/v4/locales/sv.js +0 -110
  1156. package/node_modules/zod/v4/locales/ta.cjs +0 -137
  1157. package/node_modules/zod/v4/locales/ta.d.cts +0 -5
  1158. package/node_modules/zod/v4/locales/ta.d.ts +0 -4
  1159. package/node_modules/zod/v4/locales/ta.js +0 -110
  1160. package/node_modules/zod/v4/locales/th.cjs +0 -137
  1161. package/node_modules/zod/v4/locales/th.d.cts +0 -5
  1162. package/node_modules/zod/v4/locales/th.d.ts +0 -4
  1163. package/node_modules/zod/v4/locales/th.js +0 -110
  1164. package/node_modules/zod/v4/locales/tr.cjs +0 -132
  1165. package/node_modules/zod/v4/locales/tr.d.cts +0 -5
  1166. package/node_modules/zod/v4/locales/tr.d.ts +0 -4
  1167. package/node_modules/zod/v4/locales/tr.js +0 -105
  1168. package/node_modules/zod/v4/locales/ua.cjs +0 -12
  1169. package/node_modules/zod/v4/locales/ua.d.cts +0 -5
  1170. package/node_modules/zod/v4/locales/ua.d.ts +0 -5
  1171. package/node_modules/zod/v4/locales/ua.js +0 -5
  1172. package/node_modules/zod/v4/locales/uk.cjs +0 -135
  1173. package/node_modules/zod/v4/locales/uk.d.cts +0 -5
  1174. package/node_modules/zod/v4/locales/uk.d.ts +0 -4
  1175. package/node_modules/zod/v4/locales/uk.js +0 -108
  1176. package/node_modules/zod/v4/locales/ur.cjs +0 -137
  1177. package/node_modules/zod/v4/locales/ur.d.cts +0 -5
  1178. package/node_modules/zod/v4/locales/ur.d.ts +0 -4
  1179. package/node_modules/zod/v4/locales/ur.js +0 -110
  1180. package/node_modules/zod/v4/locales/uz.cjs +0 -137
  1181. package/node_modules/zod/v4/locales/uz.d.cts +0 -5
  1182. package/node_modules/zod/v4/locales/uz.d.ts +0 -4
  1183. package/node_modules/zod/v4/locales/uz.js +0 -110
  1184. package/node_modules/zod/v4/locales/vi.cjs +0 -135
  1185. package/node_modules/zod/v4/locales/vi.d.cts +0 -5
  1186. package/node_modules/zod/v4/locales/vi.d.ts +0 -4
  1187. package/node_modules/zod/v4/locales/vi.js +0 -108
  1188. package/node_modules/zod/v4/locales/yo.cjs +0 -134
  1189. package/node_modules/zod/v4/locales/yo.d.cts +0 -5
  1190. package/node_modules/zod/v4/locales/yo.d.ts +0 -4
  1191. package/node_modules/zod/v4/locales/yo.js +0 -107
  1192. package/node_modules/zod/v4/locales/zh-CN.cjs +0 -136
  1193. package/node_modules/zod/v4/locales/zh-CN.d.cts +0 -5
  1194. package/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
  1195. package/node_modules/zod/v4/locales/zh-CN.js +0 -109
  1196. package/node_modules/zod/v4/locales/zh-TW.cjs +0 -134
  1197. package/node_modules/zod/v4/locales/zh-TW.d.cts +0 -5
  1198. package/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
  1199. package/node_modules/zod/v4/locales/zh-TW.js +0 -107
  1200. package/node_modules/zod/v4/mini/checks.cjs +0 -34
  1201. package/node_modules/zod/v4/mini/checks.d.cts +0 -1
  1202. package/node_modules/zod/v4/mini/checks.d.ts +0 -1
  1203. package/node_modules/zod/v4/mini/checks.js +0 -1
  1204. package/node_modules/zod/v4/mini/coerce.cjs +0 -52
  1205. package/node_modules/zod/v4/mini/coerce.d.cts +0 -7
  1206. package/node_modules/zod/v4/mini/coerce.d.ts +0 -7
  1207. package/node_modules/zod/v4/mini/coerce.js +0 -22
  1208. package/node_modules/zod/v4/mini/external.cjs +0 -63
  1209. package/node_modules/zod/v4/mini/external.d.cts +0 -13
  1210. package/node_modules/zod/v4/mini/external.d.ts +0 -13
  1211. package/node_modules/zod/v4/mini/external.js +0 -14
  1212. package/node_modules/zod/v4/mini/index.cjs +0 -32
  1213. package/node_modules/zod/v4/mini/index.d.cts +0 -3
  1214. package/node_modules/zod/v4/mini/index.d.ts +0 -3
  1215. package/node_modules/zod/v4/mini/index.js +0 -3
  1216. package/node_modules/zod/v4/mini/iso.cjs +0 -64
  1217. package/node_modules/zod/v4/mini/iso.d.cts +0 -22
  1218. package/node_modules/zod/v4/mini/iso.d.ts +0 -22
  1219. package/node_modules/zod/v4/mini/iso.js +0 -34
  1220. package/node_modules/zod/v4/mini/package.json +0 -7
  1221. package/node_modules/zod/v4/mini/parse.cjs +0 -16
  1222. package/node_modules/zod/v4/mini/parse.d.cts +0 -1
  1223. package/node_modules/zod/v4/mini/parse.d.ts +0 -1
  1224. package/node_modules/zod/v4/mini/parse.js +0 -1
  1225. package/node_modules/zod/v4/mini/schemas.cjs +0 -1083
  1226. package/node_modules/zod/v4/mini/schemas.d.cts +0 -445
  1227. package/node_modules/zod/v4/mini/schemas.d.ts +0 -445
  1228. package/node_modules/zod/v4/mini/schemas.js +0 -961
  1229. package/node_modules/zod/v4/package.json +0 -7
  1230. package/node_modules/zod/v4-mini/index.cjs +0 -32
  1231. package/node_modules/zod/v4-mini/index.d.cts +0 -3
  1232. package/node_modules/zod/v4-mini/index.d.ts +0 -3
  1233. package/node_modules/zod/v4-mini/index.js +0 -3
  1234. package/node_modules/zod/v4-mini/package.json +0 -7
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/react/runtime/bootstrap-view.tsx","../../src/react/components/error-boundary.tsx","../../src/react/runtime/view-config.ts","../../src/react/runtime/view-runtime-context.tsx","../../src/react/runtime/view-runtime.ts","../../src/react/types/result-types.ts","../../src/react/runtime/model-context-store.ts","../../src/react/public-assets.ts","../../src/react/components/image.tsx","../../src/react/components/model-context.tsx","../../src/react/components/theme-provider.tsx","../../src/react/components/view-controls.tsx","../../src/react/hooks/use-display-mode.ts","../../src/react/hooks/use-host-context.ts","../../src/react/hooks/use-tool-context.ts","../../src/react/hooks/use-call-tool.ts","../../src/react/hooks/use-files.ts","../../src/react/hooks/use-open-external.ts","../../src/react/hooks/use-send-follow-up.ts","../../src/react/hooks/use-send-size-changed.ts","../../src/react/hooks/use-view-theme.ts","../../src/react/hooks/use-view-tool.ts","../../src/tools.ts"],"sourcesContent":["import { createRoot, type Root } from \"react-dom/client\";\nimport type { ComponentType } from \"react\";\n\nimport { ErrorBoundary } from \"../components/error-boundary.js\";\nimport {\n normalizeViewConfig,\n type NormalizedViewConfig,\n type ViewConfig,\n} from \"./view-config.js\";\nimport { ViewRuntimeProvider } from \"./view-runtime-context.js\";\nimport {\n createMcpAppRuntime,\n setActiveRuntime,\n takePendingTestTransport,\n _registerDisposeViewForTesting,\n type McpAppRuntime,\n type ViewRuntimeTransport,\n} from \"./view-runtime.js\";\n\n/**\n * One mounted MCP App view per iframe document.\n *\n * Attached to `document` via a module-private symbol so HMR of the view\n * module reuses the same record without a module-level `Map` keyed by root id.\n */\ninterface MountedView {\n /** DOM id of the React mount container. */\n rootId: string;\n /** React root created for this mount. */\n root: Root;\n /** Document-owned {@link McpAppRuntime}. */\n runtime: McpAppRuntime;\n /** Normalized config fixed at first mount (HMR must not change it). */\n config: NormalizedViewConfig;\n}\n\n/**\n * Module-private symbol property key for the document mount record.\n *\n * A plain `Symbol` (not `Symbol.for`) keeps the key unforgeable from other\n * modules: only this bootstrap module can read or write the mount record.\n * View-module HMR re-enters {@link bootstrapView} without reloading this\n * module, so the symbol identity is stable for the iframe lifetime.\n */\nconst MOUNTED_VIEW: unique symbol = Symbol(\"mcp-use.mountedView\");\n\ntype DocumentWithMount = Document & {\n [MOUNTED_VIEW]?: MountedView;\n};\n\nfunction readMountedView(): MountedView | undefined {\n return (document as DocumentWithMount)[MOUNTED_VIEW];\n}\n\nfunction writeMountedView(mounted: MountedView): void {\n (document as DocumentWithMount)[MOUNTED_VIEW] = mounted;\n}\n\nfunction clearMountedView(): void {\n delete (document as DocumentWithMount)[MOUNTED_VIEW];\n}\n\nfunction configsEqual(\n a: NormalizedViewConfig,\n b: NormalizedViewConfig\n): boolean {\n if (a.autoResize !== b.autoResize) return false;\n if (a.displayModes.length !== b.displayModes.length) return false;\n return a.displayModes.every((mode, index) => mode === b.displayModes[index]);\n}\n\nfunction renderView(mounted: MountedView, View: ComponentType): void {\n mounted.root.render(\n <ErrorBoundary>\n <ViewRuntimeProvider runtime={mounted.runtime}>\n <View />\n </ViewRuntimeProvider>\n </ErrorBoundary>\n );\n}\n\n/** @internal Module shape of a `view.tsx` file. */\nexport interface ViewModule {\n /** Default view component — reads data via hooks. */\n default: ComponentType;\n /**\n * Optional immutable pre-render runtime configuration.\n *\n * Normalized before the guest `App` is constructed. See {@link ViewConfig}.\n */\n viewConfig?: ViewConfig;\n}\n\n/**\n * Mount options for {@link bootstrapView}.\n *\n * @internal\n */\nexport interface BootstrapViewOptions {\n /** DOM id of the mount container; created if missing. @defaultValue `\"root\"` */\n rootId?: string;\n /**\n * Guest transport injected for tests. When omitted, consumes any transport\n * queued by `_setTransportForTesting`, otherwise uses postMessage.\n *\n * @internal\n */\n transport?: ViewRuntimeTransport;\n}\n\n/**\n * Mount a view module into the iframe document: normalizes\n * {@link ViewModule.viewConfig}, creates a {@link McpAppRuntime}, starts\n * `connect()` (declaring `tools: { listChanged: true }` and normalized\n * `availableDisplayModes`), renders the default export immediately (the\n * component reads data via hooks while the handshake is in progress), and\n * wraps everything in an error boundary.\n *\n * Auto-resize is on by default. Opt out with\n * `viewConfig.autoResize: false` and report size via\n * {@link useSendSizeChanged}.\n *\n * Repeated bootstrap for the same `rootId` reuses the mounted root and\n * runtime (HMR) without reconnecting. A second `rootId` while one view is\n * mounted throws. Call {@link disposeView} to unmount and allow a fresh\n * bootstrap.\n *\n * @param module - The view module (`default` component and optional\n * `viewConfig`).\n * @param options - Mount options.\n * @throws When `viewConfig.displayModes` is empty, duplicated, missing\n * `\"inline\"`, or contains an unknown mode.\n * @throws When a view is already mounted on a different `rootId` in this\n * document.\n *\n * @internal\n */\nexport function bootstrapView(\n module: ViewModule,\n options?: BootstrapViewOptions\n): void {\n if (typeof document === \"undefined\") {\n throw new Error(\"bootstrapView requires a browser document\");\n }\n\n const normalized = normalizeViewConfig(module.viewConfig);\n const rootId = options?.rootId ?? \"root\";\n const existing = readMountedView();\n\n if (existing) {\n if (existing.rootId !== rootId) {\n throw new Error(\n `bootstrapView: a view is already mounted on \"#${existing.rootId}\"; cannot mount a second root \"#${rootId}\" in the same document`\n );\n }\n\n if (!configsEqual(existing.config, normalized)) {\n console.warn(\n \"[mcp-use] viewConfig changed during HMR (autoResize / displayModes). \" +\n \"A full iframe reload is required for configuration changes to take effect; \" +\n \"the mounted runtime keeps the original configuration.\"\n );\n }\n\n renderView(existing, module.default);\n return;\n }\n\n let container = document.getElementById(rootId);\n if (!container) {\n container = document.createElement(\"div\");\n container.id = rootId;\n document.body.appendChild(container);\n }\n\n const transport = options?.transport ?? takePendingTestTransport();\n const runtime = createMcpAppRuntime(normalized, {\n ...(transport !== undefined && { transport }),\n });\n setActiveRuntime(runtime);\n // Start connect before React mounts; attach rejection handling immediately\n // so a failed handshake is logged and does not become an unhandled rejection.\n void runtime.connect().catch((error: unknown) => {\n console.error(\"[mcp-use] Failed to connect view runtime:\", error);\n });\n\n const root = createRoot(container);\n const mounted: MountedView = {\n rootId,\n root,\n runtime,\n config: normalized,\n };\n writeMountedView(mounted);\n renderView(mounted, module.default);\n}\n\n/**\n * Unmount the document's view and dispose its {@link McpAppRuntime}.\n *\n * React unmounts first so hook cleanup (e.g. {@link useViewTool} removal) can\n * run while the App connection still exists; then the runtime closes the App\n * and transport. After this resolves, {@link bootstrapView} may create a\n * fresh runtime.\n *\n * No-ops when nothing is mounted.\n *\n * @example\n * ```ts\n * await disposeView();\n * ```\n */\nexport async function disposeView(): Promise<void> {\n if (typeof document === \"undefined\") {\n return;\n }\n\n const mounted = readMountedView();\n if (!mounted) return;\n\n // Unmount React before closing the App so hook cleanup (view-tool remove)\n // runs while the connection still exists.\n try {\n mounted.root.unmount();\n } catch {\n // Container may already be detached by test teardown.\n }\n\n // Drop the mount record before awaiting App close so a subsequent\n // bootstrapView (or sync test reset) does not reuse a half-disposed runtime.\n clearMountedView();\n await mounted.runtime.dispose();\n}\n\n/**\n * @internal Clear the document mount via {@link disposeView} between tests.\n */\nexport function _resetBootstrapRootsForTesting(): void {\n void disposeView();\n}\n\n// Wire the real disposal path into the view-runtime test seam without a\n// circular static import from view-runtime → bootstrap-view.\n_registerDisposeViewForTesting(disposeView);\n","import React from \"react\";\n\ninterface ErrorBoundaryProps {\n children: React.ReactNode;\n /** Custom fallback when an error is caught. */\n fallback?: React.ReactNode | ((error: Error) => React.ReactNode);\n /** Invoked when an error is caught. */\n onError?: (error: Error, errorInfo: React.ErrorInfo) => void;\n}\n\n/**\n * Catches React errors in the view tree and renders a fallback instead of\n * crashing the iframe.\n */\nexport class ErrorBoundary extends React.Component<\n ErrorBoundaryProps,\n { hasError: boolean; error: Error | null }\n> {\n constructor(props: ErrorBoundaryProps) {\n super(props);\n this.state = { hasError: false, error: null };\n }\n\n static getDerivedStateFromError(error: Error) {\n return { hasError: true, error };\n }\n\n override componentDidCatch(error: Error, errorInfo: React.ErrorInfo) {\n console.error(\"[mcp-use] View error:\", error, errorInfo);\n this.props.onError?.(error, errorInfo);\n }\n\n override render() {\n if (this.state.hasError && this.state.error) {\n if (this.props.fallback !== undefined) {\n return typeof this.props.fallback === \"function\"\n ? this.props.fallback(this.state.error)\n : this.props.fallback;\n }\n\n return (\n <div\n style={{\n padding: \"1rem\",\n border: \"1px solid #ef4444\",\n borderRadius: \"0.375rem\",\n background: \"#fef2f2\",\n color: \"#7f1d1d\",\n }}\n >\n <strong>View error</strong>\n <pre style={{ marginTop: \"0.5rem\", whiteSpace: \"pre-wrap\" }}>\n {this.state.error.message}\n </pre>\n </div>\n );\n }\n\n return this.props.children;\n }\n}\n","import type { DisplayMode } from \"../types/host-types.js\";\n\n/**\n * Immutable pre-render runtime configuration for a view module.\n *\n * Export as a named `viewConfig` alongside the default component. Values are\n * normalized and validated by `bootstrapView` before the guest `App` is\n * constructed. React presentation settings do not belong here — compose\n * {@link ThemeProvider} / {@link ViewControls} in the component tree instead.\n *\n * @example\n * ```tsx\n * import type { ViewConfig } from \"mcp-use/react\";\n *\n * export const viewConfig = {\n * autoResize: false,\n * displayModes: [\"inline\", \"fullscreen\"],\n * } satisfies ViewConfig;\n *\n * export default function CanvasView() {\n * return <Canvas />;\n * }\n * ```\n */\nexport interface ViewConfig {\n /**\n * Let ext-apps observe the document and report size changes.\n *\n * @defaultValue true\n */\n autoResize?: boolean;\n\n /**\n * Display modes this view can render correctly.\n *\n * Must contain \"inline\".\n *\n * @defaultValue [\"inline\", \"fullscreen\", \"pip\"]\n */\n displayModes?: readonly DisplayMode[];\n}\n\n/**\n * Fully-resolved {@link ViewConfig} with every field required.\n *\n * @internal\n */\nexport interface NormalizedViewConfig {\n /** Whether the guest `App` auto-measures and reports size changes. */\n autoResize: boolean;\n /** Display modes advertised to the host via App capabilities. */\n displayModes: readonly DisplayMode[];\n}\n\nconst DEFAULT_DISPLAY_MODES: readonly DisplayMode[] = [\n \"inline\",\n \"fullscreen\",\n \"pip\",\n];\n\nconst VALID_DISPLAY_MODES: ReadonlySet<string> = new Set<DisplayMode>([\n \"inline\",\n \"fullscreen\",\n \"pip\",\n]);\n\n/**\n * Normalize and validate an optional {@link ViewConfig}.\n *\n * @param config - Optional named export from a view module.\n * @returns A fully-resolved config with defaults applied.\n * @throws When `displayModes` is empty, contains duplicates, omits `\"inline\"`,\n * or includes a value that is not a known {@link DisplayMode}.\n *\n * @internal\n */\nexport function normalizeViewConfig(config?: ViewConfig): NormalizedViewConfig {\n const autoResize = config?.autoResize ?? true;\n\n if (config?.displayModes === undefined) {\n return { autoResize, displayModes: DEFAULT_DISPLAY_MODES };\n }\n\n const modes = config.displayModes;\n if (!Array.isArray(modes) || modes.length === 0) {\n throw new Error(\n 'viewConfig.displayModes must be a non-empty array that includes \"inline\"'\n );\n }\n\n const seen = new Set<string>();\n const normalizedModes: DisplayMode[] = [];\n for (const mode of modes) {\n if (typeof mode !== \"string\" || !VALID_DISPLAY_MODES.has(mode)) {\n throw new Error(\n `viewConfig.displayModes contains invalid mode ${JSON.stringify(mode)}; expected \"inline\", \"fullscreen\", or \"pip\"`\n );\n }\n if (seen.has(mode)) {\n throw new Error(\n `viewConfig.displayModes contains duplicate mode \"${mode}\"`\n );\n }\n seen.add(mode);\n // Validated against VALID_DISPLAY_MODES above.\n normalizedModes.push(mode as DisplayMode);\n }\n\n if (!seen.has(\"inline\")) {\n throw new Error('viewConfig.displayModes must include \"inline\"');\n }\n\n return {\n autoResize,\n displayModes: normalizedModes,\n };\n}\n","import type { McpUiHostContext } from \"@modelcontextprotocol/ext-apps\";\nimport {\n createContext,\n useContext,\n useSyncExternalStore,\n type ReactNode,\n} from \"react\";\n\nimport type { McpAppRuntime } from \"./view-runtime.js\";\n\n/**\n * React context holding the document's {@link McpAppRuntime}.\n *\n * `null` outside bootstrap — hooks throw via {@link useViewRuntime}.\n *\n * @internal\n */\nexport const ViewRuntimeContext = createContext<McpAppRuntime | null>(null);\n\n/**\n * Provide a {@link McpAppRuntime} to the view tree.\n *\n * Connection is started by {@link bootstrapView} before render. Model-context\n * delivery is owned by the runtime's {@link McpAppRuntime.modelContextStore};\n * this provider only exposes the runtime through context.\n *\n * @param props - Provider props.\n * @param props.runtime - Runtime created by bootstrap for this mount.\n * @param props.children - View tree.\n *\n * @internal\n */\nexport function ViewRuntimeProvider({\n runtime,\n children,\n}: {\n runtime: McpAppRuntime;\n children: ReactNode;\n}) {\n return (\n <ViewRuntimeContext.Provider value={runtime}>\n {children}\n </ViewRuntimeContext.Provider>\n );\n}\n\n/**\n * Read the current {@link McpAppRuntime} from context.\n *\n * @throws When called outside a {@link bootstrapView}-mounted tree.\n *\n * @internal\n */\nexport function useViewRuntime(): McpAppRuntime {\n const runtime = useContext(ViewRuntimeContext);\n if (!runtime) {\n throw new Error(\n \"mcp-use/react hooks require a browser view mounted by bootstrapView\"\n );\n }\n return runtime;\n}\n\n/**\n * Subscribe to host context only — re-renders when `hostContext` identity\n * changes (connection-only updates that keep the same context object do not).\n *\n * Used by {@link ThemeProvider} for theme, style variables, and fonts.\n *\n * @internal\n */\nexport function useHostContextSubscription(): McpUiHostContext | undefined {\n const runtime = useViewRuntime();\n return useSyncExternalStore(\n runtime.subscribeHost,\n () => runtime.getHostSnapshot().hostContext\n );\n}\n","import {\n App,\n PostMessageTransport,\n type McpUiHostContext,\n type RegisteredAppTool,\n} from \"@modelcontextprotocol/ext-apps\";\nimport type {\n CallToolResult,\n ContentBlock,\n} from \"@modelcontextprotocol/server\";\n\nimport type { DisplayMode } from \"../types/host-types.js\";\nimport type { FileMetadata } from \"../types/file-types.js\";\nimport { ToolError, type ToolContextError } from \"../types/result-types.js\";\nimport { ModelContextStore } from \"./model-context-store.js\";\nimport type { NormalizedViewConfig } from \"./view-config.js\";\n\n/** Transport accepted by {@link App.connect}. */\nexport type ViewRuntimeTransport = NonNullable<Parameters<App[\"connect\"]>[0]>;\n\ntype Listener = () => void;\n\n/**\n * Tool-channel snapshot for the invocation that rendered this View.\n *\n * Input notifications replace `toolInput` while the invocation is pending.\n * The first structured result or tool error latches a terminal state; all\n * later ambient lifecycle notifications are ignored.\n *\n * @internal\n */\nexport interface ToolSnapshot {\n /** Pending until the first structured result or tool error, then terminal. */\n status: \"pending\" | \"ready\" | \"error\";\n /** Model-visible tool output from the last ready result's `structuredContent`. */\n toolOutput: unknown;\n /** Model-visible content blocks from the last tool result (ready or error). */\n content: ContentBlock[] | undefined;\n /**\n * Latest progressive tool arguments from the host. Partial and complete\n * notifications replace the same snapshot; last write wins.\n */\n toolInput: Record<string, unknown> | undefined;\n /** View-only result `_meta` channel. */\n meta: Record<string, unknown> | undefined;\n /**\n * Tool error for the rendering invocation.\n */\n error: ToolContextError | undefined;\n}\n\n/**\n * Host-channel snapshot: negotiated host context and connection status.\n *\n * @internal\n */\nexport interface HostSnapshot {\n /** Current host context (updated on `host-context-changed`). */\n hostContext: McpUiHostContext | undefined;\n /** Whether the App handshake completed. */\n isConnected: boolean;\n /** Terminal connection failure for this mount, if any. */\n connectionError: Error | undefined;\n}\n\n/**\n * Display-channel snapshot: current mode and negotiated available modes.\n *\n * @internal\n */\nexport interface DisplaySnapshot {\n /** How the host is currently displaying the view. */\n displayMode: DisplayMode;\n /**\n * Negotiated modes: intersection of normalized\n * {@link NormalizedViewConfig.displayModes} and\n * `hostContext.availableDisplayModes`. When the host omits available modes,\n * only `\"inline\"`.\n */\n availableDisplayModes: readonly DisplayMode[];\n}\n\n/**\n * ChatGPT file-extension channel snapshot.\n *\n * This channel deliberately represents only the optional file APIs used by\n * `useFiles`; the runtime does not mirror other `window.openai` globals.\n *\n * @internal\n */\nexport interface FilesSnapshot {\n /** Whether both upload and temporary-download-url helpers are available. */\n isSupported: boolean;\n}\n\ninterface ChatGptFilesApi {\n uploadFile?: (file: File) => Promise<FileMetadata>;\n getFileDownloadUrl?: (file: FileMetadata) => Promise<{ downloadUrl: string }>;\n}\n\n/**\n * Parameters for {@link McpAppRuntime.callServerTool}.\n *\n * @internal\n */\nexport type CallToolParams = Parameters<App[\"callServerTool\"]>[0];\n\n/**\n * Parameters for {@link McpAppRuntime.sendMessage}.\n *\n * @internal\n */\nexport type SendMessageParams = Parameters<App[\"sendMessage\"]>[0];\n\n/**\n * Parameters for {@link McpAppRuntime.openLink}.\n *\n * @internal\n */\nexport type OpenLinkParams = Parameters<App[\"openLink\"]>[0];\n\n/**\n * Parameters for {@link McpAppRuntime.requestDisplayMode}.\n *\n * @internal\n */\nexport type RequestDisplayModeParams = Parameters<App[\"requestDisplayMode\"]>[0];\n\n/**\n * Parameters for {@link McpAppRuntime.sendSizeChanged}.\n *\n * @internal\n */\nexport type SizeChangedParams = Parameters<App[\"sendSizeChanged\"]>[0];\n\n/**\n * Config passed to {@link McpAppRuntime.registerViewTool} (ext-apps shape).\n *\n * @internal\n */\nexport type ViewToolConfig = Parameters<App[\"registerTool\"]>[1];\n\n/**\n * Callback passed to {@link McpAppRuntime.registerViewTool}.\n *\n * @internal\n */\nexport type ViewToolCallback = Parameters<App[\"registerTool\"]>[2];\n\n/**\n * Per-document MCP Apps runtime: owns one guest {@link App}, one cached\n * connection attempt, tool-handler handoff, narrow external-store channels,\n * one {@link ModelContextStore}, and disposal.\n *\n * Created by {@link createMcpAppRuntime} / {@link bootstrapView}. Hooks obtain\n * the instance from {@link ViewRuntimeContext}.\n *\n * @internal\n */\nexport interface McpAppRuntime {\n /** Normalized immutable view configuration fixed at construction. */\n readonly config: NormalizedViewConfig;\n\n /**\n * Per-runtime model-context node tree and async flush pump.\n *\n * Constructed with this runtime and disposed with it. React components obtain\n * it via {@link useViewRuntime}; the imperative `modelContext` API delegates\n * to the active document runtime's store.\n */\n readonly modelContextStore: ModelContextStore;\n\n /** Connect once, or return the cached in-flight / settled connection promise. */\n connect(): Promise<App>;\n /**\n * Dispose the model-context store (so late in-flight completions are\n * ignored), prevent late event delivery, clear listeners and snapshots, and\n * close the App/transport.\n *\n * Callers should unmount the view tree first (see `disposeView`) so hook\n * cleanup can run while the App connection still exists.\n */\n dispose(): Promise<void>;\n\n /** Subscribe to tool-channel changes. */\n subscribeTool(listener: Listener): () => void;\n /** Current tool-channel snapshot (stable until a tool field changes). */\n getToolSnapshot(): ToolSnapshot;\n\n /** Subscribe to host-channel changes. */\n subscribeHost(listener: Listener): () => void;\n /** Current host-channel snapshot (stable until host/connection fields change). */\n getHostSnapshot(): HostSnapshot;\n\n /** Subscribe to theme-channel changes. */\n subscribeTheme(listener: Listener): () => void;\n /** Current theme (`\"light\"` until the host reports otherwise). Primitive; stable until theme changes. */\n getThemeSnapshot(): \"light\" | \"dark\";\n\n /** Subscribe to display-channel changes. */\n subscribeDisplay(listener: Listener): () => void;\n /**\n * Current display-channel snapshot (stable until `displayMode` or\n * negotiated `availableDisplayModes` change).\n */\n getDisplaySnapshot(): DisplaySnapshot;\n\n /** Subscribe to ChatGPT file-extension availability changes. */\n subscribeFiles(listener: Listener): () => void;\n /** Current ChatGPT file-extension snapshot. */\n getFilesSnapshot(): FilesSnapshot;\n\n /** Runtime-owned guest {@link App}, or `null` after disposal. */\n getApp(): App | null;\n\n /** Call a server tool through the host. */\n callServerTool(params: CallToolParams): Promise<CallToolResult>;\n /** Send a follow-up message through the host. */\n sendMessage(params: SendMessageParams): Promise<void>;\n /** Ask the host to open an external link. */\n openLink(params: OpenLinkParams): Promise<void>;\n /** Request a display-mode change from the host. */\n requestDisplayMode(params: RequestDisplayModeParams): Promise<void>;\n /** Notify the host of a size change. */\n sendSizeChanged(params: SizeChangedParams): Promise<void>;\n /** Upload a file through ChatGPT's optional file extension. */\n uploadFile(file: File): Promise<FileMetadata>;\n /** Request a temporary download URL through ChatGPT's file extension. */\n getFileDownloadUrl(file: FileMetadata): Promise<{ downloadUrl: string }>;\n\n /**\n * Register a view tool, performing the empty-handler → registry handoff on\n * the first call. Must remain synchronous relative to the handoff.\n */\n registerViewTool(\n name: string,\n config: ViewToolConfig,\n callback: ViewToolCallback\n ): RegisteredAppTool;\n}\n\nconst APP_VERSION = \"2.0.0-alpha.0\";\n\nconst defaultToolSnapshot: ToolSnapshot = {\n status: \"pending\",\n toolOutput: undefined,\n content: undefined,\n toolInput: undefined,\n meta: undefined,\n error: undefined,\n};\n\nconst defaultHostSnapshot: HostSnapshot = {\n hostContext: undefined,\n isConnected: false,\n connectionError: undefined,\n};\n\nconst defaultFilesSnapshot: FilesSnapshot = {\n isSupported: false,\n};\n\nfunction getChatGptFilesApi(): ChatGptFilesApi | undefined {\n if (typeof window === \"undefined\") return undefined;\n return (window as unknown as { openai?: ChatGptFilesApi }).openai;\n}\n\nfunction resolveFilesSnapshot(): FilesSnapshot {\n const api = getChatGptFilesApi();\n return {\n isSupported:\n typeof api?.uploadFile === \"function\" &&\n typeof api.getFileDownloadUrl === \"function\",\n };\n}\n\nfunction resolveDisplayMode(\n hostContext: McpUiHostContext | undefined\n): DisplayMode {\n return hostContext?.displayMode === \"fullscreen\" ||\n hostContext?.displayMode === \"pip\"\n ? hostContext.displayMode\n : \"inline\";\n}\n\nfunction resolveTheme(\n hostContext: McpUiHostContext | undefined\n): \"light\" | \"dark\" {\n return hostContext?.theme === \"dark\" ? \"dark\" : \"light\";\n}\n\nfunction sameDisplayModes(\n a: readonly DisplayMode[],\n b: readonly DisplayMode[]\n): boolean {\n return a.length === b.length && a.every((mode, index) => mode === b[index]);\n}\n\n/**\n * Negotiated display modes: view modes ∩ host modes.\n *\n * When the host omits `availableDisplayModes`, only `\"inline\"` is requestable.\n */\nfunction resolveAvailableDisplayModes(\n viewModes: readonly DisplayMode[],\n hostContext: McpUiHostContext | undefined\n): readonly DisplayMode[] {\n const hostModes = hostContext?.availableDisplayModes;\n if (hostModes === undefined) {\n return [\"inline\"];\n }\n return viewModes.filter((mode) => hostModes.includes(mode));\n}\n\nfunction installEmptyToolHandlers(app: App): void {\n app.onlisttools = async () => ({ tools: [] });\n app.oncalltool = async ({ name }) => {\n throw new Error(`View tool \"${name}\" is not registered`);\n };\n}\n\nfunction createChannelStore(): {\n subscribe: (listener: Listener) => () => void;\n emit: () => void;\n clear: () => void;\n} {\n const listeners = new Set<Listener>();\n return {\n subscribe(listener) {\n listeners.add(listener);\n return () => {\n listeners.delete(listener);\n };\n },\n emit() {\n for (const listener of listeners) {\n listener();\n }\n },\n clear() {\n listeners.clear();\n },\n };\n}\n\nfunction toolSnapshotChanged(\n prev: ToolSnapshot,\n patch: Partial<ToolSnapshot>\n): boolean {\n for (const key of Object.keys(patch) as (keyof ToolSnapshot)[]) {\n if (prev[key] !== patch[key]) {\n return true;\n }\n }\n return false;\n}\n\nfunction hostSnapshotChanged(\n prev: HostSnapshot,\n patch: Partial<HostSnapshot>\n): boolean {\n for (const key of Object.keys(patch) as (keyof HostSnapshot)[]) {\n if (prev[key] !== patch[key]) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Options for {@link createMcpAppRuntime}.\n *\n * @internal\n */\nexport interface CreateMcpAppRuntimeOptions {\n /**\n * Transport used by the runtime's single {@link McpAppRuntime.connect}\n * attempt (tests).\n * Defaults to {@link PostMessageTransport} against `window.parent`.\n */\n transport?: ViewRuntimeTransport;\n}\n\n/**\n * Create a fresh {@link McpAppRuntime} for one iframe document / view mount.\n *\n * Constructs and configures the guest {@link App} eagerly so event handlers\n * and view tools can be registered before or during initialization. The App is\n * connected at most once and remains owned by the runtime until disposal.\n *\n * @param config - Normalized {@link NormalizedViewConfig} from bootstrap.\n * @param options - Optional transport injection for tests.\n * @returns A runtime owning connection, snapshots, and view-tool registration.\n *\n * @internal\n */\nexport function createMcpAppRuntime(\n config: NormalizedViewConfig,\n options?: CreateMcpAppRuntimeOptions\n): McpAppRuntime {\n let disposed = false;\n let connectPromise: Promise<App> | null = null;\n let toolRegistryActivated = false;\n const configuredTransport = options?.transport;\n\n let toolSnapshot: ToolSnapshot = { ...defaultToolSnapshot };\n let hostSnapshot: HostSnapshot = { ...defaultHostSnapshot };\n let themeSnapshot: \"light\" | \"dark\" = \"light\";\n // Host has not reported modes yet → treat as omitted → only \"inline\".\n let displaySnapshot: DisplaySnapshot = {\n displayMode: \"inline\",\n availableDisplayModes: [\"inline\"],\n };\n let filesSnapshot: FilesSnapshot = resolveFilesSnapshot();\n\n const toolChannel = createChannelStore();\n const hostChannel = createChannelStore();\n const themeChannel = createChannelStore();\n const displayChannel = createChannelStore();\n const filesChannel = createChannelStore();\n\n function patchTool(patch: Partial<ToolSnapshot>): void {\n if (!toolSnapshotChanged(toolSnapshot, patch)) {\n return;\n }\n toolSnapshot = { ...toolSnapshot, ...patch };\n toolChannel.emit();\n }\n\n function patchHost(patch: Partial<HostSnapshot>): void {\n if (!hostSnapshotChanged(hostSnapshot, patch)) {\n return;\n }\n hostSnapshot = { ...hostSnapshot, ...patch };\n hostChannel.emit();\n }\n\n function syncThemeFromHost(hostContext: McpUiHostContext | undefined): void {\n const next = resolveTheme(hostContext);\n if (next === themeSnapshot) {\n return;\n }\n themeSnapshot = next;\n themeChannel.emit();\n }\n\n function syncDisplayFromHost(\n hostContext: McpUiHostContext | undefined\n ): void {\n const nextMode = resolveDisplayMode(hostContext);\n const nextAvailable = resolveAvailableDisplayModes(\n config.displayModes,\n hostContext\n );\n if (\n nextMode === displaySnapshot.displayMode &&\n sameDisplayModes(nextAvailable, displaySnapshot.availableDisplayModes)\n ) {\n return;\n }\n displaySnapshot = {\n displayMode: nextMode,\n availableDisplayModes: nextAvailable,\n };\n displayChannel.emit();\n }\n\n /**\n * Apply a host-context update and fan out to host / theme / display\n * channels that actually changed.\n */\n function applyHostContext(nextHostContext: McpUiHostContext): void {\n patchHost({ hostContext: nextHostContext });\n syncThemeFromHost(nextHostContext);\n syncDisplayFromHost(nextHostContext);\n }\n\n function installRuntimeEventHandlers(app: App): void {\n // The draft notification shape has no tool name or request id. While the\n // rendering invocation is pending, both complete and partial input replace\n // the same progressive snapshot. Once a result is latched, later ambient\n // lifecycle notifications must not mutate the View context.\n app.ontoolinput = (params) => {\n if (disposed || toolSnapshot.status !== \"pending\") return;\n patchTool({ toolInput: params.arguments ?? {} });\n };\n\n app.ontoolinputpartial = (params) => {\n if (disposed || toolSnapshot.status !== \"pending\") return;\n patchTool({ toolInput: params.arguments ?? {} });\n };\n\n app.ontoolresult = (params) => {\n if (disposed || toolSnapshot.status !== \"pending\") return;\n\n // Content-only successes are valid CallToolResults from ambient server\n // or View tools. Without correlation metadata they cannot be classified\n // as malformed rendering results, so leave the pending context alone.\n if (params.isError !== true && params.structuredContent === undefined) {\n return;\n }\n\n const content = Array.isArray(params.content)\n ? (params.content as ContentBlock[])\n : undefined;\n const meta =\n params._meta !== undefined &&\n typeof params._meta === \"object\" &&\n params._meta !== null\n ? (params._meta as Record<string, unknown>)\n : undefined;\n\n if (params.isError === true) {\n const result = params as CallToolResult & { isError: true };\n patchTool({\n status: \"error\",\n error: new ToolError(result),\n toolOutput: undefined,\n content,\n meta,\n });\n return;\n }\n\n patchTool({\n status: \"ready\",\n error: undefined,\n toolOutput: params.structuredContent,\n content,\n meta,\n });\n };\n\n // Cancellation cannot be correlated either and has no public bound-state\n // branch. A cancelled rendering invocation therefore remains pending.\n app.ontoolcancelled = () => {};\n\n app.onhostcontextchanged = (params) => {\n if (disposed) return;\n applyHostContext({\n ...(hostSnapshot.hostContext ?? {}),\n ...params,\n });\n };\n }\n\n function createApp(): App {\n const app = new App(\n { name: \"mcp-use-view\", version: APP_VERSION },\n {\n tools: { listChanged: true },\n availableDisplayModes: [...config.displayModes],\n },\n { autoResize: config.autoResize }\n );\n installEmptyToolHandlers(app);\n installRuntimeEventHandlers(app);\n return app;\n }\n\n const app = createApp();\n\n async function closeAppQuietly(app: App): Promise<void> {\n try {\n await app.close();\n } catch {\n // Best-effort deterministic cleanup.\n }\n }\n\n async function connectApp(): Promise<App> {\n try {\n if (typeof window === \"undefined\" && configuredTransport === undefined) {\n throw new Error(\n \"View runtime can only connect in a browser environment\"\n );\n }\n const transport =\n configuredTransport ??\n new PostMessageTransport(window.parent, window.parent);\n await app.connect(transport);\n if (disposed) {\n await closeAppQuietly(app);\n throw new Error(\"View runtime was disposed during connection\");\n }\n const hostContext = app.getHostContext();\n patchHost({\n isConnected: true,\n connectionError: undefined,\n ...(hostContext !== undefined && { hostContext }),\n });\n // Always re-derive display (host omitting modes → [\"inline\"]).\n syncThemeFromHost(hostContext);\n syncDisplayFromHost(hostContext);\n return app;\n } catch (error) {\n const failure = error instanceof Error ? error : new Error(String(error));\n if (!disposed) {\n patchHost({\n isConnected: false,\n connectionError: failure,\n });\n }\n throw failure;\n }\n }\n\n function connect(): Promise<App> {\n if (disposed) {\n return Promise.reject(new Error(\"View runtime has been disposed\"));\n }\n connectPromise ??= connectApp();\n return connectPromise;\n }\n\n const modelContextStore = new ModelContextStore({ connect });\n\n function registerViewTool(\n name: string,\n toolConfig: ViewToolConfig,\n callback: ViewToolCallback\n ): RegisteredAppTool {\n if (disposed) {\n throw new Error(\"View runtime has been disposed\");\n }\n if (toolRegistryActivated) {\n return app.registerTool(name, toolConfig, callback);\n }\n\n // Clear temporary handlers first so ensureToolHandlersInitialized does not\n // warn about replacing them. Clear + register must stay in one turn.\n app.onlisttools = undefined;\n app.oncalltool = undefined;\n\n try {\n const registration = app.registerTool(name, toolConfig, callback);\n toolRegistryActivated = true;\n return registration;\n } catch (error) {\n installEmptyToolHandlers(app);\n throw error;\n }\n }\n\n async function dispose(): Promise<void> {\n if (disposed) return;\n disposed = true;\n modelContextStore.dispose();\n toolRegistryActivated = false;\n toolChannel.clear();\n hostChannel.clear();\n themeChannel.clear();\n displayChannel.clear();\n filesChannel.clear();\n toolSnapshot = { ...defaultToolSnapshot };\n hostSnapshot = { ...defaultHostSnapshot };\n themeSnapshot = \"light\";\n displaySnapshot = {\n displayMode: \"inline\",\n availableDisplayModes: [\"inline\"],\n };\n filesSnapshot = { ...defaultFilesSnapshot };\n if (activeRuntime === runtime) {\n activeRuntime = null;\n }\n await closeAppQuietly(app);\n }\n\n async function callServerTool(\n params: CallToolParams\n ): Promise<CallToolResult> {\n const app = await connect();\n if (app.getHostCapabilities()?.serverTools === undefined) {\n throw new Error(\n \"Host does not advertise the serverTools capability required to call server tools\"\n );\n }\n return app.callServerTool(params);\n }\n\n async function sendMessage(params: SendMessageParams): Promise<void> {\n const app = await connect();\n if (app.getHostCapabilities()?.message === undefined) {\n throw new Error(\n \"Host does not advertise the message capability required to send follow-up messages\"\n );\n }\n await app.sendMessage(params);\n }\n\n async function openLink(params: OpenLinkParams): Promise<void> {\n const app = await connect();\n if (app.getHostCapabilities()?.openLinks === undefined) {\n throw new Error(\n \"Host does not advertise the openLinks capability required to open external links\"\n );\n }\n await app.openLink(params);\n }\n\n async function requestDisplayMode(\n params: RequestDisplayModeParams\n ): Promise<void> {\n const app = await connect();\n // Re-derive from the latest host context so a race with host-context\n // updates cannot approve a mode the snapshot has not yet published.\n const negotiated = resolveAvailableDisplayModes(\n config.displayModes,\n app.getHostContext() ?? hostSnapshot.hostContext\n );\n if (!negotiated.includes(params.mode as DisplayMode)) {\n throw new Error(\n `Display mode \"${params.mode}\" is not in the negotiated available modes [${negotiated.join(\", \")}]`\n );\n }\n await app.requestDisplayMode(params);\n }\n\n async function sendSizeChanged(params: SizeChangedParams): Promise<void> {\n const app = await connect();\n await app.sendSizeChanged(params);\n }\n\n async function uploadFile(file: File): Promise<FileMetadata> {\n if (disposed) {\n throw new Error(\"View runtime has been disposed\");\n }\n\n const api = getChatGptFilesApi();\n if (!filesSnapshot.isSupported || typeof api?.uploadFile !== \"function\") {\n throw new Error(\n \"[useFiles] File upload is not supported in this host. \" +\n \"Check `isSupported` before calling `upload`. \" +\n \"File operations are only available in the ChatGPT Apps SDK environment.\"\n );\n }\n\n return api.uploadFile(file);\n }\n\n async function getFileDownloadUrl(\n file: FileMetadata\n ): Promise<{ downloadUrl: string }> {\n if (disposed) {\n throw new Error(\"View runtime has been disposed\");\n }\n\n const api = getChatGptFilesApi();\n if (\n !filesSnapshot.isSupported ||\n typeof api?.getFileDownloadUrl !== \"function\"\n ) {\n throw new Error(\n \"[useFiles] File download is not supported in this host. \" +\n \"Check `isSupported` before calling `getDownloadUrl`. \" +\n \"File operations are only available in the ChatGPT Apps SDK environment.\"\n );\n }\n return api.getFileDownloadUrl(file);\n }\n\n const runtime: McpAppRuntime = {\n config,\n modelContextStore,\n connect,\n dispose,\n subscribeTool: toolChannel.subscribe,\n getToolSnapshot: () => toolSnapshot,\n subscribeHost: hostChannel.subscribe,\n getHostSnapshot: () => hostSnapshot,\n subscribeTheme: themeChannel.subscribe,\n getThemeSnapshot: () => themeSnapshot,\n subscribeDisplay: displayChannel.subscribe,\n getDisplaySnapshot: () => displaySnapshot,\n subscribeFiles: filesChannel.subscribe,\n getFilesSnapshot: () => filesSnapshot,\n getApp: () => (disposed ? null : app),\n callServerTool,\n sendMessage,\n openLink,\n requestDisplayMode,\n sendSizeChanged,\n uploadFile,\n getFileDownloadUrl,\n registerViewTool,\n };\n\n return runtime;\n}\n\n/**\n * Document-level active runtime used by the imperative {@link modelContext}\n * API and test seams.\n *\n * Set by {@link bootstrapView}; cleared on {@link McpAppRuntime.dispose}.\n */\nlet activeRuntime: McpAppRuntime | null = null;\n\n/** Transport queued for the next bootstrap when set before the runtime exists. */\nlet pendingTestTransport: ViewRuntimeTransport | null = null;\n\n/**\n * Register `runtime` as the document-active instance for imperative APIs.\n *\n * @param runtime - Runtime to activate, or `null` to clear.\n *\n * @internal\n */\nexport function setActiveRuntime(runtime: McpAppRuntime | null): void {\n activeRuntime = runtime;\n}\n\n/**\n * Return the document-active runtime, if any.\n *\n * @internal\n */\nexport function getActiveRuntime(): McpAppRuntime | null {\n return activeRuntime;\n}\n\n/**\n * Inject a transport before the next bootstrap-created runtime.\n *\n * A mounted runtime has already started its sole connection attempt, so its\n * transport cannot be replaced.\n *\n * @param transport - Guest-side paired transport, or `null` to clear.\n *\n * @internal\n */\nexport function _setTransportForTesting(\n transport: ViewRuntimeTransport | null\n): void {\n if (activeRuntime) {\n throw new Error(\n \"Cannot replace the transport after a view runtime has been mounted\"\n );\n }\n pendingTestTransport = transport;\n}\n\n/**\n * Consume and clear any transport queued by {@link _setTransportForTesting}.\n *\n * @internal\n */\nexport function takePendingTestTransport(): ViewRuntimeTransport | undefined {\n const transport = pendingTestTransport ?? undefined;\n pendingTestTransport = null;\n return transport;\n}\n\n/**\n * Optional disposer registered by bootstrap-view so test reset can run the\n * real unmount-then-close path without a circular static import.\n */\nlet registeredDisposeView: (() => Promise<void>) | null = null;\n\n/**\n * Register {@link disposeView} for {@link _resetViewBridgeForTesting}.\n *\n * @param disposer - The document dispose function from bootstrap-view.\n *\n * @internal\n */\nexport function _registerDisposeViewForTesting(\n disposer: () => Promise<void>\n): void {\n registeredDisposeView = disposer;\n}\n\n/**\n * @internal Reset runtime module seams between tests.\n *\n * Uses the real {@link disposeView} path when bootstrap has registered it\n * (unmount React, then close the App). Falls back to disposing an orphaned\n * active runtime when nothing is mounted through bootstrap.\n */\nexport function _resetViewBridgeForTesting(): void {\n pendingTestTransport = null;\n if (registeredDisposeView) {\n void registeredDisposeView();\n return;\n }\n const runtime = activeRuntime;\n activeRuntime = null;\n if (runtime) {\n void runtime.dispose();\n }\n}\n\n/** @internal Guest `App` for the active runtime (bridge tests only). */\nexport function _getAppForTesting(): App | null {\n return activeRuntime?.getApp() ?? null;\n}\n\n/** @internal Active runtime instance (Phase 5 runtime tests). */\nexport function _getRuntimeForTesting(): McpAppRuntime | null {\n return activeRuntime;\n}\n","import type { CallToolResult } from \"@modelcontextprotocol/server\";\n\nexport type { CallToolResult };\n\n/**\n * Concatenated text content of a tool result, or `undefined` when it has none.\n *\n * Joins the `text` of every `content` block with `type === \"text\"` using\n * `\"\\n\"`, then trims. Returns `undefined` when there are no text blocks or\n * the joined result is empty/whitespace — callers choose their own fallback.\n *\n * Useful when reading human-readable text from a {@link CallToolResult}\n * (success or error) without inspecting the full `content` array.\n *\n * @param result - Tool result (or any object with a `content` array).\n * @returns Joined trimmed text, or `undefined` when there is none.\n *\n * @example\n * ```ts\n * const text = toolResultText(result) ?? \"No message.\";\n * ```\n */\nexport function toolResultText(\n result: Pick<CallToolResult, \"content\">\n): string | undefined {\n const blocks = result.content;\n if (!Array.isArray(blocks) || blocks.length === 0) {\n return undefined;\n }\n\n const parts: string[] = [];\n for (const block of blocks) {\n if (\n block !== null &&\n typeof block === \"object\" &&\n \"type\" in block &&\n block.type === \"text\" &&\n \"text\" in block &&\n typeof block.text === \"string\"\n ) {\n parts.push(block.text);\n }\n }\n\n if (parts.length === 0) {\n return undefined;\n }\n\n const joined = parts.join(\"\\n\").trim();\n return joined.length > 0 ? joined : undefined;\n}\n\n/**\n * The bound or called tool ran and answered with `isError: true` — a domain\n * error, not a transport or protocol failure.\n *\n * `message` is derived from the error result's text content blocks (via\n * {@link toolResultText}), or `\"Tool returned an error.\"` when there are none.\n */\nexport class ToolError extends Error {\n /** The error result as delivered (`isError: true`). */\n readonly result: CallToolResult & { isError: true };\n\n /**\n * @param result - The tool result with `isError: true`.\n */\n constructor(result: CallToolResult & { isError: true }) {\n super(toolResultText(result) ?? \"Tool returned an error.\");\n this.name = \"ToolError\";\n this.result = result;\n }\n}\n\n/**\n * Error that can appear in the `\"error\"` branch of {@link ToolContextHandle}.\n */\nexport type ToolContextError = ToolError;\n\n/**\n * Successful non-error tool result returned by {@link useCallTool}.\n *\n * `structuredContent` is guaranteed and typed exactly when the tool declares\n * an `outputSchema` (`Result` is not `never`) — the server rejects non-error\n * results from schema-backed tools that lack it, so a resolved result always\n * carries it. Tools without an `outputSchema` (`Result = never`) legitimately\n * return content-only results, so no `structuredContent` guarantee is added\n * beyond the base {@link CallToolResult} (optional, `unknown`).\n *\n * Tool errors and transport failures reject instead — they never appear here.\n *\n * @typeParam Result - Inferred `structuredContent` type from the tool's\n * `outputSchema`; `never` when the tool declares none.\n */\nexport type CallToolSuccess<Result> = CallToolResult & {\n isError?: false;\n} & ([Result] extends [never] ? unknown : { structuredContent: Result });\n","import type { App } from \"@modelcontextprotocol/ext-apps\";\nimport type { ContentBlock } from \"@modelcontextprotocol/server\";\n\ninterface ModelContextNode {\n id: string;\n parentId: string | null;\n content: string;\n}\n\ninterface StoredModelContextNode extends ModelContextNode {\n /** Insertion sequence — preserves registration order across flushes. */\n order: number;\n}\n\n/**\n * Complete `ui/update-model-context` params built from the store — the wire\n * shape of the MCP Apps spec's `content` blocks. Each push carries the full\n * current state (the spec's overwrite semantics).\n *\n * @internal\n */\nexport interface ModelContextParams {\n /**\n * Content blocks: empty, or a single text block with the serialized\n * description tree.\n */\n content: ContentBlock[];\n}\n\n/**\n * Narrow runtime surface the flush pump needs to connect and send.\n *\n * @internal\n */\nexport interface ModelContextStoreHost {\n /** Connect once, or return the cached in-flight / settled connection promise. */\n connect(): Promise<App>;\n}\n\nconst EMPTY_SERIALIZED = JSON.stringify({ content: [] });\n\n/**\n * Warn-once flag for hosts that omit the `updateModelContext` capability.\n * Document-scoped so HMR / rebootstrap do not spam the console.\n */\nlet warnedModelContextUnsupported = false;\n\n/**\n * Mark that the missing-`updateModelContext` warning has been emitted.\n *\n * @returns `true` if this call should emit the warning (first time only).\n *\n * @internal\n */\nexport function markModelContextUnsupportedWarned(): boolean {\n if (warnedModelContextUnsupported) {\n return false;\n }\n warnedModelContextUnsupported = true;\n return true;\n}\n\n/**\n * @internal Reset the missing-capability warn-once flag between tests.\n *\n * Prefer {@link _resetModelContextForTesting} from `model-context.tsx` when the\n * active runtime's store must also be cleared; this seam only resets the\n * document-level warn flag (dispose already drops the store).\n */\nexport function _resetModelContextForTesting(): void {\n warnedModelContextUnsupported = false;\n}\n\n/**\n * @internal Reset the missing-capability warn-once flag between tests.\n */\nexport function _resetModelContextUnsupportedWarnedForTesting(): void {\n warnedModelContextUnsupported = false;\n}\n\n/**\n * Per-runtime model-context node tree and async flush pump.\n *\n * Owned by one {@link McpAppRuntime}: constructed with it, disposed with it.\n * Mutations update desired state and schedule a microtask-batched pump that\n * acknowledges a payload only after a successful `updateModelContext` send.\n *\n * @internal\n */\nexport class ModelContextStore {\n readonly #host: ModelContextStoreHost;\n readonly #nodes = new Map<string, StoredModelContextNode>();\n #nextOrder = 0;\n #flushScheduled = false;\n #disposed = false;\n /** Bumped on {@link dispose} so late in-flight completions are ignored. */\n #epoch = 0;\n /**\n * Serialized form of the latest tree. Starts empty so views that never\n * register context are not dirty.\n */\n #desiredSerialized = EMPTY_SERIALIZED;\n /**\n * Last successfully delivered payload. Starts empty so an empty push is\n * sent only as a clear after non-empty context existed.\n */\n #acknowledgedSerialized = EMPTY_SERIALIZED;\n #inFlight: Promise<void> | null = null;\n\n /**\n * @param host - Runtime bridge used to `connect` and send updates.\n */\n constructor(host: ModelContextStoreHost) {\n this.#host = host;\n }\n\n /**\n * Register or replace a node and schedule a flush.\n *\n * @param node - Node identity, parent link, and text content.\n */\n setNode(node: ModelContextNode): void {\n if (this.#disposed) return;\n const order = this.#nodes.get(node.id)?.order ?? this.#nextOrder++;\n this.#nodes.set(node.id, { ...node, order });\n this.#updateDesiredAndSchedule();\n }\n\n /**\n * Remove a node by id and schedule a flush.\n *\n * @param id - Node id previously passed to {@link setNode}.\n */\n removeNode(id: string): void {\n if (this.#disposed) return;\n if (!this.#nodes.delete(id)) return;\n this.#updateDesiredAndSchedule();\n }\n\n /** Remove every node and schedule a flush (empty clear when previously non-empty). */\n clear(): void {\n if (this.#disposed) return;\n if (this.#nodes.size === 0) return;\n this.#nodes.clear();\n this.#updateDesiredAndSchedule();\n }\n\n /**\n * Invalidate the store: ignore late in-flight completions and reject further\n * mutations. Does not send a final clear — the runtime is going away.\n */\n dispose(): void {\n if (this.#disposed) return;\n this.#disposed = true;\n this.#epoch += 1;\n this.#flushScheduled = false;\n this.#inFlight = null;\n this.#nodes.clear();\n this.#nextOrder = 0;\n this.#desiredSerialized = EMPTY_SERIALIZED;\n this.#acknowledgedSerialized = EMPTY_SERIALIZED;\n }\n\n /**\n * Serialize the registered tree into an indented markdown-like string.\n *\n * @returns Description text, or `\"\"` when nothing is registered.\n */\n buildDescriptionString(): string {\n const byParent = new Map<string | null, StoredModelContextNode[]>();\n\n for (const node of this.#nodes.values()) {\n const key = node.parentId ?? null;\n const list = byParent.get(key);\n if (list) {\n list.push(node);\n } else {\n byParent.set(key, [node]);\n }\n }\n\n // Sibling order = registration order. React runs effects in document order\n // for siblings, so this tracks on-screen order; sorting by `useId` strings\n // would not (`:r10:` sorts before `:r2:`).\n for (const list of byParent.values()) {\n list.sort((a, b) => a.order - b.order);\n }\n\n const lines: string[] = [];\n\n const traverseTree = (parentId: string | null, depth: number): void => {\n const children = byParent.get(parentId);\n if (!children) return;\n for (const child of children) {\n if (child.content.trim()) {\n lines.push(`${\" \".repeat(depth)}- ${child.content.trim()}`);\n }\n traverseTree(child.id, depth + 1);\n }\n };\n\n traverseTree(null, 0);\n return lines.join(\"\\n\");\n }\n\n /**\n * Build the `ui/update-model-context` params from the current tree.\n *\n * @returns Empty `content` when nothing is registered; otherwise one text block.\n */\n buildModelContextParams(): ModelContextParams {\n const description = this.buildDescriptionString();\n if (description.length === 0) {\n return { content: [] };\n }\n return { content: [{ type: \"text\", text: description }] };\n }\n\n /**\n * @internal Clear nodes and pump state between tests without disposing the\n * owning runtime (warn-once flag is reset separately).\n */\n resetForTesting(): void {\n this.#nodes.clear();\n this.#nextOrder = 0;\n this.#flushScheduled = false;\n this.#inFlight = null;\n this.#desiredSerialized = EMPTY_SERIALIZED;\n this.#acknowledgedSerialized = EMPTY_SERIALIZED;\n // Keep #disposed / #epoch — a disposed store stays disposed.\n }\n\n /** @internal Serialized tree for tests. */\n getDescriptionForTesting(): string {\n return this.buildDescriptionString();\n }\n\n #updateDesiredAndSchedule(): void {\n this.#desiredSerialized = JSON.stringify(this.buildModelContextParams());\n this.#schedulePump();\n }\n\n #schedulePump(): void {\n if (this.#disposed) return;\n if (this.#flushScheduled) return;\n this.#flushScheduled = true;\n queueMicrotask(() => {\n this.#flushScheduled = false;\n this.#pump();\n });\n }\n\n #pump(): void {\n if (this.#disposed) return;\n if (this.#inFlight) return;\n if (this.#desiredSerialized === this.#acknowledgedSerialized) return;\n\n const params = this.buildModelContextParams();\n // Re-serialize from the live tree and track that exact form for ack.\n const serialized = JSON.stringify(params);\n this.#desiredSerialized = serialized;\n if (serialized === this.#acknowledgedSerialized) return;\n\n const sendEpoch = this.#epoch;\n let sendSucceeded = false;\n\n this.#inFlight = (async () => {\n try {\n const app = await this.#host.connect();\n if (this.#disposed || sendEpoch !== this.#epoch) return;\n\n if (app.getHostCapabilities()?.updateModelContext === undefined) {\n if (markModelContextUnsupportedWarned()) {\n console.warn(\n \"[ModelContext] Host does not declare the updateModelContext capability; model-context updates are not sent.\"\n );\n }\n // Stay dirty — a later host/capability may accept updates.\n return;\n }\n\n await app.updateModelContext(\n params as Parameters<App[\"updateModelContext\"]>[0]\n );\n if (this.#disposed || sendEpoch !== this.#epoch) return;\n\n // Acknowledge the exact payload that was sent. If desired moved on\n // mid-flight, the store stays dirty and the finally-block re-pumps.\n this.#acknowledgedSerialized = serialized;\n sendSucceeded = true;\n } catch (error: unknown) {\n if (this.#disposed || sendEpoch !== this.#epoch) return;\n console.warn(\"[ModelContext] Failed to update model context:\", error);\n } finally {\n this.#inFlight = null;\n if (\n !this.#disposed &&\n sendEpoch === this.#epoch &&\n sendSucceeded &&\n this.#desiredSerialized !== this.#acknowledgedSerialized\n ) {\n // Coalesced mutations during the in-flight send — push the latest.\n this.#pump();\n }\n }\n })();\n }\n}\n","/**\n * Client-side resolution for root-relative public asset paths.\n *\n * The synthesized view document injects {@link McpUseViewConfig} before any\n * module scripts so iframe code can resolve `/…` paths to absolute URLs.\n */\n\n/**\n * Request-scoped view configuration injected into the synthesized document.\n *\n * @remarks\n * Set per request by {@link synthesizeViewDocument} — not at build or boot\n * time — so public asset URLs stay correct behind proxies and tunnels.\n */\nexport interface McpUseViewConfig {\n /**\n * Absolute URL prefix for the project's `public/` directory, including a\n * trailing slash (e.g. `http://127.0.0.1:3000/mcp/_mcp-use/public/`).\n */\n publicBase: string;\n}\n\ndeclare global {\n var __mcpUseViewConfig: McpUseViewConfig | undefined;\n}\n\n/**\n * Read the injected public asset base URL, if present.\n *\n * @returns The request-resolved `publicBase`, or an empty string outside a\n * synthesized view document.\n *\n * @internal\n */\nexport function getPublicBase(): string {\n if (typeof globalThis === \"undefined\") {\n return \"\";\n }\n return globalThis.__mcpUseViewConfig?.publicBase ?? \"\";\n}\n\n/**\n * Resolve a root-relative path from the project's `public/` folder to an\n * absolute URL for the current view iframe.\n *\n * Root-relative paths (starting with `/`) are resolved against the injected\n * {@link McpUseViewConfig.publicBase}. Absolute `http(s):` and `data:` URLs\n * pass through unchanged. Fully-relative paths (no leading slash) are returned\n * as-is. Not part of the public API — public assets are consumed through the\n * {@link Image} component.\n *\n * @param path - Author path, typically root-relative from the `public/` folder\n * (e.g. `/fruits/apple.png`).\n * @returns The resolved absolute URL, or the original path when no base is set.\n *\n * @internal\n */\nexport function publicAsset(path: string): string {\n if (path === \"\") {\n return path;\n }\n if (\n path.startsWith(\"http://\") ||\n path.startsWith(\"https://\") ||\n path.startsWith(\"data:\")\n ) {\n return path;\n }\n if (path.startsWith(\"/\")) {\n const publicBase = getPublicBase();\n if (publicBase === \"\") {\n return path;\n }\n return `${publicBase}${path.slice(1)}`;\n }\n return path;\n}\n","import React from \"react\";\n\nimport { publicAsset } from \"../public-assets.js\";\n\n/**\n * Image element that resolves root-relative `src` paths against the project's\n * `public/` directory via the request-scoped config injected into the\n * synthesized view document.\n *\n * Root-relative paths (starting with `/`) resolve to absolute URLs under\n * `${basePath}/_mcp-use/public/`. Absolute `http(s):` and `data:` URLs pass\n * through unchanged. Fully-relative paths are left as-is.\n */\nexport const Image: React.FC<React.ImgHTMLAttributes<HTMLImageElement>> = ({\n src,\n ...props\n}) => {\n const finalSrc = typeof src === \"string\" ? publicAsset(src) : src;\n\n return <img src={finalSrc} {...props} />;\n};\n","/**\n * ModelContext: React component and module-level API for annotating view UI\n * with contextual information the model can see.\n */\n\nimport {\n createContext,\n type ReactNode,\n useContext,\n useEffect,\n useId,\n} from \"react\";\n\nimport type { ModelContextStore } from \"../runtime/model-context-store.js\";\nimport {\n _resetModelContextUnsupportedWarnedForTesting,\n type ModelContextParams,\n} from \"../runtime/model-context-store.js\";\nimport { useViewRuntime } from \"../runtime/view-runtime-context.js\";\nimport { getActiveRuntime } from \"../runtime/view-runtime.js\";\n\nconst ParentIdContext = createContext<string | null>(null);\n\ninterface ModelContextProps {\n /** Text describing what the user is currently seeing. */\n content: string;\n /** Optional children — acts as a scope boundary for nested context nodes. */\n children?: ReactNode;\n}\n\n/**\n * Resolve the active runtime's {@link ModelContextStore}.\n *\n * @throws When no view runtime is mounted.\n */\nfunction requireActiveModelContextStore(): ModelContextStore {\n const runtime = getActiveRuntime();\n if (!runtime) {\n throw new Error(\n \"modelContext requires a browser view mounted by bootstrapView\"\n );\n }\n return runtime.modelContextStore;\n}\n\n/**\n * Annotate a portion of the view UI with a description the model can see.\n *\n * Registers `content` in a hierarchical tree that serializes into an indented\n * markdown list and is pushed to the host via `ui/update-model-context`\n * (ext-apps `App.updateModelContext`). Updates batch per microtask. An async\n * flush pump acknowledges a payload only after a successful send; failed\n * update requests and missing host capability stay dirty and retry on the next\n * mutation. Each push carries the complete current context — the spec's\n * overwrite semantics (the host may defer delivery until the next model turn).\n *\n * An empty `content` (trimmed) does not register a node and does not orphan\n * children — nested {@link ModelContext} nodes re-parent to the nearest\n * registered ancestor (or root).\n *\n * When the host does not declare the `updateModelContext` capability, pushes\n * are skipped (payload stays dirty) and a one-time `console.warn` names the\n * gap.\n *\n * @param props - Component props.\n * @param props.content - Text describing what the user is currently seeing.\n * @param props.children - Optional nested UI; nested {@link ModelContext}\n * nodes serialize as indented children of this node when this node has\n * non-empty content.\n *\n * @example\n * ```tsx\n * <ModelContext content={`Selected: ${item.name}`} />\n *\n * <ModelContext content=\"Dashboard\">\n * <ModelContext content=\"Revenue section\" />\n * </ModelContext>\n * ```\n */\nexport function ModelContext({ content, children }: ModelContextProps) {\n const runtime = useViewRuntime();\n const store = runtime.modelContextStore;\n const parentId = useContext(ParentIdContext);\n const id = useId();\n const hasContent = content.trim().length > 0;\n const childParentId = hasContent ? id : parentId;\n\n useEffect(() => {\n if (hasContent) {\n store.setNode({ id, parentId, content });\n }\n return () => {\n store.removeNode(id);\n };\n }, [store, id, parentId, content, hasContent]);\n\n if (children === undefined || children === null) {\n return null;\n }\n\n return (\n <ParentIdContext.Provider value={childParentId}>\n {children}\n </ParentIdContext.Provider>\n );\n}\n\n/**\n * Imperative model-context API for non-React call sites (event handlers,\n * stores).\n *\n * Delegates to the active document runtime's {@link ModelContextStore}.\n * Strings register as root-level nodes in the same tree {@link ModelContext}\n * builds; each push overwrites the previous context on the host (the host may\n * defer delivery until the next model turn). Updates batch per microtask and\n * use the same async flush pump (ack only on success). When the host lacks the\n * `updateModelContext` capability, pushes stay dirty with a one-time\n * `console.warn`.\n *\n * @throws When no view runtime is mounted (`bootstrapView` has not activated a\n * runtime, or it has been disposed).\n *\n * @example\n * ```ts\n * modelContext.set(\"active-item\", `Viewing ${item.name}`);\n * modelContext.remove(\"active-item\");\n * modelContext.clear();\n * ```\n */\nexport const modelContext = {\n /**\n * Register or update a named root-level text context entry.\n *\n * @param key - Stable key for this entry (replaces any prior value under the same key).\n * @param content - Text describing what the user is seeing.\n * @throws When no view runtime is mounted.\n */\n set(key: string, content: string): void {\n requireActiveModelContextStore().setNode({\n id: key,\n parentId: null,\n content,\n });\n },\n\n /**\n * Remove the entry registered under `key`.\n *\n * @param key - Key previously passed to {@link modelContext.set}.\n * @throws When no view runtime is mounted.\n */\n remove(key: string): void {\n requireActiveModelContextStore().removeNode(key);\n },\n\n /**\n * Remove all context entries.\n *\n * @throws When no view runtime is mounted.\n */\n clear(): void {\n requireActiveModelContextStore().clear();\n },\n} as const;\n\n/**\n * @internal Reset model-context warn-once flag and the active runtime's store\n * between tests.\n */\nexport function _resetModelContextForTesting(): void {\n _resetModelContextUnsupportedWarnedForTesting();\n const runtime = getActiveRuntime();\n if (runtime) {\n runtime.modelContextStore.resetForTesting();\n }\n}\n\n/** @internal Serialized tree for the active runtime's store (tests). */\nexport function _getDescriptionForTesting(): string {\n return getActiveRuntime()?.modelContextStore.getDescriptionForTesting() ?? \"\";\n}\n\n/**\n * @internal Serialize the active runtime's model-context tree.\n *\n * @returns Description string, or `\"\"` when no runtime is mounted.\n */\nexport function buildDescriptionString(): string {\n return getActiveRuntime()?.modelContextStore.buildDescriptionString() ?? \"\";\n}\n\n/**\n * @internal Build `ui/update-model-context` params from the active store.\n *\n * @returns Empty content when no runtime is mounted or nothing is registered.\n */\nexport function buildModelContextParams(): ModelContextParams {\n return (\n getActiveRuntime()?.modelContextStore.buildModelContextParams() ?? {\n content: [],\n }\n );\n}\n","import {\n applyDocumentTheme,\n applyHostFonts,\n applyHostStyleVariables,\n} from \"@modelcontextprotocol/ext-apps\";\nimport React, { useLayoutEffect, useState } from \"react\";\n\nimport { useHostContextSubscription } from \"../runtime/view-runtime-context.js\";\n\n/**\n * Applies host theme, style variables, and fonts to the document root.\n *\n * Subscribes to the host channel (theme, `styles.variables`, `styles.css.fonts`)\n * via {@link useHostContextSubscription}. Theme-only consumers should use\n * {@link useViewTheme} instead so locale/dimension updates do not rerender them.\n */\nexport const ThemeProvider: React.FC<{\n children: React.ReactNode;\n /** Set `color-scheme` on the document root to match the active theme. */\n colorScheme?: boolean;\n}> = ({ children, colorScheme = true }) => {\n const hostContext = useHostContextSubscription();\n const [systemPreference, setSystemPreference] = useState<\"light\" | \"dark\">(\n () => {\n if (typeof window === \"undefined\") return \"light\";\n return window.matchMedia(\"(prefers-color-scheme: dark)\").matches\n ? \"dark\"\n : \"light\";\n }\n );\n\n React.useEffect(() => {\n if (typeof window === \"undefined\") return;\n const mediaQuery = window.matchMedia(\"(prefers-color-scheme: dark)\");\n const handleChange = (event: MediaQueryListEvent) => {\n setSystemPreference(event.matches ? \"dark\" : \"light\");\n };\n mediaQuery.addEventListener(\"change\", handleChange);\n return () => mediaQuery.removeEventListener(\"change\", handleChange);\n }, []);\n\n const hostTheme =\n hostContext?.theme === \"dark\" || hostContext?.theme === \"light\"\n ? hostContext.theme\n : undefined;\n const effectiveTheme = hostTheme ?? systemPreference;\n\n useLayoutEffect(() => {\n if (typeof document === \"undefined\") return;\n applyDocumentTheme(effectiveTheme);\n if (colorScheme) {\n document.documentElement.style.colorScheme =\n effectiveTheme === \"dark\" ? \"dark\" : \"light\";\n } else {\n document.documentElement.style.colorScheme = \"\";\n }\n }, [effectiveTheme, colorScheme]);\n\n useLayoutEffect(() => {\n const variables = hostContext?.styles?.variables;\n if (variables) {\n applyHostStyleVariables(variables);\n }\n const fonts = hostContext?.styles?.css?.fonts;\n if (typeof fonts === \"string\") {\n applyHostFonts(fonts);\n }\n }, [hostContext]);\n\n return <>{children}</>;\n};\n","import React, { useRef, useState } from \"react\";\n\nimport { useDisplayMode } from \"../hooks/use-display-mode.js\";\nimport { useHostContext } from \"../hooks/use-host-context.js\";\nimport { useToolContext } from \"../hooks/use-tool-context.js\";\n\n/**\n * Static styles for the debug overlay. Hoisted to module scope so the objects\n * keep stable identities across renders (this runtime ships no stylesheet, so\n * CSS classes are not an option here).\n */\nconst debugOverlayStyle: React.CSSProperties = {\n position: \"fixed\",\n inset: 0,\n zIndex: 10000,\n boxSizing: \"border-box\",\n padding: \"56px 16px 16px\",\n background: \"#111\",\n color: \"#eee\",\n overflow: \"auto\",\n};\n\nconst debugContentStyle: React.CSSProperties = {\n margin: 0,\n fontSize: 12,\n whiteSpace: \"pre-wrap\",\n overflowWrap: \"anywhere\",\n};\n\nconst debugCloseButtonStyle: React.CSSProperties = {\n position: \"fixed\",\n top: 16,\n right: 16,\n zIndex: 10001,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n width: 36,\n height: 36,\n padding: 0,\n border: \"2px solid #111\",\n borderRadius: 9999,\n background: \"#fff\",\n color: \"#111\",\n boxShadow: \"0 2px 12px rgba(0, 0, 0, 0.45)\",\n cursor: \"pointer\",\n fontSize: 26,\n fontWeight: 600,\n lineHeight: 1,\n};\n\ninterface ViewControlsProps {\n children: React.ReactNode;\n /** Show a debug overlay with view state and action testers. */\n debugger?: boolean;\n /** Show fullscreen / PiP display-mode buttons. */\n viewControls?: boolean | \"pip\" | \"fullscreen\";\n}\n\n/**\n * Dev-only overlay with debug info and bridge action testers.\n */\nexport function ViewControls({\n children,\n debugger: enableDebugger = false,\n viewControls = false,\n}: ViewControlsProps) {\n const context = useToolContext();\n const host = useHostContext();\n const { displayMode, availableDisplayModes, requestDisplayMode } =\n useDisplayMode();\n const [open, setOpen] = useState(false);\n const [hovered, setHovered] = useState(false);\n const displayModeBeforeDebugRef = useRef(displayMode);\n const restoreDisplayModeOnCloseRef = useRef(false);\n\n const showControls = enableDebugger || viewControls;\n\n const openDebugger = () => {\n displayModeBeforeDebugRef.current = displayMode;\n setOpen(true);\n\n const canExpand =\n displayMode !== \"fullscreen\" &&\n availableDisplayModes.includes(\"fullscreen\");\n restoreDisplayModeOnCloseRef.current = canExpand;\n\n if (canExpand) {\n void requestDisplayMode({ mode: \"fullscreen\" }).catch(() => {\n // The overlay remains usable inline when the host denies expansion.\n restoreDisplayModeOnCloseRef.current = false;\n });\n }\n };\n\n const closeDebugger = () => {\n setOpen(false);\n\n if (!restoreDisplayModeOnCloseRef.current) return;\n restoreDisplayModeOnCloseRef.current = false;\n void requestDisplayMode({\n mode: displayModeBeforeDebugRef.current,\n }).catch(() => {\n // The host owns display mode; closing the overlay must never be blocked.\n });\n };\n\n return (\n <div\n style={{ position: \"relative\" }}\n onMouseEnter={() => setHovered(true)}\n onMouseLeave={() => setHovered(false)}\n >\n {showControls && (\n <div\n style={{\n position: \"absolute\",\n top: 8,\n right: 8,\n zIndex: 1000,\n display: \"flex\",\n gap: 8,\n opacity: hovered ? 1 : 0,\n transition: \"opacity 0.2s\",\n }}\n >\n {viewControls && host.displayMode === \"inline\" && (\n <>\n {(viewControls === true || viewControls === \"fullscreen\") && (\n <button\n type=\"button\"\n aria-label=\"Fullscreen\"\n onClick={() =>\n void requestDisplayMode({ mode: \"fullscreen\" })\n }\n >\n FS\n </button>\n )}\n {(viewControls === true || viewControls === \"pip\") && (\n <button\n type=\"button\"\n aria-label=\"Picture in picture\"\n onClick={() => void requestDisplayMode({ mode: \"pip\" })}\n >\n PiP\n </button>\n )}\n </>\n )}\n {enableDebugger && (\n <button type=\"button\" aria-label=\"Debug\" onClick={openDebugger}>\n Debug\n </button>\n )}\n </div>\n )}\n {children}\n {enableDebugger && open && (\n <div\n style={debugOverlayStyle}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-label=\"Debug info\"\n >\n <button\n type=\"button\"\n style={debugCloseButtonStyle}\n aria-label=\"Close debug\"\n title=\"Close debug\"\n onClick={closeDebugger}\n >\n ×\n </button>\n <pre style={debugContentStyle}>\n {JSON.stringify(\n {\n status: context.status,\n toolOutput:\n context.status === \"ready\" ? context.toolOutput : undefined,\n content:\n context.status === \"ready\" || context.status === \"error\"\n ? context.content\n : undefined,\n toolInput: context.toolInput,\n meta:\n context.status === \"ready\" || context.status === \"error\"\n ? context.meta\n : undefined,\n error: context.status === \"error\" ? context.error : undefined,\n theme: host.theme,\n displayMode: host.displayMode,\n isAvailable: host.isAvailable,\n },\n null,\n 2\n )}\n </pre>\n </div>\n )}\n </div>\n );\n}\n","import { useSyncExternalStore } from \"react\";\n\nimport { useViewRuntime } from \"../runtime/view-runtime-context.js\";\nimport type { DisplayMode } from \"../types/host-types.js\";\n\n/**\n * Read the current display mode and request changes from the host.\n *\n * @remarks\n * `requestDisplayMode` is advisory: the host decides whether to honor it and\n * may grant a different mode or none at all. The returned promise resolves\n * once the host has processed the request — resolution does **not** mean the\n * mode changed. The single source of truth for the outcome is `displayMode`,\n * which updates reactively when the host applies a change; a denied request\n * simply leaves it unchanged. Do not store the requested mode in local state —\n * render from `displayMode` so the view also tracks mode changes the host\n * makes on its own (for example, the user exiting fullscreen).\n *\n * `displayMode` is `\"inline\"` until the host reports otherwise.\n * `availableDisplayModes` is the negotiated intersection of\n * `viewConfig.displayModes` and `hostContext.availableDisplayModes`. When the\n * host omits available modes, only `\"inline\"` is requestable.\n * `requestDisplayMode` rejects modes outside that intersection before sending;\n * the method itself is runtime-owned and referentially stable.\n *\n * @example\n * ```tsx\n * function ExpandButton() {\n * const { displayMode, availableDisplayModes, requestDisplayMode } =\n * useDisplayMode();\n * if (!availableDisplayModes.includes(\"fullscreen\")) return null;\n * if (displayMode === \"fullscreen\") return null;\n * return (\n * <button\n * type=\"button\"\n * onClick={() => {\n * void requestDisplayMode({ mode: \"fullscreen\" });\n * }}\n * >\n * Expand\n * </button>\n * );\n * }\n * ```\n */\nexport function useDisplayMode(): {\n /** How the host is currently displaying the view; `\"inline\"` until the host reports otherwise. */\n displayMode: DisplayMode;\n /**\n * Negotiated modes: intersection of `viewConfig.displayModes` and host\n * `availableDisplayModes` (host omits → only `\"inline\"`).\n */\n availableDisplayModes: readonly DisplayMode[];\n /**\n * Ask the host to switch display mode. Rejects when the mode is outside the\n * negotiated intersection. Resolves when the host has processed the request;\n * observe `displayMode` for the outcome.\n */\n requestDisplayMode: (args: { mode: DisplayMode }) => Promise<void>;\n} {\n const runtime = useViewRuntime();\n const { displayMode, availableDisplayModes } = useSyncExternalStore(\n runtime.subscribeDisplay,\n runtime.getDisplaySnapshot\n );\n return {\n displayMode,\n availableDisplayModes,\n requestDisplayMode: runtime.requestDisplayMode,\n };\n}\n","import { useSyncExternalStore } from \"react\";\n\nimport { useViewRuntime } from \"../runtime/view-runtime-context.js\";\nimport type {\n DisplayMode,\n HostCapabilities,\n HostContext,\n HostInfo,\n SafeAreaInsets,\n} from \"../types/host-types.js\";\n\nconst DEFAULT_SAFE_AREA: SafeAreaInsets = {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n};\n\nfunction readMaxHeight(\n hostContext: HostContext | undefined\n): number | undefined {\n const dims = hostContext?.containerDimensions;\n if (!dims) return undefined;\n if (\"height\" in dims && typeof dims.height === \"number\") return dims.height;\n if (\"maxHeight\" in dims && typeof dims.maxHeight === \"number\") {\n return dims.maxHeight;\n }\n return undefined;\n}\n\nfunction readMaxWidth(\n hostContext: HostContext | undefined\n): number | undefined {\n const dims = hostContext?.containerDimensions;\n if (!dims) return undefined;\n if (\"width\" in dims && typeof dims.width === \"number\") return dims.width;\n if (\"maxWidth\" in dims && typeof dims.maxWidth === \"number\") {\n return dims.maxWidth;\n }\n return undefined;\n}\n\nfunction resolveDisplayMode(hostContext: HostContext | undefined): DisplayMode {\n return hostContext?.displayMode === \"fullscreen\" ||\n hostContext?.displayMode === \"pip\"\n ? hostContext.displayMode\n : \"inline\";\n}\n\n/**\n * Host environment and bridge availability for the current view.\n */\nexport interface HostContextHandle {\n /** Host color theme. `\"light\"` until the host reports a theme. */\n theme: \"light\" | \"dark\";\n /** User locale (BCP 47). Falls back to `\"en-US\"` when the host does not report one. */\n locale: string;\n /** User timezone (IANA). Falls back to the browser's timezone, then `\"UTC\"`. */\n timeZone: string;\n /** Host application user-agent string. Falls back to the browser's own user agent. */\n userAgent: string;\n /** How the host is currently displaying the view. `\"inline\"` until the host reports otherwise. */\n displayMode: DisplayMode;\n /** Mobile safe area insets in pixels. All zeros when the host reports none. */\n safeArea: SafeAreaInsets;\n /**\n * Vertical layout budget in pixels: the most height the view can occupy.\n *\n * Derived from the host's container dimensions. When the host fixes the\n * container to an exact height, that height is reported; otherwise the\n * host's stated maximum is. `undefined` when the host reports no layout\n * constraint — treat that as unbounded. The raw dimensions remain available\n * on `hostContext.containerDimensions`.\n */\n maxHeight: number | undefined;\n /**\n * Horizontal layout budget in pixels: the most width the view can occupy.\n *\n * Same derivation as `maxHeight`: an exact container width when the host\n * fixes one, otherwise the host's stated maximum, otherwise `undefined`\n * (unbounded).\n */\n maxWidth: number | undefined;\n /** Host identity (name and version). `undefined` until the bridge has connected. */\n hostInfo: HostInfo | undefined;\n /** Host capabilities negotiated at initialization. `undefined` until the bridge has connected. */\n hostCapabilities: HostCapabilities | undefined;\n /**\n * The host context object exactly as the host reported it, with none of the\n * fallbacks the fields above apply. Use it to read host-specific fields this\n * handle does not surface. `undefined` until the host first reports context.\n */\n hostContext: HostContext | undefined;\n /** Whether the MCP Apps bridge is connected. While `false`, every field holds its documented fallback. */\n isAvailable: boolean;\n}\n\n/**\n * Subscribe to host environment context (theme, locale, display mode, layout).\n *\n * Re-renders only when host context or bridge connection status changes — not\n * on tool-input / result / cancel snapshot updates.\n *\n * @example\n * ```tsx\n * function Layout() {\n * const { theme, locale, maxHeight } = useHostContext();\n * return (\n * <div data-theme={theme} lang={locale} style={{ maxHeight }}>\n * …\n * </div>\n * );\n * }\n * ```\n */\nexport function useHostContext(): HostContextHandle {\n const runtime = useViewRuntime();\n const { hostContext, isConnected } = useSyncExternalStore(\n runtime.subscribeHost,\n runtime.getHostSnapshot\n );\n const app = runtime.getApp();\n\n return {\n theme: hostContext?.theme === \"dark\" ? \"dark\" : \"light\",\n locale:\n typeof hostContext?.locale === \"string\" ? hostContext.locale : \"en-US\",\n timeZone:\n typeof hostContext?.timeZone === \"string\"\n ? hostContext.timeZone\n : typeof Intl !== \"undefined\"\n ? Intl.DateTimeFormat().resolvedOptions().timeZone\n : \"UTC\",\n userAgent:\n typeof hostContext?.userAgent === \"string\"\n ? hostContext.userAgent\n : typeof navigator !== \"undefined\"\n ? navigator.userAgent\n : \"\",\n displayMode: resolveDisplayMode(hostContext),\n safeArea: hostContext?.safeAreaInsets ?? DEFAULT_SAFE_AREA,\n maxHeight: readMaxHeight(hostContext),\n maxWidth: readMaxWidth(hostContext),\n hostInfo: app?.getHostVersion(),\n hostCapabilities: app?.getHostCapabilities(),\n hostContext,\n isAvailable: isConnected,\n };\n}\n","import type { ContentBlock } from \"@modelcontextprotocol/server\";\nimport { useSyncExternalStore } from \"react\";\n\nimport { useViewRuntime } from \"../runtime/view-runtime-context.js\";\nimport type { DeepPartial, RegisteredTools } from \"../types/register.js\";\nimport type { ToolContextError } from \"../types/result-types.js\";\n\nexport type { ToolContextError } from \"../types/result-types.js\";\n\ntype ToolOutput<Name extends keyof RegisteredTools> =\n Name extends keyof RegisteredTools\n ? RegisteredTools[Name][\"output\"]\n : unknown;\n\ntype ToolInput<Name extends keyof RegisteredTools> =\n Name extends keyof RegisteredTools ? RegisteredTools[Name][\"input\"] : unknown;\n\n/** No structured result has been latched yet. */\ninterface PendingToolContext<Name extends keyof RegisteredTools> {\n status: \"pending\";\n /** Latest complete or partial arguments; each notification replaces it. */\n toolInput: DeepPartial<ToolInput<Name>> | undefined;\n toolOutput: undefined;\n content: undefined;\n meta: undefined;\n error?: undefined;\n}\n\n/** First non-error result carrying `structuredContent`. */\ninterface ReadyToolContext<Name extends keyof RegisteredTools> {\n status: \"ready\";\n /** Latest arguments delivered before the result, when available. */\n toolInput: ToolInput<Name> | undefined;\n /** Typed `structuredContent` from the latched rendering result. */\n toolOutput: ToolOutput<Name>;\n content: ContentBlock[] | undefined;\n /** View-only result `_meta`, when present. */\n meta: Record<string, unknown> | undefined;\n error?: undefined;\n}\n\n/** First tool result carrying `isError: true`. */\ninterface ErrorToolContext<Name extends keyof RegisteredTools> {\n status: \"error\";\n /** Latest arguments delivered before the error, when available. */\n toolInput: ToolInput<Name> | undefined;\n toolOutput: undefined;\n content: ContentBlock[] | undefined;\n meta: Record<string, unknown> | undefined;\n error: ToolContextError;\n}\n\n/**\n * The rendering invocation's latched lifecycle.\n *\n * Partial and complete input notifications replace the same `toolInput`\n * snapshot while pending. Because the MCP Apps notification has no tool name\n * or request id, the first structured result or tool error is assumed to\n * belong to the rendering invocation and becomes terminal. Content-only\n * successes are valid ambient activity and are ignored.\n */\nexport type ToolContextHandle<Name extends keyof RegisteredTools = never> =\n | PendingToolContext<Name>\n | ReadyToolContext<Name>\n | ErrorToolContext<Name>;\n\n/**\n * Read the tool invocation that rendered this View.\n *\n * The hook starts pending with an optional progressive `toolInput`, then\n * latches the first structured success or tool error for the View's lifetime.\n * Later lifecycle notifications cannot overwrite that terminal context.\n *\n * @example\n * ```tsx\n * function ProductSearchResult() {\n * const view = useToolContext<\"search-fruits\">();\n *\n * if (view.status === \"error\") {\n * return <ToolErrorBanner message={view.error.message} />;\n * }\n * if (view.status === \"pending\") {\n * return <SearchSkeleton query={view.toolInput?.query} />;\n * }\n * return <Results items={view.toolOutput.items} />;\n * }\n * ```\n */\nexport function useToolContext<\n Name extends keyof RegisteredTools = never,\n>(): ToolContextHandle<Name> {\n const runtime = useViewRuntime();\n const snap = useSyncExternalStore(\n runtime.subscribeTool,\n runtime.getToolSnapshot\n );\n\n if (snap.status === \"error\") {\n return {\n status: \"error\",\n toolInput: snap.toolInput as ToolInput<Name> | undefined,\n toolOutput: undefined,\n content: snap.content,\n meta: snap.meta,\n error: snap.error as ToolContextError,\n };\n }\n\n if (snap.status === \"ready\") {\n return {\n status: \"ready\",\n toolInput: snap.toolInput as ToolInput<Name> | undefined,\n toolOutput: snap.toolOutput as ToolOutput<Name>,\n content: snap.content,\n meta: snap.meta,\n };\n }\n\n return {\n status: \"pending\",\n toolInput: snap.toolInput as DeepPartial<ToolInput<Name>> | undefined,\n toolOutput: undefined,\n content: undefined,\n meta: undefined,\n };\n}\n","import { useCallback, useRef, useState } from \"react\";\n\nimport type { ToolRef } from \"../../tools.js\";\nimport { useViewRuntime } from \"../runtime/view-runtime-context.js\";\nimport type { RegisteredTools } from \"../types/register.js\";\nimport {\n ToolError,\n type CallToolResult,\n type CallToolSuccess,\n} from \"../types/result-types.js\";\n\nexport type { CallToolSuccess } from \"../types/result-types.js\";\nexport { ToolError } from \"../types/result-types.js\";\n\n/**\n * Typed server-tool call handle returned by {@link useCallTool}.\n *\n * @typeParam Args - Tool argument object type.\n * @typeParam Result - Expected `structuredContent` type for a successful result.\n */\nexport interface CallToolHandle<Args, Result> {\n /**\n * Invoke the server tool over the bridge.\n *\n * Every non-error result resolves. `structuredContent` is guaranteed and\n * typed exactly when the tool declares an `outputSchema` — the server\n * rejects non-error results from schema-backed tools that lack it, so a\n * resolved result from a schema'd tool always carries it. Tools without an\n * `outputSchema` legitimately return content-only results.\n *\n * @param args - Tool arguments matching the registered input schema.\n * @returns Successful result ({@link CallToolSuccess}).\n * @throws {@link ToolError} when the tool answers with `isError: true`.\n * Transport, RPC, and missing-`serverTools` failures also reject with an\n * `Error`.\n */\n callTool: (args: Args) => Promise<CallToolSuccess<Result>>;\n /**\n * Last successful result only. Preserved while a later request is pending\n * or fails (tool error / transport).\n */\n data: CallToolSuccess<Result> | undefined;\n /**\n * Last failure ({@link ToolError} or transport/RPC/capability `Error`).\n * Cleared on the next call.\n */\n error: Error | undefined;\n /** Whether a call is in flight. */\n isPending: boolean;\n}\n\n/**\n * Call a registered server tool from the view with inferred types.\n *\n * Successful results populate `data` and clear `error`. Tool errors and\n * transport failures reject and populate `error` while preserving previous\n * `data`. Prefer reading `data` / `error` from the handle for React UI; use\n * try/catch for imperative flows.\n *\n * @example\n * ```tsx\n * const details = useCallTool(\"get-fruit-details\");\n *\n * // State-driven (typical in React):\n * // {details.error && <ErrorBanner message={details.error.message} />}\n * // {details.data && <DetailsCard data={details.data.structuredContent} />}\n *\n * // Imperative:\n * try {\n * const result = await details.callTool({ fruit: \"apple\" });\n * showDetails(result.structuredContent);\n * } catch (err) {\n * if (err instanceof ToolError) {\n * showToolError(err.message);\n * }\n * }\n * ```\n */\nexport function useCallTool<Name extends keyof RegisteredTools>(\n name: Name\n): CallToolHandle<\n RegisteredTools[Name][\"input\"],\n RegisteredTools[Name][\"output\"]\n>;\n\n/**\n * Call a server tool using a {@link ToolRef} value (inline-JSX stretch path).\n *\n * @typeParam R - Tool ref carrying name, input, and output types.\n */\n// eslint-disable-next-line no-redeclare -- overload set\nexport function useCallTool<R extends ToolRef<string, unknown, unknown>>(\n ref: R\n): CallToolHandle<\n R extends ToolRef<string, infer I, unknown> ? I : never,\n R extends ToolRef<string, unknown, infer O> ? O : never\n>;\n\n/**\n * Call a server tool with explicit argument/result types (escape hatch).\n *\n * @typeParam Args - Explicit argument object type.\n * @typeParam Result - Explicit `structuredContent` type.\n */\n// eslint-disable-next-line no-redeclare -- overload set\nexport function useCallTool<\n Args extends Record<string, unknown>,\n Result = unknown,\n>(name: string): CallToolHandle<Args, Result>;\n\n// eslint-disable-next-line no-redeclare -- implementation signature\nexport function useCallTool(\n nameOrRef: string | ToolRef<string, unknown, unknown>\n) {\n const toolName = typeof nameOrRef === \"string\" ? nameOrRef : nameOrRef.name;\n const runtime = useViewRuntime();\n const [data, setData] = useState<CallToolSuccess<unknown> | undefined>(\n undefined\n );\n const [error, setError] = useState<Error | undefined>(undefined);\n const [isPending, setIsPending] = useState(false);\n const callIdRef = useRef(0);\n\n const callTool = useCallback(\n async (\n args: Record<string, unknown>\n ): Promise<CallToolSuccess<unknown>> => {\n const callId = ++callIdRef.current;\n setIsPending(true);\n setError(undefined);\n\n try {\n const result = await runtime.callServerTool({\n name: toolName,\n arguments: args,\n });\n\n if (result.isError === true) {\n throw new ToolError(result as CallToolResult & { isError: true });\n }\n\n const typed = result as CallToolSuccess<unknown>;\n if (callId === callIdRef.current) {\n setData(typed);\n setIsPending(false);\n }\n return typed;\n } catch (err) {\n const failure = err instanceof Error ? err : new Error(String(err));\n if (callId === callIdRef.current) {\n setError(failure);\n setIsPending(false);\n }\n throw failure;\n }\n },\n [runtime, toolName]\n );\n\n return { callTool, data, error, isPending };\n}\n","import { useMemo, useSyncExternalStore } from \"react\";\n\nimport { useViewRuntime } from \"../runtime/view-runtime-context.js\";\nimport type { UseFilesResult } from \"../types/file-types.js\";\n\n/**\n * Upload and download files through ChatGPT's optional `window.openai`\n * extension.\n *\n * File handling is not part of the MCP Apps bridge. Always check\n * `isSupported` before calling either action; unsupported calls reject with a\n * descriptive error. The hook does not read or update ChatGPT widget state and\n * does not make uploaded files model-visible as a side effect.\n *\n * The returned actions are referentially stable for the lifetime of the\n * mounted runtime.\n *\n * @example\n * ```tsx\n * const { isSupported, upload, getDownloadUrl } = useFiles();\n *\n * if (!isSupported) return <p>File handling requires ChatGPT.</p>;\n *\n * const { fileId } = await upload(file);\n * const { downloadUrl } = await getDownloadUrl({ fileId });\n * ```\n */\nexport function useFiles(): UseFilesResult {\n const runtime = useViewRuntime();\n const { isSupported } = useSyncExternalStore(\n runtime.subscribeFiles,\n runtime.getFilesSnapshot\n );\n\n return useMemo(\n () => ({\n isSupported,\n upload: runtime.uploadFile,\n getDownloadUrl: runtime.getFileDownloadUrl,\n }),\n [runtime, isSupported]\n );\n}\n","import { useCallback } from \"react\";\n\nimport { useViewRuntime } from \"../runtime/view-runtime-context.js\";\n\n/**\n * Returns a callback that asks the host to open a URL outside the view.\n *\n * @remarks\n * Requires the host `openLinks` capability; otherwise the returned promise\n * rejects before any wire traffic. The host decides how (and whether) to open\n * the link — typically in the user's browser, often behind a confirmation\n * prompt — so treat it as a request, not a guaranteed navigation. Views run\n * sandboxed and cannot navigate the user themselves; this is the supported\n * way to link out.\n *\n * The returned callback is referentially stable for the lifetime of the\n * mounted runtime.\n *\n * @example\n * ```tsx\n * function DocsLink() {\n * const openExternal = useOpenExternal();\n * return (\n * <button\n * type=\"button\"\n * onClick={() => {\n * void openExternal({ url: \"https://example.com/docs\" });\n * }}\n * >\n * Open docs\n * </button>\n * );\n * }\n * ```\n */\nexport function useOpenExternal(): (args: { url: string }) => Promise<void> {\n const runtime = useViewRuntime();\n return useCallback(\n async (args: { url: string }) => {\n await runtime.openLink({ url: args.url });\n },\n [runtime]\n );\n}\n","import { useCallback } from \"react\";\n\nimport { useViewRuntime } from \"../runtime/view-runtime-context.js\";\n\n/**\n * Returns a callback that sends a follow-up message to the conversation,\n * triggering a model turn.\n *\n * @remarks\n * Requires the host `message` capability; otherwise the returned promise\n * rejects before any wire traffic. The prompt is delivered to the host as a\n * user-authored chat message, as if the user had typed it. The returned\n * promise resolves when the host accepts the message — not when the model\n * responds; any response arrives through the normal conversation flow (and, if\n * the model calls this view's tool again, through {@link useToolContext}).\n * Hosts may require user confirmation or decline the message entirely.\n *\n * The returned callback is referentially stable for the lifetime of the\n * mounted runtime.\n *\n * @example\n * ```tsx\n * function AskAgain() {\n * const sendFollowUp = useSendFollowUp();\n * return (\n * <button\n * type=\"button\"\n * onClick={() => sendFollowUp({ prompt: \"Show more results\" })}\n * >\n * Refine search\n * </button>\n * );\n * }\n * ```\n */\nexport function useSendFollowUp(): (args: { prompt: string }) => Promise<void> {\n const runtime = useViewRuntime();\n return useCallback(\n async (args: { prompt: string }) => {\n await runtime.sendMessage({\n role: \"user\",\n content: [{ type: \"text\", text: args.prompt }],\n });\n },\n [runtime]\n );\n}\n","import { useViewRuntime } from \"../runtime/view-runtime-context.js\";\n\n/**\n * Returns a callback that notifies the host of the view's size via\n * `ui/notifications/size-changed`.\n *\n * Pair with `viewConfig.autoResize: false` when the view's height derives from\n * its width (for example a fixed aspect-ratio container). Ext-apps auto-resize\n * measures the document under `height: max-content`, which collapses those\n * layouts; disable it and report `{ width, height }` from a `ResizeObserver`\n * (or equivalent) instead.\n *\n * Returns the runtime-owned `sendSizeChanged` method — referentially stable\n * for the lifetime of the mounted runtime.\n *\n * @example\n * ```tsx\n * import {\n * ThemeProvider,\n * useSendSizeChanged,\n * type ViewConfig,\n * } from \"mcp-use/react\";\n * import { useEffect, useRef } from \"react\";\n *\n * export const viewConfig = {\n * autoResize: false,\n * displayModes: [\"inline\", \"fullscreen\"],\n * } satisfies ViewConfig;\n *\n * export default function AspectRatioView() {\n * return (\n * <ThemeProvider>\n * <AspectRatioContent />\n * </ThemeProvider>\n * );\n * }\n *\n * function AspectRatioContent() {\n * const ref = useRef<HTMLDivElement>(null);\n * const sendSizeChanged = useSendSizeChanged();\n *\n * useEffect(() => {\n * const element = ref.current;\n * if (!element) return;\n *\n * const observer = new ResizeObserver(([entry]) => {\n * if (!entry) return;\n * const { width, height } = entry.contentRect;\n * void sendSizeChanged({ width, height });\n * });\n *\n * observer.observe(element);\n * return () => observer.disconnect();\n * }, [sendSizeChanged]);\n *\n * return <div ref={ref} style={{ width: \"100%\", aspectRatio: \"4 / 3\" }} />;\n * }\n * ```\n */\nexport function useSendSizeChanged(): (size: {\n width?: number;\n height?: number;\n}) => Promise<void> {\n const runtime = useViewRuntime();\n return runtime.sendSizeChanged;\n}\n","import { useSyncExternalStore } from \"react\";\n\nimport { useViewRuntime } from \"../runtime/view-runtime-context.js\";\n\n/**\n * Subscribe to the host color theme only.\n *\n * @remarks\n * Returns the same value as {@link useHostContext}'s `theme` and updates live\n * when the user or host switches themes. Prefer this hook when theme is all a\n * component needs: it re-renders only when the resolved theme string changes,\n * never on locale, dimensions, display mode, or tool updates. Returns\n * `\"light\"` until the host reports a theme.\n *\n * @example\n * ```tsx\n * const theme = useViewTheme();\n * ```\n */\nexport function useViewTheme(): \"light\" | \"dark\" {\n const runtime = useViewRuntime();\n return useSyncExternalStore(runtime.subscribeTheme, runtime.getThemeSnapshot);\n}\n","import type {\n InputRequiredResult,\n ToolAnnotations,\n} from \"@modelcontextprotocol/server\";\nimport { useEffect, useRef } from \"react\";\n\nimport type {\n InferToolInput,\n InferToolOutput,\n ToolDefinition,\n ToolResult,\n} from \"../../tools.js\";\nimport { resolveToolInputSchema } from \"../../tools.js\";\nimport { useViewRuntime } from \"../runtime/view-runtime-context.js\";\nimport type { McpAppRuntime } from \"../runtime/view-runtime.js\";\n\n/** View-tool definition — mirrors {@link ToolDefinition} plus `enabled`. */\nexport type ViewToolDefinition = Pick<\n ToolDefinition,\n | \"name\"\n | \"title\"\n | \"description\"\n | \"inputSchema\"\n | \"schema\"\n | \"outputSchema\"\n | \"annotations\"\n> & {\n /** When `false`, the tool stays registered but is not listed or callable. */\n enabled?: boolean;\n};\n\n/** Handle returned by {@link McpAppRuntime.registerViewTool}. */\ntype RegisteredViewTool = ReturnType<McpAppRuntime[\"registerViewTool\"]>;\n\n/**\n * Register an ephemeral tool the host/model can call while this component is mounted.\n *\n * Registration is synchronous against the runtime-owned App and independent\n * of connection completion. It is keyed by `name` only (`[runtime, name]`):\n * the tool registers once per mounted name and is removed on unmount. Changing\n * `inputSchema` / `outputSchema` without changing `name` does **not**\n * re-register — schemas are captured at registration time (ext-apps fixes\n * handler arity at registration); to change a tool's schema, register it under\n * a new name. `schema` is accepted as an alias for `inputSchema`.\n *\n * `title`, `description`, and `annotations` changes are applied in place via\n * the ext-apps handle's `update()`, passing explicit `undefined` so omitted\n * fields are cleared. Toggling `enabled` calls `enable()` / `disable()`\n * without re-registering. The handler is kept in a ref so calls always see\n * current React state. Registration goes through\n * {@link McpAppRuntime.registerViewTool} (never `app.registerTool` directly)\n * so the runtime can perform the empty-handler handoff on first registration.\n *\n * Cleanup captures the registration handle inside the effect so an older\n * cleanup cannot remove a newer registration (e.g. after a rapid `name`\n * change). Registration failures are reported with `console.error` and do not\n * leave half-registered state.\n *\n * @example\n * ```tsx\n * useViewTool(\n * { name: \"highlight-fruit\", inputSchema: z.object({ id: z.string() }) },\n * async ({ id }) => {\n * setSelected(id);\n * return { content: [{ type: \"text\", text: `Highlighted ${id}` }] };\n * }\n * );\n * ```\n */\nexport function useViewTool<\n const TDef extends ViewToolDefinition,\n TInput = InferToolInput<TDef>,\n TOutput = InferToolOutput<TDef>,\n>(\n definition: TDef,\n handler: (\n args: TInput\n ) =>\n | Exclude<ToolResult<TOutput>, InputRequiredResult>\n | Promise<Exclude<ToolResult<TOutput>, InputRequiredResult>>\n): void {\n const runtime = useViewRuntime();\n const handlerRef = useRef(handler);\n handlerRef.current = handler;\n const definitionRef = useRef<ViewToolDefinition>(definition);\n definitionRef.current = definition;\n // Shared only for post-registration metadata / enabled updates. Cleanup\n // never removes through this ref alone — each registering effect removes\n // only the handle it captured locally.\n const registeredRef = useRef<RegisteredViewTool | null>(null);\n const registeredMetadataRef = useRef<{\n registration: RegisteredViewTool;\n title: string | undefined;\n description: string | undefined;\n annotationsJson: string | undefined;\n } | null>(null);\n\n const { name, title, description, enabled = true } = definition;\n // Annotations are plain JSON data (MCP wire shape); serialize for change\n // detection so inline literals don't retrigger effects by identity.\n const annotationsJson =\n definition.annotations === undefined\n ? undefined\n : JSON.stringify(definition.annotations);\n\n useEffect(() => {\n const def = definitionRef.current;\n const config: {\n title?: string;\n description?: string;\n inputSchema?: NonNullable<ViewToolDefinition[\"inputSchema\"]>;\n outputSchema?: NonNullable<ViewToolDefinition[\"outputSchema\"]>;\n annotations?: ToolAnnotations;\n } = {};\n\n if (def.title !== undefined) config.title = def.title;\n if (def.description !== undefined) config.description = def.description;\n const inputSchema = resolveToolInputSchema(def);\n if (inputSchema !== undefined) config.inputSchema = inputSchema;\n if (def.outputSchema !== undefined) {\n config.outputSchema = def.outputSchema;\n }\n if (def.annotations !== undefined) {\n config.annotations = def.annotations;\n }\n\n // ext-apps fixes callback arity at registration: schema-backed tools call\n // `(parsedArgs, extra)`, while schema-less tools call `(extra)`. Adapt the\n // latter so the public handler receives an empty input object rather than\n // RequestHandlerExtra. Validation remains entirely owned by ext-apps.\n const callback =\n inputSchema !== undefined\n ? async (args: unknown) => handlerRef.current(args as TInput)\n : async (_extra: unknown) => handlerRef.current({} as TInput);\n\n let registration: RegisteredViewTool;\n try {\n registration = runtime.registerViewTool(name, config, callback);\n } catch (error: unknown) {\n console.error(\n `[mcp-use] useViewTool failed to register tool \"${name}\":`,\n error\n );\n return;\n }\n\n registeredRef.current = registration;\n registeredMetadataRef.current = {\n registration,\n title: def.title,\n description: def.description,\n annotationsJson:\n def.annotations === undefined\n ? undefined\n : JSON.stringify(def.annotations),\n };\n\n if (def.enabled === false) {\n registration.disable();\n }\n\n return () => {\n if (registeredRef.current === registration) {\n registeredRef.current = null;\n }\n if (registeredMetadataRef.current?.registration === registration) {\n registeredMetadataRef.current = null;\n }\n try {\n registration.remove();\n } catch {\n // App may already be closing during disposal. Swallow quietly.\n }\n };\n }, [runtime, name]);\n\n useEffect(() => {\n const registered = registeredRef.current;\n // Pre-registration changes are picked up from definitionRef at\n // registration time; this effect only applies post-registration edits.\n if (!registered) return;\n const applied = registeredMetadataRef.current;\n if (\n applied?.registration === registered &&\n applied.title === title &&\n applied.description === description &&\n applied.annotationsJson === annotationsJson\n ) {\n return;\n }\n const def = definitionRef.current;\n // Pass explicit undefined so Object.assign clears previously set fields.\n // Cast: exactOptionalPropertyTypes rejects `string | undefined` on\n // Partial<{ title?: string }>, but ext-apps' update uses Object.assign\n // and listing omits falsy/undefined metadata — explicit undefined is\n // required to clear.\n registered.update({\n title: def.title,\n description: def.description,\n annotations: def.annotations,\n } as Parameters<RegisteredViewTool[\"update\"]>[0]);\n registeredMetadataRef.current = {\n registration: registered,\n title: def.title,\n description: def.description,\n annotationsJson:\n def.annotations === undefined\n ? undefined\n : JSON.stringify(def.annotations),\n };\n }, [title, description, annotationsJson]);\n\n useEffect(() => {\n const registered = registeredRef.current;\n if (!registered || registered.enabled === enabled) return;\n if (enabled) {\n registered.enable();\n } else {\n registered.disable();\n }\n }, [enabled]);\n}\n","import type {\n CallToolResult,\n InputRequiredResult,\n MetaObject,\n StandardSchemaWithJSON,\n ToolAnnotations,\n} from \"@modelcontextprotocol/server\";\n\nimport type { McpUiResourceCsp } from \"@modelcontextprotocol/ext-apps\";\n\nimport type { RequestContext } from \"./context.js\";\nimport type { UiPermissions } from \"./views/types.js\";\n\n/**\n * Binds a tool to a view directory for MCP Apps rendering.\n *\n * Any number of tools may share the same `name`. Resource facts\n * (`description`, `csp`, `permissions`, `domain`, `prefersBorder`) have one\n * authoring point — at most one binder may declare them; others pass only\n * `{ name }`. The view file exports only the component; the framework reads\n * these fields at registration and emits them on the bound view's MCP\n * resource (hosts read resource `_meta.ui`, not tool-level copies).\n */\nexport interface ToolViewConfig {\n /** View directory / manifest name, e.g. `\"product-search-result\"`. */\n name: string;\n /**\n * Human-readable description of the view resource → the resource's\n * `description` on `resources/list` and `resources/read`.\n */\n description?: string;\n /**\n * CSP domains the host must allow → resource `_meta.ui.csp`. The framework\n * auto-appends its serving origin to `resourceDomains` at emission time;\n * other author-set fields (`frameDomains`, `baseUriDomains`, …) pass through.\n */\n csp?: McpUiResourceCsp;\n /** Sandbox permissions the view needs → resource `_meta.ui.permissions`. */\n permissions?: UiPermissions;\n /**\n * Dedicated origin hint for hosts that render views on a separate domain →\n * resource `_meta.ui.domain`.\n */\n domain?: string;\n /**\n * Ask the host to draw a border around the view → resource\n * `_meta.ui.prefersBorder`.\n */\n prefersBorder?: boolean;\n}\n\n/** Declares a tool's identity, LLM-facing description, and schemas. First argument to {@link MCPServer.tool}. */\nexport interface ToolDefinition {\n /** Unique tool identifier, e.g. `\"fetch-weather\"`. */\n name: string;\n /** Human-readable title shown in UIs (falls back to `name`). */\n title?: string;\n /** LLM-facing description of what the tool does. */\n description?: string;\n /**\n * Object schema for input validation — any Standard Schema library with\n * JSON Schema conversion ({@link StandardSchemaWithJSON}): zod v4, ArkType,\n * Valibot, …. Field descriptions become LLM hints. Input is validated by\n * the SDK before the callback runs. Emitted on the wire as `inputSchema`.\n */\n inputSchema?: StandardSchemaWithJSON;\n /**\n * Alias for {@link ToolDefinition.inputSchema}. Prefer `inputSchema` in new\n * code — it matches the MCP wire field name.\n */\n schema?: StandardSchemaWithJSON;\n /**\n * Schema for structured output ({@link StandardSchemaWithJSON}). Any JSON\n * root is allowed — object, array, or primitive (2026-07-28 protocol).\n * When set, the callback must return a result carrying matching\n * `structuredContent` or an explicit `isError` result — enforced at\n * compile time and validated by the SDK at runtime.\n */\n outputSchema?: StandardSchemaWithJSON;\n /** Behavioral hints for clients (readOnlyHint, destructiveHint, …). */\n annotations?: ToolAnnotations;\n /**\n * Extension metadata advertised on this tool's `tools/list` descriptor.\n *\n * Use vendor-namespaced keys for custom data. This definition metadata is\n * distinct from a tool callback result's `_meta`: it describes the tool,\n * while result `_meta` belongs to one invocation. For view-bound or\n * visibility-restricted tools, framework-owned MCP Apps keys are derived\n * from {@link ToolDefinition.view} and {@link ToolDefinition.visibility};\n * those derived values take precedence over colliding entries here.\n */\n _meta?: MetaObject;\n /**\n * Declares who may call or see the tool. Emitted as `_meta.ui.visibility`\n * on `tools/list`. Omitted = host default (callable by the model, visible\n * to the app). The server always lists every registered tool — hosts\n * filter by this declaration; the server never omits tools from\n * `tools/list`. `\"app\"` marks app-private helper tools callable from\n * views via `useCallTool` while the host hides them from the model.\n */\n visibility?: \"model\" | \"app\";\n /**\n * Bind this tool to a view for MCP Apps rendering. Requires\n * {@link ToolDefinition.outputSchema} — the view reads the result's\n * `structuredContent` typed by this schema.\n */\n view?: ToolViewConfig;\n}\n\n/**\n * Handle returned by {@link MCPServer.tool} — carries the tool name at runtime\n * and phantom input/output types for inference (e.g. `Register` / `useCallTool`).\n */\nexport interface ToolRef<\n Name extends string = string,\n Input = Record<string, unknown>,\n Output = never,\n> {\n /** The tool's registered name. */\n readonly name: Name;\n /**\n * Phantom carrier for the tool's inferred input/output types. Never set at\n * runtime.\n *\n * @internal\n */\n readonly \"~types\"?: { input: Input; output: Output };\n}\n\n/**\n * Result a tool callback may return, keyed by the tool's inferred output\n * type. Completed calls use the SDK's raw {@link CallToolResult}; interactive\n * calls may return an {@link InputRequiredResult}. There is no\n * framework-specific result layer.\n *\n * Without an `outputSchema` (`TOutput = never`) any `CallToolResult` is\n * accepted. With one, the result must carry `structuredContent` matching the\n * schema or set `isError: true` — mirroring the SDK's runtime rule, which\n * rejects results from schema'd tools that carry no structured content\n * unless `isError` is set.\n *\n * The SDK auto-appends a JSON text block when `structuredContent` is a\n * non-object value and no `type: \"text\"` block is present; for object-shaped\n * payloads include the text serialization yourself:\n *\n * ```ts\n * return {\n * content: [{ type: \"text\", text: JSON.stringify(data) }],\n * structuredContent: data,\n * };\n * ```\n */\nexport type ToolResult<TOutput = never> =\n | InputRequiredResult\n | ([TOutput] extends [never]\n ? CallToolResult\n :\n | (CallToolResult & { structuredContent: TOutput })\n | (CallToolResult & { isError: true }));\n\n/** Infer the callback params type from a tool definition's input schema. */\nexport type InferToolInput<T> = T extends {\n inputSchema: infer S extends StandardSchemaWithJSON;\n}\n ? StandardSchemaWithJSON.InferOutput<S> extends Record<string, unknown>\n ? StandardSchemaWithJSON.InferOutput<S>\n : Record<string, unknown>\n : T extends {\n schema: infer S extends StandardSchemaWithJSON;\n }\n ? StandardSchemaWithJSON.InferOutput<S> extends Record<string, unknown>\n ? StandardSchemaWithJSON.InferOutput<S>\n : Record<string, unknown>\n : Record<string, unknown>;\n\n/**\n * Resolve a tool definition's input schema. `inputSchema` wins when both are\n * set.\n *\n * @internal\n */\nexport function resolveToolInputSchema(\n definition: Pick<ToolDefinition, \"inputSchema\" | \"schema\">\n): StandardSchemaWithJSON | undefined {\n return definition.inputSchema ?? definition.schema;\n}\n\n/**\n * Infer the structured output type from a definition's `outputSchema` —\n * any JSON root, not just objects (2026-07-28 protocol); `never` when the\n * definition declares none (any {@link CallToolResult} is then accepted —\n * see {@link ToolResult}).\n */\nexport type InferToolOutput<T> = T extends {\n outputSchema: infer S extends StandardSchemaWithJSON;\n}\n ? StandardSchemaWithJSON.InferOutput<S>\n : never;\n\n/** Infer the literal tool name from a definition's `name` field. */\nexport type InferToolName<T> = T extends { name: infer N extends string }\n ? N\n : string;\n\n/**\n * Tool execution callback. The return type is {@link ToolResult}: tools with\n * an `outputSchema` must return matching `structuredContent` or an `isError`\n * result; tools without one accept any {@link CallToolResult}.\n */\nexport type ToolCallback<\n TInput = Record<string, unknown>,\n TOutput = never,\n TUser = never,\n HasOAuth extends boolean = false,\n> = (\n params: TInput,\n ctx: RequestContext<TUser, HasOAuth>\n) => ToolResult<TOutput> | Promise<ToolResult<TOutput>>;\n"],"mappings":";AAAA,SAAS,kBAA6B;;;ACAtC,OAAO,WAAW;AAyCV,SASE,KATF;AA3BD,IAAM,gBAAN,cAA4B,MAAM,UAGvC;AAAA,EACA,YAAY,OAA2B;AACrC,UAAM,KAAK;AACX,SAAK,QAAQ,EAAE,UAAU,OAAO,OAAO,KAAK;AAAA,EAC9C;AAAA,EAEA,OAAO,yBAAyB,OAAc;AAC5C,WAAO,EAAE,UAAU,MAAM,MAAM;AAAA,EACjC;AAAA,EAES,kBAAkB,OAAc,WAA4B;AACnE,YAAQ,MAAM,yBAAyB,OAAO,SAAS;AACvD,SAAK,MAAM,UAAU,OAAO,SAAS;AAAA,EACvC;AAAA,EAES,SAAS;AAChB,QAAI,KAAK,MAAM,YAAY,KAAK,MAAM,OAAO;AAC3C,UAAI,KAAK,MAAM,aAAa,QAAW;AACrC,eAAO,OAAO,KAAK,MAAM,aAAa,aAClC,KAAK,MAAM,SAAS,KAAK,MAAM,KAAK,IACpC,KAAK,MAAM;AAAA,MACjB;AAEA,aACE;AAAA,QAAC;AAAA;AAAA,UACC,OAAO;AAAA,YACL,SAAS;AAAA,YACT,QAAQ;AAAA,YACR,cAAc;AAAA,YACd,YAAY;AAAA,YACZ,OAAO;AAAA,UACT;AA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OAAO;AAAA,MACtB,QAAQ;AAAA,MAER;AAAA,IACF;AAAA,EACF,GAAG,CAAC,SAAS,IAAI,CAAC;AAElB,EAAAA,WAAU,MAAM;AACd,UAAM,aAAa,cAAc;AAGjC,QAAI,CAAC,WAAY;AACjB,UAAM,UAAU,sBAAsB;AACtC,QACE,SAAS,iBAAiB,cAC1B,QAAQ,UAAU,SAClB,QAAQ,gBAAgB,eACxB,QAAQ,oBAAoB,iBAC5B;AACA;AAAA,IACF;AACA,UAAM,MAAM,cAAc;AAM1B,eAAW,OAAO;AAAA,MAChB,OAAO,IAAI;AAAA,MACX,aAAa,IAAI;AAAA,MACjB,aAAa,IAAI;AAAA,IACnB,CAAgD;AAChD,0BAAsB,UAAU;AAAA,MAC9B,cAAc;AAAA,MACd,OAAO,IAAI;AAAA,MACX,aAAa,IAAI;AAAA,MACjB,iBACE,IAAI,gBAAgB,SAChB,SACA,KAAK,UAAU,IAAI,WAAW;AAAA,IACtC;AAAA,EACF,GAAG,CAAC,OAAO,aAAa,eAAe,CAAC;AAExC,EAAAA,WAAU,MAAM;AACd,UAAM,aAAa,cAAc;AACjC,QAAI,CAAC,cAAc,WAAW,YAAY,QAAS;AACnD,QAAI,SAAS;AACX,iBAAW,OAAO;AAAA,IACpB,OAAO;AACL,iBAAW,QAAQ;AAAA,IACrB;AAAA,EACF,GAAG,CAAC,OAAO,CAAC;AACd;","names":["jsx","app","jsx","jsx","createContext","useContext","jsx","createContext","useContext","React","jsx","React","useState","useSyncExternalStore","useSyncExternalStore","useSyncExternalStore","resolveDisplayMode","useSyncExternalStore","useSyncExternalStore","useSyncExternalStore","Fragment","jsx","jsxs","useState","useRef","useState","useState","useRef","useSyncExternalStore","useSyncExternalStore","useCallback","useCallback","useCallback","useCallback","useSyncExternalStore","useSyncExternalStore","useEffect","useRef","useRef","useEffect"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"public-assets.d.ts","sourceRoot":"","sources":["../../src/react/public-assets.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,IAAI,kBAAkB,EAAE,gBAAgB,GAAG,SAAS,CAAC;CACtD;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,IAAI,MAAM,CAKtC;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAmBhD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"bootstrap-view.d.ts","sourceRoot":"","sources":["../../../src/react/runtime/bootstrap-view.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG3C,OAAO,EAGL,KAAK,UAAU,EAChB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAML,KAAK,oBAAoB,EAC1B,MAAM,mBAAmB,CAAC;AAgE3B,mDAAmD;AACnD,MAAM,WAAW,UAAU;IACzB,qDAAqD;IACrD,OAAO,EAAE,aAAa,CAAC;IACvB;;;;OAIG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,gFAAgF;IAChF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,oBAAoB,CAAC;CAClC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,UAAU,EAClB,OAAO,CAAC,EAAE,oBAAoB,GAC7B,IAAI,CAuDN;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC,CAoBjD;AAED;;GAEG;AACH,wBAAgB,8BAA8B,IAAI,IAAI,CAErD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"model-context-store.d.ts","sourceRoot":"","sources":["../../../src/react/runtime/model-context-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAEjE,UAAU,gBAAgB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;CACjB;AAOD;;;;;;GAMG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,OAAO,EAAE,YAAY,EAAE,CAAC;CACzB;AAED;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,iFAAiF;IACjF,OAAO,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;CACzB;AAUD;;;;;;GAMG;AACH,wBAAgB,iCAAiC,IAAI,OAAO,CAM3D;AAED;;;;;;GAMG;AACH,wBAAgB,4BAA4B,IAAI,IAAI,CAEnD;AAED;;GAEG;AACH,wBAAgB,6CAA6C,IAAI,IAAI,CAEpE;AAED;;;;;;;;GAQG;AACH,qBAAa,iBAAiB;;IAoB5B;;OAEG;IACH,YAAY,IAAI,EAAE,qBAAqB,EAEtC;IAED;;;;OAIG;IACH,OAAO,CAAC,IAAI,EAAE,gBAAgB,GAAG,IAAI,CAKpC;IAED;;;;OAIG;IACH,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAI3B;IAED,sFAAsF;IACtF,KAAK,IAAI,IAAI,CAKZ;IAED;;;OAGG;IACH,OAAO,IAAI,IAAI,CAUd;IAED;;;;OAIG;IACH,sBAAsB,IAAI,MAAM,CAmC/B;IAED;;;;OAIG;IACH,uBAAuB,IAAI,kBAAkB,CAM5C;IAED;;;OAGG;IACH,eAAe,IAAI,IAAI,CAQtB;IAED,2CAA2C;IAC3C,wBAAwB,IAAI,MAAM,CAEjC;CAwEF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"view-config.d.ts","sourceRoot":"","sources":["../../../src/react/runtime/view-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1D;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,UAAU;IACzB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,SAAS,WAAW,EAAE,CAAC;CACvC;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,sEAAsE;IACtE,UAAU,EAAE,OAAO,CAAC;IACpB,iEAAiE;IACjE,YAAY,EAAE,SAAS,WAAW,EAAE,CAAC;CACtC;AAcD;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,CAAC,EAAE,UAAU,GAAG,oBAAoB,CAwC7E"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"view-runtime-context.d.ts","sourceRoot":"","sources":["../../../src/react/runtime/view-runtime-context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAIL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,+CAA4C,CAAC;AAE5E;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,OAAO,EACP,QAAQ,GACT,EAAE;IACD,OAAO,EAAE,aAAa,CAAC;IACvB,QAAQ,EAAE,SAAS,CAAC;CACrB,+BAMA;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,IAAI,aAAa,CAQ9C;AAED;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,IAAI,gBAAgB,GAAG,SAAS,CAMzE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"view-runtime.d.ts","sourceRoot":"","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GAAG,IAAI,CAE9C;AAED,iEAAiE;AACjE,wBAAgB,qBAAqB,IAAI,aAAa,GAAG,IAAI,CAE5D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"file-types.d.ts","sourceRoot":"","sources":["../../../src/react/types/file-types.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,MAAM,MAAM,YAAY,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9C,0CAA0C;AAC1C,MAAM,WAAW,cAAc;IAC7B,6EAA6E;IAC7E,WAAW,EAAE,OAAO,CAAC;IACrB,qCAAqC;IACrC,MAAM,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAC1C,6DAA6D;IAC7D,cAAc,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACtE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"host-types.d.ts","sourceRoot":"","sources":["../../../src/react/types/host-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,gBAAgB,EACjB,MAAM,gCAAgC,CAAC;AAExC;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC,CAAC;AAE7E;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,qBAAqB,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,gBAAgB,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,YAAY,GAAG,KAAK,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../src/react/types/register.ts"],"names":[],"mappings":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AE,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,GACtC,MAAM,GAAG,SAAS,CA0BpB;AAED;;;;;;GAMG;AACH,qBAAa,SAAU,SAAQ,KAAK;IAClC,uDAAuD;IACvD,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG;QAAE,OAAO,EAAE,IAAI,CAAA;KAAE,CAAC;IAEpD;;OAEG;IACH,YAAY,MAAM,EAAE,cAAc,GAAG;QAAE,OAAO,EAAE,IAAI,CAAA;KAAE,EAIrD;CACF;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,eAAe,CAAC,MAAM,IAAI,cAAc,GAAG;IACrD,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB,GAAG,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,OAAO,GAAG;IAAE,iBAAiB,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"resource-completion.d.ts","sourceRoot":"","sources":["../src/resource-completion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,8BAA8B,CAAC;AAGrF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAEhE;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAClC,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,yBAAyB,GAAG,SAAS,CAAC,CAAC,GAC3E,MAAM,CAAC,MAAM,EAAE,gCAAgC,CAAC,CAYlD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../src/resources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,gCAAgC,EAChC,UAAU,EACV,kBAAkB,EACnB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EAAE,cAAc,EAAE,M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AE,OAAO,CAAC,EAChC,OAAO,GAAG,KAAK,EACf,KAAK,GAAG,KAAK,EACb,QAAQ,SAAS,OAAO,GAAG,KAAK,IAC9B,CACF,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,cAAc,CAAC,KAAK,EAAE,QAAQ,CAAC,KACjC,UAAU,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../src/views/capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,8BAA8B,CAAC;AAOtC;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,kBAAkB,GAC/B,IAAI,CAEN;AAED;;;;GAIG;AACH,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,OAAO,GAAG,SAAS,GAC3B,kBAAkB,GAAG,SAAS,CAKhC;AAED;;;;GAIG;AACH,wBAAgB,iCAAiC,CAC/C,IAAI,EAAE,OAAO,GACZ,kBAAkB,GAAG,SAAS,CAmBhC;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAC3B,YAAY,EAAE,kBAAkB,GAAG,SAAS,GAC3C,OAAO,CAcT"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/views/constants.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,eAAO,MAAM,eAAe,EAAG,4BAAqC,CAAC;AAErE,4CAA4C;AAC5C,eAAO,MAAM,YAAY,EAAG,2BAAoC,CAAC;AAEjE,uEAAuE;AACvE,eAAO,MAAM,sBAAsB,EAAG,aAAsB,CAAC;AAE7D,iEAAiE;AACjE,eAAO,MAAM,WAAW,EAAG,IAAa,CAAC;AAEzC,oFAAoF;AACpF,eAAO,MAAM,wBAAwB,EAAG,gBAAyB,CAAC;AAElE;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAExD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"csp-env.d.ts","sourceRoot":"","sources":["../../src/views/csp-env.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAEvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,KAAK,WAAW,GACZ,gBAAgB,GAChB,iBAAiB,GACjB,cAAc,GACd,gBAAgB,CAAC;AASrB,6EAA6E;AAC7E,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,EAAE,CAQjE;AAaD,6DAA6D;AAC7D,wBAAgB,mBAAmB,IAAI,MAAM,EAAE,CAE9C;AAED,+EAA+E;AAC/E,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,WAAW,GAAG,MAAM,EAAE,CAMzE;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,QAAQ,EAAE,MAAM,EAAE,EAAE,GAAG,MAAM,EAAE,CAYlE;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,wEAAwE;IACxE,YAAY,EAAE,MAAM,CAAC;IACrB,wEAAwE;IACxE,YAAY,EAAE,MAAM,CAAC;IACrB,qFAAqF;IACrF,kBAAkB,EAAE,OAAO,CAAC;IAC5B,4EAA4E;IAC5E,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAYD;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,iBAAiB,GAAG,SAAS,EAC1C,OAAO,EAAE,eAAe,GACvB,gBAAgB,CAgDlB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../src/views/document.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD;;;;;;;;;;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eAAe,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAC/E,OAAO,EACL,iCAAiC,EACjC,4BAA4B,EAC5B,uBAAuB,EACvB,aAAa,GACd,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,EACf,kBAAkB,EAClB,KAAK,0BAA0B,GAChC,MAAM,WAAW,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"origin.d.ts","sourceRoot":"","sources":["../../src/views/origin.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,gDAAgD;AAChD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE1D;AA6BD;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAwBxE;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAU5D;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAM/D;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAU1D;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAE7D;AAED;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,OAAO,CAW/C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"public-route.d.ts","sourceRoot":"","sources":["../../src/views/public-route.ts"],"names":[],"mappings":"AAkBA;;;;;;;;;GASG;AACH,wBAAsB,qBAAqB,CACzC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAoBxB;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,eAAe,CACnC,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE;IAAE,SAAS,CAAC,EAAE,OAAO,CAAA;CAAO,GACpC,OAAO,CAAC,QAAQ,CAAC,CAmBnB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../src/views/register.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD;;;;;GAKG;AACH,eAAO,MAAM,aAAa,EAAE,OAAO,MAAwC,CAAC;AAE5E;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IACd;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,qEAAqE;AACrE,MAAM,MAAM,aAAa,GAAG,CAC1B,KAAK,EAAE,aAAa,EACpB,OAAO,CAAC,EAAE,oBAAoB,KAC3B,IAAI,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../src/views/routes.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,YAAY,EAClB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAMpD;;;;;;;;;;;GAWG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,iBAAiB,CAAC,EAC7C,OAAO,CAAC,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,GACtD,YAAY,GAAG,SAAS,CA0C1B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,WAA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