permdock 0.27.0 → 0.27.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 (75) hide show
  1. package/dist/{adoption-scan-CMghLDUG.js → adoption-scan-Fc-Wmidd.js} +1 -1
  2. package/dist/{arazzo-DdJBVrsy.js → arazzo-0iMa9ZCa.js} +1 -1
  3. package/dist/{arazzo-B8heXoYy.js → arazzo-awjY0iuj.js} +1 -1
  4. package/dist/{casbin-D33ZeUf5.js → casbin-CmCKtC7e.js} +1 -1
  5. package/dist/{casbin-BHYVxJDD.js → casbin-lyorC43j.js} +1 -1
  6. package/dist/cli/bin.js +1 -1
  7. package/dist/cli/generate/watch-worker.js +1 -1
  8. package/dist/cli/index.js +1 -1
  9. package/dist/cli/plugins/app.js +1 -1
  10. package/dist/cli/plugins/openapi.js +1 -1
  11. package/dist/cli/plugins/powersync.js +1 -1
  12. package/dist/cli/plugins/rls.js +1 -1
  13. package/dist/cli/plugins/schemas.js +1 -1
  14. package/dist/cli/plugins/supabase-hook.js +1 -1
  15. package/dist/cli/plugins/supabase.js +2 -2
  16. package/dist/cli/plugins/ui.js +1 -1
  17. package/dist/{cloud-BmQrcTvx.js → cloud-DqV26jjx.js} +1 -1
  18. package/dist/{codemod-C_NKj01W.js → codemod-Hd9xW-Ft.js} +2 -2
  19. package/dist/{codemod-BpjMjxly.js → codemod-KrqgvHZZ.js} +1 -1
  20. package/dist/{compile-Dy3zMRxo.js → compile-R4ZIFR-P.js} +1 -1
  21. package/dist/{completion-CSncf6cX.js → completion-D4umSq3h.js} +1 -1
  22. package/dist/{config-report-D607UDnv.js → config-report-D5MqxIOK.js} +1 -1
  23. package/dist/{config-xiX3R65I.js → config-t947SDkG.js} +1 -1
  24. package/dist/{doctor-BhoJiHi0.js → doctor-CMEycIkk.js} +13 -13
  25. package/dist/{doctor-CoKSRLhf.js → doctor-DNcxcd7g.js} +2 -2
  26. package/dist/{execute-CyQLisIB.js → execute-DWB89P16.js} +1 -1
  27. package/dist/{gen-CJE3Xud5.js → gen-D89kmqIc.js} +2 -2
  28. package/dist/{gen-kind-DGQxmID0.js → gen-kind-B1iCluFw.js} +1 -1
  29. package/dist/gen-mjtVyqQd.js +1 -0
  30. package/dist/{generate-DF6Y8ncI.js → generate-BIcB7Seb.js} +1 -1
  31. package/dist/{generate-DIZNzMuk.js → generate-Bajg2iM2.js} +10 -11
  32. package/dist/{generate-options-CLPUvgVW.js → generate-options-DCAC8VPe.js} +9 -5
  33. package/dist/{hook-sql-FSets5NB.js → hook-sql-QnIzAo7X.js} +3 -3
  34. package/dist/{import-DemSCI1R.js → import-BX3VRyEG.js} +1 -1
  35. package/dist/{init-BlYRZRnQ.js → init-B7dc10G2.js} +3 -3
  36. package/dist/{init-CgoOwXtk.js → init-oLHdLm9N.js} +1 -1
  37. package/dist/{login-CNQJN8Fy.js → login-Cy1tmSIU.js} +3 -3
  38. package/dist/{login-TwrSjf6k.js → login-Dtr5Dhg-.js} +1 -1
  39. package/dist/{manifest-XIXxXYty.js → manifest-D_T55LWM.js} +30 -30
  40. package/dist/{openapi-CrCBEFEm.js → openapi-DXTd9d4R.js} +1 -1
  41. package/dist/{openapi-CH9Dh5UX.js → openapi-dfS5EWV7.js} +1 -1
  42. package/dist/{openapi-document-CJO6cUS1.js → openapi-document-DG3OLrz8.js} +1 -1
  43. package/dist/{output-CU7OppLv.js → output-DyU0C-y4.js} +1 -1
  44. package/dist/{ownership-BBQe7GZp.js → ownership-CoKxJFJT.js} +1 -1
  45. package/dist/{policy-FrCL4wDQ.js → policy-CCEbqYf8.js} +1 -1
  46. package/dist/{policy-bundle-1Znzdxse.js → policy-bundle-HAEbKVWr.js} +3 -3
  47. package/dist/{powersync-pbvC5g6K.js → powersync-B3wb25Im.js} +4 -4
  48. package/dist/{powersync-Y-_z8V5X.js → powersync-CRjA5yaf.js} +1 -1
  49. package/dist/{powersync-DVgkPQKM.js → powersync-DLCojn6h.js} +1 -1
  50. package/dist/{pull-CpLyeY2p.js → pull-CPqDPfQF.js} +1 -1
  51. package/dist/pull-D7grIUA_.js +1 -0
  52. package/dist/{resolve-names-Ca4ClMU2.js → resolve-names-DcEObQXW.js} +1 -1
  53. package/dist/{rls-CmyxiQsS.js → rls-B7_-H9w_.js} +1 -1
  54. package/dist/{rls-DY5ITGzf.js → rls-DvvFUuM1.js} +5 -5
  55. package/dist/{rls-files-BtaUXVp-.js → rls-files-BTEnbgHS.js} +1 -1
  56. package/dist/run-Di9cOIeR.js +1 -0
  57. package/dist/{run-BoVUFspr.js → run-b7JC98PS.js} +2 -2
  58. package/dist/{scan-C4x8UqS7.js → scan-B5BaNYdI.js} +1 -1
  59. package/dist/{schema-Zfpbku8U.js → schema-McSTkbY6.js} +1 -1
  60. package/dist/{skills-B0cLRZ7w.js → skills-BY84uRix.js} +1 -1
  61. package/dist/{skills-DiGdMvMw.js → skills-zTMid__z.js} +1 -1
  62. package/dist/{supabase-B7Q5bO-P.js → supabase-3Z27QkmX.js} +1 -1
  63. package/dist/supabase-hook-D1gG6Ub-.js +2 -0
  64. package/dist/{supabase-hook-loL2iJVb.js → supabase-hook-O2TwhHTD.js} +1 -1
  65. package/dist/{tables-C8IwkTHq.js → tables-B-rPhiI1.js} +12 -7
  66. package/dist/{usage-llSQehNg.js → usage-B2_Cv8wf.js} +2 -2
  67. package/dist/usage-BWpZJbdf.js +1 -0
  68. package/dist/{usage-BgNAgZfj.js → usage-SO2T77jZ.js} +1 -1
  69. package/dist/{verify-nMTdEqBB.js → verify-CYGImcQk.js} +3 -3
  70. package/package.json +1 -1
  71. package/dist/gen-WzJbAcMJ.js +0 -1
  72. package/dist/pull-C3_fCkgX.js +0 -1
  73. package/dist/run-BriRChKE.js +0 -1
  74. package/dist/supabase-hook-C7FNwQ1p.js +0 -2
  75. package/dist/usage-D6HUlfvP.js +0 -1
