permdock 0.38.1 → 0.39.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 (236) hide show
  1. package/dist/a2a/index.js +2 -2
  2. package/dist/{adoption-scan-CkkOzkXs.js → adoption-scan-Cg4pyRhm.js} +1 -1
  3. package/dist/agent/index.js +1 -1
  4. package/dist/ai-sdk/index.js +3 -3
  5. package/dist/{annotate-dUrBHXWa.js → annotate-DcSH62rl.js} +2 -2
  6. package/dist/{annotate-doc-BA0betEO.js → annotate-doc-CLU0DxK7.js} +1 -1
  7. package/dist/app/index.js +1 -1
  8. package/dist/{approval-chain-BEeExHpb.js → approval-chain-e4HcSs3o.js} +2 -2
  9. package/dist/{arazzo-BKYLAE5e.js → arazzo-BcSSf6Du.js} +1 -1
  10. package/dist/{arazzo-n8as0lFp.js → arazzo-C1JA-k9F.js} +3 -3
  11. package/dist/{ast-CAOxvn9t.js → ast-BhvgF264.js} +1 -1
  12. package/dist/astro/index.js +1 -1
  13. package/dist/authzen/index.js +1 -1
  14. package/dist/better-supabase/index.js +6 -6
  15. package/dist/{bind-BNYcJ1D9.js → bind-CFwfgfp2.js} +2 -2
  16. package/dist/{bsb-access-tags-DaGRSYnv.js → bsb-access-tags-DUdAk1Jc.js} +3 -3
  17. package/dist/{bsb-action-keys-LgveZiHJ.js → bsb-action-keys-CQdOwvrl.js} +4 -4
  18. package/dist/{budgets-DFnMBpKz.js → budgets-6cfA6Ibw.js} +3 -3
  19. package/dist/{build-instance-BGpABVbM.js → build-instance-BX5yWZDz.js} +1 -1
  20. package/dist/{bundle-size-Pgm7BB5m.js → bundle-size-CeLuyWm0.js} +2 -2
  21. package/dist/bundle-size-DRu3x2lW.js +1 -0
  22. package/dist/{casbin-BmYeMFeI.js → casbin-BthXLWZo.js} +1 -1
  23. package/dist/{casbin-BlQqoRlv.js → casbin-DilG0fwi.js} +1 -1
  24. package/dist/catalog/index.js +2 -2
  25. package/dist/{catalog-DYC6wfAj.js → catalog-Beg7WzxZ.js} +1 -1
  26. package/dist/{catalog-SnaPhbZ1.js → catalog-DlVcHvH5.js} +3 -3
  27. package/dist/catalog-WP3LwPu_.js +1 -0
  28. package/dist/{catalog-operations-BqSsByIE.js → catalog-operations-DsbLxw1f.js} +1 -1
  29. package/dist/chat/index.js +1 -1
  30. package/dist/claims-size-C0kHWqou.js +1 -0
  31. package/dist/{claims-size-ZiUJBn0r.js → claims-size-Dxm9zWw5.js} +2 -2
  32. package/dist/claude-agent/index.js +2 -2
  33. package/dist/cli/bin.js +1 -1
  34. package/dist/cli/generate/watch-worker.js +2 -2
  35. package/dist/cli/index.js +3 -3
  36. package/dist/cli/plugins/app.js +1 -1
  37. package/dist/cli/plugins/openapi.js +2 -2
  38. package/dist/cli/plugins/powersync.js +1 -1
  39. package/dist/cli/plugins/rls.js +1 -1
  40. package/dist/cli/plugins/schemas.js +1 -1
  41. package/dist/cli/plugins/supabase-hook.js +1 -1
  42. package/dist/cli/plugins/supabase.js +2 -2
  43. package/dist/cli/plugins/ui.js +1 -1
  44. package/dist/{cloud-DxDQff7G.js → cloud-0zu4L55w.js} +2 -2
  45. package/dist/{codemod-DjcAtHr9.js → codemod-CtF7Vk_T.js} +6 -6
  46. package/dist/{codemod-CX9EGBJw.js → codemod-DaU2mOwl.js} +5 -5
  47. package/dist/collect-BchFfzIJ.js +1 -0
  48. package/dist/{collect-Co-w8Eg2.js → collect-BqaPdsk1.js} +4 -4
  49. package/dist/{collect-CcE8QBtZ.js → collect-CcQDJuYi.js} +2 -2
  50. package/dist/{compile-BWOrvhGt.js → compile-CeaX5VD-.js} +8 -8
  51. package/dist/{completion-9B7fZWsn.js → completion-Cyp3kn5b.js} +1 -1
  52. package/dist/{config-Dan6vcvj.js → config-C1lTq4gJ.js} +3 -3
  53. package/dist/{config-BgBDv1UW.js → config-CNloPiIn.js} +1 -1
  54. package/dist/{config-paths-CQvGng3k.js → config-paths-Cg3IXh9T.js} +3 -3
  55. package/dist/{config-report-oYAr9Opz.js → config-report-i9ujoKAl.js} +4 -4
  56. package/dist/{context-DntIOpzS.js → context-BKZmdYRf.js} +1 -1
  57. package/dist/{context-Nr3nknZX.js → context-CzHYMZr9.js} +1 -1
  58. package/dist/convex/index.js +2 -2
  59. package/dist/{core-BFR-V5CL.js → core-BEA7805j.js} +3 -3
  60. package/dist/{create-Dapy8DIK.js → create-DRiggRWE.js} +3 -3
  61. package/dist/{create-BICq9l-p.js → create-fNkkpOy5.js} +2 -2
  62. package/dist/{custom-role-rebuild-BwM6hBqt.js → custom-role-rebuild-DzbBD1cq.js} +5 -5
  63. package/dist/{define-permdock-B0q7Rg9b.js → define-permdock-CGI9pgqL.js} +2 -2
  64. package/dist/{diff-BebUlh4Z.js → diff-Bv-oDvZq.js} +1 -1
  65. package/dist/{diff-Sxca4_5q.js → diff-YsQOcb9N.js} +4 -4
  66. package/dist/{doctor-Dqh8AzIx.js → doctor-BuPSrNmh.js} +60 -47
  67. package/dist/{doctor-CDSxgnut.js → doctor-Mgbj6UO0.js} +2 -2
  68. package/dist/{edits-CqU8s2GC.js → edits-Ckbit4uD.js} +1 -1
  69. package/dist/elysia/index.js +1 -1
  70. package/dist/evaluator-C4RrXo4y.js +2 -0
  71. package/dist/{evaluator-eager-BLNVbEAC.js → evaluator-eager-B_4KdPgg.js} +1 -1
  72. package/dist/eve/index.d.ts +50 -1
  73. package/dist/eve/index.js +39 -3
  74. package/dist/{execute-CUGaCy_9.js → execute-D6FFwdwW.js} +5 -5
  75. package/dist/{explain-CgKGadRa.js → explain-CPYRj0qn.js} +3 -3
  76. package/dist/{explain-BrvY9cXX.js → explain-CvCujO8Q.js} +2 -2
  77. package/dist/express/index.js +1 -1
  78. package/dist/fastify/index.js +1 -1
  79. package/dist/{fetch-adapter-dmABnF7F.js → fetch-adapter-niRAPzNm.js} +1 -1
  80. package/dist/{fields-CKX-qjWb.js → fields-DWAwA8vX.js} +3 -3
  81. package/dist/{fixtures-3aUUP6Nx.js → fixtures-B29C2DGA.js} +1 -1
  82. package/dist/{from-snapshot-DZ4D2sLa.js → from-snapshot-O341Vdgj.js} +12 -4
  83. package/dist/{gen-D85_gUOz.js → gen-CZB21YVB.js} +6 -6
  84. package/dist/{gen-kind-Bi0dtNoV.js → gen-kind-2KPUHSs6.js} +1 -1
  85. package/dist/gen-tTRu05jZ.js +1 -0
  86. package/dist/{generate-C8kAhef2.js → generate-DFffYRB7.js} +3 -3
  87. package/dist/{generate-BnOSZLka.js → generate-DePdrbn_.js} +19 -19
  88. package/dist/{generate-options-eMjRViev.js → generate-options-Bq5qQ9H7.js} +13 -13
  89. package/dist/h3/index.js +2 -2
  90. package/dist/{helper-calls-DN1PJcNY.js → helper-calls-jStpeQ2_.js} +1 -1
  91. package/dist/hono/index.js +1 -1
  92. package/dist/{hook-sql-BQcxbOzi.js → hook-sql-Dys1kW5p.js} +13 -13
  93. package/dist/{import-BLN-HGJG.js → import-BIJM6oAh.js} +1 -1
  94. package/dist/{import-wBO24zgo.js → import-bTvN77Uj.js} +3 -3
  95. package/dist/{index-B1hyWi7O.d.ts → index-Cnrz9ChE.d.ts} +3 -2
  96. package/dist/index.d.ts +1 -1
  97. package/dist/index.js +4 -4
  98. package/dist/{init-B8bPTGMb.js → init-CfDdG_Fj.js} +3 -3
  99. package/dist/{init-BQnRbzUb.js → init-yo4GJOkM.js} +1 -1
  100. package/dist/{inspect-functions-GXdyPFwI.js → inspect-functions-Cj7kZDJt.js} +1 -1
  101. package/dist/{instance-snapshot-D03srwnf.js → instance-snapshot-BJam8gUa.js} +10 -3
  102. package/dist/{interactive-only-C9NQJXpi.js → interactive-only-ek-Kf0Kq.js} +5 -5
  103. package/dist/{kernel-yI0nUyuX.js → kernel-UOKCD3tV.js} +3 -3
  104. package/dist/{keys-QhAlAjXf.js → keys-CBblXqiu.js} +1 -1
  105. package/dist/{lazy-provider-b8UHGi8P.js → lazy-provider-BPSgEG-A.js} +1 -1
  106. package/dist/{load-m7jmit3y.js → load-D03A3tZL.js} +1 -1
  107. package/dist/load-r-TDUcRq.js +1 -0
  108. package/dist/{login-kQOIJoFN.js → login-2hkrhPGs.js} +3 -3
  109. package/dist/{login-DnVKv2ib.js → login-CsTj_pBQ.js} +1 -1
  110. package/dist/{manager-chain-CFkceFls.js → manager-chain-BbrD-s7u.js} +2 -2
  111. package/dist/{manifest-CMh8sAAH.js → manifest-CZvwWacN.js} +42 -42
  112. package/dist/mcp/index.js +2 -2
  113. package/dist/{measure-DJl28Whs.js → measure-BhjWMmvj.js} +5 -5
  114. package/dist/{memberships-DiCbNRny.js → memberships-DEW0FU2p.js} +1 -1
  115. package/dist/{memberships-CDiSsFTu.js → memberships-DaKwjhc5.js} +3 -3
  116. package/dist/{migrate-BXk_rUmb.js → migrate-BBPxqBMF.js} +2 -2
  117. package/dist/{model-DQQYg8UW.js → model-BfhDMEDf.js} +2 -2
  118. package/dist/{module-values-D-AiNhBp.js → module-values-BvR7QHTM.js} +2 -2
  119. package/dist/{names-DwGleRKB.js → names-zCkaCepO.js} +3 -3
  120. package/dist/nest/index.js +1 -1
  121. package/dist/next/index.js +3 -3
  122. package/dist/next/plugin.js +1 -1
  123. package/dist/node/index.js +1 -1
  124. package/dist/openai/index.js +3 -3
  125. package/dist/{openapi-CuyzmD9h.js → openapi-1ZydKQE3.js} +4 -4
  126. package/dist/{openapi-D7kRYqWu.js → openapi-CufQiEo8.js} +2 -2
  127. package/dist/{openapi-document-ClyLB0-z.js → openapi-document-oqfHlSZt.js} +1 -1
  128. package/dist/{optional-CaQWp9HA.js → optional-Dw7to-jw.js} +11 -1
  129. package/dist/orpc/index.js +2 -2
  130. package/dist/{output-ONUzppLo.js → output-yUW7fcAk.js} +1 -1
  131. package/dist/{ownership-CCgncSLb.js → ownership-Bx_s_E8i.js} +7 -7
  132. package/dist/pdp/index.js +1 -1
  133. package/dist/{permdock-CbavFN6u.js → permdock-B0aE5Ime.js} +1 -1
  134. package/dist/{permissions-BPYOb5OB.js → permissions-CF8Ed44S.js} +1 -1
  135. package/dist/{pipeline-DGFc6y6x.js → pipeline-BTsmCn1p.js} +2 -2
  136. package/dist/{policy-AWd-ccJJ.js → policy-CXAhfYIt.js} +2 -2
  137. package/dist/{policy-bundle-rC5_X9hX.js → policy-bundle-BZyCcphj.js} +3 -3
  138. package/dist/{policy-from-catalog-BohzTN3J.js → policy-from-catalog-hECiBs9M.js} +1 -1
  139. package/dist/{powersync-DW7seEgS.js → powersync-C6F2F_VP.js} +1 -1
  140. package/dist/{powersync-C84aHECl.js → powersync-CcXYDuyo.js} +1 -1
  141. package/dist/{powersync-C1OW6iVd.js → powersync-DVUeHJpL.js} +13 -13
  142. package/dist/{program-CvarkLMS.js → program-C2fbc9NO.js} +2 -2
  143. package/dist/{provider-NQwLSlgb.js → provider-BT8hVigf.js} +1 -1
  144. package/dist/{provider-hQFC3b98.js → provider-DRsBw6My.js} +1 -1
  145. package/dist/{provider-store-BizF6jyu.js → provider-store-fzaF1R6q.js} +1 -1
  146. package/dist/{prune-config-DeTUhG2J.js → prune-config-CPvDryuI.js} +10 -10
  147. package/dist/{pull-C851tQak.js → pull-CEv7O_zQ.js} +1 -1
  148. package/dist/pull-DeXUmRKY.js +1 -0
  149. package/dist/{push-Br0Uz5pT.js → push-Dq9qatTg.js} +3 -3
  150. package/dist/{pushed-policy-dm_hFstN.js → pushed-policy-DXA5KLo6.js} +1 -1
  151. package/dist/{quote-LNaBdCGA.js → quote-BX3DDoTX.js} +1 -1
  152. package/dist/{rbac-ByuGspKZ.js → rbac-COexzCC9.js} +5 -5
  153. package/dist/react/index.js +1 -1
  154. package/dist/react/lazy.js +1 -1
  155. package/dist/react/provider-client-lazy.js +1 -1
  156. package/dist/react/provider-client.js +1 -1
  157. package/dist/react-native/index.js +1 -1
  158. package/dist/{rename-BgfR3xB9.js → rename-CoG144pW.js} +9 -9
  159. package/dist/{report-x9GeUvjx.js → report-B7UuE4dW.js} +1 -1
  160. package/dist/{report-Dp-ApWVC.js → report-CMncWbQ-.js} +1 -1
  161. package/dist/{request-context-C9FFFpuH.js → request-context-Bi0Crsd5.js} +1 -1
  162. package/dist/{resolve-config-Cu_mE2wt.js → resolve-config-LiLfxe8X.js} +1 -1
  163. package/dist/{resolve-names-DmX503uX.js → resolve-names-ybewcnpW.js} +7 -7
  164. package/dist/{resolver-C9-dU-SZ.js → resolver-CkK3cvQc.js} +4 -4
  165. package/dist/{rls-DTN_-HX2.js → rls-C-UfcYPG.js} +5 -5
  166. package/dist/{rls-JSxuWcf-.js → rls-CTWb0XEV.js} +13 -13
  167. package/dist/{rls-files-BsJsEeJ_.js → rls-files-DFUG6y5D.js} +1 -1
  168. package/dist/{roles-BeNEhv7Q.js → roles-MVZd_RrF.js} +1 -1
  169. package/dist/{rpc-RDBrKR7N.js → rpc-C-kZGWs6.js} +1 -1
  170. package/dist/{run-BgNlYtQJ.js → run-B9MRT-5k.js} +3 -3
  171. package/dist/run-me1Fi6eQ.js +1 -0
  172. package/dist/{saas-CHviJgF2.js → saas-DDz3ivSL.js} +2 -2
  173. package/dist/{scan-pHPntFbs.js → scan-BoHmvDOe.js} +1 -1
  174. package/dist/{schema-DJd7Gq_p.js → schema-Bk0R_6ul.js} +1 -1
  175. package/dist/{schema-tables-Ba9LE_XB.js → schema-tables-CqEHokUT.js} +2 -2
  176. package/dist/server/index.js +1 -1
  177. package/dist/{shared-DnVY767H.js → shared-BRLAQqj4.js} +1 -1
  178. package/dist/{size-Dm3777Ev.js → size-CQkUXcPF.js} +4 -4
  179. package/dist/{skills-txCdqGns.js → skills-BIGdhR5i.js} +1 -1
  180. package/dist/{skills-D4ItrS0F.js → skills-DiMXWCQY.js} +1 -1
  181. package/dist/{snapshot-size-CpdksnSr.js → snapshot-size-1zICkeFb.js} +1 -1
  182. package/dist/{snapshot-size-I_-fxGry.js → snapshot-size-CFwBMDNC.js} +1 -1
  183. package/dist/solid/index.js +1 -1
  184. package/dist/solid-start/index.js +2 -2
  185. package/dist/{sources-C6Id63F8.js → sources-DNVEyJxb.js} +10 -2
  186. package/dist/{src-10d_jun2.js → src-DUWw9z1D.js} +2 -2
  187. package/dist/{stores-jgDndNHa.js → stores-qYmLHVKv.js} +1 -1
  188. package/dist/{subject-B7p94Y0s.js → subject-CMkc28eP.js} +1 -1
  189. package/dist/supabase/index.js +3 -3
  190. package/dist/supabase/middleware.js +3 -3
  191. package/dist/{supabase-D-kxyoaX.js → supabase-BBEop7q7.js} +2 -2
  192. package/dist/{supabase-hook-DDxDjlOU.js → supabase-hook-C3q-XEnu.js} +8 -8
  193. package/dist/supabase-hook-DLnH3_5Z.js +2 -0
  194. package/dist/{supabase-schemas-D6ezN5Ln.js → supabase-schemas-RPYfnE6O.js} +2 -2
  195. package/dist/{supabase-CeJAHqZp.js → supabase-zRUmN_PE.js} +3 -3
  196. package/dist/svelte/index.js +2 -2
  197. package/dist/svelte/runtime.js +1 -1
  198. package/dist/svelte/source.js +1 -1
  199. package/dist/sveltekit/index.js +1 -1
  200. package/dist/{table-reads-DHB56kFZ.js → table-reads-CegjCVHG.js} +1 -1
  201. package/dist/{table-reads-Doh_Egx2.js → table-reads-DpncF1F-.js} +3 -3
  202. package/dist/{tables-E-dIHUN_.js → tables-Dr4BUH9i.js} +12 -8
  203. package/dist/tanstack-start/index.js +1 -1
  204. package/dist/{tenant-check-DGfE7Sns.js → tenant-check-C5DAstGo.js} +3 -3
  205. package/dist/terminal/index.js +2 -2
  206. package/dist/testing/core.js +1 -1
  207. package/dist/testing/index.d.ts +1 -1
  208. package/dist/testing/index.js +7 -7
  209. package/dist/testing/saas/index.js +2 -2
  210. package/dist/testing/saas/permissions.js +1 -1
  211. package/dist/trpc/index.js +2 -2
  212. package/dist/unplugin/index.js +1 -1
  213. package/dist/{usage-DymSoYQZ.js → usage-D5Rin-a_.js} +1 -1
  214. package/dist/usage-D7eCW8yi.js +1 -0
  215. package/dist/{usage-CX_wmL5W.js → usage-DDr-iwHr.js} +6 -6
  216. package/dist/{verify-CHlmYg2d.js → verify-Df9u1-v5.js} +13 -13
  217. package/dist/vue/index.js +1 -1
  218. package/dist/{warm-BOrs0-_j.js → warm-C6Hn4J-4.js} +1 -1
  219. package/dist/{watch-BFDMb5N4.js → watch-BuQhtt25.js} +2 -2
  220. package/dist/{watch-CkL1iuKJ.js → watch-DEPXy-r0.js} +2 -2
  221. package/dist/watch-wQLoPqC-.js +1 -0
  222. package/dist/workflow/index.js +1 -1
  223. package/package.json +3 -3
  224. package/skills/permdock-agents/references/runtimes.md +1 -1
  225. package/dist/bundle-size-CGd8wVIu.js +0 -1
  226. package/dist/catalog-e6QRd1JP.js +0 -1
  227. package/dist/claims-size-B0OvYh9z.js +0 -1
  228. package/dist/collect-C2_CKZ09.js +0 -1
  229. package/dist/evaluator-zpeC7zel.js +0 -2
  230. package/dist/gen-CNYlckFE.js +0 -1
  231. package/dist/load-BCABUQZi.js +0 -1
  232. package/dist/pull-CylkuBGR.js +0 -1
  233. package/dist/run-C7nX-hkR.js +0 -1
  234. package/dist/supabase-hook-BTiZ8LTJ.js +0 -2
  235. package/dist/usage-DcVP-SFj.js +0 -1
  236. package/dist/watch-5WP3ZCcR.js +0 -1
