permdock 0.35.0 → 0.35.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-oaPsvHSN.js → adoption-scan-B_jVJgMK.js} +1 -1
- package/dist/{arazzo-1oDMApA_.js → arazzo-CKsNFj_5.js} +1 -1
- package/dist/{arazzo-B2PszcDL.js → arazzo-D-fDq8Dv.js} +1 -1
- package/dist/{bsb-access-tags-uDuwPUbT.js → bsb-access-tags-1oVQZWKp.js} +1 -1
- package/dist/{casbin-vtIUd-6L.js → casbin-CWfeuRmI.js} +1 -1
- package/dist/{casbin-DrdS0vLy.js → casbin-DqiTIceJ.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-BQnIR-SS.js → cloud-CvA_LeOt.js} +1 -1
- package/dist/{codemod-rv5XSBNw.js → codemod-CA0MQoG4.js} +1 -1
- package/dist/{codemod-C0OHCnaj.js → codemod-DduTfuWM.js} +4 -4
- package/dist/{compile-BRDpja_Y.js → compile-D-BULiHE.js} +1 -1
- package/dist/{completion-Dgjdte2-.js → completion-DXdFnwLY.js} +1 -1
- package/dist/{config-anQ9E37F.js → config-BWYfHYvW.js} +1 -1
- package/dist/{config-report-C43BSFHY.js → config-report-pg-66Bdr.js} +1 -1
- package/dist/{doctor-sAqU02Fx.js → doctor-B55XfWdG.js} +2 -2
- package/dist/{doctor-GnMgqGO8.js → doctor-Cs0Xl46A.js} +14 -14
- package/dist/{execute-xF5fwAel.js → execute-Vfo2CAhv.js} +1 -1
- package/dist/{gen-djPw1RS-.js → gen-M_5UU5Ck.js} +2 -2
- package/dist/{gen-kind-Vhq_ZIZm.js → gen-kind-DLz0P-TB.js} +1 -1
- package/dist/gen-vr1udb1p.js +1 -0
- package/dist/{generate-BcH-uL0z.js → generate-CNkkKAL-.js} +9 -9
- package/dist/{generate-CYHeuPq8.js → generate-GCDLA8vW.js} +1 -1
- package/dist/{generate-options-DDSeUTFU.js → generate-options-O3mVjjcG.js} +4 -4
- package/dist/{hook-sql-EksAnz-T.js → hook-sql-y0CJBLJr.js} +3 -3
- package/dist/{import-C45gc74U.js → import-CQSJ6xcN.js} +1 -1
- package/dist/{init-B6aZxzd7.js → init-BucxAxRw.js} +1 -1
- package/dist/{init-CCBVeyW8.js → init-Cfb0VX3T.js} +3 -3
- package/dist/{inspect-functions-BUACOlgS.js → inspect-functions-CzrQtRDb.js} +1 -1
- package/dist/{login-d631Tpa9.js → login-CU89mk0U.js} +3 -3
- package/dist/{login-BnE2iUUA.js → login-qYcM0hKh.js} +1 -1
- package/dist/{manifest-1w67doim.js → manifest-Bu9gUrI0.js} +32 -32
- package/dist/{measure-BKsYdwKd.js → measure-C_Z0a7B8.js} +1 -1
- package/dist/{openapi-CN2Oq9zN.js → openapi-DIhS8iHN.js} +1 -1
- package/dist/{openapi-BnKSxOrh.js → openapi-ZIlGKUwQ.js} +1 -1
- package/dist/{openapi-document-XnGRbWBb.js → openapi-document-D5IhoJo0.js} +1 -1
- package/dist/{output-dO4bArCS.js → output-DIjUJioq.js} +1 -1
- package/dist/{ownership-CSdLGGfW.js → ownership-Bmt-z0rF.js} +1 -1
- package/dist/{policy-CTn-9VQm.js → policy-D8RxFeZO.js} +1 -1
- package/dist/{policy-bundle-BHd1dqU9.js → policy-bundle-DC_xq2R5.js} +3 -3
- package/dist/{powersync-CZkZgVyi.js → powersync-BlfO3_jN.js} +1 -1
- package/dist/{powersync-Jj57J-X8.js → powersync-CgCMKvaU.js} +1 -1
- package/dist/{powersync-DJ7dY-Vf.js → powersync-CiQ97gzz.js} +4 -4
- package/dist/{prune-config-Bwz4wNQA.js → prune-config-CbhJ_XvD.js} +2 -2
- package/dist/{pull-Cj_ngsuu.js → pull-DLyCr-7L.js} +1 -1
- package/dist/pull-IQPhpX4y.js +1 -0
- package/dist/{resolve-names-CuEhEQyB.js → resolve-names-BR6PiCrx.js} +1 -1
- package/dist/{rls-BDtyip5c.js → rls-BfUIMNeV.js} +5 -5
- package/dist/{rls-DcqSn7b2.js → rls-CdQW7v9D.js} +3 -3
- package/dist/{rls-files-CRRtjXxG.js → rls-files-68-nKfmG.js} +1 -1
- package/dist/{run-DvbrPkgt.js → run-B2Axta4z.js} +2 -2
- package/dist/run-CfvcMtPK.js +1 -0
- package/dist/{scan-CmfWbAbz.js → scan-DNzOELYT.js} +1 -1
- package/dist/{schema-CO3btX_O.js → schema-CJc23R4a.js} +1 -1
- package/dist/{skills-C28GUaJC.js → skills-DTpSMQRg.js} +1 -1
- package/dist/{skills-CA8GfQxQ.js → skills-TqrLrmuv.js} +1 -1
- package/dist/{supabase-DXEcFJGM.js → supabase-MitbozF6.js} +2 -2
- package/dist/supabase-hook-DZk7PV7Z.js +2 -0
- package/dist/{supabase-hook-D-ybV98H.js → supabase-hook-RFLW2YPX.js} +3 -3
- package/dist/{table-reads-BoF_58yh.js → table-reads-D0M_X-pj.js} +1 -1
- package/dist/{table-reads-BcceuV7h.js → table-reads-Dso5UyeT.js} +1 -1
- package/dist/{tables-BTXmioCH.js → tables-DrrGtayG.js} +6 -1
- package/dist/{tenant-check-DNbm8OiV.js → tenant-check-D6fnfQBP.js} +3 -3
- package/dist/{usage-BGuSrwiW.js → usage-Cv4WDRWv.js} +2 -2
- package/dist/{usage-D5QwWiNp.js → usage-DBaJfCZB.js} +1 -1
- package/dist/usage-DOcCnIdW.js +1 -0
- package/dist/{verify-GWeopgxU.js → verify-DT9WS_Gm.js} +3 -3
- package/package.json +1 -1
- package/dist/gen-BPYFr_tZ.js +0 -1
- package/dist/pull-BOC-0kJV.js +0 -1
- package/dist/run-DOP1UKWw.js +0 -1
- package/dist/supabase-hook-C_ViYz3g.js +0 -2
- package/dist/usage-CW6PfRfC.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { y as arazzoFindings } from "./src-BXDohWNO.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-Bu9gUrI0.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";
|
|
@@ -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-CKsNFj_5.js")).runArazzo({
|
|
25
25
|
cwd: ctx.cwd,
|
|
26
26
|
config: ctx.config,
|
|
27
27
|
doc: given(flags.doc),
|
|
@@ -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-D6fnfQBP.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-
|
|
19
|
+
const { runCasbinImport } = await import("./casbin-DqiTIceJ.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-
|
|
2
|
+
import { o as nonEmptyOr } from "./output-DIjUJioq.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-
|
|
14
|
+
import("../run-CfvcMtPK.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-Vfo2CAhv.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-B2Axta4z.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-D5IhoJo0.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-BlfO3_jN.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-68-nKfmG.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-DZk7PV7Z.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-68-nKfmG.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-DZk7PV7Z.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-DLz0P-TB.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-IQPhpX4y.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-Bu9gUrI0.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-CA0MQoG4.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-CbhJ_XvD.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-1oVQZWKp.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-CA0MQoG4.js")).runCodemod({
|
|
66
66
|
cwd: ctx.cwd,
|
|
67
67
|
version: args["version"],
|
|
68
68
|
paths: rest,
|
|
@@ -11,7 +11,7 @@ import { l as isConditionRef, o as hasConditionOp } from "./refs-Cix9Zjis.js";
|
|
|
11
11
|
import { t as requiresApproval } from "./approval-required-B-R4Yw3J.js";
|
|
12
12
|
import { c as jsonSchemaOf } from "./catalog-doc-D4g3nyFB.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-DrrGtayG.js";
|
|
15
15
|
import { t as connectPgPool } from "./pg-DmS5ITHu.js";
|
|
16
16
|
import { S as scopeTable } from "./names-DBxKx2bz.js";
|
|
17
17
|
import { a as quoteIdent, c as quoteTable, o as quoteLiteral } from "./quote-LNaBdCGA.js";
|
|
@@ -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-Bu9gUrI0.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-pg-66Bdr.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-CPimbkC5.js";
|
|
4
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
4
|
+
import { t as DOCS_BASE } from "./manifest-Bu9gUrI0.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";
|
|
@@ -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-Cs0Xl46A.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-Cs0Xl46A.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-CPimbkC5.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-Bu9gUrI0.js";
|
|
6
|
+
import { o as nonEmptyOr, r as findingOf } from "./output-DIjUJioq.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-DTpSMQRg.js";
|
|
15
15
|
import { i as withSchemaDefaults, n as schemaDefaults, r as schemaTables } from "./schema-tables-Ba9LE_XB.js";
|
|
16
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-CVhpyYB6.js";
|
|
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-
|
|
17
|
+
import { f as attrsPlan, i as supabaseHookManifest, n as hooklessDatabase, r as supabaseDatabaseManifest } from "./hook-sql-y0CJBLJr.js";
|
|
18
|
+
import { i as pd039, t as hookOut } from "./supabase-hook-RFLW2YPX.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-BHiyBxQZ.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-Bmt-z0rF.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-DT9WS_Gm.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-BwqzED5h.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-D4g3nyFB.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-Cv4WDRWv.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-BR6PiCrx.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";
|
|
@@ -59,26 +59,26 @@ import { a as pd114, i as pd110, r as pd109 } from "./claims-size-BUhCWS88.js";
|
|
|
59
59
|
import { t as importFromApp } from "./app-peer-BnMh5lqz.js";
|
|
60
60
|
import { c as rlsReport, o as policiesFor } from "./report-XdCm1y_J.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-CiQ97gzz.js";
|
|
63
63
|
import { t as parseProgram } from "./program-CvarkLMS.js";
|
|
64
64
|
import { t as FIELD_VIEWS } from "./fields-CwFej4gp.js";
|
|
65
65
|
import { n as restatedDefaults } from "./resolve-config-Cu_mE2wt.js";
|
|
66
66
|
import { t as policyRowConditionKeys } from "./row-conditions-DwIJocfQ.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-DrrGtayG.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-
|
|
69
|
+
import { a as tableFor, n as commandFor, o as unmappedActions, r as compileGrants, t as INFERRED_VERBS } from "./compile-D-BULiHE.js";
|
|
70
70
|
import { p as contextRefs } from "./rbac-DbyaaNLa.js";
|
|
71
71
|
import { c as rowConditionMessage, o as helperTablePolicies, r as ROW_CONDITION_FIX } from "./helper-calls-B5MOl99d.js";
|
|
72
72
|
import { i as graphSqlName } from "./names-DBxKx2bz.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-O3mVjjcG.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-C85NuESf.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-D0M_X-pj.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,7 +1,7 @@
|
|
|
1
1
|
import { n as budgetBreaches, t as breachText } from "./budgets-hi-ecgEd.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-M_5UU5Ck.js";
|
|
5
5
|
import { c as requirePolicy } from "./load-m7jmit3y.js";
|
|
6
6
|
import { t as projectContext } from "./context-rioF4fQl.js";
|
|
7
7
|
import { r as runGenerate } from "./pipeline-BAGSNnct.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-D4g3nyFB.js";
|
|
16
|
-
import { t as resolveNames } from "./resolve-names-
|
|
16
|
+
import { t as resolveNames } from "./resolve-names-BR6PiCrx.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.35.
|
|
404
|
+
* `// @generated by permdock generate zod@0.35.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-vr1udb1p.js");
|
|
51
51
|
const files = await renderKinds({
|
|
52
52
|
cwd: source.cwd,
|
|
53
53
|
config: source.config,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { n as renderKinds } from "./gen-M_5UU5Ck.js";
|
|
@@ -6,20 +6,20 @@ 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-DrrGtayG.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-D-BULiHE.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-O3mVjjcG.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-DLyCr-7L.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-DIjUJioq.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-DBxKx2bz.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-
|
|
21
|
+
import { a as supabaseHookSql, c as asideAuthzReceive, d as declarativeSql, t as grantsLabel, u as approvalsSql } from "./hook-sql-y0CJBLJr.js";
|
|
22
|
+
import { i as assignmentSql, n as ownershipSql } from "./ownership-Bmt-z0rF.js";
|
|
23
23
|
import { r as rebuildPlan, t as DROPPED_LIST } from "./custom-role-rebuild-wzN8pqDk.js";
|
|
24
24
|
import { p as scopeField } from "./tenancy-B5Xxt9Sc.js";
|
|
25
25
|
import { c as breakGlassKey, i as rbacScaffold, l as collectGrants, s as breakGlassHolder } from "./rbac-DbyaaNLa.js";
|
|
@@ -28,7 +28,7 @@ import { a as fieldViewsSql, c as ACTOR_MAY_WRITE, d as assemblePolicies, i as f
|
|
|
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-BR6PiCrx.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";
|
|
@@ -160,7 +160,7 @@ function unquote(name) {
|
|
|
160
160
|
}
|
|
161
161
|
function reasonOf(name) {
|
|
162
162
|
if (name === "permdock_custom_role_name_guard") return "customRoleWrites.roles: a tenant role cannot take a declared or shared role's name";
|
|
163
|
-
if (name === "permdock_custom_role_system_guard") return "customRoleWrites.roles: a signed-in caller cannot mark a role as a system role or rename one";
|
|
163
|
+
if (name === "permdock_custom_role_system_guard") return "customRoleWrites.roles: a signed-in caller cannot mark a tenant role as a system role or rename one";
|
|
164
164
|
if (name === "permdock_custom_role_cascade") return "customRoleWrites.roles: a rename or delete of a role carries its grants";
|
|
165
165
|
if (name.startsWith("permdock_sync_custom_role_guard")) return "customRoles.from.sync: a signed-in caller writes only entries they may hand out";
|
|
166
166
|
if (name.startsWith("permdock_sync_custom_role")) return "customRoles.from.sync: each write to the legacy table rebuilds the role's grants";
|
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
4
|
+
import { t as executeGenerate } from "./execute-Vfo2CAhv.js";
|
|
5
5
|
import { n as receiptRows } from "./pipeline-BAGSNnct.js";
|
|
6
6
|
// src/cli/commands/generate.ts
|
|
7
7
|
function concurrencyFlag(value) {
|
|
@@ -16,12 +16,12 @@ import { b as idTypeOf, f as subjectIdSql, g as parseMembershipsFlag, n as USER_
|
|
|
16
16
|
import { a as customRolesOn, r as HELPERS, s as signedIn, t as CUSTOM_ROLES } from "./shared-DnVY767H.js";
|
|
17
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-Bbq9e61G.js";
|
|
18
18
|
import { i as graphSqlName } from "./names-DBxKx2bz.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-
|
|
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-DrrGtayG.js";
|
|
20
|
+
import { t as resolveNames } from "./resolve-names-BR6PiCrx.js";
|
|
21
21
|
import { a as resolveAuthorize, o as assignableRoles, u as roleNames } from "./rbac-DbyaaNLa.js";
|
|
22
|
-
import { a as tableFor } from "./compile-
|
|
22
|
+
import { a as tableFor } from "./compile-D-BULiHE.js";
|
|
23
23
|
import { r as rebuildPlan, t as DROPPED_LIST } from "./custom-role-rebuild-wzN8pqDk.js";
|
|
24
|
-
import { r as unsatisfiedKinds, t as ownershipRules } from "./ownership-
|
|
24
|
+
import { r as unsatisfiedKinds, t as ownershipRules } from "./ownership-Bmt-z0rF.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
|
|
@@ -20,10 +20,10 @@ import { C as tenantTypeOf, S as sqlType, f as subjectIdSql, n as USER_ID_HELPER
|
|
|
20
20
|
import { a as customRolesOn, r as HELPERS, t as CUSTOM_ROLES } from "./shared-DnVY767H.js";
|
|
21
21
|
import { G as activeRowSql, N as globalRoleSource, a as interactiveOnlyKeys, q as checkSuspension, t as INTERACTIVE_ALLOWS } from "./interactive-only-Bbq9e61G.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-DBxKx2bz.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-
|
|
24
|
-
import { r as permittedUsersHelper, t as resolveNames } from "./resolve-names-
|
|
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-DrrGtayG.js";
|
|
24
|
+
import { r as permittedUsersHelper, t as resolveNames } from "./resolve-names-BR6PiCrx.js";
|
|
25
25
|
import { a as resolveAuthorize, n as hookUri, t as authAdminRead } from "./rbac-DbyaaNLa.js";
|
|
26
|
-
import { a as guardedTables, t as ownershipRules } from "./ownership-
|
|
26
|
+
import { a as guardedTables, t as ownershipRules } from "./ownership-Bmt-z0rF.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-CNoAlsma.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-
|
|
9
|
+
import { t as validateOpenapi } from "./schema-CJc23R4a.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-
|
|
4
|
+
import { o as nonEmptyOr } from "./output-DIjUJioq.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";
|
|
@@ -48,7 +48,7 @@ const init = defineLeaf({
|
|
|
48
48
|
...forceFlag
|
|
49
49
|
},
|
|
50
50
|
async run(ctx, { flags }) {
|
|
51
|
-
const [{ runInit }, { packageManagerOf }] = await Promise.all([import("./init-
|
|
51
|
+
const [{ runInit }, { packageManagerOf }] = await Promise.all([import("./init-BucxAxRw.js"), import("./peer-BWTpSLs2.js")]);
|
|
52
52
|
const agent = await packageManagerOf(ctx.cwd);
|
|
53
53
|
const selection = {
|
|
54
54
|
archetype: flags.archetype,
|
|
@@ -79,7 +79,7 @@ const presetDecode = defineLeaf({
|
|
|
79
79
|
positionals: presetCode,
|
|
80
80
|
flags: {},
|
|
81
81
|
async run(_ctx, { args }) {
|
|
82
|
-
const { runPreset } = await import("./init-
|
|
82
|
+
const { runPreset } = await import("./init-BucxAxRw.js");
|
|
83
83
|
return runPreset("decode", args["code"] ?? "");
|
|
84
84
|
}
|
|
85
85
|
});
|
|
@@ -87,7 +87,7 @@ const presetUrl = defineLeaf({
|
|
|
87
87
|
positionals: presetCode,
|
|
88
88
|
flags: {},
|
|
89
89
|
async run(_ctx, { args }) {
|
|
90
|
-
const { runPreset } = await import("./init-
|
|
90
|
+
const { runPreset } = await import("./init-BucxAxRw.js");
|
|
91
91
|
return runPreset("url", args["code"] ?? "");
|
|
92
92
|
}
|
|
93
93
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as configuredTableReads, o as functionShares } from "./table-reads-
|
|
1
|
+
import { n as configuredTableReads, o as functionShares } from "./table-reads-D0M_X-pj.js";
|
|
2
2
|
// src/cli/rls/inspect-functions.ts
|
|
3
3
|
/**
|
|
4
4
|
* `permdock supabase inspect --functions <pattern>`: for each function the
|
|
@@ -27,7 +27,7 @@ const login = defineLeaf({
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
async run(ctx, { flags }) {
|
|
30
|
-
const { runLogin } = await import("./login-
|
|
30
|
+
const { runLogin } = await import("./login-qYcM0hKh.js");
|
|
31
31
|
return runLogin({
|
|
32
32
|
cwd: ctx.cwd,
|
|
33
33
|
url: given(flags.url),
|
|
@@ -43,7 +43,7 @@ const login = defineLeaf({
|
|
|
43
43
|
const logout = defineLeaf({
|
|
44
44
|
flags: { ...urlFlag },
|
|
45
45
|
async run(ctx, { flags }) {
|
|
46
|
-
const { runLogout } = await import("./login-
|
|
46
|
+
const { runLogout } = await import("./login-qYcM0hKh.js");
|
|
47
47
|
return runLogout({
|
|
48
48
|
url: given(flags.url),
|
|
49
49
|
json: ctx.json,
|
|
@@ -55,7 +55,7 @@ const logout = defineLeaf({
|
|
|
55
55
|
const whoami = defineLeaf({
|
|
56
56
|
flags: { ...urlFlag },
|
|
57
57
|
async run(ctx, { flags }) {
|
|
58
|
-
const { runWhoami } = await import("./login-
|
|
58
|
+
const { runWhoami } = await import("./login-qYcM0hKh.js");
|
|
59
59
|
return runWhoami({
|
|
60
60
|
url: given(flags.url),
|
|
61
61
|
json: ctx.json,
|
|
@@ -3,7 +3,7 @@ import { i as postForm, r as parseToken, s as runDeviceFlow } from "./device-f3J
|
|
|
3
3
|
import { i as writeCredentials, n as deleteCredentials, r as readCredentials, t as credentialsPath } from "./storage-BhGDhsXm.js";
|
|
4
4
|
import { n as CliError } from "./errors-DgLOqc6j.js";
|
|
5
5
|
import { n as httpRequest } from "./http-BbX_Ou3_.js";
|
|
6
|
-
import { o as nonEmptyOr } from "./output-
|
|
6
|
+
import { o as nonEmptyOr } from "./output-DIjUJioq.js";
|
|
7
7
|
import { c as READ_SCOPES, d as issuerMetadata, i as credentialsInsideRepository, l as cloudUrl, n as cliRuntime, r as credentialStorage, s as CLI_CLIENT_ID, t as CREDENTIAL_SERVICE } from "./auth-WHKYWtnS.js";
|
|
8
8
|
import { n as randomToken, t as pkce } from "./pkce-DdsRBK7n.js";
|
|
9
9
|
import { spawn } from "node:child_process";
|