permdock 0.27.3 → 0.28.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 (185) hide show
  1. package/dist/{2020-bJfT8aIA.js → 2020-DBXhfpuK.js} +2 -2
  2. package/dist/{adoption-scan-CHMU7gnE.js → adoption-scan-BHQm3Li7.js} +1 -1
  3. package/dist/approvals/index.d.ts +1 -1
  4. package/dist/{arazzo-D1ZHjjea.js → arazzo-CAQr4N7Z.js} +2 -2
  5. package/dist/{arazzo-DuXmPMSu.js → arazzo-UwtVzma6.js} +1 -1
  6. package/dist/{args-0EWFk-4S.js → args-Bc0HLiD4.js} +1 -1
  7. package/dist/better-supabase/index.d.ts +2 -0
  8. package/dist/better-supabase/index.js +8 -6
  9. package/dist/{casbin-CwLL5QnK.js → casbin-CSgPeAJK.js} +1 -1
  10. package/dist/{casbin-Bf9jkDMy.js → casbin-Ccbaft52.js} +1 -1
  11. package/dist/catalog/index.d.ts +1 -1
  12. package/dist/{catalog-B3MJShnZ.js → catalog-COoxFOoy.js} +1 -1
  13. package/dist/catalog-DCjJIl3n.js +1 -0
  14. package/dist/{catalog-DyC3LKc7.js → catalog-DXSP1we9.js} +1 -1
  15. package/dist/cli/bin.js +1 -1
  16. package/dist/cli/generate/watch-worker.js +1 -1
  17. package/dist/cli/index.d.ts +5 -4
  18. package/dist/cli/index.js +1 -1
  19. package/dist/cli/plugins/app.d.ts +1 -1
  20. package/dist/cli/plugins/app.js +1 -1
  21. package/dist/cli/plugins/better-supabase.d.ts +1 -1
  22. package/dist/cli/plugins/openapi.d.ts +1 -1
  23. package/dist/cli/plugins/openapi.js +1 -1
  24. package/dist/cli/plugins/powersync.d.ts +1 -1
  25. package/dist/cli/plugins/powersync.js +1 -1
  26. package/dist/cli/plugins/rls.d.ts +2 -2
  27. package/dist/cli/plugins/rls.js +1 -1
  28. package/dist/cli/plugins/schemas.d.ts +1 -1
  29. package/dist/cli/plugins/schemas.js +1 -1
  30. package/dist/cli/plugins/scim.d.ts +2 -2
  31. package/dist/cli/plugins/supabase-hook.d.ts +2 -2
  32. package/dist/cli/plugins/supabase-hook.js +1 -1
  33. package/dist/cli/plugins/supabase.d.ts +3 -3
  34. package/dist/cli/plugins/supabase.js +2 -2
  35. package/dist/cli/plugins/ui.d.ts +1 -1
  36. package/dist/cli/plugins/ui.js +1 -1
  37. package/dist/{cloud-nXogJ7e1.js → cloud-CFtvELWj.js} +2 -2
  38. package/dist/{codemod-DwL1E5of.js → codemod-3PFIcPag.js} +2 -2
  39. package/dist/{codemod-Bp2bKwKe.js → codemod-ClcPRv4c.js} +2 -2
  40. package/dist/{collect-BJZsuBW4.js → collect-BOh9Pxob.js} +1 -1
  41. package/dist/{collect-CpGnmGpL.js → collect-BYPq-0JU.js} +2 -2
  42. package/dist/collect-XcoQRyiA.js +1 -0
  43. package/dist/{compile-NM1GOb2q.js → compile-mfTqcMJ5.js} +1 -1
  44. package/dist/{completion-BQovwoTx.js → completion-D4p_MQX7.js} +2 -2
  45. package/dist/{config-DSyn7r1l.js → config-D9bq79Yi.js} +1 -1
  46. package/dist/{config-report--ae2r_MI.js → config-report-DZfIl6zc.js} +2 -2
  47. package/dist/{context-DmH-Eyvx.js → context-BdoA9DhS.js} +2 -2
  48. package/dist/{core-DKqrD_xW.js → core-tEfD0lwu.js} +1 -1
  49. package/dist/delivery/index.d.ts +1 -1
  50. package/dist/{diff-BIqibFnm.js → diff-CXRZ6qPa.js} +1 -1
  51. package/dist/{diff-n6LONVwL.js → diff-Cv9inVY5.js} +1 -1
  52. package/dist/{doctor-CIV882xS.js → doctor-CuhkBJ06.js} +3 -3
  53. package/dist/{doctor-kbRrZD3Q.js → doctor-FHjwjHYC.js} +18 -18
  54. package/dist/{execute-CE8P72Ez.js → execute-DdH84BHC.js} +3 -3
  55. package/dist/gen-BseS8XeZ.js +1 -0
  56. package/dist/{gen-CuEt0o6p.js → gen-CcKymoUw.js} +3 -3
  57. package/dist/{gen-kind-BLIhHgD3.js → gen-kind-Bf9jYVgn.js} +1 -1
  58. package/dist/{generate-Dl75LKbW.js → generate-BCUVV4vB.js} +11 -11
  59. package/dist/{generate-B-Hlc08D.js → generate-UMuStlLD.js} +2 -2
  60. package/dist/{generate-options-BUh621MW.js → generate-options-Cg5sAHhT.js} +6 -6
  61. package/dist/{hook-sql-Bxc_YRrd.js → hook-sql-C0aUoiOH.js} +6 -5
  62. package/dist/{import-BKTq4cxW.js → import--taRAR01.js} +1 -1
  63. package/dist/{index-Cq9N5B92.d.ts → index-BSJoxaOi.d.ts} +1 -1
  64. package/dist/{index-BXz-XXC3.d.ts → index-D1msamx_.d.ts} +1 -1
  65. package/dist/{index-CVuc3E1O.d.ts → index-eaNHkELi.d.ts} +1 -1
  66. package/dist/index.d.ts +2 -2
  67. package/dist/index.js +1 -1
  68. package/dist/{init-B8GG9vjg.js → init-CP3fYFb6.js} +3 -3
  69. package/dist/{init-D4YO8hVa.js → init-Cfi7_gXO.js} +1 -1
  70. package/dist/{json-schema-SDkWXxhu.d.ts → json-schema-DAeA-lJa.d.ts} +1 -1
  71. package/dist/{lazy-provider-CydlnKkS.d.ts → lazy-provider-C48LDq0q.d.ts} +1 -1
  72. package/dist/{lazy-provider-DG5rMeqL.js → lazy-provider-CVX534Kk.js} +1 -1
  73. package/dist/{login-OJdYkueH.js → login-BjkyJNGn.js} +3 -3
  74. package/dist/{login-Bl-SuTJA.js → login-kg9Pd0C2.js} +1 -1
  75. package/dist/{manifest-BY8lK4l4.js → manifest-C7dWk0k5.js} +35 -35
  76. package/dist/{migrate-CmTMk7rd.js → migrate-BwXtXUtE.js} +1 -1
  77. package/dist/next/index.d.ts +2 -2
  78. package/dist/next/plugin.d.ts +1 -1
  79. package/dist/next/plugin.js +1 -1
  80. package/dist/{openapi-CvAjVdK7.js → openapi-B5jo5ClY.js} +3 -3
  81. package/dist/{openapi-Dpetebzt.js → openapi-dJFJTHiW.js} +1 -1
  82. package/dist/{openapi-document-7K7rofeR.js → openapi-document-B58hIsZ4.js} +1 -1
  83. package/dist/{output-Cq0neio3.js → output-Pne7BTXn.js} +1 -1
  84. package/dist/{output-files-DNid6TBl.js → output-files-D5D-8-4l.js} +1 -1
  85. package/dist/output-files-aPXXhV4q.js +1 -0
  86. package/dist/{ownership-CHND0y5L.js → ownership-BPGoxz1T.js} +1 -1
  87. package/dist/{permissions-ijDw4sO1.js → permissions-Bj3DRIEi.js} +1 -1
  88. package/dist/{plugin-1XW5OfAZ.d.ts → plugin-zOs9uqQj.d.ts} +1 -1
  89. package/dist/{policy-DzTU5233.js → policy-G8iZ2T5P.js} +1 -1
  90. package/dist/{policy-bundle-Dafv5nOx.js → policy-bundle-nbcxlVOb.js} +3 -3
  91. package/dist/{powersync-IrDmJbqx.js → powersync-B9KEEiJE.js} +1 -1
  92. package/dist/{powersync-BfMIjRqo.js → powersync-BoOMFQRl.js} +1 -1
  93. package/dist/{powersync-DNeS5JrT.js → powersync-CqAj9QJt.js} +6 -6
  94. package/dist/{prompt-CSXHcJxy.js → prompt-CPlJn_4-.js} +3 -3
  95. package/dist/{protected-action-D6T3eJyW.d.ts → protected-action-CEzNNtfi.d.ts} +2 -2
  96. package/dist/{protected-action-BMb0ftEu.js → protected-action-Dco5O_Kc.js} +1 -1
  97. package/dist/{provider-ClD4rfgT.js → provider-BYcoTKuS.js} +1 -1
  98. package/dist/{provider-CydlnKkS.d.ts → provider-C48LDq0q.d.ts} +1 -1
  99. package/dist/{provider-store-atQUfsVO.js → provider-store-Dq_olUjC.js} +1 -1
  100. package/dist/{provider-with-CSw4mBDU.js → provider-with-fxHItxDh.js} +1 -1
  101. package/dist/pull-8Vce3V1e.js +1 -0
  102. package/dist/{pull-DOwvDn98.js → pull-DXuh-rob.js} +1 -1
  103. package/dist/{push-Cb7PqXdO.js → push-DXh936bz.js} +1 -1
  104. package/dist/{pushed-policy-pH-EFWyx.d.ts → pushed-policy-APjMbYdV.d.ts} +1 -1
  105. package/dist/{rbac-CygtQB85.js → rbac-FlJv7Ba9.js} +1 -1
  106. package/dist/react/index.d.ts +4 -4
  107. package/dist/react/index.js +3 -3
  108. package/dist/react/lazy.d.ts +4 -4
  109. package/dist/react/lazy.js +3 -3
  110. package/dist/react/provider-client-lazy.d.ts +1 -1
  111. package/dist/react/provider-client-lazy.js +1 -1
  112. package/dist/react/provider-client.d.ts +1 -1
  113. package/dist/react/provider-client.js +1 -1
  114. package/dist/react-native/index.d.ts +4 -4
  115. package/dist/react-native/index.js +2 -2
  116. package/dist/{resolve-names-D0hNHBp5.js → resolve-names-CROyyjVR.js} +1 -1
  117. package/dist/{resolver-kdZ4HrpC.js → resolver-4qxIIHcC.js} +1 -1
  118. package/dist/{rls-BjEp-1Ob.js → rls-BL90Ec30.js} +7 -7
  119. package/dist/{rls-BDmebOIp.js → rls-DV4MUNMb.js} +1 -1
  120. package/dist/{rls-files-kGXtfslQ.js → rls-files-BgLoAa9x.js} +2 -2
  121. package/dist/{rls-options-CEpg5nDP.d.ts → rls-options-BZxfMDFo.d.ts} +1 -1
  122. package/dist/{run-DFe2I0T7.js → run-BFDAiNuS.js} +3 -3
  123. package/dist/run-mEbYi2Ow.js +1 -0
  124. package/dist/{saas-DzjKUQr5.js → saas-CUwmgUB8.js} +2 -2
  125. package/dist/{scan-DGCpdOuR.js → scan-CoyAmDAz.js} +1 -1
  126. package/dist/{schema-wummOGn9.js → schema-9eGIiLry.js} +2 -2
  127. package/dist/{size-DF7xQ-nH.js → size-BqLd5oJ4.js} +1 -1
  128. package/dist/{skills-BQ9bEjPV.js → skills-B8nt-KuB.js} +2 -2
  129. package/dist/{skills-BntnICiJ.js → skills-BPDVfXgR.js} +2 -2
  130. package/dist/{snapshot-size-DU7CvpMt.js → snapshot-size-B_chu2c1.js} +1 -1
  131. package/dist/{snapshot-size-D-pCR8x0.js → snapshot-size-CHig-Nq_.js} +1 -1
  132. package/dist/solid/index.d.ts +24 -24
  133. package/dist/solid/index.js +2 -2
  134. package/dist/{src-D6_T4zd7.js → src-BAYcigFU.js} +1 -1
  135. package/dist/{store-core-eqG8jijs.d.ts → store-core-DyNo_BwA.d.ts} +4 -2
  136. package/dist/{store-options-C8x39AHa.js → store-options-BtHrfJUU.js} +1 -1
  137. package/dist/{stores-DoA7ACkz.js → stores-BIMyclLg.js} +1 -1
  138. package/dist/{stores-4DOaL4ZP.d.ts → stores-DyFCruRC.d.ts} +2 -2
  139. package/dist/supabase/index.d.ts +6 -0
  140. package/dist/supabase/index.js +2 -2
  141. package/dist/{supabase-BI5ZhzLl.js → supabase-Ctn_Z6xf.js} +1 -1
  142. package/dist/{supabase-CjUsihRL.js → supabase-D5KN965n.js} +1 -1
  143. package/dist/{supabase-config-CbK7xX77.js → supabase-config-CjX-GjEp.js} +1 -1
  144. package/dist/supabase-hook-CjChM-eX.js +2 -0
  145. package/dist/{supabase-hook-nGLUvn5x.js → supabase-hook-CmW2MLWa.js} +4 -4
  146. package/dist/svelte/index.d.ts +3 -3
  147. package/dist/svelte/index.js +3 -3
  148. package/dist/svelte/runtime.d.ts +2 -2
  149. package/dist/svelte/runtime.js +1 -1
  150. package/dist/svelte/source.d.ts +3 -3
  151. package/dist/svelte/source.js +2 -2
  152. package/dist/{tables-CbVpFhC6.js → tables-Btlt_Rp-.js} +43 -6
  153. package/dist/testing/core.js +1 -1
  154. package/dist/testing/index.d.ts +3 -3
  155. package/dist/testing/index.js +5 -5
  156. package/dist/testing/saas/index.js +2 -2
  157. package/dist/testing/saas/permissions.js +1 -1
  158. package/dist/{text-diff-CsglY49A.js → text-diff-DxKRNFlx.js} +2 -2
  159. package/dist/{types-C7QtRn3n.d.ts → types-4wjWMSFM.d.ts} +2 -2
  160. package/dist/{types-CVCRFYY_.d.ts → types-CQF-oYSz.d.ts} +1 -1
  161. package/dist/{types-3pRMqcvw.d.ts → types-PS10T9UK.d.ts} +1 -1
  162. package/dist/{types-nXo_oQYk.d.ts → types-config-Cq72dArb.d.ts} +740 -782
  163. package/dist/types-run-DG1H5vrX.d.ts +44 -0
  164. package/dist/unplugin/index.d.ts +1 -1
  165. package/dist/unplugin/index.js +1 -1
  166. package/dist/{usage-L1G1zlwz.js → usage-DRReZaxQ.js} +1 -1
  167. package/dist/{usage-C1NKRxBJ.js → usage-DVjr2ZDc.js} +3 -3
  168. package/dist/usage-nVi3-z-j.js +1 -0
  169. package/dist/{verify-KX4Ohvs_.js → verify-BOB_Jyjx.js} +4 -4
  170. package/dist/vue/index.d.ts +1 -1
  171. package/dist/vue/index.js +2 -2
  172. package/dist/{watch-CiN6WU9k.js → watch-BNxvqCS4.js} +1 -1
  173. package/dist/watch-CGLmIdld.js +1 -0
  174. package/dist/{watch-DNIGANvR.js → watch-CnRyGEtp.js} +1 -1
  175. package/package.json +14 -14
  176. package/skills/permdock-data/references/queries-and-rls.md +1 -0
  177. package/dist/catalog-CgK_L4Qf.js +0 -1
  178. package/dist/collect-CPvCXMQ-.js +0 -1
  179. package/dist/gen-DbPS6a4x.js +0 -1
  180. package/dist/output-files-C5LFnQa4.js +0 -1
  181. package/dist/pull-Qh7JjiO7.js +0 -1
  182. package/dist/run-CdxQr6w8.js +0 -1
  183. package/dist/supabase-hook-b7tej2Vw.js +0 -2
  184. package/dist/usage-BAUV1SYl.js +0 -1
  185. package/dist/watch-NAUnUXph.js +0 -1
