@highstate/designer 0.20.0 → 0.26.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 (240) hide show
  1. package/.output/nitro.json +4 -4
  2. package/.output/public/_nuxt/{BkNNRtnm.js → -aI73seg.js} +1 -1
  3. package/.output/public/_nuxt/32ctXXKs.js +1 -0
  4. package/.output/public/_nuxt/39D0VL7r.js +1 -0
  5. package/.output/public/_nuxt/{ByBNG4eo.js → 3T5CmBSF.js} +1 -1
  6. package/.output/public/_nuxt/4R6BJ3GI.js +1 -0
  7. package/.output/public/_nuxt/77UvFSdd.js +18 -0
  8. package/.output/public/_nuxt/{G13IRnB2.js → B0E2rEnI.js} +1 -1
  9. package/.output/public/_nuxt/B1x03f8R.js +1 -0
  10. package/.output/public/_nuxt/B2CVdECd.js +1 -0
  11. package/.output/public/_nuxt/{DWQRqdcR.js → B2_u9ZKl.js} +1 -1
  12. package/.output/public/_nuxt/{DCR009rv.js → B8uKU-iG.js} +1 -1
  13. package/.output/public/_nuxt/{CxEW7TG8.js → B9BJCsIg.js} +1 -1
  14. package/.output/public/_nuxt/BA47KaF1.js +1 -0
  15. package/.output/public/_nuxt/{DRfxs3PN.js → BBmoak6l.js} +1 -1
  16. package/.output/public/_nuxt/BEOSfHJT.js +1 -0
  17. package/.output/public/_nuxt/{D2aToa54.js → BJV0IIsR.js} +1 -1
  18. package/.output/public/_nuxt/{DCBCRx0O.js → BKaSp7fy.js} +1 -1
  19. package/.output/public/_nuxt/BN7gUcg9.js +1 -0
  20. package/.output/public/_nuxt/{DiTMzCP2.js → BOujskTX.js} +1 -1
  21. package/.output/public/_nuxt/{DJN0y8jO.js → BPboW4rx.js} +1 -1
  22. package/.output/public/_nuxt/{DzWdbJvx.js → BR4jrf3-.js} +1 -1
  23. package/.output/public/_nuxt/{9I37tBe7.js → BSRetNRl.js} +1 -1
  24. package/.output/public/_nuxt/{C1FLL1Qz.js → Ba9NwIJp.js} +1 -1
  25. package/.output/public/_nuxt/{DCinzvm1.js → BbWhHw7B.js} +1 -1
  26. package/.output/public/_nuxt/Bcyj9glE.js +6 -0
  27. package/.output/public/_nuxt/{xA6NntuA.js → Be4ezMZK.js} +1 -1
  28. package/.output/public/_nuxt/BeH2EWoN.js +1 -0
  29. package/.output/public/_nuxt/{CudFwYib.js → BgvYz3Nr.js} +1 -1
  30. package/.output/public/_nuxt/BlGDdimO.js +1 -0
  31. package/.output/public/_nuxt/{ZbicA1ry.js → Bn5R9WlL.js} +1 -1
  32. package/.output/public/_nuxt/{ChaZkl1J.js → BqJDg8iS.js} +1 -1
  33. package/.output/public/_nuxt/BxD6MFcJ.js +1 -0
  34. package/.output/public/_nuxt/{D27ZAKIj.js → BxvmPvww.js} +1 -1
  35. package/.output/public/_nuxt/{BEEt8Am7.js → By1Fxx6d.js} +1 -1
  36. package/.output/public/_nuxt/{xdsXwj_J.js → ByBXn3Vz.js} +1 -1
  37. package/.output/public/_nuxt/C1bzPMRu.js +14 -0
  38. package/.output/public/_nuxt/{CV5MeYf9.js → C29gnYT3.js} +1 -1
  39. package/.output/public/_nuxt/C5BYcBs_.js +1 -0
  40. package/.output/public/_nuxt/{ziXKbM2N.js → C5DRPdxC.js} +1 -1
  41. package/.output/public/_nuxt/{BJK6uMxG.js → C794qwo0.js} +1 -1
  42. package/.output/public/_nuxt/{RCBWmVHz.js → C9OJ0gQB.js} +1 -1
  43. package/.output/public/_nuxt/{B13uiJCv.js → C9n5vGW7.js} +1 -1
  44. package/.output/public/_nuxt/{rcFevLEP.js → CCBTuGSI.js} +2 -2
  45. package/.output/public/_nuxt/CENFIVCM.js +1 -0
  46. package/.output/public/_nuxt/{CzSiA7V6.js → CGLWlIpJ.js} +1 -1
  47. package/.output/public/_nuxt/CI40hKzv.js +2 -0
  48. package/.output/public/_nuxt/{CcOKGYBt.js → CLsyMJ1X.js} +1 -1
  49. package/.output/public/_nuxt/{CaJ-zn_Z.js → CNWyx-82.js} +1 -1
  50. package/.output/public/_nuxt/CRZrAKrA.js +2 -0
  51. package/.output/public/_nuxt/{BxaP9l2T.js → CRb2z3Pg.js} +1 -1
  52. package/.output/public/_nuxt/{BDAHnC4j.js → CWA5Cfde.js} +1 -1
  53. package/.output/public/_nuxt/CYpkKp66.js +1 -0
  54. package/.output/public/_nuxt/{n0RAZLbO.js → C_yayEmb.js} +1 -1
  55. package/.output/public/_nuxt/{rgN_MdZl.js → CaZj7sno.js} +1 -1
  56. package/.output/public/_nuxt/{CGscLIrv.js → CgK0fS9t.js} +1 -1
  57. package/.output/public/_nuxt/CiaugisX.js +1 -0
  58. package/.output/public/_nuxt/Cjs5trkS.js +1 -0
  59. package/.output/public/_nuxt/Cn-bp-IR.js +1 -0
  60. package/.output/public/_nuxt/CoqwalnO.js +2 -0
  61. package/.output/public/_nuxt/{d-NZQb9b.js → CscXh7Vy.js} +1 -1
  62. package/.output/public/_nuxt/{DQHHT9y-.js → CwWsKBf5.js} +1 -1
  63. package/.output/public/_nuxt/Cwefpg1x.js +1 -0
  64. package/.output/public/_nuxt/CxoCegAs.js +13 -0
  65. package/.output/public/_nuxt/{8MSfy8uY.js → CyFj-Mv9.js} +1 -1
  66. package/.output/public/_nuxt/Cz2AlsmD.js +1 -0
  67. package/.output/public/_nuxt/{tsyQDnRt.js → D1BdWMiq.js} +1 -1
  68. package/.output/public/_nuxt/D1yXAE_w.js +1 -0
  69. package/.output/public/_nuxt/{xp27HhqZ.js → D2lHwbtX.js} +1 -1
  70. package/.output/public/_nuxt/{DKhcu7kD.js → D46u9gXN.js} +1 -1
  71. package/.output/public/_nuxt/{CJWmG4YP.js → D4H6aUyZ.js} +7 -7
  72. package/.output/public/_nuxt/{Dg5xB15N.js → D82vCrfD.js} +1 -1
  73. package/.output/public/_nuxt/D8l8udqQ.js +1 -0
  74. package/.output/public/_nuxt/D9ITfHnZ.js +269 -0
  75. package/.output/public/_nuxt/{RNghxpo_.js → DDvzSYfr.js} +1 -1
  76. package/.output/public/_nuxt/{Aopv2gwH.js → DFwfZeyL.js} +1 -1
  77. package/.output/public/_nuxt/{GgtqCdye.js → DMM9kDc1.js} +1 -1
  78. package/.output/public/_nuxt/{DOPqH6_T.js → DNVXBFXP.js} +1 -1
  79. package/.output/public/_nuxt/DPOp833l.js +1 -0
  80. package/.output/public/_nuxt/{D2obegTF.js → DPQHj1GW.js} +1 -1
  81. package/.output/public/_nuxt/DRJZaHtK.js +1 -0
  82. package/.output/public/_nuxt/{BlfjmxyP.js → DRTFVhVr.js} +1 -1
  83. package/.output/public/_nuxt/{TsXTqZ29.js → DSeZwD4N.js} +1 -1
  84. package/.output/public/_nuxt/{C8lm7lgC.js → DTYY2tCY.js} +1 -1
  85. package/.output/public/_nuxt/{DWa2aw6r.js → DVKmRHSk.js} +1 -1
  86. package/.output/public/_nuxt/DYE7WIF3.js +1 -0
  87. package/.output/public/_nuxt/{D-wGZMZP.js → DYYyOkJe.js} +1 -1
  88. package/.output/public/_nuxt/{BCVaR2pQ.js → DcV32yum.js} +1 -1
  89. package/.output/public/_nuxt/DdhYQ3Tv.js +1 -0
  90. package/.output/public/_nuxt/DgsIRcX7.js +1 -0
  91. package/.output/public/_nuxt/{BtvRca6l.js → DjAJT7YJ.js} +1 -1
  92. package/.output/public/_nuxt/DmMgvbsF.js +1 -0
  93. package/.output/public/_nuxt/{pxXmJ8QX.js → DrQCNsTo.js} +1 -1
  94. package/.output/public/_nuxt/{DNqd6Nek.js → DvCXikgN.js} +1 -1
  95. package/.output/public/_nuxt/DzQULtcW.js +1 -0
  96. package/.output/public/_nuxt/{Cm-2nZ05.js → DzowYWbi.js} +1 -1
  97. package/.output/public/_nuxt/{DQwYQDb2.js → FtFNcQmh.js} +1 -1
  98. package/.output/public/_nuxt/{BPcwi1q2.js → I4u-TRO-.js} +1 -1
  99. package/.output/public/_nuxt/{D5z-4QVk.js → O3nsZ-Uz.js} +1 -1
  100. package/.output/public/_nuxt/Qj4UhtaN.js +1 -0
  101. package/.output/public/_nuxt/{BA0jw7CM.js → VF7GAmoY.js} +1 -1
  102. package/.output/public/_nuxt/Ve4PFQV2.js +1 -0
  103. package/.output/public/_nuxt/{xrNU8mHG.js → YpnHruhZ.js} +1 -1
  104. package/.output/public/_nuxt/_H4v1dQx.js +1 -0
  105. package/.output/public/_nuxt/_pageId_.C5KTkEfy.css +1 -0
  106. package/.output/public/_nuxt/_panelId_.CKSHyLNC.css +1 -0
  107. package/.output/public/_nuxt/builds/latest.json +1 -1
  108. package/.output/public/_nuxt/builds/meta/53add2c3-4d7c-4a4f-a116-e73c3787cf98.json +1 -0
  109. package/.output/public/_nuxt/components.a-P9dVi2.css +1 -0
  110. package/.output/public/_nuxt/{entry.Bc0aTA0K.css → entry.DsBbjDm-.css} +1 -1
  111. package/.output/public/_nuxt/eo99z4R2.js +1 -0
  112. package/.output/public/_nuxt/error-404.DnBTUElh.css +1 -0
  113. package/.output/public/_nuxt/error-500.BNyYF0qG.css +1 -0
  114. package/.output/public/_nuxt/{BUNf2Yb8.js → fbfpKHgl.js} +1 -1
  115. package/.output/public/_nuxt/{BDs6uo3D.js → fxmP1KZw.js} +1 -1
  116. package/.output/public/_nuxt/graph-resolver-DhjyrFRu.js +180 -0
  117. package/.output/public/_nuxt/{mUFnM-_q.js → hunqYsQf.js} +1 -1
  118. package/.output/public/_nuxt/iJghVVcV.js +1 -0
  119. package/.output/public/_nuxt/{DyMmfYiE.js → m4Sxwg8n.js} +1 -1
  120. package/.output/public/_nuxt/monaco-editor.DOXZIHvr.css +1 -0
  121. package/.output/public/_nuxt/oH_c3LbQ.js +1 -0
  122. package/.output/public/_nuxt/rZm6bMo-.js +1 -0
  123. package/.output/public/_nuxt/{DOMRsNpU.js → rpHuDh4d.js} +1 -1
  124. package/.output/public/_nuxt/{vuetify.BzdWZaIq.css → vuetify.DtnS3-VQ.css} +1 -1
  125. package/.output/public/_nuxt/{yaml.worker-C1Cl1y5J.js → yaml.worker-CYOhFCVP.js} +248 -252
  126. package/.output/server/index.mjs +3272 -7573
  127. package/.output/server/index.mjs.map +1 -1
  128. package/.output/server/node_modules/@babel/parser/lib/index.js +1 -1
  129. package/.output/server/node_modules/@babel/parser/package.json +1 -1
  130. package/.output/server/node_modules/@trpc/server/dist/adapters/fetch/index.cjs +57 -0
  131. package/.output/server/node_modules/@trpc/server/dist/adapters/fetch/index.mjs +2 -2
  132. package/.output/server/node_modules/@trpc/server/dist/codes-BfZsPdy-.cjs +222 -0
  133. package/.output/server/node_modules/@trpc/server/dist/{contentTypeParsers-SN4WL9ze.mjs → contentTypeParsers-iAFF_pJG.cjs} +7 -2
  134. package/.output/server/node_modules/@trpc/server/dist/getErrorShape-MR4DZeb7.cjs +341 -0
  135. package/.output/server/node_modules/@trpc/server/dist/http.cjs +14 -0
  136. package/.output/server/node_modules/@trpc/server/dist/index.cjs +22 -0
  137. package/.output/server/node_modules/@trpc/server/dist/index.mjs +2 -2
  138. package/.output/server/node_modules/@trpc/server/dist/{initTRPC-RoZMIBeA.mjs → initTRPC-B1ggxyJl.mjs} +2 -2
  139. package/.output/server/node_modules/@trpc/server/dist/initTRPC-BXPPV9Tx.cjs +416 -0
  140. package/.output/server/node_modules/@trpc/server/dist/observable/index.cjs +13 -0
  141. package/.output/server/node_modules/@trpc/server/dist/observable-B1Nk6r1H.cjs +181 -0
  142. package/.output/server/node_modules/@trpc/server/dist/{observable-CUiPknO-.mjs → observable-BVzLuBs6.cjs} +42 -8
  143. package/.output/server/node_modules/@trpc/server/dist/{parseTRPCMessage-CTow-umk.mjs → parseTRPCMessage-7Ltmq-Fb.cjs} +14 -4
  144. package/.output/server/node_modules/@trpc/server/dist/resolveResponse-B0CCg8nq.cjs +2365 -0
  145. package/.output/server/node_modules/@trpc/server/dist/{resolveResponse-BVDlNZwN.mjs → resolveResponse-C5I6V_wc.mjs} +67 -18
  146. package/.output/server/node_modules/@trpc/server/dist/rpc.cjs +6 -0
  147. package/.output/server/node_modules/@trpc/server/dist/{tracked-Bjtgv3wJ.mjs → tracked-DiE3uR1B.mjs} +12 -3
  148. package/.output/server/node_modules/@trpc/server/dist/tracked-Dj_dpOJE.cjs +486 -0
  149. package/.output/server/node_modules/@trpc/server/package.json +15 -5
  150. package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +2 -2
  151. package/.output/server/node_modules/@vue/compiler-core/package.json +3 -3
  152. package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +1 -1
  153. package/.output/server/node_modules/@vue/compiler-dom/package.json +3 -3
  154. package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1 -1
  155. package/.output/server/node_modules/@vue/compiler-ssr/package.json +3 -3
  156. package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +31 -13
  157. package/.output/server/node_modules/@vue/reactivity/package.json +2 -2
  158. package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +144 -81
  159. package/.output/server/node_modules/@vue/runtime-core/package.json +3 -3
  160. package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +70 -9
  161. package/.output/server/node_modules/@vue/runtime-dom/package.json +4 -4
  162. package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +6 -2
  163. package/.output/server/node_modules/@vue/server-renderer/package.json +4 -4
  164. package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +1 -1
  165. package/.output/server/node_modules/@vue/shared/package.json +1 -1
  166. package/.output/server/node_modules/devalue/package.json +5 -2
  167. package/.output/server/node_modules/devalue/src/base64.js +46 -96
  168. package/.output/server/node_modules/devalue/src/parse.js +32 -10
  169. package/.output/server/node_modules/devalue/src/stringify.js +13 -28
  170. package/.output/server/node_modules/devalue/src/uneval.js +117 -55
  171. package/.output/server/node_modules/devalue/src/utils.js +3 -7
  172. package/.output/server/node_modules/hookable/dist/index.mjs +5 -14
  173. package/.output/server/node_modules/hookable/package.json +24 -23
  174. package/.output/server/node_modules/trpc-bun-adapter/dist/index.js +406 -0
  175. package/.output/server/node_modules/trpc-bun-adapter/package.json +44 -0
  176. package/.output/server/node_modules/unhead/dist/plugins.mjs +3 -3
  177. package/.output/server/node_modules/unhead/dist/server.mjs +2 -2
  178. package/.output/server/node_modules/unhead/dist/shared/{unhead.eK9_7LaY.mjs → unhead.B5FWS6X0.mjs} +22 -13
  179. package/.output/server/node_modules/unhead/dist/shared/{unhead.BFfcxOoW.mjs → unhead.Ct24BOby.mjs} +4 -2
  180. package/.output/server/node_modules/unhead/dist/shared/unhead.D4vSFytZ.mjs +236 -0
  181. package/.output/server/node_modules/unhead/dist/shared/{unhead.ckV6dpEQ.mjs → unhead.TxTMM7cM.mjs} +1 -1
  182. package/.output/server/node_modules/unhead/dist/utils.mjs +1 -1
  183. package/.output/server/node_modules/unhead/package.json +1 -1
  184. package/.output/server/node_modules/vue/dist/vue.cjs.js +1 -1
  185. package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +1 -1
  186. package/.output/server/node_modules/vue/package.json +7 -7
  187. package/.output/server/node_modules/ws/lib/permessage-deflate.js +6 -6
  188. package/.output/server/node_modules/ws/lib/websocket-server.js +5 -5
  189. package/.output/server/node_modules/ws/lib/websocket.js +6 -6
  190. package/.output/server/node_modules/ws/package.json +4 -3
  191. package/.output/server/node_modules/ws/wrapper.mjs +14 -1
  192. package/.output/server/package.json +17 -16
  193. package/package.json +20 -14
  194. package/.output/public/_nuxt/57B6Rca8.js +0 -1
  195. package/.output/public/_nuxt/83L43bj1.js +0 -1
  196. package/.output/public/_nuxt/B8nw2aST.js +0 -2
  197. package/.output/public/_nuxt/B93PlW-d.js +0 -1
  198. package/.output/public/_nuxt/BDa1f6PF.js +0 -2
  199. package/.output/public/_nuxt/BE_Meo09.js +0 -269
  200. package/.output/public/_nuxt/BLF3u89x.js +0 -1
  201. package/.output/public/_nuxt/Ba13S78F.js +0 -1
  202. package/.output/public/_nuxt/BhRPY-oY.js +0 -1
  203. package/.output/public/_nuxt/Bhrxn6JZ.js +0 -1
  204. package/.output/public/_nuxt/Bo8jzlL1.js +0 -18
  205. package/.output/public/_nuxt/BpkvlDNi.js +0 -1
  206. package/.output/public/_nuxt/BrzmwbiE.js +0 -1
  207. package/.output/public/_nuxt/BuJgCY_C.js +0 -1
  208. package/.output/public/_nuxt/C-sUppwS.js +0 -1
  209. package/.output/public/_nuxt/C47S-Tmv.js +0 -1
  210. package/.output/public/_nuxt/CMjwMIkn.js +0 -1
  211. package/.output/public/_nuxt/CPZSvMBB.js +0 -1
  212. package/.output/public/_nuxt/CPpO8vcZ.js +0 -1
  213. package/.output/public/_nuxt/CQ8jqdy-.js +0 -1
  214. package/.output/public/_nuxt/CjoLj4QM.js +0 -1
  215. package/.output/public/_nuxt/D6fh7rEe.js +0 -2
  216. package/.output/public/_nuxt/D91rOou-.js +0 -13
  217. package/.output/public/_nuxt/DMwsHuHA.js +0 -1
  218. package/.output/public/_nuxt/DYoxhk2S.js +0 -1
  219. package/.output/public/_nuxt/Dbwml2gB.js +0 -1
  220. package/.output/public/_nuxt/DsS90Fp6.js +0 -1
  221. package/.output/public/_nuxt/Dv7Oe6Be.js +0 -1
  222. package/.output/public/_nuxt/DxERyYWQ.js +0 -1
  223. package/.output/public/_nuxt/GDxZ_Nvm.js +0 -14
  224. package/.output/public/_nuxt/VCDPK7BO.js +0 -1
  225. package/.output/public/_nuxt/builds/meta/a1fec520-0c95-4ae0-af5e-964780fad341.json +0 -1
  226. package/.output/public/_nuxt/components.CIe9upZ4.css +0 -1
  227. package/.output/public/_nuxt/error-404.X7H_YhdC.css +0 -1
  228. package/.output/public/_nuxt/error-500.BOQe1fsk.css +0 -1
  229. package/.output/public/_nuxt/f3TOpYbw.js +0 -1
  230. package/.output/public/_nuxt/graph-resolver-DKNtntr2.js +0 -180
  231. package/.output/public/_nuxt/monaco-editor.D_J4ItrK.css +0 -1
  232. package/.output/public/_nuxt/o_m1mZtJ.js +0 -6
  233. package/.output/server/node_modules/@trpc/server/dist/adapters/ws.mjs +0 -15
  234. package/.output/server/node_modules/@trpc/server/dist/node-http-DtA2iLK9.mjs +0 -224
  235. package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import-9NNw8uQM.mjs +0 -31
  236. package/.output/server/node_modules/@trpc/server/dist/ws-CJgZE7Hg.mjs +0 -460
  237. package/.output/server/node_modules/unhead/dist/shared/unhead.CApf5sj3.mjs +0 -148
  238. package/LICENSE +0 -21
  239. /package/.output/public/_nuxt/{XEA9GSJd.js → B69Z0Xk1.js} +0 -0
  240. /package/.output/server/node_modules/@trpc/server/dist/{http-CWyjOa1l.mjs → http-DXy3XyhL.cjs} +0 -0
