permdock 0.35.1 → 0.37.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 (339) hide show
  1. package/dist/a2a/index.d.ts +4 -4
  2. package/dist/a2a/index.js +2 -2
  3. package/dist/{adoption-scan-B_jVJgMK.js → adoption-scan-sufK4R53.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 +3 -3
  8. package/dist/app/index.d.ts +1 -1
  9. package/dist/app/index.js +1 -1
  10. package/dist/{approval-prompt-BKxaKtby.d.ts → approval-prompt-DCC4jp2s.d.ts} +1 -1
  11. package/dist/approvals/index.d.ts +3 -3
  12. package/dist/{arazzo-CKsNFj_5.js → arazzo-BxtTsEK2.js} +2 -2
  13. package/dist/{arazzo-D-fDq8Dv.js → arazzo-D0ctRNBU.js} +1 -1
  14. package/dist/astro/index.d.ts +4 -4
  15. package/dist/astro/index.js +1 -1
  16. package/dist/authzen/index.d.ts +6 -6
  17. package/dist/authzen/index.js +1 -1
  18. package/dist/{automation-C7WH5XcZ.d.ts → automation-DdarCGcn.d.ts} +1 -1
  19. package/dist/better-auth/index.d.ts +1 -1
  20. package/dist/better-supabase/index.d.ts +23 -14
  21. package/dist/better-supabase/index.js +8 -8
  22. package/dist/{bind-DPptdk31.js → bind-BNYcJ1D9.js} +2 -2
  23. package/dist/{bind-BnrOLyJq.d.ts → bind-CLvD4iLc.d.ts} +7 -7
  24. package/dist/{bsb-access-tags-1oVQZWKp.js → bsb-access-tags-LCaE48SK.js} +1 -1
  25. package/dist/{bsb-action-keys-BfZAwg-9.js → bsb-action-keys-LgveZiHJ.js} +2 -2
  26. package/dist/{bsb-actions-BHiyBxQZ.js → bsb-actions-DcDxQ_Ku.js} +3 -3
  27. package/dist/{budgets-hi-ecgEd.js → budgets-DFnMBpKz.js} +3 -3
  28. package/dist/{build-instance-DZEWYO-A.js → build-instance-BGpABVbM.js} +1 -1
  29. package/dist/bundle-size-CGd8wVIu.js +1 -0
  30. package/dist/{bundle-size-DbXV65Ix.js → bundle-size-Pgm7BB5m.js} +2 -2
  31. package/dist/{capability-BW-vAxJi.d.ts → capability-CsiHf7K3.d.ts} +1 -1
  32. package/dist/{casbin-CWfeuRmI.js → casbin-CMEY_GT4.js} +1 -1
  33. package/dist/{casbin-DqiTIceJ.js → casbin-CkLvGuUb.js} +1 -1
  34. package/dist/catalog/index.d.ts +4 -4
  35. package/dist/{catalog-CBPFyRv7.js → catalog-DYC6wfAj.js} +1 -1
  36. package/dist/{catalog-BExjL94D.js → catalog-SnaPhbZ1.js} +2 -2
  37. package/dist/{catalog-doc-D4g3nyFB.js → catalog-doc-BX97oFAn.js} +1 -1
  38. package/dist/catalog-e6QRd1JP.js +1 -0
  39. package/dist/chat/index.d.ts +1 -1
  40. package/dist/chat/index.js +1 -1
  41. package/dist/chat-sdk/index.d.ts +3 -3
  42. package/dist/claims-size-B0OvYh9z.js +1 -0
  43. package/dist/{claims-size-BUhCWS88.js → claims-size-ZiUJBn0r.js} +42 -8
  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/generate/watch-worker.js +1 -1
  49. package/dist/cli/index.d.ts +6 -6
  50. package/dist/cli/index.js +1 -1
  51. package/dist/cli/plugins/app.d.ts +1 -1
  52. package/dist/cli/plugins/app.js +1 -1
  53. package/dist/cli/plugins/better-supabase.d.ts +1 -1
  54. package/dist/cli/plugins/openapi.d.ts +1 -1
  55. package/dist/cli/plugins/openapi.js +1 -1
  56. package/dist/cli/plugins/powersync.d.ts +1 -1
  57. package/dist/cli/plugins/powersync.js +1 -1
  58. package/dist/cli/plugins/rls.d.ts +2 -2
  59. package/dist/cli/plugins/rls.js +1 -1
  60. package/dist/cli/plugins/schemas.d.ts +1 -1
  61. package/dist/cli/plugins/schemas.js +1 -1
  62. package/dist/cli/plugins/scim.d.ts +2 -2
  63. package/dist/cli/plugins/supabase-hook.d.ts +2 -2
  64. package/dist/cli/plugins/supabase-hook.js +1 -1
  65. package/dist/cli/plugins/supabase.d.ts +3 -3
  66. package/dist/cli/plugins/supabase.js +2 -2
  67. package/dist/cli/plugins/ui.d.ts +1 -1
  68. package/dist/cli/plugins/ui.js +1 -1
  69. package/dist/{client-subject-YAGMzRa-.d.ts → client-subject-DSF0IYGW.d.ts} +2 -2
  70. package/dist/cloud/index.d.ts +8 -8
  71. package/dist/{cloud-CvA_LeOt.js → cloud-N4IUVluH.js} +2 -2
  72. package/dist/{codemod-DduTfuWM.js → codemod-C9SQqhNG.js} +5 -5
  73. package/dist/{codemod-CA0MQoG4.js → codemod-D5a5oDJX.js} +1 -1
  74. package/dist/collect-C2_CKZ09.js +1 -0
  75. package/dist/{collect-Ba7ccZ23.js → collect-CcE8QBtZ.js} +2 -2
  76. package/dist/{collect-CPimbkC5.js → collect-Co-w8Eg2.js} +1 -1
  77. package/dist/compile/index.d.ts +1 -1
  78. package/dist/{compile-D-BULiHE.js → compile-BFV2WG67.js} +6 -6
  79. package/dist/{compile-CoUadQXF.d.ts → compile-CFV4wDo9.d.ts} +2 -2
  80. package/dist/{completion-DXdFnwLY.js → completion-BUWG1FGo.js} +1 -1
  81. package/dist/{config-BWYfHYvW.js → config-B3Bc6Tly.js} +1 -1
  82. package/dist/{config-report-pg-66Bdr.js → config-report-3IhYuH4v.js} +2 -2
  83. package/dist/{context-rioF4fQl.js → context-CNI2jibq.js} +1 -1
  84. package/dist/convex/index.d.ts +4 -4
  85. package/dist/convex/index.js +2 -2
  86. package/dist/{core-DIUrkFNL.js → core-BFR-V5CL.js} +2 -2
  87. package/dist/{core-DCMIztx1.d.ts → core-BOWoKYve.d.ts} +2 -2
  88. package/dist/{create-BRY0OtFV.js → create-BICq9l-p.js} +2 -2
  89. package/dist/{create-T_NqxU31.d.ts → create-BTthKNP0.d.ts} +7 -7
  90. package/dist/{create-iCwrnaFE.d.ts → create-BaKdh-D8.d.ts} +6 -6
  91. package/dist/{create-BMRnaZel.js → create-Dapy8DIK.js} +3 -3
  92. package/dist/{create-BYL8xCJB.d.ts → create-Y6DnNpuP.d.ts} +4 -4
  93. package/dist/{credentials-DzNrCNZY.d.ts → credentials-e872ACwg.d.ts} +2 -2
  94. package/dist/{custom-role-rebuild-wzN8pqDk.js → custom-role-rebuild-QFXiMHqJ.js} +1 -1
  95. package/dist/{define-permdock-Bhye7WSY.d.ts → define-permdock-8YZPaa9x.d.ts} +6 -6
  96. package/dist/{define-permdock-CO7YNrOF.js → define-permdock-B0q7Rg9b.js} +1 -1
  97. package/dist/delivery/index.d.ts +4 -4
  98. package/dist/{denied-text-DgNqDAPH.d.ts → denied-text-u4OC-MYV.d.ts} +1 -1
  99. package/dist/{describe-DEoWvk00.d.ts → describe-DLGEciCs.d.ts} +1 -1
  100. package/dist/{diff-CS8ks9h3.js → diff-BebUlh4Z.js} +1 -1
  101. package/dist/{diff-CkSZF7LO.js → diff-Sxca4_5q.js} +3 -3
  102. package/dist/{doctor-B55XfWdG.js → doctor-DP7HwXw_.js} +2 -2
  103. package/dist/{doctor-Cs0Xl46A.js → doctor-DhpDQ5C6.js} +102 -32
  104. package/dist/drizzle/index.d.ts +3 -3
  105. package/dist/elysia/index.d.ts +4 -4
  106. package/dist/elysia/index.js +1 -1
  107. package/dist/{errors-BliKrfmP.d.ts → errors-C35fh_2K.d.ts} +1 -1
  108. package/dist/{evaluations-CUkSKioS.d.ts → evaluations-BiZYgET4.d.ts} +3 -3
  109. package/dist/eve/index.d.ts +4 -4
  110. package/dist/eve/index.js +2 -2
  111. package/dist/{execute-Vfo2CAhv.js → execute-g-nMgY4t.js} +4 -4
  112. package/dist/{explain-D4ipf8IH.js → explain-BrvY9cXX.js} +1 -1
  113. package/dist/{explain-DISCeeYS.js → explain-CgKGadRa.js} +2 -2
  114. package/dist/express/index.d.ts +4 -4
  115. package/dist/express/index.js +1 -1
  116. package/dist/fastify/index.d.ts +4 -4
  117. package/dist/fastify/index.js +1 -1
  118. package/dist/{fetch-adapter-Ds2-fUUi.d.ts → fetch-adapter-CQSxXotl.d.ts} +2 -2
  119. package/dist/{fetch-adapter-BXQc4NoV.js → fetch-adapter-dmABnF7F.js} +1 -1
  120. package/dist/{fields-CwFej4gp.js → fields-CKX-qjWb.js} +1 -1
  121. package/dist/{gen-M_5UU5Ck.js → gen-CTRqv1H2.js} +4 -4
  122. package/dist/gen-D-orrO2e.js +1 -0
  123. package/dist/{gen-kind-DLz0P-TB.js → gen-kind-DLnQ-vCe.js} +1 -1
  124. package/dist/{generate-CNkkKAL-.js → generate-DcPnvokU.js} +94 -15
  125. package/dist/{generate-GCDLA8vW.js → generate-dbQzpEqb.js} +3 -3
  126. package/dist/{generate-options-O3mVjjcG.js → generate-options-4jvPn7w3.js} +9 -9
  127. package/dist/h3/index.d.ts +4 -4
  128. package/dist/h3/index.js +2 -2
  129. package/dist/{helper-calls-B5MOl99d.js → helper-calls-DN1PJcNY.js} +53 -1
  130. package/dist/hono/index.d.ts +4 -4
  131. package/dist/hono/index.js +1 -1
  132. package/dist/{hook-sql-y0CJBLJr.js → hook-sql-3yPtwas6.js} +283 -13
  133. package/dist/{hosted-DZgmEG4b.d.ts → hosted-Cl7q35D-.d.ts} +1 -1
  134. package/dist/{import-CQSJ6xcN.js → import-DEUiWePf.js} +1 -1
  135. package/dist/{import-Bz6IKoMM.js → import-wBO24zgo.js} +1 -1
  136. package/dist/{index-Cjr8Q-uq.d.ts → index-B1hyWi7O.d.ts} +11 -10
  137. package/dist/{index-ktQ7E4qB.d.ts → index-BtPvYUww.d.ts} +4 -4
  138. package/dist/{index-CWBCzwOp.d.ts → index-D9DsY164.d.ts} +4 -4
  139. package/dist/{index-DBBRSw6r.d.ts → index-DYvFRQle.d.ts} +2 -2
  140. package/dist/{index-CAE_Z53Y.d.ts → index-L6lt50lg.d.ts} +1 -1
  141. package/dist/{index-BOJPdIBk.d.ts → index-p5y3whIg.d.ts} +4 -4
  142. package/dist/index.d.ts +15 -15
  143. package/dist/index.js +3 -3
  144. package/dist/{init-Cfb0VX3T.js → init-CUviJnno.js} +3 -3
  145. package/dist/{init-BucxAxRw.js → init-DqOKr99S.js} +1 -1
  146. package/dist/{inspect-functions-CzrQtRDb.js → inspect-functions-Uv3Ndkty.js} +1 -1
  147. package/dist/{instance-options-DDERlopm.d.ts → instance-options-CUNLusL6.d.ts} +1 -1
  148. package/dist/{interactive-only-Bbq9e61G.js → interactive-only-CylKSukS.js} +1 -1
  149. package/dist/jwt/index.d.ts +4 -4
  150. package/dist/{kernel-DSnWVZ0O.js → kernel-yI0nUyuX.js} +3 -3
  151. package/dist/{keys-BWhAnANj.js → keys-CA3SdBHQ.js} +1 -1
  152. package/dist/kysely/index.d.ts +3 -3
  153. package/dist/{lazy-provider-Clt2095H.d.ts → lazy-provider-B22nfOsw.d.ts} +1 -1
  154. package/dist/{login-CU89mk0U.js → login-BMONKzI_.js} +3 -3
  155. package/dist/{login-qYcM0hKh.js → login-mcxQxTAL.js} +1 -1
  156. package/dist/{manifest-schema-N3v2RVL-.js → manifest-schema-CkROwfT9.js} +1 -1
  157. package/dist/{manifest-Bu9gUrI0.js → manifest-tO5SjSGH.js} +63 -52
  158. package/dist/{manifest-CIWOmdlP.js → manifest-teSfgeqF.js} +1 -1
  159. package/dist/mcp/index.d.ts +8 -8
  160. package/dist/mcp/index.js +2 -2
  161. package/dist/{measure-C_Z0a7B8.js → measure-r811lN7F.js} +2 -2
  162. package/dist/{memberships-CNoAlsma.js → memberships-CDiSsFTu.js} +1 -1
  163. package/dist/{memberships-4e6qi8Uv.js → memberships-DiCbNRny.js} +1 -1
  164. package/dist/{model-BYCtXS_g.js → model-wt3wihiH.js} +2 -2
  165. package/dist/{names-DBxKx2bz.js → names-DwGleRKB.js} +3 -3
  166. package/dist/nest/index.d.ts +4 -4
  167. package/dist/nest/index.js +1 -1
  168. package/dist/next/index.d.ts +11 -11
  169. package/dist/next/index.js +3 -3
  170. package/dist/next/plugin.d.ts +1 -1
  171. package/dist/next/plugin.js +1 -1
  172. package/dist/node/index.d.ts +4 -4
  173. package/dist/node/index.js +1 -1
  174. package/dist/openai/index.d.ts +4 -4
  175. package/dist/openai/index.js +3 -3
  176. package/dist/openapi/index.d.ts +2 -2
  177. package/dist/{openapi-DIhS8iHN.js → openapi-BZHc6R7A.js} +100 -5
  178. package/dist/{openapi-ZIlGKUwQ.js → openapi-CNWuAQZi.js} +1 -1
  179. package/dist/{openapi-document-D5IhoJo0.js → openapi-document-CHJI74v_.js} +1 -1
  180. package/dist/orpc/index.d.ts +5 -5
  181. package/dist/orpc/index.js +2 -2
  182. package/dist/otel/index.d.ts +3 -3
  183. package/dist/{output-DIjUJioq.js → output-Bfc3EpB2.js} +1 -1
  184. package/dist/{ownership-Bmt-z0rF.js → ownership-BuQFLjZ5.js} +3 -3
  185. package/dist/{parse-local-manifest-DoLQFkRb.d.ts → parse-local-manifest-BE_R-Ish.d.ts} +1 -1
  186. package/dist/pdp/index.d.ts +3 -3
  187. package/dist/pdp/index.js +1 -1
  188. package/dist/{permdock-JM9TKevZ.js → permdock-CbavFN6u.js} +6 -2
  189. package/dist/{permdock-DkvkGVF0.d.ts → permdock-NJ4-pCZy.d.ts} +7 -5
  190. package/dist/{permissions-xPyAmuXi.js → permissions-BPYOb5OB.js} +1 -1
  191. package/dist/{pipeline-BAGSNnct.js → pipeline-DW7cy40F.js} +2 -2
  192. package/dist/{plugin-DDPXES4k.d.ts → plugin-YAJ25tft.d.ts} +2 -2
  193. package/dist/{policy-BoUbJ2c0.d.ts → policy-BlOumPY5.d.ts} +1 -1
  194. package/dist/{policy-D8RxFeZO.js → policy-DTk6NZm-.js} +1 -1
  195. package/dist/{policy-bundle-DC_xq2R5.js → policy-bundle-C7Hz9Rrs.js} +3 -3
  196. package/dist/{policy-types-DuM3k5Ao.d.ts → policy-types-CRWqx8qf.d.ts} +7 -2
  197. package/dist/{postgrest-B1bTbVE4.d.ts → postgrest-BGYDQhG1.d.ts} +7 -6
  198. package/dist/{powersync-CgCMKvaU.js → powersync-CeuhNT0R.js} +1 -1
  199. package/dist/{powersync-CiQ97gzz.js → powersync-CoP_nlGj.js} +8 -8
  200. package/dist/{powersync-BlfO3_jN.js → powersync-LpKFefiH.js} +1 -1
  201. package/dist/prisma/index.d.ts +2 -2
  202. package/dist/{protected-action-gBxeetqY.d.ts → protected-action-BbQb5G_c.d.ts} +5 -5
  203. package/dist/{provider-Clt2095H.d.ts → provider-B22nfOsw.d.ts} +1 -1
  204. package/dist/{provider-BwqzED5h.js → provider-hQFC3b98.js} +32 -5
  205. package/dist/{prune-config-CbhJ_XvD.js → prune-config-C0uSbf1I.js} +4 -4
  206. package/dist/{pull-DLyCr-7L.js → pull-A1SkxAyb.js} +3 -3
  207. package/dist/pull-CNMED72E.js +1 -0
  208. package/dist/{push-D5so0ptb.js → push-Br0Uz5pT.js} +2 -2
  209. package/dist/{pushed-policy-C65TbLtU.d.ts → pushed-policy-B2AXpqRr.d.ts} +1 -1
  210. package/dist/{rbac-DbyaaNLa.js → rbac-Dx88RLxH.js} +3 -3
  211. package/dist/react/index.d.ts +6 -6
  212. package/dist/react/lazy.d.ts +6 -6
  213. package/dist/react/provider-client-lazy.d.ts +1 -1
  214. package/dist/react/provider-client.d.ts +1 -1
  215. package/dist/react-native/index.d.ts +8 -8
  216. package/dist/{rename-CI6NIF9t.js → rename-RnOp8vDq.js} +2 -2
  217. package/dist/replay-DjZ4I8QN.d.ts +3 -0
  218. package/dist/{report-DF0zUNut.js → report-Dp-ApWVC.js} +1 -1
  219. package/dist/{report-XdCm1y_J.js → report-x9GeUvjx.js} +1 -1
  220. package/dist/{request-context-CqqdiVp4.js → request-context-C9FFFpuH.js} +1 -1
  221. package/dist/resend/index.d.ts +4 -4
  222. package/dist/{resolve-names-BR6PiCrx.js → resolve-names-Ch5Ve5l4.js} +4 -4
  223. package/dist/{resolver-D2c1CcoZ.js → resolver-C9-dU-SZ.js} +30 -14
  224. package/dist/{rls-BfUIMNeV.js → rls-CHJbaZxj.js} +13 -12
  225. package/dist/{rls-CdQW7v9D.js → rls-DgYAJpVW.js} +5 -5
  226. package/dist/{rls-files-68-nKfmG.js → rls-files-RZ7PGrzg.js} +1 -1
  227. package/dist/{rls-options-DCLdZaTZ.d.ts → rls-options-BWWTZWjh.d.ts} +1 -1
  228. package/dist/{row-conditions-DwIJocfQ.js → row-conditions-BjARoFLU.js} +1 -1
  229. package/dist/{rpc-BYFB37KV.d.ts → rpc-CqKQCBPN.d.ts} +1 -1
  230. package/dist/{rpc-BQPa7tLP.js → rpc-RDBrKR7N.js} +1 -1
  231. package/dist/{run-B2Axta4z.js → run-CbJPONx5.js} +2 -2
  232. package/dist/run-iPVAxorh.js +1 -0
  233. package/dist/{run-ticket-CRldclc7.d.ts → run-ticket-BIRal-vH.d.ts} +2 -2
  234. package/dist/{saas-DSeazNrN.js → saas-CHviJgF2.js} +2 -2
  235. package/dist/{scan-DNzOELYT.js → scan-DjTW-y6E.js} +1 -1
  236. package/dist/{schema-CJc23R4a.js → schema-DVyxM9xS.js} +1 -1
  237. package/dist/scim/index.d.ts +1 -1
  238. package/dist/seeds/index.d.ts +1 -1
  239. package/dist/{seeds-BZMPfWcC.d.ts → seeds-K00R0810.d.ts} +1 -1
  240. package/dist/server/index.d.ts +11 -11
  241. package/dist/server/index.js +1 -1
  242. package/dist/{server-types-FkdDSB9h.d.ts → server-types-CaKNUxdc.d.ts} +8 -8
  243. package/dist/{sink-CoMI_OVw.d.ts → sink-CCirKrLv.d.ts} +2 -2
  244. package/dist/{size-CY6rK6l9.js → size-Dm3777Ev.js} +3 -3
  245. package/dist/{skills-TqrLrmuv.js → skills-BYc8rmHF.js} +1 -1
  246. package/dist/{skills-DTpSMQRg.js → skills-BdmjI4D2.js} +1 -1
  247. package/dist/{snapshot-cache-R1lJjYmI.d.ts → snapshot-cache-Dh_owfVu.d.ts} +1 -1
  248. package/dist/{snapshot-size-NklqBKcV.js → snapshot-size-CpdksnSr.js} +1 -1
  249. package/dist/{snapshot-size-D6ixbYvH.js → snapshot-size-I_-fxGry.js} +1 -1
  250. package/dist/solid/index.d.ts +5 -5
  251. package/dist/solid-start/index.d.ts +4 -4
  252. package/dist/solid-start/index.js +2 -2
  253. package/dist/{sources-Dp6FQ8np.d.ts → sources-CD1OiqqK.d.ts} +1 -1
  254. package/dist/{src-BXDohWNO.js → src-10d_jun2.js} +4 -4
  255. package/dist/ssf/index.d.ts +3 -3
  256. package/dist/{standard-webhooks-D2FwHtMX.d.ts → standard-webhooks-CiV4_mv2.d.ts} +2 -2
  257. package/dist/{store-core-aluQ3R1M.d.ts → store-core-fRqdlrep.d.ts} +4 -4
  258. package/dist/{stores-hHICuiQl.d.ts → stores-BXPRg1Ot.d.ts} +5 -5
  259. package/dist/{subject-cache-Bn4oJY_R.d.ts → subject-cache-1EtpGx3y.d.ts} +9 -1
  260. package/dist/supabase/index.d.ts +8 -8
  261. package/dist/supabase/index.js +4 -4
  262. package/dist/supabase/middleware.d.ts +5 -5
  263. package/dist/supabase/middleware.js +3 -3
  264. package/dist/{supabase-MitbozF6.js → supabase-BAuqWNj3.js} +2 -2
  265. package/dist/{supabase-ByhSqBDB.js → supabase-CeJAHqZp.js} +2 -2
  266. package/dist/{supabase-hook-RFLW2YPX.js → supabase-hook-BbwsceID.js} +5 -5
  267. package/dist/supabase-hook-CObLSH20.js +2 -0
  268. package/dist/{supabase-schemas-CVhpyYB6.js → supabase-schemas-RG58AMTu.js} +1 -1
  269. package/dist/{supautils-C85NuESf.js → supautils-ym4X20ig.js} +2 -1
  270. package/dist/svelte/index.d.ts +5 -5
  271. package/dist/svelte/runtime.d.ts +3 -3
  272. package/dist/svelte/source.d.ts +5 -5
  273. package/dist/sveltekit/index.d.ts +4 -4
  274. package/dist/sveltekit/index.js +1 -1
  275. package/dist/{table-reads-D0M_X-pj.js → table-reads--NupdCFw.js} +3 -3
  276. package/dist/{table-reads-Dso5UyeT.js → table-reads-Glf0BHSE.js} +1 -1
  277. package/dist/{tables-DrrGtayG.js → tables-Dyfviku5.js} +4 -4
  278. package/dist/tanstack-start/index.d.ts +4 -4
  279. package/dist/tanstack-start/index.js +1 -1
  280. package/dist/{tenant-check-D6fnfQBP.js → tenant-check-Bfd4hotj.js} +3 -3
  281. package/dist/terminal/index.d.ts +5 -5
  282. package/dist/terminal/index.js +2 -2
  283. package/dist/testing/core.d.ts +1 -1
  284. package/dist/testing/core.js +1 -1
  285. package/dist/testing/fixtures/index.d.ts +3 -3
  286. package/dist/testing/fixtures/index.js +1753 -162
  287. package/dist/testing/index.d.ts +22 -22
  288. package/dist/testing/index.js +6 -6
  289. package/dist/testing/saas/index.d.ts +3 -3
  290. package/dist/testing/saas/index.js +2 -2
  291. package/dist/testing/saas/permissions.js +1 -1
  292. package/dist/trpc/index.d.ts +5 -5
  293. package/dist/trpc/index.js +2 -2
  294. package/dist/{type-helpers-CsWH9z8p.d.ts → type-helpers-DTlfU9zX.d.ts} +1 -1
  295. package/dist/{types-BzsplNgO.d.ts → types-BGDafbIK.d.ts} +4 -4
  296. package/dist/{types-BGN3coSe.d.ts → types-BdghnYGo.d.ts} +1 -1
  297. package/dist/{types-Cvfe-G_N.d.ts → types-C1jxMZ4q.d.ts} +2 -2
  298. package/dist/{types-D3GI2B9O.d.ts → types-C2GmBHtC.d.ts} +3 -3
  299. package/dist/{types-dtDg4goh.d.ts → types-CAGo84uV.d.ts} +4 -4
  300. package/dist/{types-DRMoZjJm.d.ts → types-CN3Tk7bb.d.ts} +2 -2
  301. package/dist/{types-CKwI6AT4.d.ts → types-CzAFVtMz.d.ts} +1 -1
  302. package/dist/{types-CBUYbPwl.d.ts → types-Jxy_Ko7f.d.ts} +2 -2
  303. package/dist/{types-BwjOhlgx.d.ts → types-XhEnMpL6.d.ts} +4 -4
  304. package/dist/{types-D417woMp.d.ts → types-ZjPv-GgQ.d.ts} +3 -3
  305. package/dist/{types-config-DYRoZ8Iw.d.ts → types-config-B3eAej9-.d.ts} +2 -2
  306. package/dist/{types-run-CeCrWO0v.d.ts → types-run-sP7yLp61.d.ts} +1 -1
  307. package/dist/unplugin/index.d.ts +1 -1
  308. package/dist/unplugin/index.js +1 -1
  309. package/dist/{usage-Cv4WDRWv.js → usage-7Hwk_akY.js} +4 -4
  310. package/dist/usage-Bwl8YAmq.js +1 -0
  311. package/dist/{usage-DBaJfCZB.js → usage-nZP7EeRj.js} +1 -1
  312. package/dist/{validation-error-MZ7KLNHt.d.ts → validation-error-OX59FaXR.d.ts} +1 -1
  313. package/dist/{verify-DT9WS_Gm.js → verify-DOCJgGlw.js} +9 -9
  314. package/dist/{version-cache-Ccrfu2A4.js → version-cache-l9Zrfvhz.js} +8 -6
  315. package/dist/vue/index.d.ts +5 -5
  316. package/dist/{waiter-DdwtUSzB.d.ts → waiter-CyF-YowB.d.ts} +2 -2
  317. package/dist/{warm-BZ0ZwSmO.js → warm-BOrs0-_j.js} +1 -1
  318. package/dist/{warm-znYuJoUZ.d.ts → warm-BYF-zxiy.d.ts} +1 -1
  319. package/dist/watch-5WP3ZCcR.js +1 -0
  320. package/dist/{watch-14vng0pg.js → watch-BFDMb5N4.js} +1 -1
  321. package/dist/{watch-DuIAsqFR.js → watch-DYsWhTvO.js} +2 -2
  322. package/dist/webmcp/index.d.ts +1 -1
  323. package/dist/workflow/index.d.ts +3 -3
  324. package/dist/workflow/index.js +1 -1
  325. package/dist/workflow-sdk/index.d.ts +4 -4
  326. package/dist/{wrap-C36-eV-C.d.ts → wrap-CPvBX9lm.d.ts} +2 -2
  327. package/package.json +2 -2
  328. package/schemas/supabase-manifest-v1.json +1 -1
  329. package/dist/bundle-size-BRFeBvuv.js +0 -1
  330. package/dist/catalog-sR0m6x2g.js +0 -1
  331. package/dist/claims-size-C6oKGuOM.js +0 -1
  332. package/dist/collect-CIdE3FGC.js +0 -1
  333. package/dist/gen-vr1udb1p.js +0 -1
  334. package/dist/pull-IQPhpX4y.js +0 -1
  335. package/dist/replay-B__gzUx3.d.ts +0 -3
  336. package/dist/run-CfvcMtPK.js +0 -1
  337. package/dist/supabase-hook-DZk7PV7Z.js +0 -2
  338. package/dist/usage-DOcCnIdW.js +0 -1
  339. package/dist/watch-Be7ja4dL.js +0 -1
@@ -11,6 +11,29 @@ import { a as quoteIdent } from "./quote-LNaBdCGA.js";
11
11
  * into chunks of 3,180 bytes.
12
12
  */
13
13
  const TOKEN_CHARS_BUDGET = 4096;
14
+ /** `@supabase/ssr` splits a session cookie into chunks of this many characters. */
15
+ const COOKIE_CHUNK_CHARS = 3180;
16
+ /**
17
+ * The session JSON besides the access token with `tokens-only` cookies:
18
+ * `token_type`, `expires_in`, `expires_at` and the refresh token, measured on a
19
+ * Supabase session.
20
+ */
21
+ const SESSION_FIELDS_BYTES = 134;
22
+ /** The `base64-` prefix `@supabase/ssr` writes before an encoded session. */
23
+ const COOKIE_PREFIX_CHARS = 7;
24
+ /**
25
+ * The characters of a `tokens-only` session cookie that holds a token of
26
+ * `tokenLength` characters. The cookie base64-encodes the whole session again,
27
+ * so the claims, already base64url in the token, are encoded twice: one byte of
28
+ * claims costs about 1.78 characters of cookie.
29
+ */
30
+ function sessionCookieChars(tokenLength) {
31
+ return COOKIE_PREFIX_CHARS + Math.ceil((tokenLength + SESSION_FIELDS_BYTES) / 3) * 4;
32
+ }
33
+ /** The cookie chunks a token of `tokenLength` characters needs. */
34
+ function cookieChunks(tokenLength) {
35
+ return Math.ceil(sessionCookieChars(tokenLength) / COOKIE_CHUNK_CHARS);
36
+ }
14
37
  /**
15
38
  * Claims every Supabase access token carries beside the hook's, sized for an
16
39
  * OAuth sign-in: a long email, the `user_metadata` a social provider writes
@@ -132,13 +155,21 @@ async function pd110(project, events) {
132
155
  });
133
156
  if (project.config.rls?.authorize !== "jwt" && isRecord(minted) && minted["memberships_truncated"] === true && readMemberships(minted["memberships"]).memberships.length > 0) overBudget.push(label);
134
157
  const length = tokenChars(minted);
158
+ const chunks = cookieChunks(length);
135
159
  if (length > 4096) findings.push({
136
160
  code: "PD110",
137
161
  severity: "warning",
138
162
  target: label,
139
- message: `the access token for ${label} is ${String(length)} characters, over ${String(TOKEN_CHARS_BUDGET)}`,
163
+ message: `the access token for ${label} is ${String(length)} characters, over ${String(TOKEN_CHARS_BUDGET)}, and its session cookie needs ${String(chunks)} chunks`,
140
164
  fix: "lower supabase.hook.budget, drop hook.claims entries, or hold fewer custom roles; the active tenant stays in the token"
141
165
  });
166
+ else if (chunks > 1) findings.push({
167
+ code: "PD110",
168
+ severity: "warning",
169
+ target: label,
170
+ message: `the session cookie for ${label} is ${String(sessionCookieChars(length))} characters with tokens-only cookies, so @supabase/ssr splits it into ${String(chunks)} chunks of ${String(COOKIE_CHUNK_CHARS)}: the claims are base64-encoded twice, once in the ${String(length)}-character token and again in the cookie`,
171
+ fix: "set supabase.hook.membershipsClaim to false and seed the subject from a bootstrap, or lower supabase.hook.budget and drop hook.claims entries until the token is under about 2,240 characters"
172
+ });
142
173
  } catch (error) {
143
174
  findings.push({
144
175
  code: "PD110",
@@ -195,8 +226,11 @@ function claimsSize(input) {
195
226
  const fits = fitting(entryBytes, input.budget);
196
227
  const kept = Math.min(fits, input.memberships);
197
228
  const claim = `[${entries.join(",")}]`;
198
- const keptClaims = entries.slice(0, kept).map((text) => {
199
- return JSON.parse(text);
229
+ const token = tokenChars({
230
+ memberships: entries.slice(0, kept).map((text) => {
231
+ return JSON.parse(text);
232
+ }),
233
+ ...kept < input.memberships ? { memberships_truncated: true } : {}
200
234
  });
201
235
  return {
202
236
  memberships: input.memberships,
@@ -209,10 +243,9 @@ function claimsSize(input) {
209
243
  fits,
210
244
  compactClaimBytes: compactBytes(entries),
211
245
  compactFits: compactFitting(entries, input.budget),
212
- tokenChars: tokenChars({
213
- memberships: keptClaims,
214
- ...kept < input.memberships ? { memberships_truncated: true } : {}
215
- })
246
+ tokenChars: token,
247
+ cookieChars: sessionCookieChars(token),
248
+ cookieChunks: cookieChunks(token)
216
249
  };
217
250
  }
218
251
  function runClaimsSize(input) {
@@ -224,7 +257,8 @@ function runClaimsSize(input) {
224
257
  `${String(report.memberships)} memberships of ${String(report.rolesPerMembership)} role(s): ${String(report.entryBytes)} bytes per entry, ${String(report.claimBytes)} bytes in all`,
225
258
  report.truncated ? `the ${String(report.budget)} byte budget keeps ${String(report.kept)} and sets memberships_truncated; at most ${String(report.fits)} fit` : `all fit the ${String(report.budget)} byte budget (at most ${String(report.fits)})`,
226
259
  `compact claim: ${String(report.compactClaimBytes)} bytes in all; at most ${String(report.compactFits)} fit`,
227
- `compact token with the Supabase base claims: ${String(report.tokenChars)} characters`
260
+ `compact token with the Supabase base claims: ${String(report.tokenChars)} characters`,
261
+ `tokens-only session cookie: ${String(report.cookieChars)} characters in ${String(report.cookieChunks)} chunk(s) of ${String(COOKIE_CHUNK_CHARS)}`
228
262
  ];
229
263
  return {
230
264
  code: 0,
@@ -1,6 +1,6 @@
1
- import { o as AgentAdapterOptions, t as AgentPermDock } from "../create-T_NqxU31.js";
2
- import { a as PermDock } from "../permdock-DkvkGVF0.js";
3
- import { D as Policy, N as PolicyVocabulary, Or as Principal } from "../policy-types-DuM3k5Ao.js";
1
+ import { o as AgentAdapterOptions, t as AgentPermDock } from "../create-BTthKNP0.js";
2
+ import { a as PermDock } from "../permdock-NJ4-pCZy.js";
3
+ import { D as Policy, N as PolicyVocabulary, Or as Principal } from "../policy-types-CRWqx8qf.js";
4
4
  /** Structural `McpServerProvenance` from `@anthropic-ai/claude-agent-sdk`. */
5
5
  type ClaudeMcpServer = {
6
6
  readonly name: string;
@@ -1,5 +1,5 @@
1
- import { t as agentRuntime } from "../create-BRY0OtFV.js";
2
- import { u as withApp } from "../permdock-JM9TKevZ.js";
1
+ import { t as agentRuntime } from "../create-BICq9l-p.js";
2
+ import { u as withApp } from "../permdock-CbavFN6u.js";
3
3
  import { r as isRecord, t as compact } from "../compact-C4LFuqbW.js";
4
4
  // src/claude-agent/create.ts
5
5
  const MCP_PREFIX = "mcp__";
@@ -1,7 +1,7 @@
1
- import { Ar as Subject, Or as Principal, q as CustomRoleSource } from "../policy-types-DuM3k5Ao.js";
1
+ import { Ar as Subject, Or as Principal, q as CustomRoleSource } from "../policy-types-CRWqx8qf.js";
2
2
  import { t as ClaimsMap } from "../claims-map-CLKQWxJG.js";
3
3
  import { w as Permission } from "../vocabulary-DHfKPIC5.js";
4
- import { s as RemotePdpCache } from "../types-CBUYbPwl.js";
4
+ import { s as RemotePdpCache } from "../types-Jxy_Ko7f.js";
5
5
  import { StandardSchemaV1 } from "@standard-schema/spec";
6
6
  type ClerkPrincipal = Principal & {
7
7
  readonly clerkPermissions?: readonly string[];
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-hbYumkRp.js"),
13
13
  import("../signals-a1NxAP0X.js"),
14
- import("../run-CfvcMtPK.js"),
14
+ import("../run-iPVAxorh.js"),
15
15
  import("../style-Crf-90o6.js")
16
16
  ]);
17
17
  const signals = trapSignals();
@@ -1,7 +1,7 @@
1
1
  import { r as isRecord } from "../../compact-C4LFuqbW.js";
2
2
  import { a as describeError } from "../../errors-DgLOqc6j.js";
3
3
  import { a as readConfig } from "../../config-Dan6vcvj.js";
4
- import { t as executeGenerate } from "../../execute-Vfo2CAhv.js";
4
+ import { t as executeGenerate } from "../../execute-g-nMgY4t.js";
5
5
  import { resolve } from "node:path";
6
6
  import { parentPort, workerData } from "node:worker_threads";
7
7
  // src/cli/generate/watch-worker.ts
@@ -1,11 +1,11 @@
1
- import { _ as RlsApiKeys, a as PermDockConfig, c as RlsConfig, d as RlsMembershipTable, f as RlsMemberships, g as RlsTarget, h as RlsSuspension, i as GenKind, l as RlsDialect, m as RlsSuspendedScope, n as CollectConfig, p as RlsSuspendedMembership, r as GenConfig, s as RlsActiveRow, t as CatalogConfig, u as RlsFunctionMapping } from "../types-config-DYRoZ8Iw.js";
1
+ import { _ as RlsApiKeys, a as PermDockConfig, c as RlsConfig, d as RlsMembershipTable, f as RlsMemberships, g as RlsTarget, h as RlsSuspension, i as GenKind, l as RlsDialect, m as RlsSuspendedScope, n as CollectConfig, p as RlsSuspendedMembership, r as GenConfig, s as RlsActiveRow, t as CatalogConfig, u as RlsFunctionMapping } from "../types-config-B3eAej9-.js";
2
2
  import { o as OperationMap } from "../operations-DaEoGpMV.js";
3
3
  import { E as PermissionTree } from "../vocabulary-DHfKPIC5.js";
4
- import { D as Policy } from "../policy-types-DuM3k5Ao.js";
5
- import { o as ResourceNameOf, r as PermissionKeyOf, s as ScopeNameOf, t as ActionNameOf } from "../type-helpers-CsWH9z8p.js";
6
- import { i as PolicyModel, n as PluginTask, r as definePlugin, t as PermDockPlugin } from "../plugin-DDPXES4k.js";
7
- import { r as RunResult, t as CliIo } from "../types-run-CeCrWO0v.js";
8
- import { a as pushedPolicy, i as parsePushedPolicy, n as PushedGrant, r as PushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-C65TbLtU.js";
4
+ import { D as Policy } from "../policy-types-CRWqx8qf.js";
5
+ import { o as ResourceNameOf, r as PermissionKeyOf, s as ScopeNameOf, t as ActionNameOf } from "../type-helpers-DTlfU9zX.js";
6
+ import { i as PolicyModel, n as PluginTask, r as definePlugin, t as PermDockPlugin } from "../plugin-YAJ25tft.js";
7
+ import { r as RunResult, t as CliIo } from "../types-run-sP7yLp61.js";
8
+ import { a as pushedPolicy, i as parsePushedPolicy, n as PushedGrant, r as PushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-B2AXpqRr.js";
9
9
  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-CbJ5mxXv.js";
10
10
  /**
11
11
  * The absolute path `permdock collect` writes the catalog to: `collect.out`,
package/dist/cli/index.js CHANGED
@@ -2,7 +2,7 @@ import { t as catalogPath } from "../catalog-path-bG0XxHMu.js";
2
2
  import { n as defineConfig } from "../config-Dan6vcvj.js";
3
3
  import { t as definePlugin } from "../plugin-MQVfUBUS.js";
4
4
  import { c as parseGrantsMarker, l as parseHookMarker } from "../markers-C-kThnKN.js";
5
- import { t as run } from "../run-B2Axta4z.js";
5
+ import { t as run } from "../run-CbJPONx5.js";
6
6
  import { n as parsePushedPolicy, r as pushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-dm_hFstN.js";
7
7
  // src/cli/token-schemas.ts
8
8
  const ID = {
@@ -1,4 +1,4 @@
1
- import { t as PermDockPlugin } from "../../plugin-DDPXES4k.js";
1
+ import { t as PermDockPlugin } from "../../plugin-YAJ25tft.js";
2
2
  import { n as GenKindPluginOptions, t as ConstantsPluginOptions } from "../../gen-kind-DFQnQwFN.js";
3
3
  /**
4
4
  * Scope, role, permission and operation names and topic and path builders:
@@ -1,4 +1,4 @@
1
- import { t as kindPlugin } from "../../gen-kind-DLz0P-TB.js";
1
+ import { t as kindPlugin } from "../../gen-kind-DLnQ-vCe.js";
2
2
  // src/cli/plugins/app.ts
3
3
  /**
4
4
  * Scope, role, permission and operation names and topic and path builders:
@@ -1,4 +1,4 @@
1
- import { t as PermDockPlugin } from "../../plugin-DDPXES4k.js";
1
+ import { t as PermDockPlugin } from "../../plugin-YAJ25tft.js";
2
2
  type BetterSupabasePluginOptions = {
3
3
  readonly manifest?: string;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { t as PermDockPlugin } from "../../plugin-DDPXES4k.js";
1
+ import { t as PermDockPlugin } from "../../plugin-YAJ25tft.js";
2
2
  type OpenApiPluginOptions = {
3
3
  /** The OpenAPI document to annotate. With none, the plugin emits nothing. */
4
4
  readonly doc?: string;
@@ -32,7 +32,7 @@ function openapi(options = {}) {
32
32
  return operationsFile(source.cwd, options.routes, task.out);
33
33
  }
34
34
  if (options.doc === void 0) return [];
35
- const { openapiDocument } = await import("../../openapi-document-D5IhoJo0.js");
35
+ const { openapiDocument } = await import("../../openapi-document-CHJI74v_.js");
36
36
  return openapiDocument(task, options, source);
37
37
  }
38
38
  });