@@ -1948,11 +1948,11 @@ var require_resolve = /* @__PURE__ */ __commonJSMin(((exports) => {
1948
1948
  function countKeys(schema) {
1949
1949
  let count = 0;
1950
1950
  for (const key in schema) {
1951
- if (key === "$ref") return Infinity;
1951
+ if (key === "$ref") return 1e400;
1952
1952
  count++;
1953
1953
  if (SIMPLE_INLINED.has(key)) continue;
1954
1954
  if (typeof schema[key] == "object") (0, util_1.eachItem)(schema[key], (sch) => count += countKeys(sch));
1955
- if (count === Infinity) return Infinity;
1955
+ if (count === 1e400) return 1e400;
1956
1956
  }
1957
1957
  return count;
1958
1958
  }
@@ -1,4 +1,4 @@
1
- import { t as DOCS_BASE } from "./manifest-BY8lK4l4.js";
1
+ import { t as DOCS_BASE } from "./manifest-C7dWk0k5.js";
2
2
  import { r as listSourceFiles } from "./files-DAR51W3J.js";
3
3
  import { readFileSync } from "node:fs";
4
4
  import { relative } from "node:path";
@@ -1,6 +1,6 @@
1
1
  import { _ as DEFAULT_APPROVAL_TTL, a as ApprovalDelegationSource, b as escalationOpenAt, c as ApprovalListQuery, d as ApprovalResumeFailureCause, f as ApprovalSignature, g as ApprovalVerdict, h as ApprovalSubjectSummary, i as ApprovalDelegation, l as ApprovalPage, m as ApprovalStore, n as ApprovalApprovers, o as ApprovalInspectResult, p as ApprovalStatus, r as ApprovalCancelMeta, s as ApprovalListFilter, t as APPROVAL_HEADER, u as ApprovalRequest, v as approvalQuorum, y as approverRelationKey } from "../types-BdNdMix7.js";
2
2
  import { n as ApprovalErrorCode, r as isApprovalError, t as ApprovalError } from "../errors-KngVdJT9.js";
3
3
  import { a as AccessReviewItemQuery, c as AccessReviewStore, i as AccessReviewItemPage, n as AccessReviewDecision, o as AccessReviewItemStatus, r as AccessReviewItem, s as AccessReviewStatus, t as AccessReview } from "../types-BFtFaI1W.js";
4
- import { $ as pageAccessReviewItems, A as SignApprovalOptions, B as IdempotentResponse, C as ApproverRelationsOptions, D as approvalView, E as approvalEntityTag, F as ApprovalsHandlerOptions, G as ApproverDirectory, H as idempotencyRecordKey, I as approvalsHandler, J as matchDelegation, K as ApprovalDelegationMatch, L as IdempotencyRecord, M as signApproval, N as APPROVAL_REQUEST_SCHEMA, O as ApprovalSignatureClaims, P as parseApprovalRequest, Q as memoryAccessReviewStore, R as IdempotencyStore, S as vouchApproval, T as ApprovalView, U as matchesIdempotencyRecord, V as idempotencyRecord, W as memoryIdempotencyStore, X as parseApprovalDelegation, Y as memoryApprovalDelegationSource, Z as MemoryAccessReviewStore, _ as resolveApproval, a as approverPermissions, at as AccessReviewErrorCode, b as storedApprovalToken, c as decodeApprovalCursor, ct as accessReviewerEligible, d as pageApprovals, dt as accessReviewsHandler, et as AccessReviewHolder, f as cancelApprovals, g as requestApproval, h as readApprovalHeader, i as memoryApprovalStore, it as AccessReviewError, j as approvalSignatureClaims, k as ApprovalSignatureEntry, l as encodeApprovalCursor, lt as decideAccessReviewItem, m as inspectApproval, n as applyApprovalVerdict, nt as StartAccessReviewInput, o as ApprovalCursorPosition, ot as isAccessReviewError, p as consumeApproval, q as MatchDelegationOptions, r as assertApprover, rt as startAccessReview, s as approvalPageSize, st as AccessReviewVerdict, t as MemoryApprovalStore, tt as AccessReviewOptions, u as listAllApprovals, ut as AccessReviewsHandlerOptions, v as resumeDecision, w as approverRelations, x as summarizeSubject, y as resumeFromHeader, z as IdempotentCall } from "../index-Cq9N5B92.js";
4
+ import { $ as pageAccessReviewItems, A as SignApprovalOptions, B as IdempotentResponse, C as ApproverRelationsOptions, D as approvalView, E as approvalEntityTag, F as ApprovalsHandlerOptions, G as ApproverDirectory, H as idempotencyRecordKey, I as approvalsHandler, J as matchDelegation, K as ApprovalDelegationMatch, L as IdempotencyRecord, M as signApproval, N as APPROVAL_REQUEST_SCHEMA, O as ApprovalSignatureClaims, P as parseApprovalRequest, Q as memoryAccessReviewStore, R as IdempotencyStore, S as vouchApproval, T as ApprovalView, U as matchesIdempotencyRecord, V as idempotencyRecord, W as memoryIdempotencyStore, X as parseApprovalDelegation, Y as memoryApprovalDelegationSource, Z as MemoryAccessReviewStore, _ as resolveApproval, a as approverPermissions, at as AccessReviewErrorCode, b as storedApprovalToken, c as decodeApprovalCursor, ct as accessReviewerEligible, d as pageApprovals, dt as accessReviewsHandler, et as AccessReviewHolder, f as cancelApprovals, g as requestApproval, h as readApprovalHeader, i as memoryApprovalStore, it as AccessReviewError, j as approvalSignatureClaims, k as ApprovalSignatureEntry, l as encodeApprovalCursor, lt as decideAccessReviewItem, m as inspectApproval, n as applyApprovalVerdict, nt as StartAccessReviewInput, o as ApprovalCursorPosition, ot as isAccessReviewError, p as consumeApproval, q as MatchDelegationOptions, r as assertApprover, rt as startAccessReview, s as approvalPageSize, st as AccessReviewVerdict, t as MemoryApprovalStore, tt as AccessReviewOptions, u as listAllApprovals, ut as AccessReviewsHandlerOptions, v as resumeDecision, w as approverRelations, x as summarizeSubject, y as resumeFromHeader, z as IdempotentCall } from "../index-BSJoxaOi.js";
5
5
  import { t as approvalFingerprint } from "../token-BgswTQzt.js";
6
6
  export { APPROVAL_HEADER, APPROVAL_REQUEST_SCHEMA, type AccessReview, type AccessReviewDecision, AccessReviewError, type AccessReviewErrorCode, type AccessReviewHolder, type AccessReviewItem, type AccessReviewItemPage, type AccessReviewItemQuery, type AccessReviewItemStatus, type AccessReviewOptions, type AccessReviewStatus, type AccessReviewStore, type AccessReviewVerdict, type AccessReviewsHandlerOptions, type ApprovalApprovers, type ApprovalCancelMeta, type ApprovalCursorPosition, type ApprovalDelegation, type ApprovalDelegationMatch, type ApprovalDelegationSource, ApprovalError, type ApprovalErrorCode, type ApprovalInspectResult, type ApprovalListFilter, type ApprovalListQuery, type ApprovalPage, type ApprovalRequest, type ApprovalResumeFailureCause, type ApprovalSignature, type ApprovalSignatureClaims, type ApprovalSignatureEntry, type ApprovalStatus, type ApprovalStore, type ApprovalSubjectSummary, type ApprovalVerdict, type ApprovalView, type ApprovalsHandlerOptions, type ApproverDirectory, type ApproverRelationsOptions, DEFAULT_APPROVAL_TTL, type IdempotencyRecord, type IdempotencyStore, type IdempotentCall, type IdempotentResponse, type MatchDelegationOptions, type MemoryAccessReviewStore, type MemoryApprovalStore, type SignApprovalOptions, type StartAccessReviewInput, accessReviewerEligible, accessReviewsHandler, applyApprovalVerdict, approvalEntityTag, approvalFingerprint, approvalPageSize, approvalQuorum, approvalSignatureClaims, approvalView, approvalsHandler, approverPermissions, approverRelationKey, approverRelations, assertApprover, cancelApprovals, consumeApproval, decideAccessReviewItem, decodeApprovalCursor, encodeApprovalCursor, escalationOpenAt, idempotencyRecord, idempotencyRecordKey, inspectApproval, isAccessReviewError, isApprovalError, listAllApprovals, matchDelegation, matchesIdempotencyRecord, memoryAccessReviewStore, memoryApprovalDelegationSource, memoryApprovalStore, memoryIdempotencyStore, pageAccessReviewItems, pageApprovals, parseApprovalDelegation, parseApprovalRequest, readApprovalHeader, requestApproval, resolveApproval, resumeDecision, resumeFromHeader, signApproval, startAccessReview, storedApprovalToken, summarizeSubject, vouchApproval };
@@ -1,6 +1,6 @@
1
- import { _ as arazzoFindings } from "./src-D6_T4zd7.js";
1
+ import { _ as arazzoFindings } from "./src-BAYcigFU.js";
2
2
  import { d as missingInput } from "./errors-DgLOqc6j.js";
3
- import { t as DOCS_BASE } from "./manifest-BY8lK4l4.js";
3
+ import { t as DOCS_BASE } from "./manifest-C7dWk0k5.js";
4
4
  import { t as ARAZZO_REPORT_SCHEMA } from "./version-D-jWyJb9.js";
5
5
  import { i as readJsonFile } from "./files-DAR51W3J.js";
6
6
  import { a as loadModule, s as pickNamed, t as asPermissionTree } from "./load-CZnlAyZ8.js";
@@ -21,7 +21,7 @@ const check = defineLeaf({
21
21
  ...permissionsFlag
22
22
  },
23
23
  async run(ctx, { flags }) {
24
- return (await import("./arazzo-D1ZHjjea.js")).runArazzo({
24
+ return (await import("./arazzo-CAQr4N7Z.js")).runArazzo({
25
25
  cwd: ctx.cwd,
26
26
  config: ctx.config,
27
27
  doc: given(flags.doc),
@@ -98,7 +98,7 @@ const distance = (a, b) => {
98
98
  return myers_x(a, b);
99
99
  };
100
100
  const closest = (str, arr) => {
101
- let min_distance = Infinity;
101
+ let min_distance = 1e400;
102
102
  let min_index = 0;
103
103
  for (let i = 0; i < arr.length; i++) {
104
104
  const dist = distance(str, arr[i]);
@@ -389,6 +389,8 @@ type PermDockForResult = {
389
389
  * is `authzVersion`, so the instance reads no `subject_for`.
390
390
  */
391
391
  readonly subject?: unknown;
392
+ /** The tenant `subject` is restricted to, as `bsb.bootstrap()` reports it. */
393
+ readonly subjectTenant?: string | null;
392
394
  };
393
395
  /** Who an instance is for. */
394
396
  type PermDockForInput = SupabaseSessionLike | ApiKeySession | SessionSnapshotLike | PermDockForResult | Subject | null | undefined;
@@ -3,7 +3,7 @@ import { r as isRecord, t as compact } from "../compact-C4LFuqbW.js";
3
3
  import { o as flattenGrantee } from "../grantee-BPUG6f0r.js";
4
4
  import { c as listPermissions, n as findPermission, o as isPermission } from "../permission-registry-DMYRZVcn.js";
5
5
  import { i as dateAt, m as rfc3339, p as nowSeconds, u as isoAt } from "../time-r0CKBm57.js";
6
- import { a as withMembers, i as ownedCaches, n as getPermissions$1, o as callRpc, r as subjectFromSupabaseClient, s as postgrestSources, t as createResolver } from "../resolver-kdZ4HrpC.js";
6
+ import { a as withMembers, i as ownedCaches, n as getPermissions$1, o as callRpc, r as subjectFromSupabaseClient, s as postgrestSources, t as createResolver } from "../resolver-4qxIIHcC.js";
7
7
  import { s as ApprovalError } from "../types-DFZKovb3.js";
8
8
  import { t as parseApprovalRequest } from "../parse-request-IEEzVFM8.js";
9
9
  import { t as applyApprovalVerdict } from "../store-AH8bmaxW.js";
@@ -1310,13 +1310,14 @@ function claimsOf(request) {
1310
1310
  }
1311
1311
  /**
1312
1312
  * What a bootstrap read for this user, from better-supabase's runtime `seed`:
1313
- * used only when it names the claims' user and carries a version.
1313
+ * used only when it names the claims' user, carries a version and covers
1314
+ * `tenant`: a seed restricted to another tenant is ignored.
1314
1315
  */
1315
- function seedOf(runtime, claims) {
1316
+ function seedOf(runtime, claims, tenant) {
1316
1317
  const seed = runtime?.seed;
1317
1318
  if (seed === void 0 || !isRecord(claims)) return;
1318
1319
  const { userId, version } = seed;
1319
- return typeof userId === "string" && userId !== "" && userId === claims["sub"] && typeof version === "number" && Number.isSafeInteger(version) && version >= 0 ? seed : void 0;
1320
+ return typeof userId === "string" && userId !== "" && userId === claims["sub"] && typeof version === "number" && Number.isSafeInteger(version) && version >= 0 && (seed.tenant ?? tenant) === tenant ? seed : void 0;
1320
1321
  }
1321
1322
  const tenantOf = (request) => {
1322
1323
  const { tenant } = request.context;
@@ -1343,7 +1344,7 @@ function authorizer(options) {
1343
1344
  };
1344
1345
  const resolve = resolverOf(options, "authorizer");
1345
1346
  const instanceFor = (claims, tenant, intent, runtime) => {
1346
- const seed = seedOf(runtime, claims);
1347
+ const seed = seedOf(runtime, claims, tenant);
1347
1348
  return resolve(claims === void 0 ? null : seed === void 0 ? {
1348
1349
  kind: "user",
1349
1350
  claims
@@ -1354,7 +1355,8 @@ function authorizer(options) {
1354
1355
  },
1355
1356
  tenant,
1356
1357
  authzVersion: seed.version,
1357
- subject: seed.subject
1358
+ subject: seed.subject,
1359
+ subjectTenant: seed.tenant
1358
1360
  }, {
1359
1361
  tenant,
1360
1362
  intent
@@ -16,7 +16,7 @@ const casbinImport = defineLeaf({
16
16
  ...outFlag
17
17
  },
18
18
  async run(ctx, { flags }) {
19
- const { runCasbinImport } = await import("./casbin-Bf9jkDMy.js");
19
+ const { runCasbinImport } = await import("./casbin-Ccbaft52.js");
20
20
  return runCasbinImport({
21
21
  cwd: ctx.cwd,
22
22
  model: given(flags.model),
@@ -1,5 +1,5 @@
1
1
  import { t as applyFiles } from "./files-DuV7wRim.js";
2
- import { a as nonEmptyOr } from "./output-Cq0neio3.js";
2
+ import { a as nonEmptyOr } from "./output-Pne7BTXn.js";
3
3
  import { n as isIdentifier, t as emitPolicyModule } from "./policy-module-Bp4HvsRg.js";
4
4
  import { existsSync, readFileSync } from "node:fs";
5
5
  import { resolve } from "node:path";
@@ -2,7 +2,7 @@ import { c as checkHostedGrant, n as HostedGrantCheck, o as PolicyDocument } fro
2
2
  import { D as Policy, Sr as Principal, s as ApprovalRequirement } from "../policy-types-93NwI8iI.js";
3
3
  import { a as CatalogFinding, i as CatalogEventData } from "../sink-BD34OS8T.js";
4
4
  import { a as CatalogDocument, c as CatalogOperation, d as CatalogRole, f as CatalogScope, h as CatalogValidity, i as CatalogDelegation, l as CatalogPermission, m as CatalogUsage, n as CatalogApproval, o as CatalogGrant, p as CatalogSupportAccess, r as CatalogBreakGlass, s as CatalogOAuthScope, t as CatalogActivation, u as CatalogResource } from "../types-CWmBZtQN.js";
5
- import { a as pushedPolicy, i as parsePushedPolicy, n as PushedGrant, r as PushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-pH-EFWyx.js";
5
+ import { a as pushedPolicy, i as parsePushedPolicy, n as PushedGrant, r as PushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-APjMbYdV.js";
6
6
  import { StandardSchemaV1 } from "@standard-schema/spec";
7
7
  /**
8
8
  * The hosted grants of `document` that `policy` no longer accepts, as drift
@@ -30,7 +30,7 @@ const catalog = defineLeaf({
30
30
  ...checkFlag
31
31
  },
32
32
  async run(ctx, { flags }) {
33
- const { catalogFile, runCatalog } = await import("./catalog-CgK_L4Qf.js");
33
+ const { catalogFile, runCatalog } = await import("./catalog-DCjJIl3n.js");
34
34
  const result = await runCatalog({
35
35
  cwd: ctx.cwd,
36
36
  config: ctx.config,
@@ -0,0 +1 @@
1
+ export { t as catalogFile, n as runCatalog } from "./catalog-DXSP1we9.js";
@@ -1,7 +1,7 @@
1
1
  import { r as isRecord } from "./compact-C4LFuqbW.js";
2
2
  import { a as catalogSchemaDocument, n as catalogForCompare, o as formatCatalogJson, r as catalogForDrift, s as formatCatalogMarkdown, t as buildCatalog } from "./catalog-doc-Bp5khmCG.js";
3
3
  import { t as loadConfiguredOperations } from "./catalog-operations-dxuOZr4J.js";
4
- import { i as scanSources, r as runCollect } from "./collect-BJZsuBW4.js";
4
+ import { i as scanSources, r as runCollect } from "./collect-BOh9Pxob.js";
5
5
  import { n as fileSummary, t as applyFiles } from "./files-DuV7wRim.js";
6
6
  import { r as listSourceFiles, t as defaultSrcPath } from "./files-DAR51W3J.js";
7
7
  import { a as loadModule, i as loadConfiguredPolicy, r as leavesOf, s as pickNamed, t as asPermissionTree } from "./load-CZnlAyZ8.js";
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-CdxQr6w8.js"),
14
+ import("../run-mEbYi2Ow.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 { i as readConfig } from "../../config-iyy90IOU.js";
4
- import { t as executeGenerate } from "../../execute-CE8P72Ez.js";
4
+ import { t as executeGenerate } from "../../execute-DdH84BHC.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,12 @@
1
- import { _ as RlsSuspension, a as GenKind, c as RlsActiveRow, d as RlsDialect, f as RlsFunctionMapping, g as RlsSuspendedScope, h as RlsSuspendedMembership, i as GenConfig, l as RlsApiKeys, m as RlsMemberships, n as CliIo, o as PermDockConfig, p as RlsMembershipTable, r as CollectConfig, t as CatalogConfig, u as RlsConfig, v as RlsTarget, y as RunResult } from "../types-nXo_oQYk.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-Cq72dArb.js";
2
2
  import { o as OperationMap } from "../operations-BS8ExH5A.js";
3
3
  import { E as PermissionTree } from "../vocabulary-FYgI_NoI.js";
4
- import { a as CatalogDocument, d as CatalogRole, f as CatalogScope, l as CatalogPermission, m as CatalogUsage, n as CatalogApproval, p as CatalogSupportAccess, r as CatalogBreakGlass, t as CatalogActivation, u as CatalogResource } from "../types-CWmBZtQN.js";
5
4
  import { D as Policy } from "../policy-types-93NwI8iI.js";
6
5
  import { o as ResourceNameOf, r as PermissionKeyOf, s as ScopeNameOf, t as ActionNameOf } from "../type-helpers-DHCQEPj8.js";
7
- import { i as PolicyModel, n as PluginTask, r as definePlugin, t as PermDockPlugin } from "../plugin-1XW5OfAZ.js";
8
- import { a as pushedPolicy, i as parsePushedPolicy, n as PushedGrant, r as PushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-pH-EFWyx.js";
6
+ import { i as PolicyModel, n as PluginTask, r as definePlugin, t as PermDockPlugin } from "../plugin-zOs9uqQj.js";
7
+ import { r as RunResult, t as CliIo } from "../types-run-DG1H5vrX.js";
8
+ import { a as pushedPolicy, i as parsePushedPolicy, n as PushedGrant, r as PushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-APjMbYdV.js";
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-CWmBZtQN.js";
9
10
  /**
10
11
  * The absolute path `permdock collect` writes the catalog to: `collect.out`,
11
12
  * then `catalog.out`, then `permissions.catalog.json`, resolved against `cwd`.
package/dist/cli/index.js CHANGED
@@ -2,7 +2,7 @@ import { t as catalogPath } from "../catalog-path-bG0XxHMu.js";
2
2
  import { t as defineConfig } from "../config-iyy90IOU.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-DFe2I0T7.js";
5
+ import { t as run } from "../run-BFDAiNuS.js";
6
6
  import { n as parsePushedPolicy, r as pushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-rpB6k77P.js";
7
7
  // src/cli/token-schemas.ts
8
8
  const ID = {
@@ -1,4 +1,4 @@
1
- import { t as PermDockPlugin } from "../../plugin-1XW5OfAZ.js";
1
+ import { t as PermDockPlugin } from "../../plugin-zOs9uqQj.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-BLIhHgD3.js";
1
+ import { t as kindPlugin } from "../../gen-kind-Bf9jYVgn.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-1XW5OfAZ.js";
1
+ import { t as PermDockPlugin } from "../../plugin-zOs9uqQj.js";
2
2
  type BetterSupabasePluginOptions = {
3
3
  readonly manifest?: string;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { t as PermDockPlugin } from "../../plugin-1XW5OfAZ.js";
1
+ import { t as PermDockPlugin } from "../../plugin-zOs9uqQj.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-7K7rofeR.js");
35
+ const { openapiDocument } = await import("../../openapi-document-B58hIsZ4.js");
36
36
  return openapiDocument(task, options, source);
37
37
  }
38
38
  });
@@ -1,4 +1,4 @@
1
- import { t as PermDockPlugin } from "../../plugin-1XW5OfAZ.js";
1
+ import { t as PermDockPlugin } from "../../plugin-zOs9uqQj.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 } = await import("../../powersync-IrDmJbqx.js");
21
+ const { powersyncFiles } = await import("../../powersync-B9KEEiJE.js");
22
22
  return powersyncFiles(source.policy, source.config, task.out).files.map((file) => ({
23
23
  path: file.path,
24
24
  contents: file.text
@@ -1,5 +1,5 @@
1
- import { t as PermDockPlugin } from "../../plugin-1XW5OfAZ.js";
2
- import { t as RlsPluginOptions } from "../../rls-options-CEpg5nDP.js";
1
+ import { t as PermDockPlugin } from "../../plugin-zOs9uqQj.js";
2
+ import { t as RlsPluginOptions } from "../../rls-options-BZxfMDFo.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-kGXtfslQ.js");
22
+ const { filesForRls } = await import("../../rls-files-BgLoAa9x.js");
23
23
  return filesForRls(task, options, source);
24
24
  }
25
25
  });
@@ -1,4 +1,4 @@
1
- import { t as PermDockPlugin } from "../../plugin-1XW5OfAZ.js";
1
+ import { t as PermDockPlugin } from "../../plugin-zOs9uqQj.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-BLIhHgD3.js";
1
+ import { t as kindPlugin } from "../../gen-kind-Bf9jYVgn.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 { d as RlsDialect } from "../../types-nXo_oQYk.js";
2
- import { t as PermDockPlugin } from "../../plugin-1XW5OfAZ.js";
1
+ import { l as RlsDialect } from "../../types-config-Cq72dArb.js";
2
+ import { t as PermDockPlugin } from "../../plugin-zOs9uqQj.js";
3
3
  type ScimPluginOptions = {
4
4
  readonly schema?: string;
5
5
  readonly dialect?: RlsDialect;
@@ -1,5 +1,5 @@
1
- import { b as SupabaseSchemas } from "../../types-nXo_oQYk.js";
2
- import { t as PermDockPlugin } from "../../plugin-1XW5OfAZ.js";
1
+ import { o as SupabaseSchemas } from "../../types-config-Cq72dArb.js";
2
+ import { t as PermDockPlugin } from "../../plugin-zOs9uqQj.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-b7tej2Vw.js");
21
+ const { runSupabase } = await import("../../supabase-hook-CjChM-eX.js");
22
22
  const outcome = await runSupabase({
23
23
  cwd: source.cwd,
24
24
  config: source.config,
@@ -1,6 +1,6 @@
1
- import { b as SupabaseSchemas } from "../../types-nXo_oQYk.js";
2
- import { t as PermDockPlugin } from "../../plugin-1XW5OfAZ.js";
3
- import { t as RlsPluginOptions } from "../../rls-options-CEpg5nDP.js";
1
+ import { o as SupabaseSchemas } from "../../types-config-Cq72dArb.js";
2
+ import { t as PermDockPlugin } from "../../plugin-zOs9uqQj.js";
3
+ import { t as RlsPluginOptions } from "../../rls-options-BZxfMDFo.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-kGXtfslQ.js");
40
+ const { filesForRls } = await import("../../rls-files-BgLoAa9x.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-b7tej2Vw.js");
47
+ const { runSupabase } = await import("../../supabase-hook-CjChM-eX.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-1XW5OfAZ.js";
1
+ import { t as PermDockPlugin } from "../../plugin-zOs9uqQj.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-BLIhHgD3.js";
1
+ import { t as kindPlugin } from "../../gen-kind-Bf9jYVgn.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 = {}) {
@@ -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-Cb7PqXdO.js")).runCloud({
44
+ return (await import("./push-DXh936bz.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-Qh7JjiO7.js")).runCloudPull({
73
+ return (await import("./pull-8Vce3V1e.js")).runCloudPull({
74
74
  cwd: ctx.cwd,
75
75
  config: ctx.config,
76
76
  url: given(flags.url),
@@ -7,7 +7,7 @@ const codemod = defineLeaf({
7
7
  description: "The release to migrate to (0.5)",
8
8
  required: true,
9
9
  async complete() {
10
- return (await import("./codemod-Bp2bKwKe.js")).codemodVersions();
10
+ return (await import("./codemod-ClcPRv4c.js")).codemodVersions();
11
11
  }
12
12
  }, {
13
13
  name: "paths",
@@ -22,7 +22,7 @@ const codemod = defineLeaf({
22
22
  }
23
23
  },
24
24
  async run(ctx, { flags, args, rest }) {
25
- return (await import("./codemod-Bp2bKwKe.js")).runCodemod({
25
+ return (await import("./codemod-ClcPRv4c.js")).runCodemod({
26
26
  cwd: ctx.cwd,
27
27
  version: args["version"],
28
28
  paths: rest,
@@ -3,9 +3,9 @@ import { i as refuseDirty, t as applyFiles } from "./files-DuV7wRim.js";
3
3
  import { a as rel } from "./files-DAR51W3J.js";
4
4
  import { t as catalogFingerprint } from "./catalog-fingerprint-DAWZARy6.js";
5
5
  import { r as isRecord } from "./compact-C4LFuqbW.js";
6
- import { n as flagSpellings, o as GLOBAL_FLAGS } from "./args-0EWFk-4S.js";
6
+ import { n as flagSpellings, o as GLOBAL_FLAGS } from "./args-Bc0HLiD4.js";
7
7
  import { c as generateFlags, f as policyFlag, i as dryRunFlag, r as dbUrlFlags, t as checkFlag } from "./flags-C0e-BzGW.js";
8
- import { n as ROOT } from "./manifest-BY8lK4l4.js";
8
+ import { n as ROOT } from "./manifest-C7dWk0k5.js";
9
9
  import { i as visitorKeyTypes, r as parseSync, t as createVisitor } from "./optional-CaQWp9HA.js";
10
10
  import { n as defaultSqlCommand } from "./sql-T4GaBh9X.js";
11
11
  import { t as beforeFirst } from "./text-D704xHVl.js";
@@ -2,7 +2,7 @@ import { n as catalogForCompare, o as formatCatalogJson, r as catalogForDrift, t
2
2
  import { t as loadConfiguredOperations } from "./catalog-operations-dxuOZr4J.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";
5
- import { t as shortDiff } from "./text-diff-CsglY49A.js";
5
+ import { t as shortDiff } from "./text-diff-DxKRNFlx.js";
6
6
  import { a as rel, r as listSourceFiles, s as writeFileEnsuringDir, t as defaultSrcPath } from "./files-DAR51W3J.js";
7
7
  import { a as loadModule, i as loadConfiguredPolicy, r as leavesOf, s as pickNamed, t as asPermissionTree } from "./load-CZnlAyZ8.js";
8
8
  import { i as visitorKeyTypes, r as parseSync, t as createVisitor } from "./optional-CaQWp9HA.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-NAUnUXph.js")).watchCollect(ctx, overrides);
32
+ return (await import("./watch-CGLmIdld.js")).watchCollect(ctx, overrides);
33
33
  }
34
- const result = await (await import("./collect-CPvCXMQ-.js")).runCollect({
34
+ const result = await (await import("./collect-XcoQRyiA.js")).runCollect({
35
35
  cwd: ctx.cwd,
36
36
  config: ctx.config,
37
37
  collect: overrides,
@@ -0,0 +1 @@
1
+ export { r as runCollect } from "./collect-BOh9Pxob.js";
@@ -11,7 +11,7 @@ import { l as isConditionRef, o as hasConditionOp } from "./refs-Cix9Zjis.js";
11
11
  import { t as requiresApproval } from "./approval-required-B-R4Yw3J.js";
12
12
  import { c as jsonSchemaOf } from "./catalog-doc-Bp5khmCG.js";
13
13
  import { i as configError } from "./errors-DgLOqc6j.js";
14
- import { F as capabilityAccessSql, L as apiKeyAllowsCall, S as accessSql, f as requiresSql, k as tokenScopeAllowsCall } from "./tables-CbVpFhC6.js";
14
+ import { F as capabilityAccessSql, L as apiKeyAllowsCall, S as accessSql, f as requiresSql, k as tokenScopeAllowsCall } from "./tables-Btlt_Rp-.js";
15
15
  import { t as connectPgPool } from "./pg-CA651850.js";
16
16
  import { n as interactiveAllowsCall, ut as scopeTable } from "./interactive-only-CQsgMc1E.js";
17
17
  import { a as quoteIdent, c as quoteTable, o as quoteLiteral } from "./quote-BKrTBbcH.js";
@@ -1,6 +1,6 @@
1
- import { a as suggestion, o as GLOBAL_FLAGS } from "./args-0EWFk-4S.js";
1
+ import { a as suggestion, o as GLOBAL_FLAGS } from "./args-Bc0HLiD4.js";
2
2
  import { t as defineLeaf } from "./command-9GAzSI7E.js";
3
- import { a as resolve } from "./manifest-BY8lK4l4.js";
3
+ import { a as resolve } from "./manifest-C7dWk0k5.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--ae2r_MI.js");
13
+ const { runConfig } = await import("./config-report-DZfIl6zc.js");
14
14
  return runConfig({
15
15
  cwd: ctx.cwd,
16
16
  config: ctx.config,
@@ -1,7 +1,7 @@
1
1
  import "./sources-DnjJPGfb.js";
2
2
  import { t as catalogPath } from "./catalog-path-bG0XxHMu.js";
3
- import { n as guessPermissions, t as barrelFile } from "./collect-BJZsuBW4.js";
4
- import { t as DOCS_BASE } from "./manifest-BY8lK4l4.js";
3
+ import { n as guessPermissions, t as barrelFile } from "./collect-BOh9Pxob.js";
4
+ import { t as DOCS_BASE } from "./manifest-C7dWk0k5.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 MIGRATION_DIRS, t as DEFAULT_SENSITIVE_ACTIONS } from "./constants-PCJiir_3.js";
@@ -1,5 +1,5 @@
1
- import { n as switchTenant, t as providerStore } from "./provider-store-atQUfsVO.js";
2
- import { l as isPromiseLike } from "./store-options-C8x39AHa.js";
1
+ import { n as switchTenant, t as providerStore } from "./provider-store-Dq_olUjC.js";
2
+ import { l as isPromiseLike } from "./store-options-BtHrfJUU.js";
3
3
  import { t as compact } from "./compact-C4LFuqbW.js";
4
4
  import { getContext, onDestroy, setContext } from "svelte";
5
5
  import { toStore } from "svelte/store";
@@ -4,7 +4,7 @@ import { t as getPermDock } from "./permdock-BueSeg7X.js";
4
4
  import { b as membershipsClaim } from "./evaluate-D8SdfP3h.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 { E as memoryCustomRoleSource } from "./src-D6_T4zd7.js";
7
+ import { E as memoryCustomRoleSource } from "./src-BAYcigFU.js";
8
8
  import { n as parseSnapshot } from "./snapshot-DckMnHk8.js";
9
9
  import "./budget-BH81q2cj.js";
10
10
  // src/testing/policy-matrix.ts
@@ -1,5 +1,5 @@
1
1
  import { gn as DeliveryFailureCause, mn as DeliveryChannel, vn as EmailCategory } from "../policy-types-93NwI8iI.js";
2
2
  import { i as approvalUrlFor, n as ApprovalUrl, r as approvalPrompt, t as ApprovalPrompt } from "../approval-prompt-C-vjNZyd.js";
3
3
  import { _ as TransportOptions, a as DeliveryReport, c as DeliveryTransport, d as EmailTransport, f as EmailUnsubscribe, g as TransportMessages, h as TransportItem, i as DeliveryMessages, l as DeliveryTransports, m as Recipient, n as ChatTransport, o as DeliveryResult, p as OutgoingEmail, r as DeliverOptions, s as DeliveryTarget, t as ChatMessage, u as EmailMessage, v as WebhookMessage, y as WebhookTransport } from "../types-OzSal_K_.js";
4
- import { C as audience, S as SubscriberEvent, _ as ParseConnectorResult, a as DeliveryPermDock, b as Audience, c as MemoryDelivery, d as memoryDeliveryTransport, f as CONNECTOR_SCHEMA, g as ConnectorKind, h as ConnectorIssue, i as isDeliveryTarget, l as MemoryDeliveryTransport, m as Connector, n as webhookTransport, o as DeliveryPermDockOptions, p as CONNECTOR_KINDS, r as isAddrSpec, s as createPermDock, t as WebhookTransportOptions, u as MemoryDeliveryTransportOptions, v as SiemDestination, w as subscribersFor, x as AudienceOptions, y as parseConnector } from "../index-CVuc3E1O.js";
4
+ import { C as audience, S as SubscriberEvent, _ as ParseConnectorResult, a as DeliveryPermDock, b as Audience, c as MemoryDelivery, d as memoryDeliveryTransport, f as CONNECTOR_SCHEMA, g as ConnectorKind, h as ConnectorIssue, i as isDeliveryTarget, l as MemoryDeliveryTransport, m as Connector, n as webhookTransport, o as DeliveryPermDockOptions, p as CONNECTOR_KINDS, r as isAddrSpec, s as createPermDock, t as WebhookTransportOptions, u as MemoryDeliveryTransportOptions, v as SiemDestination, w as subscribersFor, x as AudienceOptions, y as parseConnector } from "../index-eaNHkELi.js";
5
5
  export { type ApprovalPrompt, type ApprovalUrl, type Audience, type AudienceOptions, CONNECTOR_KINDS, CONNECTOR_SCHEMA, type ChatMessage, type ChatTransport, type Connector, type ConnectorIssue, type ConnectorKind, type DeliverOptions, type DeliveryChannel, type DeliveryFailureCause, type DeliveryMessages, type DeliveryPermDock, type DeliveryPermDockOptions, type DeliveryReport, type DeliveryResult, type DeliveryTarget, type DeliveryTransport, type DeliveryTransports, type EmailCategory, type EmailMessage, type EmailTransport, type EmailUnsubscribe, type MemoryDelivery, type MemoryDeliveryTransport, type MemoryDeliveryTransportOptions, type OutgoingEmail, type ParseConnectorResult, type Recipient, type SiemDestination, type SubscriberEvent, type TransportItem, type TransportMessages, type TransportOptions, type WebhookMessage, type WebhookTransport, type WebhookTransportOptions, approvalPrompt, approvalUrlFor, audience, createPermDock, isAddrSpec, isDeliveryTarget, memoryDeliveryTransport, parseConnector, subscribersFor, webhookTransport };
@@ -4,7 +4,7 @@ import { t as canonicalJson } from "./canonical-json-BibZkXtE.js";
4
4
  import { g as secondsOf } from "./time-r0CKBm57.js";
5
5
  import { n as findPermission } from "./permission-registry-DMYRZVcn.js";
6
6
  import { t as getPermDock } from "./permdock-BueSeg7X.js";
7
- import { E as memoryCustomRoleSource } from "./src-D6_T4zd7.js";
7
+ import { E as memoryCustomRoleSource } from "./src-BAYcigFU.js";
8
8
  import { t as buildCatalog } from "./catalog-doc-Bp5khmCG.js";
9
9
  import { f as usageResult, i as configError } from "./errors-DgLOqc6j.js";
10
10
  import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-Bm0G0A7H.js";
@@ -21,7 +21,7 @@ const diff = defineLeaf({
21
21
  }
22
22
  },
23
23
  async run(ctx, { flags, args }) {
24
- return (await import("./diff-BIqibFnm.js")).runDiff({
24
+ return (await import("./diff-CXRZ6qPa.js")).runDiff({
25
25
  cwd: ctx.cwd,
26
26
  config: ctx.config,
27
27
  sources: [args["before"], args["after"]].filter((value) => value !== void 0),
@@ -1,6 +1,6 @@
1
1
  import { t as defineLeaf } from "./command-9GAzSI7E.js";
2
2
  import { a as failOnFlag, n as dbUrl, r as dbUrlFlags } from "./flags-C0e-BzGW.js";
3
- import { n as ask, t as CANCELLED } from "./prompt-CSXHcJxy.js";
3
+ import { n as ask, t as CANCELLED } from "./prompt-CPlJn_4-.js";
4
4
  // src/cli/commands/doctor.ts
5
5
  const doctor = defineLeaf({
6
6
  flags: {
@@ -10,7 +10,7 @@ const doctor = defineLeaf({
10
10
  description: "Check codes or groups to run",
11
11
  valueHint: "code",
12
12
  async complete() {
13
- const { DOCTOR_CHECKS } = await import("./doctor-kbRrZD3Q.js");
13
+ const { DOCTOR_CHECKS } = await import("./doctor-FHjwjHYC.js");
14
14
  return [.../* @__PURE__ */ new Set([...DOCTOR_CHECKS.map(({ code }) => code), ...DOCTOR_CHECKS.flatMap(({ groups }) => groups)])];
15
15
  }
16
16
  },
@@ -35,7 +35,7 @@ const doctor = defineLeaf({
35
35
  if (answer === void 0) return CANCELLED;
36
36
  fix = answer;
37
37
  }
38
- return (await import("./doctor-kbRrZD3Q.js")).runDoctor({
38
+ return (await import("./doctor-FHjwjHYC.js")).runDoctor({
39
39
  cwd: ctx.cwd,
40
40
  config: ctx.config,
41
41
  only: flags.only,