@@ -1,7 +1,7 @@
1
1
  import { i as snapshotTag, n as snapshotHeaders, r as snapshotKey, t as cacheLifeFor } from "../snapshot-cache-DTTEfmxv.js";
2
- import { t as warm } from "../warm-BOrs0-_j.js";
3
- import { u as withApp } from "../permdock-CbavFN6u.js";
4
- import { n as resolveOrNull, t as buildInstance } from "../build-instance-BGpABVbM.js";
2
+ import { t as warm } from "../warm-C6Hn4J-4.js";
3
+ import { u as withApp } from "../permdock-B0aE5Ime.js";
4
+ import { n as resolveOrNull, t as buildInstance } from "../build-instance-BX5yWZDz.js";
5
5
  import { a as permissionStates } from "../checks-DSm45qH7.js";
6
6
  import { t as compact } from "../compact-C4LFuqbW.js";
7
7
  import { n as NO_GRANT, t as LOAD_FAILED } from "../decision-hHv4UZgy.js";
@@ -1,5 +1,5 @@
1
1
  import { a as describeError } from "../errors-DgLOqc6j.js";
2
- import { i as report, r as createCollectScheduler, t as collectOnce } from "../watch-BFDMb5N4.js";
2
+ import { i as report, r as createCollectScheduler, t as collectOnce } from "../watch-BuQhtt25.js";
3
3
  // src/cli/plugin.ts
