permdock 0.22.1 → 0.24.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 (322) hide show
  1. package/dist/a2a/index.d.ts +4 -4
  2. package/dist/a2a/index.js +4 -4
  3. package/dist/{adoption-scan-DzX5Gqcg.js → adoption-scan-CNoE5yBA.js} +1 -1
  4. package/dist/agent/index.d.ts +2 -2
  5. package/dist/agent/index.js +1 -1
  6. package/dist/ai-sdk/index.d.ts +3 -3
  7. package/dist/ai-sdk/index.js +2 -2
  8. package/dist/app/index.d.ts +6 -6
  9. package/dist/app/index.js +4 -4
  10. package/dist/{approval-normalize-DNLW0zOM.js → approval-normalize-KfhzpD93.js} +1 -1
  11. package/dist/{approval-policies-UnDSxT__.d.ts → approval-policies-D7moEfTM.d.ts} +1 -1
  12. package/dist/{approval-prompt-2hTqo6IM.d.ts → approval-prompt-DtfKSH-8.d.ts} +1 -1
  13. package/dist/approvals/index.d.ts +3 -3
  14. package/dist/approvals/index.js +3 -3
  15. package/dist/{approvals-B_sn4Wrn.js → approvals-BfzI8Foe.js} +5 -5
  16. package/dist/{arazzo-BkjyGVF0.js → arazzo-4rMFOHbu.js} +1 -1
  17. package/dist/{arazzo-CTx11zFc.js → arazzo-rsYPFgga.js} +2 -2
  18. package/dist/astro/index.d.ts +4 -4
  19. package/dist/astro/index.js +2 -2
  20. package/dist/{audience-5Xx1hdIv.js → audience-N2BqOvES.js} +1 -1
  21. package/dist/authzen/index.d.ts +5 -5
  22. package/dist/authzen/index.js +3 -3
  23. package/dist/{automation-B20_8UoT.d.ts → automation-CrGcfIZn.d.ts} +1 -1
  24. package/dist/better-auth/index.d.ts +1 -1
  25. package/dist/better-auth/index.js +1 -1
  26. package/dist/better-supabase/index.d.ts +61 -23
  27. package/dist/better-supabase/index.js +87 -35
  28. package/dist/{bind-B4Z0U2Gr.js → bind-Cx10JuJ-.js} +3 -3
  29. package/dist/{bind-CnOMjazH.d.ts → bind-N5jf6kjk.d.ts} +7 -7
  30. package/dist/{body-B3ylkmmE.js → body-Cy9S8zhw.js} +1 -1
  31. package/dist/{build-instance-B0vsViF5.js → build-instance-BDGzsGcn.js} +1 -1
  32. package/dist/{capability-YkRMUAsF.d.ts → capability-mLbd3KZ0.d.ts} +1 -1
  33. package/dist/{casbin-BFOuRptJ.js → casbin-CjUT-wqV.js} +1 -1
  34. package/dist/{casbin-BpS9ABSO.js → casbin-Dg5N0Gfa.js} +1 -1
  35. package/dist/catalog/index.d.ts +4 -4
  36. package/dist/catalog/index.js +5 -5
  37. package/dist/{catalog-Y4CjN8NA.js → catalog-BJu0A15r.js} +2 -2
  38. package/dist/{catalog-CoyKnU5c.js → catalog-CgA6-DQA.js} +1 -1
  39. package/dist/catalog-DqYnQz8U.js +1 -0
  40. package/dist/{catalog-doc-Zi0jRpyH.js → catalog-doc-BoSOQRXT.js} +2 -2
  41. package/dist/{challenge-B__LcNve.js → challenge-DVw1SrH9.js} +1 -1
  42. package/dist/chat/index.d.ts +1 -1
  43. package/dist/chat/index.js +3 -3
  44. package/dist/chat-sdk/index.d.ts +3 -3
  45. package/dist/claude-agent/index.d.ts +3 -3
  46. package/dist/claude-agent/index.js +1 -1
  47. package/dist/clerk/index.d.ts +2 -2
  48. package/dist/cli/bin.js +1 -1
  49. package/dist/cli/index.d.ts +4 -4
  50. package/dist/cli/index.js +2 -2
  51. package/dist/cloud/index.d.ts +8 -8
  52. package/dist/cloud/index.js +2 -2
  53. package/dist/{cloud-DXcQXWDi.js → cloud-Blw4AaQv.js} +2 -2
  54. package/dist/{codemod-CxyKuniX.js → codemod-BFFXaS-S.js} +1 -1
  55. package/dist/{codemod-DJ0WqXWk.js → codemod-ByRUKVp-.js} +2 -2
  56. package/dist/{collect-ScSG05VJ.js → collect-COqPRz6O.js} +2 -2
  57. package/dist/collect-CjFczu8a.js +1 -0
  58. package/dist/{collect-Cr71JA7z.js → collect-D3ToPa6Z.js} +1 -1
  59. package/dist/compile/index.d.ts +1 -1
  60. package/dist/{compile-DC-BrhH1.d.ts → compile-DSwZUJmL.d.ts} +2 -2
  61. package/dist/{completion-BHVvAJ6Q.js → completion-BW53byZN.js} +1 -1
  62. package/dist/{config-2grt3oll.js → config-B0qti4jI.js} +1 -1
  63. package/dist/{config-report-Cg5Y5j0h.js → config-report-DgMqeeK6.js} +2 -2
  64. package/dist/{context-Cem4QafV.js → context-KrAhRY22.js} +2 -2
  65. package/dist/convex/index.d.ts +4 -4
  66. package/dist/convex/index.js +1 -1
  67. package/dist/{core-CUjhfz0W.js → core-DMQsq2Gv.js} +5 -5
  68. package/dist/{core-D2JNg5jA.d.ts → core-KsoqXWhf.d.ts} +2 -2
  69. package/dist/{create-BsL5lCWR.js → create-BRr7Gu7N.js} +6 -6
  70. package/dist/{create-oMCcZV4X.d.ts → create-ChK8bpCK.d.ts} +7 -7
  71. package/dist/{create-CPDSbK1a.d.ts → create-DGFv7Dje.d.ts} +4 -4
  72. package/dist/{create-BJ2_8NDO.js → create-bYkJ4-tg.js} +3 -3
  73. package/dist/{create-B2tdOygC.d.ts → create-goT32QIN.d.ts} +6 -6
  74. package/dist/{credential-Bap3HClV.js → credential-DrVrRL7z.js} +2 -2
  75. package/dist/{credentials-BXV0oz56.js → credentials-UwTE2wCW.js} +1 -1
  76. package/dist/{credentials-DPX140fN.d.ts → credentials-fqa_Xzzh.d.ts} +2 -2
  77. package/dist/{condition-evaluate-bVVRSdzq.js → delegation-CrdqnesZ.js} +123 -156
  78. package/dist/delivery/index.d.ts +4 -4
  79. package/dist/delivery/index.js +1 -1
  80. package/dist/{denied-text-BXQkWU7d.d.ts → denied-text-BTMxIn5W.d.ts} +1 -1
  81. package/dist/{describe-DVobr5FX.d.ts → describe-CazEjtOH.d.ts} +1 -1
  82. package/dist/{diff-Jc_kbDz-.js → diff-BkuW_5dK.js} +1 -1
  83. package/dist/{diff-BR9JArxz.js → diff-DLcsCeVo.js} +3 -3
  84. package/dist/{doctor-iIbdUK8F.js → doctor-Jk2Ifezw.js} +2 -2
  85. package/dist/{doctor-DaRoSPT0.js → doctor-oD08zL1e.js} +37 -19
  86. package/dist/drizzle/index.d.ts +3 -3
  87. package/dist/elysia/index.d.ts +4 -4
  88. package/dist/elysia/index.js +3 -3
  89. package/dist/{errors-D_JIQJYb.d.ts → errors-CXxQwtbZ.d.ts} +1 -1
  90. package/dist/{evaluate-B5yZHmts.js → evaluate-_JdlbJ32.js} +11 -8
  91. package/dist/{evaluations-BzTDWO4m.js → evaluations-Bj5xw0EM.js} +3 -3
  92. package/dist/{evaluations-DQYfh4Jh.d.ts → evaluations-DcUW5VkX.d.ts} +3 -3
  93. package/dist/evaluator-BvRk9kiK.js +0 -0
  94. package/dist/evaluator-eager-DvmrpdZt.js +9 -0
  95. package/dist/evaluator-mHAoYEkk.js +2 -0
  96. package/dist/eve/index.d.ts +4 -4
  97. package/dist/eve/index.js +2 -2
  98. package/dist/express/index.d.ts +4 -4
  99. package/dist/express/index.js +3 -3
  100. package/dist/fastify/index.d.ts +4 -4
  101. package/dist/fastify/index.js +3 -3
  102. package/dist/{fetch-adapter-MoYZ-vF5.js → fetch-adapter-CAA3VJMX.js} +3 -3
  103. package/dist/{fetch-adapter-DxqsIXSO.d.ts → fetch-adapter-eQ-mdk8n.d.ts} +2 -2
  104. package/dist/{fields-CVyOk-f1.js → fields-B17OWcPx.js} +1 -1
  105. package/dist/fields-DlKwZYiy.js +26 -0
  106. package/dist/from-snapshot-CdGYjHUg.js +153 -0
  107. package/dist/{gen-Cw8goef4.js → gen-BwcwwLok.js} +3 -3
  108. package/dist/{gen-DFpWGJWF.js → gen-D4ulqsYR.js} +1 -1
  109. package/dist/grantee-OG4klcNr.js +110 -0
  110. package/dist/{grantee-match-8J2y60MF.js → grantee-match-CPQ9zV-H.js} +1 -1
  111. package/dist/h3/index.d.ts +4 -4
  112. package/dist/h3/index.js +3 -3
  113. package/dist/{helpers-DzBIfL1N.js → helpers-CO2hDpBU.js} +1 -1
  114. package/dist/hono/index.d.ts +4 -4
  115. package/dist/hono/index.js +3 -3
  116. package/dist/{hosted-DXq1plaP.d.ts → hosted-BUCpV8-u.d.ts} +1 -1
  117. package/dist/{hosted-C5I2TSXm.js → hosted-cPDyrlsQ.js} +5 -4
  118. package/dist/{import-CvXswHDy.js → import-B2jgnNS0.js} +1 -1
  119. package/dist/{import-DDegvwDI.js → import-BsrnU4BF.js} +1 -1
  120. package/dist/{index-C-R8lBPb.d.ts → index-BXS29UnX.d.ts} +1 -1
  121. package/dist/{index-BcS8c_2S.d.ts → index-CvKGALWb.d.ts} +4 -4
  122. package/dist/{index-BdZpqhJK.d.ts → index-CxA-ygwc.d.ts} +2 -2
  123. package/dist/{index-Cjfa1Uwr.d.ts → index-DD2FBFdm.d.ts} +10 -8
  124. package/dist/{index-iIsqXFVu.d.ts → index-DQCBzEhO.d.ts} +4 -4
  125. package/dist/{index-C_8uxAlv.d.ts → index-DYAJ9JX1.d.ts} +4 -4
  126. package/dist/index.d.ts +16 -16
  127. package/dist/index.js +21 -18
  128. package/dist/{init-D_T_zgFg.js → init-Baq0yYfu.js} +1 -1
  129. package/dist/{init-Dz552ZPp.js → init-Cik6ITgM.js} +3 -3
  130. package/dist/{instance-options-C6gEDOts.d.ts → instance-options-BDHB3qBG.d.ts} +1 -1
  131. package/dist/{instance-snapshot-D_dGTq--.js → instance-snapshot-LPNBG9np.js} +67 -8
  132. package/dist/jwt/index.d.ts +4 -4
  133. package/dist/{kernel-NmxiWII2.js → kernel-BY3rVRs2.js} +8 -8
  134. package/dist/kysely/index.d.ts +3 -3
  135. package/dist/{login-DIVe6QdP.js → login-CUboKh0f.js} +3 -3
  136. package/dist/{login-B2usNw0X.js → login-CcBS1xkU.js} +1 -1
  137. package/dist/{manifest-D44OkoLk.js → manifest-BoCYBbQL.js} +1 -1
  138. package/dist/{manifest-CbHnl4I_.js → manifest-CIlVL-QT.js} +35 -35
  139. package/dist/{manifest-schema-DUheHWcp.js → manifest-schema-svAkgqMc.js} +1 -1
  140. package/dist/{map-error-p4ROJ_26.js → map-error-BCdb2Nrp.js} +2 -2
  141. package/dist/may-use-D0_wNcgB.js +126 -0
  142. package/dist/mcp/index.d.ts +8 -8
  143. package/dist/mcp/index.js +5 -5
  144. package/dist/membership-filter-CfLdP_F9.js +68 -0
  145. package/dist/nest/index.d.ts +4 -4
  146. package/dist/nest/index.js +3 -3
  147. package/dist/next/index.d.ts +10 -10
  148. package/dist/next/index.js +6 -6
  149. package/dist/next/plugin.d.ts +1 -1
  150. package/dist/next/plugin.js +1 -1
  151. package/dist/node/index.d.ts +4 -4
  152. package/dist/node/index.js +2 -2
  153. package/dist/openai/index.d.ts +4 -4
  154. package/dist/openai/index.js +2 -2
  155. package/dist/openapi/index.d.ts +2 -2
  156. package/dist/{openapi-5moP9sTG.js → openapi-DglIpD53.js} +2 -2
  157. package/dist/{openapi-DcvNnLFa.js → openapi-DobvXTF6.js} +2 -2
  158. package/dist/orpc/index.d.ts +5 -5
  159. package/dist/orpc/index.js +3 -3
  160. package/dist/otel/index.d.ts +3 -3
  161. package/dist/otel/index.js +1 -1
  162. package/dist/{output-RIUEs3_S.js → output-B81GJ6u6.js} +1 -1
  163. package/dist/{ownership-adPAsUwY.js → ownership-B7Ea-hUY.js} +3 -3
  164. package/dist/{parse-local-manifest-BaCqsqwC.d.ts → parse-local-manifest-DzZOzDsK.d.ts} +1 -1
  165. package/dist/pdp/index.d.ts +3 -3
  166. package/dist/pdp/index.js +3 -3
  167. package/dist/{permdock-B5LyNVgn.js → permdock-HfTF99xX.js} +26 -15
  168. package/dist/{permdock-BaB-KQqn.d.ts → permdock-vD3mwLSm.d.ts} +3 -3
  169. package/dist/{permissions-COpRGKt7.js → permissions-CGYZqYsY.js} +2 -2
  170. package/dist/{policy-x8RBKW8d.d.ts → policy-B_cqFLHu.d.ts} +1 -1
  171. package/dist/{policy-wGzbAPQF.js → policy-BovcTojN.js} +5 -4
  172. package/dist/{policy-from-catalog-Cy103lsm.js → policy-from-catalog-lKL280I8.js} +7 -7
  173. package/dist/{policy-types-rNfz7t0M.d.ts → policy-types-CCBrL7me.d.ts} +14 -0
  174. package/dist/{postgrest-Cn0Res25.d.ts → postgrest-5WOO47Ud.d.ts} +2 -2
  175. package/dist/{powersync-C5_aFFaU.js → powersync-B6f4l8C1.js} +2 -2
  176. package/dist/{powersync-BUO5uQve.js → powersync-BUUqJfH2.js} +6 -6
  177. package/dist/powersync-D12Q6Chj.js +1 -0
  178. package/dist/prisma/index.d.ts +2 -2
  179. package/dist/{protected-action-E7Sdt_Dt.js → protected-action-BWvZjjyt.js} +83 -12
  180. package/dist/{protected-action-C4aj1KjO.d.ts → protected-action-DGuJNiMA.d.ts} +20 -8
  181. package/dist/provider-B085HEOf.js +12 -0
  182. package/dist/{provider-store-D4PU1my_.js → provider-store-BLd4UEmg.js} +4 -3
  183. package/dist/{provider-DKO9KHua.js → provider-with-DobrMx1N.js} +6 -6
  184. package/dist/{provider-B-1DlOGM.d.ts → provider-yIM04TwN.d.ts} +1 -1
  185. package/dist/{pull-BkT7tTKb.js → pull-4Yi8zYeU.js} +3 -3
  186. package/dist/pull-Dr6Bq5Jo.js +1 -0
  187. package/dist/{push-CEPcWdTJ.js → push-Dv1nfFPr.js} +3 -3
  188. package/dist/{pushed-policy-P55cJNx5.d.ts → pushed-policy-B2ZSpnRY.d.ts} +1 -1
  189. package/dist/{pushed-policy-Bi5-il4C.js → pushed-policy-DJoyBZsd.js} +2 -2
  190. package/dist/react/index.d.ts +7 -7
  191. package/dist/react/index.js +4 -4
  192. package/dist/react/lazy.d.ts +12 -0
  193. package/dist/react/lazy.js +36 -0
  194. package/dist/react/provider-client.d.ts +1 -1
  195. package/dist/react/provider-client.js +1 -1
  196. package/dist/react-native/index.d.ts +8 -8
  197. package/dist/react-native/index.js +7 -6
  198. package/dist/{replay-DKhFvt0L.d.ts → replay-CsErjiHt.d.ts} +1 -1
  199. package/dist/{request-context-5gl_oxO1.js → request-context-B_L4ev8L.js} +2 -2
  200. package/dist/resend/index.d.ts +4 -4
  201. package/dist/resend/index.js +2 -2
  202. package/dist/{resolve-names-bzYlAXRt.js → resolve-names-SGcLjtFc.js} +2 -2
  203. package/dist/{rls-v6V75yf_.js → rls-Df9NEWD3.js} +1 -1
  204. package/dist/{rls-DTf8X__h.js → rls-hmwRIS3-.js} +11 -11
  205. package/dist/{role-builder-boQiUvfo.js → role-builder-BXdhhQcB.js} +5 -3
  206. package/dist/row-pair-DglMdRFh.js +34 -0
  207. package/dist/{rpc-BqRiVpbP.d.ts → rpc-D3St8vPO.d.ts} +1 -1
  208. package/dist/{rpc-Dhi55Whd.js → rpc-DFtputZ1.js} +1 -1
  209. package/dist/{run-CgSQS9RF.js → run-BXmJIjRA.js} +2 -2
  210. package/dist/run-DnzrDgU-.js +1 -0
  211. package/dist/{run-ticket-Dulj4RQk.d.ts → run-ticket-zfABczfh.d.ts} +2 -2
  212. package/dist/{saas-DABv6vjy.js → saas-DIThcxbn.js} +5 -5
  213. package/dist/{scan-BY3Pp1PS.js → scan-BrTSlc_5.js} +1 -1
  214. package/dist/{schema-B_HsJKm2.js → schema-UOeI_LTB.js} +1 -1
  215. package/dist/scim/index.d.ts +1 -1
  216. package/dist/server/index.d.ts +11 -11
  217. package/dist/server/index.js +5 -5
  218. package/dist/{server-types--_Hann81.d.ts → server-types-CtJSDhOv.d.ts} +8 -8
  219. package/dist/{sink-Cs6z34AX.d.ts → sink-BskpqwLl.d.ts} +2 -2
  220. package/dist/{skills-Bj2wk38p.js → skills-BTVeFptV.js} +1 -1
  221. package/dist/{skills-Clo4qYLn.js → skills-CAgWKbDR.js} +1 -1
  222. package/dist/{snapshot-C2j96x97.js → snapshot-BcHYtUIg.js} +57 -7
  223. package/dist/{snapshot-cache-Cc7VNabe.d.ts → snapshot-cache-BnXMcJbK.d.ts} +1 -1
  224. package/dist/snapshot-empty-BoPBFoB8.js +17 -0
  225. package/dist/snapshot-evaluate-CwYVSUgO.js +501 -0
  226. package/dist/snapshot-reads-DOsTYC82.js +66 -0
  227. package/dist/solid/index.d.ts +5 -5
  228. package/dist/solid/index.js +2 -2
  229. package/dist/solid-start/index.d.ts +4 -4
  230. package/dist/solid-start/index.js +3 -3
  231. package/dist/{sources-CdYZBVcW.d.ts → sources-DhCtO9G8.d.ts} +1 -1
  232. package/dist/{src-BG9YJM3Q.js → src-BZKQe1lr.js} +13 -12
  233. package/dist/ssf/index.d.ts +3 -3
  234. package/dist/ssf/index.js +2 -2
  235. package/dist/{standard-webhooks-CJBgfl7y.d.ts → standard-webhooks-kQDkIPj3.d.ts} +2 -2
  236. package/dist/{store-BpKH-pLm.js → store-DXO0aVgf.js} +2 -2
  237. package/dist/{store-DSyjHD5-.d.ts → store-core-CDabEiO9.d.ts} +27 -6
  238. package/dist/{store-options-CXv6BHH6.js → store-options-COLWAd1K.js} +92 -12
  239. package/dist/{stores-BuqAHjp_.js → stores-DYxx75fk.js} +1 -1
  240. package/dist/{stores-C6-7TPTV.d.ts → stores-Mw_VAJ3B.d.ts} +5 -5
  241. package/dist/{subject-cache-d_Z4KAnm.d.ts → subject-cache-DrJGnRiV.d.ts} +1 -1
  242. package/dist/supabase/index.d.ts +6 -6
  243. package/dist/supabase/index.js +2 -2
  244. package/dist/supabase/middleware.d.ts +5 -5
  245. package/dist/supabase/middleware.js +5 -5
  246. package/dist/{supabase-DnazO6W4.js → supabase-BDr-fIHp.js} +1 -1
  247. package/dist/{supabase-CJv6K3iz.js → supabase-Bt8rb-ah.js} +2 -2
  248. package/dist/{supabase-hook-DLQMugW8.js → supabase-hook-Cb3UZpGC.js} +6 -5
  249. package/dist/supabase-hook-D1pwHu87.js +1 -0
  250. package/dist/{supautils-BHKsP7l-.js → supautils-CuR9rPsi.js} +8 -8
  251. package/dist/svelte/index.d.ts +5 -5
  252. package/dist/svelte/index.js +3 -3
  253. package/dist/svelte/runtime.d.ts +3 -3
  254. package/dist/svelte/runtime.js +1 -1
  255. package/dist/svelte/source.d.ts +5 -5
  256. package/dist/svelte/source.js +2 -2
  257. package/dist/sveltekit/index.d.ts +4 -4
  258. package/dist/sveltekit/index.js +2 -2
  259. package/dist/{tables-CbEOy2Ma.js → tables-Bl_ozD0k.js} +35 -13
  260. package/dist/tanstack-start/index.d.ts +4 -4
  261. package/dist/tanstack-start/index.js +2 -2
  262. package/dist/terminal/index.d.ts +5 -5
  263. package/dist/terminal/index.js +3 -3
  264. package/dist/testing/core.d.ts +1 -1
  265. package/dist/testing/core.js +1 -1
  266. package/dist/testing/fixtures/index.d.ts +3 -3
  267. package/dist/testing/fixtures/index.js +7 -1
  268. package/dist/testing/index.d.ts +23 -23
  269. package/dist/testing/index.js +47 -41
  270. package/dist/testing/saas/index.d.ts +3 -3
  271. package/dist/testing/saas/index.js +2 -2
  272. package/dist/testing/saas/permissions.js +1 -1
  273. package/dist/trpc/index.d.ts +5 -5
  274. package/dist/trpc/index.js +3 -3
  275. package/dist/{type-helpers-iXJEIDe7.d.ts → type-helpers-fQdBvtU0.d.ts} +1 -1
  276. package/dist/{types-BpxdxaRD.d.ts → types-BSGrzDPi.d.ts} +4 -4
  277. package/dist/{types-cNZhj0UF.d.ts → types-B_s1oQaF.d.ts} +2 -2
  278. package/dist/{types-ZfjQB0KC.d.ts → types-CAp7UGiB.d.ts} +1 -1
  279. package/dist/{types-CD1qmxdx.d.ts → types-CErg7ft6.d.ts} +3 -3
  280. package/dist/{types-_pi9kxS2.d.ts → types-CXUwgZ3d.d.ts} +2 -2
  281. package/dist/{types-C_a44wSr.d.ts → types-Cc68_zqR.d.ts} +2 -2
  282. package/dist/{types-Cq2rvv-C.d.ts → types-CdXM6qPc.d.ts} +2 -2
  283. package/dist/{types-BSNZMp5b.d.ts → types-ChYCRn7Y.d.ts} +1 -1
  284. package/dist/{types-CuDXvyIT.d.ts → types-DDlaFDM3.d.ts} +4 -4
  285. package/dist/{types-NikV1pND.d.ts → types-DM0o1YyJ.d.ts} +4 -4
  286. package/dist/{types-B9F0EZAF.d.ts → types-DyA4Loy4.d.ts} +3 -3
  287. package/dist/unplugin/index.d.ts +1 -1
  288. package/dist/unplugin/index.js +1 -1
  289. package/dist/{usage-DlOllyPi.js → usage-B6sQwycY.js} +4 -4
  290. package/dist/{usage-BUUXeKwk.js → usage-CNkKk27O.js} +1 -1
  291. package/dist/usage-Cem1FOeJ.js +1 -0
  292. package/dist/{validation-error-DLAYFlkr.d.ts → validation-error-BE8bpmhR.d.ts} +1 -1
  293. package/dist/{validity-Buc7w8E9.js → validity-IcjQSR7I.js} +1 -26
  294. package/dist/{verify-CfmvQjVw.js → verify-OtU4yCzg.js} +11 -11
  295. package/dist/{version-sources-BC3hf2ME.js → version-sources-BZ7V6Z8Z.js} +1 -1
  296. package/dist/{grantee-Dke-9rd1.js → vocabulary-BuYFWeCU.js} +1 -107
  297. package/dist/vue/index.d.ts +5 -5
  298. package/dist/vue/index.js +2 -2
  299. package/dist/{waiter-cbK1CBhT.d.ts → waiter-LdnPaBJE.d.ts} +2 -2
  300. package/dist/watch-B8F7Wgdy.js +1 -0
  301. package/dist/{watch-BigZ260i.js → watch-CR2ZIT_5.js} +1 -1
  302. package/dist/webmcp/index.d.ts +1 -1
  303. package/dist/{who-can-CjfMP9a4.js → who-can-DcrHB6ya.js} +2 -2
  304. package/dist/workflow/index.d.ts +3 -3
  305. package/dist/workflow/index.js +2 -2
  306. package/dist/workflow-sdk/index.d.ts +4 -4
  307. package/dist/{wrap-B-k2qHJx.d.ts → wrap-CVBPIuEs.d.ts} +2 -2
  308. package/package.json +8 -4
  309. package/schemas/supabase-manifest-v1.json +1 -1
  310. package/skills/permdock-wire/references/adapters.md +2 -0
  311. package/dist/catalog-C462QC3A.js +0 -1
  312. package/dist/collect-W9i7REKT.js +0 -1
  313. package/dist/from-snapshot-oR_N97dM.js +0 -927
  314. package/dist/powersync-DhspazC8.js +0 -1
  315. package/dist/pull-COPm1W-l.js +0 -1
  316. package/dist/run-ItR_bQGz.js +0 -1
  317. package/dist/supabase-hook-vZADjjfN.js +0 -1
  318. package/dist/usage-NmH5QXKC.js +0 -1
  319. package/dist/watch-CHURMgrv.js +0 -1
  320. package/dist/{connection-QFsv-kbh.js → connection-zoAgwdsD.js} +1 -1
  321. package/dist/{problem-BWP1l86g.js → problem-CPB8kqk7.js} +1 -1
  322. package/dist/{wrap-BKU5Arsu.js → wrap-C5PWzgkq.js} +1 -1