@@ -0,0 +1,486 @@
1
+ const require_getErrorShape = require('./getErrorShape-MR4DZeb7.cjs');
2
+ const require_codes = require('./codes-BfZsPdy-.cjs');
3
+
4
+ //#region src/unstable-core-do-not-import/error/formatter.ts
5
+ const defaultFormatter = ({ shape }) => {
6
+ return shape;
7
+ };
8
+
9
+ //#endregion
10
+ //#region src/unstable-core-do-not-import/error/TRPCError.ts
11
+ var import_defineProperty = require_getErrorShape.__toESM(require_getErrorShape.require_defineProperty(), 1);
12
+ var UnknownCauseError = class extends Error {
13
+ constructor(cause) {
14
+ super(getMessage(cause));
15
+ Object.assign(this, cause);
16
+ }
17
+ };
18
+ function getMessage(cause) {
19
+ if ("message" in cause) return String(cause.message);
20
+ return void 0;
21
+ }
22
+ function getCauseFromUnknown(cause) {
23
+ if (cause instanceof Error) return cause;
24
+ const type = typeof cause;
25
+ if (type === "undefined" || type === "function" || cause === null) return void 0;
26
+ if (type !== "object") return new Error(String(cause));
27
+ if (require_codes.isObject(cause)) return new UnknownCauseError(cause);
28
+ return void 0;
29
+ }
30
+ function getTRPCErrorFromUnknown(cause) {
31
+ if (cause instanceof TRPCError) return cause;
32
+ if (cause instanceof Error && cause.name === "TRPCError") return cause;
33
+ const trpcError = new TRPCError({
34
+ code: "INTERNAL_SERVER_ERROR",
35
+ cause
36
+ });
37
+ if (cause instanceof Error && cause.stack) trpcError.stack = cause.stack;
38
+ return trpcError;
39
+ }
40
+ var TRPCError = class extends Error {
41
+ constructor(opts) {
42
+ var _ref, _opts$message, _this$cause;
43
+ const cause = getCauseFromUnknown(opts.cause);
44
+ const message = (_ref = (_opts$message = opts.message) !== null && _opts$message !== void 0 ? _opts$message : cause === null || cause === void 0 ? void 0 : cause.message) !== null && _ref !== void 0 ? _ref : opts.code;
45
+ super(message, { cause });
46
+ (0, import_defineProperty.default)(this, "cause", void 0);
47
+ (0, import_defineProperty.default)(this, "code", void 0);
48
+ this.code = opts.code;
49
+ this.name = "TRPCError";
50
+ (_this$cause = this.cause) !== null && _this$cause !== void 0 || (this.cause = cause);
51
+ }
52
+ };
53
+
54
+ //#endregion
55
+ //#region src/unstable-core-do-not-import/transformer.ts
56
+ var import_objectSpread2$1 = require_getErrorShape.__toESM(require_getErrorShape.require_objectSpread2(), 1);
57
+ /**
58
+ * @internal
59
+ */
60
+ function getDataTransformer(transformer) {
61
+ if ("input" in transformer) return transformer;
62
+ return {
63
+ input: transformer,
64
+ output: transformer
65
+ };
66
+ }
67
+ /**
68
+ * @internal
69
+ */
70
+ const defaultTransformer = {
71
+ input: {
72
+ serialize: (obj) => obj,
73
+ deserialize: (obj) => obj
74
+ },
75
+ output: {
76
+ serialize: (obj) => obj,
77
+ deserialize: (obj) => obj
78
+ }
79
+ };
80
+ function transformTRPCResponseItem(config, item) {
81
+ if ("error" in item) return (0, import_objectSpread2$1.default)((0, import_objectSpread2$1.default)({}, item), {}, { error: config.transformer.output.serialize(item.error) });
82
+ if ("data" in item.result) return (0, import_objectSpread2$1.default)((0, import_objectSpread2$1.default)({}, item), {}, { result: (0, import_objectSpread2$1.default)((0, import_objectSpread2$1.default)({}, item.result), {}, { data: config.transformer.output.serialize(item.result.data) }) });
83
+ return item;
84
+ }
85
+ /**
86
+ * Takes a unserialized `TRPCResponse` and serializes it with the router's transformers
87
+ **/
88
+ function transformTRPCResponse(config, itemOrItems) {
89
+ return Array.isArray(itemOrItems) ? itemOrItems.map((item) => transformTRPCResponseItem(config, item)) : transformTRPCResponseItem(config, itemOrItems);
90
+ }
91
+ /** @internal */
92
+ function transformResultInner(response, transformer) {
93
+ if ("error" in response) {
94
+ const error = transformer.deserialize(response.error);
95
+ return {
96
+ ok: false,
97
+ error: (0, import_objectSpread2$1.default)((0, import_objectSpread2$1.default)({}, response), {}, { error })
98
+ };
99
+ }
100
+ const result = (0, import_objectSpread2$1.default)((0, import_objectSpread2$1.default)({}, response.result), (!response.result.type || response.result.type === "data") && {
101
+ type: "data",
102
+ data: transformer.deserialize(response.result.data)
103
+ });
104
+ return {
105
+ ok: true,
106
+ result
107
+ };
108
+ }
109
+ var TransformResultError = class extends Error {
110
+ constructor() {
111
+ super("Unable to transform response from server");
112
+ }
113
+ };
114
+ /**
115
+ * Transforms and validates that the result is a valid TRPCResponse
116
+ * @internal
117
+ */
118
+ function transformResult(response, transformer) {
119
+ let result;
120
+ try {
121
+ result = transformResultInner(response, transformer);
122
+ } catch (_unused) {
123
+ throw new TransformResultError();
124
+ }
125
+ if (!result.ok && (!require_codes.isObject(result.error.error) || typeof result.error.error["code"] !== "number")) throw new TransformResultError();
126
+ if (result.ok && !require_codes.isObject(result.result)) throw new TransformResultError();
127
+ return result;
128
+ }
129
+
130
+ //#endregion
131
+ //#region src/unstable-core-do-not-import/router.ts
132
+ var import_objectSpread2 = require_getErrorShape.__toESM(require_getErrorShape.require_objectSpread2(), 1);
133
+ /**
134
+ * @internal
135
+ */
136
+ const lazyMarker = "lazyMarker";
137
+ function once(fn) {
138
+ const uncalled = Symbol();
139
+ let result = uncalled;
140
+ return () => {
141
+ if (result === uncalled) result = fn();
142
+ return result;
143
+ };
144
+ }
145
+ /**
146
+ * Lazy load a router
147
+ * @see https://trpc.io/docs/server/merging-routers#lazy-load
148
+ */
149
+ function lazy(importRouter) {
150
+ async function resolve() {
151
+ const mod = await importRouter();
152
+ if (isRouter(mod)) return mod;
153
+ const routers = Object.values(mod);
154
+ if (routers.length !== 1 || !isRouter(routers[0])) throw new Error("Invalid router module - either define exactly 1 export or return the router directly.\nExample: `lazy(() => import('./slow.js').then((m) => m.slowRouter))`");
155
+ return routers[0];
156
+ }
157
+ resolve[lazyMarker] = true;
158
+ return resolve;
159
+ }
160
+ function isLazy(input) {
161
+ return typeof input === "function" && lazyMarker in input;
162
+ }
163
+ function isRouter(value) {
164
+ return require_codes.isObject(value) && require_codes.isObject(value["_def"]) && "router" in value["_def"];
165
+ }
166
+ const emptyRouter = {
167
+ _ctx: null,
168
+ _errorShape: null,
169
+ _meta: null,
170
+ queries: {},
171
+ mutations: {},
172
+ subscriptions: {},
173
+ errorFormatter: defaultFormatter,
174
+ transformer: defaultTransformer
175
+ };
176
+ /**
177
+ * Reserved words that can't be used as router or procedure names
178
+ */
179
+ const reservedWords = [
180
+ "then",
181
+ "call",
182
+ "apply"
183
+ ];
184
+ /**
185
+ * @internal
186
+ */
187
+ function createRouterFactory(config) {
188
+ function createRouterInner(input) {
189
+ const reservedWordsUsed = new Set(Object.keys(input).filter((v) => reservedWords.includes(v)));
190
+ if (reservedWordsUsed.size > 0) throw new Error("Reserved words used in `router({})` call: " + Array.from(reservedWordsUsed).join(", "));
191
+ const procedures = require_codes.emptyObject();
192
+ const lazy$1 = require_codes.emptyObject();
193
+ function createLazyLoader(opts) {
194
+ return {
195
+ ref: opts.ref,
196
+ load: once(async () => {
197
+ const router$1 = await opts.ref();
198
+ const lazyPath = [...opts.path, opts.key];
199
+ const lazyKey = lazyPath.join(".");
200
+ opts.aggregate[opts.key] = step(router$1._def.record, lazyPath);
201
+ delete lazy$1[lazyKey];
202
+ for (const [nestedKey, nestedItem] of Object.entries(router$1._def.lazy)) {
203
+ const nestedRouterKey = [...lazyPath, nestedKey].join(".");
204
+ lazy$1[nestedRouterKey] = createLazyLoader({
205
+ ref: nestedItem.ref,
206
+ path: lazyPath,
207
+ key: nestedKey,
208
+ aggregate: opts.aggregate[opts.key]
209
+ });
210
+ }
211
+ })
212
+ };
213
+ }
214
+ function step(from, path = []) {
215
+ const aggregate = require_codes.emptyObject();
216
+ for (const [key, item] of Object.entries(from !== null && from !== void 0 ? from : {})) {
217
+ if (isLazy(item)) {
218
+ lazy$1[[...path, key].join(".")] = createLazyLoader({
219
+ path,
220
+ ref: item,
221
+ key,
222
+ aggregate
223
+ });
224
+ continue;
225
+ }
226
+ if (isRouter(item)) {
227
+ aggregate[key] = step(item._def.record, [...path, key]);
228
+ continue;
229
+ }
230
+ if (!isProcedure(item)) {
231
+ aggregate[key] = step(item, [...path, key]);
232
+ continue;
233
+ }
234
+ const newPath = [...path, key].join(".");
235
+ if (procedures[newPath]) throw new Error(`Duplicate key: ${newPath}`);
236
+ procedures[newPath] = item;
237
+ aggregate[key] = item;
238
+ }
239
+ return aggregate;
240
+ }
241
+ const record = step(input);
242
+ const _def = (0, import_objectSpread2.default)((0, import_objectSpread2.default)({
243
+ _config: config,
244
+ router: true,
245
+ procedures,
246
+ lazy: lazy$1
247
+ }, emptyRouter), {}, { record });
248
+ const router = (0, import_objectSpread2.default)((0, import_objectSpread2.default)({}, record), {}, {
249
+ _def,
250
+ createCaller: createCallerFactory()({ _def })
251
+ });
252
+ return router;
253
+ }
254
+ return createRouterInner;
255
+ }
256
+ function isProcedure(procedureOrRouter) {
257
+ return typeof procedureOrRouter === "function";
258
+ }
259
+ /**
260
+ * @internal
261
+ */
262
+ async function getProcedureAtPath(router, path) {
263
+ const { _def } = router;
264
+ let procedure = _def.procedures[path];
265
+ while (!procedure) {
266
+ const key = Object.keys(_def.lazy).find((key$1) => path.startsWith(key$1));
267
+ if (!key) return null;
268
+ const lazyRouter = _def.lazy[key];
269
+ await lazyRouter.load();
270
+ procedure = _def.procedures[path];
271
+ }
272
+ return procedure;
273
+ }
274
+ /**
275
+ * @internal
276
+ */
277
+ async function callProcedure(opts) {
278
+ const { type, path } = opts;
279
+ const proc = await getProcedureAtPath(opts.router, path);
280
+ if (!proc || !isProcedure(proc) || proc._def.type !== type && !opts.allowMethodOverride) throw new TRPCError({
281
+ code: "NOT_FOUND",
282
+ message: `No "${type}"-procedure on path "${path}"`
283
+ });
284
+ /* istanbul ignore if -- @preserve */
285
+ if (proc._def.type !== type && opts.allowMethodOverride && proc._def.type === "subscription") throw new TRPCError({
286
+ code: "METHOD_NOT_SUPPORTED",
287
+ message: `Method override is not supported for subscriptions`
288
+ });
289
+ return proc(opts);
290
+ }
291
+ function createCallerFactory() {
292
+ return function createCallerInner(router) {
293
+ const { _def } = router;
294
+ return function createCaller(ctxOrCallback, opts) {
295
+ return require_getErrorShape.createRecursiveProxy(async (innerOpts) => {
296
+ const { path, args } = innerOpts;
297
+ const fullPath = path.join(".");
298
+ if (path.length === 1 && path[0] === "_def") return _def;
299
+ const procedure = await getProcedureAtPath(router, fullPath);
300
+ let ctx = void 0;
301
+ try {
302
+ if (!procedure) throw new TRPCError({
303
+ code: "NOT_FOUND",
304
+ message: `No procedure found on path "${path}"`
305
+ });
306
+ ctx = require_codes.isFunction(ctxOrCallback) ? await Promise.resolve(ctxOrCallback()) : ctxOrCallback;
307
+ return await procedure({
308
+ path: fullPath,
309
+ getRawInput: async () => args[0],
310
+ ctx,
311
+ type: procedure._def.type,
312
+ signal: opts === null || opts === void 0 ? void 0 : opts.signal,
313
+ batchIndex: 0
314
+ });
315
+ } catch (cause) {
316
+ var _opts$onError, _procedure$_def$type;
317
+ opts === null || opts === void 0 || (_opts$onError = opts.onError) === null || _opts$onError === void 0 || _opts$onError.call(opts, {
318
+ ctx,
319
+ error: getTRPCErrorFromUnknown(cause),
320
+ input: args[0],
321
+ path: fullPath,
322
+ type: (_procedure$_def$type = procedure === null || procedure === void 0 ? void 0 : procedure._def.type) !== null && _procedure$_def$type !== void 0 ? _procedure$_def$type : "unknown"
323
+ });
324
+ throw cause;
325
+ }
326
+ });
327
+ };
328
+ };
329
+ }
330
+ function mergeRouters(...routerList) {
331
+ var _routerList$, _routerList$2;
332
+ const record = require_codes.mergeWithoutOverrides({}, ...routerList.map((r) => r._def.record));
333
+ const errorFormatter = routerList.reduce((currentErrorFormatter, nextRouter) => {
334
+ if (nextRouter._def._config.errorFormatter && nextRouter._def._config.errorFormatter !== defaultFormatter) {
335
+ if (currentErrorFormatter !== defaultFormatter && currentErrorFormatter !== nextRouter._def._config.errorFormatter) throw new Error("You seem to have several error formatters");
336
+ return nextRouter._def._config.errorFormatter;
337
+ }
338
+ return currentErrorFormatter;
339
+ }, defaultFormatter);
340
+ const transformer = routerList.reduce((prev, current) => {
341
+ if (current._def._config.transformer && current._def._config.transformer !== defaultTransformer) {
342
+ if (prev !== defaultTransformer && prev !== current._def._config.transformer) throw new Error("You seem to have several transformers");
343
+ return current._def._config.transformer;
344
+ }
345
+ return prev;
346
+ }, defaultTransformer);
347
+ const router = createRouterFactory({
348
+ errorFormatter,
349
+ transformer,
350
+ isDev: routerList.every((r) => r._def._config.isDev),
351
+ allowOutsideOfServer: routerList.every((r) => r._def._config.allowOutsideOfServer),
352
+ isServer: routerList.every((r) => r._def._config.isServer),
353
+ $types: (_routerList$ = routerList[0]) === null || _routerList$ === void 0 ? void 0 : _routerList$._def._config.$types,
354
+ sse: (_routerList$2 = routerList[0]) === null || _routerList$2 === void 0 ? void 0 : _routerList$2._def._config.sse
355
+ })(record);
356
+ return router;
357
+ }
358
+
359
+ //#endregion
360
+ //#region src/unstable-core-do-not-import/stream/tracked.ts
361
+ const trackedSymbol = Symbol();
362
+ /**
363
+ * Produce a typed server-sent event message
364
+ * @deprecated use `tracked(id, data)` instead
365
+ */
366
+ function sse(event) {
367
+ return tracked(event.id, event.data);
368
+ }
369
+ function isTrackedEnvelope(value) {
370
+ return Array.isArray(value) && value[2] === trackedSymbol;
371
+ }
372
+ /**
373
+ * Automatically track an event so that it can be resumed from a given id if the connection is lost
374
+ */
375
+ function tracked(id, data) {
376
+ if (id === "") throw new Error("`id` must not be an empty string as empty string is the same as not setting the id at all");
377
+ return [
378
+ id,
379
+ data,
380
+ trackedSymbol
381
+ ];
382
+ }
383
+
384
+ //#endregion
385
+ Object.defineProperty(exports, 'TRPCError', {
386
+ enumerable: true,
387
+ get: function () {
388
+ return TRPCError;
389
+ }
390
+ });
391
+ Object.defineProperty(exports, 'callProcedure', {
392
+ enumerable: true,
393
+ get: function () {
394
+ return callProcedure;
395
+ }
396
+ });
397
+ Object.defineProperty(exports, 'createCallerFactory', {
398
+ enumerable: true,
399
+ get: function () {
400
+ return createCallerFactory;
401
+ }
402
+ });
403
+ Object.defineProperty(exports, 'createRouterFactory', {
404
+ enumerable: true,
405
+ get: function () {
406
+ return createRouterFactory;
407
+ }
408
+ });
409
+ Object.defineProperty(exports, 'defaultFormatter', {
410
+ enumerable: true,
411
+ get: function () {
412
+ return defaultFormatter;
413
+ }
414
+ });
415
+ Object.defineProperty(exports, 'defaultTransformer', {
416
+ enumerable: true,
417
+ get: function () {
418
+ return defaultTransformer;
419
+ }
420
+ });
421
+ Object.defineProperty(exports, 'getCauseFromUnknown', {
422
+ enumerable: true,
423
+ get: function () {
424
+ return getCauseFromUnknown;
425
+ }
426
+ });
427
+ Object.defineProperty(exports, 'getDataTransformer', {
428
+ enumerable: true,
429
+ get: function () {
430
+ return getDataTransformer;
431
+ }
432
+ });
433
+ Object.defineProperty(exports, 'getProcedureAtPath', {
434
+ enumerable: true,
435
+ get: function () {
436
+ return getProcedureAtPath;
437
+ }
438
+ });
439
+ Object.defineProperty(exports, 'getTRPCErrorFromUnknown', {
440
+ enumerable: true,
441
+ get: function () {
442
+ return getTRPCErrorFromUnknown;
443
+ }
444
+ });
445
+ Object.defineProperty(exports, 'isTrackedEnvelope', {
446
+ enumerable: true,
447
+ get: function () {
448
+ return isTrackedEnvelope;
449
+ }
450
+ });
451
+ Object.defineProperty(exports, 'lazy', {
452
+ enumerable: true,
453
+ get: function () {
454
+ return lazy;
455
+ }
456
+ });
457
+ Object.defineProperty(exports, 'mergeRouters', {
458
+ enumerable: true,
459
+ get: function () {
460
+ return mergeRouters;
461
+ }
462
+ });
463
+ Object.defineProperty(exports, 'sse', {
464
+ enumerable: true,
465
+ get: function () {
466
+ return sse;
467
+ }
468
+ });
469
+ Object.defineProperty(exports, 'tracked', {
470
+ enumerable: true,
471
+ get: function () {
472
+ return tracked;
473
+ }
474
+ });
475
+ Object.defineProperty(exports, 'transformResult', {
476
+ enumerable: true,
477
+ get: function () {
478
+ return transformResult;
479
+ }
480
+ });
481
+ Object.defineProperty(exports, 'transformTRPCResponse', {
482
+ enumerable: true,
483
+ get: function () {
484
+ return transformTRPCResponse;
485
+ }
486
+ });
@@ -2,7 +2,7 @@
2
2
  "name": "@trpc/server",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "11.10.0",