4
4
  const PHASE_BUILD = "phase-production-build";
5
5
  const PHASE_DEV = "phase-development-server";
@@ -1,5 +1,5 @@
1
1
  import { f as InvalidSignatureError, g as webBotAuthVerifier, p as discoverViaSignatureAgent } from "../evaluations-DPEAu_jM.js";
2
- import { r as bindKernel } from "../bind-BNYcJ1D9.js";
2
+ import { r as bindKernel } from "../bind-CFwfgfp2.js";
3
3
  import { n as sendResponse, r as toRequest, t as isServerResponse } from "../http-dNltTpC8.js";
4
4
  // src/node/create.ts
5
5
  const nodeRequest = (req) => req;
@@ -1,6 +1,6 @@
1
- import { t as agentRuntime } from "../create-BICq9l-p.js";
2
- import { t as approvalTokenOf } from "../kernel-yI0nUyuX.js";
3
- import { u as withApp } from "../permdock-CbavFN6u.js";
1
+ import { t as agentRuntime } from "../create-fNkkpOy5.js";
2
+ import { t as approvalTokenOf } from "../kernel-UOKCD3tV.js";
3
+ import { u as withApp } from "../permdock-B0aE5Ime.js";
4
4
  import { t as compact } from "../compact-C4LFuqbW.js";
5
5
  // src/openai/create.ts
6
6
  function appContext(runContext) {
@@ -79,7 +79,7 @@ const emitFlags = {
79
79
  }
80
80
  };