@@ -30,20 +30,20 @@ const SECTIONS = [
30
30
  docs: "init",
31
31
  effects: ["files"],
32
32
  config: false,
33
- load: async () => (await import("./init-BlYRZRnQ.js")).init
33
+ load: async () => (await import("./init-B7dc10G2.js")).init
34
34
  }),
35
35
  group("preset", "Decode a preset code, or print its permdock.com/create link", "preset", [leaf("decode", "Print what a preset code holds", {
36
36
  examples: ["permdock preset decode p1AQIDBAc"],
37
37
  docs: "preset",
38
38
  effects: [],
39
39
  config: false,
40
- load: async () => (await import("./init-BlYRZRnQ.js")).presetDecode
40
+ load: async () => (await import("./init-B7dc10G2.js")).presetDecode
41
41
  }), leaf("url", "Print the permdock.com/create link that opens a code", {
42
42
  examples: ["permdock preset url p1AQIDBAc"],
43
43
  docs: "preset",
44
44
  effects: [],
45
45
  config: false,
46
- load: async () => (await import("./init-BlYRZRnQ.js")).presetUrl
46
+ load: async () => (await import("./init-B7dc10G2.js")).presetUrl
47
47
  })]),
48
48
  group("skills", "Install, update or list the PermDock Agent Skills", "skills", [
49
49
  leaf("install", "Copy the Agent Skills into the agent folders", {
@@ -55,21 +55,21 @@ const SECTIONS = [
55
55
  docs: "skills",
56
56
  effects: ["files"],
57
57
  config: false,
58
- load: async () => (await import("./skills-DiGdMvMw.js")).install
58
+ load: async () => (await import("./skills-zTMid__z.js")).install
59
59
  }),
60
60
  leaf("update", "Replace installed skills with this version's", {
61
61
  examples: ["permdock skills update"],
62
62
  docs: "skills",
63
63
  effects: ["files"],
64
64
  config: false,
65
- load: async () => (await import("./skills-DiGdMvMw.js")).update
65
+ load: async () => (await import("./skills-zTMid__z.js")).update
66
66
  }),
67
67
  leaf("list", "List the skills and where each is installed", {
68
68
  examples: ["permdock skills list"],
69
69
  docs: "skills",
70
70
  effects: [],
71
71
  config: false,
72
- load: async () => (await import("./skills-DiGdMvMw.js")).list
72
+ load: async () => (await import("./skills-zTMid__z.js")).list
73
73
  })
74
74
  ]),
75
75
  leaf("doctor", "Check a PermDock installation and print a fix for each finding", {
@@ -83,7 +83,7 @@ const SECTIONS = [
83
83
  effects: ["files", "database:read"],
84
84
  config: true,
85
85
  findings: true,
86
- load: async () => (await import("./doctor-CoKSRLhf.js")).doctor
86
+ load: async () => (await import("./doctor-DNcxcd7g.js")).doctor
87
87
  }),
88
88
  leaf("completion", "Print the shell completion script for bash, zsh or fish", {
89
89
  examples: ["permdock completion zsh > ~/.zfunc/_permdock", "eval \"$(permdock completion bash)\""],
@@ -91,7 +91,7 @@ const SECTIONS = [
91
91
  effects: [],
92
92
  config: false,
93
93
  shellOutput: true,
94
- load: async () => (await import("./completion-CSncf6cX.js")).completion
94
+ load: async () => (await import("./completion-D4umSq3h.js")).completion
95
95
  })
96
96
  ]
97
97
  },
@@ -125,7 +125,7 @@ const SECTIONS = [
125
125
  docs: "generate",
126
126
  effects: ["files"],
127
127
  config: true,
128
- load: async () => (await import("./generate-DF6Y8ncI.js")).generate
128
+ load: async () => (await import("./generate-BIcB7Seb.js")).generate
129
129
  }),
130
130
  leaf("usage", "Report unused, ungranted and role-less permissions and conditions on undeclared fields", {
131
131
  examples: ["permdock usage", "permdock usage --fail-on warning"],
@@ -133,7 +133,7 @@ const SECTIONS = [
133
133
  effects: [],
134
134
  config: true,
135
135
  findings: true,
136
- load: async () => (await import("./usage-BgNAgZfj.js")).usage
136
+ load: async () => (await import("./usage-SO2T77jZ.js")).usage
137
137
  }),
138
138
  leaf("diff", "Compare two policies or catalogs; exit 1 on a breaking change", {
139
139
  examples: ["permdock diff main.catalog.json permissions.catalog.json", "permdock diff ./old-policy.ts ./src/policy.ts --impact"],
@@ -165,7 +165,7 @@ const SECTIONS = [
165
165
  docs: "policy",
166
166
  effects: ["files"],
167
167
  config: true,
168
- load: async () => (await import("./policy-FrCL4wDQ.js")).policyBundle
168
+ load: async () => (await import("./policy-CCEbqYf8.js")).policyBundle
169
169
  })]),
