permdock 0.27.0 → 0.27.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-CMghLDUG.js → adoption-scan-Bd-m2Fe_.js} +1 -1
- package/dist/{arazzo-DdJBVrsy.js → arazzo-BGfRLmhk.js} +1 -1
- package/dist/{arazzo-B8heXoYy.js → arazzo-CsifZ8xx.js} +1 -1
- package/dist/{casbin-BHYVxJDD.js → casbin-D8T6IXmf.js} +1 -1
- package/dist/{casbin-D33ZeUf5.js → casbin-n0dqdBSj.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-BmQrcTvx.js → cloud-g-922e2y.js} +1 -1
- package/dist/{codemod-BpjMjxly.js → codemod-9WzZaZsY.js} +1 -1
- package/dist/{codemod-C_NKj01W.js → codemod-BrSNfQG4.js} +2 -2
- package/dist/{compile-Dy3zMRxo.js → compile-DVzlNtwB.js} +1 -1
- package/dist/{completion-CSncf6cX.js → completion-Duu9XUtU.js} +1 -1
- package/dist/{config-xiX3R65I.js → config-B46LCIi1.js} +1 -1
- package/dist/{config-report-D607UDnv.js → config-report-BwSd_ErT.js} +1 -1
- package/dist/{doctor-CoKSRLhf.js → doctor-BaqGN07N.js} +2 -2
- package/dist/{doctor-BhoJiHi0.js → doctor-CNV-I5-C.js} +13 -13
- package/dist/{execute-CyQLisIB.js → execute-DVGgG2j9.js} +1 -1
- package/dist/{gen-CJE3Xud5.js → gen-DovbVJ0i.js} +2 -2
- package/dist/{gen-kind-DGQxmID0.js → gen-kind-DRWg-ta4.js} +1 -1
- package/dist/gen-rrMLA6rz.js +1 -0
- package/dist/{generate-DF6Y8ncI.js → generate-DBmalxoO.js} +1 -1
- package/dist/{generate-options-CLPUvgVW.js → generate-options-WJQoS1Lu.js} +4 -4
- package/dist/{generate-DIZNzMuk.js → generate-yGW045al.js} +10 -11
- package/dist/{hook-sql-FSets5NB.js → hook-sql-FU-vnUkl.js} +3 -3
- package/dist/{import-DemSCI1R.js → import-C7tYaABo.js} +1 -1
- package/dist/{init-BlYRZRnQ.js → init-CN7tPYLP.js} +3 -3
- package/dist/{init-CgoOwXtk.js → init-CntB_X4r.js} +1 -1
- package/dist/{login-TwrSjf6k.js → login-CnR0EQd6.js} +1 -1
- package/dist/{login-CNQJN8Fy.js → login-gwlxVT40.js} +3 -3
- package/dist/{manifest-XIXxXYty.js → manifest-B2syNUwo.js} +30 -30
- package/dist/{openapi-CH9Dh5UX.js → openapi-C4btogJT.js} +1 -1
- package/dist/{openapi-document-CJO6cUS1.js → openapi-document-BqXMCObA.js} +1 -1
- package/dist/{openapi-CrCBEFEm.js → openapi-qD85gUJ5.js} +1 -1
- package/dist/{output-CU7OppLv.js → output-ubzzotuT.js} +1 -1
- package/dist/{ownership-BBQe7GZp.js → ownership-Cw5-N2Ul.js} +1 -1
- package/dist/{policy-FrCL4wDQ.js → policy-C3-aUrcn.js} +1 -1
- package/dist/{policy-bundle-1Znzdxse.js → policy-bundle-COTjSP1d.js} +3 -3
- package/dist/{powersync-pbvC5g6K.js → powersync-3MJa650H.js} +4 -4
- package/dist/{powersync-Y-_z8V5X.js → powersync-BcIQ5rz6.js} +1 -1
- package/dist/{powersync-DVgkPQKM.js → powersync-DzFm4hgt.js} +1 -1
- package/dist/pull-8AsfQuQR.js +1 -0
- package/dist/{pull-CpLyeY2p.js → pull-AjAqYEpz.js} +1 -1
- package/dist/{resolve-names-Ca4ClMU2.js → resolve-names-Bb6tL3EI.js} +1 -1
- package/dist/{rls-DY5ITGzf.js → rls-GYIzJF3m.js} +5 -5
- package/dist/{rls-files-BtaUXVp-.js → rls-files-D1aDyRlu.js} +1 -1
- package/dist/{rls-CmyxiQsS.js → rls-fzNIKj80.js} +1 -1
- package/dist/{run-BoVUFspr.js → run-Cs9E4tsz.js} +2 -2
- package/dist/run-Dordj5mh.js +1 -0
- package/dist/{scan-C4x8UqS7.js → scan-CoG-QiZ6.js} +1 -1
- package/dist/{schema-Zfpbku8U.js → schema-C1J6y5a1.js} +1 -1
- package/dist/{skills-B0cLRZ7w.js → skills-ByTBjMpX.js} +1 -1
- package/dist/{skills-DiGdMvMw.js → skills-CkRRq5tM.js} +1 -1
- package/dist/{supabase-B7Q5bO-P.js → supabase-DlINOaAC.js} +1 -1
- package/dist/supabase-hook-BMBUDtLU.js +2 -0
- package/dist/{supabase-hook-loL2iJVb.js → supabase-hook-CjVG8JJC.js} +1 -1
- package/dist/{tables-C8IwkTHq.js → tables-BYICzaNo.js} +7 -5
- package/dist/{usage-BgNAgZfj.js → usage-CFSPH513.js} +1 -1
- package/dist/usage-DfponlA-.js +1 -0
- package/dist/{usage-llSQehNg.js → usage-EQlT--OM.js} +2 -2
- package/dist/{verify-nMTdEqBB.js → verify-BNhn8P33.js} +3 -3
- package/package.json +1 -1
- package/dist/gen-WzJbAcMJ.js +0 -1
- package/dist/pull-C3_fCkgX.js +0 -1
- package/dist/run-BriRChKE.js +0 -1
- package/dist/supabase-hook-C7FNwQ1p.js +0 -2
- package/dist/usage-D6HUlfvP.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-CsifZ8xx.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 { _ as arazzoFindings } from "./src-D6_T4zd7.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-B2syNUwo.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-CZnlAyZ8.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-n0dqdBSj.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 { a as nonEmptyOr } from "./output-
|
|
2
|
+
import { a as nonEmptyOr } from "./output-ubzzotuT.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-Dordj5mh.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 { i as readConfig } from "../../config-iyy90IOU.js";
|
|
4
|
-
import { t as executeGenerate } from "../../execute-
|
|
4
|
+
import { t as executeGenerate } from "../../execute-DVGgG2j9.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 { t as defineConfig } from "../config-iyy90IOU.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-Cs9E4tsz.js";
|
|
6
6
|
import { n as parsePushedPolicy, r as pushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-rpB6k77P.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-BqXMCObA.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 } = await import("../../powersync-
|
|
21
|
+
const { powersyncFiles } = await import("../../powersync-DzFm4hgt.js");
|
|
22
22
|
return powersyncFiles(source.policy, source.config, task.out).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-D1aDyRlu.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-BMBUDtLU.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-D1aDyRlu.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-BMBUDtLU.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-DRWg-ta4.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-8AsfQuQR.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-0EWFk-4S.js";
|
|
7
7
|
import { c as generateFlags, f as policyFlag, i as dryRunFlag, r as dbUrlFlags, t as checkFlag } from "./flags-C0e-BzGW.js";
|
|
8
|
-
import { n as ROOT } from "./manifest-
|
|
8
|
+
import { n as ROOT } from "./manifest-B2syNUwo.js";
|
|
9
9
|
import { i as visitorKeyTypes, r as parseSync, t as createVisitor } from "./optional-CaQWp9HA.js";
|
|
10
10
|
import { n as defaultSqlCommand } from "./sql-T4GaBh9X.js";
|
|
11
11
|
import { t as beforeFirst } from "./text-D704xHVl.js";
|
|
@@ -7,7 +7,7 @@ const codemod = defineLeaf({
|
|
|
7
7
|
description: "The release to migrate to (0.5)",
|
|
8
8
|
required: true,
|
|
9
9
|
async complete() {
|
|
10
|
-
return (await import("./codemod-
|
|
10
|
+
return (await import("./codemod-9WzZaZsY.js")).codemodVersions();
|
|
11
11
|
}
|
|
12
12
|
}, {
|
|
13
13
|
name: "paths",
|
|
@@ -22,7 +22,7 @@ const codemod = defineLeaf({
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
async run(ctx, { flags, args, rest }) {
|
|
25
|
-
return (await import("./codemod-
|
|
25
|
+
return (await import("./codemod-9WzZaZsY.js")).runCodemod({
|
|
26
26
|
cwd: ctx.cwd,
|
|
27
27
|
version: args["version"],
|
|
28
28
|
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-Bp5khmCG.js";
|
|
13
13
|
import { i as configError } from "./errors-DgLOqc6j.js";
|
|
14
|
-
import { F as capabilityAccessSql, L as apiKeyAllowsCall, S as accessSql, f as requiresSql, k as tokenScopeAllowsCall } from "./tables-
|
|
14
|
+
import { F as capabilityAccessSql, L as apiKeyAllowsCall, S as accessSql, f as requiresSql, k as tokenScopeAllowsCall } from "./tables-BYICzaNo.js";
|
|
15
15
|
import { t as connectPgPool } from "./pg-CA651850.js";
|
|
16
16
|
import { n as interactiveAllowsCall, ut as scopeTable } from "./interactive-only-BZu9rLpa.js";
|
|
17
17
|
import { a as quoteIdent, c as quoteTable, o as quoteLiteral } from "./quote-BKrTBbcH.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as suggestion, o as GLOBAL_FLAGS } from "./args-0EWFk-4S.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-B2syNUwo.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-BwSd_ErT.js");
|
|
14
14
|
return runConfig({
|
|
15
15
|
cwd: ctx.cwd,
|
|
16
16
|
config: ctx.config,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./sources-DnjJPGfb.js";
|
|
2
2
|
import { t as catalogPath } from "./catalog-path-bG0XxHMu.js";
|
|
3
3
|
import { n as guessPermissions, t as barrelFile } from "./collect-BJZsuBW4.js";
|
|
4
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
4
|
+
import { t as DOCS_BASE } from "./manifest-B2syNUwo.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 MIGRATION_DIRS, t as DEFAULT_SENSITIVE_ACTIONS } from "./constants-PCJiir_3.js";
|
|
@@ -10,7 +10,7 @@ const doctor = defineLeaf({
|
|
|
10
10
|
description: "Check codes or groups to run",
|
|
11
11
|
valueHint: "code",
|
|
12
12
|
async complete() {
|
|
13
|
-
const { DOCTOR_CHECKS } = await import("./doctor-
|
|
13
|
+
const { DOCTOR_CHECKS } = await import("./doctor-CNV-I5-C.js");
|
|
14
14
|
return [.../* @__PURE__ */ new Set([...DOCTOR_CHECKS.map(({ code }) => code), ...DOCTOR_CHECKS.flatMap(({ groups }) => groups)])];
|
|
15
15
|
}
|
|
16
16
|
},
|
|
@@ -35,7 +35,7 @@ const doctor = defineLeaf({
|
|
|
35
35
|
if (answer === void 0) return CANCELLED;
|
|
36
36
|
fix = answer;
|
|
37
37
|
}
|
|
38
|
-
return (await import("./doctor-
|
|
38
|
+
return (await import("./doctor-CNV-I5-C.js")).runDoctor({
|
|
39
39
|
cwd: ctx.cwd,
|
|
40
40
|
config: ctx.config,
|
|
41
41
|
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-BJZsuBW4.js";
|
|
4
4
|
import { t as didYouMean } from "./args-0EWFk-4S.js";
|
|
5
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
6
|
-
import { a as nonEmptyOr, r as findingOf } from "./output-
|
|
5
|
+
import { t as DOCS_BASE } from "./manifest-B2syNUwo.js";
|
|
6
|
+
import { a as nonEmptyOr, r as findingOf } from "./output-ubzzotuT.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,25 +11,25 @@ import { n as pgConnector } from "./pg-CA651850.js";
|
|
|
11
11
|
import { a as describeError, i as configError } from "./errors-DgLOqc6j.js";
|
|
12
12
|
import { a as betterSupabaseInstalled, c as workspaceDirs, d as readJson, i as betterSupabaseDefaults, l as filesOf, n as betterSupabaseAuthzVersions, o as betterSupabaseTenantClaim, r as betterSupabaseConfig, t as BETTER_SUPABASE_AUTHZ_TOPIC, u as nodeFiles } from "./better-supabase-DSbs4MtQ.js";
|
|
13
13
|
import { a as loadModule, i as loadConfiguredPolicy, n as asPolicy, s as pickNamed } from "./load-CZnlAyZ8.js";
|
|
14
|
-
import { i as runSkillsInstall } from "./skills-
|
|
14
|
+
import { i as runSkillsInstall } from "./skills-ByTBjMpX.js";
|
|
15
15
|
import { a as supabaseConfig, i as readSupabaseConfig, n as pd045, r as pd074 } from "./supabase-config-mXcggV5I.js";
|
|
16
|
-
import { d as activeSource, g as attrsPlan, i as supabaseHookManifest, n as hooklessDatabase, p as resolveSchemas, r as supabaseDatabaseManifest } from "./hook-sql-
|
|
17
|
-
import { i as pd039, t as hookOut } from "./supabase-hook-
|
|
16
|
+
import { d as activeSource, g as attrsPlan, i as supabaseHookManifest, n as hooklessDatabase, p as resolveSchemas, r as supabaseDatabaseManifest } from "./hook-sql-FU-vnUkl.js";
|
|
17
|
+
import { i as pd039, t as hookOut } from "./supabase-hook-CjVG8JJC.js";
|
|
18
18
|
import { c as outFiles } from "./output-files-DNid6TBl.js";
|
|
19
|
-
import { a as guardedTables, r as unsatisfiedKinds, t as ownershipRules } from "./ownership-
|
|
19
|
+
import { a as guardedTables, r as unsatisfiedKinds, t as ownershipRules } from "./ownership-Cw5-N2Ul.js";
|
|
20
20
|
import { n as MIGRATION_DIRS, t as DEFAULT_SENSITIVE_ACTIONS } from "./constants-PCJiir_3.js";
|
|
21
21
|
import { i as group, n as membershipColumns, o as sqlStatements, r as tableKey } from "./deciding-columns-BnglEKqU.js";
|
|
22
22
|
import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
23
|
-
import { d as rowConditionMessage, f as parseIgnores, p as splitIgnored, s as ROW_CONDITION_FIX, u as helperTablePolicies } from "./verify-
|
|
23
|
+
import { d as rowConditionMessage, f as parseIgnores, p as splitIgnored, s as ROW_CONDITION_FIX, u as helperTablePolicies } from "./verify-BNhn8P33.js";
|
|
24
24
|
import { n as activeTenantMismatch, t as authorizationProvider } from "./provider-BnnFjtWI.js";
|
|
25
25
|
import { t as parseCatalog } from "./parse-nfHSt1Wy.js";
|
|
26
26
|
import "./authz-topic-D8x24Jv-.js";
|
|
27
27
|
import { t as catalogPath } from "./catalog-path-bG0XxHMu.js";
|
|
28
28
|
import { t as canonicalJson } from "./canonical-json-BibZkXtE.js";
|
|
29
29
|
import { c as jsonSchemaOf, i as catalogOAuthScopes } from "./catalog-doc-Bp5khmCG.js";
|
|
30
|
-
import { a as pd010, c as pd014, d as pd038, f as pd041, i as pd008, l as pd015, n as pd001, o as pd011, p as pd057, r as pd007, s as pd013, t as runUsage, u as pd036 } from "./usage-
|
|
30
|
+
import { a as pd010, c as pd014, d as pd038, f as pd041, i as pd008, l as pd015, n as pd001, o as pd011, p as pd057, r as pd007, s as pd013, t as runUsage, u as pd036 } from "./usage-EQlT--OM.js";
|
|
31
31
|
import { c as listPermissions, h as formerKeys } from "./permission-registry-DMYRZVcn.js";
|
|
32
|
-
import { t as resolveNames } from "./resolve-names-
|
|
32
|
+
import { t as resolveNames } from "./resolve-names-Bb6tL3EI.js";
|
|
33
33
|
import "./markers-C-kThnKN.js";
|
|
34
34
|
import { i as qualifySqlTable, s as quoteSqlLiteral } from "./sql-T4GaBh9X.js";
|
|
35
35
|
import { s as parseCredential } from "./credential-ke0KMQeB.js";
|
|
@@ -47,17 +47,17 @@ import { t as membershipSourcesOf } from "./sources-BbSUNmFX.js";
|
|
|
47
47
|
import { n as pd110, r as pd114, t as pd109 } from "./perf-token-dFGVP14-.js";
|
|
48
48
|
import { a as scopeMembershipTable } from "./compile-BUKXrueE.js";
|
|
49
49
|
import { t as policyModel } from "./model-B4EKVHMK.js";
|
|
50
|
-
import { a as roleSources, i as powersyncOut, n as staleFiles, o as scopeSourcesOf, r as powersyncFiles, s as streamOf } from "./powersync-
|
|
50
|
+
import { a as roleSources, i as powersyncOut, n as staleFiles, o as scopeSourcesOf, r as powersyncFiles, s as streamOf } from "./powersync-3MJa650H.js";
|
|
51
51
|
import { t as FIELD_VIEWS } from "./fields-6d1j-q3c.js";
|
|
52
52
|
import { t as policyRowConditionKeys } from "./row-conditions-DwIJocfQ.js";
|
|
53
|
-
import { Z as graphPlan, i as tableNames, r as tableNameOf } from "./tables-
|
|
53
|
+
import { Z as graphPlan, i as tableNames, r as tableNameOf } from "./tables-BYICzaNo.js";
|
|
54
54
|
import { H as byKey, K as graphSqlName } from "./interactive-only-BZu9rLpa.js";
|
|
55
|
-
import { i as tableFor, n as compileGrants, t as commandFor } from "./compile-
|
|
55
|
+
import { i as tableFor, n as compileGrants, t as commandFor } from "./compile-DVzlNtwB.js";
|
|
56
56
|
import { r as contextRefs } from "./conditions-CkHgXoZB.js";
|
|
57
57
|
import { t as CUSTOM_ROLES } from "./shared-BdF5DJDQ.js";
|
|
58
58
|
import { n as isSeeds } from "./seeds-BDTG7xl-.js";
|
|
59
59
|
import { r as FIXTURES_PATH, s as seedPathsLine } from "./seed-sql-CjF7u0aX.js";
|
|
60
|
-
import { i as buildContext, n as isRefusal, o as inheritTargets, t as generateOptions } from "./generate-options-
|
|
60
|
+
import { i as buildContext, n as isRefusal, o as inheritTargets, t as generateOptions } from "./generate-options-WJQoS1Lu.js";
|
|
61
61
|
import { n as legacyHelperNames, r as retirePlan, t as legacyHelperCalls } from "./retire-BNiXnbBR.js";
|
|
62
62
|
import { t as supautilsRejections } from "./supautils-DXzJ2E2Q.js";
|
|
63
63
|
import { isDeepStrictEqual } from "node:util";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as suggestion } from "./args-0EWFk-4S.js";
|
|
2
2
|
import { n as CliError } from "./errors-DgLOqc6j.js";
|
|
3
|
-
import { n as runGen } from "./gen-
|
|
3
|
+
import { n as runGen } from "./gen-DovbVJ0i.js";
|
|
4
4
|
import { c as requirePolicy } from "./load-CZnlAyZ8.js";
|
|
5
5
|
import { n as packageManagerOf } from "./peer-D77JpXe-.js";
|
|
6
6
|
import { i as readSupabaseConfig } from "./supabase-config-mXcggV5I.js";
|
|
@@ -12,7 +12,7 @@ import { c as listPermissions } from "./permission-registry-DMYRZVcn.js";
|
|
|
12
12
|
import { d as scopeList } from "./scopes-B-KX9EI8.js";
|
|
13
13
|
import { o as listPlans, s as listRoles } from "./vocabulary-CE2k7s1a.js";
|
|
14
14
|
import { c as jsonSchemaOf } from "./catalog-doc-Bp5khmCG.js";
|
|
15
|
-
import { t as resolveNames } from "./resolve-names-
|
|
15
|
+
import { t as resolveNames } from "./resolve-names-Bb6tL3EI.js";
|
|
16
16
|
import { t as DESCRIBE_TITLES } from "./describe-B7EosIKA.js";
|
|
17
17
|
import { i as schemaExpression } from "./generate-5_kz2309.js";
|
|
18
18
|
import { existsSync, readFileSync } from "node:fs";
|
|
@@ -397,7 +397,7 @@ function modelDigest(model) {
|
|
|
397
397
|
return createHash("sha256").update(canonicalJson(model)).digest("base64url");
|
|
398
398
|
}
|
|
399
399
|
/**
|
|
400
|
-
* `// @generated by permdock generate zod@0.27.
|
|
400
|
+
* `// @generated by permdock generate zod@0.27.1 from policy.ts sha-256:…; do
|
|
401
401
|
* not edit`.
|
|
402
402
|
*/
|
|
403
403
|
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-rrMLA6rz.js");
|
|
51
51
|
const files = await renderKinds({
|
|
52
52
|
cwd: source.cwd,
|
|
53
53
|
config: source.config,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as renderKinds } from "./gen-DovbVJ0i.js";
|
|
@@ -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-C0e-BzGW.js";
|
|
4
|
-
import { t as executeGenerate } from "./execute-
|
|
4
|
+
import { t as executeGenerate } from "./execute-DVGgG2j9.js";
|
|
5
5
|
import { t as receiptRows } from "./pipeline-CXuwijr2.js";
|
|
6
6
|
// src/cli/commands/generate.ts
|
|
7
7
|
function concurrencyFlag(value) {
|
|
@@ -14,13 +14,13 @@ import { f as orSql, g as branchClauses } from "./fields-6d1j-q3c.js";
|
|
|
14
14
|
import { a as quoteIdent, c as quoteTable, i as qualified, o as quoteLiteral, s as quoteQualified } from "./quote-BKrTBbcH.js";
|
|
15
15
|
import { A as tenantTypeOf, C as parseMembershipsFlag, D as idTypeOf, E as firstScopeType, O as scopeTypeOf, a as customRolesOn, l as USER_ID_HELPER, r as HELPERS, s as signedIn, t as CUSTOM_ROLES, y as subjectIdSql } from "./shared-BdF5DJDQ.js";
|
|
16
16
|
import { H as byKey, I as raiseSql, K as graphSqlName, M as currentKeyExpr, R as rolesTableScope, V as byCodeUnit, _ as memoizes, g as memoizedSetofSql, ht as checkSuspension, i as interactiveOnlyKeys, m as memoHitList, o as memoUserSql } from "./interactive-only-BZu9rLpa.js";
|
|
17
|
-
import { A as tokenScopeUnlimitedSql, B as apiKeyUnlimitedSql, E as memoReadsSql, I as API_KEY_ALLOWS, M as memoReadTriggersSql, O as TOKEN_SCOPE_ALLOWS, R as apiKeyClaimSql, V as apiKeysPlan, X as graphIdsSql, Y as closureDepths, Z as graphPlan, a as tablelessResources, d as permittedByPermissionHelper, i as tableNames, j as tokenScopesPlan, n as resolveVias, o as PERMISSION_HELPERS, t as checkSharedTables } from "./tables-
|
|
18
|
-
import { t as resolveNames } from "./resolve-names-
|
|
17
|
+
import { A as tokenScopeUnlimitedSql, B as apiKeyUnlimitedSql, E as memoReadsSql, I as API_KEY_ALLOWS, M as memoReadTriggersSql, O as TOKEN_SCOPE_ALLOWS, R as apiKeyClaimSql, V as apiKeysPlan, X as graphIdsSql, Y as closureDepths, Z as graphPlan, a as tablelessResources, d as permittedByPermissionHelper, i as tableNames, j as tokenScopesPlan, n as resolveVias, o as PERMISSION_HELPERS, t as checkSharedTables } from "./tables-BYICzaNo.js";
|
|
18
|
+
import { t as resolveNames } from "./resolve-names-Bb6tL3EI.js";
|
|
19
19
|
import { a as roleNames, t as assignableRoles } from "./grants-BzjbUCdR.js";
|
|
20
20
|
import { a as resolveAuthorize } from "./rbac-B-49toAp.js";
|
|
21
|
-
import { r as unsatisfiedKinds, t as ownershipRules } from "./ownership-
|
|
21
|
+
import { r as unsatisfiedKinds, t as ownershipRules } from "./ownership-Cw5-N2Ul.js";
|
|
22
22
|
import { t as membershipSourcesOf } from "./sources-BbSUNmFX.js";
|
|
23
|
-
import { i as tableFor } from "./compile-
|
|
23
|
+
import { i as tableFor } from "./compile-DVzlNtwB.js";
|
|
24
24
|
// src/cli/rls/custom-role-rebuild.ts
|
|
25
25
|
const PREFIX = "PermDock CLI";
|
|
26
26
|
/** A column of the roles-table row `r`. */
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { c as listPermissions, u as renamedKeys } from "./permission-registry-DMYRZVcn.js";
|
|
2
2
|
import { t as policyRowConditionKeys } from "./row-conditions-DwIJocfQ.js";
|
|
3
3
|
import { a as describeError, i as configError, o as exitCodeOfError } from "./errors-DgLOqc6j.js";
|
|
4
|
-
import { D as seedSql, J as closureBackfillSql, N as guardAuthAdminGrants, P as unguardAuthAdminGrants, Q as graphSql, S as accessSql, T as helpersSql, c as permissionHelpersSql, d as permittedByPermissionHelper, i as tableNames,
|
|
4
|
+
import { D as seedSql, J as closureBackfillSql, N as guardAuthAdminGrants, P as unguardAuthAdminGrants, Q as graphSql, S as accessSql, T as helpersSql, c as permissionHelpersSql, d as permittedByPermissionHelper, i as tableNames, r as tableNameOf, s as checkName, u as permissionKeysHelper } from "./tables-BYICzaNo.js";
|
|
5
5
|
import { i as qualifySqlTable } from "./sql-T4GaBh9X.js";
|
|
6
|
-
import { c as indexesSql, i as tableFor, l as pruneIndexTargets, n as compileGrants, r as inferredCommand, s as indexTargets, u as readTableIndexFacts } from "./compile-
|
|
7
|
-
import { a as CANDIDATES, c as rowHelpersSql, d as rebuildPlan, i as buildContext, l as rowSetSql, n as isRefusal, o as inheritTargets, r as splitsPart, s as levelKeys, t as generateOptions, u as DROPPED_LIST } from "./generate-options-
|
|
6
|
+
import { c as indexesSql, i as tableFor, l as pruneIndexTargets, n as compileGrants, r as inferredCommand, s as indexTargets, u as readTableIndexFacts } from "./compile-DVzlNtwB.js";
|
|
7
|
+
import { a as CANDIDATES, c as rowHelpersSql, d as rebuildPlan, i as buildContext, l as rowSetSql, n as isRefusal, o as inheritTargets, r as splitsPart, s as levelKeys, t as generateOptions, u as DROPPED_LIST } from "./generate-options-WJQoS1Lu.js";
|
|
8
8
|
import { t as policyFromCatalog } from "./policy-from-catalog-YKaTeaco.js";
|
|
9
|
-
import { t as fetchProjectPolicy } from "./pull-
|
|
9
|
+
import { t as fetchProjectPolicy } from "./pull-AjAqYEpz.js";
|
|
10
10
|
import { c as requirePolicy } from "./load-CZnlAyZ8.js";
|
|
11
11
|
import { t as compact } from "./compact-C4LFuqbW.js";
|
|
12
|
-
import { a as nonEmptyOr } from "./output-
|
|
12
|
+
import { a as nonEmptyOr } from "./output-ubzzotuT.js";
|
|
13
13
|
import { i as INDEXES_MARKER, n as GRANTS_MARKER, o as SEEDS_MARKER, t as BACKFILL_MARKER } from "./markers-C-kThnKN.js";
|
|
14
14
|
import { G as graphHelper, H as byKey, K as graphSqlName, U as BOOTSTRAP_PERMISSIONS, lt as scopeSources, rt as memberIdsHelper, st as permittedIdsHelper, ut as scopeTable } from "./interactive-only-BZu9rLpa.js";
|
|
15
15
|
import { a as quoteIdent, c as quoteTable, i as qualified$1, o as quoteLiteral, s as quoteQualified } from "./quote-BKrTBbcH.js";
|
|
16
16
|
import { D as idTypeOf, O as scopeTypeOf, _ as subjectClaimJsonSql, c as SESSION_LIVE_HELPER, g as sessionLiveHelperSql, o as rootName, r as HELPERS, t as CUSTOM_ROLES, y as subjectIdSql } from "./shared-BdF5DJDQ.js";
|
|
17
|
-
import { a as supabaseHookSql, c as asideAuthzReceive, h as declarativeSql, p as resolveSchemas, t as grantsLabel, u as approvalsSql } from "./hook-sql-
|
|
18
|
-
import { i as assignmentSql, n as ownershipSql } from "./ownership-
|
|
17
|
+
import { a as supabaseHookSql, c as asideAuthzReceive, h as declarativeSql, p as resolveSchemas, t as grantsLabel, u as approvalsSql } from "./hook-sql-FU-vnUkl.js";
|
|
18
|
+
import { i as assignmentSql, n as ownershipSql } from "./ownership-Cw5-N2Ul.js";
|
|
19
19
|
import { p as scopeField } from "./tenancy-B5Xxt9Sc.js";
|
|
20
20
|
import { i as collectGrants, n as breakGlassHolder, r as breakGlassKey } from "./grants-BzjbUCdR.js";
|
|
21
21
|
import { t as supautilsRejections } from "./supautils-DXzJ2E2Q.js";
|
|
22
22
|
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-6d1j-q3c.js";
|
|
23
23
|
import { l as isFieldRelation } from "./resource-relations-Ck5sjYQR.js";
|
|
24
24
|
import { c as rootScope } from "./scopes-B-KX9EI8.js";
|
|
25
|
-
import { n as permissionHoldersSql } from "./resolve-names-
|
|
25
|
+
import { n as permissionHoldersSql } from "./resolve-names-Bb6tL3EI.js";
|
|
26
26
|
import { i as rbacScaffold } from "./rbac-B-49toAp.js";
|
|
27
27
|
import { i as dateAt } from "./time-r0CKBm57.js";
|
|
28
28
|
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-DNid6TBl.js";
|
|
@@ -1198,7 +1198,6 @@ function bootstrapPermissionsSql(ctx, keys, grants) {
|
|
|
1198
1198
|
const platform = Object.entries(grants.get("global") ?? {}).filter(([key, effects]) => effects.allow.length > 0 && keys.includes(key)).map(([key]) => key).toSorted();
|
|
1199
1199
|
const memberIds = qualified$1(ctx, memberIdsHelper(root));
|
|
1200
1200
|
const held = qualified$1(ctx, checkName(permissionKeysHelper(root)));
|
|
1201
|
-
const has = qualified$1(ctx, PERMISSION_HELPERS.has);
|
|
1202
1201
|
return `-- the caller's permissions in better-supabase's compact BootstrapPermissionsWire: the policy's keys once, a bitset per ${root} the caller is a member of (p_tenant alone when given) and one for platform
|
|
1203
1202
|
create or replace function ${fn}(p_tenant text default null)
|
|
1204
1203
|
returns jsonb
|
|
@@ -1216,8 +1215,8 @@ as $$
|
|
|
1216
1215
|
where p_tenant is null or t.id::text = p_tenant
|
|
1217
1216
|
),
|
|
1218
1217
|
pdk_p(n) as (
|
|
1219
|
-
select k.n from pdk_k k
|
|
1220
|
-
where k.key = any(${textArray(platform)})
|
|
1218
|
+
select k.n from ${held}(null::${scopeTypeOf(ctx, root)}) h(key) join pdk_k k on k.key = h.key
|
|
1219
|
+
where k.key = any(${textArray(platform)})
|
|
1221
1220
|
)
|
|
1222
1221
|
select jsonb_strip_nulls(jsonb_build_object(
|
|
1223
1222
|
'apiVersion', 1,
|
|
@@ -16,12 +16,12 @@ import { c as ACTOR_MAY_WRITE, p as readOnlyActorKinds } from "./fields-6d1j-q3c
|
|
|
16
16
|
import { a as quoteIdent, c as quoteTable, i as qualified$1, o as quoteLiteral, s as quoteQualified } from "./quote-BKrTBbcH.js";
|
|
17
17
|
import { A as tenantTypeOf, E as firstScopeType, O as scopeTypeOf, a as customRolesOn, j as userTypeOf, k as sqlType, l as USER_ID_HELPER, r as HELPERS, y as subjectIdSql } from "./shared-BdF5DJDQ.js";
|
|
18
18
|
import { J as hasMemberFor, Q as isTeamScope, U as BOOTSTRAP_PERMISSIONS, X as hasPermittedUsers, at as memberRoleOf, et as memberForHelper, ht as checkSuspension, i as interactiveOnlyKeys, it as memberOfHelper, j as globalRoleSource, nt as memberForTable, ot as permittedForHelper, pt as activeRowSql, rt as memberIdsHelper, st as permittedIdsHelper, t as INTERACTIVE_ALLOWS, tt as memberForSources } from "./interactive-only-BZu9rLpa.js";
|
|
19
|
-
import { H as HOOK_TEAM_READER, I as API_KEY_ALLOWS, O as TOKEN_SCOPE_ALLOWS, U as hookTeamReader, W as hookTeamsHelper, b as ASSIGNMENTS, d as permittedByPermissionHelper, l as permissionKeysForHelper, o as PERMISSION_HELPERS, s as checkName, x as OWNERSHIP, z as apiKeyFields } from "./tables-
|
|
20
|
-
import { r as permittedUsersHelper, t as resolveNames } from "./resolve-names-
|
|
19
|
+
import { H as HOOK_TEAM_READER, I as API_KEY_ALLOWS, O as TOKEN_SCOPE_ALLOWS, U as hookTeamReader, W as hookTeamsHelper, b as ASSIGNMENTS, d as permittedByPermissionHelper, l as permissionKeysForHelper, o as PERMISSION_HELPERS, s as checkName, x as OWNERSHIP, z as apiKeyFields } from "./tables-BYICzaNo.js";
|
|
20
|
+
import { r as permittedUsersHelper, t as resolveNames } from "./resolve-names-Bb6tL3EI.js";
|
|
21
21
|
import { a as supabaseConfig, t as declarativeSchemaDir } from "./supabase-config-mXcggV5I.js";
|
|
22
22
|
import { a as resolveAuthorize, n as hookUri, t as authAdminRead } from "./rbac-B-49toAp.js";
|
|
23
23
|
import { a as splitUndiffed, r as tableKey, t as decidingColumns } from "./deciding-columns-BnglEKqU.js";
|
|
24
|
-
import { a as guardedTables, t as ownershipRules } from "./ownership-
|
|
24
|
+
import { a as guardedTables, t as ownershipRules } from "./ownership-Cw5-N2Ul.js";
|
|
25
25
|
import { t as membershipSourcesOf } from "./sources-BbSUNmFX.js";
|
|
26
26
|
// src/cli/claims-schema.ts
|
|
27
27
|
/**
|
|
@@ -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-C1J6y5a1.js";
|
|
10
10
|
import { existsSync, readFileSync } from "node:fs";
|
|
11
11
|
import { resolve } from "node:path";
|
|
12
12
|
// src/cli/openapi/import.ts
|
|
@@ -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-CntB_X4r.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-CntB_X4r.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-CntB_X4r.js");
|
|
91
91
|
return runPreset("url", args["code"] ?? "");
|
|
92
92
|
}
|
|
93
93
|
});
|
|
@@ -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 { a as nonEmptyOr } from "./output-
|
|
4
|
+
import { a as nonEmptyOr } from "./output-ubzzotuT.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";
|
|
@@ -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 { a as nonEmptyOr } from "./output-
|
|
6
|
+
import { a as nonEmptyOr } from "./output-ubzzotuT.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";
|
|
@@ -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-CnR0EQd6.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-CnR0EQd6.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-CnR0EQd6.js");
|
|
59
59
|
return runWhoami({
|
|
60
60
|
url: given(flags.url),
|
|
61
61
|
json: ctx.json,
|