@@ -1220,6 +1220,20 @@ type Snapshot = {
1220
1220
  readonly authzVersion?: number;
1221
1221
  /** The Auth session (`session_id`) the snapshot was built for. */
1222
1222
  readonly sessionId?: string;
1223
+ /**
1224
+ * What a check with no row, team or field answers in the active tenant, so a
1225
+ * client renders `usePermission(permission)` without loading its evaluator.
1226
+ * Every key not listed is denied. Absent when an answer depends on the clock
1227
+ * (a grant `validity`, a membership `expiresAt`) or on the server alone.
1228
+ */
1229
+ readonly typeLevel?: SnapshotTypeLevel;
1230
+ };
1231
+ /** The permission keys a rowless check grants or sends to an approver. */
1232
+ type SnapshotTypeLevel = {
1233
+ readonly granted: readonly string[];
1234
+ readonly approval?: readonly string[];
1235
+ /** Keys whose rowless answer needs the evaluations endpoint. */
1236
+ readonly endpoint?: readonly string[];
1223
1237
  };
1224
1238
  /**
1225
1239
  * A grant the subject would hold on another plan: its permission, role and
@@ -1,5 +1,5 @@
1
- import { D as Policy, dt as SourceCall, it as MembershipSource, q as CustomRoleSource, rt as MemberEntry, xr as Subject, yr as Principal } from "./policy-types-rNfz7t0M.js";
2
- import { n as SubjectCache, r as SubjectRecord } from "./subject-cache-d_Z4KAnm.js";
1
+ import { D as Policy, dt as SourceCall, it as MembershipSource, q as CustomRoleSource, rt as MemberEntry, xr as Subject, yr as Principal } from "./policy-types-CCBrL7me.js";
2
+ import { n as SubjectCache, r as SubjectRecord } from "./subject-cache-DrJGnRiV.js";
3
3
  //#region src/supabase/postgrest.d.ts
4
4
  /**
5
5
  * What a supabase-js `rpc` call resolves to: `data` or an `error` with a
@@ -14,7 +14,7 @@ const generate = defineLeaf({
14
14
  async run(ctx, { flags }) {
15
15
  const out = fileOut("powersync", flags.out);
16
16
  const from = given(flags.policy);
17
- const { runPowerSync } = await import("./powersync-DhspazC8.js");
17
+ const { runPowerSync } = await import("./powersync-D12Q6Chj.js");
18
18
  return runPowerSync({
19
19
  cwd: ctx.cwd,
20
20
  config: ctx.config,
@@ -45,7 +45,7 @@ const verify = defineLeaf({
45
45
  const db = await dbUrl(ctx, flags, { required: true });
46
46
  const fixtures = given(flags.fixtures);
47
47
  const from = given(flags.policy);
48
- const { runPowerSync } = await import("./powersync-DhspazC8.js");
48
+ const { runPowerSync } = await import("./powersync-D12Q6Chj.js");
49
49
  return runPowerSync({
50
50
  cwd: ctx.cwd,
51
51
  config: ctx.config,
@@ -1,11 +1,11 @@
1
1
  import { r as isRecord, t as compact } from "./compact-CAf557ZB.js";
2
2
  import { c as isConditionDate, l as isConditionRef, o as hasConditionOp } from "./refs-C8BKxc_e.js";
3
- import { D as memoryCustomRoleSource, h as localSnapshotManifest } from "./src-BG9YJM3Q.js";
3
+ import { D as memoryCustomRoleSource, h as localSnapshotManifest } from "./src-BZKQe1lr.js";
4
4
  import { n as findPermission } from "./permission-registry-B8tYxPIt.js";
5
5
  import { d as scopeList, s as resolveScope } from "./scopes-gdH__vDZ.js";
6
6
  import { t as requiresApproval } from "./approval-required-TzNB9oQA.js";
7
- import { t as getPermDock } from "./permdock-B5LyNVgn.js";
8
- import { l as policyLevels } from "./policy-wGzbAPQF.js";
7
+ import { t as getPermDock } from "./permdock-HfTF99xX.js";
8
+ import { l as policyLevels } from "./policy-BovcTojN.js";
9
9
  import { u as usageResult } from "./errors-BhRkoNS7.js";
10
10
  import { c as requirePolicy } from "./load-C4p4VgwR.js";
11
11
  import { s as quoteSqlLiteral, t as SQL_IDENT } from "./sql-0WjxIp9g.js";
@@ -16,10 +16,10 @@ import { i as fileDrift } from "./output-files-CM0BnH05.js";
16
16
  import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-BVZc7OCF.js";
17
17
  import { n as pgConnector } from "./pg-Ddxsd5ZB.js";
18
18
  import { A as quoteQualified, O as quoteIdent, a as customRolesOn, t as CUSTOM_ROLES } from "./shared-DfaIWvIJ.js";
19
- import { i as tableNames, r as tableNameOf } from "./tables-CbEOy2Ma.js";
20
- import { d as andConditions, l as collectGrants, o as assignableRoles, p as contextRefs, t as ownershipRules, u as roleNames } from "./ownership-adPAsUwY.js";
19
+ import { i as tableNames, r as tableNameOf } from "./tables-Bl_ozD0k.js";
20
+ import { d as andConditions, l as collectGrants, o as assignableRoles, p as contextRefs, t as ownershipRules, u as roleNames } from "./ownership-B7Ea-hUY.js";
21
21
  import { t as membershipSourcesOf } from "./sources-qoIJQrJv.js";
22
- import { h as tableFor, t as canFixture } from "./verify-CfmvQjVw.js";
22
+ import { h as tableFor, t as canFixture } from "./verify-OtU4yCzg.js";
23
23
  import { resolve } from "node:path";
24
24
  //#region src/cli/powersync/claims.ts
25
25
  /** The `/docs` section that explains why a claim stream needs a reconnect. */