81
81
  async function executeOpenapiEmit(ctx, flags) {
82
- return (await import("./openapi-D7kRYqWu.js")).runOpenapi({
82
+ return (await import("./openapi-CufQiEo8.js")).runOpenapi({
83
83
  cwd: ctx.cwd,
84
84
  config: ctx.config,
85
85
  rest: ["emit"],
@@ -132,7 +132,7 @@ async function executeAnnotate(ctx, flags) {
132
132
  const routes = given(flags.routes);
133
133
  const doc = given(flags.doc);
134
134
  if (routes !== void 0 && doc !== void 0) throw new CliError("usage", "openapi annotate takes --routes or --doc, not both", { code: "usage" });
135
- if (doc !== void 0) return (await import("./annotate-doc-BA0betEO.js")).runAnnotateDocument({
135
+ if (doc !== void 0) return (await import("./annotate-doc-CLU0DxK7.js")).runAnnotateDocument({
136
136
  cwd: ctx.cwd,
137
137
  config: ctx.config,
138
138
  doc,
@@ -145,7 +145,7 @@ async function executeAnnotate(ctx, flags) {
145
145
  });
146
146
  if (routes === void 0) throw missingInput("openapi annotate", ["--routes or --doc"], "the route modules or the OpenAPI document to read");
147
147
  const writeSpec = given(flags["write-spec"]);
148
- return (await import("./annotate-dUrBHXWa.js")).runAnnotate({
148
+ return (await import("./annotate-DcSH62rl.js")).runAnnotate({
149
149
  cwd: ctx.cwd,
150
150
  routes,
151
151
  ...writeSpec === void 0 ? {} : { writeSpec },
@@ -183,7 +183,7 @@ const importDocument = defineLeaf({
183
183
  async run(ctx, { flags }) {
184
184
  const doc = given(flags.doc);
185
185
  if (doc === void 0) throw missingInput("openapi import", ["--doc"], "the OpenAPI document to import");
186
- return (await import("./import-BLN-HGJG.js")).runOpenapiImport({
186
+ return (await import("./import-BIJM6oAh.js")).runOpenapiImport({
187
187
  cwd: ctx.cwd,
188
188
  doc,
189
189
  out: fileOut("openapi import", flags.out),
@@ -6,8 +6,8 @@ import { i as configError } from "./errors-DgLOqc6j.js";
6
6
  import { i as fileDrift } from "./output-files-8lfALMSU.js";
7
7
  import { t as shortDiff } from "./text-diff-DxKRNFlx.js";
8
8
  import { i as readJsonFile, s as writeFileEnsuringDir } from "./files-DAR51W3J.js";
9
- import { a as loadModule, n as asPolicy, s as pickNamed, t as asPermissionTree } from "./load-m7jmit3y.js";
10
- import { n as validateOverlay, t as validateOpenapi } from "./schema-DJd7Gq_p.js";
9
+ import { a as loadModule, n as asPolicy, s as pickNamed, t as asPermissionTree } from "./load-D03A3tZL.js";
10
+ import { n as validateOverlay, t as validateOpenapi } from "./schema-Bk0R_6ul.js";
11
11
  import { existsSync } from "node:fs";
12
12
  import { resolve } from "node:path";
13
13
  // src/cli/openapi/emit/merge.ts
@@ -3,7 +3,7 @@ import { n as CliError } from "./errors-DgLOqc6j.js";
3
3
  /** The annotated document, without writing it. */
4
4
  async function openapiDocument(task, options, source) {
5
5
  if (options.doc === void 0) return [];
6
- const { runOpenapi } = await import("./openapi-D7kRYqWu.js");
6
+ const { runOpenapi } = await import("./openapi-CufQiEo8.js");
7
7
  const outcome = await runOpenapi({
8
8
  cwd: source.cwd,
9
9
  config: source.config,
@@ -35,6 +35,16 @@ function jiti() {
35
35
  function parseSync(...args) {
36
36
  return oxc().parseSync(...args);
37
37
  }
38
+ function parseTree(...args) {
39
+ const parser = oxc();
40
+ const [file, text, options] = args;
41
+ if (!parser.rawTransferSupported()) return parser.parseSync(file, text, options);
42
+ const raw = {
43
+ ...options,
44
+ experimentalRawTransfer: true
45
+ };
46
+ return parser.parseSync(file, text, raw);
47
+ }
38
48
  /** `new Visitor(visitor)` from `oxc-parser`, loaded on first call. */
39
49
  function createVisitor(visitor) {
40
50
  return new (oxc()).Visitor(visitor);
@@ -43,4 +53,4 @@ function createVisitor(visitor) {
43
53
  function visitorKeyTypes() {
44
54
  return Object.keys(oxc().visitorKeys);
45
55
  }
46
- export { visitorKeyTypes as i, jiti as n, parseSync as r, createVisitor as t };
56
+ export { visitorKeyTypes as a, parseTree as i, jiti as n, parseSync as r, createVisitor as t };
@@ -1,9 +1,9 @@
1
1
  import { t as compact } from "../compact-C4LFuqbW.js";
2
2
  import { o as isPermission } from "../permission-registry-DstT40VS.js";
3
- import { n as attached } from "../bind-BNYcJ1D9.js";
3
+ import { n as attached } from "../bind-CFwfgfp2.js";
4
4
  import { o as problemMessage } from "../http-C9jDw_bZ.js";
5
5
  import { t as problemFromError } from "../map-error-DYQbf-3Q.js";
6
- import { i as rpcCode, n as guardStream, r as problemBody, t as bindRpcKernel } from "../rpc-RDBrKR7N.js";
6
+ import { i as rpcCode, n as guardStream, r as problemBody, t as bindRpcKernel } from "../rpc-C-kZGWs6.js";
7
7
  import { i as isAsyncIterable, o as reloadAfter } from "../stream-DdF94h7T.js";
8
8
  import { r as permissionList } from "../decide-set-CgNcE6pP.js";
9
9
  import { ORPCError, os } from "@orpc/server";
@@ -1,5 +1,5 @@
1
1
  import { c as isActionRequired, l as isRetryable, n as CliError, t as CLI_ERRORS_URL } from "./errors-DgLOqc6j.js";
2
- import { t as DOCS_BASE } from "./manifest-CMh8sAAH.js";
2
+ import { t as DOCS_BASE } from "./manifest-CZvwWacN.js";
3
3
  import { s as cliVersion } from "./version-D-jWyJb9.js";
4
4
  import { createHash } from "node:crypto";
5
5
  // src/cli/core/consent.ts
@@ -1,14 +1,14 @@
1
1
  import { l as scopeChain, s as resolveScope } from "./scopes-B-KX9EI8.js";
2
2
  import { r as findRole } from "./vocabulary-CE2k7s1a.js";
3
- import { S as scopeTable, _ as memberRoleOf, m as memberForTable, x as scopeSources } from "./names-DwGleRKB.js";
4
- import { C as tenantTypeOf, a as kindFilterSql, f as subjectIdSql, r as globalKindFilterSql, s as memberVia } from "./subject-B7p94Y0s.js";
3
+ import { S as scopeTable, _ as memberRoleOf, m as memberForTable, x as scopeSources } from "./names-zCkaCepO.js";
4
+ import { C as tenantTypeOf, a as kindFilterSql, f as subjectIdSql, r as globalKindFilterSql, s as memberVia } from "./subject-CMkc28eP.js";
5
5
  import { i as qualifySqlTable } from "./sql-T4GaBh9X.js";
6
- import { l as roleColumn } from "./sources-C6Id63F8.js";
6
+ import { l as roleColumn } from "./sources-DNVEyJxb.js";
7
7
  import { i as configError } from "./errors-DgLOqc6j.js";
8
- import { a as quoteIdent, i as qualified, n as declaredArray, o as quoteLiteral, s as quoteQualified } from "./quote-LNaBdCGA.js";
9
- import { s as signedIn, t as CUSTOM_ROLES } from "./shared-DnVY767H.js";
10
- import { A as membershipRows, D as globalRoleRows, I as hasCustomRoleChecksFor, T as sourcesKeep, V as storedTenant, d as disabledColumn, h as memberColumn, j as roleRows, l as claimKeptLines, n as delegatedGlobalSql, o as interactiveSessionSql, x as sourceFilters } from "./interactive-only-C9NQJXpi.js";
11
- import { _ as sourceTransferTriggerSql, b as ASSIGNMENTS, g as sourceRowsSql, h as sourceHoldersTriggerSql, m as pairsSql, p as holderSources, v as holdersTriggerSql, x as OWNERSHIP, y as transferTriggerSql } from "./tables-E-dIHUN_.js";
8
+ import { a as quoteIdent, i as qualified, n as declaredArray, o as quoteLiteral, s as quoteQualified } from "./quote-BX3DDoTX.js";
9
+ import { s as signedIn, t as CUSTOM_ROLES } from "./shared-BRLAQqj4.js";
10
+ import { A as membershipRows, D as globalRoleRows, I as hasCustomRoleChecksFor, T as sourcesKeep, V as storedTenant, d as disabledColumn, h as memberColumn, j as roleRows, l as claimKeptLines, n as delegatedGlobalSql, o as interactiveSessionSql, x as sourceFilters } from "./interactive-only-ek-Kf0Kq.js";
11
+ import { _ as sourceTransferTriggerSql, b as ASSIGNMENTS, g as sourceRowsSql, h as sourceHoldersTriggerSql, m as pairsSql, p as holderSources, v as holdersTriggerSql, x as OWNERSHIP, y as transferTriggerSql } from "./tables-Dr4BUH9i.js";
12
12
  // src/cli/rls/assignments.ts
13
13
  /**
14
14
  * The client roles whose writes the assignment triggers check; any other role
package/dist/pdp/index.js CHANGED
@@ -4,7 +4,7 @@ import { n as PermDockValidationError } from "../validation-error-CgDOA6VS.js";
4
4
  import { a as deniedMessage, i as approvalMessage, n as PermDockDeniedError, t as PermDockApprovalRequiredError } from "../errors-DOSkVeTC.js";
5
5
  import { n as freezeDeep } from "../freeze-DGfJq_j2.js";
6
6
  import { n as internalsOf, t as attachInternals } from "../internals-D58TnmDB.js";
7
- import { n as getPermDockSync$1, t as getPermDock$1 } from "../permdock-CbavFN6u.js";
7
+ import { n as getPermDockSync$1, t as getPermDock$1 } from "../permdock-B0aE5Ime.js";
8
8
  import { a as getResource, c as listPermissions } from "../permission-registry-DstT40VS.js";
9
9
  import { a as postJson, c as ttlMs, i as joinUrl, n as denied, o as resourceIdOf, r as granted, s as ttlCache, t as cacheKey } from "../shared-BOsJIQf4.js";
10
10
  import { n as toWireDelegation } from "../wire-delegation-DC5Cyec4.js";
@@ -2,7 +2,7 @@ import { n as isReadonlyArray, r as isRecord, t as compact } from "./compact-C4L
2
2
  import { A as emptyListeners, I as contactMemberships, L as isContact, a as assignableNamesFor, c as roleSourceFor, j as finish, k as emitSafe, l as sourceName, o as customRolesFor, t as evaluate, y as indexCustomRoles } from "./evaluate-DNz6wMYv.js";
3
3
  import { n as PermDockValidationError } from "./validation-error-CgDOA6VS.js";
4
4
  import { n as isThenable } from "./thenable-BxMy2v8w.js";
5
- import { c as heldRoleNames, d as audiencesOf, g as asMembershipSource, i as assignableIn, l as roleLeaf, m as roleMeta, n as snapshotScopes, o as collectSnapshotGrants, s as whereGrant, t as snapshotOf, u as applyRoleKinds } from "./instance-snapshot-D03srwnf.js";
5
+ import { c as heldRoleNames, d as audiencesOf, g as asMembershipSource, i as assignableIn, l as roleLeaf, m as roleMeta, n as snapshotScopes, o as collectSnapshotGrants, s as whereGrant, t as snapshotOf, u as applyRoleKinds } from "./instance-snapshot-BJam8gUa.js";
6
6
  import { i as readAppData } from "./app-data-DbSPSPIl.js";
7
7
  import { n as pickVisible, r as sanitizeContext } from "./fields-C0L2FoZk.js";
8
8
  import { n as freezeDeep, t as freezeCopy } from "./freeze-DGfJq_j2.js";
@@ -1,4 +1,4 @@
1
- import { c as crud } from "./src-10d_jun2.js";
1
+ import { c as crud } from "./src-DUWw9z1D.js";
2
2
  import { t as definePermissions } from "./permissions-DJ_QV9L7.js";
3
3
  import { n as defineRoles, t as definePlans } from "./vocabulary-CE2k7s1a.js";
4
4
  import { v as resource } from "./permission-registry-DstT40VS.js";
@@ -2,8 +2,8 @@ import { t as canonicalJson } from "./canonical-json-BibZkXtE.js";
2
2
  import { r as planFiles, t as applyFiles } from "./files-DuV7wRim.js";
3
3
  import { s as writeFileEnsuringDir } from "./files-DAR51W3J.js";
4
4
  import { n as CliError } from "./errors-DgLOqc6j.js";
5
- import { a as ownedObjects, i as inReservedDir, n as foreignSchemaFiles, o as shownKey, s as withoutOwned, t as policyModel } from "./model-DQQYg8UW.js";
6
- import { n as resolveSchemas } from "./supabase-schemas-D6ezN5Ln.js";
5
+ import { a as ownedObjects, i as inReservedDir, n as foreignSchemaFiles, o as shownKey, s as withoutOwned, t as policyModel } from "./model-BfhDMEDf.js";
6
+ import { n as resolveSchemas } from "./supabase-schemas-RPYfnE6O.js";
7
7
  import { i as orderPlugins } from "./plugin-MQVfUBUS.js";
8
8
  import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
9
9
  import { join, relative, resolve } from "node:path";
@@ -1,7 +1,7 @@
1
1
  import { t as defineLeaf } from "./command-9GAzSI7E.js";
2
2
  import { f as usageResult } from "./errors-DgLOqc6j.js";
3
3
  import { f as policyFlag, i as dryRunFlag, l as given, t as checkFlag, u as outFlag } from "./flags-DQzNPxg1.js";
4
- import { c as requirePolicy } from "./load-m7jmit3y.js";
4
+ import { c as requirePolicy } from "./load-D03A3tZL.js";
5
5
  // src/cli/commands/policy.ts
6
6
  const policyBundle = defineLeaf({
7
7
  flags: {
@@ -18,7 +18,7 @@ const policyBundle = defineLeaf({
18
18
  },
19
19
  async run(ctx, { flags }) {
20
20
  try {
21
- const { runPolicyBundle } = await import("./policy-bundle-rC5_X9hX.js");
21
+ const { runPolicyBundle } = await import("./policy-bundle-BZyCcphj.js");
22
22
  const policy = await requirePolicy(ctx.cwd, given(flags.policy) ?? ctx.config.policy, "set policy in permdock.config.ts or pass --policy");
23
23
  return runPolicyBundle({
24
24
  cwd: ctx.cwd,
@@ -1,7 +1,7 @@
1
1
  import { n as fileSummary, t as applyFiles } from "./files-DuV7wRim.js";
2
- import { i as buildContext, n as isRefusal, o as inheritTargets, t as generateOptions } from "./generate-options-eMjRViev.js";
3
- import { r as compileGrants } from "./compile-BWOrvhGt.js";
4
- import { X as policyBundle, Y as bundleLoaderSql, i as tableNames, q as POLICY_BUNDLE_FORMAT } from "./tables-E-dIHUN_.js";
2
+ import { i as buildContext, n as isRefusal, o as inheritTargets, t as generateOptions } from "./generate-options-Bq5qQ9H7.js";
3
+ import { r as compileGrants } from "./compile-CeaX5VD-.js";
4
+ import { X as policyBundle, Y as bundleLoaderSql, i as tableNames, q as POLICY_BUNDLE_FORMAT } from "./tables-Dr4BUH9i.js";
5
5
  import { existsSync, readFileSync } from "node:fs";
6
6
  import { resolve } from "node:path";
7
7
  // src/cli/policy-bundle.ts
@@ -12,7 +12,7 @@ import { r as readWireValidity } from "./validity-YNEEm2MZ.js";
12
12
  import { n as defineRoles, t as definePlans } from "./vocabulary-CE2k7s1a.js";
13
13
  import { n as copyJson, t as checkSchema } from "./json-schema-jtX26ydD.js";
14
14
  import { t as parseCatalog } from "./parse-CUqZ_lLC.js";
15
- import { n as parsePushedPolicy } from "./pushed-policy-dm_hFstN.js";
15
+ import { n as parsePushedPolicy } from "./pushed-policy-DXA5KLo6.js";
16
16
  // src/catalog/json-schema-validator.ts
17
17
  const ANNOTATIONS = /* @__PURE__ */ new Set([
18
18
  "$schema",
@@ -1 +1 @@
1
- export { i as powersyncFiles, r as publicationPath, t as runPowerSync } from "./powersync-C1OW6iVd.js";
1
+ export { i as powersyncFiles, r as publicationPath, t as runPowerSync } from "./powersync-DVUeHJpL.js";
@@ -24,7 +24,7 @@ const verify = defineLeaf({
24
24
  const db = await dbUrl(ctx, flags, { required: true });
25
25
  const fixtures = given(flags.fixtures);
26
26
  const from = given(flags.policy);
27
- const { runPowerSync } = await import("./powersync-DW7seEgS.js");
27
+ const { runPowerSync } = await import("./powersync-C6F2F_VP.js");
28
28
  return runPowerSync({
29
29
  cwd: ctx.cwd,
30
30
  config: ctx.config,
@@ -1,32 +1,32 @@
1
1
  import { c as isConditionDate, l as isConditionRef, o as hasConditionOp } from "./refs-Cix9Zjis.js";
2
2
  import { n as findPermission } from "./permission-registry-DstT40VS.js";
3
- import { t as getPermDock } from "./permdock-CbavFN6u.js";
4
- import { A as memoryCustomRoleSource, _ as localSnapshotManifest } from "./src-10d_jun2.js";
3
+ import { t as getPermDock } from "./permdock-B0aE5Ime.js";
4
+ import { A as memoryCustomRoleSource, _ as localSnapshotManifest } from "./src-DUWw9z1D.js";
5
5
  import { f as usageResult } from "./errors-DgLOqc6j.js";
6
6
  import { t as applyFiles } from "./files-DuV7wRim.js";
7
7
  import { i as fileDrift } from "./output-files-8lfALMSU.js";
8
- import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-3aUUP6Nx.js";
8
+ import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-B29C2DGA.js";
9
9
  import { r as pgConnector } from "./pg-DmS5ITHu.js";
10
- import { c as requirePolicy } from "./load-m7jmit3y.js";
11
- import { t as canFixture } from "./verify-CHlmYg2d.js";
12
- import { d as andConditions, l as collectGrants, o as assignableRoles, p as contextRefs, u as roleNames } from "./rbac-ByuGspKZ.js";
13
- import { a as quoteIdent, s as quoteQualified } from "./quote-LNaBdCGA.js";
10
+ import { c as requirePolicy } from "./load-D03A3tZL.js";
11
+ import { t as canFixture } from "./verify-Df9u1-v5.js";
12
+ import { d as andConditions, l as collectGrants, o as assignableRoles, p as contextRefs, u as roleNames } from "./rbac-COexzCC9.js";
13
+ import { a as quoteIdent, s as quoteQualified } from "./quote-BX3DDoTX.js";
14
14
  import { a as scopeMembershipTable, i as scopeColumn } from "./compile-BUKXrueE.js";
15
15
  import { r as isRecord, t as compact } from "./compact-C4LFuqbW.js";
16
16
  import { d as scopeList, s as resolveScope } from "./scopes-B-KX9EI8.js";
17
- import { d as keptKeys, t as AUTHZ_VERSION_TABLE } from "./sources-C6Id63F8.js";
18
- import { a as customRolesOn, t as CUSTOM_ROLES } from "./shared-DnVY767H.js";
17
+ import { d as keptKeys, t as AUTHZ_VERSION_TABLE } from "./sources-DNVEyJxb.js";
18
+ import { a as customRolesOn, t as CUSTOM_ROLES } from "./shared-BRLAQqj4.js";
19
19
  import { t as membershipSourcesOf } from "./sources-BbSUNmFX.js";
20
20
  import { s as quoteSqlLiteral, t as SQL_IDENT } from "./sql-T4GaBh9X.js";
21
- import { t as ownershipRules } from "./ownership-CCgncSLb.js";
22
- import { a as tableFor } from "./compile-BWOrvhGt.js";
23
- import { i as tableNames, r as tableNameOf } from "./tables-E-dIHUN_.js";
21
+ import { t as ownershipRules } from "./ownership-Bx_s_E8i.js";
22
+ import { a as tableFor } from "./compile-CeaX5VD-.js";
23
+ import { i as tableNames, r as tableNameOf } from "./tables-Dr4BUH9i.js";
24
24
  import { l as policyLevels } from "./policy-CZBJDcTx.js";
25
25
  import { p as scopeField } from "./tenancy-B5Xxt9Sc.js";
26
26
  import { t as requiresApproval } from "./approval-required-B-R4Yw3J.js";
27
27
  import { o as sqlFiles } from "./files-DAR51W3J.js";
28
28
  import { o as parseSqlLenient } from "./ast-Dnm2TOHN.js";
29
- import { n as resolveSchemas } from "./supabase-schemas-D6ezN5Ln.js";
29
+ import { n as resolveSchemas } from "./supabase-schemas-RPYfnE6O.js";
30
30
  import { existsSync, readFileSync } from "node:fs";
31
31
  import { join, resolve } from "node:path";
32
32
  // src/cli/powersync/claims.ts
@@ -1,8 +1,8 @@
1
- import { r as parseSync } from "./optional-CaQWp9HA.js";
1
+ import { i as parseTree } from "./optional-Dw7to-jw.js";
2
2
  // src/cli/source/program.ts
3
3
  /** The program of `text`, or `undefined` when the parser reports an error. */
4
4
  function parseProgram(file, text) {
5
- const parsed = parseSync(file, text);
5
+ const parsed = parseTree(file, text);
6
6
  return parsed.errors.some((error) => {
7
7
  return error.severity === "Error";
8
8
  }) ? void 0 : parsed.program;
@@ -1,4 +1,4 @@
1
- import { t as eagerEvaluator } from "./evaluator-eager-BLNVbEAC.js";
1
+ import { t as eagerEvaluator } from "./evaluator-eager-B_4KdPgg.js";
2
2
  import { t as ProviderWith } from "./provider-with-DtBgCCV_.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  // src/react/provider.tsx
@@ -1,6 +1,6 @@
1
1
  import { t as parseCatalog } from "./parse-CUqZ_lLC.js";
2
2
  import { n as freezeDeep } from "./freeze-DGfJq_j2.js";
3
- import { a as delegatedScopeMap } from "./permdock-CbavFN6u.js";
3
+ import { a as delegatedScopeMap } from "./permdock-B0aE5Ime.js";
4
4
  import { i as qualifySqlTable, l as sqlIdent, s as quoteSqlLiteral } from "./sql-T4GaBh9X.js";
5
5
  import { n as parseSupabaseManifest, t as hasTokenHook } from "./manifest-teSfgeqF.js";
6
6
  import { y as parseAnswer } from "./permission-registry-DstT40VS.js";
@@ -1,6 +1,6 @@
1
1
  import { t as compact } from "./compact-C4LFuqbW.js";
2
2
  import { t as emptySnapshot } from "./snapshot-empty-pKgPDcLd.js";
3
- import { t as eagerEvaluator } from "./evaluator-eager-BLNVbEAC.js";
3
+ import { t as eagerEvaluator } from "./evaluator-eager-B_4KdPgg.js";
4
4
  import { l as isPromiseLike, t as adapterStore } from "./store-options-DgOuhUSn.js";
5
5
  // src/client/provider-store.ts
6
6
  /**
@@ -1,17 +1,17 @@
1
1
  import { n as CliError } from "./errors-DgLOqc6j.js";
2
2
  import { i as refuseDirty, t as applyFiles } from "./files-DuV7wRim.js";
3
3
  import { a as rel } from "./files-DAR51W3J.js";
4
- import { t as genFiles } from "./gen-D85_gUOz.js";
5
- import { t as projectContext } from "./context-DntIOpzS.js";
6
- import { t as emitPluginFiles } from "./pipeline-DGFc6y6x.js";
4
+ import { t as genFiles } from "./gen-CZB21YVB.js";
5
+ import { t as projectContext } from "./context-BKZmdYRf.js";
6
+ import { t as emitPluginFiles } from "./pipeline-BTsmCn1p.js";
7
7
  import { n as isPermDockPlugin } from "./plugin-MQVfUBUS.js";
8
- import { S as restatedFacts, c as withDerivedDefaults, o as readParsedConfig, t as configFileIn } from "./config-Dan6vcvj.js";
9
- import { c as requirePolicy } from "./load-m7jmit3y.js";
10
- import { n as restatedDefaults, r as withoutPath } from "./resolve-config-Cu_mE2wt.js";
11
- import { n as writtenPaths, t as configProperty } from "./config-paths-CQvGng3k.js";
12
- import { r as removeProperty, t as applyEditsStrict } from "./edits-CqU8s2GC.js";
13
- import { n as commandFor } from "./compile-BWOrvhGt.js";
14
- import { r as schemaTables, t as restatedSchemaDefaults } from "./schema-tables-Ba9LE_XB.js";
8
+ import { S as restatedFacts, c as withDerivedDefaults, o as readParsedConfig, t as configFileIn } from "./config-C1lTq4gJ.js";
9
+ import { c as requirePolicy } from "./load-D03A3tZL.js";
10
+ import { n as restatedDefaults, r as withoutPath } from "./resolve-config-LiLfxe8X.js";
11
+ import { n as writtenPaths, t as configProperty } from "./config-paths-Cg3IXh9T.js";
12
+ import { r as removeProperty, t as applyEditsStrict } from "./edits-Ckbit4uD.js";
13
+ import { n as commandFor } from "./compile-CeaX5VD-.js";
14
+ import { r as schemaTables, t as restatedSchemaDefaults } from "./schema-tables-CqEHokUT.js";
15
15
  import { readFileSync } from "node:fs";
16
16
  // src/cli/codemod/prune-config.ts
17
17
  /** Every generated file for `config`, as sorted `path` and text pairs. */
@@ -4,7 +4,7 @@ import { n as parseSupabaseManifest } from "./manifest-teSfgeqF.js";
4
4
  import { o as formatCatalogJson } from "./catalog-doc-BX97oFAn.js";
5
5
  import { t as catalogPath } from "./catalog-path-bG0XxHMu.js";
6
6
  import { a as describeError } from "./errors-DgLOqc6j.js";
7
- import { o as nonEmptyOr } from "./output-ONUzppLo.js";
7
+ import { o as nonEmptyOr } from "./output-yUW7fcAk.js";
8
8
  import { s as cliVersion } from "./version-D-jWyJb9.js";
9
9
  import { s as writeFileEnsuringDir } from "./files-DAR51W3J.js";
10
10
  import { n as formatManifestJson } from "./manifest-json-DMaBWmcG.js";
@@ -0,0 +1 @@
1
+ export { n as runCloudPull } from "./pull-CEv7O_zQ.js";
@@ -1,15 +1,15 @@
1
1
  import { t as parseCatalog } from "./parse-CUqZ_lLC.js";
2
- import { r as pushedPolicy } from "./pushed-policy-dm_hFstN.js";
2
+ import { r as pushedPolicy } from "./pushed-policy-DXA5KLo6.js";
3
3
  import { r as isRecord } from "./compact-C4LFuqbW.js";
4
4
  import { n as PermDockValidationError } from "./validation-error-CgDOA6VS.js";
5
5
  import { t as catalogFingerprint } from "./catalog-fingerprint-DAWZARy6.js";
6
6
  import { n as parseSupabaseManifest } from "./manifest-teSfgeqF.js";
7
- import { n as runCatalog } from "./catalog-SnaPhbZ1.js";
7
+ import { n as runCatalog } from "./catalog-DlVcHvH5.js";
8
8
  import { a as describeError, n as CliError } from "./errors-DgLOqc6j.js";
9
9
  import { n as httpRequest, t as authFailure } from "./http-BbX_Ou3_.js";
10
10
  import { s as cliVersion } from "./version-D-jWyJb9.js";
11
11
  import "./manifest-json-DMaBWmcG.js";
12
- import { i as loadConfiguredPolicy } from "./load-m7jmit3y.js";
12
+ import { i as loadConfiguredPolicy } from "./load-D03A3tZL.js";
13
13
  import { a as pushAuth, l as cloudUrl, n as cliRuntime, u as firstNonEmpty } from "./auth-WHKYWtnS.js";
14
14
  import { existsSync, readFileSync } from "node:fs";
15
15
  import { resolve } from "node:path";
@@ -1,6 +1,6 @@
1
1
  import { t as compact } from "./compact-C4LFuqbW.js";
2
2
  import { n as freezeDeep } from "./freeze-DGfJq_j2.js";
3
- import { n as snapshotScopes } from "./instance-snapshot-D03srwnf.js";
3
+ import { n as snapshotScopes } from "./instance-snapshot-BJam8gUa.js";
4
4
  import { n as copyJson, r as forbiddenKeyPath, t as checkSchema } from "./json-schema-jtX26ydD.js";
5
5
  import { n as RFC3339_PATTERN } from "./time-r0CKBm57.js";
6
6
  import { n as PermDockValidationError } from "./validation-error-CgDOA6VS.js";
@@ -1,5 +1,5 @@
1
1
  import { a as quoteQualifiedTable, c as quoteSqlTable, o as quoteSqlIdent, s as quoteSqlLiteral } from "./sql-T4GaBh9X.js";
2
- import "./sources-C6Id63F8.js";
2
+ import "./sources-DNVEyJxb.js";
3
3
  // src/cli/sql/quote.ts
4
4
  function quoteIdent(name) {
5
5
  return quoteSqlIdent(name, CLI);
@@ -1,4 +1,4 @@
1
- import { n as authorizeSql } from "./supabase-CeJAHqZp.js";
1
+ import { n as authorizeSql } from "./supabase-zRUmN_PE.js";
2
2
  import { i as configError } from "./errors-DgLOqc6j.js";
3
3
  import { r as relationCondition, t as inheritCondition } from "./grantee-conditions-Dob6QQAc.js";
4
4
  import { c as rootScope, d as scopeList, s as resolveScope } from "./scopes-B-KX9EI8.js";
@@ -10,10 +10,10 @@ import { n as isForbiddenKey } from "./paths-CeS_gpHf.js";
10
10
  import { i as qualifySqlTable } from "./sql-T4GaBh9X.js";
11
11
  import { u as isoAt } from "./time-r0CKBm57.js";
12
12
  import { u as isSqlFunctionField } from "./refs-Cix9Zjis.js";
13
- import { K as activeUserSql, U as activeInstancesSql, W as activeMembershipSql, c as memoUserSql, g as memoHitList, y as memoizes } from "./interactive-only-C9NQJXpi.js";
14
- import { S as sqlType, a as kindFilterSql, b as idTypeOf, c as roleKindSql, d as subjectClaimSql, f as subjectIdSql, h as CLAIM, i as keyTenantSql, o as liveSessionSql, p as tenantClaimSql, s as memberVia, u as subjectClaimJsonSql } from "./subject-B7p94Y0s.js";
15
- import { S as scopeTable, _ as memberRoleOf, a as graphSqlText, b as restrictedHelper, d as linkHelper, h as memberIdsHelper, l as inheritedRowsHelper, n as CLOSURE, r as graphHelper, x as scopeSources } from "./names-DwGleRKB.js";
16
- import { a as quoteIdent, c as quoteTable, i as qualified, l as textArrayLiteral, o as quoteLiteral, r as helperSchema, s as quoteQualified } from "./quote-LNaBdCGA.js";
13
+ import { K as activeUserSql, U as activeInstancesSql, W as activeMembershipSql, c as memoUserSql, g as memoHitList, y as memoizes } from "./interactive-only-ek-Kf0Kq.js";
14
+ import { S as sqlType, a as kindFilterSql, b as idTypeOf, c as roleKindSql, d as subjectClaimSql, f as subjectIdSql, h as CLAIM, i as keyTenantSql, o as liveSessionSql, p as tenantClaimSql, s as memberVia, u as subjectClaimJsonSql } from "./subject-CMkc28eP.js";
15
+ import { S as scopeTable, _ as memberRoleOf, a as graphSqlText, b as restrictedHelper, d as linkHelper, h as memberIdsHelper, l as inheritedRowsHelper, n as CLOSURE, r as graphHelper, x as scopeSources } from "./names-zCkaCepO.js";
16
+ import { a as quoteIdent, c as quoteTable, i as qualified, l as textArrayLiteral, o as quoteLiteral, r as helperSchema, s as quoteQualified } from "./quote-BX3DDoTX.js";
17
17
  // src/cli/sql/conditions.ts
18
18
  const MAX_CLAIM_DEPTH = 8;
19
19
  /**
@@ -5,5 +5,5 @@ import { r as approvalHeaders } from "../protected-action-DiXulRVj.js";
5
5
  import { a as eventSourceRefresh, i as broadcastChannelRefresh, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-DgOuhUSn.js";
6
6
  import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, m as useRefreshOn, n as Protected, o as useDecision, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-DDYvU-9Z.js";
7
7
  import { t as onlineRefresh } from "../refresh-online-CYGZNo6V.js";
8
- import { t as PermDockProvider } from "../provider-NQwLSlgb.js";
8
+ import { t as PermDockProvider } from "../provider-BT8hVigf.js";
9
9
  export { PermDockProvider, Protected, approvalHeaders, authzChangeRefresh, broadcastChannelRefresh, describe, eventSourceRefresh, focusRefresh, onlineRefresh, requiredPlans, useApproval, useAssignablePermissions, useAssignableRoles, useDecision, useDescribe, useFilter, useGate, useMemberships, usePermDock, usePermission, usePermissions, useProtectedAction, useRefreshOn, useRoles, useSubject, useTenant, visibilityRefresh };
@@ -5,5 +5,5 @@ import { r as approvalHeaders } from "../protected-action-DiXulRVj.js";
5
5
  import { a as eventSourceRefresh, i as broadcastChannelRefresh, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-DgOuhUSn.js";
6
6
  import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, m as useRefreshOn, n as Protected, o as useDecision, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-DDYvU-9Z.js";
7
7
  import { t as onlineRefresh } from "../refresh-online-CYGZNo6V.js";
8
- import { t as PermDockProvider } from "../lazy-provider-b8UHGi8P.js";
8
+ import { t as PermDockProvider } from "../lazy-provider-BPSgEG-A.js";
9
9
  export { PermDockProvider, Protected, approvalHeaders, authzChangeRefresh, broadcastChannelRefresh, describe, eventSourceRefresh, focusRefresh, onlineRefresh, requiredPlans, useApproval, useAssignablePermissions, useAssignableRoles, useDecision, useDescribe, useFilter, useGate, useMemberships, usePermDock, usePermission, usePermissions, useProtectedAction, useRefreshOn, useRoles, useSubject, useTenant, visibilityRefresh };
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export { t as PermDockProvider } from "../lazy-provider-b8UHGi8P.js";
2
+ export { t as PermDockProvider } from "../lazy-provider-BPSgEG-A.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export { t as PermDockProvider } from "../provider-NQwLSlgb.js";
2
+ export { t as PermDockProvider } from "../provider-BT8hVigf.js";
@@ -15,7 +15,7 @@ import { h as secondsAt, m as rfc3339 } from "../time-r0CKBm57.js";
15
15
  import { t as byCodePoint } from "../compare-dfHDj8kT.js";
16
16
  import { r as authzUserTopic, t as AUTHZ_EVENT } from "../authz-topic-D8x24Jv-.js";
17
17
  import { a as PermDockUiContext, i as PermDockStoreContext, n as useKeyed, t as useLiveOptions } from "../live-options-CIUmc-YQ.js";
18
- import { t as eagerEvaluator } from "../evaluator-eager-BLNVbEAC.js";
18
+ import { t as eagerEvaluator } from "../evaluator-eager-B_4KdPgg.js";
19
19
  import { t as emptySnapshot } from "../snapshot-empty-pKgPDcLd.js";
20
20
  import { n as isThenable } from "../thenable-BxMy2v8w.js";
21
21
  import { useEffect, useMemo, useRef } from "react";
@@ -1,16 +1,16 @@
1
1
  import { u as renamedKeys } from "./permission-registry-DstT40VS.js";
2
- import "./sources-C6Id63F8.js";
2
+ import "./sources-DNVEyJxb.js";
3
3
  import { i as configError, n as CliError } from "./errors-DgLOqc6j.js";
4
4
  import { i as refuseDirty, n as fileSummary, t as applyFiles } from "./files-DuV7wRim.js";
5
- import { a as loadModule, r as leavesOf, s as pickNamed, t as asPermissionTree } from "./load-m7jmit3y.js";
6
- import { a as resolveAuthorize } from "./rbac-ByuGspKZ.js";
7
- import { a as customRolesOn, t as CUSTOM_ROLES } from "./shared-DnVY767H.js";
8
- import { n as legacyKeySql } from "./custom-role-rebuild-BwM6hBqt.js";
5
+ import { a as loadModule, r as leavesOf, s as pickNamed, t as asPermissionTree } from "./load-D03A3tZL.js";
6
+ import { a as resolveAuthorize } from "./rbac-COexzCC9.js";
7
+ import { a as customRolesOn, t as CUSTOM_ROLES } from "./shared-BRLAQqj4.js";
8
+ import { n as legacyKeySql } from "./custom-role-rebuild-DzbBD1cq.js";
9
9
  import { n as byKey } from "./compare-8SNJN-9U.js";
10
- import { a as quoteIdent, o as quoteLiteral } from "./quote-LNaBdCGA.js";
11
- import { a as nameOf, o as nodes, r as child, u as walk } from "./ast-CAOxvn9t.js";
12
- import { n as propertyKey, r as removeProperty, t as applyEditsStrict } from "./edits-CqU8s2GC.js";
13
- import { t as parseProgram } from "./program-CvarkLMS.js";
10
+ import { a as quoteIdent, o as quoteLiteral } from "./quote-BX3DDoTX.js";
11
+ import { a as nameOf, o as nodes, r as child, u as walk } from "./ast-BhvgF264.js";
12
+ import { n as propertyKey, r as removeProperty, t as applyEditsStrict } from "./edits-Ckbit4uD.js";
13
+ import { t as parseProgram } from "./program-C2fbc9NO.js";
14
14
  import { existsSync, readFileSync } from "node:fs";
15
15
  import { join, relative, resolve } from "node:path";
16
16
  // src/cli/keys/rename-sql.ts
@@ -4,7 +4,7 @@ import { a as rel, o as sqlFiles } from "./files-DAR51W3J.js";
4
4
  import { n as MIGRATION_DIRS } from "./constants-PCJiir_3.js";
5
5
  import { a as parseSqlFile, c as readPolicy, d as sqlCalls, i as isPolicyCommand, t as SqlSyntaxError } from "./ast-Dnm2TOHN.js";
6
6
  import { i as taggedAccessPolicies } from "./bsb-access-Bcw6GrQm.js";
7
- import { i as callsHelper, o as helperCallKeys } from "./helper-calls-DN1PJcNY.js";
7
+ import { i as callsHelper, o as helperCallKeys } from "./helper-calls-jStpeQ2_.js";
8
8
  import { n as supabaseDir } from "./supabase-dir-0lxKbrYu.js";
9
9
  import { readFileSync } from "node:fs";
10
10
  import { deparse } from "pgsql-parser";
@@ -1 +1 @@
1
- export { t as NON_LEAKPROOF_INDEXED_SQL, n as POLICIES_MAX, r as REPORT_POLICIES_SQL, i as TABLE_READ_RULES, a as droppedPolicy, o as policiesFor, s as reportFiles, c as rlsReport, l as runRlsReport } from "./report-x9GeUvjx.js";
1
+ export { t as NON_LEAKPROOF_INDEXED_SQL, n as POLICIES_MAX, r as REPORT_POLICIES_SQL, i as TABLE_READ_RULES, a as droppedPolicy, o as policiesFor, s as reportFiles, c as rlsReport, l as runRlsReport } from "./report-B7UuE4dW.js";
@@ -1,5 +1,5 @@
1
1
  import { t as assertAppData } from "./app-data-DbSPSPIl.js";
2
- import { t as buildInstance } from "./build-instance-BGpABVbM.js";
2
+ import { t as buildInstance } from "./build-instance-BX5yWZDz.js";
3
3
  import { n as wrapPermDock } from "./wrap-CsfsaJhd.js";
4
4
  // src/core/request-context.ts
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { n as supabaseMembershipsBudget } from "./budget-BH81q2cj.js";
2
- import { r as PERMDOCK_SCHEMA } from "./sources-C6Id63F8.js";
2
+ import { r as PERMDOCK_SCHEMA } from "./sources-DNVEyJxb.js";
3
3
  import { t as defaultSrcPath } from "./files-DAR51W3J.js";
4
4
  import { n as MIGRATION_DIRS, t as DEFAULT_SENSITIVE_ACTIONS } from "./constants-PCJiir_3.js";
5
5
  import { isDeepStrictEqual } from "node:util";
@@ -2,14 +2,14 @@ import { n as freezeDeep } from "./freeze-DGfJq_j2.js";
2
2
  import { c as listPermissions } from "./permission-registry-DstT40VS.js";
3
3
  import { d as scopeList } from "./scopes-B-KX9EI8.js";
4
4
  import "./budget-BH81q2cj.js";
5
- import "./sources-C6Id63F8.js";
5
+ import "./sources-DNVEyJxb.js";
6
6
  import { i as configError } from "./errors-DgLOqc6j.js";
7
- import { t as FIELD_VIEWS } from "./fields-CKX-qjWb.js";
8
- import { C as forUserContext, d as permittedByPermissionHelper, et as graphPlan, i as tableNames, o as PERMISSION_HELPERS, p as holderSources, s as checkName, w as grantBodies } from "./tables-E-dIHUN_.js";
9
- import { b as idTypeOf, x as scopeTypeOf } from "./subject-B7p94Y0s.js";
10
- import { S as scopeTable, b as restrictedHelper, c as hasPermittedUsers, f as memberForHelper, g as memberOfHelper, h as memberIdsHelper, i as graphSqlName, l as inheritedRowsHelper, r as graphHelper, u as isTeamScope, v as permittedForHelper, y as permittedIdsHelper } from "./names-DwGleRKB.js";
11
- import { a as quoteIdent, i as qualified, o as quoteLiteral, s as quoteQualified } from "./quote-LNaBdCGA.js";
12
- import { D as globalRoleRows, m as holderBody } from "./interactive-only-C9NQJXpi.js";
7
+ import { t as FIELD_VIEWS } from "./fields-DWAwA8vX.js";
8
+ import { C as forUserContext, d as permittedByPermissionHelper, et as graphPlan, i as tableNames, o as PERMISSION_HELPERS, p as holderSources, s as checkName, w as grantBodies } from "./tables-Dr4BUH9i.js";
9
+ import { b as idTypeOf, x as scopeTypeOf } from "./subject-CMkc28eP.js";
10
+ import { S as scopeTable, b as restrictedHelper, c as hasPermittedUsers, f as memberForHelper, g as memberOfHelper, h as memberIdsHelper, i as graphSqlName, l as inheritedRowsHelper, r as graphHelper, u as isTeamScope, v as permittedForHelper, y as permittedIdsHelper } from "./names-zCkaCepO.js";
11
+ import { a as quoteIdent, i as qualified, o as quoteLiteral, s as quoteQualified } from "./quote-BX3DDoTX.js";
12
+ import { D as globalRoleRows, m as holderBody } from "./interactive-only-ek-Kf0Kq.js";
13
13
  // src/cli/rls/permission-holders.ts
14
14
  /**
15
15
  * `permitted_<scope>_users(p_permission, p_id)`. Names are part of the SQL