permdock 0.37.0 → 0.38.1
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.
- package/dist/{adoption-scan-sufK4R53.js → adoption-scan-CkkOzkXs.js} +1 -1
- package/dist/{arazzo-D0ctRNBU.js → arazzo-BKYLAE5e.js} +1 -1
- package/dist/{arazzo-BxtTsEK2.js → arazzo-n8as0lFp.js} +1 -1
- package/dist/{bsb-access-tags-LCaE48SK.js → bsb-access-tags-DaGRSYnv.js} +1 -1
- package/dist/{casbin-CkLvGuUb.js → casbin-BlQqoRlv.js} +1 -1
- package/dist/{casbin-CMEY_GT4.js → casbin-BmYeMFeI.js} +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cli/generate/watch-worker.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/cli/plugins/app.js +1 -1
- package/dist/cli/plugins/openapi.js +1 -1
- package/dist/cli/plugins/powersync.js +1 -1
- package/dist/cli/plugins/rls.js +1 -1
- package/dist/cli/plugins/schemas.js +1 -1
- package/dist/cli/plugins/supabase-hook.js +1 -1
- package/dist/cli/plugins/supabase.js +2 -2
- package/dist/cli/plugins/ui.js +1 -1
- package/dist/{cloud-N4IUVluH.js → cloud-DxDQff7G.js} +1 -1
- package/dist/{codemod-D5a5oDJX.js → codemod-CX9EGBJw.js} +1 -1
- package/dist/{codemod-C9SQqhNG.js → codemod-DjcAtHr9.js} +4 -4
- package/dist/{compile-BFV2WG67.js → compile-BWOrvhGt.js} +3 -3
- package/dist/{completion-BUWG1FGo.js → completion-9B7fZWsn.js} +1 -1
- package/dist/{config-B3Bc6Tly.js → config-BgBDv1UW.js} +1 -1
- package/dist/{config-report-3IhYuH4v.js → config-report-oYAr9Opz.js} +1 -1
- package/dist/{context-CNI2jibq.js → context-DntIOpzS.js} +1 -1
- package/dist/{custom-role-rebuild-QFXiMHqJ.js → custom-role-rebuild-BwM6hBqt.js} +1 -1
- package/dist/{doctor-DP7HwXw_.js → doctor-CDSxgnut.js} +2 -2
- package/dist/{doctor-DhpDQ5C6.js → doctor-Dqh8AzIx.js} +17 -17
- package/dist/{execute-g-nMgY4t.js → execute-CUGaCy_9.js} +3 -3
- package/dist/gen-CNYlckFE.js +1 -0
- package/dist/{gen-CTRqv1H2.js → gen-D85_gUOz.js} +2 -2
- package/dist/{gen-kind-DLnQ-vCe.js → gen-kind-Bi0dtNoV.js} +1 -1
- package/dist/{generate-DcPnvokU.js → generate-BnOSZLka.js} +11 -11
- package/dist/{generate-dbQzpEqb.js → generate-C8kAhef2.js} +3 -3
- package/dist/{generate-options-4jvPn7w3.js → generate-options-eMjRViev.js} +7 -7
- package/dist/{hook-sql-3yPtwas6.js → hook-sql-BQcxbOzi.js} +65 -12
- package/dist/{import-DEUiWePf.js → import-BLN-HGJG.js} +1 -1
- package/dist/{init-CUviJnno.js → init-B8bPTGMb.js} +3 -3
- package/dist/{init-DqOKr99S.js → init-BQnRbzUb.js} +1 -1
- package/dist/{inspect-functions-Uv3Ndkty.js → inspect-functions-GXdyPFwI.js} +1 -1
- package/dist/{interactive-only-CylKSukS.js → interactive-only-C9NQJXpi.js} +45 -15
- package/dist/{keys-CA3SdBHQ.js → keys-QhAlAjXf.js} +1 -1
- package/dist/{login-mcxQxTAL.js → login-DnVKv2ib.js} +1 -1
- package/dist/{login-BMONKzI_.js → login-kQOIJoFN.js} +3 -3
- package/dist/{manifest-tO5SjSGH.js → manifest-CMh8sAAH.js} +34 -34
- package/dist/{measure-r811lN7F.js → measure-DJl28Whs.js} +1 -1
- package/dist/{model-wt3wihiH.js → model-DQQYg8UW.js} +1 -1
- package/dist/{openapi-BZHc6R7A.js → openapi-CuyzmD9h.js} +2 -2
- package/dist/{openapi-CNWuAQZi.js → openapi-D7kRYqWu.js} +1 -1
- package/dist/{openapi-document-CHJI74v_.js → openapi-document-ClyLB0-z.js} +1 -1
- package/dist/{output-Bfc3EpB2.js → output-ONUzppLo.js} +1 -1
- package/dist/{ownership-BuQFLjZ5.js → ownership-CCgncSLb.js} +2 -2
- package/dist/{pipeline-DW7cy40F.js → pipeline-DGFc6y6x.js} +2 -2
- package/dist/{policy-DTk6NZm-.js → policy-AWd-ccJJ.js} +1 -1
- package/dist/{policy-bundle-C7Hz9Rrs.js → policy-bundle-rC5_X9hX.js} +3 -3
- package/dist/{powersync-CoP_nlGj.js → powersync-C1OW6iVd.js} +6 -6
- package/dist/{powersync-CeuhNT0R.js → powersync-C84aHECl.js} +1 -1
- package/dist/{powersync-LpKFefiH.js → powersync-DW7seEgS.js} +1 -1
- package/dist/{prune-config-C0uSbf1I.js → prune-config-DeTUhG2J.js} +4 -4
- package/dist/{pull-A1SkxAyb.js → pull-C851tQak.js} +1 -1
- package/dist/pull-CylkuBGR.js +1 -0
- package/dist/{rbac-Dx88RLxH.js → rbac-ByuGspKZ.js} +1 -1
- package/dist/{rename-RnOp8vDq.js → rename-BgfR3xB9.js} +2 -2
- package/dist/{resolve-names-Ch5Ve5l4.js → resolve-names-DmX503uX.js} +2 -2
- package/dist/{rls-DgYAJpVW.js → rls-DTN_-HX2.js} +3 -3
- package/dist/{rls-CHJbaZxj.js → rls-JSxuWcf-.js} +7 -7
- package/dist/{rls-files-RZ7PGrzg.js → rls-files-BsJsEeJ_.js} +1 -1
- package/dist/{run-CbJPONx5.js → run-BgNlYtQJ.js} +2 -2
- package/dist/run-C7nX-hkR.js +1 -0
- package/dist/{scan-DjTW-y6E.js → scan-pHPntFbs.js} +1 -1
- package/dist/{schema-DVyxM9xS.js → schema-DJd7Gq_p.js} +1 -1
- package/dist/{skills-BdmjI4D2.js → skills-D4ItrS0F.js} +1 -1
- package/dist/{skills-BYc8rmHF.js → skills-txCdqGns.js} +1 -1
- package/dist/{supabase-BAuqWNj3.js → supabase-D-kxyoaX.js} +2 -2
- package/dist/supabase-hook-BTiZ8LTJ.js +2 -0
- package/dist/{supabase-hook-BbwsceID.js → supabase-hook-DDxDjlOU.js} +5 -5
- package/dist/{supabase-schemas-RG58AMTu.js → supabase-schemas-D6ezN5Ln.js} +1 -1
- package/dist/{table-reads-Glf0BHSE.js → table-reads-DHB56kFZ.js} +1 -1
- package/dist/{table-reads--NupdCFw.js → table-reads-Doh_Egx2.js} +1 -1
- package/dist/{tables-Dyfviku5.js → tables-E-dIHUN_.js} +4 -4
- package/dist/{tenant-check-Bfd4hotj.js → tenant-check-DGfE7Sns.js} +3 -3
- package/dist/{usage-7Hwk_akY.js → usage-CX_wmL5W.js} +2 -2
- package/dist/usage-DcVP-SFj.js +1 -0
- package/dist/{usage-nZP7EeRj.js → usage-DymSoYQZ.js} +1 -1
- package/dist/{verify-DOCJgGlw.js → verify-CHlmYg2d.js} +3 -3
- package/dist/{watch-DYsWhTvO.js → watch-CkL1iuKJ.js} +1 -1
- package/package.json +1 -1
- package/dist/gen-D-orrO2e.js +0 -1
- package/dist/pull-CNMED72E.js +0 -1
- package/dist/run-iPVAxorh.js +0 -1
- package/dist/supabase-hook-CObLSH20.js +0 -2
- package/dist/usage-Bwl8YAmq.js +0 -1
|
@@ -21,7 +21,7 @@ const check = defineLeaf({
|
|
|
21
21
|
...permissionsFlag
|
|
22
22
|
},
|
|
23
23
|
async run(ctx, { flags }) {
|
|
24
|
-
return (await import("./arazzo-
|
|
24
|
+
return (await import("./arazzo-n8as0lFp.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-
|
|
3
|
+
import { t as DOCS_BASE } from "./manifest-CMh8sAAH.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-
|
|
8
|
+
import { i as keyReasons, n as tenantCheck, r as keyReason, t as svals } from "./tenant-check-DGfE7Sns.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";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as applyFiles } from "./files-DuV7wRim.js";
|
|
2
|
-
import { o as nonEmptyOr } from "./output-
|
|
2
|
+
import { o as nonEmptyOr } from "./output-ONUzppLo.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";
|
|
@@ -16,7 +16,7 @@ const casbinImport = defineLeaf({
|
|
|
16
16
|
...outFlag
|
|
17
17
|
},
|
|
18
18
|
async run(ctx, { flags }) {
|
|
19
|
-
const { runCasbinImport } = await import("./casbin-
|
|
19
|
+
const { runCasbinImport } = await import("./casbin-BlQqoRlv.js");
|
|
20
20
|
return runCasbinImport({
|
|
21
21
|
cwd: ctx.cwd,
|
|
22
22
|
model: given(flags.model),
|
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-
|
|
14
|
+
import("../run-C7nX-hkR.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-
|
|
4
|
+
import { t as executeGenerate } from "../../execute-CUGaCy_9.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-
|
|
5
|
+
import { t as run } from "../run-BgNlYtQJ.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 = {
|
package/dist/cli/plugins/app.js
CHANGED
|
@@ -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-
|
|
35
|
+
const { openapiDocument } = await import("../../openapi-document-ClyLB0-z.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-
|
|
21
|
+
const { powersyncFiles, publicationPath } = await import("../../powersync-DW7seEgS.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
|
package/dist/cli/plugins/rls.js
CHANGED
|
@@ -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-
|
|
22
|
+
const { filesForRls } = await import("../../rls-files-BsJsEeJ_.js");
|
|
23
23
|
return filesForRls(task, options, source);
|
|
24
24
|
}
|
|
25
25
|
});
|
|
@@ -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-
|
|
21
|
+
const { runSupabase } = await import("../../supabase-hook-BTiZ8LTJ.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-
|
|
40
|
+
const { filesForRls } = await import("../../rls-files-BsJsEeJ_.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-
|
|
47
|
+
const { runSupabase } = await import("../../supabase-hook-BTiZ8LTJ.js");
|
|
48
48
|
const hookOptions = hook === false || hook === void 0 ? {} : hook;
|
|
49
49
|
const outcome = await runSupabase({
|
|
50
50
|
cwd: source.cwd,
|
package/dist/cli/plugins/ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as kindPlugin } from "../../gen-kind-
|
|
1
|
+
import { t as kindPlugin } from "../../gen-kind-Bi0dtNoV.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-
|
|
73
|
+
return (await import("./pull-CylkuBGR.js")).runCloudPull({
|
|
74
74
|
cwd: ctx.cwd,
|
|
75
75
|
config: ctx.config,
|
|
76
76
|
url: given(flags.url),
|
|
@@ -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-
|
|
8
|
+
import { n as ROOT } from "./manifest-CMh8sAAH.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";
|
|
@@ -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-
|
|
11
|
+
return (await import("./codemod-CX9EGBJw.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-
|
|
36
|
+
return (await import("./prune-config-DeTUhG2J.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-
|
|
44
|
+
if (args["version"] === "bsb-access-tags") return (await import("./bsb-access-tags-DaGRSYnv.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-
|
|
65
|
+
return (await import("./codemod-CX9EGBJw.js")).runCodemod({
|
|
66
66
|
cwd: ctx.cwd,
|
|
67
67
|
version: args["version"],
|
|
68
68
|
paths: rest,
|
|
@@ -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-
|
|
14
|
+
import { A as tokenScopeAllowsCall, L as capabilityAccessSql, S as accessSql, f as requiresSql, z as apiKeyAllowsCall } from "./tables-E-dIHUN_.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-
|
|
18
|
+
import { r as interactiveAllowsCall } from "./interactive-only-C9NQJXpi.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-
|
|
21
|
+
import { c as breakGlassKey, f as compileConditionSql, l as collectGrants, m as sqlFunctionNames, p as contextRefs, s as breakGlassHolder } from "./rbac-ByuGspKZ.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-
|
|
3
|
+
import { a as resolve } from "./manifest-CMh8sAAH.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-
|
|
13
|
+
const { runConfig } = await import("./config-report-oYAr9Opz.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-
|
|
4
|
+
import { t as DOCS_BASE } from "./manifest-CMh8sAAH.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-
|
|
2
|
+
import { c as readSupabaseConfig } from "./supabase-schemas-D6ezN5Ln.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-
|
|
9
|
+
import { B as rolesTableScope, P as currentKeyExpr } from "./interactive-only-C9NQJXpi.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-
|
|
14
|
+
const { DOCTOR_CHECKS } = await import("./doctor-Dqh8AzIx.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-
|
|
49
|
+
return (await import("./doctor-Dqh8AzIx.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-
|
|
6
|
-
import { o as nonEmptyOr, r as findingOf } from "./output-
|
|
5
|
+
import { t as DOCS_BASE } from "./manifest-CMh8sAAH.js";
|
|
6
|
+
import { o as nonEmptyOr, r as findingOf } from "./output-ONUzppLo.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-
|
|
14
|
+
import { i as runSkillsInstall } from "./skills-D4ItrS0F.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-
|
|
17
|
-
import { f as attrsPlan, i as supabaseHookManifest, n as hooklessDatabase, r as supabaseDatabaseManifest } from "./hook-sql-
|
|
18
|
-
import { i as pd039, t as hookOut } from "./supabase-hook-
|
|
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-D6ezN5Ln.js";
|
|
17
|
+
import { f as attrsPlan, i as supabaseHookManifest, n as hooklessDatabase, r as supabaseDatabaseManifest } from "./hook-sql-BQcxbOzi.js";
|
|
18
|
+
import { i as pd039, t as hookOut } from "./supabase-hook-DDxDjlOU.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-
|
|
23
|
+
import { a as guardedTables, r as unsatisfiedKinds, t as ownershipRules } from "./ownership-CCgncSLb.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-
|
|
28
|
+
import { o as splitIgnored } from "./verify-CHlmYg2d.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-
|
|
39
|
+
import { a as pd015, i as pd014, n as ADAPTER_SPECIFIERS, o as runtimeSpecifiers, r as pd001, t as runUsage } from "./usage-CX_wmL5W.js";
|
|
40
40
|
import { c as listPermissions, h as formerKeys } from "./permission-registry-DstT40VS.js";
|
|
41
|
-
import { t as resolveNames } from "./resolve-names-
|
|
41
|
+
import { t as resolveNames } from "./resolve-names-DmX503uX.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-
|
|
57
|
+
import { a as ownedObjects, i as inReservedDir, o as shownKey, r as generatedByPermdock, s as withoutOwned, t as policyModel } from "./model-DQQYg8UW.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-
|
|
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-C1OW6iVd.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-
|
|
67
|
+
import { X as policyBundle, et as graphPlan, i as tableNames, r as tableNameOf } from "./tables-E-dIHUN_.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-
|
|
70
|
-
import { p as contextRefs } from "./rbac-
|
|
69
|
+
import { a as tableFor, n as commandFor, o as unmappedActions, r as compileGrants, t as INFERRED_VERBS } from "./compile-BWOrvhGt.js";
|
|
70
|
+
import { p as contextRefs } from "./rbac-ByuGspKZ.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-
|
|
76
|
+
import { i as buildContext, n as isRefusal, o as inheritTargets, t as generateOptions } from "./generate-options-eMjRViev.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
|
|
81
|
+
import { r as manifestTableReads, s as sharedFunctionsOf, t as committedManifest } from "./table-reads-Doh_Egx2.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-
|
|
4
|
+
import { r as runGen } from "./gen-D85_gUOz.js";
|
|
5
5
|
import { c as requirePolicy } from "./load-m7jmit3y.js";
|
|
6
|
-
import { t as projectContext } from "./context-
|
|
7
|
-
import { r as runGenerate } from "./pipeline-
|
|
6
|
+
import { t as projectContext } from "./context-DntIOpzS.js";
|
|
7
|
+
import { r as runGenerate } from "./pipeline-DGFc6y6x.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-D85_gUOz.js";
|
|
@@ -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-
|
|
16
|
+
import { t as resolveNames } from "./resolve-names-DmX503uX.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.
|
|
404
|
+
* `// @generated by permdock generate zod@0.38.1 from policy.ts sha-256:…; do
|
|
405
405
|
* not edit`.
|
|
406
406
|
*/
|
|
407
407
|
function generatedHeader(kind, info) {
|
|
@@ -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-
|
|
50
|
+
const { renderKinds } = await import("./gen-CNYlckFE.js");
|
|
51
51
|
const files = await renderKinds({
|
|
52
52
|
cwd: source.cwd,
|
|
53
53
|
config: source.config,
|
|
@@ -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-
|
|
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-E-dIHUN_.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-
|
|
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-
|
|
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-BWOrvhGt.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-eMjRViev.js";
|
|
13
13
|
import { t as policyFromCatalog } from "./policy-from-catalog-BohzTN3J.js";
|
|
14
|
-
import { t as fetchProjectPolicy } from "./pull-
|
|
14
|
+
import { t as fetchProjectPolicy } from "./pull-C851tQak.js";
|
|
15
15
|
import { c as requirePolicy } from "./load-m7jmit3y.js";
|
|
16
|
-
import { o as nonEmptyOr } from "./output-
|
|
16
|
+
import { o as nonEmptyOr } from "./output-ONUzppLo.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-
|
|
22
|
-
import { i as assignmentSql, n as ownershipSql } from "./ownership-
|
|
23
|
-
import { r as rebuildPlan, t as DROPPED_LIST } from "./custom-role-rebuild-
|
|
21
|
+
import { a as supabaseHookSql, c as asideAuthzReceive, d as declarativeSql, t as grantsLabel, u as approvalsSql } from "./hook-sql-BQcxbOzi.js";
|
|
22
|
+
import { i as assignmentSql, n as ownershipSql } from "./ownership-CCgncSLb.js";
|
|
23
|
+
import { r as rebuildPlan, t as DROPPED_LIST } from "./custom-role-rebuild-BwM6hBqt.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-
|
|
25
|
+
import { c as breakGlassKey, i as rbacScaffold, l as collectGrants, s as breakGlassHolder } from "./rbac-ByuGspKZ.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-
|
|
31
|
+
import { n as permissionHoldersSql } from "./resolve-names-DmX503uX.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-
|
|
35
|
+
import { c as readSupabaseConfig, n as resolveSchemas } from "./supabase-schemas-D6ezN5Ln.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";
|
|
@@ -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-
|
|
5
|
-
import { n as receiptRows } from "./pipeline-
|
|
4
|
+
import { t as executeGenerate } from "./execute-CUGaCy_9.js";
|
|
5
|
+
import { n as receiptRows } from "./pipeline-DGFc6y6x.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-
|
|
27
|
+
const { watchGenerate } = await import("./watch-CkL1iuKJ.js");
|
|
28
28
|
return watchGenerate(ctx, {
|
|
29
29
|
...policy === void 0 ? {} : { policy },
|
|
30
30
|
only: flags.only,
|
|
@@ -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-
|
|
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-C9NQJXpi.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-
|
|
20
|
-
import { t as resolveNames } from "./resolve-names-
|
|
21
|
-
import { a as resolveAuthorize, o as assignableRoles, u as roleNames } from "./rbac-
|
|
22
|
-
import { a as tableFor } from "./compile-
|
|
23
|
-
import { r as rebuildPlan, t as DROPPED_LIST } from "./custom-role-rebuild-
|
|
24
|
-
import { r as unsatisfiedKinds, t as ownershipRules } from "./ownership-
|
|
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-E-dIHUN_.js";
|
|
20
|
+
import { t as resolveNames } from "./resolve-names-DmX503uX.js";
|
|
21
|
+
import { a as resolveAuthorize, o as assignableRoles, u as roleNames } from "./rbac-ByuGspKZ.js";
|
|
22
|
+
import { a as tableFor } from "./compile-BWOrvhGt.js";
|
|
23
|
+
import { r as rebuildPlan, t as DROPPED_LIST } from "./custom-role-rebuild-BwM6hBqt.js";
|
|
24
|
+
import { r as unsatisfiedKinds, t as ownershipRules } from "./ownership-CCgncSLb.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
|