@@ -0,0 +1 @@
1
+ export { n as runPowerSync } from "./powersync-BUUqJfH2.js";
@@ -1,5 +1,5 @@
1
- import { Er as Condition, qt as Instant, xr as Subject } from "../policy-types-rNfz7t0M.js";
2
- import { f as WhereResult } from "../permdock-BaB-KQqn.js";
1
+ import { Er as Condition, qt as Instant, xr as Subject } from "../policy-types-CCBrL7me.js";
2
+ import { f as WhereResult } from "../permdock-vD3mwLSm.js";
3
3
  import { r as RelationsMapping } from "../graph-sql-BwFC4Qjs.js";
4
4
  import { n as RowCheck, t as WithSubjectOptions } from "../subject-settings-vNW8qmUH.js";
5
5
  //#region src/prisma/model-fields.d.ts
@@ -1,6 +1,6 @@
1
1
  import { n as actionRunner, t as actionApproval } from "./protected-action-OpOxtTsN.js";
2
2
  import { c as rolesView, d as subjectView, f as tenantView, i as gateView, l as scopedTenant, n as describeWith, o as permissionSet, r as filterResult, s as protectedView, t as approvalHandle, u as slotContent } from "./views-MWmJ6Y4P.js";
3
- import { n as storeOf } from "./store-options-CXv6BHH6.js";
3
+ import { n as storeOf } from "./store-options-COLWAd1K.js";
4
4
  import { a as PermDockUiContext, i as PermDockStoreContext, r as PermDockSnapshotPromiseContext } from "./live-options-BBIT68le.js";
