permdock 0.37.0 → 0.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/dist/{adoption-scan-sufK4R53.js → adoption-scan-D-uM3y5a.js} +1 -1
  2. package/dist/{arazzo-D0ctRNBU.js → arazzo-BdWGzdqv.js} +1 -1
  3. package/dist/{arazzo-BxtTsEK2.js → arazzo-CyENGJ-M.js} +1 -1
  4. package/dist/{bsb-access-tags-LCaE48SK.js → bsb-access-tags-C4iPlzjs.js} +1 -1
  5. package/dist/{casbin-CMEY_GT4.js → casbin-DdJndgnu.js} +1 -1
  6. package/dist/{casbin-CkLvGuUb.js → casbin-ILRPO6t9.js} +1 -1
  7. package/dist/cli/bin.js +1 -1
  8. package/dist/cli/generate/watch-worker.js +1 -1
  9. package/dist/cli/index.js +1 -1
  10. package/dist/cli/plugins/app.js +1 -1
  11. package/dist/cli/plugins/openapi.js +1 -1
  12. package/dist/cli/plugins/powersync.js +1 -1
  13. package/dist/cli/plugins/rls.js +1 -1
  14. package/dist/cli/plugins/schemas.js +1 -1
  15. package/dist/cli/plugins/supabase-hook.js +1 -1
  16. package/dist/cli/plugins/supabase.js +2 -2
  17. package/dist/cli/plugins/ui.js +1 -1
  18. package/dist/{cloud-N4IUVluH.js → cloud-C8bHMKjI.js} +1 -1
  19. package/dist/{codemod-C9SQqhNG.js → codemod-D02eYuzA.js} +4 -4
  20. package/dist/{codemod-D5a5oDJX.js → codemod-D8zh3IYV.js} +1 -1
  21. package/dist/{compile-BFV2WG67.js → compile-7tf8hHlu.js} +3 -3
  22. package/dist/{completion-BUWG1FGo.js → completion-BZShluF7.js} +1 -1
  23. package/dist/{config-B3Bc6Tly.js → config-ClypJwe2.js} +1 -1
  24. package/dist/{config-report-3IhYuH4v.js → config-report-Kb-mYv9F.js} +1 -1
  25. package/dist/{context-CNI2jibq.js → context-BQQzAw83.js} +1 -1
  26. package/dist/{custom-role-rebuild-QFXiMHqJ.js → custom-role-rebuild-CRz6Ip6J.js} +1 -1
  27. package/dist/{doctor-DP7HwXw_.js → doctor-DAx9dIEX.js} +2 -2
  28. package/dist/{doctor-DhpDQ5C6.js → doctor-XSdrG1SZ.js} +17 -17
  29. package/dist/{execute-g-nMgY4t.js → execute-DgCH7kEE.js} +3 -3
  30. package/dist/gen-Df-r9jpy.js +1 -0
  31. package/dist/{gen-kind-DLnQ-vCe.js → gen-kind-DIltjpY9.js} +1 -1
  32. package/dist/{gen-CTRqv1H2.js → gen-m1X9N8DZ.js} +2 -2
  33. package/dist/{generate-dbQzpEqb.js → generate-CIjPy_cH.js} +3 -3
  34. package/dist/{generate-DcPnvokU.js → generate-DWL9aXjZ.js} +11 -11
  35. package/dist/{generate-options-4jvPn7w3.js → generate-options-RvPqyMWE.js} +7 -7
  36. package/dist/{hook-sql-3yPtwas6.js → hook-sql-C24FFEWr.js} +5 -5
  37. package/dist/{import-DEUiWePf.js → import-Dmm7N9C6.js} +1 -1
  38. package/dist/{init-DqOKr99S.js → init-Cgcea11w.js} +1 -1
  39. package/dist/{init-CUviJnno.js → init-tXmJlH7f.js} +3 -3
  40. package/dist/{inspect-functions-Uv3Ndkty.js → inspect-functions-DbhgRvDf.js} +1 -1
  41. package/dist/{interactive-only-CylKSukS.js → interactive-only-ad2JJYk8.js} +12 -7
  42. package/dist/{keys-CA3SdBHQ.js → keys-B4JLF5VZ.js} +1 -1
  43. package/dist/{login-mcxQxTAL.js → login-DAqoZl0F.js} +1 -1
  44. package/dist/{login-BMONKzI_.js → login-fz4tUg2P.js} +3 -3
  45. package/dist/{manifest-tO5SjSGH.js → manifest-DbJC_rXj.js} +34 -34
  46. package/dist/{measure-r811lN7F.js → measure-R9VWfQ2y.js} +1 -1
  47. package/dist/{model-wt3wihiH.js → model-8NWofaam.js} +1 -1
  48. package/dist/{openapi-BZHc6R7A.js → openapi-BgXg8LkZ.js} +2 -2
  49. package/dist/{openapi-document-CHJI74v_.js → openapi-document-BJcbM0-l.js} +1 -1
  50. package/dist/{openapi-CNWuAQZi.js → openapi-uxD7ABpM.js} +1 -1
  51. package/dist/{output-Bfc3EpB2.js → output-DZS9QWHI.js} +1 -1
  52. package/dist/{ownership-BuQFLjZ5.js → ownership-DO5EF2nr.js} +2 -2
  53. package/dist/{pipeline-DW7cy40F.js → pipeline-IvdKfvuP.js} +2 -2
  54. package/dist/{policy-DTk6NZm-.js → policy-V-sHH2Ku.js} +1 -1
  55. package/dist/{policy-bundle-C7Hz9Rrs.js → policy-bundle-DyJKT9TF.js} +3 -3
  56. package/dist/{powersync-LpKFefiH.js → powersync-BY6r-MIk.js} +1 -1
  57. package/dist/{powersync-CeuhNT0R.js → powersync-BkN45DVg.js} +1 -1
  58. package/dist/{powersync-CoP_nlGj.js → powersync-IqzV6QHS.js} +6 -6
  59. package/dist/{prune-config-C0uSbf1I.js → prune-config-BRqnw6rb.js} +4 -4
  60. package/dist/{pull-A1SkxAyb.js → pull-PDxkxdGN.js} +1 -1
  61. package/dist/pull-n6noMzmE.js +1 -0
  62. package/dist/{rbac-Dx88RLxH.js → rbac-BK_wp3eK.js} +1 -1
  63. package/dist/{rename-RnOp8vDq.js → rename-BbdlodFz.js} +2 -2
  64. package/dist/{resolve-names-Ch5Ve5l4.js → resolve-names-B85N2-Ws.js} +2 -2
  65. package/dist/{rls-CHJbaZxj.js → rls-BkXnBVXx.js} +7 -7
  66. package/dist/{rls-DgYAJpVW.js → rls-DTXsf2zJ.js} +3 -3
  67. package/dist/{rls-files-RZ7PGrzg.js → rls-files-BJMmTuC9.js} +1 -1
  68. package/dist/run-DqqVLgh_.js +1 -0
  69. package/dist/{run-CbJPONx5.js → run-dwwtRWj6.js} +2 -2
  70. package/dist/{scan-DjTW-y6E.js → scan-BGTnZXgx.js} +1 -1
  71. package/dist/{schema-DVyxM9xS.js → schema-KPTMZVeK.js} +1 -1
  72. package/dist/{skills-BYc8rmHF.js → skills-CexZ2QfF.js} +1 -1
  73. package/dist/{skills-BdmjI4D2.js → skills-jPbcwqhX.js} +1 -1
  74. package/dist/{supabase-BAuqWNj3.js → supabase-DgHCnzMW.js} +2 -2
  75. package/dist/supabase-hook-8jAi64W9.js +2 -0
  76. package/dist/{supabase-hook-BbwsceID.js → supabase-hook-BIBC5Ihn.js} +5 -5
  77. package/dist/{supabase-schemas-RG58AMTu.js → supabase-schemas-DOc3cNnf.js} +1 -1
  78. package/dist/{table-reads--NupdCFw.js → table-reads-CMP1MnPJ.js} +1 -1
  79. package/dist/{table-reads-Glf0BHSE.js → table-reads-CXecyZKo.js} +1 -1
  80. package/dist/{tables-Dyfviku5.js → tables-C-DzDqKb.js} +4 -4
  81. package/dist/{tenant-check-Bfd4hotj.js → tenant-check-DoZibca6.js} +3 -3
  82. package/dist/{usage-7Hwk_akY.js → usage-BiTJQNJO.js} +2 -2
  83. package/dist/usage-D7-bsLte.js +1 -0
  84. package/dist/{usage-nZP7EeRj.js → usage-ltA8iGa4.js} +1 -1
  85. package/dist/{verify-DOCJgGlw.js → verify-Dj3OjNiD.js} +3 -3
  86. package/dist/{watch-DYsWhTvO.js → watch--c--3aEf.js} +1 -1
  87. package/package.json +1 -1
  88. package/dist/gen-D-orrO2e.js +0 -1
  89. package/dist/pull-CNMED72E.js +0 -1
  90. package/dist/run-iPVAxorh.js +0 -1
  91. package/dist/supabase-hook-CObLSH20.js +0 -2
  92. package/dist/usage-Bwl8YAmq.js +0 -1
