permdock 0.18.0 → 0.19.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 (311) hide show
  1. package/dist/a2a/index.d.ts +4 -4
  2. package/dist/a2a/index.js +6 -6
  3. package/dist/{adoption-scan-CxExBYSJ.js → adoption-scan-C_VQ-J2f.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 +4 -4
  8. package/dist/{approval-normalize-CUjgSsOl.js → approval-normalize-hlfO9BJv.js} +8 -1
  9. package/dist/{approval-policies-oNnckT12.d.ts → approval-policies-CYqdqAob.d.ts} +1 -1
  10. package/dist/{approval-prompt-Bg7gDSqd.d.ts → approval-prompt-BxYbwOAU.d.ts} +1 -1
  11. package/dist/approvals/index.d.ts +4 -4
  12. package/dist/approvals/index.js +3 -3
  13. package/dist/{approvals-DGId_hgJ.js → approvals-CuXILe52.js} +9 -6
  14. package/dist/{arazzo--riLuGY0.js → arazzo-4vfaXj0U.js} +2 -2
  15. package/dist/{arazzo-CEDbb-uM.js → arazzo-Dc969CA2.js} +1 -1
  16. package/dist/astro/index.d.ts +4 -4
  17. package/dist/astro/index.js +2 -2
  18. package/dist/{audience-B4YR9UpV.js → audience-GCXRRAeZ.js} +1 -1
  19. package/dist/authzen/index.d.ts +5 -5
  20. package/dist/authzen/index.js +3 -3
  21. package/dist/{automation-Bfa_wD1h.d.ts → automation-BJiJT_Xr.d.ts} +1 -1
  22. package/dist/better-auth/index.d.ts +1 -1
  23. package/dist/better-auth/index.js +1 -1
  24. package/dist/better-supabase/index.d.ts +20 -17
  25. package/dist/better-supabase/index.js +10 -10
  26. package/dist/{better-supabase-BJtQ-kNf.js → better-supabase-ayun1IKE.js} +38 -4
  27. package/dist/{bind-B4pMH9bm.js → bind-BnKPWRrE.js} +4 -4
  28. package/dist/{bind-DR6ku3A9.d.ts → bind-SpRxR213.d.ts} +7 -7
  29. package/dist/{body-CJQwYVa8.js → body-C9JbIoqb.js} +1 -1
  30. package/dist/{build-instance-BFMFQdE_.js → build-instance-DrIbZVnm.js} +1 -1
  31. package/dist/{capability-BZ_veK9o.d.ts → capability-Ci2S8Cdu.d.ts} +1 -1
  32. package/dist/{casbin-bKC1FpEx.js → casbin-C1TQqWkK.js} +1 -1
  33. package/dist/{casbin-DCQHkkyj.js → casbin-ChbpgfNR.js} +1 -1
  34. package/dist/catalog/index.d.ts +5 -5
  35. package/dist/catalog/index.js +5 -5
  36. package/dist/catalog-BTPySmbp.js +1 -0
  37. package/dist/{catalog-zzNuR3sY.js → catalog-DjDc87R2.js} +1 -1
  38. package/dist/{catalog-doc-C4DGfJCO.js → catalog-doc-nrgfbh8I.js} +2 -1
  39. package/dist/{catalog-D1fw8qif.js → catalog-s0waIrfY.js} +2 -2
  40. package/dist/{challenge-B2O2OLEk.js → challenge-D57I5G1k.js} +1 -1
  41. package/dist/chat/index.d.ts +1 -1
  42. package/dist/chat/index.js +2 -2
  43. package/dist/chat-sdk/index.d.ts +3 -3
  44. package/dist/claude-agent/index.d.ts +3 -3
  45. package/dist/claude-agent/index.js +2 -2
  46. package/dist/clerk/index.d.ts +2 -2
  47. package/dist/cli/bin.js +1 -1
  48. package/dist/cli/index.d.ts +5 -5
  49. package/dist/cli/index.js +3 -3
  50. package/dist/{client-CH7vzSAY.d.ts → client-JK504UCq.d.ts} +15 -2
  51. package/dist/cloud/index.d.ts +8 -8
  52. package/dist/cloud/index.js +2 -2
  53. package/dist/{cloud-C0vXBmLG.js → cloud-Dgj4FiEG.js} +2 -2
  54. package/dist/{codemod-C-L0w-u7.js → codemod-DN_fBt43.js} +2 -2
  55. package/dist/{codemod-eYI1FbeJ.js → codemod-WWxwgM77.js} +1 -1
  56. package/dist/{collect-CU85z6Ta.js → collect-DMQ6Sxr6.js} +2 -2
  57. package/dist/{collect-D878zLDP.js → collect-DN_x7hvV.js} +1 -1
  58. package/dist/collect-eSTXOZDC.js +1 -0
  59. package/dist/compile/index.d.ts +1 -1
  60. package/dist/{compile-DBm0ub4p.d.ts → compile-RaRUQhmD.d.ts} +2 -2
  61. package/dist/{completion-Dauc6pVT.js → completion-DnmUvCw0.js} +1 -1
  62. package/dist/{config-DWp2PucY.js → config-CmuEoob8.js} +1 -1
  63. package/dist/{config-COHmivz9.js → config-D2oXUwos.js} +8 -5
  64. package/dist/{config-report-DKpFm5ID.js → config-report-BVm8Dhbj.js} +2 -2
  65. package/dist/{config-shape-tsxHx71E.js → config-shape-D9paLhEX.js} +5 -1
  66. package/dist/{connection-B72dg5Q2.js → connection-QFsv-kbh.js} +1 -1
  67. package/dist/{context-DeammvFl.js → context-YhyXyqBI.js} +3 -2
  68. package/dist/convex/index.d.ts +4 -4
  69. package/dist/convex/index.js +3 -3
  70. package/dist/{core-D87h2kpR.d.ts → core-DNRWXyj4.d.ts} +2 -2
  71. package/dist/{core-B8sLve3z.js → core-ZIWZBi6-.js} +5 -5
  72. package/dist/{create-BzwjZuRS.d.ts → create-0B_bjJc-.d.ts} +7 -7
  73. package/dist/{create-BrQXL-Wt.d.ts → create-BECB6fns.d.ts} +6 -6
  74. package/dist/{create-C-tm3KIF.js → create-CAZyXZFC.js} +4 -4
  75. package/dist/{create-3A7J9KRR.js → create-CegYmYHu.js} +69 -29
  76. package/dist/{create-CtoT1lIQ.d.ts → create-DJ_5REgN.d.ts} +4 -4
  77. package/dist/decide-set-DXEPepY1.js +100 -0
  78. package/dist/{delegation-input-FTxMK3ji.js → delegation-input-DcXhiMkf.js} +1 -1
  79. package/dist/delivery/index.d.ts +4 -4
  80. package/dist/delivery/index.js +1 -1
  81. package/dist/{denied-text-DlIxt8fh.d.ts → denied-text-CF-2h8Vz.d.ts} +1 -1
  82. package/dist/{describe-BKtC_8PG.d.ts → describe-DyN-HX6o.d.ts} +1 -1
  83. package/dist/{diff-BnNHqtHj.js → diff-BOU7sSnv.js} +4 -4
  84. package/dist/{diff-CBCzOTWM.js → diff-BrmvcPXk.js} +1 -1
  85. package/dist/{doctor-CkYKCuX7.js → doctor-BhhNMkU8.js} +242 -65
  86. package/dist/{doctor-xUpR5rXg.js → doctor-CL1OigyD.js} +15 -5
  87. package/dist/drizzle/index.d.ts +3 -3
  88. package/dist/elysia/index.d.ts +4 -4
  89. package/dist/elysia/index.js +4 -4
  90. package/dist/{errors-TpzkEKgJ.d.ts → errors-POWcCXy7.d.ts} +1 -1
  91. package/dist/{errors-B6R_lg2a.js → errors-ynga1EQy.js} +1 -1
  92. package/dist/{evaluate-Czbj7thS.js → evaluate-CrKkjgXS.js} +2 -2
  93. package/dist/{evaluations-CisTTURl.d.ts → evaluations--rkKhMqY.d.ts} +3 -3
  94. package/dist/{evaluations-h3KoJAPa.js → evaluations-CNMVJVD6.js} +3 -3
  95. package/dist/eve/index.d.ts +4 -4
  96. package/dist/eve/index.js +3 -3
  97. package/dist/express/index.d.ts +4 -4
  98. package/dist/express/index.js +3 -3
  99. package/dist/fastify/index.d.ts +4 -4
  100. package/dist/fastify/index.js +3 -3
  101. package/dist/{fetch-adapter-DH-NJPbL.js → fetch-adapter-Bm1iZolz.js} +3 -3
  102. package/dist/{fetch-adapter-BdmfnbJM.d.ts → fetch-adapter-Bq4AB3W2.d.ts} +2 -2
  103. package/dist/{fields-CrjL6A49.js → fields-COvJbUva.js} +1 -1
  104. package/dist/{from-snapshot-DMlSSo9b.js → from-snapshot-DHnb8Fh4.js} +2 -2
  105. package/dist/{gen-mf-MRwVr.js → gen-D0NqzeOP.js} +2 -2
  106. package/dist/{gen-BEIN-DRM.js → gen-DonXr9Hg.js} +1 -1
  107. package/dist/h3/index.d.ts +4 -4
  108. package/dist/h3/index.js +3 -3
  109. package/dist/{helpers-DmqGy63f.js → helpers-D-MXwkOF.js} +28 -4
  110. package/dist/hono/index.d.ts +4 -4
  111. package/dist/hono/index.js +5 -5
  112. package/dist/{hosted-BFNXwcjd.d.ts → hosted-H1xp5Dfw.d.ts} +1 -1
  113. package/dist/{hosted-waouw2V-.js → hosted-iOGBI_ER.js} +4 -3
  114. package/dist/{import-C1XXpG_m.js → import-C8ffNykt.js} +2 -2
  115. package/dist/{import-DObwEota.js → import-DNaFHm53.js} +1 -1
  116. package/dist/{index-CVGio3cH.d.ts → index-B9-ZXNa-.d.ts} +4 -4
  117. package/dist/{index-BhnOOnp9.d.ts → index-C2pmTzFx.d.ts} +2 -2
  118. package/dist/{index-Dfv9Toct.d.ts → index-C5Tfpjex.d.ts} +1 -1
  119. package/dist/{index-CdUTE6qd.d.ts → index-Cm6mHTZ-.d.ts} +16 -10
  120. package/dist/{index-rFp6X_QP.d.ts → index-DLlWORcK.d.ts} +5 -5
  121. package/dist/{index-CdMOd-GY.d.ts → index-DZnpRB0q.d.ts} +24 -6
  122. package/dist/index.d.ts +17 -17
  123. package/dist/index.js +15 -15
  124. package/dist/{init-DS3PEsCG.js → init-4aRjat-S.js} +3 -3
  125. package/dist/{init-CNJ8lLjo.js → init-QfBfkrGu.js} +1 -1
  126. package/dist/{instance-options-2sFGSdsf.d.ts → instance-options-D6hyIKJF.d.ts} +1 -1
  127. package/dist/{instance-snapshot-BWa71my8.js → instance-snapshot-DXxcizAb.js} +3 -3
  128. package/dist/jwt/index.d.ts +4 -4
  129. package/dist/{kernel-30Z2zM_d.js → kernel-B2UCK36Z.js} +7 -7
  130. package/dist/kysely/index.d.ts +3 -3
  131. package/dist/{login-DUVzBLh7.js → login-Cg1la2yJ.js} +3 -3
  132. package/dist/{login-BgK5Jloo.js → login-lPtJIjbO.js} +1 -1
  133. package/dist/{manifest-wclLWBVH.js → manifest-CDhdXgf6.js} +38 -37
  134. package/dist/{map-error-BH16Ah8P.js → map-error-EOhahOVA.js} +3 -3
  135. package/dist/mcp/index.d.ts +57 -17
  136. package/dist/mcp/index.js +199 -53
  137. package/dist/{module-values-B8tNIxdd.js → module-values-BYuNtdK5.js} +1 -1
  138. package/dist/nest/index.d.ts +4 -4
  139. package/dist/nest/index.js +5 -5
  140. package/dist/next/index.d.ts +12 -12
  141. package/dist/next/index.js +8 -8
  142. package/dist/next/plugin.d.ts +1 -1
  143. package/dist/next/plugin.js +1 -1
  144. package/dist/node/index.d.ts +4 -4
  145. package/dist/node/index.js +2 -2
  146. package/dist/openai/index.d.ts +4 -4
  147. package/dist/openai/index.js +3 -3
  148. package/dist/openapi/index.d.ts +2 -2
  149. package/dist/{openapi-C4gFqeRz.js → openapi-C3BIVLTd.js} +2 -2
  150. package/dist/{openapi-zMEB9qxn.js → openapi-Cr0B3p2h.js} +2 -2
  151. package/dist/orpc/index.d.ts +21 -17
  152. package/dist/orpc/index.js +18 -11
  153. package/dist/otel/index.d.ts +3 -3
  154. package/dist/{output-BFWLER4r.js → output-DYq_o2dM.js} +1 -1
  155. package/dist/{ownership-D-mIt-w0.js → ownership-CrmMERZv.js} +1 -1
  156. package/dist/{parse-UTC-sDrt.js → parse-CXTT7hBq.js} +1 -1
  157. package/dist/{parse-local-manifest-DvjTQNuO.d.ts → parse-local-manifest-CQjRmzrw.d.ts} +1 -1
  158. package/dist/{parse-local-manifest-CxcSMQgl.js → parse-local-manifest-Ce2N-Opr.js} +1 -1
  159. package/dist/pdp/index.d.ts +3 -3
  160. package/dist/pdp/index.js +2 -2
  161. package/dist/{permdock-ffY4CMd9.d.ts → permdock-B45vPQb4.d.ts} +4 -4
  162. package/dist/{permdock-D-_WrdKu.js → permdock-DeOfonuG.js} +6 -6
  163. package/dist/{permissions-B3ggI88M.js → permissions-Rk9_Gm04.js} +1 -1
  164. package/dist/{policy-cV_wwPb8.js → policy-DTmkP72P.js} +2 -2
  165. package/dist/{policy-from-catalog-B68hGC0S.js → policy-from-catalog-Cljh_B5H.js} +6 -6
  166. package/dist/{policy-BtKSApSt.d.ts → policy-re2Oag8s.d.ts} +1 -1
  167. package/dist/{policy-types-D-GwfQTc.d.ts → policy-types-Ky7P23CP.d.ts} +24 -2
  168. package/dist/{postgrest-D84p5dbA.d.ts → postgrest-pwxeaeOW.d.ts} +1 -1
  169. package/dist/powersync-B96MUB_Q.js +1 -0
  170. package/dist/{powersync-9PYOE1wt.js → powersync-BoqBik-G.js} +77 -38
  171. package/dist/{powersync-DStC_g0B.js → powersync-PKC4yT62.js} +2 -2
  172. package/dist/prisma/index.d.ts +2 -2
  173. package/dist/{problem-BVLHFK33.js → problem-BWP1l86g.js} +8 -7
  174. package/dist/{protected-action-B40tU3yP.js → protected-action-CD1HXwQK.js} +2 -2
  175. package/dist/{protected-action-Ds_EUY8B.d.ts → protected-action-DHPqBLhz.d.ts} +5 -5
  176. package/dist/{provider-OtnIiFWm.d.ts → provider-C-CbGEii.d.ts} +1 -1
  177. package/dist/{provider-CY4TSSJo.js → provider-qESIf_C0.js} +5 -2
  178. package/dist/{provider-store-BQP_pp8s.js → provider-store-BTHGJH9j.js} +3 -2
  179. package/dist/pull-BjdsS9x1.js +1 -0
  180. package/dist/{pull-DLP4I1Kl.js → pull-FG0Tf8aF.js} +3 -3
  181. package/dist/{push-BSb8j1EW.js → push-CI5G7lRS.js} +3 -3
  182. package/dist/{pushed-policy-Ck3FZcoy.d.ts → pushed-policy-B94r9DlN.d.ts} +1 -1
  183. package/dist/{pushed-policy-BecMsTtM.js → pushed-policy-DftSiyD3.js} +1 -1
  184. package/dist/react/index.d.ts +6 -6
  185. package/dist/react/index.js +3 -3
  186. package/dist/react/provider-client.d.ts +1 -1
  187. package/dist/react/provider-client.js +1 -1
  188. package/dist/react-native/index.d.ts +28 -14
  189. package/dist/react-native/index.js +57 -37
  190. package/dist/{replay-E5X9E1lC.d.ts → replay-BqmXcP7x.d.ts} +1 -1
  191. package/dist/{request-context-DM6_jY1n.js → request-context-uvaevbBu.js} +1 -1
  192. package/dist/resend/index.d.ts +4 -4
  193. package/dist/resend/index.js +2 -2
  194. package/dist/{resolve-names-CBl4r4_r.js → resolve-names-Dg8560iu.js} +2 -2
  195. package/dist/{rls-DGBL-jDY.js → rls-CJbWbxXv.js} +19 -13
  196. package/dist/{rls-pAHGYgTb.js → rls-DJSczevJ.js} +1 -1
  197. package/dist/{role-builder-CMW4wWzn.js → role-builder-C_2kWB_x.js} +1 -1
  198. package/dist/rpc-D7cDHIVE.d.ts +22 -0
  199. package/dist/{rpc-KwX_Jcxz.js → rpc-m5hPklf-.js} +16 -6
  200. package/dist/run-4m-TyVTD.js +1 -0
  201. package/dist/{run-B7lv3NuK.js → run-BigMDvGR.js} +3 -3
  202. package/dist/{run-ticket-DPaD27_r.d.ts → run-ticket-DRA3POCY.d.ts} +2 -2
  203. package/dist/{saas-B8H1MsQ3.js → saas-BHeoBqbW.js} +4 -4
  204. package/dist/{scan-0r3OZqqK.js → scan-BKLwCSVV.js} +1 -1
  205. package/dist/{schema-CuX70xgH.js → schema-BlnU_TzE.js} +4 -0
  206. package/dist/{schema-B_9tXrbG.js → schema-CLuBlCCr.js} +1 -1
  207. package/dist/scim/index.d.ts +1 -1
  208. package/dist/server/index.d.ts +10 -10
  209. package/dist/server/index.js +5 -5
  210. package/dist/{server-types-3OnXjZ2D.d.ts → server-types-CwpJe664.d.ts} +31 -13
  211. package/dist/{sink-ogbVkyeo.d.ts → sink-7Lrch8dn.d.ts} +2 -2
  212. package/dist/{skills-B4MPRxQd.js → skills-CyD_3eoi.js} +1 -1
  213. package/dist/{skills-C9sTD70r.js → skills-D42EyC8G.js} +1 -1
  214. package/dist/{snapshot-DN_8J27z.js → snapshot-DHPih65J.js} +2 -1
  215. package/dist/{snapshot-cache-B4YvlGG_.d.ts → snapshot-cache-B9weL8NE.d.ts} +1 -1
  216. package/dist/solid/index.d.ts +5 -5
  217. package/dist/solid/index.js +3 -2
  218. package/dist/solid-start/index.d.ts +4 -4
  219. package/dist/solid-start/index.js +3 -3
  220. package/dist/{sources-xdQShLDU.d.ts → sources-4d3fl7cq.d.ts} +1 -1
  221. package/dist/{src-Brzq_0in.js → src-HDDf9Eum.js} +28 -13
  222. package/dist/ssf/index.d.ts +3 -3
  223. package/dist/ssf/index.js +2 -2
  224. package/dist/{standard-webhooks-BfPaZ6T1.d.ts → standard-webhooks-BGi8pUwo.d.ts} +2 -2
  225. package/dist/{store-DmVqy74I.js → store-CSOsXd5s.js} +8 -6
  226. package/dist/{store-DYeB-_U3.d.ts → store-CjJaZI_g.d.ts} +31 -4
  227. package/dist/{store-options--zWn48PK.js → store-options-CDvoX52-.js} +31 -8
  228. package/dist/{stores-EPul_8MN.d.ts → stores-Cam6GGAV.d.ts} +5 -5
  229. package/dist/{stores-BYFopOm1.js → stores-PpYVQ5yF.js} +1 -1
  230. package/dist/{stream-CDvF0sJm.js → stream-DQ3rbO3J.js} +1 -1
  231. package/dist/supabase/client.d.ts +1 -1
  232. package/dist/supabase/client.js +32 -4
  233. package/dist/supabase/index.d.ts +10 -5
  234. package/dist/supabase/index.js +1 -1
  235. package/dist/supabase/middleware.d.ts +5 -5
  236. package/dist/supabase/middleware.js +5 -5
  237. package/dist/{supabase-BiViJpQ4.js → supabase-CVZuytCC.js} +2 -2
  238. package/dist/{supabase-CogTyJH2.js → supabase-DBuZK2pP.js} +2 -2
  239. package/dist/supabase-hook-2M-EpoRp.js +1 -0
  240. package/dist/{supabase-hook-DX38Hj8h.js → supabase-hook-Btk56XD6.js} +151 -55
  241. package/dist/{supautils-BGf6zRvM.js → supautils-lwXmXPP_.js} +7 -7
  242. package/dist/svelte/index.d.ts +5 -5
  243. package/dist/svelte/index.js +3 -3
  244. package/dist/svelte/runtime.d.ts +3 -3
  245. package/dist/svelte/runtime.js +1 -1
  246. package/dist/svelte/source.d.ts +5 -5
  247. package/dist/svelte/source.js +2 -2
  248. package/dist/sveltekit/index.d.ts +4 -4
  249. package/dist/sveltekit/index.js +2 -2
  250. package/dist/{tables-BfOk0ymL.js → tables-B72q9UFD.js} +1 -1
  251. package/dist/tanstack-start/index.d.ts +4 -4
  252. package/dist/tanstack-start/index.js +2 -2
  253. package/dist/terminal/index.d.ts +5 -5
  254. package/dist/terminal/index.js +4 -4
  255. package/dist/testing/core.d.ts +1 -1
  256. package/dist/testing/core.js +1 -1
  257. package/dist/testing/fixtures/index.d.ts +1 -1
  258. package/dist/testing/fixtures/index.js +1 -1
  259. package/dist/testing/index.d.ts +23 -23
  260. package/dist/testing/index.js +22 -22
  261. package/dist/testing/saas/index.d.ts +3 -3
  262. package/dist/testing/saas/index.js +2 -2
  263. package/dist/testing/saas/permissions.js +1 -1
  264. package/dist/trpc/index.d.ts +15 -8
  265. package/dist/trpc/index.js +23 -19
  266. package/dist/{type-helpers-i1EJ3Eb1.d.ts → type-helpers-CDxxNswo.d.ts} +1 -1
  267. package/dist/{types-CqcsNCaN.d.ts → types--HfnkawU.d.ts} +13 -1
  268. package/dist/{types-NYoj8JBm.d.ts → types-7Vlz1Wi2.d.ts} +1 -0
  269. package/dist/{types-B8qUkGja.d.ts → types-BVn1w_0o.d.ts} +2 -2
  270. package/dist/{types-DmbfLu2p.d.ts → types-BlYPxJDR.d.ts} +9 -4
  271. package/dist/{types-D19MK4t-.d.ts → types-Bwdumeos.d.ts} +3 -3
  272. package/dist/{types-3Y8UpFkF.d.ts → types-BwuNGQRm.d.ts} +68 -4
  273. package/dist/{types-D-JO7lh8.d.ts → types-CChFKY10.d.ts} +5 -5
  274. package/dist/{types-CDVXR6YD.d.ts → types-Do4yihST.d.ts} +1 -1
  275. package/dist/{types-CCEeSCMB.d.ts → types-Do8qBcRO.d.ts} +3 -3
  276. package/dist/{types-o1vu6Ks3.d.ts → types-OLSfBLa5.d.ts} +4 -4
  277. package/dist/{types-DGf_cpKF.d.ts → types-g0Vk9k2c.d.ts} +2 -2
  278. package/dist/{types-Ck1KOfug.d.ts → types-oaqeYKQu.d.ts} +2 -2
  279. package/dist/unplugin/index.d.ts +1 -1
  280. package/dist/unplugin/index.js +1 -1
  281. package/dist/{usage-DYtRVkcN.js → usage-BLhhEPcZ.js} +1 -1
  282. package/dist/{usage-DC0UKe6C.js → usage-C-wta3rx.js} +4 -4
  283. package/dist/usage-Csc_ZRd0.js +1 -0
  284. package/dist/{validation-error-Dx8PipbO.d.ts → validation-error-AhCHeeff.d.ts} +1 -1
  285. package/dist/{verify-Bpj0hauG.js → verify-CaaZlnP5.js} +78 -57
  286. package/dist/{version-cache-DzNKWiI6.d.ts → version-cache-Ddvrfn1R.d.ts} +1 -1
  287. package/dist/vue/index.d.ts +5 -5
  288. package/dist/vue/index.js +2 -2
  289. package/dist/{waiter-NK_UuZbb.d.ts → waiter-CROiWRIP.d.ts} +2 -2
  290. package/dist/watch-CS69ftMP.js +1 -0
  291. package/dist/{watch-CBHADqBH.js → watch-Dz2LNM1R.js} +2 -2
  292. package/dist/webmcp/index.d.ts +1 -1
  293. package/dist/{where-scope-BKrqUDVk.js → where-scope-BAyOsPQW.js} +1 -1
  294. package/dist/{who-can-KhVWMxtf.js → who-can-jPfTABf-.js} +1 -1
  295. package/dist/workflow/index.d.ts +3 -3
  296. package/dist/workflow/index.js +2 -2
  297. package/dist/workflow-sdk/index.d.ts +4 -4
  298. package/dist/{wrap-BHGA-SMM.d.ts → wrap-C-4o-Dpy.d.ts} +2 -2
  299. package/package.json +1 -1
  300. package/schemas/catalog-v1.json +8 -0
  301. package/skills/permdock-agents/references/runtimes.md +2 -2
  302. package/skills/permdock-wire/references/adapters.md +1 -1
  303. package/dist/catalog-Caqhbdix.js +0 -1
  304. package/dist/collect-KCtOigxx.js +0 -1
  305. package/dist/powersync-xNRlC4jN.js +0 -1
  306. package/dist/pull-UBjDnf4b.js +0 -1
  307. package/dist/run-UPbacxPg.js +0 -1
  308. package/dist/stream-W2RuUYly.d.ts +0 -13
  309. package/dist/supabase-hook-BN46IrVI.js +0 -1
  310. package/dist/usage-Cl5eb-e1.js +0 -1
  311. package/dist/watch-OYwAPCzx.js +0 -1
@@ -1,4 +1,4 @@
1
- import { a as nonEmptyOr } from "./output-BFWLER4r.js";
1
+ import { a as nonEmptyOr } from "./output-DYq_o2dM.js";
2
2
  import { t as applyFiles } from "./files-CfiRtQ-m.js";
3
3
  import { n as isIdentifier, t as emitPolicyModule } from "./policy-module-xym9fnSq.js";
4
4
  import { existsSync, readFileSync } from "node:fs";
@@ -16,7 +16,7 @@ const casbinImport = defineLeaf({
16
16
  ...outFlag
17
17
  },
18
18
  async run(ctx, { flags }) {
19
- const { runCasbinImport } = await import("./casbin-bKC1FpEx.js");
19
+ const { runCasbinImport } = await import("./casbin-C1TQqWkK.js");
20
20
  return runCasbinImport({
21
21
  cwd: ctx.cwd,
22
22
  model: given(flags.model),
@@ -1,8 +1,8 @@
1
- import { E as Policy, _r as Principal, o as ApprovalRequirement } from "../policy-types-D-GwfQTc.js";
2
- import { c as checkHostedGrant, n as HostedGrantCheck, o as PolicyDocument } from "../hosted-BFNXwcjd.js";
3
- import { a as CatalogDocument, c as CatalogOperation, d as CatalogRole, f as CatalogScope, h as CatalogValidity, i as CatalogDelegation, l as CatalogPermission, m as CatalogUsage, n as CatalogApproval, o as CatalogGrant, p as CatalogSupportAccess, r as CatalogBreakGlass, s as CatalogOAuthScope, t as CatalogActivation, u as CatalogResource } from "../types-NYoj8JBm.js";
4
- import { a as CatalogFinding, i as CatalogEventData } from "../sink-ogbVkyeo.js";
5
- import { a as pushedPolicy, i as parsePushedPolicy, n as PushedGrant, r as PushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-Ck3FZcoy.js";
1
+ import { D as Policy, s as ApprovalRequirement, yr as Principal } from "../policy-types-Ky7P23CP.js";
2
+ import { c as checkHostedGrant, n as HostedGrantCheck, o as PolicyDocument } from "../hosted-H1xp5Dfw.js";
3
+ import { a as CatalogDocument, c as CatalogOperation, d as CatalogRole, f as CatalogScope, h as CatalogValidity, i as CatalogDelegation, l as CatalogPermission, m as CatalogUsage, n as CatalogApproval, o as CatalogGrant, p as CatalogSupportAccess, r as CatalogBreakGlass, s as CatalogOAuthScope, t as CatalogActivation, u as CatalogResource } from "../types-7Vlz1Wi2.js";
4
+ import { a as CatalogFinding, i as CatalogEventData } from "../sink-7Lrch8dn.js";
5
+ import { a as pushedPolicy, i as parsePushedPolicy, n as PushedGrant, r as PushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-B94r9DlN.js";
6
6
  import { StandardSchemaV1 } from "@standard-schema/spec";
7
7
  //#region src/catalog/drift.d.ts
8
8
  /**
@@ -3,12 +3,12 @@ import { n as freezeDeep } from "../freeze-jjan0lCv.js";
3
3
  import { a as getResource, n as findPermission } from "../permission-registry-B8tYxPIt.js";
4
4
  import { d as isSelfParented } from "../resource-relations-8-pCScBO.js";
5
5
  import { _ as listPlans, m as findRole } from "../grantee-Dke-9rd1.js";
6
- import { n as declaredRoleNames } from "../policy-cV_wwPb8.js";
7
- import { i as hostedGrantDrops, n as codeApprovals, r as declaredGrantee, t as checkHostedGrant } from "../hosted-waouw2V-.js";
8
- import { n as rowConditionKeys, t as parseCatalog } from "../parse-UTC-sDrt.js";
6
+ import { n as declaredRoleNames } from "../policy-DTmkP72P.js";
7
+ import { i as hostedGrantDrops, n as codeApprovals, r as declaredGrantee, t as checkHostedGrant } from "../hosted-iOGBI_ER.js";
8
+ import { n as rowConditionKeys, t as parseCatalog } from "../parse-CXTT7hBq.js";
9
9
  import { t as operationFindings } from "../operation-findings-CVwJHEu_.js";
10
- import { n as resourceSchemaFromJson, t as policyFromCatalog } from "../policy-from-catalog-B68hGC0S.js";
11
- import { n as parsePushedPolicy, r as pushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-BecMsTtM.js";
10
+ import { n as resourceSchemaFromJson, t as policyFromCatalog } from "../policy-from-catalog-Cljh_B5H.js";
11
+ import { n as parsePushedPolicy, r as pushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-DftSiyD3.js";
12
12
  //#region src/catalog/drift.ts
13
13
  /**
14
14
  * The finding a drop reason becomes; `null` for a reason the catalog did not
@@ -0,0 +1 @@
1
+ export { t as catalogFile, n as runCatalog } from "./catalog-s0waIrfY.js";
@@ -30,7 +30,7 @@ const catalog = defineLeaf({
30
30
  ...checkFlag
31
31
  },
32
32
  async run(ctx, { flags }) {
33
- const { catalogFile, runCatalog } = await import("./catalog-Caqhbdix.js");
33
+ const { catalogFile, runCatalog } = await import("./catalog-BTPySmbp.js");
34
34
  const result = await runCatalog({
35
35
  cwd: ctx.cwd,
36
36
  config: ctx.config,
@@ -5,7 +5,7 @@ import { m as findRole, v as listRoles } from "./grantee-Dke-9rd1.js";
5
5
  import { i as wireValidity } from "./validity-Buc7w8E9.js";
6
6
  import { t as byCodePoint } from "./compare-DTfyUunF.js";
7
7
  import { t as catalogFingerprint } from "./catalog-fingerprint-e6aCWosn.js";
8
- import { t as catalogSchema } from "./schema-CuX70xgH.js";
8
+ import { t as catalogSchema } from "./schema-BlnU_TzE.js";
9
9
  import { t as policyRowConditionKeys } from "./row-conditions-BAGHOmVq.js";
10
10
  import { c as generatorBanner, n as CATALOG_SCHEMA } from "./version-DMQ0dnN5.js";
11
11
  //#region src/cli/catalog-doc.ts
@@ -91,6 +91,7 @@ function catalogApproval(approval) {
91
91
  combine: approval.combine,
92
92
  stages: approval.stages,
93
93
  mode: approval.mode,
94
+ fallback: approval.fallback,
94
95
  staleOn: approval.staleOn,
95
96
  quorum: approval.quorum,
96
97
  ttl: approval.ttl,
@@ -1,9 +1,9 @@
1
1
  import { r as isRecord } from "./compact-CAf557ZB.js";
2
2
  import { r as listSourceFiles, t as defaultSrcPath } from "./files-BSjrtIHw.js";
3
- import { a as catalogSchemaDocument, n as catalogForCompare, o as formatCatalogJson, r as catalogForDrift, s as formatCatalogMarkdown, t as buildCatalog } from "./catalog-doc-C4DGfJCO.js";
3
+ import { a as catalogSchemaDocument, n as catalogForCompare, o as formatCatalogJson, r as catalogForDrift, s as formatCatalogMarkdown, t as buildCatalog } from "./catalog-doc-nrgfbh8I.js";
4
4
  import { a as loadModule, i as loadConfiguredPolicy, r as leavesOf, s as pickNamed, t as asPermissionTree } from "./load-BaEamml-.js";
5
5
  import { t as loadConfiguredOperations } from "./catalog-operations-BD22drQf.js";
6
- import { i as scanSources, r as runCollect } from "./collect-D878zLDP.js";
6
+ import { i as scanSources, r as runCollect } from "./collect-DN_x7hvV.js";
7
7
  import { n as fileSummary, t as applyFiles } from "./files-CfiRtQ-m.js";
8
8
  import { existsSync, readFileSync } from "node:fs";
9
9
  import { resolve } from "node:path";
@@ -1,7 +1,7 @@
1
1
  import { r as isRecord, t as compact } from "./compact-CAf557ZB.js";
2
2
  import { n as freezeDeep } from "./freeze-jjan0lCv.js";
3
3
  import { i as dateAt, p as nowSeconds } from "./time-nR1JesoH.js";
4
- import { u as policyDocumentFromClaims } from "./hosted-waouw2V-.js";
4
+ import { u as policyDocumentFromClaims } from "./hosted-iOGBI_ER.js";
5
5
  import { l as isApprovalErrorCode, s as ApprovalError, t as APPROVAL_HEADER } from "./types-CcUXciSj.js";
6
6
  import { h as toCloudEvent, l as isAbsoluteUri } from "./sink-D9_vh372.js";
7
7
  import { n as parseCatalogEventData, t as catalogFingerprint } from "./catalog-fingerprint-e6aCWosn.js";
@@ -1,2 +1,2 @@
1
- import { a as ChatCommandResult, c as createPermDock, d as SubjectFromChatOptions, f as isChatAuthor, i as ChatCommandContext, l as ChatAuthor, n as ChatActionResult, o as ChatPermDock, p as subjectFromChat, r as ChatCommand, s as ChatPermDockOptions, t as ChatAction, u as ChatPrincipal } from "../create-CtoT1lIQ.js";
1
+ import { a as ChatCommandResult, c as createPermDock, d as SubjectFromChatOptions, f as isChatAuthor, i as ChatCommandContext, l as ChatAuthor, n as ChatActionResult, o as ChatPermDock, p as subjectFromChat, r as ChatCommand, s as ChatPermDockOptions, t as ChatAction, u as ChatPrincipal } from "../create-DJ_5REgN.js";
2
2
  export { type ChatAction, type ChatActionResult, type ChatAuthor, type ChatCommand, type ChatCommandContext, type ChatCommandResult, type ChatPermDock, type ChatPermDockOptions, type ChatPrincipal, type SubjectFromChatOptions, createPermDock, isChatAuthor, subjectFromChat };
@@ -2,9 +2,9 @@ import { t as compact } from "../compact-CAf557ZB.js";
2
2
  import { n as freezeDeep } from "../freeze-jjan0lCv.js";
3
3
  import { n as loadPrincipalByIdentity } from "../principal-source-C6N60GtM.js";
4
4
  import { f as nowMillis } from "../time-nR1JesoH.js";
5
- import { l as withApp, t as getPermDock } from "../permdock-D-_WrdKu.js";
5
+ import { l as withApp, t as getPermDock } from "../permdock-DeOfonuG.js";
6
6
  import { c as isApprovalError } from "../types-CcUXciSj.js";
7
- import { a as requestApproval, o as resolveApproval, s as resumeDecision } from "../helpers-DmqGy63f.js";
7
+ import { a as requestApproval, o as resolveApproval, s as resumeDecision } from "../helpers-D-MXwkOF.js";
8
8
  import { t as approvalPrompt } from "../approval-prompt-B8hQY69x.js";
9
9
  //#region src/chat/subject.ts
10
10
  function nonEmpty(value) {
@@ -1,6 +1,6 @@
1
- import { n as ApprovalUrl, t as ApprovalPrompt } from "../approval-prompt-Bg7gDSqd.js";
2
- import { l as ChatAuthor, n as ChatActionResult, o as ChatPermDock } from "../create-CtoT1lIQ.js";
3
- import { n as ChatTransport } from "../types-CCEeSCMB.js";
1
+ import { n as ApprovalUrl, t as ApprovalPrompt } from "../approval-prompt-BxYbwOAU.js";
2
+ import { l as ChatAuthor, n as ChatActionResult, o as ChatPermDock } from "../create-DJ_5REgN.js";
3
+ import { n as ChatTransport } from "../types-Do8qBcRO.js";
4
4
  import { ActionEvent, Author, CardElement } from "chat";
5
5
  //#region src/chat-sdk/author.d.ts
6
6
  type ChatSdkAuthorOptions = {
@@ -1,6 +1,6 @@
1
- import { E as Policy, M as PolicyVocabulary, _r as Principal } from "../policy-types-D-GwfQTc.js";
2
- import { a as PermDock } from "../permdock-ffY4CMd9.js";
3
- import { o as AgentAdapterOptions, t as AgentPermDock } from "../create-BzwjZuRS.js";
1
+ import { D as Policy, N as PolicyVocabulary, yr as Principal } from "../policy-types-Ky7P23CP.js";
2
+ import { a as PermDock } from "../permdock-B45vPQb4.js";
3
+ import { o as AgentAdapterOptions, t as AgentPermDock } from "../create-0B_bjJc-.js";
4
4
  //#region src/claude-agent/create.d.ts
5
5
  /** Structural `McpServerProvenance` from `@anthropic-ai/claude-agent-sdk`. */
6
6
  type ClaudeMcpServer = {
@@ -1,6 +1,6 @@
1
1
  import { r as isRecord, t as compact } from "../compact-CAf557ZB.js";
2
- import { l as withApp } from "../permdock-D-_WrdKu.js";
3
- import { t as agentRuntime } from "../create-C-tm3KIF.js";
2
+ import { l as withApp } from "../permdock-DeOfonuG.js";
3
+ import { t as agentRuntime } from "../create-CAZyXZFC.js";
4
4
  //#region src/claude-agent/create.ts
5
5
  const MCP_PREFIX = "mcp__";
6
6
  function asInput(input) {
@@ -1,6 +1,6 @@
1
- import { K as CustomRoleSource, _r as Principal, yr as Subject } from "../policy-types-D-GwfQTc.js";
1
+ import { q as CustomRoleSource, xr as Subject, yr as Principal } from "../policy-types-Ky7P23CP.js";
2
2
  import { u as Permission } from "../permission-types-CAY-GU7e.js";
3
- import { s as RemotePdpCache } from "../types-B8qUkGja.js";
3
+ import { s as RemotePdpCache } from "../types-BVn1w_0o.js";
4
4
  import { t as ClaimsMap } from "../claims-map-D1Pb5oRq.js";
5
5
  import { StandardSchemaV1 } from "@standard-schema/spec";
6
6
  //#region src/clerk/types.d.ts
package/dist/cli/bin.js CHANGED
@@ -11,7 +11,7 @@ if (argv.length === 1 && (argv[0] === "--version" || argv[0] === "-v")) {
11
11
  const [{ isCi }, { trapSignals }, { run }, { streamHasColors }] = await Promise.all([
12
12
  import("../env-DJZrPjRi.js"),
13
13
  import("../signals-B1vHR3fN.js"),
14
- import("../run-UPbacxPg.js"),
14
+ import("../run-4m-TyVTD.js"),
15
15
  import("../style-DblOtSga.js")
16
16
  ]);
17
17
  const signals = trapSignals();
@@ -1,10 +1,10 @@
1
- import { E as Policy } from "../policy-types-D-GwfQTc.js";
1
+ import { D as Policy } from "../policy-types-Ky7P23CP.js";
2
2
  import { f as PermissionTree } from "../permission-types-CAY-GU7e.js";
3
3
  import { o as OperationMap } from "../operations-Ci_rT6Uo.js";
4
- import { a as CatalogDocument, d as CatalogRole, f as CatalogScope, l as CatalogPermission, m as CatalogUsage, n as CatalogApproval, p as CatalogSupportAccess, r as CatalogBreakGlass, t as CatalogActivation, u as CatalogResource } from "../types-NYoj8JBm.js";
5
- import { a as pushedPolicy, i as parsePushedPolicy, n as PushedGrant, r as PushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-Ck3FZcoy.js";
6
- import { _ as RlsSuspension, a as GenKind, c as RlsActiveRow, d as RlsDialect, f as RlsFunctionMapping, g as RlsSuspendedScope, h as RlsSuspendedMembership, i as GenConfig, l as RlsApiKeys, m as RlsMemberships, n as CliIo, o as PermDockConfig, p as RlsMembershipTable, r as CollectConfig, t as CatalogConfig, u as RlsConfig, v as RlsTarget, y as RunResult } from "../types-3Y8UpFkF.js";
7
- import { o as ResourceNameOf, r as PermissionKeyOf, s as ScopeNameOf, t as ActionNameOf } from "../type-helpers-i1EJ3Eb1.js";
4
+ import { a as CatalogDocument, d as CatalogRole, f as CatalogScope, l as CatalogPermission, m as CatalogUsage, n as CatalogApproval, p as CatalogSupportAccess, r as CatalogBreakGlass, t as CatalogActivation, u as CatalogResource } from "../types-7Vlz1Wi2.js";
5
+ import { a as pushedPolicy, i as parsePushedPolicy, n as PushedGrant, r as PushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-B94r9DlN.js";
6
+ import { _ as RlsSuspension, a as GenKind, c as RlsActiveRow, d as RlsDialect, f as RlsFunctionMapping, g as RlsSuspendedScope, h as RlsSuspendedMembership, i as GenConfig, l as RlsApiKeys, m as RlsMemberships, n as CliIo, o as PermDockConfig, p as RlsMembershipTable, r as CollectConfig, t as CatalogConfig, u as RlsConfig, v as RlsTarget, y as RunResult } from "../types-BwuNGQRm.js";
7
+ import { o as ResourceNameOf, r as PermissionKeyOf, s as ScopeNameOf, t as ActionNameOf } from "../type-helpers-CDxxNswo.js";
8
8
  //#region src/cli/catalog-path.d.ts
9
9
  /**
10
10
  * The absolute path `permdock collect` writes the catalog to: `collect.out`,
package/dist/cli/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { t as catalogPath } from "../catalog-path-CnI0XTFK.js";
2
- import { t as defineConfig } from "../config-COHmivz9.js";
3
- import { n as parsePushedPolicy, r as pushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-BecMsTtM.js";
2
+ import { t as defineConfig } from "../config-D2oXUwos.js";
3
+ import { n as parsePushedPolicy, r as pushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-DftSiyD3.js";
4
4
  import { c as parseGrantsMarker, l as parseHookMarker } from "../markers-BeHZ4x9Q.js";
5
- import { t as run } from "../run-B7lv3NuK.js";
5
+ import { t as run } from "../run-BigMDvGR.js";
6
6
  //#region src/cli/token-schemas.ts
7
7
  const ID = {
8
8
  type: "string",
@@ -16,9 +16,22 @@ type RealtimeRefreshClient<C extends RealtimeRefreshChannel = RealtimeRefreshCha
16
16
  }) => C;
17
17
  readonly removeChannel: (channel: C) => unknown;
18
18
  };
19
- type SupabaseRealtimeRefreshOptions = {
19
+ type SupabaseRealtimeRefreshOptions<C extends RealtimeRefreshChannel = RealtimeRefreshChannel> = {
20
20
  /** The signed-in user's id, the `sub` of their token. */
21
21
  readonly userId: string;
22
+ /**
23
+ * A channel on `authz:<userId>` the app already owns. The trigger binds the
24
+ * `changed` event to it and never subscribes or removes it; without it, the
25
+ * trigger is the only owner of the channel it opens and removes.
26
+ */
27
+ readonly channel?: C;
28
+ /**
29
+ * `subscribeForeground` from `permdock/react-native`, or any function of that
30
+ * shape. The trigger's own channel is removed when `active` is `false` and
31
+ * opened again on the return, followed by one `refresh()` for the bumps sent
32
+ * while it was away; an app-owned channel only gets the `refresh()`.
33
+ */
34
+ readonly foreground?: (listener: (active?: boolean) => void) => () => void;
22
35
  };
23
36
  /**
24
37
  * A `refreshOn` trigger on the user's private `authz:<uid>` Realtime topic,
@@ -27,6 +40,6 @@ type SupabaseRealtimeRefreshOptions = {
27
40
  * `supabase.hook.broadcast` lets each user join only their own topic. With
28
41
  * better-supabase, use `authzChangeRefresh` on `SessionProvider` instead.
29
42
  */
30
- declare function supabaseRealtimeRefresh<C extends RealtimeRefreshChannel>(client: RealtimeRefreshClient<C>, options: SupabaseRealtimeRefreshOptions): RefreshTrigger;
43
+ declare function supabaseRealtimeRefresh<C extends RealtimeRefreshChannel>(client: RealtimeRefreshClient<C>, options: SupabaseRealtimeRefreshOptions<C>): RefreshTrigger;
31
44
  //#endregion
32
45
  export { supabaseRealtimeRefresh as i, RealtimeRefreshClient as n, SupabaseRealtimeRefreshOptions as r, RealtimeRefreshChannel as t };
@@ -1,11 +1,11 @@
1
- import { Kt as Instant, cn as DecisionEvent, fn as DirectoryEvent, gt as TokenSigner, in as AccessEvent, ln as DeliveryChannel, mn as MembershipEvent, on as AutomationEvent, sn as CredentialEvent, un as DeliveryEvent } from "../policy-types-D-GwfQTc.js";
2
- import { m as ApprovalStore } from "../types-CqcsNCaN.js";
3
- import { i as CatalogEventData, l as CloudEventType, r as CLOUD_EVENT_TYPES, s as CloudEvent } from "../sink-ogbVkyeo.js";
4
- import { c as DeliveryTransport } from "../types-CCEeSCMB.js";
5
- import { a as CloudConnectionOptions, c as CloudOptions, i as CloudClient, l as CloudSignerOptions, n as CloudCatalog, o as CloudEndpointOptions, r as CloudCatalogPush, s as CloudEndpoints, t as CloudApproverOptions } from "../types-D-JO7lh8.js";
6
- import { n as ApprovalWaiter } from "../waiter-NK_UuZbb.js";
7
- import { l as ReplayStore } from "../types-Ck1KOfug.js";
8
- import { f as WebhookVerifier, r as WebhookFailureCause$1, s as WebhookJwks } from "../standard-webhooks-BfPaZ6T1.js";
1
+ import { _t as TokenSigner, cn as AutomationEvent, dn as DeliveryChannel, fn as DeliveryEvent, gn as MembershipEvent, ln as CredentialEvent, mn as DirectoryEvent, on as AccessEvent, qt as Instant, un as DecisionEvent } from "../policy-types-Ky7P23CP.js";
2
+ import { m as ApprovalStore } from "../types--HfnkawU.js";
3
+ import { i as CatalogEventData, l as CloudEventType, r as CLOUD_EVENT_TYPES, s as CloudEvent } from "../sink-7Lrch8dn.js";
4
+ import { c as DeliveryTransport } from "../types-Do8qBcRO.js";
5
+ import { a as CloudConnectionOptions, c as CloudOptions, i as CloudClient, l as CloudSignerOptions, n as CloudCatalog, o as CloudEndpointOptions, r as CloudCatalogPush, s as CloudEndpoints, t as CloudApproverOptions } from "../types-CChFKY10.js";
6
+ import { n as ApprovalWaiter } from "../waiter-CROiWRIP.js";
7
+ import { l as ReplayStore } from "../types-oaqeYKQu.js";
8
+ import { f as WebhookVerifier, r as WebhookFailureCause$1, s as WebhookJwks } from "../standard-webhooks-BGi8pUwo.js";
9
9
  //#region src/cloud/base-url.d.ts
10
10
  /**
11
11
  * The one base URL of PermDock Cloud. The platform issuer is this URL; its
@@ -5,14 +5,14 @@ import { h as secondsAt } from "../time-nR1JesoH.js";
5
5
  import { r as CLOUD_EVENT_TYPES } from "../sink-D9_vh372.js";
6
6
  import { i as parseCloudEventBatch, r as parseCloudEvent$1 } from "../catalog-fingerprint-e6aCWosn.js";
7
7
  import { n as readBodyText } from "../body-text-DQhcmqdY.js";
8
- import { l as problemResponse } from "../problem-BVLHFK33.js";
8
+ import { l as problemResponse } from "../problem-BWP1l86g.js";
9
9
  import { t as timeoutSignal } from "../timeout-D51niuQP.js";
10
10
  import { n as webhookVerifier } from "../standard-webhooks-D67a3nzk.js";
11
11
  import { c as stringField, n as discoverAuthorizationServer, r as parseToken } from "../device-BwbJNmb2.js";
12
12
  import { t as pollingApprovalWaiter } from "../waiter-aBLM63_f.js";
13
13
  import { i as isDeliveryTarget } from "../target-qdEAnnhU.js";
14
14
  import { t as CLOUD_BASE_URL } from "../base-url-BQbddZO5.js";
15
- import { a as isCompactJws, i as cloudEndpoints, n as cloud, o as resolveCloudEndpoints, r as cloudConnection, t as bearerChallenge } from "../challenge-B2O2OLEk.js";
15
+ import { a as isCompactJws, i as cloudEndpoints, n as cloud, o as resolveCloudEndpoints, r as cloudConnection, t as bearerChallenge } from "../challenge-D57I5G1k.js";
16
16
  import { n as randomToken, t as pkce } from "../pkce-CnmmYqUZ.js";
17
17
  //#region src/cloud/oauth-error.ts
18
18
  /**
@@ -41,7 +41,7 @@ const push = defineLeaf({
41
41
  },
42
42
  async run(ctx, { flags }) {
43
43
  const env = await withStdinSecret(ctx, "key", flags["key-stdin"], "PERMDOCK_CLOUD_KEY");
44
- return (await import("./push-BSb8j1EW.js")).runCloud({
44
+ return (await import("./push-CI5G7lRS.js")).runCloud({
45
45
  cwd: ctx.cwd,
46
46
  config: ctx.config,
47
47
  url: given(flags.url),
@@ -70,7 +70,7 @@ const pull = defineLeaf({
70
70
  },
71
71
  async run(ctx, { flags }) {
72
72
  const env = await withStdinSecret(ctx, "token", flags["token-stdin"], "PERMDOCK_CLOUD_TOKEN");
73
- return (await import("./pull-UBjDnf4b.js")).runCloudPull({
73
+ return (await import("./pull-BjdsS9x1.js")).runCloudPull({
74
74
  cwd: ctx.cwd,
75
75
  config: ctx.config,
76
76
  url: given(flags.url),
@@ -7,7 +7,7 @@ const codemod = defineLeaf({
7
7
  description: "The release to migrate to (0.5)",
8
8
  required: true,
9
9
  async complete() {
10
- return (await import("./codemod-eYI1FbeJ.js")).codemodVersions();
10
+ return (await import("./codemod-WWxwgM77.js")).codemodVersions();
11
11
  }
12
12
  }, {
13
13
  name: "paths",
@@ -22,7 +22,7 @@ const codemod = defineLeaf({
22
22
  }
23
23
  },
24
24
  async run(ctx, { flags, args, rest }) {
25
- return (await import("./codemod-eYI1FbeJ.js")).runCodemod({
25
+ return (await import("./codemod-WWxwgM77.js")).runCodemod({
26
26
  cwd: ctx.cwd,
27
27
  version: args["version"],
28
28
  paths: rest,
@@ -1,7 +1,7 @@
1
1
  import { n as CliError } from "./errors-BhRkoNS7.js";
2
2
  import { a as rel } from "./files-BSjrtIHw.js";
3
3
  import { t as beforeFirst } from "./text-BMFRfBqc.js";
4
- import { n as ROOT } from "./manifest-wclLWBVH.js";
4
+ import { n as ROOT } from "./manifest-CDhdXgf6.js";
5
5
  import { i as refuseDirty, t as applyFiles } from "./files-CfiRtQ-m.js";
6
6
  import { readFileSync, readdirSync, statSync } from "node:fs";
7
7
  import { basename, extname, join, resolve } from "node:path";
@@ -29,9 +29,9 @@ const collect = defineLeaf({
29
29
  };
30
30
  if (flags.watch) {
31
31
  if (flags.check) throw new CliError("usage", "collect: --watch writes the catalog; drop --check", { code: "invalid_value" });
32
- return (await import("./watch-OYwAPCzx.js")).watchCollect(ctx, overrides);
32
+ return (await import("./watch-CS69ftMP.js")).watchCollect(ctx, overrides);
33
33
  }
34
- const result = await (await import("./collect-KCtOigxx.js")).runCollect({
34
+ const result = await (await import("./collect-eSTXOZDC.js")).runCollect({
35
35
  cwd: ctx.cwd,
36
36
  config: ctx.config,
37
37
  collect: overrides,
@@ -1,6 +1,6 @@
1
1
  import { a as describeError } from "./errors-BhRkoNS7.js";
2
2
  import { a as rel, r as listSourceFiles, s as writeFileEnsuringDir, t as defaultSrcPath } from "./files-BSjrtIHw.js";
3
- import { n as catalogForCompare, o as formatCatalogJson, r as catalogForDrift, t as buildCatalog } from "./catalog-doc-C4DGfJCO.js";
3
+ import { n as catalogForCompare, o as formatCatalogJson, r as catalogForDrift, t as buildCatalog } from "./catalog-doc-nrgfbh8I.js";
4
4
  import { a as loadModule, i as loadConfiguredPolicy, r as leavesOf, s as pickNamed, t as asPermissionTree } from "./load-BaEamml-.js";
5
5
  import { t as loadConfiguredOperations } from "./catalog-operations-BD22drQf.js";
6
6
  import { t as catalogPath } from "./catalog-path-CnI0XTFK.js";
@@ -0,0 +1 @@
1
+ export { r as runCollect } from "./collect-DN_x7hvV.js";
@@ -1,3 +1,3 @@
1
1
  import { n as GraphSqlPart, r as RelationsMapping, t as GraphSql } from "../graph-sql-BwFC4Qjs.js";
2
- import { a as CompiledWhere, c as compileWhere, i as CompiledSql, l as escapeLike, n as CompiledCompare, o as MembershipTable, r as CompiledExists, s as MembershipsMapping, t as CompileWhereOptions } from "../compile-DBm0ub4p.js";
2
+ import { a as CompiledWhere, c as compileWhere, i as CompiledSql, l as escapeLike, n as CompiledCompare, o as MembershipTable, r as CompiledExists, s as MembershipsMapping, t as CompileWhereOptions } from "../compile-RaRUQhmD.js";
3
3
  export { type CompileWhereOptions, type CompiledCompare, type CompiledExists, type CompiledSql, type CompiledWhere, type GraphSql, type GraphSqlPart, type MembershipTable, type MembershipsMapping, type RelationsMapping, compileWhere, escapeLike };
@@ -1,6 +1,6 @@
1
- import { Kt as Instant, bn as Scope, wr as Condition, yr as Subject } from "./policy-types-D-GwfQTc.js";
1
+ import { Er as Condition, Sn as Scope, qt as Instant, xr as Subject } from "./policy-types-Ky7P23CP.js";
2
2
  import { b as ResourceNode } from "./permission-types-CAY-GU7e.js";
3
- import { f as WhereResult } from "./permdock-ffY4CMd9.js";
3
+ import { f as WhereResult } from "./permdock-B45vPQb4.js";
4
4
  import { r as RelationsMapping, t as GraphSql } from "./graph-sql-BwFC4Qjs.js";
5
5
  //#region src/conditions/compile.d.ts
6
6
  type MembershipTable = {
@@ -1,6 +1,6 @@
1
1
  import { n as CliError } from "./errors-BhRkoNS7.js";
2
2
  import { a as GLOBAL_FLAGS, i as suggestion } from "./args-iafbHiXn.js";
3
- import { a as resolve } from "./manifest-wclLWBVH.js";
3
+ import { a as resolve } from "./manifest-CDhdXgf6.js";
4
4
  import { t as defineLeaf } from "./command-L8EstFNm.js";
5
5
  //#region src/cli/core/completion.ts
6
6
  const SHELLS = [
@@ -10,7 +10,7 @@ const config = defineLeaf({
10
10
  ...failOnFlag
11
11
  },
12
12
  async run(ctx, { flags }) {
13
- const { runConfig } = await import("./config-report-DKpFm5ID.js");
13
+ const { runConfig } = await import("./config-report-BVm8Dhbj.js");
14
14
  return runConfig({
15
15
  cwd: ctx.cwd,
16
16
  config: ctx.config,
@@ -1,9 +1,9 @@
1
1
  import { r as isRecord } from "./compact-CAf557ZB.js";
2
2
  import { i as configError, n as CliError } from "./errors-BhRkoNS7.js";
3
- import { n as betterSupabaseConfig, r as betterSupabaseDefaults } from "./better-supabase-BJtQ-kNf.js";
4
- import { a as isSection, i as isModuleKey, n as MODULE_KEYS, o as kindOf, r as describeKinds, t as CONFIG_SHAPE } from "./config-shape-tsxHx71E.js";
3
+ import { n as betterSupabaseConfig, r as betterSupabaseDefaults } from "./better-supabase-ayun1IKE.js";
4
+ import { a as isSection, i as isModuleKey, n as MODULE_KEYS, o as kindOf, r as describeKinds, t as CONFIG_SHAPE } from "./config-shape-D9paLhEX.js";
5
5
  import { existsSync } from "node:fs";
6
- import { relative, resolve } from "node:path";
6
+ import { dirname, relative, resolve } from "node:path";
7
7
  //#region src/cli/project/config-schema.ts
8
8
  const TOP_LEVEL = /* @__PURE__ */ new Set([...Object.keys(MODULE_KEYS), ...Object.keys(CONFIG_SHAPE)]);
9
9
  function invalid(file, message) {
@@ -84,7 +84,10 @@ async function readConfig(cwd, fromFlag, options) {
84
84
  const parsed = parseConfig(hasModuleValue(raw) ? await traceValues(cwd, path, display, raw, options) : raw, display);
85
85
  return {
86
86
  ...parsed,
87
- config: betterSupabaseDefaults(parsed.config, await betterSupabaseConfig({ cwd })),
87
+ config: betterSupabaseDefaults(parsed.config, await betterSupabaseConfig({
88
+ cwd,
89
+ from: dirname(path)
90
+ })),
88
91
  file: path
89
92
  };
90
93
  }
@@ -92,7 +95,7 @@ function hasModuleValue(raw) {
92
95
  return isRecord(raw) && Object.keys(MODULE_KEYS).some((key) => isRecord(raw[key]));
93
96
  }
94
97
  async function traceValues(cwd, file, display, config, options) {
95
- const { traceModuleValues } = await import("./module-values-B8tNIxdd.js");
98
+ const { traceModuleValues } = await import("./module-values-BYuNtdK5.js");
96
99
  return traceModuleValues({
97
100
  cwd,
98
101
  file,
@@ -1,9 +1,9 @@
1
1
  import { a as rel, t as defaultSrcPath } from "./files-BSjrtIHw.js";
2
2
  import { r as CONFIG_REPORT_SCHEMA } from "./version-DMQ0dnN5.js";
3
3
  import { t as catalogPath } from "./catalog-path-CnI0XTFK.js";
4
- import { n as guessPermissions, t as barrelFile } from "./collect-D878zLDP.js";
4
+ import { n as guessPermissions, t as barrelFile } from "./collect-DN_x7hvV.js";
5
5
  import "./sources-C4vkzZJV.js";
6
- import { t as DOCS_BASE } from "./manifest-wclLWBVH.js";
6
+ import { t as DOCS_BASE } from "./manifest-CDhdXgf6.js";
7
7
  import { n as MIGRATION_DIRS, t as DEFAULT_SENSITIVE_ACTIONS } from "./constants-DcJABbLW.js";
8
8
  //#region src/cli/config-report.ts
9
9
  function configReport(input) {
@@ -37,6 +37,7 @@ const CONFIG_SHAPE = {
37
37
  roleValues: OBJECT,
38
38
  gucPrefix: STRING,
39
39
  out: STRING,
40
+ split: ARRAY,
40
41
  drizzle: OBJECT,
41
42
  prisma: OBJECT,
42
43
  schema: STRING,
@@ -92,7 +93,10 @@ const CONFIG_SHAPE = {
92
93
  migrations: ARRAY,
93
94
  claims: STRING,
94
95
  srcPath: ARRAY,
95
- sharedTables: ARRAY
96
+ sharedTables: ARRAY,
97
+ cacheHelpers: ARRAY,
98
+ ignore: ARRAY,
99
+ waivers: ARRAY
96
100
  },
97
101
  gen: {
98
102
  out: STRING,
@@ -1,5 +1,5 @@
1
1
  import { t as compact } from "./compact-CAf557ZB.js";
2
- import { r as PermDockRevokedError } from "./errors-B6R_lg2a.js";
2
+ import { r as PermDockRevokedError } from "./errors-ynga1EQy.js";
3
3
  import { a as durationOf, o as epochSeconds } from "./time-nR1JesoH.js";
4
4
  //#region src/server/connection.ts
5
5
  /** `setTimeout` stores delays in a signed 32-bit integer. */
@@ -1,6 +1,6 @@
1
1
  import { t as compact } from "./compact-CAf557ZB.js";
2
- import { l as isPromiseLike } from "./store-options--zWn48PK.js";
3
- import { n as switchTenant, t as providerStore } from "./provider-store-BQP_pp8s.js";
2
+ import { l as isPromiseLike } from "./store-options-CDvoX52-.js";
3
+ import { n as switchTenant, t as providerStore } from "./provider-store-BTHGJH9j.js";
4
4
  import { getContext, onDestroy, setContext } from "svelte";
5
5
  import { toStore } from "svelte/store";
6
6
  //#region src/svelte/context.ts
@@ -31,6 +31,7 @@ function connectSvelteStore(options) {
31
31
  const store = providerStore(compact({
32
32
  endpoint: options.endpoint,
33
33
  snapshotUrl: options.snapshotUrl,
34
+ fetchSnapshot: options.fetchSnapshot,
34
35
  approvals: options.approvals,
35
36
  tenant: typeof tenant === "function" ? tenant() : tenant,
36
37
  maxAge: options.maxAge,
@@ -1,8 +1,8 @@
1
- import { E as Policy, M as PolicyVocabulary, _r as Principal } from "../policy-types-D-GwfQTc.js";
1
+ import { D as Policy, N as PolicyVocabulary, yr as Principal } from "../policy-types-Ky7P23CP.js";
2
2
  import { u as Permission } from "../permission-types-CAY-GU7e.js";
3
- import { a as PermDock } from "../permdock-ffY4CMd9.js";
4
- import { a as ProblemDetails, r as PermDockDeniedError } from "../errors-TpzkEKgJ.js";
5
- import { t as InstanceOptions } from "../instance-options-2sFGSdsf.js";
3
+ import { a as PermDock } from "../permdock-B45vPQb4.js";
4
+ import { a as ProblemDetails, r as PermDockDeniedError } from "../errors-POWcCXy7.js";
5
+ import { t as InstanceOptions } from "../instance-options-D6hyIKJF.js";
6
6
  //#region src/convex/types.d.ts
7
7
  type ConvexContextLike = {
8
8
  readonly auth?: {
@@ -1,8 +1,8 @@
1
1
  import { t as compact } from "../compact-CAf557ZB.js";
2
2
  import { n as PermDockValidationError } from "../validation-error-CYg2kJEw.js";
3
- import { n as PermDockDeniedError, t as PermDockApprovalRequiredError } from "../errors-B6R_lg2a.js";
4
- import { l as withApp } from "../permdock-D-_WrdKu.js";
5
- import { n as resolveOrNull, t as buildInstance } from "../build-instance-BFMFQdE_.js";
3
+ import { n as PermDockDeniedError, t as PermDockApprovalRequiredError } from "../errors-ynga1EQy.js";
4
+ import { l as withApp } from "../permdock-DeOfonuG.js";
5
+ import { n as resolveOrNull, t as buildInstance } from "../build-instance-DrIbZVnm.js";
6
6
  import { n as tenantScope, t as actorFrom } from "../adapter-context-OHikyRqV.js";
7
7
  //#region src/convex/create.ts
8
8
  /**
@@ -1,6 +1,6 @@
1
- import { E as Policy, dr as CustomRole, gr as Membership, qn as Decision } from "./policy-types-D-GwfQTc.js";
1
+ import { D as Policy, Yn as Decision, pr as CustomRole, vr as Membership } from "./policy-types-Ky7P23CP.js";
2
2
  import { u as Permission } from "./permission-types-CAY-GU7e.js";
3
- import { f as WhereResult, o as PermDockOptions } from "./permdock-ffY4CMd9.js";
3
+ import { f as WhereResult, o as PermDockOptions } from "./permdock-B45vPQb4.js";
4
4
  //#region src/testing/policy-matrix.d.ts
5
5
  type MatrixOutcome = "granted" | "denied" | "approval-required";
6
6
  type MatrixCell = MatrixOutcome | {
@@ -1,10 +1,10 @@
1
- import { A as memoryCustomRoleSource } from "./src-Brzq_0in.js";
1
+ import { A as memoryCustomRoleSource } from "./src-HDDf9Eum.js";
2
2
  import { c as listPermissions } from "./permission-registry-B8tYxPIt.js";
3
3
  import { d as scopeList } from "./scopes-BSdYaGHs.js";
4
- import { y as membershipsClaim } from "./evaluate-Czbj7thS.js";
5
- import { n as parseSnapshot } from "./snapshot-DN_8J27z.js";
6
- import { n as fromSnapshot } from "./from-snapshot-DMlSSo9b.js";
7
- import { t as getPermDock } from "./permdock-D-_WrdKu.js";
4
+ import { y as membershipsClaim } from "./evaluate-CrKkjgXS.js";
5
+ import { n as parseSnapshot } from "./snapshot-DHPih65J.js";
6
+ import { n as fromSnapshot } from "./from-snapshot-DHnb8Fh4.js";
7
+ import { t as getPermDock } from "./permdock-DeOfonuG.js";
8
8
  import "./budget-BBCPDOGP.js";
9
9
  import { c as quoteSqlTable, n as defaultSqlCommand, o as quoteSqlIdent, t as SQL_IDENT } from "./sql-0WjxIp9g.js";
10
10
  //#region src/testing/policy-matrix.ts
@@ -1,13 +1,13 @@
1
- import { E as Policy, M as PolicyVocabulary, _r as Principal, pr as Delegation, qn as Decision, yr as Subject } from "./policy-types-D-GwfQTc.js";
1
+ import { D as Policy, N as PolicyVocabulary, Yn as Decision, hr as Delegation, xr as Subject, yr as Principal } from "./policy-types-Ky7P23CP.js";
2
2
  import { u as Permission } from "./permission-types-CAY-GU7e.js";
3
3
  import { t as Operation } from "./operations-Ci_rT6Uo.js";
4
- import { a as PermDock } from "./permdock-ffY4CMd9.js";
5
- import { m as ApprovalStore } from "./types-CqcsNCaN.js";
6
- import { t as InstanceOptions } from "./instance-options-2sFGSdsf.js";
4
+ import { a as PermDock } from "./permdock-B45vPQb4.js";
5
+ import { m as ApprovalStore } from "./types--HfnkawU.js";
6
+ import { t as InstanceOptions } from "./instance-options-D6hyIKJF.js";
7
7
  import { t as RequestContext } from "./request-context-C2_1lchh.js";
8
- import { n as PermDockWrap } from "./wrap-BHGA-SMM.js";
9
- import { o as OtelWrap } from "./types-DGf_cpKF.js";
10
- import { t as DeniedText } from "./denied-text-DlIxt8fh.js";
8
+ import { n as PermDockWrap } from "./wrap-C-4o-Dpy.js";
9
+ import { o as OtelWrap } from "./types-g0Vk9k2c.js";
10
+ import { t as DeniedText } from "./denied-text-CF-2h8Vz.js";
11
11
  //#region src/agent/step-up.d.ts
12
12
  /**
13
13
  * What the user can do to lift a denial: authenticate again with the `acr` and
@@ -1,10 +1,10 @@
1
- import { E as Policy, Jn as Denial, Kt as Instant, M as PolicyVocabulary, _r as Principal, _t as TokenVerifier, an as AuthEvent, gt as TokenSigner, qn as Decision } from "./policy-types-D-GwfQTc.js";
1
+ import { D as Policy, N as PolicyVocabulary, Xn as Denial, Yn as Decision, _t as TokenSigner, qt as Instant, sn as AuthEvent, vt as TokenVerifier, yr as Principal } from "./policy-types-Ky7P23CP.js";
2
2
  import { u as Permission } from "./permission-types-CAY-GU7e.js";
3
- import { _ as PrincipalSource, a as PermDock, n as DecideOptions, o as PermDockOptions } from "./permdock-ffY4CMd9.js";
4
- import { m as ApprovalStore } from "./types-CqcsNCaN.js";
5
- import { a as AutomationSource } from "./automation-Bfa_wD1h.js";
6
- import { n as ApprovalWaiter } from "./waiter-NK_UuZbb.js";
7
- import { c as RunResource, i as RunBinding, r as RunAutomation } from "./run-ticket-DPaD27_r.js";
3
+ import { _ as PrincipalSource, a as PermDock, n as DecideOptions, o as PermDockOptions } from "./permdock-B45vPQb4.js";
4
+ import { m as ApprovalStore } from "./types--HfnkawU.js";
5
+ import { a as AutomationSource } from "./automation-BJiJT_Xr.js";
6
+ import { n as ApprovalWaiter } from "./waiter-CROiWRIP.js";
7
+ import { c as RunResource, i as RunBinding, r as RunAutomation } from "./run-ticket-DRA3POCY.js";
8
8
  //#region src/workflow/create.d.ts
9
9
  type WorkflowPermDockOptions = PermDockOptions & {
10
10
  /** Signs the run tickets `start` mints. */