5
5
  import { Suspense, use, useEffect, useLayoutEffect, useMemo, useState, useSyncExternalStore } from "react";
6
6
  import { jsx } from "react/jsx-runtime";
@@ -12,10 +12,32 @@ function useStore() {
12
12
  if (pending !== null) store.adopt(use(pending), pending);
13
13
  return store;
14
14
  }
15
- function usePermDock() {
15
+ /**
16
+ * The store's current instance without the evaluator: memberships, tenants,
17
+ * roles and the subject read from the snapshot, every check denies until
18
+ * `usePermDock` loads the evaluator.
19
+ */
20
+ function useSnapshotPermDock() {
16
21
  const store = useStore();
17
22
  return useSyncExternalStore((listener) => store.subscribe(listener), () => store.get(), () => store.serverGet());
18
23
  }
24
+ const loaded = Object.assign(Promise.resolve(), {
25
+ status: "fulfilled",
26
+ value: void 0
27
+ });
28
+ /** Suspends the nearest boundary until the store's evaluator has loaded. */
29
+ function useEvaluator(store, needed = true) {
30
+ if (needed) use(store.loading() ?? loaded);
31
+ }
32
+ /**
33
+ * The instance with every check. It loads the evaluator on first use and
34
+ * suspends the nearest boundary while it does.
35
+ */
36
+ function usePermDock() {
37
+ const permdock = useSnapshotPermDock();
38
+ useEvaluator(storeOf(permdock));
39
+ return permdock;
40
+ }
19
41
  /**
20
42
  * Adds refresh triggers to the nearest provider while the component is mounted.
21
43
  * Use it where the provider's own `refreshOn` cannot be set, such as below
@@ -27,6 +49,27 @@ function useRefreshOn(triggers) {
27
49
  useEffect(() => store.refreshOn(triggers), [store, triggers]);
28
50
  }
29
51
  function usePermission(permission, data) {
52
+ const permdock = useSnapshotPermDock();
53
+ const store = storeOf(permdock);
54
+ useEvaluator(store, data !== void 0 || store.quick(permission) === void 0);
55
+ return useMemo(() => {
56
+ const current = storeOf(permdock);
57
+ if (data !== void 0) return current.permissionState(permission, data);
58
+ const quick = current.quick(permission);
59
+ if (quick !== void 0) return quick;
60
+ const { allowed, status, decision } = current.permissionState(permission);
61
+ return {
62
+ allowed,
63
+ status,
64
+ outcome: decision.outcome
65
+ };
66
+ }, [
67
+ permdock,
68
+ permission,
69
+ data
70
+ ]);
71
+ }
72
+ function useDecision(permission, data) {
30
73
  const permdock = usePermDock();
31
74
  return useMemo(() => storeOf(permdock).permissionState(permission, data), [
32
75
  permdock,
@@ -51,15 +94,15 @@ function useFilter(permission, rows) {
51
94
  ]);
52
95
  }
53
96
  function useTenant() {
54
- const permdock = usePermDock();
97
+ const permdock = useSnapshotPermDock();
55
98
  return useMemo(() => tenantView(permdock), [permdock]);
56
99
  }
57
100
  function useMemberships() {
58
- const permdock = usePermDock();
101
+ const permdock = useSnapshotPermDock();
59
102
  return useMemo(() => permdock.memberships(), [permdock]);
60
103
  }
61
104
  function useRoles(options = {}) {
62
- const permdock = usePermDock();
105
+ const permdock = useSnapshotPermDock();
63
106
  const { tenant, scope, id } = options;
64
107
  return useMemo(() => rolesView(permdock, {
65
108
  ...tenant === void 0 ? {} : { tenant },
@@ -73,16 +116,16 @@ function useRoles(options = {}) {
73
116
  ]);
74
117
  }
75
118
  function useAssignableRoles() {
76
- const permdock = usePermDock();
119
+ const permdock = useSnapshotPermDock();
77
120
  return useMemo(() => permdock.assignableRoles(), [permdock]);
78
121
  }
79
122
  function useAssignablePermissions(options = {}) {
80
- const permdock = usePermDock();
123
+ const permdock = useSnapshotPermDock();
81
124
  const { tenant } = options;
82
125
  return useMemo(() => permdock.assignablePermissions(tenant === void 0 ? {} : { tenant }), [permdock, tenant]);
83
126
  }
84
127
  function useSubject() {
85
- const permdock = usePermDock();
128
+ const permdock = useSnapshotPermDock();
86
129
  return useMemo(() => subjectView(permdock), [permdock]);
87
130
  }
88
131
  /** `describe` with the provider's `messages`; a call's own `messages` win. */
@@ -91,10 +134,10 @@ function useDescribe() {
91
134
  return useMemo(() => describeWith(messages), [messages]);
92
135
  }
93
136
  function useApproval(decision) {
94
- return approvalHandle(storeOf(usePermDock()), decision);
137
+ return approvalHandle(storeOf(useSnapshotPermDock()), decision);
95
138
  }
96
139
  function useGate(permission, data, options = {}) {
97
- const state = usePermission(permission, data);
140
+ const state = useDecision(permission, data);
98
141
  const describeDecision = useDescribe();
99
142
  const mode = options.mode ?? "disable";
100
143
  return useMemo(() => gateView(state, (decision) => describeDecision(decision, { permission }), mode), [
@@ -116,9 +159,37 @@ function Protected(props) {
116
159
  });
117
160
  }
118
161
  function Guard(props) {
162
+ const { defaults } = use(PermDockUiContext);
163
+ const store = storeOf(useSnapshotPermDock());
164
+ const quick = props.data === void 0 && props.tenant === void 0 ? store.quick(props.permission) : void 0;
165
+ if (quick !== void 0) {
166
+ const fast = quickContent(quick, props, defaults);
167
+ if (fast !== void 0) return fast;
168
+ }
169
+ return /* @__PURE__ */ jsx(DecidedGuard, { ...props });
170
+ }
171
+ function isRender(value) {
172
+ return typeof value === "function";
173
+ }
174
+ function quickContent(quick, props, defaults) {
175
+ if (quick.status === "pending") return slotContent("pending", props, defaults) ?? null;
176
+ switch (quick.outcome) {
177
+ case "granted": return isRender(props.children) ? void 0 : props.children ?? null;
178
+ case "approval-required": {
179
+ const content = slotContent("approval", props, defaults);
180
+ return isRender(content) ? void 0 : content ?? null;
181
+ }
182
+ case "denied": {
183
+ const content = slotContent("denied", props, defaults);
184
+ return isRender(content) ? void 0 : content ?? null;
185
+ }
186
+ default: return quick.outcome;
187
+ }
188
+ }
189
+ function DecidedGuard(props) {
119
190
  const { defaults } = use(PermDockUiContext);
120
191
  const root = usePermDock();
121
- const local = usePermission(props.permission, props.data);
192
+ const local = useDecision(props.permission, props.data);
122
193
  const scoped = useMemo(() => scopedTenant(root, props.tenant), [root, props.tenant]);
123
194
  const view = protectedView(local, root, props.permission, props.data, scoped);
124
195
  switch (view.slot) {
@@ -170,4 +241,4 @@ function useProtectedAction(action, permission, data, options = {}) {
170
241
  ]);
171
242
  }
172
243
  //#endregion
173
- export { useAssignableRoles as a, useGate as c, usePermission as d, usePermissions as f, useTenant as g, useSubject as h, useAssignablePermissions as i, useMemberships as l, useRoles as m, Protected as n, useDescribe as o, useRefreshOn as p, useApproval as r, useFilter as s, useProtectedAction as t, usePermDock as u };
244
+ export { useTenant as _, useAssignableRoles as a, useFilter as c, usePermDock as d, usePermission as f, useSubject as g, useRoles as h, useAssignablePermissions as i, useGate as l, useRefreshOn as m, Protected as n, useDecision as o, usePermissions as p, useApproval as r, useDescribe as s, useProtectedAction as t, useMemberships as u };
@@ -1,12 +1,16 @@
1
- import { N as PolicyVocabulary, Yn as Decision, vr as Membership } from "./policy-types-rNfz7t0M.js";
1
+ import { N as PolicyVocabulary, Yn as Decision, vr as Membership } from "./policy-types-CCBrL7me.js";
2
2
  import { r as Role, w as Permission } from "./vocabulary-DeZvUaTw.js";
3
- import { d as UncheckedData, s as RowData } from "./permdock-BaB-KQqn.js";
4
- import { r as DescribeOptions, t as DecisionDescription } from "./describe-DVobr5FX.js";
5
- import { _ as TenantView, a as ClientPermDock, c as GateMode, d as PermissionState, f as ProtectedActionHandle, g as SubjectView, h as RolesOptions, l as GateView, r as ApprovalHandle, s as FilterResult, u as PermissionSet, y as ProtectedAction } from "./store-DSyjHD5-.js";
3
+ import { d as UncheckedData, s as RowData } from "./permdock-vD3mwLSm.js";
4
+ import { r as DescribeOptions, t as DecisionDescription } from "./describe-CazEjtOH.js";
5
+ import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, l as GateView, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, u as PermissionOutcome, v as TenantView } from "./store-core-CDabEiO9.js";
6
6
  import { r as RefreshTrigger } from "./refresh-on-L9UOwATg.js";
7
- import { r as ProtectedProps } from "./types-BpxdxaRD.js";
7
+ import { r as ProtectedProps } from "./types-BSGrzDPi.js";
8
8
  import { ReactNode } from "react";
9
9
  //#region src/react/hooks.d.ts
10
+ /**
11
+ * The instance with every check. It loads the evaluator on first use and
12
+ * suspends the nearest boundary while it does.
13
+ */
10
14
  declare function usePermDock<V extends PolicyVocabulary = PolicyVocabulary>(): ClientPermDock<V>;
11
15
  /**
12
16
  * Adds refresh triggers to the nearest provider while the component is mounted.
@@ -15,8 +19,16 @@ declare function usePermDock<V extends PolicyVocabulary = PolicyVocabulary>(): C
15
19
  * client. Keep `triggers` stable (module scope); a new array resubscribes.
16
20
  */
17
21
  declare function useRefreshOn(triggers: readonly RefreshTrigger[]): void;
18
- declare function usePermission<D>(permission: Permission, data?: UncheckedData<D>): PermissionState;
19
- declare function usePermission<P extends Permission>(permission: P, data?: RowData<P>): PermissionState;
22
+ declare function usePermission(permission: Permission): PermissionOutcome;
23
+ declare function usePermission<D>(permission: Permission, data: UncheckedData<D>): PermissionState;
24
+ declare function usePermission<P extends Permission>(permission: P, data: RowData<P>): PermissionState;
25
+ /**
26
+ * The check with its `Decision`: denial reasons, alternatives and the approval
27
+ * token. Loads the evaluator on first use; `usePermission(permission)` does
28
+ * not.
29
+ */
30
+ declare function useDecision<D>(permission: Permission, data?: UncheckedData<D>): PermissionState;
31
+ declare function useDecision<P extends Permission>(permission: P, data?: RowData<P>): PermissionState;
20
32
  declare function usePermissions(permissions: readonly Permission[], data?: unknown): PermissionSet;
21
33
  declare function useFilter<T>(permission: Permission<string, NoInfer<T>, "instance">, rows: readonly T[]): FilterResult<T>;
22
34
  declare function useTenant(): TenantView;
@@ -61,4 +73,4 @@ declare function useProtectedAction<T, P extends Permission>(action: ProtectedAc
61
73
  readonly mode?: GateMode;
62
74
  }): ProtectedActionHandle<T>;