@@ -1,4 +1,4 @@
1
- import { t as DOCS_BASE } from "./manifest-tO5SjSGH.js";
1
+ import { t as DOCS_BASE } from "./manifest-DbJC_rXj.js";
2
2
  import { r as listSourceFiles } from "./files-DAR51W3J.js";
3
3
  import { readFileSync } from "node:fs";
4
4
  import { relative } from "node:path";
@@ -21,7 +21,7 @@ const check = defineLeaf({
21
21
  ...permissionsFlag
22
22
  },
23
23
  async run(ctx, { flags }) {
24
- return (await import("./arazzo-BxtTsEK2.js")).runArazzo({
24
+ return (await import("./arazzo-CyENGJ-M.js")).runArazzo({
25
25
  cwd: ctx.cwd,
26
26
  config: ctx.config,
27
27
  doc: given(flags.doc),
@@ -1,6 +1,6 @@
1
1
  import { y as arazzoFindings } from "./src-10d_jun2.js";
2
2
  import { d as missingInput } from "./errors-DgLOqc6j.js";
3
- import { t as DOCS_BASE } from "./manifest-tO5SjSGH.js";
3
+ import { t as DOCS_BASE } from "./manifest-DbJC_rXj.js";
4
4
  import { t as ARAZZO_REPORT_SCHEMA } from "./version-D-jWyJb9.js";
5
5
  import { i as readJsonFile } from "./files-DAR51W3J.js";
6
6
  import { a as loadModule, s as pickNamed, t as asPermissionTree } from "./load-m7jmit3y.js";
@@ -5,7 +5,7 @@ import { i as refuseDirty, t as applyFiles } from "./files-DuV7wRim.js";
5
5
  import { a as rel } from "./files-DAR51W3J.js";
6
6
  import { a as readConfig } from "./config-Dan6vcvj.js";
7
7
  import { c as requirePolicy } from "./load-m7jmit3y.js";
8
- import { i as keyReasons, n as tenantCheck, r as keyReason, t as svals } from "./tenant-check-Bfd4hotj.js";
8
+ import { i as keyReasons, n as tenantCheck, r as keyReason, t as svals } from "./tenant-check-DoZibca6.js";
9
9
  import { a as parseSqlFile, u as removeStatements } from "./ast-Dnm2TOHN.js";
10
10
  import { n as loadBsbSql, r as schemaSqlFiles, t as bsbSqlMissing } from "./bsb-access-Bcw6GrQm.js";
11
11
  import { n as supabaseDir } from "./supabase-dir-0lxKbrYu.js";
@@ -16,7 +16,7 @@ const casbinImport = defineLeaf({
16
16
  ...outFlag
17
17
  },
18
18
  async run(ctx, { flags }) {
19
- const { runCasbinImport } = await import("./casbin-CkLvGuUb.js");
19
+ const { runCasbinImport } = await import("./casbin-ILRPO6t9.js");
20
20
  return runCasbinImport({
21
21
  cwd: ctx.cwd,
22
22
  model: given(flags.model),
@@ -1,5 +1,5 @@
1
1
  import { t as applyFiles } from "./files-DuV7wRim.js";
2
- import { o as nonEmptyOr } from "./output-Bfc3EpB2.js";
2
+ import { o as nonEmptyOr } from "./output-DZS9QWHI.js";
3
3
  import { n as isIdentifier, t as emitPolicyModule } from "./policy-module-Bp4HvsRg.js";
4
4
  import { existsSync, readFileSync } from "node:fs";
5
5
  import { resolve } from "node:path";
package/dist/cli/bin.js CHANGED
@@ -11,7 +11,7 @@ if (argv.length === 1 && (argv[0] === "--version" || argv[0] === "-v")) {
11
11
  const [{ isCi }, { trapSignals }, { run }, { streamHasColors }] = await Promise.all([
12
12
  import("../env-hbYumkRp.js"),
13
13
  import("../signals-a1NxAP0X.js"),
14
- import("../run-iPVAxorh.js"),
14
+ import("../run-DqqVLgh_.js"),
15
15
  import("../style-Crf-90o6.js")
16
16
  ]);
17
17
  const signals = trapSignals();
@@ -1,7 +1,7 @@
1
1
  import { r as isRecord } from "../../compact-C4LFuqbW.js";
2
2
  import { a as describeError } from "../../errors-DgLOqc6j.js";
3
3
  import { a as readConfig } from "../../config-Dan6vcvj.js";
4
- import { t as executeGenerate } from "../../execute-g-nMgY4t.js";
4
+ import { t as executeGenerate } from "../../execute-DgCH7kEE.js";
5
5
  import { resolve } from "node:path";
6
6
  import { parentPort, workerData } from "node:worker_threads";
7
7
  // src/cli/generate/watch-worker.ts
package/dist/cli/index.js CHANGED
@@ -2,7 +2,7 @@ import { t as catalogPath } from "../catalog-path-bG0XxHMu.js";
2
2
  import { n as defineConfig } from "../config-Dan6vcvj.js";
3
3
  import { t as definePlugin } from "../plugin-MQVfUBUS.js";
4
4
  import { c as parseGrantsMarker, l as parseHookMarker } from "../markers-C-kThnKN.js";
5
- import { t as run } from "../run-CbJPONx5.js";
5
+ import { t as run } from "../run-dwwtRWj6.js";
6
6
  import { n as parsePushedPolicy, r as pushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-dm_hFstN.js";
7
7
  // src/cli/token-schemas.ts
8
8
  const ID = {
@@ -1,4 +1,4 @@
1
- import { t as kindPlugin } from "../../gen-kind-DLnQ-vCe.js";
1
+ import { t as kindPlugin } from "../../gen-kind-DIltjpY9.js";
2
2
  // src/cli/plugins/app.ts
3
3
  /**
4
4
  * Scope, role, permission and operation names and topic and path builders:
@@ -32,7 +32,7 @@ function openapi(options = {}) {
32
32
  return operationsFile(source.cwd, options.routes, task.out);
33
33
  }
34
34
  if (options.doc === void 0) return [];
35
- const { openapiDocument } = await import("../../openapi-document-CHJI74v_.js");
35
+ const { openapiDocument } = await import("../../openapi-document-BJcbM0-l.js");
36
36
  return openapiDocument(task, options, source);
37
37
  }
38
38
  });
@@ -18,7 +18,7 @@ function powersync(options = {}) {
18
18
  }],
19
19
  emit: async (task, _model, source) => {
20
20
  if (source === void 0) return [];
21
- const { powersyncFiles, publicationPath } = await import("../../powersync-LpKFefiH.js");
21
+ const { powersyncFiles, publicationPath } = await import("../../powersync-BY6r-MIk.js");
22
22
  return powersyncFiles(source.policy, source.config, task.out, await publicationPath(source.cwd, source.config)).files.map((file) => ({
23
23
  path: file.path,
24
24
  contents: file.text
@@ -19,7 +19,7 @@ function rls(options = {}) {
19
19
  }],
20
20
  config: (config) => withRlsOutputs(config, options),
21
21
  emit: async (task, _model, source) => {
22
- const { filesForRls } = await import("../../rls-files-RZ7PGrzg.js");
22
+ const { filesForRls } = await import("../../rls-files-BJMmTuC9.js");
23
23
  return filesForRls(task, options, source);
24
24
  }
25
25
  });
@@ -1,4 +1,4 @@
1
- import { t as kindPlugin } from "../../gen-kind-DLnQ-vCe.js";
1
+ import { t as kindPlugin } from "../../gen-kind-DIltjpY9.js";
2
2
  // src/cli/plugins/schemas.ts
3
3
  /** Row validators as Zod schemas, from the model's JSON Schema. */
4
4
  function zod(options = {}) {
@@ -18,7 +18,7 @@ function supabaseHook(options = {}) {
18
18
  config: (config) => withHookOut(config, options.out),
19
19
  emit: async (_task, _model, source) => {
20
20
  if (source === void 0) return [];
21
- const { runSupabase } = await import("../../supabase-hook-CObLSH20.js");
21
+ const { runSupabase } = await import("../../supabase-hook-8jAi64W9.js");
22
22
  const outcome = await runSupabase({
23
23
  cwd: source.cwd,
24
24
  config: source.config,
@@ -37,14 +37,14 @@ function supabase(options = {}) {
37
37
  config: (config) => withHookOut(withRlsOutputs(config, options), hookOut),
38
38
  emit: async (task, _model, source) => {
39
39
  if (task.id === "sql") {
40
- const { filesForRls } = await import("../../rls-files-RZ7PGrzg.js");
40
+ const { filesForRls } = await import("../../rls-files-BJMmTuC9.js");
41
41
  return filesForRls(task, {
42
42
  ...rlsOptions,
43
43
  dialect: "supabase"
44
44
  }, source);
45
45
  }
46
46
  if (source === void 0) return [];
47
- const { runSupabase } = await import("../../supabase-hook-CObLSH20.js");
47
+ const { runSupabase } = await import("../../supabase-hook-8jAi64W9.js");
48
48
  const hookOptions = hook === false || hook === void 0 ? {} : hook;
49
49
  const outcome = await runSupabase({
50
50
  cwd: source.cwd,
@@ -1,4 +1,4 @@
1
- import { t as kindPlugin } from "../../gen-kind-DLnQ-vCe.js";
1
+ import { t as kindPlugin } from "../../gen-kind-DIltjpY9.js";
2
2
  // src/cli/plugins/ui.ts
3
3
  /** `permdock/react` bound to the policy's vocabulary. Carries `"use client"`. */
4
4
  function reactHooks(options = {}) {
@@ -70,7 +70,7 @@ const pull = defineLeaf({
70
70
  },
71
71
  async run(ctx, { flags }) {
72
72
  const env = await withStdinSecret(ctx, "token", flags["token-stdin"], "PERMDOCK_CLOUD_TOKEN");
73
- return (await import("./pull-CNMED72E.js")).runCloudPull({
73
+ return (await import("./pull-n6noMzmE.js")).runCloudPull({
74
74
  cwd: ctx.cwd,
75
75
  config: ctx.config,
76
76
  url: given(flags.url),
@@ -8,7 +8,7 @@ const codemod = defineLeaf({
8
8
  description: "The release to migrate to (0.5), config with --prune, manager-chain, bsb-access-tags or bsb-action-keys",
9
9
  required: true,
10
10
  async complete() {
11
- return (await import("./codemod-D5a5oDJX.js")).codemodVersions();
11
+ return (await import("./codemod-D8zh3IYV.js")).codemodVersions();
12
12
  }
13
13
  }, {
14
14
  name: "paths",
@@ -33,7 +33,7 @@ const codemod = defineLeaf({
33
33
  async run(ctx, { flags, args, rest }) {
34
34
  if (args["version"] === "config") {
35
35
  if (!flags.prune) throw new CliError("usage", "codemod config needs --prune", { code: "invalid_value" });
36
- return (await import("./prune-config-C0uSbf1I.js")).runPruneConfig({
36
+ return (await import("./prune-config-BRqnw6rb.js")).runPruneConfig({
37
37
  cwd: ctx.cwd,
38
38
  check: flags.check,
39
39
  dryRun: flags["dry-run"],
@@ -41,7 +41,7 @@ const codemod = defineLeaf({
41
41
  json: ctx.json
42
42
  });
43
43
  }
44
- if (args["version"] === "bsb-access-tags") return (await import("./bsb-access-tags-LCaE48SK.js")).runAccessTags({
44
+ if (args["version"] === "bsb-access-tags") return (await import("./bsb-access-tags-C4iPlzjs.js")).runAccessTags({
45
45
  cwd: ctx.cwd,
46
46
  ...rest[0] === void 0 ? {} : { schemas: rest[0] },
47
47
  dryRun: flags["dry-run"],
@@ -62,7 +62,7 @@ const codemod = defineLeaf({
62
62
  force: flags.force,
63
63
  json: ctx.json
64
64
  });
65
- return (await import("./codemod-D5a5oDJX.js")).runCodemod({
65
+ return (await import("./codemod-D8zh3IYV.js")).runCodemod({
66
66
  cwd: ctx.cwd,
67
67
  version: args["version"],
68
68
  paths: rest,
@@ -5,7 +5,7 @@ import { t as catalogFingerprint } from "./catalog-fingerprint-DAWZARy6.js";
5
5
  import { r as isRecord } from "./compact-C4LFuqbW.js";
6
6
  import { n as flagSpellings, o as GLOBAL_FLAGS } from "./args-BSpXxMnb.js";
7
7
  import { c as generateFlags, f as policyFlag, i as dryRunFlag, r as dbUrlFlags, t as checkFlag } from "./flags-DQzNPxg1.js";
8
- import { n as ROOT } from "./manifest-tO5SjSGH.js";
8
+ import { n as ROOT } from "./manifest-DbJC_rXj.js";
9
9
  import { n as baselineText, r as parseBaseline } from "./baseline-file-BQoki1O_.js";
10
10
  import { r as resolveConfigRoot, t as configProperty } from "./config-paths-CQvGng3k.js";
11
11
  import { n as propertyKey, r as removeProperty, t as applyEditsStrict } from "./edits-CqU8s2GC.js";
@@ -11,14 +11,14 @@ import { l as isConditionRef, o as hasConditionOp } from "./refs-Cix9Zjis.js";
11
11
  import { t as requiresApproval } from "./approval-required-B-R4Yw3J.js";
12
12
  import { c as jsonSchemaOf } from "./catalog-doc-BX97oFAn.js";
13
13
  import { i as configError } from "./errors-DgLOqc6j.js";
14
- import { A as tokenScopeAllowsCall, L as capabilityAccessSql, S as accessSql, f as requiresSql, z as apiKeyAllowsCall } from "./tables-Dyfviku5.js";
14
+ import { A as tokenScopeAllowsCall, L as capabilityAccessSql, S as accessSql, f as requiresSql, z as apiKeyAllowsCall } from "./tables-C-DzDqKb.js";
15
15
  import { t as connectPgPool } from "./pg-DmS5ITHu.js";
16
16
  import { S as scopeTable } from "./names-DwGleRKB.js";
17
17
  import { a as quoteIdent, c as quoteTable, o as quoteLiteral } from "./quote-LNaBdCGA.js";
18
- import { r as interactiveAllowsCall } from "./interactive-only-CylKSukS.js";
18
+ import { r as interactiveAllowsCall } from "./interactive-only-ad2JJYk8.js";
19
19
  import { _ as validitySql, h as andSql, v as wrapSql } from "./fields-CKX-qjWb.js";
20
20
  import { _ as arrayColumnsOf, d as subjectClaimSql, u as subjectClaimJsonSql, v as columnTypesOf } from "./subject-B7p94Y0s.js";
21
- import { c as breakGlassKey, f as compileConditionSql, l as collectGrants, m as sqlFunctionNames, p as contextRefs, s as breakGlassHolder } from "./rbac-Dx88RLxH.js";
21
+ import { c as breakGlassKey, f as compileConditionSql, l as collectGrants, m as sqlFunctionNames, p as contextRefs, s as breakGlassHolder } from "./rbac-BK_wp3eK.js";
22
22
  import { createHash } from "node:crypto";
23
23
  // src/cli/rls/indexes.ts
24
24
  /** Postgres truncates identifiers longer than this, in bytes. */
@@ -1,6 +1,6 @@
1
1
  import { a as suggestion, o as GLOBAL_FLAGS } from "./args-BSpXxMnb.js";
2
2
  import { t as defineLeaf } from "./command-9GAzSI7E.js";
3
- import { a as resolve } from "./manifest-tO5SjSGH.js";
3
+ import { a as resolve } from "./manifest-DbJC_rXj.js";
4
4
  import { n as CliError } from "./errors-DgLOqc6j.js";
5
5
  // src/cli/core/completion.ts
6
6
  const SHELLS = [
@@ -10,7 +10,7 @@ const config = defineLeaf({
10
10
  ...failOnFlag
11
11
  },
12
12
  async run(ctx, { flags }) {
13
- const { runConfig } = await import("./config-report-3IhYuH4v.js");
13
+ const { runConfig } = await import("./config-report-Kb-mYv9F.js");
14
14
  return runConfig({
15
15
  cwd: ctx.cwd,
16
16
  config: ctx.config,
@@ -1,7 +1,7 @@
1
1
  import "./sources-C6Id63F8.js";
2
2
  import { t as catalogPath } from "./catalog-path-bG0XxHMu.js";
3
3
  import { n as guessPermissions, t as barrelFile } from "./collect-Co-w8Eg2.js";
4
- import { t as DOCS_BASE } from "./manifest-tO5SjSGH.js";
4
+ import { t as DOCS_BASE } from "./manifest-DbJC_rXj.js";
5
5
  import { r as CONFIG_REPORT_SCHEMA } from "./version-D-jWyJb9.js";
6
6
  import { a as rel, t as defaultSrcPath } from "./files-DAR51W3J.js";
7
7
  import { n as restatedDefaults, t as resolveConfig } from "./resolve-config-Cu_mE2wt.js";
@@ -1,5 +1,5 @@
1
1
  import { n as packageManagerOf } from "./peer-D77JpXe-.js";
2
- import { c as readSupabaseConfig } from "./supabase-schemas-RG58AMTu.js";
2
+ import { c as readSupabaseConfig } from "./supabase-schemas-DOc3cNnf.js";
3
3
  import { existsSync, readdirSync } from "node:fs";
4
4
  import { join, relative } from "node:path";
5
5
  // src/cli/generate/context.ts
@@ -6,7 +6,7 @@ import { t as beforeFirst } from "./text-D704xHVl.js";
6
6
  import { C as tenantTypeOf } from "./subject-B7p94Y0s.js";
7
7
  import { a as quoteIdent, c as quoteTable, i as qualified, o as quoteLiteral, s as quoteQualified } from "./quote-LNaBdCGA.js";
8
8
  import { t as CUSTOM_ROLES } from "./shared-DnVY767H.js";
9
- import { B as rolesTableScope, P as currentKeyExpr } from "./interactive-only-CylKSukS.js";
9
+ import { B as rolesTableScope, P as currentKeyExpr } from "./interactive-only-ad2JJYk8.js";
10
10
  // src/cli/rls/custom-role-rebuild.ts
11
11
  const PREFIX = "PermDock CLI";
12
12
  /** A column of the roles-table row `r`. */
@@ -11,7 +11,7 @@ const doctor = defineLeaf({
11
11
  description: "Check codes or groups to run",
12
12
  valueHint: "code",
13
13
  async complete() {
14
- const { DOCTOR_CHECKS } = await import("./doctor-DhpDQ5C6.js");
14
+ const { DOCTOR_CHECKS } = await import("./doctor-XSdrG1SZ.js");
15
15
  return [.../* @__PURE__ */ new Set([...DOCTOR_CHECKS.map(({ code }) => code), ...DOCTOR_CHECKS.flatMap(({ groups }) => groups)])];
16
16
  }
17
17
  },
@@ -46,7 +46,7 @@ const doctor = defineLeaf({
46
46
  if (answer === void 0) return CANCELLED;
47
47
  fix = answer;
48
48
  }
49
- return (await import("./doctor-DhpDQ5C6.js")).runDoctor({
49
+ return (await import("./doctor-XSdrG1SZ.js")).runDoctor({
50
50
  cwd: ctx.cwd,
51
51
  config: ctx.config,
52
52
  only: flags.only,
@@ -2,8 +2,8 @@ import { c as rootScope, d as scopeList, o as normalizeMemberships, s as resolve
2
2
  import { r as supabaseTenantClaim } from "./budget-BH81q2cj.js";
3
3
  import { r as runCollect } from "./collect-Co-w8Eg2.js";
4
4
  import { t as didYouMean } from "./args-BSpXxMnb.js";
5
- import { t as DOCS_BASE } from "./manifest-tO5SjSGH.js";
6
- import { o as nonEmptyOr, r as findingOf } from "./output-Bfc3EpB2.js";
5
+ import { t as DOCS_BASE } from "./manifest-DbJC_rXj.js";
6
+ import { o as nonEmptyOr, r as findingOf } from "./output-DZS9QWHI.js";
7
7
  import { t as createStyle } from "./style-CQDaLJtP.js";
8
8
  import { i as DOCTOR_REPORT_SCHEMA } from "./version-D-jWyJb9.js";
9
9
  import { a as rel, n as doctorSrcPath, o as sqlFiles$1, r as listSourceFiles } from "./files-DAR51W3J.js";
@@ -11,21 +11,21 @@ import { r as pgConnector } from "./pg-DmS5ITHu.js";
11
11
  import { a as describeError, n as CliError } from "./errors-DgLOqc6j.js";
12
12
  import { S as restatedFacts, _ as workspaceDirs, b as readJson, d as betterSupabaseAuthzVersions, f as betterSupabaseConfig, g as betterSupabaseTenantClaim, h as betterSupabaseInstalled, m as betterSupabaseDefaults, o as readParsedConfig, p as betterSupabaseConfigPath, t as configFileIn, u as BETTER_SUPABASE_AUTHZ_TOPIC, v as filesOf, x as membershipDisagreements, y as nodeFiles } from "./config-Dan6vcvj.js";
13
13
  import { a as loadModule, i as loadConfiguredPolicy, n as asPolicy, s as pickNamed } from "./load-m7jmit3y.js";
14
- import { i as runSkillsInstall } from "./skills-BdmjI4D2.js";
14
+ import { i as runSkillsInstall } from "./skills-jPbcwqhX.js";
15
15
  import { i as withSchemaDefaults, n as schemaDefaults, r as schemaTables } from "./schema-tables-Ba9LE_XB.js";
16
- import { a as pd074, c as readSupabaseConfig, i as pd045, l as supabaseConfig, n as resolveSchemas, o as pd127, s as pd136, u as supabaseConfigName } from "./supabase-schemas-RG58AMTu.js";
17
- import { f as attrsPlan, i as supabaseHookManifest, n as hooklessDatabase, r as supabaseDatabaseManifest } from "./hook-sql-3yPtwas6.js";
18
- import { i as pd039, t as hookOut } from "./supabase-hook-BbwsceID.js";
16
+ import { a as pd074, c as readSupabaseConfig, i as pd045, l as supabaseConfig, n as resolveSchemas, o as pd127, s as pd136, u as supabaseConfigName } from "./supabase-schemas-DOc3cNnf.js";
17
+ import { f as attrsPlan, i as supabaseHookManifest, n as hooklessDatabase, r as supabaseDatabaseManifest } from "./hook-sql-C24FFEWr.js";
18
+ import { i as pd039, t as hookOut } from "./supabase-hook-BIBC5Ihn.js";
19
19
  import { t as parseCatalog } from "./parse-CUqZ_lLC.js";
20
20
  import { t as catalogPath } from "./catalog-path-bG0XxHMu.js";
21
21
  import { n as bsbActions, t as answerOf } from "./bsb-actions-DcDxQ_Ku.js";
22
22
  import { c as outFiles } from "./output-files-8lfALMSU.js";
23
- import { a as guardedTables, r as unsatisfiedKinds, t as ownershipRules } from "./ownership-BuQFLjZ5.js";
23
+ import { a as guardedTables, r as unsatisfiedKinds, t as ownershipRules } from "./ownership-DO5EF2nr.js";
24
24
  import { n as MIGRATION_DIRS, t as DEFAULT_SENSITIVE_ACTIONS } from "./constants-PCJiir_3.js";
25
25
  import { n as membershipColumns, r as tableKey } from "./deciding-columns-DBZsrpdD.js";
26
26
  import { a as parseSqlFile, c as readPolicy$1, d as sqlCalls, f as stringValues, h as sqlStatements, l as readRelation, o as parseSqlLenient, p as group, r as functionArgTypes, s as parseSqlStatements, t as SqlSyntaxError } from "./ast-Dnm2TOHN.js";
27
27
  import { t as applyFiles } from "./files-DuV7wRim.js";
28
- import { o as splitIgnored } from "./verify-DOCJgGlw.js";
28
+ import { o as splitIgnored } from "./verify-Dj3OjNiD.js";
29
29
  import { a as updatedBaseline, i as readBaseline, n as baselineText, t as applyBaseline } from "./baseline-file-BQoki1O_.js";
30
30
  import { n as activeTenantMismatch, t as authorizationProvider } from "./provider-hQFC3b98.js";
31
31
  import { r as isRecord } from "./compact-C4LFuqbW.js";
@@ -36,9 +36,9 @@ import { a as nameOf, i as lineIndex, o as nodes, r as child, u as walk } from "
36
36
  import { r as parseSync, t as createVisitor } from "./optional-CaQWp9HA.js";
37
37
  import { t as canonicalJson } from "./canonical-json-BibZkXtE.js";
38
38
  import { c as jsonSchemaOf, i as catalogOAuthScopes } from "./catalog-doc-BX97oFAn.js";
39
- import { a as pd015, i as pd014, n as ADAPTER_SPECIFIERS, o as runtimeSpecifiers, r as pd001, t as runUsage } from "./usage-7Hwk_akY.js";
39
+ import { a as pd015, i as pd014, n as ADAPTER_SPECIFIERS, o as runtimeSpecifiers, r as pd001, t as runUsage } from "./usage-BiTJQNJO.js";
40
40
  import { c as listPermissions, h as formerKeys } from "./permission-registry-DstT40VS.js";
41
- import { t as resolveNames } from "./resolve-names-Ch5Ve5l4.js";
41
+ import { t as resolveNames } from "./resolve-names-B85N2-Ws.js";
42
42
  import "./markers-C-kThnKN.js";
43
43
  import { i as qualifySqlTable, s as quoteSqlLiteral } from "./sql-T4GaBh9X.js";
44
44
  import { s as parseCredential } from "./credential-D9in5keC.js";
@@ -54,31 +54,31 @@ import { t as operationCoverage } from "./coverage-C3jVYC9Y.js";
54
54
  import { a as snapshotSize, r as mostPrivilegedRole, t as SNAPSHOT_BUDGET_BYTES } from "./snapshot-size-CpdksnSr.js";
55
55
  import { a as taggedPolicyId, o as taggedPolicyIds } from "./bsb-access-Bcw6GrQm.js";
56
56
  import { t as membershipSourcesOf } from "./sources-BbSUNmFX.js";
57
- import { a as ownedObjects, i as inReservedDir, o as shownKey, r as generatedByPermdock, s as withoutOwned, t as policyModel } from "./model-wt3wihiH.js";
57
+ import { a as ownedObjects, i as inReservedDir, o as shownKey, r as generatedByPermdock, s as withoutOwned, t as policyModel } from "./model-8NWofaam.js";
58
58
  import { a as pd114, i as pd110, r as pd109 } from "./claims-size-ZiUJBn0r.js";
59
59
  import { t as importFromApp } from "./app-peer-BnMh5lqz.js";
60
60
  import { c as rlsReport, o as policiesFor } from "./report-x9GeUvjx.js";
61
61
  import { a as scopeMembershipTable } from "./compile-BUKXrueE.js";
62
- import { a as powersyncOut, c as streamOf, i as powersyncFiles, n as staleFiles, o as roleSources, r as publicationPath, s as scopeSourcesOf } from "./powersync-CoP_nlGj.js";
62
+ import { a as powersyncOut, c as streamOf, i as powersyncFiles, n as staleFiles, o as roleSources, r as publicationPath, s as scopeSourcesOf } from "./powersync-IqzV6QHS.js";
63
63
  import { t as parseProgram } from "./program-CvarkLMS.js";
64
64
  import { t as FIELD_VIEWS } from "./fields-CKX-qjWb.js";
65
65
  import { n as restatedDefaults } from "./resolve-config-Cu_mE2wt.js";
66
66
  import { n as policyRowConditionKeys } from "./row-conditions-BjARoFLU.js";
67
- import { X as policyBundle, et as graphPlan, i as tableNames, r as tableNameOf } from "./tables-Dyfviku5.js";
67
+ import { X as policyBundle, et as graphPlan, i as tableNames, r as tableNameOf } from "./tables-C-DzDqKb.js";
68
68
  import { n as byKey } from "./compare-8SNJN-9U.js";
69
- import { a as tableFor, n as commandFor, o as unmappedActions, r as compileGrants, t as INFERRED_VERBS } from "./compile-BFV2WG67.js";
70
- import { p as contextRefs } from "./rbac-Dx88RLxH.js";
69
+ import { a as tableFor, n as commandFor, o as unmappedActions, r as compileGrants, t as INFERRED_VERBS } from "./compile-7tf8hHlu.js";
70
+ import { p as contextRefs } from "./rbac-BK_wp3eK.js";
71
71
  import { l as rowConditionMessage, r as ROW_CONDITION_FIX, s as helperTablePolicies } from "./helper-calls-DN1PJcNY.js";
72
72
  import { i as graphSqlName } from "./names-DwGleRKB.js";
73
73
  import { t as CUSTOM_ROLES } from "./shared-DnVY767H.js";
74
74
  import { n as isSeeds } from "./seeds-Bs44UDS3.js";
75
75
  import { r as FIXTURES_PATH, s as seedPathsLine } from "./seed-sql-CjF7u0aX.js";
76
- import { i as buildContext, n as isRefusal, o as inheritTargets, t as generateOptions } from "./generate-options-4jvPn7w3.js";
76
+ import { i as buildContext, n as isRefusal, o as inheritTargets, t as generateOptions } from "./generate-options-RvPqyMWE.js";
77
77
  import { n as propertyKey } from "./edits-CqU8s2GC.js";
78
78
  import { n as legacyHelperNames, r as retirePlan, t as legacyHelperCalls } from "./retire-FN4aY6-n.js";
79
79
  import { t as supautilsRejections } from "./supautils-ym4X20ig.js";
80
80
  import { t as MANIFEST_FILE } from "./manifest-json-DMaBWmcG.js";
81
- import { r as manifestTableReads, s as sharedFunctionsOf, t as committedManifest } from "./table-reads--NupdCFw.js";
81
+ import { r as manifestTableReads, s as sharedFunctionsOf, t as committedManifest } from "./table-reads-CMP1MnPJ.js";
82
82
  import { isDeepStrictEqual } from "node:util";
83
83
  import { readFileSync } from "node:fs";
84
84
  import { dirname, join, resolve } from "node:path";
@@ -1,10 +1,10 @@
1
1
  import { n as budgetBreaches, t as breachText } from "./budgets-DFnMBpKz.js";
2
2
  import { a as suggestion } from "./args-BSpXxMnb.js";
3
3
  import { n as CliError } from "./errors-DgLOqc6j.js";
4
- import { r as runGen } from "./gen-CTRqv1H2.js";
4
+ import { r as runGen } from "./gen-m1X9N8DZ.js";
5
5
  import { c as requirePolicy } from "./load-m7jmit3y.js";
6
- import { t as projectContext } from "./context-CNI2jibq.js";
7
- import { r as runGenerate } from "./pipeline-DW7cy40F.js";
6
+ import { t as projectContext } from "./context-BQQzAw83.js";
7
+ import { r as runGenerate } from "./pipeline-IvdKfvuP.js";
8
8
  import { n as isPermDockPlugin } from "./plugin-MQVfUBUS.js";
9
9
  import { relative, resolve } from "node:path";
10
10
  import { fileURLToPath } from "node:url";
@@ -0,0 +1 @@
1
+ export { n as renderKinds } from "./gen-m1X9N8DZ.js";
@@ -47,7 +47,7 @@ function kindPlugin(kind, options = {}) {
47
47
  }],
48
48
  emit: async (_task, model, source) => {
49
49
  if (source === void 0) return [];
50
- const { renderKinds } = await import("./gen-D-orrO2e.js");
50
+ const { renderKinds } = await import("./gen-Df-r9jpy.js");
51
51
  const files = await renderKinds({
52
52
  cwd: source.cwd,
53
53
  config: source.config,
@@ -13,7 +13,7 @@ import { c as listPermissions } from "./permission-registry-DstT40VS.js";
13
13
  import { d as scopeList } from "./scopes-B-KX9EI8.js";
14
14
  import { o as listPlans, s as listRoles } from "./vocabulary-CE2k7s1a.js";
15
15
  import { c as jsonSchemaOf } from "./catalog-doc-BX97oFAn.js";
16
- import { t as resolveNames } from "./resolve-names-Ch5Ve5l4.js";
16
+ import { t as resolveNames } from "./resolve-names-B85N2-Ws.js";
17
17
  import { t as DESCRIBE_TITLES } from "./describe-B7EosIKA.js";
18
18
  import { i as schemaExpression } from "./generate-5_kz2309.js";
19
19
  import { existsSync, readFileSync } from "node:fs";
@@ -401,7 +401,7 @@ function modelDigest(model) {
401
401
  return createHash("sha256").update(canonicalJson(model)).digest("base64url");
402
402
  }
403
403
  /**
404
- * `// @generated by permdock generate zod@0.37.0 from policy.ts sha-256:…; do
404
+ * `// @generated by permdock generate zod@0.38.0 from policy.ts sha-256:…; do
405
405
  * not edit`.
406
406
  */
407
407
  function generatedHeader(kind, info) {
@@ -1,8 +1,8 @@
1
1
  import { t as defineLeaf } from "./command-9GAzSI7E.js";
2
2
  import { n as CliError } from "./errors-DgLOqc6j.js";
3
3
  import { c as generateFlags, f as policyFlag, i as dryRunFlag, n as dbUrl, r as dbUrlFlags, t as checkFlag } from "./flags-DQzNPxg1.js";
4
- import { t as executeGenerate } from "./execute-g-nMgY4t.js";
5
- import { n as receiptRows } from "./pipeline-DW7cy40F.js";
4
+ import { t as executeGenerate } from "./execute-DgCH7kEE.js";
5
+ import { n as receiptRows } from "./pipeline-IvdKfvuP.js";
6
6
  // src/cli/commands/generate.ts
7
7
  function concurrencyFlag(value) {
8
8
  if (value === void 0 || value === "") return;
@@ -24,7 +24,7 @@ const generate = defineLeaf({
24
24
  const db = await dbUrl(ctx, flags);
25
25
  const policy = flags.policy !== void 0 && flags.policy !== "" ? flags.policy : ctx.config.policy;
26
26
  if (flags.watch) {
27
- const { watchGenerate } = await import("./watch-DYsWhTvO.js");
27
+ const { watchGenerate } = await import("./watch--c--3aEf.js");
28
28
  return watchGenerate(ctx, {
29
29
  ...policy === void 0 ? {} : { policy },
30
30
  only: flags.only,
@@ -6,33 +6,33 @@ import { r as isRecord, t as compact } from "./compact-C4LFuqbW.js";
6
6
  import { n as supabaseDir } from "./supabase-dir-0lxKbrYu.js";
7
7
  import { a as parseSqlFile, f as stringValues, g as statementRanges, l as readRelation, m as splitUndiffed, o as parseSqlLenient, t as SqlSyntaxError } from "./ast-Dnm2TOHN.js";
8
8
  import { n as loadBsbSql, r as schemaSqlFiles } from "./bsb-access-Bcw6GrQm.js";
9
- import { D as seedSql, F as guardAuthAdminGrants, I as unguardAuthAdminGrants, S as accessSql, T as helpersSql, Z as closureBackfillSql, c as permissionHelpersSql, d as permittedByPermissionHelper, i as tableNames, o as PERMISSION_HELPERS, r as tableNameOf, s as checkName, tt as graphSql, u as permissionKeysHelper } from "./tables-Dyfviku5.js";
9
+ import { D as seedSql, F as guardAuthAdminGrants, I as unguardAuthAdminGrants, S as accessSql, T as helpersSql, Z as closureBackfillSql, c as permissionHelpersSql, d as permittedByPermissionHelper, i as tableNames, o as PERMISSION_HELPERS, r as tableNameOf, s as checkName, tt as graphSql, u as permissionKeysHelper } from "./tables-C-DzDqKb.js";
10
10
  import { i as qualifySqlTable } from "./sql-T4GaBh9X.js";
11
- import { a as tableFor, d as pruneIndexTargets, f as readTableIndexFacts, i as inferredCommand, l as indexTargets, r as compileGrants, u as indexesSql } from "./compile-BFV2WG67.js";
12
- import { a as CANDIDATES, c as rowHelpersSql, i as buildContext, l as rowSetSql, n as isRefusal, o as inheritTargets, r as splitsPart, s as levelKeys, t as generateOptions } from "./generate-options-4jvPn7w3.js";
11
+ import { a as tableFor, d as pruneIndexTargets, f as readTableIndexFacts, i as inferredCommand, l as indexTargets, r as compileGrants, u as indexesSql } from "./compile-7tf8hHlu.js";
12
+ import { a as CANDIDATES, c as rowHelpersSql, i as buildContext, l as rowSetSql, n as isRefusal, o as inheritTargets, r as splitsPart, s as levelKeys, t as generateOptions } from "./generate-options-RvPqyMWE.js";
13
13
  import { t as policyFromCatalog } from "./policy-from-catalog-BohzTN3J.js";
14
- import { t as fetchProjectPolicy } from "./pull-A1SkxAyb.js";
14
+ import { t as fetchProjectPolicy } from "./pull-PDxkxdGN.js";
15
15
  import { c as requirePolicy } from "./load-m7jmit3y.js";
16
- import { o as nonEmptyOr } from "./output-Bfc3EpB2.js";
16
+ import { o as nonEmptyOr } from "./output-DZS9QWHI.js";
17
17
  import { i as INDEXES_MARKER, n as GRANTS_MARKER, o as SEEDS_MARKER, t as BACKFILL_MARKER } from "./markers-C-kThnKN.js";
18
18
  import { S as scopeTable, h as memberIdsHelper, i as graphSqlName, r as graphHelper, t as BOOTSTRAP_PERMISSIONS, x as scopeSources, y as permittedIdsHelper } from "./names-DwGleRKB.js";
19
19
  import { a as quoteIdent, c as quoteTable, i as qualified$1, o as quoteLiteral, s as quoteQualified } from "./quote-LNaBdCGA.js";
20
20
  import { b as idTypeOf, f as subjectIdSql, l as sessionLiveHelperSql, t as SESSION_LIVE_HELPER, u as subjectClaimJsonSql, x as scopeTypeOf } from "./subject-B7p94Y0s.js";
21
- import { a as supabaseHookSql, c as asideAuthzReceive, d as declarativeSql, t as grantsLabel, u as approvalsSql } from "./hook-sql-3yPtwas6.js";
22
- import { i as assignmentSql, n as ownershipSql } from "./ownership-BuQFLjZ5.js";
23
- import { r as rebuildPlan, t as DROPPED_LIST } from "./custom-role-rebuild-QFXiMHqJ.js";
21
+ import { a as supabaseHookSql, c as asideAuthzReceive, d as declarativeSql, t as grantsLabel, u as approvalsSql } from "./hook-sql-C24FFEWr.js";
22
+ import { i as assignmentSql, n as ownershipSql } from "./ownership-DO5EF2nr.js";
23
+ import { r as rebuildPlan, t as DROPPED_LIST } from "./custom-role-rebuild-CRz6Ip6J.js";
24
24
  import { p as scopeField } from "./tenancy-B5Xxt9Sc.js";
25
- import { c as breakGlassKey, i as rbacScaffold, l as collectGrants, s as breakGlassHolder } from "./rbac-Dx88RLxH.js";
25
+ import { c as breakGlassKey, i as rbacScaffold, l as collectGrants, s as breakGlassHolder } from "./rbac-BK_wp3eK.js";
26
26
  import { t as supautilsRejections } from "./supautils-ym4X20ig.js";
27
27
  import { a as fieldViewsSql, c as ACTOR_MAY_WRITE, d as assemblePolicies, i as fieldViews, l as actorMayWriteCall, m as readOnlyActorPolicies, n as columnGrantSql, o as rowBranches, p as readOnlyActorKinds, r as columnRevokeSql, u as actorMayWriteSql } from "./fields-CKX-qjWb.js";
28
28
  import { l as isFieldRelation } from "./resource-relations-Ck5sjYQR.js";
29
29
  import { c as rootScope } from "./scopes-B-KX9EI8.js";
30
30
  import { o as rootName, r as HELPERS, t as CUSTOM_ROLES } from "./shared-DnVY767H.js";
31
- import { n as permissionHoldersSql } from "./resolve-names-Ch5Ve5l4.js";
31
+ import { n as permissionHoldersSql } from "./resolve-names-B85N2-Ws.js";
32
32
  import { n as byKey } from "./compare-8SNJN-9U.js";
33
33
  import { i as dateAt } from "./time-r0CKBm57.js";
34
34
  import { _ as writeOutputFiles, a as isSeedsDirectory, d as pgDeltaPath, g as underSchemaDir, h as serviceRel, l as parseSplit, m as seedsMigration, n as dataMigrationFile, p as seedDeltaNote, r as driftOf, u as partPath } from "./output-files-8lfALMSU.js";
35
- import { c as readSupabaseConfig, n as resolveSchemas } from "./supabase-schemas-RG58AMTu.js";
35
+ import { c as readSupabaseConfig, n as resolveSchemas } from "./supabase-schemas-DOc3cNnf.js";
36
36
  import { o as sqlFiles } from "./files-DAR51W3J.js";
37
37
  import { n as MIGRATION_DIRS } from "./constants-PCJiir_3.js";
38
38
  import { readFileSync } from "node:fs";
@@ -14,14 +14,14 @@ import { l as parseSplit } from "./output-files-8lfALMSU.js";
14
14
  import { f as orSql, g as branchClauses } from "./fields-CKX-qjWb.js";
15
15
  import { b as idTypeOf, f as subjectIdSql, g as parseMembershipsFlag, n as USER_ID_HELPER, x as scopeTypeOf, y as firstScopeType } from "./subject-B7p94Y0s.js";
16
16
  import { a as customRolesOn, r as HELPERS, s as signedIn, t as CUSTOM_ROLES } from "./shared-DnVY767H.js";
17
- import { R as raiseSql, a as interactiveOnlyKeys, c as memoUserSql, g as memoHitList, q as checkSuspension, v as memoizedSetofSql, y as memoizes } from "./interactive-only-CylKSukS.js";
17
+ import { R as raiseSql, a as interactiveOnlyKeys, c as memoUserSql, g as memoHitList, q as checkSuspension, v as memoizedSetofSql, y as memoizes } from "./interactive-only-ad2JJYk8.js";
18
18
  import { i as graphSqlName } from "./names-DwGleRKB.js";
19
- import { $ as graphIdsSql, B as apiKeyClaimSql, E as memoReadsSql, H as apiKeyUnlimitedSql, N as tokenScopesPlan, O as TOKEN_SCOPE_ALLOWS, P as memoReadTriggersSql, Q as closureDepths, R as API_KEY_ALLOWS, U as apiKeysPlan, a as tablelessResources, d as permittedByPermissionHelper, et as graphPlan, i as tableNames, j as tokenScopeUnlimitedSql, k as isTokenScopesSetting, n as resolveVias, o as PERMISSION_HELPERS, t as checkSharedTables } from "./tables-Dyfviku5.js";
20
- import { t as resolveNames } from "./resolve-names-Ch5Ve5l4.js";
21
- import { a as resolveAuthorize, o as assignableRoles, u as roleNames } from "./rbac-Dx88RLxH.js";
22
- import { a as tableFor } from "./compile-BFV2WG67.js";
23
- import { r as rebuildPlan, t as DROPPED_LIST } from "./custom-role-rebuild-QFXiMHqJ.js";
24
- import { r as unsatisfiedKinds, t as ownershipRules } from "./ownership-BuQFLjZ5.js";
19
+ import { $ as graphIdsSql, B as apiKeyClaimSql, E as memoReadsSql, H as apiKeyUnlimitedSql, N as tokenScopesPlan, O as TOKEN_SCOPE_ALLOWS, P as memoReadTriggersSql, Q as closureDepths, R as API_KEY_ALLOWS, U as apiKeysPlan, a as tablelessResources, d as permittedByPermissionHelper, et as graphPlan, i as tableNames, j as tokenScopeUnlimitedSql, k as isTokenScopesSetting, n as resolveVias, o as PERMISSION_HELPERS, t as checkSharedTables } from "./tables-C-DzDqKb.js";
20
+ import { t as resolveNames } from "./resolve-names-B85N2-Ws.js";
21
+ import { a as resolveAuthorize, o as assignableRoles, u as roleNames } from "./rbac-BK_wp3eK.js";
22
+ import { a as tableFor } from "./compile-7tf8hHlu.js";
23
+ import { r as rebuildPlan, t as DROPPED_LIST } from "./custom-role-rebuild-CRz6Ip6J.js";
24
+ import { r as unsatisfiedKinds, t as ownershipRules } from "./ownership-DO5EF2nr.js";
25
25
  // src/cli/rls/custom-role-sync.ts
26
26
  /**
27
27
  * `rls.customRoles.from.sync: 'trigger'`: after-row triggers on the legacy
@@ -18,12 +18,12 @@ import { m as splitUndiffed } from "./ast-Dnm2TOHN.js";
18
18
  import { c as ACTOR_MAY_WRITE, p as readOnlyActorKinds } from "./fields-CKX-qjWb.js";
19
19
  import { C as tenantTypeOf, S as sqlType, f as subjectIdSql, n as USER_ID_HELPER, w as userTypeOf, x as scopeTypeOf, y as firstScopeType } from "./subject-B7p94Y0s.js";
20
20
  import { a as customRolesOn, r as HELPERS, t as CUSTOM_ROLES } from "./shared-DnVY767H.js";
21
- import { G as activeRowSql, N as globalRoleSource, a as interactiveOnlyKeys, q as checkSuspension, t as INTERACTIVE_ALLOWS } from "./interactive-only-CylKSukS.js";
21
+ import { G as activeRowSql, N as globalRoleSource, a as interactiveOnlyKeys, q as checkSuspension, t as INTERACTIVE_ALLOWS } from "./interactive-only-ad2JJYk8.js";
22
22
  import { f as memberForHelper, g as memberOfHelper, h as memberIdsHelper, t as BOOTSTRAP_PERMISSIONS, u as isTeamScope, v as permittedForHelper, y as permittedIdsHelper } from "./names-DwGleRKB.js";
23
- import { G as hookTeamReader, K as hookTeamsHelper, M as tokenScopesOn, O as TOKEN_SCOPE_ALLOWS, R as API_KEY_ALLOWS, V as apiKeyFields, W as HOOK_TEAM_READER, b as ASSIGNMENTS, d as permittedByPermissionHelper, l as permissionKeysForHelper, o as PERMISSION_HELPERS, s as checkName, x as OWNERSHIP } from "./tables-Dyfviku5.js";
24
- import { r as permittedUsersHelper, t as resolveNames } from "./resolve-names-Ch5Ve5l4.js";
25
- import { a as resolveAuthorize, n as hookUri, t as authAdminRead } from "./rbac-Dx88RLxH.js";
26
- import { a as guardedTables, t as ownershipRules } from "./ownership-BuQFLjZ5.js";
23
+ import { G as hookTeamReader, K as hookTeamsHelper, M as tokenScopesOn, O as TOKEN_SCOPE_ALLOWS, R as API_KEY_ALLOWS, V as apiKeyFields, W as HOOK_TEAM_READER, b as ASSIGNMENTS, d as permittedByPermissionHelper, l as permissionKeysForHelper, o as PERMISSION_HELPERS, s as checkName, x as OWNERSHIP } from "./tables-C-DzDqKb.js";
24
+ import { r as permittedUsersHelper, t as resolveNames } from "./resolve-names-B85N2-Ws.js";
25
+ import { a as resolveAuthorize, n as hookUri, t as authAdminRead } from "./rbac-BK_wp3eK.js";
26
+ import { a as guardedTables, t as ownershipRules } from "./ownership-DO5EF2nr.js";
27
27
  import { a as REQUEST_APPROVER_IDS, c as MANAGES, d as checkedManagers, l as MANAGES_FOR, o as approvalChainSql, p as managerEdges, s as APPROVES, u as approvalManagersSql } from "./approval-chain-BEeExHpb.js";
28
28
  import { a as hookMemberships, c as typedSourceUsers, i as entriesSql, l as typedUsers, n as activeSource, o as memberForPlan, r as checkSources, s as positiveInteger, t as activeFromSql } from "./memberships-CDiSsFTu.js";
29
29
  import { r as tableKey, t as decidingColumns } from "./deciding-columns-DBZsrpdD.js";
@@ -6,7 +6,7 @@ import { t as applyFiles } from "./files-DuV7wRim.js";
6
6
  import { n as httpRequest } from "./http-BbX_Ou3_.js";
7
7
  import { i as readJsonFile } from "./files-DAR51W3J.js";
8
8
  import { i as schemaExpression, t as emitPermissionsModule } from "./generate-5_kz2309.js";
9
- import { t as validateOpenapi } from "./schema-DVyxM9xS.js";
9
+ import { t as validateOpenapi } from "./schema-KPTMZVeK.js";
10
10
  import { existsSync, readFileSync } from "node:fs";
11
11
  import { resolve } from "node:path";
12
12
  // src/cli/openapi/import.ts
@@ -1,7 +1,7 @@
1
1
  import { a as decodePreset, g as resolvePreset, i as presetFlags, n as generatePreset, o as encodePreset } from "./preset-BcFDaeqd.js";
2
2
  import { n as CliError } from "./errors-DgLOqc6j.js";
3
3
  import { t as applyFiles } from "./files-DuV7wRim.js";
4
- import { o as nonEmptyOr } from "./output-Bfc3EpB2.js";
4
+ import { o as nonEmptyOr } from "./output-DZS9QWHI.js";
5
5
  import { t as addLine } from "./peer-D77JpXe-.js";
6
6
  import { existsSync } from "node:fs";
7
7
  import { join } from "node:path";