170
170
  group("claims", "Measure the memberships claim of an access token", "claims", [leaf("size", "Report claim bytes, token characters and the budget cut", {
171
171
  examples: ["permdock claims size --memberships 60", "permdock claims size --memberships 11 --roles 3 --json"],
@@ -180,7 +180,7 @@ const SECTIONS = [
180
180
  effects: [],
181
181
  config: true,
182
182
  findings: true,
183
- load: async () => (await import("./config-xiX3R65I.js")).config
183
+ load: async () => (await import("./config-t947SDkG.js")).config
184
184
  })
185
185
  ]
186
186
  },
@@ -193,7 +193,7 @@ const SECTIONS = [
193
193
  docs: "rls",
194
194
  effects: ["files", "database:read"],
195
195
  config: true,
196
- load: async () => (await import("./rls-CmyxiQsS.js")).importPolicies
196
+ load: async () => (await import("./rls-B7_-H9w_.js")).importPolicies
197
197
  }),
198
198
  leaf("verify", "Run the fixtures against the policies, or compare a live database", {
199
199
  examples: [
@@ -205,21 +205,21 @@ const SECTIONS = [
205
205
  effects: ["files", "database:read"],
206
206
  config: true,
207
207
  findings: true,
208
- load: async () => (await import("./rls-CmyxiQsS.js")).verify
208
+ load: async () => (await import("./rls-B7_-H9w_.js")).verify
209
209
  }),
210
210
  leaf("migrate", "Rewrite hand-written policies onto the generated helpers", {
211
211
  examples: ["permdock rls migrate --sql supabase/migrations --dry-run", "permdock rls migrate --sql supabase/migrations"],
212
212
  docs: "rls",
213
213
  effects: ["rewrite", "files"],
214
214
  config: true,
215
- load: async () => (await import("./rls-CmyxiQsS.js")).migrate
215
+ load: async () => (await import("./rls-B7_-H9w_.js")).migrate
216
216
  }),
217
217
  leaf("explain", "Show the tables, membership sources and triggers the SQL binds to", {
218
218
  examples: ["permdock rls explain", "permdock rls explain --db-url-stdin --json"],
219
219
  docs: "rls",
220
220
  effects: ["database:read"],
221
221
  config: true,
222
- load: async () => (await import("./rls-CmyxiQsS.js")).explain
222
+ load: async () => (await import("./rls-B7_-H9w_.js")).explain
223
223
  })
224
224
  ]),
225
225
  group("supabase", "Generate the Supabase Custom Access Token Hook, or inspect its manifest", "supabase", [leaf("inspect", "Print or write the hook and helper manifest", {
@@ -227,14 +227,14 @@ const SECTIONS = [
227
227
  docs: "supabase",
228
228
  effects: ["files"],
229
229
  config: true,
230
- load: async () => (await import("./supabase-B7Q5bO-P.js")).inspect
230
+ load: async () => (await import("./supabase-3Z27QkmX.js")).inspect
231
231
  })]),
232
232
  group("powersync", "Generate PowerSync Sync Streams from the policy, or verify them", "powersync", [leaf("verify", "Fail on stale streams or a stream that syncs a denied row", {
233
233
  examples: ["permdock powersync verify", "permdock powersync verify --db-url-stdin"],
234
234
  docs: "powersync",
235
235
  effects: ["database:read"],
236
236
  config: true,
237
- load: async () => (await import("./powersync-Y-_z8V5X.js")).verify
237
+ load: async () => (await import("./powersync-CRjA5yaf.js")).verify
238
238
  })])
239
239
  ]
240
240
  },
@@ -247,13 +247,13 @@ const SECTIONS = [
247
247
  effects: ["files"],
248
248
  config: true,
249
249
  findings: true,
250
- load: async () => (await import("./openapi-CrCBEFEm.js")).annotateRoutes
250
+ load: async () => (await import("./openapi-DXTd9d4R.js")).annotateRoutes
251
251
  }), leaf("import", "Turn an OpenAPI document into a generated definition", {
252
252
  examples: ["permdock openapi import --doc openapi.yaml --out src/permissions.generated.ts"],
253
253
  docs: "openapi",
254
254
  effects: ["files", "network"],
255
255
  config: false,
256
- load: async () => (await import("./openapi-CrCBEFEm.js")).importDocument
256
+ load: async () => (await import("./openapi-DXTd9d4R.js")).importDocument
257
257
  })]),
258
258
  group("arazzo", "Check Arazzo workflows against the permissions", "arazzo", [leaf("check", "Resolve every Arazzo step to x-permdock-permissions", {
259
259
  examples: ["permdock arazzo check --doc arazzo.json --openapi openapi.json"],
@@ -261,7 +261,7 @@ const SECTIONS = [
261
261
  effects: [],
262
262
  config: true,
263
263
  findings: true,
264
- load: async () => (await import("./arazzo-DdJBVrsy.js")).check
264
+ load: async () => (await import("./arazzo-0iMa9ZCa.js")).check
265
265
  })]),
266
266
  leaf("scan", "List authorization checks written without PermDock, to adopt it in an existing app", {
267
267
  examples: ["permdock scan", "permdock scan --src app,lib --pattern isBeta"],
@@ -269,7 +269,7 @@ const SECTIONS = [
269
269
  effects: [],
270
270
  config: true,
271
271
  findings: true,
272
- load: async () => (await import("./scan-C4x8UqS7.js")).scan
272
+ load: async () => (await import("./scan-B5BaNYdI.js")).scan
273
273
  }),
274
274
  group("casl", "Import CASL rules into a generated module", "casl", [leaf("import", "Turn CASL rules per role into a permissions and policy module", {
275
275
  examples: ["permdock casl import --rules rules.json --out src/permissions.generated.ts"],
@@ -283,7 +283,7 @@ const SECTIONS = [
283
283
  docs: "casbin",
284
284
  effects: ["files"],
285
285
  config: false,
286
- load: async () => (await import("./casbin-BHYVxJDD.js")).casbinImport
286
+ load: async () => (await import("./casbin-lyorC43j.js")).casbinImport
287
287
  })])
288
288
  ]
289
289
  },
@@ -295,34 +295,34 @@ const SECTIONS = [
295
295
  docs: "login",
296
296
  effects: ["network", "files"],
297
297
  config: false,
298
- load: async () => (await import("./login-CNQJN8Fy.js")).login
298
+ load: async () => (await import("./login-Cy1tmSIU.js")).login
299
299
  }),