63
75
  //#endregion
64
- export { useAssignableRoles as a, useGate as c, usePermission as d, usePermissions as f, useTenant as g, useSubject as h, useAssignablePermissions as i, useMemberships as l, useRoles as m, Protected as n, useDescribe as o, useRefreshOn as p, useApproval as r, useFilter as s, useProtectedAction as t, usePermDock as u };
76
+ export { useTenant as _, useAssignableRoles as a, useFilter as c, usePermDock as d, usePermission as f, useSubject as g, useRoles as h, useAssignablePermissions as i, useGate as l, useRefreshOn as m, Protected as n, useDecision as o, usePermissions as p, useApproval as r, useDescribe as s, useProtectedAction as t, useMemberships as u };
@@ -0,0 +1,12 @@
1
+ import { t as eagerEvaluator } from "./evaluator-eager-DvmrpdZt.js";
2
+ import { t as ProviderWith } from "./provider-with-DobrMx1N.js";
3
+ import { jsx } from "react/jsx-runtime";
4
+ //#region src/react/provider.tsx
5
+ function PermDockProvider(props) {
6
+ return /* @__PURE__ */ jsx(ProviderWith, {
7
+ ...props,
8
+ evaluator: eagerEvaluator
9
+ });
10
+ }
11
+ //#endregion
12
+ export { PermDockProvider as t };
@@ -1,6 +1,7 @@
1
1
  import { t as compact } from "./compact-CAf557ZB.js";