5
+ "version": "11.16.0",
6
6
  "description": "The tRPC server library",
7
7
  "author": "KATT",
8
8
  "license": "MIT",
@@ -187,14 +187,18 @@
187
187
  "shared",
188
188
  "unstable-core-do-not-import",
189
189
  "!**/*.test.*",
190
- "!**/__tests__"
190
+ "!**/__tests__",
191
+ "skills",
192
+ "!skills/_artifacts",
193
+ "bin"
191
194
  ],
192
195
  "publishConfig": {
193
196
  "access": "public"
194
197
  },
195
198
  "devDependencies": {
196
199
  "@fastify/websocket": "^11.0.0",
197
- "@oxc-project/runtime": "0.112.0",
200
+ "@oxc-project/runtime": "0.115.0",
201
+ "@tanstack/intent": "^0.0.23",
198
202
  "@tanstack/react-query": "^5.80.3",
199
203
  "@types/aws-lambda": "^8.10.149",
200
204
  "@types/express": "^5.0.0",
@@ -217,7 +221,7 @@
217
221
  "superstruct": "^2.0.0",
218
222
  "tsdown": "0.12.7",
219
223
  "typescript": "^5.9.2",
220
- "valibot": "1.2.0",
224
+ "valibot": "1.3.1",
221
225
  "ws": "^8.0.0",
222
226
  "yup": "^1.0.0",
223
227
  "zod": "^4.2.1"
@@ -228,5 +232,11 @@
228
232
  "peerDependencies": {
229
233
  "typescript": ">=5.7.2"
230
234
  },
231
- "gitHead": "54ee800f414841b4a34860ffb3e5a6bac5aef7da"
235
+ "keywords": [
236
+ "tanstack-intent"
237
+ ],
238
+ "bin": {
239
+ "intent": "./bin/intent.js"
240
+ },
241
+ "gitHead": "2713275631db358f17f2fec71a7f7e04b3db4add"
232
242
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compiler-core v3.5.28
2
+ * @vue/compiler-core v3.5.33
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -4931,7 +4931,7 @@ const transformFor = createStructuralDirectiveTransform(
4931
4931
  loop.body = createBlockStatement([
4932
4932
  createCompoundExpression([`const _memo = (`, memo.exp, `)`]),
4933
4933
  createCompoundExpression([
4934
- `if (_cached`,
4934
+ `if (_cached && _cached.el`,
4935
4935
  ...keyExp ? [` && _cached.key === `, keyExp] : [],
4936
4936
  ` && ${context.helperString(
4937
4937
  IS_MEMO_SAME
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/compiler-core",
3
- "version": "3.5.28",
3
+ "version": "3.5.33",
4
4
  "description": "@vue/compiler-core",
5
5
  "main": "index.js",
6
6
  "module": "dist/compiler-core.esm-bundler.js",
@@ -46,11 +46,11 @@
46
46
  },
47
47
  "homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-core#readme",
48
48
  "dependencies": {
49
- "@babel/parser": "^7.29.0",
49
+ "@babel/parser": "^7.29.2",
50
50
  "entities": "^7.0.1",
51
51
  "estree-walker": "^2.0.2",
52
52
  "source-map-js": "^1.2.1",
53
- "@vue/shared": "3.5.28"
53
+ "@vue/shared": "3.5.33"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@babel/types": "^7.29.0"
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compiler-dom v3.5.28
2
+ * @vue/compiler-dom v3.5.33
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/compiler-dom",
3
- "version": "3.5.28",
3
+ "version": "3.5.33",
4
4
  "description": "@vue/compiler-dom",
5
5
  "main": "index.js",
6
6
  "module": "dist/compiler-dom.esm-bundler.js",
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-dom#readme",
53
53
  "dependencies": {
54
- "@vue/compiler-core": "3.5.28",
55
- "@vue/shared": "3.5.28"
54
+ "@vue/shared": "3.5.33",
55
+ "@vue/compiler-core": "3.5.33"
56
56
  }
57
57
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compiler-ssr v3.5.28
2
+ * @vue/compiler-ssr v3.5.33
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/compiler-ssr",
3
- "version": "3.5.28",
3
+ "version": "3.5.33",
4
4
  "description": "@vue/compiler-ssr",
5
5
  "main": "dist/compiler-ssr.cjs.js",
6
6
  "types": "dist/compiler-ssr.d.ts",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-ssr#readme",
30
30
  "dependencies": {
31
- "@vue/shared": "3.5.28",
32
- "@vue/compiler-dom": "3.5.28"
31
+ "@vue/shared": "3.5.33",
32
+ "@vue/compiler-dom": "3.5.33"
33
33
  }
34
34
  }