300
300
  leaf("logout", "Revoke and delete the stored PermDock Cloud login", {
301
301
  examples: ["permdock logout"],
302
302
  docs: "login",
303
303
  effects: ["network", "files"],
304
304
  config: false,
305
- load: async () => (await import("./login-CNQJN8Fy.js")).logout
305
+ load: async () => (await import("./login-Cy1tmSIU.js")).logout
306
306
  }),
307
307
  leaf("whoami", "Print the PermDock Cloud identity the CLI acts as", {
308
308
  examples: ["permdock whoami", "permdock whoami --json"],
309
309
  docs: "login",
310
310
  effects: [],
311
311
  config: false,
312
- load: async () => (await import("./login-CNQJN8Fy.js")).whoami
312
+ load: async () => (await import("./login-Cy1tmSIU.js")).whoami
313
313
  }),
314
314
  group("cloud", "Publish to or pull from a PermDock Cloud project", "cloud", [leaf("push", "Publish the catalog, policy and manifest to a Cloud project", {
315
315
  examples: ["permdock cloud push --dry-run", "permdock cloud push --project prj_123"],
316
316
  docs: "cloud",
317
317
  effects: ["network", "cloud:write"],
318
318
  config: true,
319
- load: async () => (await import("./cloud-BmQrcTvx.js")).push
319
+ load: async () => (await import("./cloud-DqV26jjx.js")).push
320
320
  }), leaf("pull", "Write a Cloud project's published catalog and manifest", {
321
321
  examples: ["permdock cloud pull --project prj_123"],
322
322
  docs: "cloud",
323
323
  effects: ["network", "files"],
324
324
  config: true,
325
- load: async () => (await import("./cloud-BmQrcTvx.js")).pull
325
+ load: async () => (await import("./cloud-DqV26jjx.js")).pull
326
326
  })])
327
327
  ]
328
328
  },
@@ -333,7 +333,7 @@ const SECTIONS = [
333
333
  docs: "codemod",
334
334
  effects: ["rewrite"],
335
335
  config: false,
336
- load: async () => (await import("./codemod-C_NKj01W.js")).codemod
336
+ load: async () => (await import("./codemod-Hd9xW-Ft.js")).codemod
337
337
  })]
338
338
  }
339
339
  ];
@@ -345,7 +345,7 @@ const COMPLETE_LEAF = leaf("__complete", "Print completion candidates for a part
345
345
  config: false,
346
346
  shellOutput: true,
347
347
  hidden: true,
348
- load: async () => (await import("./completion-CSncf6cX.js")).complete
348
+ load: async () => (await import("./completion-D4umSq3h.js")).complete
349
349
  });
350
350
  const ROOT = group("permdock", "Collect, export, diff and check the permissions a PermDock policy declares", "", [...SECTIONS.flatMap((section) => section.entries), COMPLETE_LEAF]);
351
351
  /** Each leaf with its path from the root, in manifest order. */