2
- import { t as emptySnapshot } from "./from-snapshot-oR_N97dM.js";
3
- import { l as isPromiseLike, t as adapterStore } from "./store-options-CXv6BHH6.js";
2
+ import { t as emptySnapshot } from "./snapshot-empty-BoPBFoB8.js";
3
+ import { t as eagerEvaluator } from "./evaluator-eager-DvmrpdZt.js";
4
+ import { l as isPromiseLike, t as adapterStore } from "./store-options-COLWAd1K.js";
4
5
  //#region src/client/provider-store.ts
5
6
  /**
6
7
  * Store options that read `read()` on every request, so a rotated token, a new
@@ -36,7 +37,7 @@ function providerStore(options, read, snapshot) {
36
37
  approvalInterval: options.approvalInterval,
37
38
  refreshOn: options.refreshOn,
38
39
  ...liveOptions(read)
39
- }), promised || snapshot === void 0 ? emptySnapshot() : snapshot);
40
+ }), promised || snapshot === void 0 ? emptySnapshot() : snapshot, eagerEvaluator);
40
41
  if (promised) store.follow(snapshot);
41
42
  return store;
42
43
  }
@@ -1,11 +1,11 @@
1
1
  import { t as compact } from "./compact-CAf557ZB.js";
2
- import { t as emptySnapshot } from "./from-snapshot-oR_N97dM.js";
3
- import { t as adapterStore } from "./store-options-CXv6BHH6.js";
2
+ import { t as emptySnapshot } from "./snapshot-empty-BoPBFoB8.js";
3
+ import { t as adapterStore } from "./store-options-COLWAd1K.js";
4
4
  import { a as PermDockUiContext, i as PermDockStoreContext, n as useKeyed, r as PermDockSnapshotPromiseContext, t as useLiveOptions } from "./live-options-BBIT68le.js";
5
5
  import { useLayoutEffect, useMemo } from "react";
6
6
  import { jsx } from "react/jsx-runtime";
7
- //#region src/react/provider.tsx
8
- function PermDockProvider(props) {
7
+ //#region src/react/provider-with.tsx
8
+ function ProviderWith(props) {
9
9
  const promise = props.snapshotPromise ?? null;
10
10
  const suspend = props.suspend === true;
11
11
  const awaiting = promise !== null && !suspend;
@@ -26,7 +26,7 @@ function PermDockProvider(props) {
26
26
  onClear: live.onClear,
27
27
  approvalInterval: props.approvalInterval,
28
28
  refreshOn: props.refreshOn
29
- }), props.snapshot ?? emptySnapshot()), [
29
+ }), props.snapshot ?? emptySnapshot(), props.evaluator), [
30
30
  props.snapshot,
31
31
  props.endpoint,
32
32
  props.snapshotUrl,
@@ -66,4 +66,4 @@ function PermDockProvider(props) {
66
66
  });
67
67
  }
68
68
  //#endregion
69
- export { PermDockProvider as t };
69
+ export { ProviderWith as t };
@@ -1,4 +1,4 @@
1
- import { n as PermDockProviderProps } from "./types-BpxdxaRD.js";
1
+ import { n as PermDockProviderProps } from "./types-BSGrzDPi.js";
2
2
  import { ReactElement } from "react";
3
3
  //#region src/react/provider.d.ts
4
4
  declare function PermDockProvider(props: PermDockProviderProps): ReactElement;
@@ -3,11 +3,11 @@ import { t as catalogFingerprint } from "./catalog-fingerprint-e6aCWosn.js";
3
3
  import { a as describeError } from "./errors-BhRkoNS7.js";
4
4
  import { s as writeFileEnsuringDir } from "./files-BSjrtIHw.js";
5
5
  import { s as cliVersion } from "./version-DMQ0dnN5.js";
6
- import { o as formatCatalogJson } from "./catalog-doc-Zi0jRpyH.js";
6
+ import { o as formatCatalogJson } from "./catalog-doc-BoSOQRXT.js";
7
7
  import { t as catalogPath } from "./catalog-path-CnI0XTFK.js";
8
- import { n as parseSupabaseManifest } from "./manifest-D44OkoLk.js";
8
+ import { n as parseSupabaseManifest } from "./manifest-BoCYBbQL.js";
9
9
  import { t as parseCatalog } from "./parse-CORUNcCo.js";
10
- import { a as nonEmptyOr } from "./output-RIUEs3_S.js";
10
+ import { a as nonEmptyOr } from "./output-B81GJ6u6.js";
11
11
  import { t as POLICY_NOT_PUBLISHED } from "./problem-types-DSsRfONQ.js";
12
12
  import { n as httpRequest, t as authFailure } from "./http-dptLQzPP.js";
13
13
  import { l as cloudUrl, n as cliRuntime, o as readAuth } from "./auth-BxXHxWRy.js";
@@ -0,0 +1 @@
1
+ export { n as runCloudPull } from "./pull-4Yi8zYeU.js";
@@ -4,10 +4,10 @@ import { t as catalogFingerprint } from "./catalog-fingerprint-e6aCWosn.js";
4
4
  import { a as describeError, n as CliError } from "./errors-BhRkoNS7.js";
5
5
  import { s as cliVersion } from "./version-DMQ0dnN5.js";
6
6
  import { i as loadConfiguredPolicy } from "./load-C4p4VgwR.js";
7
- import { n as parseSupabaseManifest } from "./manifest-D44OkoLk.js";
7
+ import { n as parseSupabaseManifest } from "./manifest-BoCYBbQL.js";
8
8
  import { t as parseCatalog } from "./parse-CORUNcCo.js";
9
- import { r as pushedPolicy } from "./pushed-policy-Bi5-il4C.js";
10
- import { n as runCatalog } from "./catalog-Y4CjN8NA.js";
9
+ import { r as pushedPolicy } from "./pushed-policy-DJoyBZsd.js";
10
+ import { n as runCatalog } from "./catalog-BJu0A15r.js";
11
11
  import { n as httpRequest, t as authFailure } from "./http-dptLQzPP.js";
12
12
  import { a as pushAuth, l as cloudUrl, n as cliRuntime, u as firstNonEmpty } from "./auth-BxXHxWRy.js";
13
13
  import "./manifest-json-CAGzls-C.js";
@@ -1,4 +1,4 @@
1
- import { D as Policy, Er as Condition, In as Grantee, W as WireValidity, b as GrantMeta, f as BreakGlassSpec, in as SnapshotScope, qn as AppObligation, s as ApprovalRequirement, y as GrantLimit } from "./policy-types-rNfz7t0M.js";
1
+ import { D as Policy, Er as Condition, In as Grantee, W as WireValidity, b as GrantMeta, f as BreakGlassSpec, in as SnapshotScope, qn as AppObligation, s as ApprovalRequirement, y as GrantLimit } from "./policy-types-CCBrL7me.js";
2
2
  import { t as JsonSchemaNode } from "./json-schema-BfXgnRNT.js";
3
3
  //#region src/catalog/pushed-policy.d.ts
4
4
  /**
@@ -1,9 +1,9 @@
1
1
  import { t as compact } from "./compact-CAf557ZB.js";
2
2
  import { n as freezeDeep } from "./freeze-jjan0lCv.js";
3
3
  import { n as PermDockValidationError } from "./validation-error-CYg2kJEw.js";
4
- import { i as wireValidity } from "./validity-Buc7w8E9.js";
5
4
  import { n as RFC3339_PATTERN } from "./time-nR1JesoH.js";
6
- import { n as snapshotScopes } from "./instance-snapshot-D_dGTq--.js";
5
+ import { i as wireValidity } from "./validity-IcjQSR7I.js";
6
+ import { n as snapshotScopes } from "./instance-snapshot-LPNBG9np.js";
7
7
  import { n as copyJson, r as forbiddenKeyPath, t as checkSchema } from "./json-schema-BPGa-RjQ.js";
8
8
  //#region src/catalog/pushed-policy.ts
9
9
  const strings = {
@@ -1,9 +1,9 @@
1
- import { c as requiredPlans } from "../errors-D_JIQJYb.js";
2
- import { i as describe } from "../describe-DVobr5FX.js";
3
- import { _ as TenantView, a as ClientPermDock, c as GateMode, d as PermissionState, f as ProtectedActionHandle, g as SubjectView, h as RolesOptions, i as ApprovalState, l as GateView, o as ClientStatus, p as ProtectedActionView, r as ApprovalHandle, s as FilterResult, u as PermissionSet, v as ActionResult, y as ProtectedAction } from "../store-DSyjHD5-.js";
1
+ import { c as requiredPlans } from "../errors-CXxQwtbZ.js";
2
+ import { i as describe } from "../describe-CazEjtOH.js";
3
+ import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, u as PermissionOutcome, v as TenantView, y as ActionResult } from "../store-core-CDabEiO9.js";
4
4
  import { a as broadcastChannelRefresh, c as visibilityRefresh, i as authzChangeRefresh, n as EventSourceRefreshOptions, o as eventSourceRefresh, r as RefreshTrigger, s as focusRefresh, t as AuthzChangeRefresh } from "../refresh-on-L9UOwATg.js";
5
- import { n as PermDockProviderProps, r as ProtectedProps, t as PermDockDefaults } from "../types-BpxdxaRD.js";
5
+ import { n as PermDockProviderProps, r as ProtectedProps, t as PermDockDefaults } from "../types-BSGrzDPi.js";
6
6
  import { t as approvalHeaders } from "../headers-B9jQxjtW.js";
7
- import { a as useAssignableRoles, c as useGate, d as usePermission, f as usePermissions, g as useTenant, h as useSubject, i as useAssignablePermissions, l as useMemberships, m as useRoles, n as Protected, o as useDescribe, p as useRefreshOn, r as useApproval, s as useFilter, t as useProtectedAction, u as usePermDock } from "../protected-action-C4aj1KjO.js";
8
- import { t as PermDockProvider } from "../provider-B-1DlOGM.js";
9
- export { type ActionResult, type ApprovalHandle, type ApprovalState, type AuthzChangeRefresh, type ClientPermDock, type ClientStatus, type EventSourceRefreshOptions, type FilterResult, type GateMode, type GateView, type PermDockDefaults, PermDockProvider, type PermDockProviderProps, type PermissionSet, type PermissionState, Protected, type ProtectedAction, type ProtectedActionHandle, type ProtectedActionView, type ProtectedProps, type RefreshTrigger, type RolesOptions, type SubjectView, type TenantView, approvalHeaders, authzChangeRefresh, broadcastChannelRefresh, describe, eventSourceRefresh, focusRefresh, requiredPlans, useApproval, useAssignablePermissions, useAssignableRoles, useDescribe, useFilter, useGate, useMemberships, usePermDock, usePermission, usePermissions, useProtectedAction, useRefreshOn, useRoles, useSubject, useTenant, visibilityRefresh };
7
+ import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, m as useRefreshOn, n as Protected, o as useDecision, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-DGuJNiMA.js";
8
+ import { t as PermDockProvider } from "../provider-yIM04TwN.js";
9
+ export { type ActionResult, type ApprovalHandle, type ApprovalState, type AuthzChangeRefresh, type ClientPermDock, type ClientStatus, type EventSourceRefreshOptions, type FilterResult, type GateMode, type GateView, type PermDockDefaults, PermDockProvider, type PermDockProviderProps, type PermissionOutcome, type PermissionSet, type PermissionState, Protected, type ProtectedAction, type ProtectedActionHandle, type ProtectedActionView, type ProtectedProps, type RefreshTrigger, type RolesOptions, type SubjectView, type TenantView, approvalHeaders, authzChangeRefresh, broadcastChannelRefresh, describe, eventSourceRefresh, focusRefresh, requiredPlans, useApproval, useAssignablePermissions, useAssignableRoles, useDecision, useDescribe, useFilter, useGate, useMemberships, usePermDock, usePermission, usePermissions, useProtectedAction, useRefreshOn, useRoles, useSubject, useTenant, visibilityRefresh };
@@ -2,7 +2,7 @@
2
2
  import { r as requiredPlans } from "../problem-details-CLDgX1KV.js";
3
3
  import { n as describe } from "../describe-BZAlPHxT.js";
4
4
  import { r as approvalHeaders } from "../protected-action-OpOxtTsN.js";
5
- import { a as eventSourceRefresh, i as broadcastChannelRefresh, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-CXv6BHH6.js";
6
- import { a as useAssignableRoles, c as useGate, d as usePermission, f as usePermissions, g as useTenant, h as useSubject, i as useAssignablePermissions, l as useMemberships, m as useRoles, n as Protected, o as useDescribe, p as useRefreshOn, r as useApproval, s as useFilter, t as useProtectedAction, u as usePermDock } from "../protected-action-E7Sdt_Dt.js";
7
- import { t as PermDockProvider } from "../provider-DKO9KHua.js";
8
- export { PermDockProvider, Protected, approvalHeaders, authzChangeRefresh, broadcastChannelRefresh, describe, eventSourceRefresh, focusRefresh, requiredPlans, useApproval, useAssignablePermissions, useAssignableRoles, useDescribe, useFilter, useGate, useMemberships, usePermDock, usePermission, usePermissions, useProtectedAction, useRefreshOn, useRoles, useSubject, useTenant, visibilityRefresh };
5
+ import { a as eventSourceRefresh, i as broadcastChannelRefresh, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-COLWAd1K.js";
6
+ import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, m as useRefreshOn, n as Protected, o as useDecision, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-BWvZjjyt.js";
7
+ import { t as PermDockProvider } from "../provider-B085HEOf.js";
8
+ export { PermDockProvider, Protected, approvalHeaders, authzChangeRefresh, broadcastChannelRefresh, describe, eventSourceRefresh, focusRefresh, requiredPlans, useApproval, useAssignablePermissions, useAssignableRoles, useDecision, useDescribe, useFilter, useGate, useMemberships, usePermDock, usePermission, usePermissions, useProtectedAction, useRefreshOn, useRoles, useSubject, useTenant, visibilityRefresh };
@@ -0,0 +1,12 @@
1
+ import { c as requiredPlans } from "../errors-CXxQwtbZ.js";
2
+ import { i as describe } from "../describe-CazEjtOH.js";
3
+ import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, u as PermissionOutcome, v as TenantView, y as ActionResult } from "../store-core-CDabEiO9.js";
4
+ import { a as broadcastChannelRefresh, c as visibilityRefresh, i as authzChangeRefresh, n as EventSourceRefreshOptions, o as eventSourceRefresh, r as RefreshTrigger, s as focusRefresh, t as AuthzChangeRefresh } from "../refresh-on-L9UOwATg.js";
5
+ import { n as PermDockProviderProps, r as ProtectedProps, t as PermDockDefaults } from "../types-BSGrzDPi.js";
6
+ import { t as approvalHeaders } from "../headers-B9jQxjtW.js";
7
+ import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, m as useRefreshOn, n as Protected, o as useDecision, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-DGuJNiMA.js";
8
+ import { ReactElement } from "react";
9
+ //#region src/react/lazy-provider.d.ts
10
+ export declare function PermDockProvider(props: PermDockProviderProps): ReactElement;
11
+ //#endregion
12
+ export { type ActionResult, type ApprovalHandle, type ApprovalState, type AuthzChangeRefresh, type ClientPermDock, type ClientStatus, type EventSourceRefreshOptions, type FilterResult, type GateMode, type GateView, type PermDockDefaults, type PermDockProviderProps, type PermissionOutcome, type PermissionSet, type PermissionState, Protected, type ProtectedAction, type ProtectedActionHandle, type ProtectedActionView, type ProtectedProps, type RefreshTrigger, type RolesOptions, type SubjectView, type TenantView, approvalHeaders, authzChangeRefresh, broadcastChannelRefresh, describe, eventSourceRefresh, focusRefresh, requiredPlans, useApproval, useAssignablePermissions, useAssignableRoles, useDecision, useDescribe, useFilter, useGate, useMemberships, usePermDock, usePermission, usePermissions, useProtectedAction, useRefreshOn, useRoles, useSubject, useTenant, visibilityRefresh };
@@ -0,0 +1,36 @@
1
+ "use client";
2
+ import { r as requiredPlans } from "../problem-details-CLDgX1KV.js";
3
+ import { n as describe } from "../describe-BZAlPHxT.js";
4
+ import { r as approvalHeaders } from "../protected-action-OpOxtTsN.js";
5
+ import { a as eventSourceRefresh, i as broadcastChannelRefresh, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-COLWAd1K.js";
6
+ import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, m as useRefreshOn, n as Protected, o as useDecision, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-BWvZjjyt.js";
7
+ import { t as ProviderWith } from "../provider-with-DobrMx1N.js";
8
+ import { jsx } from "react/jsx-runtime";
9
+ //#region src/client/evaluator-lazy.ts
10
+ const loaded = {};
11
+ /**
12
+ * Fetches the evaluator on first use. The `import()` is a chunk of its own: a
13
+ * page that only reads `typeLevel` answers never downloads it.
14
+ */
15
+ function lazyEvaluator() {
16
+ return {
17
+ build: () => loaded.build,
18
+ load: () => {
19
+ loaded.promise ??= (async () => {
20
+ loaded.build = (await import("../evaluator-mHAoYEkk.js")).buildInstance;
21
+ })();
22
+ return loaded.promise;
23
+ }
24
+ };
25
+ }
26
+ //#endregion
27
+ //#region src/react/lazy-provider.tsx
28
+ const evaluator = lazyEvaluator();
29
+ function PermDockProvider(props) {
30
+ return /* @__PURE__ */ jsx(ProviderWith, {
31
+ ...props,
32
+ evaluator
33
+ });
34
+ }
35
+ //#endregion
36
+ export { PermDockProvider, Protected, approvalHeaders, authzChangeRefresh, broadcastChannelRefresh, describe, eventSourceRefresh, focusRefresh, requiredPlans, useApproval, useAssignablePermissions, useAssignableRoles, useDecision, useDescribe, useFilter, useGate, useMemberships, usePermDock, usePermission, usePermissions, useProtectedAction, useRefreshOn, useRoles, useSubject, useTenant, visibilityRefresh };
@@ -1,2 +1,2 @@
1
- import { t as PermDockProvider } from "../provider-B-1DlOGM.js";
1
+ import { t as PermDockProvider } from "../provider-yIM04TwN.js";
2
2
  export { PermDockProvider };
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export { t as PermDockProvider } from "../provider-DKO9KHua.js";
2
+ export { t as PermDockProvider } from "../provider-B085HEOf.js";
@@ -1,15 +1,15 @@
1
- import { $t as LocalSnapshotRows, Qt as LocalSnapshotManifest, Xt as LocalRowColumn, Yt as LocalMembershipRows, Zt as LocalRowValue, en as Snapshot, pr as CustomRole, qt as Instant, ut as SnapshotSource, vr as Membership } from "../policy-types-rNfz7t0M.js";
1
+ import { $t as LocalSnapshotRows, Qt as LocalSnapshotManifest, Xt as LocalRowColumn, Yt as LocalMembershipRows, Zt as LocalRowValue, en as Snapshot, pr as CustomRole, qt as Instant, ut as SnapshotSource, vr as Membership } from "../policy-types-CCBrL7me.js";
2
2
  import { w as Permission } from "../vocabulary-DeZvUaTw.js";