@@ -1,4 +1,4 @@
1
- import { t as PermDockPlugin } from "../../plugin-DDPXES4k.js";
1
+ import { t as PermDockPlugin } from "../../plugin-YAJ25tft.js";
2
2
  type PowerSyncPluginOptions = {
3
3
  readonly out?: string;
4
4
  };
@@ -18,7 +18,7 @@ function powersync(options = {}) {
18
18
  }],
19
19
  emit: async (task, _model, source) => {
20
20
  if (source === void 0) return [];
21
- const { powersyncFiles, publicationPath } = await import("../../powersync-BlfO3_jN.js");
21
+ const { powersyncFiles, publicationPath } = await import("../../powersync-LpKFefiH.js");
22
22
  return powersyncFiles(source.policy, source.config, task.out, await publicationPath(source.cwd, source.config)).files.map((file) => ({
23
23
  path: file.path,
24
24
  contents: file.text
@@ -1,5 +1,5 @@
1
- import { t as PermDockPlugin } from "../../plugin-DDPXES4k.js";
2
- import { t as RlsPluginOptions } from "../../rls-options-DCLdZaTZ.js";
1
+ import { t as PermDockPlugin } from "../../plugin-YAJ25tft.js";
2
+ import { t as RlsPluginOptions } from "../../rls-options-BWWTZWjh.js";
3
3
  /**
4
4
  * The RLS plugin. The factory records options; the SQL generator loads on emit,
5
5
  * so importing `rls` does not load it.
@@ -19,7 +19,7 @@ function rls(options = {}) {
19
19
  }],
20
20
  config: (config) => withRlsOutputs(config, options),
21
21
  emit: async (task, _model, source) => {
22
- const { filesForRls } = await import("../../rls-files-68-nKfmG.js");
22
+ const { filesForRls } = await import("../../rls-files-RZ7PGrzg.js");
23
23
  return filesForRls(task, options, source);
24
24
  }
25
25
  });
@@ -1,4 +1,4 @@
1
- import { t as PermDockPlugin } from "../../plugin-DDPXES4k.js";
1
+ import { t as PermDockPlugin } from "../../plugin-YAJ25tft.js";
2
2
  import { n as GenKindPluginOptions, r as ZodPluginOptions } from "../../gen-kind-DFQnQwFN.js";
3
3
  /** Row validators as Zod schemas, from the model's JSON Schema. */
4
4
  export declare function zod(options?: ZodPluginOptions): PermDockPlugin;
@@ -1,4 +1,4 @@
1
- import { t as kindPlugin } from "../../gen-kind-DLz0P-TB.js";
1
+ import { t as kindPlugin } from "../../gen-kind-DLnQ-vCe.js";
2
2
  // src/cli/plugins/schemas.ts
3
3
  /** Row validators as Zod schemas, from the model's JSON Schema. */
4
4
  function zod(options = {}) {
@@ -1,5 +1,5 @@
1
- import { l as RlsDialect } from "../../types-config-DYRoZ8Iw.js";
2
- import { t as PermDockPlugin } from "../../plugin-DDPXES4k.js";
1
+ import { l as RlsDialect } from "../../types-config-B3eAej9-.js";
2
+ import { t as PermDockPlugin } from "../../plugin-YAJ25tft.js";
3
3
  type ScimPluginOptions = {
4
4
  readonly schema?: string;
5
5
  readonly dialect?: RlsDialect;
@@ -1,5 +1,5 @@
1
- import { o as SupabaseSchemas } from "../../types-config-DYRoZ8Iw.js";
2
- import { t as PermDockPlugin } from "../../plugin-DDPXES4k.js";
1
+ import { o as SupabaseSchemas } from "../../types-config-B3eAej9-.js";
2
+ import { t as PermDockPlugin } from "../../plugin-YAJ25tft.js";
3
3
  type SupabaseHookPluginOptions = {
4
4
  readonly out?: string;
5
5
  readonly schemas?: SupabaseSchemas;
@@ -18,7 +18,7 @@ function supabaseHook(options = {}) {
18
18
  config: (config) => withHookOut(config, options.out),
19
19
  emit: async (_task, _model, source) => {
20
20
  if (source === void 0) return [];
21
- const { runSupabase } = await import("../../supabase-hook-DZk7PV7Z.js");
21
+ const { runSupabase } = await import("../../supabase-hook-CObLSH20.js");
22
22
  const outcome = await runSupabase({
23
23
  cwd: source.cwd,
24
24
  config: source.config,
@@ -1,6 +1,6 @@
1
- import { o as SupabaseSchemas } from "../../types-config-DYRoZ8Iw.js";
2
- import { t as PermDockPlugin } from "../../plugin-DDPXES4k.js";
3
- import { t as RlsPluginOptions } from "../../rls-options-DCLdZaTZ.js";
1
+ import { o as SupabaseSchemas } from "../../types-config-B3eAej9-.js";
2
+ import { t as PermDockPlugin } from "../../plugin-YAJ25tft.js";
3
+ import { t as RlsPluginOptions } from "../../rls-options-BWWTZWjh.js";
4
4
  /** The Custom Access Token hook the plugin writes; `false` skips it. */
5
5
  type SupabaseHookOption = false | {
6
6
  readonly out?: string;
@@ -37,14 +37,14 @@ function supabase(options = {}) {
37
37
  config: (config) => withHookOut(withRlsOutputs(config, options), hookOut),
38
38
  emit: async (task, _model, source) => {
39
39
  if (task.id === "sql") {
40
- const { filesForRls } = await import("../../rls-files-68-nKfmG.js");
40
+ const { filesForRls } = await import("../../rls-files-RZ7PGrzg.js");
41
41
  return filesForRls(task, {
42
42
  ...rlsOptions,
43
43
  dialect: "supabase"
44
44
  }, source);
45
45
  }
46
46
  if (source === void 0) return [];
47
- const { runSupabase } = await import("../../supabase-hook-DZk7PV7Z.js");
47
+ const { runSupabase } = await import("../../supabase-hook-CObLSH20.js");
48
48
  const hookOptions = hook === false || hook === void 0 ? {} : hook;
49
49
  const outcome = await runSupabase({
50
50
  cwd: source.cwd,
@@ -1,4 +1,4 @@
1
- import { t as PermDockPlugin } from "../../plugin-DDPXES4k.js";
1
+ import { t as PermDockPlugin } from "../../plugin-YAJ25tft.js";
2
2
  import { n as GenKindPluginOptions } from "../../gen-kind-DFQnQwFN.js";
3
3
  /** `permdock/react` bound to the policy's vocabulary. Carries `"use client"`. */
4
4
  export declare function reactHooks(options?: GenKindPluginOptions): PermDockPlugin;
@@ -1,4 +1,4 @@
1
- import { t as kindPlugin } from "../../gen-kind-DLz0P-TB.js";
1
+ import { t as kindPlugin } from "../../gen-kind-DLnQ-vCe.js";
2
2
  // src/cli/plugins/ui.ts
3
3
  /** `permdock/react` bound to the policy's vocabulary. Carries `"use client"`. */
4
4
  function reactHooks(options = {}) {
@@ -1,5 +1,5 @@
1
- import { Ar as Subject } from "./policy-types-DuM3k5Ao.js";
2
- import { A as SupabaseSubjectOptions, C as SupabasePrincipal } from "./sources-Dp6FQ8np.js";
1
+ import { Ar as Subject } from "./policy-types-CRWqx8qf.js";
2
+ import { A as SupabaseSubjectOptions, C as SupabasePrincipal } from "./sources-CD1OiqqK.js";
3
3
  /**
4
4
  * The part of a supabase-js (or `@supabase/ssr`) client the subject reads:
5
5
  * `auth.getClaims()`, which verifies the token against the project's JWKS or
@@ -1,11 +1,11 @@
1
- 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-BwjOhlgx.js";
2
- import { Cn as DirectoryEvent, Tn as MembershipEvent, _n as AutomationEvent, _t as TokenSigner, bn as DeliveryChannel, hn as AccessEvent, qt as Instant, vn as CredentialEvent, xn as DeliveryEvent, yn as DecisionEvent } from "../policy-types-DuM3k5Ao.js";
3
- import { c as DeliveryTransport } from "../types-D3GI2B9O.js";
4
- import { m as ApprovalStore } from "../types-BGN3coSe.js";
5
- import { n as ApprovalWaiter } from "../waiter-DdwtUSzB.js";
6
- import { i as CatalogEventData, l as CloudEventType, r as CLOUD_EVENT_TYPES, s as CloudEvent } from "../sink-CoMI_OVw.js";
7
- import { f as WebhookVerifier, r as WebhookFailureCause$1, s as WebhookJwks } from "../standard-webhooks-D2FwHtMX.js";
8
- import { l as ReplayStore } from "../types-Cvfe-G_N.js";
1
+ 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-XhEnMpL6.js";
2
+ import { Cn as DirectoryEvent, Tn as MembershipEvent, _n as AutomationEvent, _t as TokenSigner, bn as DeliveryChannel, hn as AccessEvent, qt as Instant, vn as CredentialEvent, xn as DeliveryEvent, yn as DecisionEvent } from "../policy-types-CRWqx8qf.js";
3
+ import { c as DeliveryTransport } from "../types-C2GmBHtC.js";
4
+ import { m as ApprovalStore } from "../types-BdghnYGo.js";
5
+ import { n as ApprovalWaiter } from "../waiter-CyF-YowB.js";
6
+ import { i as CatalogEventData, l as CloudEventType, r as CLOUD_EVENT_TYPES, s as CloudEvent } from "../sink-CCirKrLv.js";
7
+ import { f as WebhookVerifier, r as WebhookFailureCause$1, s as WebhookJwks } from "../standard-webhooks-CiV4_mv2.js";
8
+ import { l as ReplayStore } from "../types-C1jxMZ4q.js";
9
9
  /**
10
10
  * The one base URL of PermDock Cloud. The platform issuer is this URL; its
11
11
  * OAuth routes, `/.well-known/oauth-authorization-server` and `/openapi.json`
@@ -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-D5so0ptb.js")).runCloud({
44
+ return (await import("./push-Br0Uz5pT.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-IQPhpX4y.js")).runCloudPull({
73
+ return (await import("./pull-CNMED72E.js")).runCloudPull({
74
74
  cwd: ctx.cwd,
75
75
  config: ctx.config,
76
76
  url: given(flags.url),
@@ -8,7 +8,7 @@ const codemod = defineLeaf({
8
8
  description: "The release to migrate to (0.5), config with --prune, manager-chain, bsb-access-tags or bsb-action-keys",
9
9
  required: true,
10
10
  async complete() {
11
- return (await import("./codemod-CA0MQoG4.js")).codemodVersions();
11
+ return (await import("./codemod-D5a5oDJX.js")).codemodVersions();
12
12
  }
13
13
  }, {
14
14
  name: "paths",
@@ -33,7 +33,7 @@ const codemod = defineLeaf({
33
33
  async run(ctx, { flags, args, rest }) {
34
34
  if (args["version"] === "config") {
35
35
  if (!flags.prune) throw new CliError("usage", "codemod config needs --prune", { code: "invalid_value" });
36
- return (await import("./prune-config-CbhJ_XvD.js")).runPruneConfig({
36
+ return (await import("./prune-config-C0uSbf1I.js")).runPruneConfig({
37
37
  cwd: ctx.cwd,
38
38
  check: flags.check,
39
39
  dryRun: flags["dry-run"],
@@ -41,7 +41,7 @@ const codemod = defineLeaf({
41
41
  json: ctx.json
42
42
  });
43
43
  }
44
- if (args["version"] === "bsb-access-tags") return (await import("./bsb-access-tags-1oVQZWKp.js")).runAccessTags({
44
+ if (args["version"] === "bsb-access-tags") return (await import("./bsb-access-tags-LCaE48SK.js")).runAccessTags({
45
45
  cwd: ctx.cwd,
46
46
  ...rest[0] === void 0 ? {} : { schemas: rest[0] },
47
47
  dryRun: flags["dry-run"],
@@ -49,7 +49,7 @@ const codemod = defineLeaf({
49
49
  force: flags.force,
50
50
  json: ctx.json
51
51
  });
52
- if (args["version"] === "bsb-action-keys") return (await import("./bsb-action-keys-BfZAwg-9.js")).runActionKeys({
52
+ if (args["version"] === "bsb-action-keys") return (await import("./bsb-action-keys-LgveZiHJ.js")).runActionKeys({
53
53
  cwd: ctx.cwd,
54
54
  dryRun: flags["dry-run"],
55
55
  force: flags.force,
@@ -62,7 +62,7 @@ const codemod = defineLeaf({
62
62
  force: flags.force,
63
63
  json: ctx.json
64
64
  });
65
- return (await import("./codemod-CA0MQoG4.js")).runCodemod({
65
+ return (await import("./codemod-D5a5oDJX.js")).runCodemod({
66
66
  cwd: ctx.cwd,
67
67
  version: args["version"],
68
68
  paths: rest,
@@ -5,7 +5,7 @@ import { t as catalogFingerprint } from "./catalog-fingerprint-DAWZARy6.js";
5
5
  import { r as isRecord } from "./compact-C4LFuqbW.js";
6
6
  import { n as flagSpellings, o as GLOBAL_FLAGS } from "./args-BSpXxMnb.js";
7
7
  import { c as generateFlags, f as policyFlag, i as dryRunFlag, r as dbUrlFlags, t as checkFlag } from "./flags-DQzNPxg1.js";
8
- import { n as ROOT } from "./manifest-Bu9gUrI0.js";
8
+ import { n as ROOT } from "./manifest-tO5SjSGH.js";
9
9
  import { n as baselineText, r as parseBaseline } from "./baseline-file-BQoki1O_.js";
10
10
  import { r as resolveConfigRoot, t as configProperty } from "./config-paths-CQvGng3k.js";
11
11
  import { n as propertyKey, r as removeProperty, t as applyEditsStrict } from "./edits-CqU8s2GC.js";
@@ -0,0 +1 @@
1
+ export { r as runCollect } from "./collect-Co-w8Eg2.js";
@@ -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-Be7ja4dL.js")).watchCollect(ctx, overrides);
32
+ return (await import("./watch-5WP3ZCcR.js")).watchCollect(ctx, overrides);
33
33
  }
34
- const result = await (await import("./collect-CIdE3FGC.js")).runCollect({
34
+ const result = await (await import("./collect-C2_CKZ09.js")).runCollect({
35
35
  cwd: ctx.cwd,
36
36
  config: ctx.config,
37
37
  collect: overrides,
@@ -1,4 +1,4 @@
1
- import { n as catalogForCompare, o as formatCatalogJson, r as catalogForDrift, t as buildCatalog } from "./catalog-doc-D4g3nyFB.js";
1
+ import { n as catalogForCompare, o as formatCatalogJson, r as catalogForDrift, t as buildCatalog } from "./catalog-doc-BX97oFAn.js";
2
2
  import { t as loadConfiguredOperations } from "./catalog-operations-BqSsByIE.js";
3
3
  import { t as catalogPath } from "./catalog-path-bG0XxHMu.js";
4
4
  import { a as describeError, n as CliError } from "./errors-DgLOqc6j.js";
@@ -1,3 +1,3 @@
1
- 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-CoUadQXF.js";
1
+ 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-CFV4wDo9.js";
2
2
  import { n as GraphSqlPart, r as RelationsMapping, t as GraphSql } from "../graph-sql-Ds3nbevr.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 };
@@ -9,16 +9,16 @@ import { p as scopeField } from "./tenancy-B5Xxt9Sc.js";
9
9
  import { c as listPermissions, h as formerKeys } from "./permission-registry-DstT40VS.js";
10
10
  import { l as isConditionRef, o as hasConditionOp } from "./refs-Cix9Zjis.js";
11
11
  import { t as requiresApproval } from "./approval-required-B-R4Yw3J.js";
12
- import { c as jsonSchemaOf } from "./catalog-doc-D4g3nyFB.js";
12
+ import { c as jsonSchemaOf } from "./catalog-doc-BX97oFAn.js";
13
13
  import { i as configError } from "./errors-DgLOqc6j.js";
14
- import { A as tokenScopeAllowsCall, L as capabilityAccessSql, S as accessSql, f as requiresSql, z as apiKeyAllowsCall } from "./tables-DrrGtayG.js";
14
+ import { A as tokenScopeAllowsCall, L as capabilityAccessSql, S as accessSql, f as requiresSql, z as apiKeyAllowsCall } from "./tables-Dyfviku5.js";
15
15
  import { t as connectPgPool } from "./pg-DmS5ITHu.js";
16
- import { S as scopeTable } from "./names-DBxKx2bz.js";
16
+ import { S as scopeTable } from "./names-DwGleRKB.js";
17
17
  import { a as quoteIdent, c as quoteTable, o as quoteLiteral } from "./quote-LNaBdCGA.js";
18
- import { r as interactiveAllowsCall } from "./interactive-only-Bbq9e61G.js";
19
- import { _ as validitySql, h as andSql, v as wrapSql } from "./fields-CwFej4gp.js";
18
+ import { r as interactiveAllowsCall } from "./interactive-only-CylKSukS.js";
19
+ import { _ as validitySql, h as andSql, v as wrapSql } from "./fields-CKX-qjWb.js";
20
20
  import { _ as arrayColumnsOf, d as subjectClaimSql, u as subjectClaimJsonSql, v as columnTypesOf } from "./subject-B7p94Y0s.js";
21
- import { c as breakGlassKey, f as compileConditionSql, l as collectGrants, m as sqlFunctionNames, p as contextRefs, s as breakGlassHolder } from "./rbac-DbyaaNLa.js";
21
+ import { c as breakGlassKey, f as compileConditionSql, l as collectGrants, m as sqlFunctionNames, p as contextRefs, s as breakGlassHolder } from "./rbac-Dx88RLxH.js";
22
22
  import { createHash } from "node:crypto";
23
23
  // src/cli/rls/indexes.ts
24
24
  /** Postgres truncates identifiers longer than this, in bytes. */
@@ -1,6 +1,6 @@
1
- import { p as WhereResult } from "./permdock-DkvkGVF0.js";
1
+ import { p as WhereResult } from "./permdock-NJ4-pCZy.js";
2
2
  import { P as ResourceNode } from "./vocabulary-DHfKPIC5.js";
3
- import { Ar as Subject, Fr as Condition, jn as Scope, qt as Instant } from "./policy-types-DuM3k5Ao.js";
3
+ import { Ar as Subject, Fr as Condition, jn as Scope, qt as Instant } from "./policy-types-CRWqx8qf.js";
4
4
  import { r as RelationsMapping, t as GraphSql } from "./graph-sql-Ds3nbevr.js";
5
5
  type MembershipTable = {
6
6
  readonly table: string;
@@ -1,6 +1,6 @@
1
1
  import { a as suggestion, o as GLOBAL_FLAGS } from "./args-BSpXxMnb.js";
2
2
  import { t as defineLeaf } from "./command-9GAzSI7E.js";
3
- import { a as resolve } from "./manifest-Bu9gUrI0.js";
3
+ import { a as resolve } from "./manifest-tO5SjSGH.js";
4
4
  import { n as CliError } from "./errors-DgLOqc6j.js";
5
5
  // 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-pg-66Bdr.js");
13
+ const { runConfig } = await import("./config-report-3IhYuH4v.js");
14
14
  return runConfig({
15
15
  cwd: ctx.cwd,
16
16
  config: ctx.config,
@@ -1,7 +1,7 @@
1
1
  import "./sources-C6Id63F8.js";
2
2
  import { t as catalogPath } from "./catalog-path-bG0XxHMu.js";
3
- import { n as guessPermissions, t as barrelFile } from "./collect-CPimbkC5.js";
4
- import { t as DOCS_BASE } from "./manifest-Bu9gUrI0.js";
3
+ import { n as guessPermissions, t as barrelFile } from "./collect-Co-w8Eg2.js";
4
+ import { t as DOCS_BASE } from "./manifest-tO5SjSGH.js";
5
5
  import { r as CONFIG_REPORT_SCHEMA } from "./version-D-jWyJb9.js";
6
6
  import { a as rel, t as defaultSrcPath } from "./files-DAR51W3J.js";
7
7
  import { n as restatedDefaults, t as resolveConfig } from "./resolve-config-Cu_mE2wt.js";
@@ -1,5 +1,5 @@
1
1
  import { n as packageManagerOf } from "./peer-D77JpXe-.js";
2
- import { c as readSupabaseConfig } from "./supabase-schemas-CVhpyYB6.js";
2
+ import { c as readSupabaseConfig } from "./supabase-schemas-RG58AMTu.js";
3
3
  import { existsSync, readdirSync } from "node:fs";
4
4
  import { join, relative } from "node:path";
5
5
  // src/cli/generate/context.ts
@@ -1,7 +1,7 @@
1
- import { D as Policy, N as PolicyVocabulary, Or as Principal } from "../policy-types-DuM3k5Ao.js";
2
- import { a as ProblemDetails, r as PermDockDeniedError } from "../errors-BliKrfmP.js";
3
- import { t as InstanceOptions } from "../instance-options-DDERlopm.js";
4
- import { a as PermDock } from "../permdock-DkvkGVF0.js";
1
+ import { D as Policy, N as PolicyVocabulary, Or as Principal } from "../policy-types-CRWqx8qf.js";
2
+ import { a as ProblemDetails, r as PermDockDeniedError } from "../errors-C35fh_2K.js";
3
+ import { t as InstanceOptions } from "../instance-options-CUNLusL6.js";
4
+ import { a as PermDock } from "../permdock-NJ4-pCZy.js";
5
5
  import { w as Permission } from "../vocabulary-DHfKPIC5.js";
6
6
  type ConvexContextLike = {
7
7
  readonly auth?: {
@@ -1,7 +1,7 @@
1
1
  import { n as tenantScope, t as actorFrom } from "../adapter-context-lHq_i_77.js";
2
2
  import { n as PermDockValidationError } from "../validation-error-CgDOA6VS.js";
3
- import { u as withApp } from "../permdock-JM9TKevZ.js";
4
- import { n as resolveOrNull, t as buildInstance } from "../build-instance-DZEWYO-A.js";
3
+ import { u as withApp } from "../permdock-CbavFN6u.js";
4
+ import { n as resolveOrNull, t as buildInstance } from "../build-instance-BGpABVbM.js";
5
5
  import { t as compact } from "../compact-C4LFuqbW.js";
6
6
  import { n as PermDockDeniedError, t as PermDockApprovalRequiredError } from "../errors-DOSkVeTC.js";
7
7
  // src/convex/create.ts
@@ -1,10 +1,10 @@
1
1
  import { t as fromSnapshot } from "./from-snapshot-DZ4D2sLa.js";
2
2
  import { c as listPermissions } from "./permission-registry-DstT40VS.js";
3
- import { t as getPermDock } from "./permdock-JM9TKevZ.js";
3
+ import { t as getPermDock } from "./permdock-CbavFN6u.js";
4
4
  import { C as membershipsClaim } from "./evaluate-DNz6wMYv.js";
5
5
  import { d as scopeList } from "./scopes-B-KX9EI8.js";
6
6
  import { c as quoteSqlTable, n as defaultSqlCommand, o as quoteSqlIdent, t as SQL_IDENT } from "./sql-T4GaBh9X.js";
7
- import { A as memoryCustomRoleSource } from "./src-BXDohWNO.js";
7
+ import { A as memoryCustomRoleSource } from "./src-10d_jun2.js";
8
8
  import { n as parseSnapshot } from "./snapshot-Dzi4LR6n.js";
9
9
  import "./budget-BH81q2cj.js";
10
10
  // src/testing/policy-matrix.ts
@@ -1,5 +1,5 @@
1
- import { D as Policy, Dr as Membership, Sr as CustomRole, ir as Decision } from "./policy-types-DuM3k5Ao.js";
2
- import { o as PermDockOptions, p as WhereResult } from "./permdock-DkvkGVF0.js";
1
+ import { D as Policy, Dr as Membership, Sr as CustomRole, ir as Decision } from "./policy-types-CRWqx8qf.js";
2
+ import { o as PermDockOptions, p as WhereResult } from "./permdock-NJ4-pCZy.js";
3
3
  import { w as Permission } from "./vocabulary-DHfKPIC5.js";
4
4
  type MatrixOutcome = "granted" | "denied" | "approval-required";
5
5
  type MatrixCell = MatrixOutcome | {
@@ -1,10 +1,10 @@
1
- import { u as withApp } from "./permdock-JM9TKevZ.js";
1
+ import { u as withApp } from "./permdock-CbavFN6u.js";
2
2
  import { t as compact } from "./compact-C4LFuqbW.js";
3
3
  import { c as deniedFor } from "./may-use-ikNCnNgZ.js";
4
4
  import { n as freezeDeep } from "./freeze-DGfJq_j2.js";
5
5
  import { t as instanceOptions } from "./instance-options-CLErhA76.js";
6
6
  import { t as composeWraps } from "./wrap-CsfsaJhd.js";
7
- import { n as createAgentKernel } from "./kernel-DSnWVZ0O.js";
7
+ import { n as createAgentKernel } from "./kernel-yI0nUyuX.js";
8
8
  // src/agent/create.ts
9
9
  function modelRow(modelId) {
10
10
  return { id: modelId };