permdock 0.38.0 → 0.38.2

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/a2a/index.js +2 -2
  2. package/dist/{adoption-scan-D-uM3y5a.js → adoption-scan-BSVL4wIW.js} +1 -1
  3. package/dist/agent/index.js +1 -1
  4. package/dist/ai-sdk/index.js +3 -3
  5. package/dist/app/index.js +1 -1
  6. package/dist/{arazzo-CyENGJ-M.js → arazzo-C04bMN6Y.js} +2 -2
  7. package/dist/{arazzo-BdWGzdqv.js → arazzo-DbuxB5Gw.js} +1 -1
  8. package/dist/astro/index.js +1 -1
  9. package/dist/authzen/index.js +1 -1
  10. package/dist/better-supabase/index.js +5 -5
  11. package/dist/{bind-BNYcJ1D9.js → bind-CFwfgfp2.js} +2 -2
  12. package/dist/{bsb-access-tags-C4iPlzjs.js → bsb-access-tags-BfKzb3sw.js} +1 -1
  13. package/dist/{budgets-DFnMBpKz.js → budgets-BGWdTAHq.js} +2 -2
  14. package/dist/{build-instance-BGpABVbM.js → build-instance-BX5yWZDz.js} +1 -1
  15. package/dist/{bundle-size-Pgm7BB5m.js → bundle-size-CeLuyWm0.js} +2 -2
  16. package/dist/bundle-size-DRu3x2lW.js +1 -0
  17. package/dist/{casbin-DdJndgnu.js → casbin-Bp8ajVRK.js} +1 -1
  18. package/dist/{casbin-ILRPO6t9.js → casbin-DAHhk83J.js} +1 -1
  19. package/dist/catalog/index.js +2 -2
  20. package/dist/chat/index.js +1 -1
  21. package/dist/claude-agent/index.js +2 -2
  22. package/dist/cli/bin.js +1 -1
  23. package/dist/cli/generate/watch-worker.js +1 -1
  24. package/dist/cli/index.js +2 -2
  25. package/dist/cli/plugins/app.js +1 -1
  26. package/dist/cli/plugins/openapi.js +1 -1
  27. package/dist/cli/plugins/powersync.js +1 -1
  28. package/dist/cli/plugins/rls.js +1 -1
  29. package/dist/cli/plugins/schemas.js +1 -1
  30. package/dist/cli/plugins/supabase-hook.js +1 -1
  31. package/dist/cli/plugins/supabase.js +2 -2
  32. package/dist/cli/plugins/ui.js +1 -1
  33. package/dist/{cloud-C8bHMKjI.js → cloud-DnsG5KF6.js} +2 -2
  34. package/dist/{codemod-D02eYuzA.js → codemod-BpFi3dGX.js} +4 -4
  35. package/dist/{codemod-D8zh3IYV.js → codemod-DdSdwmq4.js} +1 -1
  36. package/dist/{compile-7tf8hHlu.js → compile-5QQLSNRY.js} +4 -4
  37. package/dist/{completion-BZShluF7.js → completion-j34Zp_y7.js} +1 -1
  38. package/dist/{config-ClypJwe2.js → config-DoywTd1z.js} +1 -1
  39. package/dist/{config-report-Kb-mYv9F.js → config-report-BO_DLUaK.js} +1 -1
  40. package/dist/{context-Nr3nknZX.js → context-CzHYMZr9.js} +1 -1
  41. package/dist/{context-BQQzAw83.js → context-Dew6yQqT.js} +1 -1
  42. package/dist/convex/index.js +2 -2
  43. package/dist/{core-BFR-V5CL.js → core-BEA7805j.js} +3 -3
  44. package/dist/{create-Dapy8DIK.js → create-DRiggRWE.js} +3 -3
  45. package/dist/{create-BICq9l-p.js → create-fNkkpOy5.js} +2 -2
  46. package/dist/{custom-role-rebuild-CRz6Ip6J.js → custom-role-rebuild-BwM6hBqt.js} +1 -1
  47. package/dist/{define-permdock-B0q7Rg9b.js → define-permdock-CGI9pgqL.js} +2 -2
  48. package/dist/{diff-Sxca4_5q.js → diff-CcbTG1G4.js} +2 -2
  49. package/dist/{diff-BebUlh4Z.js → diff-p217YnI5.js} +1 -1
  50. package/dist/{doctor-XSdrG1SZ.js → doctor-cPl8X1Ef.js} +20 -20
  51. package/dist/{doctor-DAx9dIEX.js → doctor-jVVYFNCd.js} +2 -2
  52. package/dist/elysia/index.js +1 -1
  53. package/dist/evaluator-C4RrXo4y.js +2 -0
  54. package/dist/{evaluator-eager-BLNVbEAC.js → evaluator-eager-B_4KdPgg.js} +1 -1
  55. package/dist/eve/index.js +2 -2
  56. package/dist/{execute-DgCH7kEE.js → execute-hsLYXuwL.js} +4 -4
  57. package/dist/{explain-CgKGadRa.js → explain-BHSgFpfd.js} +2 -2
  58. package/dist/{explain-BrvY9cXX.js → explain-DVv1Wbay.js} +1 -1
  59. package/dist/express/index.js +1 -1
  60. package/dist/fastify/index.js +1 -1
  61. package/dist/{fetch-adapter-dmABnF7F.js → fetch-adapter-niRAPzNm.js} +1 -1
  62. package/dist/{from-snapshot-DZ4D2sLa.js → from-snapshot-O341Vdgj.js} +12 -4
  63. package/dist/gen-BHsow3sw.js +1 -0
  64. package/dist/{gen-m1X9N8DZ.js → gen-BZ-03GIG.js} +3 -3
  65. package/dist/{gen-kind-DIltjpY9.js → gen-kind-BKSdYxVh.js} +1 -1
  66. package/dist/{generate-CIjPy_cH.js → generate-BrSCnqfT.js} +3 -3
  67. package/dist/{generate-DWL9aXjZ.js → generate-Ckt9pvJD.js} +12 -12
  68. package/dist/{generate-options-RvPqyMWE.js → generate-options-DudA1wrX.js} +7 -7
  69. package/dist/h3/index.js +2 -2
  70. package/dist/hono/index.js +1 -1
  71. package/dist/{hook-sql-C24FFEWr.js → hook-sql-BArV58df.js} +65 -12
  72. package/dist/{import-Dmm7N9C6.js → import-DvPcOvx4.js} +1 -1
  73. package/dist/{index-B1hyWi7O.d.ts → index-Cnrz9ChE.d.ts} +3 -2
  74. package/dist/index.d.ts +1 -1
  75. package/dist/index.js +4 -4
  76. package/dist/{init-tXmJlH7f.js → init-D50xP3eQ.js} +3 -3
  77. package/dist/{init-Cgcea11w.js → init-ukHYcnVG.js} +1 -1
  78. package/dist/{inspect-functions-DbhgRvDf.js → inspect-functions-BevsMf1c.js} +1 -1
  79. package/dist/{instance-snapshot-D03srwnf.js → instance-snapshot-BJam8gUa.js} +10 -3
  80. package/dist/{interactive-only-ad2JJYk8.js → interactive-only-C9NQJXpi.js} +33 -8
  81. package/dist/{kernel-yI0nUyuX.js → kernel-UOKCD3tV.js} +3 -3
  82. package/dist/{keys-B4JLF5VZ.js → keys-C9gcgQqN.js} +1 -1
  83. package/dist/{lazy-provider-b8UHGi8P.js → lazy-provider-BPSgEG-A.js} +1 -1
  84. package/dist/{login-fz4tUg2P.js → login-CO5_OmE5.js} +3 -3
  85. package/dist/{login-DAqoZl0F.js → login-CeyA9IUa.js} +1 -1
  86. package/dist/{manifest-DbJC_rXj.js → manifest-DWO7EC1m.js} +39 -39
  87. package/dist/mcp/index.js +2 -2
  88. package/dist/{measure-R9VWfQ2y.js → measure-CJOb4tnF.js} +1 -1
  89. package/dist/{model-8NWofaam.js → model-Cjt2WEm3.js} +1 -1
  90. package/dist/nest/index.js +1 -1
  91. package/dist/next/index.js +3 -3
  92. package/dist/node/index.js +1 -1
  93. package/dist/openai/index.js +3 -3
  94. package/dist/{openapi-BgXg8LkZ.js → openapi-BlkqnsHh.js} +2 -2
  95. package/dist/{openapi-uxD7ABpM.js → openapi-WZ7O-5gx.js} +1 -1
  96. package/dist/{openapi-document-BJcbM0-l.js → openapi-document-qHp-hW5Y.js} +1 -1
  97. package/dist/orpc/index.js +2 -2
  98. package/dist/{output-DZS9QWHI.js → output-C3gBd5Yp.js} +1 -1
  99. package/dist/{ownership-DO5EF2nr.js → ownership-BGAqnS59.js} +2 -2
  100. package/dist/pdp/index.js +1 -1
  101. package/dist/{permdock-CbavFN6u.js → permdock-B0aE5Ime.js} +1 -1
  102. package/dist/{permissions-BPYOb5OB.js → permissions-CF8Ed44S.js} +1 -1
  103. package/dist/{pipeline-IvdKfvuP.js → pipeline-BXsElIBt.js} +2 -2
  104. package/dist/{policy-V-sHH2Ku.js → policy-BOXVx6pf.js} +1 -1
  105. package/dist/{policy-bundle-DyJKT9TF.js → policy-bundle-BbXW3vec.js} +3 -3
  106. package/dist/{policy-from-catalog-BohzTN3J.js → policy-from-catalog-hECiBs9M.js} +1 -1
  107. package/dist/{powersync-BkN45DVg.js → powersync-CXTWMf2h.js} +1 -1
  108. package/dist/{powersync-BY6r-MIk.js → powersync-WHQ4bGgx.js} +1 -1
  109. package/dist/{powersync-IqzV6QHS.js → powersync-cShrvGN9.js} +8 -8
  110. package/dist/{provider-NQwLSlgb.js → provider-BT8hVigf.js} +1 -1
  111. package/dist/{provider-hQFC3b98.js → provider-DRsBw6My.js} +1 -1
  112. package/dist/{provider-store-BizF6jyu.js → provider-store-fzaF1R6q.js} +1 -1
  113. package/dist/{prune-config-BRqnw6rb.js → prune-config-CdcEIILi.js} +4 -4
  114. package/dist/pull-DTiAI52h.js +1 -0
  115. package/dist/{pull-PDxkxdGN.js → pull-b_1Jv1XY.js} +1 -1
  116. package/dist/{push-Br0Uz5pT.js → push-Dl7o5gU_.js} +1 -1
  117. package/dist/{pushed-policy-dm_hFstN.js → pushed-policy-DXA5KLo6.js} +1 -1
  118. package/dist/{rbac-BK_wp3eK.js → rbac-BlVLEzQC.js} +2 -2
  119. package/dist/react/index.js +1 -1
  120. package/dist/react/lazy.js +1 -1
  121. package/dist/react/provider-client-lazy.js +1 -1
  122. package/dist/react/provider-client.js +1 -1
  123. package/dist/react-native/index.js +1 -1
  124. package/dist/{rename-BbdlodFz.js → rename-B61GbsZQ.js} +2 -2
  125. package/dist/{request-context-C9FFFpuH.js → request-context-Bi0Crsd5.js} +1 -1
  126. package/dist/{resolve-names-B85N2-Ws.js → resolve-names-D9S1ytiK.js} +2 -2
  127. package/dist/{resolver-C9-dU-SZ.js → resolver-CDJq6Q7f.js} +3 -3
  128. package/dist/{rls-BkXnBVXx.js → rls-BKoLx_wE.js} +7 -7
  129. package/dist/{rls-DTXsf2zJ.js → rls-DUrkfLte.js} +3 -3
  130. package/dist/{rls-files-BJMmTuC9.js → rls-files-CXNRzrb-.js} +1 -1
  131. package/dist/{rpc-RDBrKR7N.js → rpc-C-kZGWs6.js} +1 -1
  132. package/dist/run-BR0E2gC_.js +1 -0
  133. package/dist/{run-dwwtRWj6.js → run-DC-N-B56.js} +2 -2
  134. package/dist/{saas-CHviJgF2.js → saas-DDz3ivSL.js} +2 -2
  135. package/dist/{scan-BGTnZXgx.js → scan-DodOeypJ.js} +1 -1
  136. package/dist/{schema-KPTMZVeK.js → schema-owUQ1gtu.js} +1 -1
  137. package/dist/server/index.js +1 -1
  138. package/dist/{size-Dm3777Ev.js → size-DNSNqUda.js} +2 -2
  139. package/dist/{skills-jPbcwqhX.js → skills-CCpuGcKP.js} +1 -1
  140. package/dist/{skills-CexZ2QfF.js → skills-s2aKsx2b.js} +1 -1
  141. package/dist/{snapshot-size-CpdksnSr.js → snapshot-size-1zICkeFb.js} +1 -1
  142. package/dist/{snapshot-size-I_-fxGry.js → snapshot-size-CFwBMDNC.js} +1 -1
  143. package/dist/solid/index.js +1 -1
  144. package/dist/solid-start/index.js +2 -2
  145. package/dist/{src-10d_jun2.js → src-DUWw9z1D.js} +2 -2
  146. package/dist/{stores-jgDndNHa.js → stores-qYmLHVKv.js} +1 -1
  147. package/dist/supabase/index.js +2 -2
  148. package/dist/supabase/middleware.js +3 -3
  149. package/dist/{supabase-DgHCnzMW.js → supabase-BTQJN5xy.js} +2 -2
  150. package/dist/{supabase-CeJAHqZp.js → supabase-DayxaRcg.js} +2 -2
  151. package/dist/supabase-hook-D6qeBhbR.js +2 -0
  152. package/dist/{supabase-hook-BIBC5Ihn.js → supabase-hook-Q7W7FeMZ.js} +5 -5
  153. package/dist/{supabase-schemas-DOc3cNnf.js → supabase-schemas-DsIQxBsk.js} +1 -1
  154. package/dist/svelte/index.js +2 -2
  155. package/dist/svelte/runtime.js +1 -1
  156. package/dist/svelte/source.js +1 -1
  157. package/dist/sveltekit/index.js +1 -1
  158. package/dist/{table-reads-CXecyZKo.js → table-reads-BnUbRW9A.js} +1 -1
  159. package/dist/{table-reads-CMP1MnPJ.js → table-reads-BqTGNTSZ.js} +1 -1
  160. package/dist/{tables-C-DzDqKb.js → tables-CKtoAAm5.js} +2 -2
  161. package/dist/tanstack-start/index.js +1 -1
  162. package/dist/{tenant-check-DoZibca6.js → tenant-check-cX7MSxRQ.js} +3 -3
  163. package/dist/terminal/index.js +2 -2
  164. package/dist/testing/core.js +1 -1
  165. package/dist/testing/index.d.ts +1 -1
  166. package/dist/testing/index.js +7 -7
  167. package/dist/testing/saas/index.js +2 -2
  168. package/dist/testing/saas/permissions.js +1 -1
  169. package/dist/trpc/index.js +2 -2
  170. package/dist/usage-CRHxOpvu.js +1 -0
  171. package/dist/{usage-BiTJQNJO.js → usage-C_gw6Dsh.js} +2 -2
  172. package/dist/{usage-ltA8iGa4.js → usage-Ct-_O647.js} +1 -1
  173. package/dist/{verify-Dj3OjNiD.js → verify-BHM21t2P.js} +5 -5
  174. package/dist/vue/index.js +1 -1
  175. package/dist/{warm-BOrs0-_j.js → warm-C6Hn4J-4.js} +1 -1
  176. package/dist/{watch--c--3aEf.js → watch-DEnagZ5d.js} +1 -1
  177. package/dist/workflow/index.js +1 -1
  178. package/package.json +2 -2
  179. package/dist/bundle-size-CGd8wVIu.js +0 -1
  180. package/dist/evaluator-zpeC7zel.js +0 -2
  181. package/dist/gen-Df-r9jpy.js +0 -1
  182. package/dist/pull-n6noMzmE.js +0 -1
  183. package/dist/run-DqqVLgh_.js +0 -1
  184. package/dist/supabase-hook-8jAi64W9.js +0 -2
  185. package/dist/usage-D7-bsLte.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 { 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-uxD7ABpM.js")).runOpenapi({
82
+ return (await import("./openapi-WZ7O-5gx.js")).runOpenapi({
83
83
  cwd: ctx.cwd,
84
84
  config: ctx.config,
85
85
  rest: ["emit"],
@@ -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-Dmm7N9C6.js")).runOpenapiImport({
186
+ return (await import("./import-DvPcOvx4.js")).runOpenapiImport({
187
187
  cwd: ctx.cwd,
188
188
  doc,
189
189
  out: fileOut("openapi import", flags.out),
@@ -7,7 +7,7 @@ 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
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-KPTMZVeK.js";
10
+ import { n as validateOverlay, t as validateOpenapi } from "./schema-owUQ1gtu.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-uxD7ABpM.js");
6
+ const { runOpenapi } = await import("./openapi-WZ7O-5gx.js");
7
7
  const outcome = await runOpenapi({
8
8
  cwd: source.cwd,
9
9
  config: source.config,
@@ -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-DbJC_rXj.js";
2
+ import { t as DOCS_BASE } from "./manifest-DWO7EC1m.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
@@ -7,8 +7,8 @@ import { l as roleColumn } from "./sources-C6Id63F8.js";
7
7
  import { i as configError } from "./errors-DgLOqc6j.js";
8
8
  import { a as quoteIdent, i as qualified, n as declaredArray, o as quoteLiteral, s as quoteQualified } from "./quote-LNaBdCGA.js";
9
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-ad2JJYk8.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-C-DzDqKb.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-CKtoAAm5.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-8NWofaam.js";
6
- import { n as resolveSchemas } from "./supabase-schemas-DOc3cNnf.js";
5
+ import { a as ownedObjects, i as inReservedDir, n as foreignSchemaFiles, o as shownKey, s as withoutOwned, t as policyModel } from "./model-Cjt2WEm3.js";
6
+ import { n as resolveSchemas } from "./supabase-schemas-DsIQxBsk.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";
@@ -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-DyJKT9TF.js");
21
+ const { runPolicyBundle } = await import("./policy-bundle-BbXW3vec.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-RvPqyMWE.js";
3
- import { r as compileGrants } from "./compile-7tf8hHlu.js";
4
- import { X as policyBundle, Y as bundleLoaderSql, i as tableNames, q as POLICY_BUNDLE_FORMAT } from "./tables-C-DzDqKb.js";
2
+ import { i as buildContext, n as isRefusal, o as inheritTargets, t as generateOptions } from "./generate-options-DudA1wrX.js";
3
+ import { r as compileGrants } from "./compile-5QQLSNRY.js";
4
+ import { X as policyBundle, Y as bundleLoaderSql, i as tableNames, q as POLICY_BUNDLE_FORMAT } from "./tables-CKtoAAm5.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",
@@ -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-BY6r-MIk.js");
27
+ const { runPowerSync } = await import("./powersync-WHQ4bGgx.js");
28
28
  return runPowerSync({
29
29
  cwd: ctx.cwd,
30
30
  config: ctx.config,
@@ -1 +1 @@
1
- export { i as powersyncFiles, r as publicationPath, t as runPowerSync } from "./powersync-IqzV6QHS.js";
1
+ export { i as powersyncFiles, r as publicationPath, t as runPowerSync } from "./powersync-cShrvGN9.js";
@@ -1,15 +1,15 @@
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
8
  import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-3aUUP6Nx.js";
9
9
  import { r as pgConnector } from "./pg-DmS5ITHu.js";
10
10
  import { c as requirePolicy } from "./load-m7jmit3y.js";
11
- import { t as canFixture } from "./verify-Dj3OjNiD.js";
12
- import { d as andConditions, l as collectGrants, o as assignableRoles, p as contextRefs, u as roleNames } from "./rbac-BK_wp3eK.js";
11
+ import { t as canFixture } from "./verify-BHM21t2P.js";
12
+ import { d as andConditions, l as collectGrants, o as assignableRoles, p as contextRefs, u as roleNames } from "./rbac-BlVLEzQC.js";
13
13
  import { a as quoteIdent, s as quoteQualified } from "./quote-LNaBdCGA.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";
@@ -18,15 +18,15 @@ import { d as keptKeys, t as AUTHZ_VERSION_TABLE } from "./sources-C6Id63F8.js";
18
18
  import { a as customRolesOn, t as CUSTOM_ROLES } from "./shared-DnVY767H.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-DO5EF2nr.js";
22
- import { a as tableFor } from "./compile-7tf8hHlu.js";
23
- import { i as tableNames, r as tableNameOf } from "./tables-C-DzDqKb.js";
21
+ import { t as ownershipRules } from "./ownership-BGAqnS59.js";
22
+ import { a as tableFor } from "./compile-5QQLSNRY.js";
23
+ import { i as tableNames, r as tableNameOf } from "./tables-CKtoAAm5.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-DOc3cNnf.js";
29
+ import { n as resolveSchemas } from "./supabase-schemas-DsIQxBsk.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,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,16 +1,16 @@
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-m1X9N8DZ.js";
5
- import { t as projectContext } from "./context-BQQzAw83.js";
6
- import { t as emitPluginFiles } from "./pipeline-IvdKfvuP.js";
4
+ import { t as genFiles } from "./gen-BZ-03GIG.js";
5
+ import { t as projectContext } from "./context-Dew6yQqT.js";
6
+ import { t as emitPluginFiles } from "./pipeline-BXsElIBt.js";
7
7
  import { n as isPermDockPlugin } from "./plugin-MQVfUBUS.js";
8
8
  import { S as restatedFacts, c as withDerivedDefaults, o as readParsedConfig, t as configFileIn } from "./config-Dan6vcvj.js";
9
9
  import { c as requirePolicy } from "./load-m7jmit3y.js";
10
10
  import { n as restatedDefaults, r as withoutPath } from "./resolve-config-Cu_mE2wt.js";
11
11
  import { n as writtenPaths, t as configProperty } from "./config-paths-CQvGng3k.js";
12
12
  import { r as removeProperty, t as applyEditsStrict } from "./edits-CqU8s2GC.js";
13
- import { n as commandFor } from "./compile-7tf8hHlu.js";
13
+ import { n as commandFor } from "./compile-5QQLSNRY.js";
14
14
  import { r as schemaTables, t as restatedSchemaDefaults } from "./schema-tables-Ba9LE_XB.js";
15
15
  import { readFileSync } from "node:fs";
16
16
  // src/cli/codemod/prune-config.ts
@@ -0,0 +1 @@
1
+ export { n as runCloudPull } from "./pull-b_1Jv1XY.js";
@@ -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-DZS9QWHI.js";
7
+ import { o as nonEmptyOr } from "./output-C3gBd5Yp.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";
@@ -1,5 +1,5 @@
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";
@@ -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,4 +1,4 @@
1
- import { n as authorizeSql } from "./supabase-CeJAHqZp.js";
1
+ import { n as authorizeSql } from "./supabase-DayxaRcg.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,7 +10,7 @@ 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-ad2JJYk8.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
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
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
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";
@@ -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";
@@ -3,9 +3,9 @@ import "./sources-C6Id63F8.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
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-BK_wp3eK.js";
6
+ import { a as resolveAuthorize } from "./rbac-BlVLEzQC.js";
7
7
  import { a as customRolesOn, t as CUSTOM_ROLES } from "./shared-DnVY767H.js";
8
- import { n as legacyKeySql } from "./custom-role-rebuild-CRz6Ip6J.js";
8
+ import { n as legacyKeySql } from "./custom-role-rebuild-BwM6hBqt.js";
9
9
  import { n as byKey } from "./compare-8SNJN-9U.js";
10
10
  import { a as quoteIdent, o as quoteLiteral } from "./quote-LNaBdCGA.js";
11
11
  import { a as nameOf, o as nodes, r as child, u as walk } from "./ast-CAOxvn9t.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
  /**
@@ -5,11 +5,11 @@ import "./budget-BH81q2cj.js";
5
5
  import "./sources-C6Id63F8.js";
6
6
  import { i as configError } from "./errors-DgLOqc6j.js";
7
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-C-DzDqKb.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-CKtoAAm5.js";
9
9
  import { b as idTypeOf, x as scopeTypeOf } from "./subject-B7p94Y0s.js";
10
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
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-ad2JJYk8.js";
12
+ import { D as globalRoleRows, m as holderBody } from "./interactive-only-C9NQJXpi.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
@@ -1,13 +1,13 @@
1
1
  import { r as isRecord, t as compact } from "./compact-C4LFuqbW.js";
2
2
  import { f as nowMillis } from "./time-r0CKBm57.js";
3
- import { l as appOf, u as withApp } from "./permdock-CbavFN6u.js";
3
+ import { l as appOf, u as withApp } from "./permdock-B0aE5Ime.js";
4
4
  import { t as anonymousSubject } from "./subject-DkxY-AhF.js";
5
5
  import { i as instanceCache, n as memorySubjectCache, r as readSubjectRecord, t as memoryVersionCache } from "./version-cache-l9Zrfvhz.js";
6
6
  import { t as readMemberships } from "./read-memberships-DVBitJZG.js";
7
7
  import { a as permissionStates } from "./checks-DSm45qH7.js";
8
8
  import { t as instanceOptions } from "./instance-options-CLErhA76.js";
9
- import { n as versionSources } from "./define-permdock-B0q7Rg9b.js";
10
- import { t as buildInstance } from "./build-instance-BGpABVbM.js";
9
+ import { n as versionSources } from "./define-permdock-CGI9pgqL.js";
10
+ import { t as buildInstance } from "./build-instance-BX5yWZDz.js";
11
11
  import { n as NO_GRANT } from "./decision-hHv4UZgy.js";
12
12
  import { a as hookApiNames } from "./sources-C6Id63F8.js";
13
13
  import { o as subjectFromSupabase } from "./definition-options-DLBlRrPO.js";
@@ -2,19 +2,19 @@ import "./sources-C6Id63F8.js";
2
2
  import { a as describeError, f as usageResult, o as exitCodeOfError } from "./errors-DgLOqc6j.js";
3
3
  import { n as openPgPool, r as pgConnector, t as connectPgPool } from "./pg-DmS5ITHu.js";
4
4
  import { i as taggedAccessPolicies } from "./bsb-access-Bcw6GrQm.js";
5
- import { n as resolveSchemas, r as schemasRefusal, t as isSupabaseSchemas } from "./supabase-schemas-DOc3cNnf.js";
6
- import { o as nonEmptyOr } from "./output-DZS9QWHI.js";
5
+ import { n as resolveSchemas, r as schemasRefusal, t as isSupabaseSchemas } from "./supabase-schemas-DsIQxBsk.js";
6
+ import { o as nonEmptyOr } from "./output-C3gBd5Yp.js";
7
7
  import { n as packageManagerOf, t as addLine } from "./peer-D77JpXe-.js";
8
- import { n as describeExplain, t as runRlsGenerate } from "./generate-DWL9aXjZ.js";
9
- import { c as INDEX_COLUMNS_SQL, f as readTableIndexFacts, s as COLUMNS_SQL } from "./compile-7tf8hHlu.js";
8
+ import { n as describeExplain, t as runRlsGenerate } from "./generate-Ckt9pvJD.js";
9
+ import { c as INDEX_COLUMNS_SQL, f as readTableIndexFacts, s as COLUMNS_SQL } from "./compile-5QQLSNRY.js";
10
10
  import { r as escapeSqlIdent } from "./sql-T4GaBh9X.js";
11
11
  import { t as beforeFirst } from "./text-D704xHVl.js";
12
12
  import { a as conditionShown, i as callsHelper, o as helperCallKeys, t as HELPER_TABLES } from "./helper-calls-DN1PJcNY.js";
13
13
  import { u as isPlatformSchema } from "./report-x9GeUvjx.js";
14
14
  import { c as ACTOR_MAY_WRITE, p as readOnlyActorKinds } from "./fields-CKX-qjWb.js";
15
- import { a as verifyResult, i as verifyIgnores, n as runRlsVerify, r as rlsFinding } from "./verify-Dj3OjNiD.js";
16
- import { r as parseRbacAuthorize } from "./rbac-BK_wp3eK.js";
17
- import { n as configuredTableReads } from "./table-reads-CMP1MnPJ.js";
15
+ import { a as verifyResult, i as verifyIgnores, n as runRlsVerify, r as rlsFinding } from "./verify-BHM21t2P.js";
16
+ import { r as parseRbacAuthorize } from "./rbac-BlVLEzQC.js";
17
+ import { n as configuredTableReads } from "./table-reads-BqTGNTSZ.js";
18
18
  import { r as isRecord } from "./compact-C4LFuqbW.js";
19
19
  import { a as rel, o as sqlFiles } from "./files-DAR51W3J.js";
20
20
  import { t as importFromApp } from "./app-peer-BnMh5lqz.js";
@@ -194,7 +194,7 @@ async function rlsInput(ctx, verb, shape, options) {
194
194
  };
195
195
  }
196
196
  async function runRls(input) {
197
- return (await import("./rls-BkXnBVXx.js")).runRls(input);
197
+ return (await import("./rls-BKoLx_wE.js")).runRls(input);
198
198
  }
199
199
  ({
200
200
  ...shapeFlags,
@@ -305,7 +305,7 @@ const report = defineLeaf({
305
305
  const [{ runRlsReport }, { pgConnector }, { configuredTableReads }] = await Promise.all([
306
306
  import("./report-Dp-ApWVC.js"),
307
307
  import("./pg-DtiDogUp.js"),
308
- import("./table-reads-CXecyZKo.js")
308
+ import("./table-reads-BnUbRW9A.js")
309
309
  ]);
310
310
  return runRlsReport({
311
311
  cwd: ctx.cwd,
@@ -349,7 +349,7 @@ const measure = defineLeaf({
349
349
  if (db === void 0) throw missingInput("rls measure", ["--db-url-stdin", "--local"], "the database to run requests against");
350
350
  const tenant = given(flags.tenant);
351
351
  const [{ runRlsMeasure, DEFAULT_REQUESTS, DEFAULT_TABLES }, { pgConnector }, { positiveInteger }] = await Promise.all([
352
- import("./measure-R9VWfQ2y.js"),
352
+ import("./measure-CJOb4tnF.js"),
353
353
  import("./pg-DtiDogUp.js"),
354
354
  import("./memberships-DiCbNRny.js")
355
355
  ]);
@@ -3,7 +3,7 @@ import { i as dateAt } from "./time-r0CKBm57.js";
3
3
  import { n as CliError } from "./errors-DgLOqc6j.js";
4
4
  import { m as seedsMigration, p as seedDeltaNote } from "./output-files-8lfALMSU.js";
5
5
  import { a as fixturesPresent, i as defaultsSeedSql, o as fixturesSeedSql, r as FIXTURES_PATH, t as DEFAULTS_MARKER } from "./seed-sql-CjF7u0aX.js";
6
- import { t as runRlsGenerate } from "./generate-DWL9aXjZ.js";
6
+ import { t as runRlsGenerate } from "./generate-Ckt9pvJD.js";
7
7
  import { a as quietIo, r as noted } from "./plugin-MQVfUBUS.js";
8
8
  // src/cli/generate/plugins/rls-options.ts
9
9
  function seedMode(seeds) {
@@ -1,5 +1,5 @@
1
1
  import { t as compact } from "./compact-C4LFuqbW.js";
2
- import { t as adapterKernel } from "./bind-BNYcJ1D9.js";
2
+ import { t as adapterKernel } from "./bind-CFwfgfp2.js";
3
3
  import { n as tenantScope } from "./adapter-context-lHq_i_77.js";
4
4
  import { s as requestFromContext } from "./http-C9jDw_bZ.js";
5
5
  import { r as guardIterable } from "./stream-DdF94h7T.js";
@@ -0,0 +1 @@
1
+ export { t as run } from "./run-DC-N-B56.js";
@@ -3,9 +3,9 @@ import { a as readConfig, l as withPluginOutputs, s as resolveCwd } from "./conf
3
3
  import { t as beforeFirst } from "./text-D704xHVl.js";
4
4
  import { a as describeError, n as CliError, r as cliFailure, s as failureOf, u as kindOfCode } from "./errors-DgLOqc6j.js";
5
5
  import { a as suggestion, i as parseLeaf, o as GLOBAL_FLAGS, r as parseFlags } from "./args-BSpXxMnb.js";
6
- import { a as githubAnnotations, c as sarifLog, d as consentReasons, f as quote, i as findingsDocument, l as confirmationRequired, n as errorDocument, p as replayArgv, s as resultDocument, t as dataOf, u as consentDigest } from "./output-DZS9QWHI.js";
6
+ import { a as githubAnnotations, c as sarifLog, d as consentReasons, f as quote, i as findingsDocument, l as confirmationRequired, n as errorDocument, p as replayArgv, s as resultDocument, t as dataOf, u as consentDigest } from "./output-C3gBd5Yp.js";
7
7
  import { r as progressReporter, t as redact } from "./credentials-6ZWbJ-Re.js";
8
- import { a as resolve, i as leaves, n as ROOT, r as SECTIONS, t as DOCS_BASE } from "./manifest-DbJC_rXj.js";
8
+ import { a as resolve, i as leaves, n as ROOT, r as SECTIONS, t as DOCS_BASE } from "./manifest-DWO7EC1m.js";
9
9
  import { t as createStyle } from "./style-CQDaLJtP.js";
10
10
  import { s as cliVersion } from "./version-D-jWyJb9.js";
11
11
  import { n as isPermDockPlugin } from "./plugin-MQVfUBUS.js";
@@ -1,9 +1,9 @@
1
- import { a as saasPlans, i as saasPermissions, o as saasRoles } from "./permissions-BPYOb5OB.js";
1
+ import { a as saasPlans, i as saasPermissions, o as saasRoles } from "./permissions-CF8Ed44S.js";
2
2
  import { a as deny, n as role, r as allow } from "./role-builder-BksM3Q9O.js";
3
3
  import { l as relation, n as anyone } from "./grantee-BSCdpIF3.js";
4
4
  import { r as definePolicy } from "./policy-CZBJDcTx.js";
5
5
  import { i as principal } from "./refs-Cix9Zjis.js";
6
- import { A as memoryCustomRoleSource, w as memoryRelationSource } from "./src-10d_jun2.js";
6
+ import { A as memoryCustomRoleSource, w as memoryRelationSource } from "./src-DUWw9z1D.js";
7
7
  import { s as quoteSqlLiteral } from "./sql-T4GaBh9X.js";
8
8
  import { r as isRecord } from "./compact-C4LFuqbW.js";
9
9
  import { h as secondsAt } from "./time-r0CKBm57.js";
@@ -16,7 +16,7 @@ const scan = defineLeaf({
16
16
  }
17
17
  },
18
18
  async run(ctx, { flags }) {
19
- const { runAdoptionScan } = await import("./adoption-scan-D-uM3y5a.js");
19
+ const { runAdoptionScan } = await import("./adoption-scan-BSVL4wIW.js");
20
20
  return runAdoptionScan({
21
21
  cwd: ctx.cwd,
22
22
  srcPath: flags.src.length > 0 ? flags.src : ctx.config.collect?.srcPath ?? ["src"],
@@ -1,7 +1,7 @@
1
1
  import { t as require__2020 } from "./2020-DBXhfpuK.js";
2
2
  import { r as isRecord } from "./compact-C4LFuqbW.js";
3
3
  import { t as DRAFT_PINS } from "./pins-CXXkVEiD.js";
4
- import { o as nonEmptyOr } from "./output-DZS9QWHI.js";
4
+ import { o as nonEmptyOr } from "./output-C3gBd5Yp.js";
5
5
  import { l as packageRoot } from "./version-D-jWyJb9.js";
6
6
  import { readFileSync } from "node:fs";
7
7
  import { join } from "node:path";
@@ -3,7 +3,7 @@ import { n as PermDockDeniedError, r as PermDockRevokedError, t as PermDockAppro
3
3
  import { t as memoryRevocationFeed } from "../revocations-3jyzniOz.js";
4
4
  import { n as tenantScope } from "../adapter-context-lHq_i_77.js";
5
5
  import { c as problemFromDecision, f as validationProblem, l as problemResponse, p as wwwAuthenticate } from "../problem-BZB7zPC7.js";
6
- import { t as createPermDock } from "../create-Dapy8DIK.js";
6
+ import { t as createPermDock } from "../create-DRiggRWE.js";
7
7
  import { f as InvalidSignatureError, g as webBotAuthVerifier, h as invalidSignatureResponse, m as invalidSignatureProblem, o as evaluationsHandler, p as discoverViaSignatureAgent } from "../evaluations-DPEAu_jM.js";
8
8
  import { a as memoryCredentialStore, c as subjectFromApiKey, i as hashApiKey, n as generateApiKey, o as parseApiKey, r as generateFeedKey, s as parseFeedKey, t as apiKeyVerifier } from "../credentials-B-hsgB4W.js";
9
9
  import { t as problemFromError } from "../map-error-DYQbf-3Q.js";
@@ -38,7 +38,7 @@ const snapshotSize = defineLeaf({
38
38
  },
39
39
  async run(ctx, { flags }) {
40
40
  try {
41
- const { runSnapshotSize, SNAPSHOT_BUDGET_BYTES } = await import("./snapshot-size-I_-fxGry.js");
41
+ const { runSnapshotSize, SNAPSHOT_BUDGET_BYTES } = await import("./snapshot-size-CFwBMDNC.js");
42
42
  const path = given(flags.policy) ?? ctx.config.policy;
43
43
  return runSnapshotSize({
44
44
  policy: await requirePolicy(ctx.cwd, path, "set policy in permdock.config.ts or pass --policy"),
@@ -103,7 +103,7 @@ const bundleSize = defineLeaf({
103
103
  },
104
104
  async run(ctx, { flags }) {
105
105
  try {
106
- const { runBundleSize } = await import("./bundle-size-CGd8wVIu.js");
106
+ const { runBundleSize } = await import("./bundle-size-DRu3x2lW.js");
107
107
  const path = given(flags.policy) ?? ctx.config.policy;
108
108
  return runBundleSize({
109
109
  policy: await requirePolicy(ctx.cwd, path, "set policy in permdock.config.ts or pass --policy"),
@@ -1,6 +1,6 @@
1
1
  import { t as byCodePoint } from "./compare-dfHDj8kT.js";
2
2
  import { t as didYouMean } from "./args-BSpXxMnb.js";
3
- import { o as nonEmptyOr } from "./output-DZS9QWHI.js";
3
+ import { o as nonEmptyOr } from "./output-C3gBd5Yp.js";
4
4
  import { i as readJsonFile, s as writeFileEnsuringDir } from "./files-DAR51W3J.js";
5
5
  import { l as packageRoot } from "./version-D-jWyJb9.js";
6
6
  import { cpSync, existsSync, lstatSync, readFileSync, readdirSync, readlinkSync, realpathSync } from "node:fs";