3
- import { c as requiredPlans } from "../errors-D_JIQJYb.js";
4
- import { i as describe } from "../describe-DVobr5FX.js";
5
- import { t as parseLocalSnapshotManifest } from "../parse-local-manifest-BaCqsqwC.js";
6
- import { _ as TenantView, a as ClientPermDock, c as GateMode, d as PermissionState, f as ProtectedActionHandle, g as SubjectView, h as RolesOptions, i as ApprovalState, l as GateView, o as ClientStatus, p as ProtectedActionView, r as ApprovalHandle, s as FilterResult, t as ClientStore, u as PermissionSet, v as ActionResult, y as ProtectedAction } from "../store-DSyjHD5-.js";
3
+ import { c as requiredPlans } from "../errors-CXxQwtbZ.js";
4
+ import { i as describe } from "../describe-CazEjtOH.js";
5
+ import { t as parseLocalSnapshotManifest } from "../parse-local-manifest-DzZOzDsK.js";
6
+ import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, t as ClientStore, v as TenantView, y as ActionResult } from "../store-core-CDabEiO9.js";
7
7
  import { i as authzChangeRefresh, n as EventSourceRefreshOptions, o as eventSourceRefresh, r as RefreshTrigger, t as AuthzChangeRefresh } from "../refresh-on-L9UOwATg.js";