@@ -81,7 +81,7 @@ const importDocument = defineLeaf({
81
81
  async run(ctx, { flags }) {
82
82
  const doc = given(flags.doc);
83
83
  if (doc === void 0) throw missingInput("openapi import", ["--doc"], "the OpenAPI document to import");
84
- return (await import("./import-DemSCI1R.js")).runOpenapiImport({
84
+ return (await import("./import-BX3VRyEG.js")).runOpenapiImport({
85
85
  cwd: ctx.cwd,
86
86
  doc,
87
87
  out: fileOut("openapi import", flags.out),
@@ -7,7 +7,7 @@ import { i as fileDrift } from "./output-files-DNid6TBl.js";
7
7
  import { t as shortDiff } from "./text-diff-CsglY49A.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-CZnlAyZ8.js";
10
- import { n as validateOverlay, t as validateOpenapi } from "./schema-Zfpbku8U.js";
10
+ import { n as validateOverlay, t as validateOpenapi } from "./schema-McSTkbY6.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-CH9Dh5UX.js");
6
+ const { runOpenapi } = await import("./openapi-dfS5EWV7.js");
7
7
  const outcome = await runOpenapi({
8
8
  cwd: source.cwd,
9
9
  config: source.config,
@@ -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-XIXxXYty.js";
2
+ import { t as DOCS_BASE } from "./manifest-D_T55LWM.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
@@ -6,7 +6,7 @@ import { i as qualifySqlTable } from "./sql-T4GaBh9X.js";
6
6
  import { l as roleColumn } from "./sources-DnjJPGfb.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-BKrTBbcH.js";
9
- 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-C8IwkTHq.js";
9
+ 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-B-rPhiI1.js";
10
10
  // src/cli/rls/assignments.ts
11
11
  /**
12
12
  * The client roles whose writes the assignment triggers check; any other role
@@ -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-1Znzdxse.js");
21
+ const { runPolicyBundle } = await import("./policy-bundle-HAEbKVWr.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-CLPUvgVW.js";
3
- import { n as compileGrants } from "./compile-Dy3zMRxo.js";
4
- import { G as POLICY_BUNDLE_FORMAT, K as bundleLoaderSql, i as tableNames, q as policyBundle } from "./tables-C8IwkTHq.js";
2
+ import { i as buildContext, n as isRefusal, o as inheritTargets, t as generateOptions } from "./generate-options-DCAC8VPe.js";
3
+ import { n as compileGrants } from "./compile-R4ZIFR-P.js";
4
+ import { G as POLICY_BUNDLE_FORMAT, K as bundleLoaderSql, i as tableNames, q as policyBundle } from "./tables-B-rPhiI1.js";
5
5
  import { existsSync, readFileSync } from "node:fs";
6
6
  import { resolve } from "node:path";
7
7
  // src/cli/policy-bundle.ts
@@ -8,7 +8,7 @@ import { i as fileDrift } from "./output-files-DNid6TBl.js";
8
8
  import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-Bm0G0A7H.js";
9
9
  import { n as pgConnector } from "./pg-CA651850.js";
10
10
  import { c as requirePolicy } from "./load-CZnlAyZ8.js";
11
- import { t as canFixture } from "./verify-nMTdEqBB.js";
11
+ import { t as canFixture } from "./verify-CYGImcQk.js";
12
12
  import { a as roleNames, i as collectGrants, t as assignableRoles } from "./grants-BzjbUCdR.js";
13
13
  import { a as quoteIdent, s as quoteQualified } from "./quote-BKrTBbcH.js";
14
14
  import { a as scopeMembershipTable, i as scopeColumn } from "./compile-BUKXrueE.js";
@@ -18,9 +18,9 @@ import { d as keptKeys, t as AUTHZ_VERSION_TABLE } from "./sources-DnjJPGfb.js";
18
18
  import { a as customRolesOn, t as CUSTOM_ROLES } from "./shared-BdF5DJDQ.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-BBQe7GZp.js";
22
- import { i as tableFor } from "./compile-Dy3zMRxo.js";
23
- import { i as tableNames, r as tableNameOf } from "./tables-C8IwkTHq.js";
21
+ import { t as ownershipRules } from "./ownership-CoKxJFJT.js";
22
+ import { i as tableFor } from "./compile-R4ZIFR-P.js";
23
+ import { i as tableNames, r as tableNameOf } from "./tables-B-rPhiI1.js";
24
24
  import { l as policyLevels } from "./policy-DFD2J5o_.js";
25
25
  import { r as contextRefs, t as andConditions } from "./conditions-CkHgXoZB.js";
26
26
  import { p as scopeField } from "./tenancy-B5Xxt9Sc.js";
@@ -24,7 +24,7 @@ const verify = defineLeaf({
24
24
  const db = await dbUrl(ctx, flags, { required: true });
25
25
  const fixtures = given(flags.fixtures);
26
26
  const from = given(flags.policy);
27
- const { runPowerSync } = await import("./powersync-DVgkPQKM.js");
27
+ const { runPowerSync } = await import("./powersync-DLCojn6h.js");
28
28
  return runPowerSync({
29
29
  cwd: ctx.cwd,
30
30
  config: ctx.config,
@@ -1 +1 @@
1
- export { r as powersyncFiles, t as runPowerSync } from "./powersync-pbvC5g6K.js";
1
+ export { r as powersyncFiles, t as runPowerSync } from "./powersync-B3wb25Im.js";
@@ -4,7 +4,7 @@ import { n as parseSupabaseManifest } from "./manifest-B-8d2lhG.js";
4
4
  import { o as formatCatalogJson } from "./catalog-doc-Bp5khmCG.js";
5
5
  import { t as catalogPath } from "./catalog-path-bG0XxHMu.js";
6
6
  import { a as describeError } from "./errors-DgLOqc6j.js";
7
- import { a as nonEmptyOr } from "./output-CU7OppLv.js";
7
+ import { a as nonEmptyOr } from "./output-DyU0C-y4.js";
8
8
  import { s as cliVersion } from "./version-D-jWyJb9.js";
9
9
  import { s as writeFileEnsuringDir } from "./files-DAR51W3J.js";
10
10
  import { n as formatManifestJson } from "./manifest-json-DMaBWmcG.js";
@@ -0,0 +1 @@
1
+ export { n as runCloudPull } from "./pull-CPqDPfQF.js";
@@ -5,7 +5,7 @@ import "./budget-BH81q2cj.js";
5
5
  import "./sources-DnjJPGfb.js";
6
6
  import { i as configError } from "./errors-DgLOqc6j.js";
7
7
  import { t as FIELD_VIEWS } from "./fields-6d1j-q3c.js";
8
- import { C as forUserContext, Z as graphPlan, d as permittedByPermissionHelper, i as tableNames, o as PERMISSION_HELPERS, p as holderSources, s as checkName, w as grantBodies } from "./tables-C8IwkTHq.js";
8
+ import { C as forUserContext, Z as graphPlan, d as permittedByPermissionHelper, i as tableNames, o as PERMISSION_HELPERS, p as holderSources, s as checkName, w as grantBodies } from "./tables-B-rPhiI1.js";
9
9
  import { D as idTypeOf, O as scopeTypeOf } from "./shared-BdF5DJDQ.js";
10
10
  import { G as graphHelper, K as graphSqlName, Q as isTeamScope, T as globalRoleRows, X as hasPermittedUsers, Z as inheritedRowsHelper, ct as restrictedHelper, et as memberForHelper, f as holderBody, it as memberOfHelper, ot as permittedForHelper, rt as memberIdsHelper, st as permittedIdsHelper, ut as scopeTable } from "./interactive-only-BZu9rLpa.js";
11
11
  import { a as quoteIdent, i as qualified, o as quoteLiteral, s as quoteQualified } from "./quote-BKrTBbcH.js";
@@ -192,7 +192,7 @@ async function rlsInput(ctx, verb, shape, options) {
192
192
  };
193
193
  }
194
194
  async function runRls(input) {
195
- return (await import("./rls-DY5ITGzf.js")).runRls(input);
195
+ return (await import("./rls-DvvFUuM1.js")).runRls(input);
196
196
  }
197
197
  ({
198
198
  ...shapeFlags,
@@ -2,13 +2,13 @@ import "./sources-DnjJPGfb.js";
2
2
  import { a as describeError, f as usageResult, o as exitCodeOfError } from "./errors-DgLOqc6j.js";
3
3
  import { i as requirePeer, n as packageManagerOf, t as addLine } from "./peer-D77JpXe-.js";
4
4
  import { n as pgConnector, t as connectPgPool } from "./pg-CA651850.js";
5
- import { f as isSupabaseSchemas, m as schemasRefusal } from "./hook-sql-FSets5NB.js";
6
- import { a as nonEmptyOr } from "./output-CU7OppLv.js";
7
- import { n as describeExplain, t as runRlsGenerate } from "./generate-DIZNzMuk.js";
8
- import { a as COLUMNS_SQL, o as INDEX_COLUMNS_SQL, u as readTableIndexFacts } from "./compile-Dy3zMRxo.js";
5
+ import { f as isSupabaseSchemas, m as schemasRefusal } from "./hook-sql-QnIzAo7X.js";
6
+ import { a as nonEmptyOr } from "./output-DyU0C-y4.js";
7
+ import { n as describeExplain, t as runRlsGenerate } from "./generate-Bajg2iM2.js";
8
+ import { a as COLUMNS_SQL, o as INDEX_COLUMNS_SQL, u as readTableIndexFacts } from "./compile-R4ZIFR-P.js";
9
9
  import { r as escapeSqlIdent } from "./sql-T4GaBh9X.js";
10
10
  import { t as beforeFirst } from "./text-D704xHVl.js";
11
- import { a as verifyResult, c as callsHelper, i as verifyIgnores, l as helperCallKeys, n as runRlsVerify, o as HELPER_TABLES, r as rlsFinding } from "./verify-nMTdEqBB.js";
11
+ import { a as verifyResult, c as callsHelper, i as verifyIgnores, l as helperCallKeys, n as runRlsVerify, o as HELPER_TABLES, r as rlsFinding } from "./verify-CYGImcQk.js";
12
12
  import { c as ACTOR_MAY_WRITE, p as readOnlyActorKinds } from "./fields-6d1j-q3c.js";
13
13
  import { r as parseRbacAuthorize } from "./rbac-B-49toAp.js";
14
14
  import { delimiter, join } from "node:path";
@@ -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-DNid6TBl.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-DIZNzMuk.js";
6
+ import { t as runRlsGenerate } from "./generate-Bajg2iM2.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) {
@@ -0,0 +1 @@
1
+ export { t as run } from "./run-b7JC98PS.js";
@@ -3,9 +3,9 @@ import { a as resolveCwd, i as readConfig, o as withPluginOutputs } 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-0EWFk-4S.js";
6
- import { c as confirmationRequired, d as quote, f as replayArgv, i as githubAnnotations, l as consentDigest, n as errorDocument, o as resultDocument, s as sarifLog, t as dataOf, u as consentReasons } from "./output-CU7OppLv.js";
6
+ import { c as confirmationRequired, d as quote, f as replayArgv, i as githubAnnotations, l as consentDigest, n as errorDocument, o as resultDocument, s as sarifLog, t as dataOf, u as consentReasons } from "./output-DyU0C-y4.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-XIXxXYty.js";
8
+ import { a as resolve, i as leaves, n as ROOT, r as SECTIONS, t as DOCS_BASE } from "./manifest-D_T55LWM.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";
@@ -16,7 +16,7 @@ const scan = defineLeaf({
16
16
  }
17
17
  },
18
18
  async run(ctx, { flags }) {
19
- const { runAdoptionScan } = await import("./adoption-scan-CMghLDUG.js");
19
+ const { runAdoptionScan } = await import("./adoption-scan-Fc-Wmidd.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-bJfT8aIA.js";
2
2
  import { r as isRecord } from "./compact-C4LFuqbW.js";
3
3
  import { t as DRAFT_PINS } from "./pins-CXXkVEiD.js";
4
- import { a as nonEmptyOr } from "./output-CU7OppLv.js";
4
+ import { a as nonEmptyOr } from "./output-DyU0C-y4.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";
@@ -1,6 +1,6 @@
1
1
  import { t as byCodePoint } from "./compare-dfHDj8kT.js";
2
2
  import { t as didYouMean } from "./args-0EWFk-4S.js";
3
- import { a as nonEmptyOr } from "./output-CU7OppLv.js";
3
+ import { a as nonEmptyOr } from "./output-DyU0C-y4.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";
@@ -1,7 +1,7 @@
1
1
  import { t as defineLeaf } from "./command-9GAzSI7E.js";
2
2
  import { t as checkFlag } from "./flags-C0e-BzGW.js";
3
3
  import { r as pick, t as CANCELLED } from "./prompt-CSXHcJxy.js";
4
- import { n as detectedAgents, r as runSkills, t as SKILL_AGENTS } from "./skills-B0cLRZ7w.js";
4
+ import { n as detectedAgents, r as runSkills, t as SKILL_AGENTS } from "./skills-BY84uRix.js";
5
5
  // src/cli/commands/skills.ts
6
6
  const forFlag = { for: {
7
7
  type: "string",
@@ -15,7 +15,7 @@ const inspect = defineLeaf({
15
15
  },
16
16
  async run(ctx, { flags }) {
17
17
  const out = flags.out === "" ? true : flags.out === "-" ? void 0 : flags.out;
18
- const { runSupabase } = await import("./supabase-hook-C7FNwQ1p.js");
18
+ const { runSupabase } = await import("./supabase-hook-D1gG6Ub-.js");
19
19
  return runSupabase({
20
20
  cwd: ctx.cwd,
21
21
  config: ctx.config,
@@ -0,0 +1,2 @@
1
+ import "./hook-sql-QnIzAo7X.js";
2
+ export { r as runSupabase } from "./supabase-hook-O2TwhHTD.js";
@@ -6,7 +6,7 @@ import { i as readJsonFile, o as sqlFiles, s as writeFileEnsuringDir } from "./f
6
6
  import { n as formatManifestJson, t as MANIFEST_FILE } from "./manifest-json-DMaBWmcG.js";
7
7
  import { c as requirePolicy } from "./load-CZnlAyZ8.js";
8
8
  import { n as hookUri } from "./rbac-B-49toAp.js";
9
- import { a as supabaseHookSql, c as asideAuthzReceive, f as isSupabaseSchemas, h as declarativeSql, i as supabaseHookManifest, l as configToml, m as schemasRefusal, n as hooklessDatabase, o as defaultOut, p as resolveSchemas, r as supabaseDatabaseManifest, s as hookMarker, t as grantsLabel } from "./hook-sql-FSets5NB.js";
9
+ import { a as supabaseHookSql, c as asideAuthzReceive, f as isSupabaseSchemas, h as declarativeSql, i as supabaseHookManifest, l as configToml, m as schemasRefusal, n as hooklessDatabase, o as defaultOut, p as resolveSchemas, r as supabaseDatabaseManifest, s as hookMarker, t as grantsLabel } from "./hook-sql-QnIzAo7X.js";
10
10
  import { r as HOOK_MARKER, s as hookMarkerFields } from "./markers-C-kThnKN.js";
11
11
  import { a as supabaseConfig } from "./supabase-config-mXcggV5I.js";
12
12
  import { t as readMemberships } from "./read-memberships-BkePIa1F.js";
@@ -12,7 +12,7 @@ import { d as restrictedRowsSql, i as scopeColumn, l as relationArmSql } from ".
12
12
  import { t as AUTHZ_VERSION_TABLE } from "./sources-DnjJPGfb.js";
13
13
  import { a as quoteIdent, c as quoteTable, i as qualified, o as quoteLiteral, r as helperSchema, s as quoteQualified } from "./quote-BKrTBbcH.js";
14
14
  import { A as tenantTypeOf, D as idTypeOf, O as scopeTypeOf, _ as subjectClaimJsonSql, d as keyTenantSql, f as kindFilterSql, h as roleKindSql, i as allowEntry, m as memberVia, n as GLOBAL_ROLES, o as rootName, r as HELPERS, s as signedIn, t as CUSTOM_ROLES, v as subjectClaimSql, x as userIdHelperSql, y as subjectIdSql } from "./shared-BdF5DJDQ.js";
15
- import { $ as linkHelper, A as userActive, B as trustedReaderGrants, C as sourcesKeep, D as keyTenantLine, E as instancesActive, F as perScope, G as graphHelper, H as byKey, I as raiseSql, J as hasMemberFor, K as graphSqlName, L as roleReadersSql, M as currentKeyExpr, N as customRolesSql, P as hasCustomRoleChecksFor, Q as isTeamScope, R as rolesTableScope, S as sourcesBodyOf, V as byCodeUnit, W as CLOSURE, Y as hasMemberOf, _ as memoizes, at as memberRoleOf, b as sourceIdOf, c as claimTenant, ct as restrictedHelper, d as hasBody, dt as activeInstancesSql, et as memberForHelper, ft as activeMembershipSql, g as memoizedSetofSql, gt as grantPermissionSql, h as memoWriteSql, it as memberOfHelper, j as globalRoleSource, l as disabledColumn, lt as scopeSources, m as memoHitList, mt as activeUserSql, n as interactiveAllowsCall, o as memoUserSql, ot as permittedForHelper, p as memberColumn, pt as activeRowSql, q as graphSqlText, r as interactiveAllowsSql, rt as memberIdsHelper, s as claimKeptLines, st as permittedIdsHelper, tt as memberForSources, u as functionBody, ut as scopeTable, v as scopedBody, w as sqlBody, x as sourceRows, y as sourceFilters, z as storedTenant } from "./interactive-only-BZu9rLpa.js";
15
+ import { $ as linkHelper, A as userActive, B as trustedReaderGrants, C as sourcesKeep, D as keyTenantLine, E as instancesActive, F as perScope, G as graphHelper, H as byKey, I as raiseSql, J as hasMemberFor, K as graphSqlName, L as roleReadersSql, M as currentKeyExpr, N as customRolesSql, P as hasCustomRoleChecksFor, Q as isTeamScope, R as rolesTableScope, S as sourcesBodyOf, V as byCodeUnit, W as CLOSURE, Y as hasMemberOf, _ as memoizes, a as interactiveSessionSql, at as memberRoleOf, b as sourceIdOf, c as claimTenant, ct as restrictedHelper, d as hasBody, dt as activeInstancesSql, et as memberForHelper, ft as activeMembershipSql, g as memoizedSetofSql, gt as grantPermissionSql, h as memoWriteSql, it as memberOfHelper, j as globalRoleSource, l as disabledColumn, lt as scopeSources, m as memoHitList, mt as activeUserSql, n as interactiveAllowsCall, o as memoUserSql, ot as permittedForHelper, p as memberColumn, pt as activeRowSql, q as graphSqlText, r as interactiveAllowsSql, rt as memberIdsHelper, s as claimKeptLines, st as permittedIdsHelper, tt as memberForSources, u as functionBody, ut as scopeTable, v as scopedBody, w as sqlBody, x as sourceRows, y as sourceFilters, z as storedTenant } from "./interactive-only-BZu9rLpa.js";
16
16
  import { createHash } from "node:crypto";
17
17
  // src/cli/rls/graph.ts
18
18
  function tableFor(resource, tables) {
@@ -2531,17 +2531,19 @@ function grantBodies(ctx) {
2531
2531
  const scoped = ctx.tokenScopes !== void 0;
2532
2532
  const interactive = ctx.interactiveOnly !== void 0;
2533
2533
  const set = ctx.grantSet === true;
2534
- const ceiling = (grant) => {
2534
+ const ceiling = (grant, once) => {
2535
2535
  const calls = [
2536
2536
  ...keys === void 0 ? [] : [apiKeyAllowsCall(ctx, grant)],
2537
2537
  ...scoped ? [tokenScopeAllowsCall(ctx, grant)] : [],
2538
2538
  ...interactive ? [interactiveAllowsCall(ctx, grant)] : []
2539
2539
  ];
2540
- return calls.length === 0 ? void 0 : calls.join(" and ");
2540
+ if (calls.length === 0) return;
2541
+ if (set) return `((select ${interactiveSessionSql(ctx)}) or (${calls.join(" and ")}))`;
2542
+ return once ? calls.map((call) => `(select ${call})`).join(" and ") : calls.join(" and ");
2541
2543
  };
2542
- const allows = ceiling(set ? "ids.grant_key" : "p_grant");
2544
+ const allows = ceiling(set ? "ids.grant_key" : "p_grant", true);
2543
2545
  const keyTenant = keys === void 0 ? "" : ` and ${keyTenantSql(ctx, void 0) ?? "true"}`;
2544
- const hasAllows = ceiling(set ? "g.grant_key" : "p_grant");
2546
+ const hasAllows = ceiling(set ? "g.grant_key" : "p_grant", false);
2545
2547
  return {
2546
2548
  has: memoBody(ctx, "global", "boolean", sqlBody(hasAllows === void 0 ? hasBody(ctx) : set ? ` select g.grant_key
2547
2549
  from (
@@ -2992,15 +2994,18 @@ function grantsFunction(ctx, grants, renamed, anonExecute) {
2992
2994
  return `-- the grant keys a permission key reaches on one scope: its unconditional allows, with p_effect 'deny' every deny, and with 'conditioned-allow' or 'conditioned-deny' the allows or denies that carry a row condition
2993
2995
  create or replace function ${fn}(p_permission text, p_scope text, p_effect text default 'allow')
2994
2996
  returns setof text
2995
- language sql
2997
+ language plpgsql
2996
2998
  stable
2997
2999
  set search_path = ''
2998
3000
  as $$
3001
+ begin
3002
+ return query
2999
3003
  select g.grant_key
3000
3004
  from pg_catalog.jsonb_array_elements_text(coalesce(
3001
3005
  ${quoteLiteral(JSON.stringify(map))}::jsonb -> p_scope -> ${current} -> p_effect,
3002
3006
  '[]'::jsonb
3003
- )) g(grant_key)
3007
+ )) g(grant_key);
3008
+ end;
3004
3009
  $$;
3005
3010
  ${grantsSql(fn, "text, text, text", anonExecute)}`;
3006
3011
  }
@@ -2,8 +2,8 @@ import { a as getResource } from "./permission-registry-DMYRZVcn.js";
2
2
  import { c as jsonSchemaOf } from "./catalog-doc-Bp5khmCG.js";
3
3
  import { r as runCollect } from "./collect-BJZsuBW4.js";
4
4
  import { f as usageResult } from "./errors-DgLOqc6j.js";
5
- import { t as DOCS_BASE } from "./manifest-XIXxXYty.js";
6
- import { r as findingOf } from "./output-CU7OppLv.js";
5
+ import { t as DOCS_BASE } from "./manifest-D_T55LWM.js";
6
+ import { r as findingOf } from "./output-DyU0C-y4.js";
7
7
  import { o as USAGE_REPORT_SCHEMA } from "./version-D-jWyJb9.js";
8
8
  import { n as jiti, r as parseSync, t as createVisitor } from "./optional-CaQWp9HA.js";
9
9
  import { a as rel, r as listSourceFiles } from "./files-DAR51W3J.js";
@@ -0,0 +1 @@
1
+ export { t as runUsage } from "./usage-B2_Cv8wf.js";
@@ -16,7 +16,7 @@ const usage = defineLeaf({
16
16
  }
17
17
  },
18
18
  async run(ctx, { flags }) {
19
- return (await import("./usage-D6HUlfvP.js")).runUsage({
19
+ return (await import("./usage-BWpZJbdf.js")).runUsage({
20
20
  cwd: ctx.cwd,
21
21
  config: ctx.config,
22
22
  ignore: flags.ignore,
@@ -7,16 +7,16 @@ import { s as writeFileEnsuringDir } from "./files-DAR51W3J.js";
7
7
  import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-Bm0G0A7H.js";
8
8
  import { n as pgConnector } from "./pg-CA651850.js";
9
9
  import { o as loadPolicyAt } from "./load-CZnlAyZ8.js";
10
- import { t as commandFor } from "./compile-Dy3zMRxo.js";
10
+ import { t as commandFor } from "./compile-R4ZIFR-P.js";
11
11
  import { r as isRecord } from "./compact-C4LFuqbW.js";
12
12
  import { t as policyRowConditionKeys } from "./row-conditions-DwIJocfQ.js";
13
13
  import { c as rootScope, d as scopeList, o as normalizeMemberships } from "./scopes-B-KX9EI8.js";
14
14
  import { t as beforeFirst } from "./text-D704xHVl.js";
15
15
  import { T as columnTypesOf, a as customRolesOn, r as HELPERS } from "./shared-BdF5DJDQ.js";
16
16
  import { a as quoteIdent, c as quoteTable, o as quoteLiteral, s as quoteQualified } from "./quote-BKrTBbcH.js";
17
- import { Z as graphPlan, i as tableNames, r as tableNameOf } from "./tables-C8IwkTHq.js";
17
+ import { Z as graphPlan, i as tableNames, r as tableNameOf } from "./tables-B-rPhiI1.js";
18
18
  import { s as viewName, t as FIELD_VIEWS } from "./fields-6d1j-q3c.js";
19
- import { t as DOCS_BASE } from "./manifest-XIXxXYty.js";
19
+ import { t as DOCS_BASE } from "./manifest-D_T55LWM.js";
20
20
  import { b as membershipsClaim, m as customRoleScope } from "./evaluate-D8SdfP3h.js";
21
21
  import { n as defaultSqlCommand, t as SQL_IDENT } from "./sql-T4GaBh9X.js";
22
22
  import "./budget-BH81q2cj.js";