8
- import { r as ProtectedProps, t as PermDockDefaults } from "../types-BpxdxaRD.js";
8
+ import { r as ProtectedProps, t as PermDockDefaults } from "../types-BSGrzDPi.js";
9
9
  import { t as approvalHeaders } from "../headers-B9jQxjtW.js";
10
- import { a as useAssignableRoles, c as useGate, d as usePermission, f as usePermissions, g as useTenant, h as useSubject, i as useAssignablePermissions, l as useMemberships, m as useRoles, n as Protected, o as useDescribe, r as useApproval, s as useFilter, t as useProtectedAction, u as usePermDock } from "../protected-action-C4aj1KjO.js";
10
+ import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, n as Protected, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-DGuJNiMA.js";
11
11
  import { n as RealtimeRefreshClient, t as RealtimeRefreshChannel } from "../client-JK504UCq.js";
12
- import { a as SubscribeOnline, i as SubscribeForeground, n as ReactNativePermDockProviderProps, r as SnapshotStorage, t as NativeRevalidate } from "../types-NikV1pND.js";
12
+ import { a as SubscribeOnline, i as SubscribeForeground, n as ReactNativePermDockProviderProps, r as SnapshotStorage, t as NativeRevalidate } from "../types-DM0o1YyJ.js";
13
13
  import { ReactElement } from "react";
14
14
  //#region src/react-native/guards.d.ts
15
15
  /**
@@ -3,19 +3,20 @@ import { r as isRecord, t as compact } from "../compact-CAf557ZB.js";
3
3
  import { n as freezeDeep } from "../freeze-jjan0lCv.js";
4
4
  import { r as requiredPlans } from "../problem-details-CLDgX1KV.js";
5
5
  import { n as describe } from "../describe-BZAlPHxT.js";
6
- import { r as heldRoleNames, t as emptySnapshot } from "../from-snapshot-oR_N97dM.js";
7
6
  import { n as isThenable } from "../thenable-BNSM1U2R.js";
8
- import { o as flattenGrantee } from "../grantee-Dke-9rd1.js";
7
+ import { o as flattenGrantee } from "../grantee-OG4klcNr.js";
9
8
  import { h as secondsAt, m as rfc3339 } from "../time-nR1JesoH.js";
10
9
  import { d as scopeList, o as normalizeMemberships, p as tenantOf$1, s as resolveScope } from "../scopes-gdH__vDZ.js";
11
10
  import { d as resolveActiveTenant, r as isMembershipExpired } from "../tenancy-BlxY5T0q.js";
12
- import { a as bindConditionRefs, n as parseSnapshot } from "../snapshot-C2j96x97.js";
11
+ import { a as heldRoleNames, n as parseSnapshot, s as bindConditionRefs } from "../snapshot-BcHYtUIg.js";
13
12
  import { t as byCodePoint } from "../compare-DTfyUunF.js";
13
+ import { t as emptySnapshot } from "../snapshot-empty-BoPBFoB8.js";
14
14
  import { t as parseLocalSnapshotManifest } from "../parse-local-manifest-Ce2N-Opr.js";
15
15
  import { r as approvalHeaders } from "../protected-action-OpOxtTsN.js";
16
- import { a as eventSourceRefresh, c as isJws, n as storeOf, r as authzChangeRefresh, t as adapterStore } from "../store-options-CXv6BHH6.js";
16
+ import { t as eagerEvaluator } from "../evaluator-eager-DvmrpdZt.js";
17
+ import { a as eventSourceRefresh, c as isJws, n as storeOf, r as authzChangeRefresh, t as adapterStore } from "../store-options-COLWAd1K.js";
17
18
  import { a as PermDockUiContext, i as PermDockStoreContext, n as useKeyed, t as useLiveOptions } from "../live-options-BBIT68le.js";
18
- import { a as useAssignableRoles, c as useGate, d as usePermission, f as usePermissions, g as useTenant, h as useSubject, i as useAssignablePermissions, l as useMemberships, m as useRoles, n as Protected, o as useDescribe, r as useApproval, s as useFilter, t as useProtectedAction, u as usePermDock } from "../protected-action-E7Sdt_Dt.js";
19
+ import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, n as Protected, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-BWvZjjyt.js";
19
20
  import { r as authzUserTopic, t as AUTHZ_EVENT } from "../authz-topic-Dbc-HDOS.js";
20
21
  import { useEffect, useMemo, useRef } from "react";
21
22
  import { jsx } from "react/jsx-runtime";
@@ -1064,7 +1065,7 @@ function nativeStore(options) {
1064
1065
  onClear: options.onClear,
1065
1066
  approvalInterval: options.approvalInterval,
1066
1067
  refreshOn: options.refreshOn
1067
- }), snapshot, {
1068
+ }), snapshot, eagerEvaluator, {
1068
1069
  server: false,
1069
1070
  stale: revalidates && (fromStorage !== void 0 || waiting),
1070
1071
  onSnapshot: (next, nextTenant, raw) => {
@@ -1,4 +1,4 @@
1
- import { l as ReplayStore } from "./types-Cq2rvv-C.js";
1
+ import { l as ReplayStore } from "./types-CdXM6qPc.js";
2
2
  //#region src/ssf/replay.d.ts
3
3
  declare function memoryReplayStore(): ReplayStore;
4
4
  //#endregion