permdock 0.27.1 → 0.27.3
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-Bd-m2Fe_.js → adoption-scan-CHMU7gnE.js} +1 -1
- package/dist/{arazzo-CsifZ8xx.js → arazzo-D1ZHjjea.js} +1 -1
- package/dist/{arazzo-BGfRLmhk.js → arazzo-DuXmPMSu.js} +1 -1
- package/dist/{casbin-n0dqdBSj.js → casbin-Bf9jkDMy.js} +1 -1
- package/dist/{casbin-D8T6IXmf.js → casbin-CwLL5QnK.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-g-922e2y.js → cloud-nXogJ7e1.js} +1 -1
- package/dist/{codemod-9WzZaZsY.js → codemod-Bp2bKwKe.js} +1 -1
- package/dist/{codemod-BrSNfQG4.js → codemod-DwL1E5of.js} +2 -2
- package/dist/{compile-DVzlNtwB.js → compile-NM1GOb2q.js} +4 -4
- package/dist/{completion-Duu9XUtU.js → completion-BQovwoTx.js} +1 -1
- package/dist/{conditions-CkHgXoZB.js → conditions-VlAMOm20.js} +1 -1
- package/dist/{config-B46LCIi1.js → config-DSyn7r1l.js} +1 -1
- package/dist/{config-report-BwSd_ErT.js → config-report--ae2r_MI.js} +1 -1
- package/dist/{doctor-BaqGN07N.js → doctor-CIV882xS.js} +2 -2
- package/dist/{doctor-CNV-I5-C.js → doctor-kbRrZD3Q.js} +17 -17
- package/dist/{execute-DVGgG2j9.js → execute-CE8P72Ez.js} +3 -3
- package/dist/{gen-DovbVJ0i.js → gen-CuEt0o6p.js} +2 -2
- package/dist/gen-DbPS6a4x.js +1 -0
- package/dist/{gen-kind-DRWg-ta4.js → gen-kind-BLIhHgD3.js} +1 -1
- package/dist/{generate-DBmalxoO.js → generate-B-Hlc08D.js} +3 -3
- package/dist/{generate-yGW045al.js → generate-Dl75LKbW.js} +12 -12
- package/dist/{generate-options-WJQoS1Lu.js → generate-options-BUh621MW.js} +12 -8
- package/dist/{grants-BzjbUCdR.js → grants-C7bGZFPa.js} +1 -1
- package/dist/{hook-sql-FU-vnUkl.js → hook-sql-Bxc_YRrd.js} +6 -6
- package/dist/{import-C7tYaABo.js → import-BKTq4cxW.js} +1 -1
- package/dist/{init-CN7tPYLP.js → init-B8GG9vjg.js} +3 -3
- package/dist/{init-CntB_X4r.js → init-D4YO8hVa.js} +1 -1
- package/dist/{interactive-only-BZu9rLpa.js → interactive-only-CQsgMc1E.js} +5 -1
- package/dist/{login-CnR0EQd6.js → login-Bl-SuTJA.js} +1 -1
- package/dist/{login-gwlxVT40.js → login-OJdYkueH.js} +3 -3
- package/dist/{manifest-B2syNUwo.js → manifest-BY8lK4l4.js} +30 -30
- package/dist/{model-B4EKVHMK.js → model-BkQLENu6.js} +1 -1
- package/dist/{openapi-C4btogJT.js → openapi-CvAjVdK7.js} +1 -1
- package/dist/{openapi-qD85gUJ5.js → openapi-Dpetebzt.js} +1 -1
- package/dist/{openapi-document-BqXMCObA.js → openapi-document-7K7rofeR.js} +1 -1
- package/dist/{output-ubzzotuT.js → output-Cq0neio3.js} +1 -1
- package/dist/{ownership-Cw5-N2Ul.js → ownership-CHND0y5L.js} +2 -2
- package/dist/{pipeline-CXuwijr2.js → pipeline-CGctXudd.js} +1 -1
- package/dist/{policy-C3-aUrcn.js → policy-DzTU5233.js} +1 -1
- package/dist/{policy-bundle-COTjSP1d.js → policy-bundle-Dafv5nOx.js} +3 -3
- package/dist/{powersync-BcIQ5rz6.js → powersync-BfMIjRqo.js} +1 -1
- package/dist/{powersync-3MJa650H.js → powersync-DNeS5JrT.js} +6 -6
- package/dist/{powersync-DzFm4hgt.js → powersync-IrDmJbqx.js} +1 -1
- package/dist/{pull-AjAqYEpz.js → pull-DOwvDn98.js} +1 -1
- package/dist/pull-Qh7JjiO7.js +1 -0
- package/dist/{rbac-B-49toAp.js → rbac-CygtQB85.js} +1 -1
- package/dist/{resolve-names-Bb6tL3EI.js → resolve-names-D0hNHBp5.js} +2 -2
- package/dist/{rls-fzNIKj80.js → rls-BDmebOIp.js} +1 -1
- package/dist/{rls-GYIzJF3m.js → rls-BjEp-1Ob.js} +6 -6
- package/dist/{rls-files-D1aDyRlu.js → rls-files-kGXtfslQ.js} +1 -1
- package/dist/run-CdxQr6w8.js +1 -0
- package/dist/{run-Cs9E4tsz.js → run-DFe2I0T7.js} +2 -2
- package/dist/{scan-CoG-QiZ6.js → scan-DGCpdOuR.js} +1 -1
- package/dist/{schema-C1J6y5a1.js → schema-wummOGn9.js} +1 -1
- package/dist/{skills-ByTBjMpX.js → skills-BQ9bEjPV.js} +1 -1
- package/dist/{skills-CkRRq5tM.js → skills-BntnICiJ.js} +1 -1
- package/dist/{supabase-DlINOaAC.js → supabase-CjUsihRL.js} +1 -1
- package/dist/{supabase-config-mXcggV5I.js → supabase-config-CbK7xX77.js} +1 -1
- package/dist/supabase-hook-b7tej2Vw.js +2 -0
- package/dist/{supabase-hook-CjVG8JJC.js → supabase-hook-nGLUvn5x.js} +3 -3
- package/dist/{tables-BYICzaNo.js → tables-CbVpFhC6.js} +16 -5
- package/dist/usage-BAUV1SYl.js +1 -0
- package/dist/{usage-EQlT--OM.js → usage-C1NKRxBJ.js} +2 -2
- package/dist/{usage-CFSPH513.js → usage-L1G1zlwz.js} +1 -1
- package/dist/{verify-BNhn8P33.js → verify-KX4Ohvs_.js} +3 -3
- package/dist/{watch-BecZtEdU.js → watch-DNIGANvR.js} +1 -1
- package/package.json +1 -1
- package/dist/gen-rrMLA6rz.js +0 -1
- package/dist/pull-8AsfQuQR.js +0 -1
- package/dist/run-Dordj5mh.js +0 -1
- package/dist/supabase-hook-BMBUDtLU.js +0 -2
- package/dist/usage-DfponlA-.js +0 -1
|
@@ -1551,13 +1551,17 @@ grant execute on function ${fn}(text) to authenticated;`;
|
|
|
1551
1551
|
return `-- Interactive-only permissions: only a user's own session holds them; an API key, an OAuth client or an act chain never does, whatever its scopes
|
|
1552
1552
|
create or replace function ${fn}(p_grant text)
|
|
1553
1553
|
returns boolean
|
|
1554
|
-
language
|
|
1554
|
+
language plpgsql
|
|
1555
1555
|
stable
|
|
1556
1556
|
security definer
|
|
1557
1557
|
set search_path = ''
|
|
1558
1558
|
as $$
|
|
1559
|
+
begin
|
|
1560
|
+
return (
|
|
1559
1561
|
select split_part(split_part(p_grant, '#', 1), '@', 1) <> all (array[${keys.map(quoteLiteral).join(", ")}]::text[])
|
|
1560
1562
|
or ${interactiveSessionSql(ctx)}
|
|
1563
|
+
);
|
|
1564
|
+
end;
|
|
1561
1565
|
$$;
|
|
1562
1566
|
${grants}`;
|
|
1563
1567
|
}
|
|
@@ -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-Cq0neio3.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-Bl-SuTJA.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-Bl-SuTJA.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-Bl-SuTJA.js");
|
|
59
59
|
return runWhoami({
|
|
60
60
|
url: given(flags.url),
|
|
61
61
|
json: ctx.json,
|
|
@@ -30,20 +30,20 @@ const SECTIONS = [
|
|
|
30
30
|
docs: "init",
|
|
31
31
|
effects: ["files"],
|
|
32
32
|
config: false,
|
|
33
|
-
load: async () => (await import("./init-
|
|
33
|
+
load: async () => (await import("./init-B8GG9vjg.js")).init
|
|
34
34
|
}),
|
|
35
35
|
group("preset", "Decode a preset code, or print its permdock.com/create link", "preset", [leaf("decode", "Print what a preset code holds", {
|
|
36
36
|
examples: ["permdock preset decode p1AQIDBAc"],
|
|
37
37
|
docs: "preset",
|
|
38
38
|
effects: [],
|
|
39
39
|
config: false,
|
|
40
|
-
load: async () => (await import("./init-
|
|
40
|
+
load: async () => (await import("./init-B8GG9vjg.js")).presetDecode
|
|
41
41
|
}), leaf("url", "Print the permdock.com/create link that opens a code", {
|
|
42
42
|
examples: ["permdock preset url p1AQIDBAc"],
|
|
43
43
|
docs: "preset",
|
|
44
44
|
effects: [],
|
|
45
45
|
config: false,
|
|
46
|
-
load: async () => (await import("./init-
|
|
46
|
+
load: async () => (await import("./init-B8GG9vjg.js")).presetUrl
|
|
47
47
|
})]),
|
|
48
48
|
group("skills", "Install, update or list the PermDock Agent Skills", "skills", [
|
|
49
49
|
leaf("install", "Copy the Agent Skills into the agent folders", {
|
|
@@ -55,21 +55,21 @@ const SECTIONS = [
|
|
|
55
55
|
docs: "skills",
|
|
56
56
|
effects: ["files"],
|
|
57
57
|
config: false,
|
|
58
|
-
load: async () => (await import("./skills-
|
|
58
|
+
load: async () => (await import("./skills-BntnICiJ.js")).install
|
|
59
59
|
}),
|
|
60
60
|
leaf("update", "Replace installed skills with this version's", {
|
|
61
61
|
examples: ["permdock skills update"],
|
|
62
62
|
docs: "skills",
|
|
63
63
|
effects: ["files"],
|
|
64
64
|
config: false,
|
|
65
|
-
load: async () => (await import("./skills-
|
|
65
|
+
load: async () => (await import("./skills-BntnICiJ.js")).update
|
|
66
66
|
}),
|
|
67
67
|
leaf("list", "List the skills and where each is installed", {
|
|
68
68
|
examples: ["permdock skills list"],
|
|
69
69
|
docs: "skills",
|
|
70
70
|
effects: [],
|
|
71
71
|
config: false,
|
|
72
|
-
load: async () => (await import("./skills-
|
|
72
|
+
load: async () => (await import("./skills-BntnICiJ.js")).list
|
|
73
73
|
})
|
|
74
74
|
]),
|
|
75
75
|
leaf("doctor", "Check a PermDock installation and print a fix for each finding", {
|
|
@@ -83,7 +83,7 @@ const SECTIONS = [
|
|
|
83
83
|
effects: ["files", "database:read"],
|
|
84
84
|
config: true,
|
|
85
85
|
findings: true,
|
|
86
|
-
load: async () => (await import("./doctor-
|
|
86
|
+
load: async () => (await import("./doctor-CIV882xS.js")).doctor
|
|
87
87
|
}),
|
|
88
88
|
leaf("completion", "Print the shell completion script for bash, zsh or fish", {
|
|
89
89
|
examples: ["permdock completion zsh > ~/.zfunc/_permdock", "eval \"$(permdock completion bash)\""],
|
|
@@ -91,7 +91,7 @@ const SECTIONS = [
|
|
|
91
91
|
effects: [],
|
|
92
92
|
config: false,
|
|
93
93
|
shellOutput: true,
|
|
94
|
-
load: async () => (await import("./completion-
|
|
94
|
+
load: async () => (await import("./completion-BQovwoTx.js")).completion
|
|
95
95
|
})
|
|
96
96
|
]
|
|
97
97
|
},
|
|
@@ -125,7 +125,7 @@ const SECTIONS = [
|
|
|
125
125
|
docs: "generate",
|
|
126
126
|
effects: ["files"],
|
|
127
127
|
config: true,
|
|
128
|
-
load: async () => (await import("./generate-
|
|
128
|
+
load: async () => (await import("./generate-B-Hlc08D.js")).generate
|
|
129
129
|
}),
|
|
130
130
|
leaf("usage", "Report unused, ungranted and role-less permissions and conditions on undeclared fields", {
|
|
131
131
|
examples: ["permdock usage", "permdock usage --fail-on warning"],
|
|
@@ -133,7 +133,7 @@ const SECTIONS = [
|
|
|
133
133
|
effects: [],
|
|
134
134
|
config: true,
|
|
135
135
|
findings: true,
|
|
136
|
-
load: async () => (await import("./usage-
|
|
136
|
+
load: async () => (await import("./usage-L1G1zlwz.js")).usage
|
|
137
137
|
}),
|
|
138
138
|
leaf("diff", "Compare two policies or catalogs; exit 1 on a breaking change", {
|
|
139
139
|
examples: ["permdock diff main.catalog.json permissions.catalog.json", "permdock diff ./old-policy.ts ./src/policy.ts --impact"],
|
|
@@ -165,7 +165,7 @@ const SECTIONS = [
|
|
|
165
165
|
docs: "policy",
|
|
166
166
|
effects: ["files"],
|
|
167
167
|
config: true,
|
|
168
|
-
load: async () => (await import("./policy-
|
|
168
|
+
load: async () => (await import("./policy-DzTU5233.js")).policyBundle
|
|
169
169
|
})]),
|
|
170
170
|
group("claims", "Measure the memberships claim of an access token", "claims", [leaf("size", "Report claim bytes, token characters and the budget cut", {
|
|
171
171
|
examples: ["permdock claims size --memberships 60", "permdock claims size --memberships 11 --roles 3 --json"],
|
|
@@ -180,7 +180,7 @@ const SECTIONS = [
|
|
|
180
180
|
effects: [],
|
|
181
181
|
config: true,
|
|
182
182
|
findings: true,
|
|
183
|
-
load: async () => (await import("./config-
|
|
183
|
+
load: async () => (await import("./config-DSyn7r1l.js")).config
|
|
184
184
|
})
|
|
185
185
|
]
|
|
186
186
|
},
|
|
@@ -193,7 +193,7 @@ const SECTIONS = [
|
|
|
193
193
|
docs: "rls",
|
|
194
194
|
effects: ["files", "database:read"],
|
|
195
195
|
config: true,
|
|
196
|
-
load: async () => (await import("./rls-
|
|
196
|
+
load: async () => (await import("./rls-BDmebOIp.js")).importPolicies
|
|
197
197
|
}),
|
|
198
198
|
leaf("verify", "Run the fixtures against the policies, or compare a live database", {
|
|
199
199
|
examples: [
|
|
@@ -205,21 +205,21 @@ const SECTIONS = [
|
|
|
205
205
|
effects: ["files", "database:read"],
|
|
206
206
|
config: true,
|
|
207
207
|
findings: true,
|
|
208
|
-
load: async () => (await import("./rls-
|
|
208
|
+
load: async () => (await import("./rls-BDmebOIp.js")).verify
|
|
209
209
|
}),
|
|
210
210
|
leaf("migrate", "Rewrite hand-written policies onto the generated helpers", {
|
|
211
211
|
examples: ["permdock rls migrate --sql supabase/migrations --dry-run", "permdock rls migrate --sql supabase/migrations"],
|
|
212
212
|
docs: "rls",
|
|
213
213
|
effects: ["rewrite", "files"],
|
|
214
214
|
config: true,
|
|
215
|
-
load: async () => (await import("./rls-
|
|
215
|
+
load: async () => (await import("./rls-BDmebOIp.js")).migrate
|
|
216
216
|
}),
|
|
217
217
|
leaf("explain", "Show the tables, membership sources and triggers the SQL binds to", {
|
|
218
218
|
examples: ["permdock rls explain", "permdock rls explain --db-url-stdin --json"],
|
|
219
219
|
docs: "rls",
|
|
220
220
|
effects: ["database:read"],
|
|
221
221
|
config: true,
|
|
222
|
-
load: async () => (await import("./rls-
|
|
222
|
+
load: async () => (await import("./rls-BDmebOIp.js")).explain
|
|
223
223
|
})
|
|
224
224
|
]),
|
|
225
225
|
group("supabase", "Generate the Supabase Custom Access Token Hook, or inspect its manifest", "supabase", [leaf("inspect", "Print or write the hook and helper manifest", {
|
|
@@ -227,14 +227,14 @@ const SECTIONS = [
|
|
|
227
227
|
docs: "supabase",
|
|
228
228
|
effects: ["files"],
|
|
229
229
|
config: true,
|
|
230
|
-
load: async () => (await import("./supabase-
|
|
230
|
+
load: async () => (await import("./supabase-CjUsihRL.js")).inspect
|
|
231
231
|
})]),
|
|
232
232
|
group("powersync", "Generate PowerSync Sync Streams from the policy, or verify them", "powersync", [leaf("verify", "Fail on stale streams or a stream that syncs a denied row", {
|
|
233
233
|
examples: ["permdock powersync verify", "permdock powersync verify --db-url-stdin"],
|
|
234
234
|
docs: "powersync",
|
|
235
235
|
effects: ["database:read"],
|
|
236
236
|
config: true,
|
|
237
|
-
load: async () => (await import("./powersync-
|
|
237
|
+
load: async () => (await import("./powersync-BfMIjRqo.js")).verify
|
|
238
238
|
})])
|
|
239
239
|
]
|
|
240
240
|
},
|
|
@@ -247,13 +247,13 @@ const SECTIONS = [
|
|
|
247
247
|
effects: ["files"],
|
|
248
248
|
config: true,
|
|
249
249
|
findings: true,
|
|
250
|
-
load: async () => (await import("./openapi-
|
|
250
|
+
load: async () => (await import("./openapi-Dpetebzt.js")).annotateRoutes
|
|
251
251
|
}), leaf("import", "Turn an OpenAPI document into a generated definition", {
|
|
252
252
|
examples: ["permdock openapi import --doc openapi.yaml --out src/permissions.generated.ts"],
|
|
253
253
|
docs: "openapi",
|
|
254
254
|
effects: ["files", "network"],
|
|
255
255
|
config: false,
|
|
256
|
-
load: async () => (await import("./openapi-
|
|
256
|
+
load: async () => (await import("./openapi-Dpetebzt.js")).importDocument
|
|
257
257
|
})]),
|
|
258
258
|
group("arazzo", "Check Arazzo workflows against the permissions", "arazzo", [leaf("check", "Resolve every Arazzo step to x-permdock-permissions", {
|
|
259
259
|
examples: ["permdock arazzo check --doc arazzo.json --openapi openapi.json"],
|
|
@@ -261,7 +261,7 @@ const SECTIONS = [
|
|
|
261
261
|
effects: [],
|
|
262
262
|
config: true,
|
|
263
263
|
findings: true,
|
|
264
|
-
load: async () => (await import("./arazzo-
|
|
264
|
+
load: async () => (await import("./arazzo-DuXmPMSu.js")).check
|
|
265
265
|
})]),
|
|
266
266
|
leaf("scan", "List authorization checks written without PermDock, to adopt it in an existing app", {
|
|
267
267
|
examples: ["permdock scan", "permdock scan --src app,lib --pattern isBeta"],
|
|
@@ -269,7 +269,7 @@ const SECTIONS = [
|
|
|
269
269
|
effects: [],
|
|
270
270
|
config: true,
|
|
271
271
|
findings: true,
|
|
272
|
-
load: async () => (await import("./scan-
|
|
272
|
+
load: async () => (await import("./scan-DGCpdOuR.js")).scan
|
|
273
273
|
}),
|
|
274
274
|
group("casl", "Import CASL rules into a generated module", "casl", [leaf("import", "Turn CASL rules per role into a permissions and policy module", {
|
|
275
275
|
examples: ["permdock casl import --rules rules.json --out src/permissions.generated.ts"],
|
|
@@ -283,7 +283,7 @@ const SECTIONS = [
|
|
|
283
283
|
docs: "casbin",
|
|
284
284
|
effects: ["files"],
|
|
285
285
|
config: false,
|
|
286
|
-
load: async () => (await import("./casbin-
|
|
286
|
+
load: async () => (await import("./casbin-CwLL5QnK.js")).casbinImport
|
|
287
287
|
})])
|
|
288
288
|
]
|
|
289
289
|
},
|
|
@@ -295,34 +295,34 @@ const SECTIONS = [
|
|
|
295
295
|
docs: "login",
|
|
296
296
|
effects: ["network", "files"],
|
|
297
297
|
config: false,
|
|
298
|
-
load: async () => (await import("./login-
|
|
298
|
+
load: async () => (await import("./login-OJdYkueH.js")).login
|
|
299
299
|
}),
|
|
300
300
|
leaf("logout", "Revoke and delete the stored PermDock Cloud login", {
|
|
301
301
|
examples: ["permdock logout"],
|
|
302
302
|
docs: "login",
|
|
303
303
|
effects: ["network", "files"],
|
|
304
304
|
config: false,
|
|
305
|
-
load: async () => (await import("./login-
|
|
305
|
+
load: async () => (await import("./login-OJdYkueH.js")).logout
|
|
306
306
|
}),
|
|
307
307
|
leaf("whoami", "Print the PermDock Cloud identity the CLI acts as", {
|
|
308
308
|
examples: ["permdock whoami", "permdock whoami --json"],
|
|
309
309
|
docs: "login",
|
|
310
310
|
effects: [],
|
|
311
311
|
config: false,
|
|
312
|
-
load: async () => (await import("./login-
|
|
312
|
+
load: async () => (await import("./login-OJdYkueH.js")).whoami
|
|
313
313
|
}),
|
|
314
314
|
group("cloud", "Publish to or pull from a PermDock Cloud project", "cloud", [leaf("push", "Publish the catalog, policy and manifest to a Cloud project", {
|
|
315
315
|
examples: ["permdock cloud push --dry-run", "permdock cloud push --project prj_123"],
|
|
316
316
|
docs: "cloud",
|
|
317
317
|
effects: ["network", "cloud:write"],
|
|
318
318
|
config: true,
|
|
319
|
-
load: async () => (await import("./cloud-
|
|
319
|
+
load: async () => (await import("./cloud-nXogJ7e1.js")).push
|
|
320
320
|
}), leaf("pull", "Write a Cloud project's published catalog and manifest", {
|
|
321
321
|
examples: ["permdock cloud pull --project prj_123"],
|
|
322
322
|
docs: "cloud",
|
|
323
323
|
effects: ["network", "files"],
|
|
324
324
|
config: true,
|
|
325
|
-
load: async () => (await import("./cloud-
|
|
325
|
+
load: async () => (await import("./cloud-nXogJ7e1.js")).pull
|
|
326
326
|
})])
|
|
327
327
|
]
|
|
328
328
|
},
|
|
@@ -333,7 +333,7 @@ const SECTIONS = [
|
|
|
333
333
|
docs: "codemod",
|
|
334
334
|
effects: ["rewrite"],
|
|
335
335
|
config: false,
|
|
336
|
-
load: async () => (await import("./codemod-
|
|
336
|
+
load: async () => (await import("./codemod-DwL1E5of.js")).codemod
|
|
337
337
|
})]
|
|
338
338
|
}
|
|
339
339
|
];
|
|
@@ -345,7 +345,7 @@ const COMPLETE_LEAF = leaf("__complete", "Print completion candidates for a part
|
|
|
345
345
|
config: false,
|
|
346
346
|
shellOutput: true,
|
|
347
347
|
hidden: true,
|
|
348
|
-
load: async () => (await import("./completion-
|
|
348
|
+
load: async () => (await import("./completion-BQovwoTx.js")).complete
|
|
349
349
|
});
|
|
350
350
|
const ROOT = group("permdock", "Collect, export, diff and check the permissions a PermDock policy declares", "", [...SECTIONS.flatMap((section) => section.entries), COMPLETE_LEAF]);
|
|
351
351
|
/** Each leaf with its path from the root, in manifest order. */
|
|
@@ -4,7 +4,7 @@ import { c as listPermissions, i as getRegistry, s as isRegistryTree } from "./p
|
|
|
4
4
|
import { i as grantList } from "./policy-DFD2J5o_.js";
|
|
5
5
|
import { c as jsonSchemaOf } from "./catalog-doc-Bp5khmCG.js";
|
|
6
6
|
import { n as CliError } from "./errors-DgLOqc6j.js";
|
|
7
|
-
import { n as compileConditionSql } from "./conditions-
|
|
7
|
+
import { n as compileConditionSql } from "./conditions-VlAMOm20.js";
|
|
8
8
|
import { a as quoteIdent, o as quoteLiteral } from "./quote-BKrTBbcH.js";
|
|
9
9
|
// src/cli/generate/dialects.ts
|
|
10
10
|
const STREAM_COMPARE = {
|
|
@@ -7,7 +7,7 @@ import { i as fileDrift } from "./output-files-DNid6TBl.js";
|
|
|
7
7
|
import { t as shortDiff } from "./text-diff-CsglY49A.js";
|
|
8
8
|
import { i as readJsonFile, s as writeFileEnsuringDir } from "./files-DAR51W3J.js";
|
|
9
9
|
import { a as loadModule, n as asPolicy, s as pickNamed, t as asPermissionTree } from "./load-CZnlAyZ8.js";
|
|
10
|
-
import { n as validateOverlay, t as validateOpenapi } from "./schema-
|
|
10
|
+
import { n as validateOverlay, t as validateOpenapi } from "./schema-wummOGn9.js";
|
|
11
11
|
import { existsSync } from "node:fs";
|
|
12
12
|
import { resolve } from "node:path";
|
|
13
13
|
// src/cli/openapi/emit/merge.ts
|
|
@@ -81,7 +81,7 @@ const importDocument = defineLeaf({
|
|
|
81
81
|
async run(ctx, { flags }) {
|
|
82
82
|
const doc = given(flags.doc);
|
|
83
83
|
if (doc === void 0) throw missingInput("openapi import", ["--doc"], "the OpenAPI document to import");
|
|
84
|
-
return (await import("./import-
|
|
84
|
+
return (await import("./import-BKTq4cxW.js")).runOpenapiImport({
|
|
85
85
|
cwd: ctx.cwd,
|
|
86
86
|
doc,
|
|
87
87
|
out: fileOut("openapi import", flags.out),
|
|
@@ -3,7 +3,7 @@ import { n as CliError } from "./errors-DgLOqc6j.js";
|
|
|
3
3
|
/** The annotated document, without writing it. */
|
|
4
4
|
async function openapiDocument(task, options, source) {
|
|
5
5
|
if (options.doc === void 0) return [];
|
|
6
|
-
const { runOpenapi } = await import("./openapi-
|
|
6
|
+
const { runOpenapi } = await import("./openapi-CvAjVdK7.js");
|
|
7
7
|
const outcome = await runOpenapi({
|
|
8
8
|
cwd: source.cwd,
|
|
9
9
|
config: source.config,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as isActionRequired, l as isRetryable, n as CliError, t as CLI_ERRORS_URL } from "./errors-DgLOqc6j.js";
|
|
2
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
2
|
+
import { t as DOCS_BASE } from "./manifest-BY8lK4l4.js";
|
|
3
3
|
import { s as cliVersion } from "./version-D-jWyJb9.js";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
// src/cli/core/consent.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { l as scopeChain, s as resolveScope } from "./scopes-B-KX9EI8.js";
|
|
2
2
|
import { r as findRole } from "./vocabulary-CE2k7s1a.js";
|
|
3
|
-
import { C as sourcesKeep, O as membershipRows, P as hasCustomRoleChecksFor, T as globalRoleRows, a as interactiveSessionSql, at as memberRoleOf, k as roleRows, l as disabledColumn, lt as scopeSources, nt as memberForTable, p as memberColumn, s as claimKeptLines, ut as scopeTable, y as sourceFilters, z as storedTenant } from "./interactive-only-
|
|
3
|
+
import { C as sourcesKeep, O as membershipRows, P as hasCustomRoleChecksFor, T as globalRoleRows, a as interactiveSessionSql, at as memberRoleOf, k as roleRows, l as disabledColumn, lt as scopeSources, nt as memberForTable, p as memberColumn, s as claimKeptLines, ut as scopeTable, y as sourceFilters, z as storedTenant } from "./interactive-only-CQsgMc1E.js";
|
|
4
4
|
import { A as tenantTypeOf, f as kindFilterSql, m as memberVia, s as signedIn, t as CUSTOM_ROLES, u as globalKindFilterSql, y as subjectIdSql } from "./shared-BdF5DJDQ.js";
|
|
5
5
|
import { i as qualifySqlTable } from "./sql-T4GaBh9X.js";
|
|
6
6
|
import { l as roleColumn } from "./sources-DnjJPGfb.js";
|
|
7
7
|
import { i as configError } from "./errors-DgLOqc6j.js";
|
|
8
8
|
import { a as quoteIdent, i as qualified, n as declaredArray, o as quoteLiteral, s as quoteQualified } from "./quote-BKrTBbcH.js";
|
|
9
|
-
import { _ as sourceTransferTriggerSql, b as ASSIGNMENTS, g as sourceRowsSql, h as sourceHoldersTriggerSql, m as pairsSql, p as holderSources, v as holdersTriggerSql, x as OWNERSHIP, y as transferTriggerSql } from "./tables-
|
|
9
|
+
import { _ as sourceTransferTriggerSql, b as ASSIGNMENTS, g as sourceRowsSql, h as sourceHoldersTriggerSql, m as pairsSql, p as holderSources, v as holdersTriggerSql, x as OWNERSHIP, y as transferTriggerSql } from "./tables-CbVpFhC6.js";
|
|
10
10
|
// src/cli/rls/assignments.ts
|
|
11
11
|
/**
|
|
12
12
|
* The client roles whose writes the assignment triggers check; any other role
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as canonicalJson } from "./canonical-json-BibZkXtE.js";
|
|
2
2
|
import { r as planFiles, t as applyFiles } from "./files-DuV7wRim.js";
|
|
3
3
|
import { s as writeFileEnsuringDir } from "./files-DAR51W3J.js";
|
|
4
|
-
import { t as policyModel } from "./model-
|
|
4
|
+
import { t as policyModel } from "./model-BkQLENu6.js";
|
|
5
5
|
import { i as orderPlugins } from "./plugin-MQVfUBUS.js";
|
|
6
6
|
import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
|
|
7
7
|
import { join, relative, resolve } from "node:path";
|
|
@@ -18,7 +18,7 @@ const policyBundle = defineLeaf({
|
|
|
18
18
|
},
|
|
19
19
|
async run(ctx, { flags }) {
|
|
20
20
|
try {
|
|
21
|
-
const { runPolicyBundle } = await import("./policy-bundle-
|
|
21
|
+
const { runPolicyBundle } = await import("./policy-bundle-Dafv5nOx.js");
|
|
22
22
|
const policy = await requirePolicy(ctx.cwd, given(flags.policy) ?? ctx.config.policy, "set policy in permdock.config.ts or pass --policy");
|
|
23
23
|
return runPolicyBundle({
|
|
24
24
|
cwd: ctx.cwd,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as fileSummary, t as applyFiles } from "./files-DuV7wRim.js";
|
|
2
|
-
import { i as buildContext, n as isRefusal, o as inheritTargets, t as generateOptions } from "./generate-options-
|
|
3
|
-
import { n as compileGrants } from "./compile-
|
|
4
|
-
import { G as POLICY_BUNDLE_FORMAT, K as bundleLoaderSql, i as tableNames, q as policyBundle } from "./tables-
|
|
2
|
+
import { i as buildContext, n as isRefusal, o as inheritTargets, t as generateOptions } from "./generate-options-BUh621MW.js";
|
|
3
|
+
import { n as compileGrants } from "./compile-NM1GOb2q.js";
|
|
4
|
+
import { G as POLICY_BUNDLE_FORMAT, K as bundleLoaderSql, i as tableNames, q as policyBundle } from "./tables-CbVpFhC6.js";
|
|
5
5
|
import { existsSync, readFileSync } from "node:fs";
|
|
6
6
|
import { resolve } from "node:path";
|
|
7
7
|
// src/cli/policy-bundle.ts
|
|
@@ -24,7 +24,7 @@ const verify = defineLeaf({
|
|
|
24
24
|
const db = await dbUrl(ctx, flags, { required: true });
|
|
25
25
|
const fixtures = given(flags.fixtures);
|
|
26
26
|
const from = given(flags.policy);
|
|
27
|
-
const { runPowerSync } = await import("./powersync-
|
|
27
|
+
const { runPowerSync } = await import("./powersync-IrDmJbqx.js");
|
|
28
28
|
return runPowerSync({
|
|
29
29
|
cwd: ctx.cwd,
|
|
30
30
|
config: ctx.config,
|
|
@@ -8,8 +8,8 @@ import { i as fileDrift } from "./output-files-DNid6TBl.js";
|
|
|
8
8
|
import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-Bm0G0A7H.js";
|
|
9
9
|
import { n as pgConnector } from "./pg-CA651850.js";
|
|
10
10
|
import { c as requirePolicy } from "./load-CZnlAyZ8.js";
|
|
11
|
-
import { t as canFixture } from "./verify-
|
|
12
|
-
import { a as roleNames, i as collectGrants, t as assignableRoles } from "./grants-
|
|
11
|
+
import { t as canFixture } from "./verify-KX4Ohvs_.js";
|
|
12
|
+
import { a as roleNames, i as collectGrants, t as assignableRoles } from "./grants-C7bGZFPa.js";
|
|
13
13
|
import { a as quoteIdent, s as quoteQualified } from "./quote-BKrTBbcH.js";
|
|
14
14
|
import { a as scopeMembershipTable, i as scopeColumn } from "./compile-BUKXrueE.js";
|
|
15
15
|
import { r as isRecord, t as compact } from "./compact-C4LFuqbW.js";
|
|
@@ -18,11 +18,11 @@ import { d as keptKeys, t as AUTHZ_VERSION_TABLE } from "./sources-DnjJPGfb.js";
|
|
|
18
18
|
import { a as customRolesOn, t as CUSTOM_ROLES } from "./shared-BdF5DJDQ.js";
|
|
19
19
|
import { t as membershipSourcesOf } from "./sources-BbSUNmFX.js";
|
|
20
20
|
import { s as quoteSqlLiteral, t as SQL_IDENT } from "./sql-T4GaBh9X.js";
|
|
21
|
-
import { t as ownershipRules } from "./ownership-
|
|
22
|
-
import { i as tableFor } from "./compile-
|
|
23
|
-
import { i as tableNames, r as tableNameOf } from "./tables-
|
|
21
|
+
import { t as ownershipRules } from "./ownership-CHND0y5L.js";
|
|
22
|
+
import { i as tableFor } from "./compile-NM1GOb2q.js";
|
|
23
|
+
import { i as tableNames, r as tableNameOf } from "./tables-CbVpFhC6.js";
|
|
24
24
|
import { l as policyLevels } from "./policy-DFD2J5o_.js";
|
|
25
|
-
import { r as contextRefs, t as andConditions } from "./conditions-
|
|
25
|
+
import { r as contextRefs, t as andConditions } from "./conditions-VlAMOm20.js";
|
|
26
26
|
import { p as scopeField } from "./tenancy-B5Xxt9Sc.js";
|
|
27
27
|
import { t as requiresApproval } from "./approval-required-B-R4Yw3J.js";
|
|
28
28
|
import { resolve } from "node:path";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { r as powersyncFiles, t as runPowerSync } from "./powersync-
|
|
1
|
+
export { r as powersyncFiles, t as runPowerSync } from "./powersync-DNeS5JrT.js";
|
|
@@ -4,7 +4,7 @@ import { n as parseSupabaseManifest } from "./manifest-B-8d2lhG.js";
|
|
|
4
4
|
import { o as formatCatalogJson } from "./catalog-doc-Bp5khmCG.js";
|
|
5
5
|
import { t as catalogPath } from "./catalog-path-bG0XxHMu.js";
|
|
6
6
|
import { a as describeError } from "./errors-DgLOqc6j.js";
|
|
7
|
-
import { a as nonEmptyOr } from "./output-
|
|
7
|
+
import { a as nonEmptyOr } from "./output-Cq0neio3.js";
|
|
8
8
|
import { s as cliVersion } from "./version-D-jWyJb9.js";
|
|
9
9
|
import { s as writeFileEnsuringDir } from "./files-DAR51W3J.js";
|
|
10
10
|
import { n as formatManifestJson } from "./manifest-json-DMaBWmcG.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { n as runCloudPull } from "./pull-DOwvDn98.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as authorizeSql } from "./supabase-BI5ZhzLl.js";
|
|
2
2
|
import { i as configError } from "./errors-DgLOqc6j.js";
|
|
3
|
-
import { a as roleNames } from "./grants-
|
|
3
|
+
import { a as roleNames } from "./grants-C7bGZFPa.js";
|
|
4
4
|
import { a as quoteIdent, c as quoteTable, o as quoteLiteral, s as quoteQualified } from "./quote-BKrTBbcH.js";
|
|
5
5
|
// src/cli/rls/rbac.ts
|
|
6
6
|
/**
|
|
@@ -5,9 +5,9 @@ import "./budget-BH81q2cj.js";
|
|
|
5
5
|
import "./sources-DnjJPGfb.js";
|
|
6
6
|
import { i as configError } from "./errors-DgLOqc6j.js";
|
|
7
7
|
import { t as FIELD_VIEWS } from "./fields-6d1j-q3c.js";
|
|
8
|
-
import { C as forUserContext, Z as graphPlan, d as permittedByPermissionHelper, i as tableNames, o as PERMISSION_HELPERS, p as holderSources, s as checkName, w as grantBodies } from "./tables-
|
|
8
|
+
import { C as forUserContext, Z as graphPlan, d as permittedByPermissionHelper, i as tableNames, o as PERMISSION_HELPERS, p as holderSources, s as checkName, w as grantBodies } from "./tables-CbVpFhC6.js";
|
|
9
9
|
import { D as idTypeOf, O as scopeTypeOf } from "./shared-BdF5DJDQ.js";
|
|
10
|
-
import { G as graphHelper, K as graphSqlName, Q as isTeamScope, T as globalRoleRows, X as hasPermittedUsers, Z as inheritedRowsHelper, ct as restrictedHelper, et as memberForHelper, f as holderBody, it as memberOfHelper, ot as permittedForHelper, rt as memberIdsHelper, st as permittedIdsHelper, ut as scopeTable } from "./interactive-only-
|
|
10
|
+
import { G as graphHelper, K as graphSqlName, Q as isTeamScope, T as globalRoleRows, X as hasPermittedUsers, Z as inheritedRowsHelper, ct as restrictedHelper, et as memberForHelper, f as holderBody, it as memberOfHelper, ot as permittedForHelper, rt as memberIdsHelper, st as permittedIdsHelper, ut as scopeTable } from "./interactive-only-CQsgMc1E.js";
|
|
11
11
|
import { a as quoteIdent, i as qualified, o as quoteLiteral, s as quoteQualified } from "./quote-BKrTBbcH.js";
|
|
12
12
|
// src/cli/rls/permission-holders.ts
|
|
13
13
|
/**
|
|
@@ -192,7 +192,7 @@ async function rlsInput(ctx, verb, shape, options) {
|
|
|
192
192
|
};
|
|
193
193
|
}
|
|
194
194
|
async function runRls(input) {
|
|
195
|
-
return (await import("./rls-
|
|
195
|
+
return (await import("./rls-BjEp-1Ob.js")).runRls(input);
|
|
196
196
|
}
|
|
197
197
|
({
|
|
198
198
|
...shapeFlags,
|
|
@@ -2,15 +2,15 @@ import "./sources-DnjJPGfb.js";
|
|
|
2
2
|
import { a as describeError, f as usageResult, o as exitCodeOfError } from "./errors-DgLOqc6j.js";
|
|
3
3
|
import { i as requirePeer, n as packageManagerOf, t as addLine } from "./peer-D77JpXe-.js";
|
|
4
4
|
import { n as pgConnector, t as connectPgPool } from "./pg-CA651850.js";
|
|
5
|
-
import { f as isSupabaseSchemas, m as schemasRefusal } from "./hook-sql-
|
|
6
|
-
import { a as nonEmptyOr } from "./output-
|
|
7
|
-
import { n as describeExplain, t as runRlsGenerate } from "./generate-
|
|
8
|
-
import { a as COLUMNS_SQL, o as INDEX_COLUMNS_SQL, u as readTableIndexFacts } from "./compile-
|
|
5
|
+
import { f as isSupabaseSchemas, m as schemasRefusal } from "./hook-sql-Bxc_YRrd.js";
|
|
6
|
+
import { a as nonEmptyOr } from "./output-Cq0neio3.js";
|
|
7
|
+
import { n as describeExplain, t as runRlsGenerate } from "./generate-Dl75LKbW.js";
|
|
8
|
+
import { a as COLUMNS_SQL, o as INDEX_COLUMNS_SQL, u as readTableIndexFacts } from "./compile-NM1GOb2q.js";
|
|
9
9
|
import { r as escapeSqlIdent } from "./sql-T4GaBh9X.js";
|
|
10
10
|
import { t as beforeFirst } from "./text-D704xHVl.js";
|
|
11
|
-
import { a as verifyResult, c as callsHelper, i as verifyIgnores, l as helperCallKeys, n as runRlsVerify, o as HELPER_TABLES, r as rlsFinding } from "./verify-
|
|
11
|
+
import { a as verifyResult, c as callsHelper, i as verifyIgnores, l as helperCallKeys, n as runRlsVerify, o as HELPER_TABLES, r as rlsFinding } from "./verify-KX4Ohvs_.js";
|
|
12
12
|
import { c as ACTOR_MAY_WRITE, p as readOnlyActorKinds } from "./fields-6d1j-q3c.js";
|
|
13
|
-
import { r as parseRbacAuthorize } from "./rbac-
|
|
13
|
+
import { r as parseRbacAuthorize } from "./rbac-CygtQB85.js";
|
|
14
14
|
import { delimiter, join } from "node:path";
|
|
15
15
|
import { spawn } from "node:child_process";
|
|
16
16
|
// src/cli/rls/grant-calls.ts
|
|
@@ -3,7 +3,7 @@ import { i as dateAt } from "./time-r0CKBm57.js";
|
|
|
3
3
|
import { n as CliError } from "./errors-DgLOqc6j.js";
|
|
4
4
|
import { m as seedsMigration, p as seedDeltaNote } from "./output-files-DNid6TBl.js";
|
|
5
5
|
import { a as fixturesPresent, i as defaultsSeedSql, o as fixturesSeedSql, r as FIXTURES_PATH, t as DEFAULTS_MARKER } from "./seed-sql-CjF7u0aX.js";
|
|
6
|
-
import { t as runRlsGenerate } from "./generate-
|
|
6
|
+
import { t as runRlsGenerate } from "./generate-Dl75LKbW.js";
|
|
7
7
|
import { a as quietIo, r as noted } from "./plugin-MQVfUBUS.js";
|
|
8
8
|
// src/cli/generate/plugins/rls-options.ts
|
|
9
9
|
function seedMode(seeds) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as run } from "./run-DFe2I0T7.js";
|
|
@@ -3,9 +3,9 @@ import { a as resolveCwd, i as readConfig, o as withPluginOutputs } from "./conf
|
|
|
3
3
|
import { t as beforeFirst } from "./text-D704xHVl.js";
|
|
4
4
|
import { a as describeError, n as CliError, r as cliFailure, s as failureOf, u as kindOfCode } from "./errors-DgLOqc6j.js";
|
|
5
5
|
import { a as suggestion, i as parseLeaf, o as GLOBAL_FLAGS, r as parseFlags } from "./args-0EWFk-4S.js";
|
|
6
|
-
import { c as confirmationRequired, d as quote, f as replayArgv, i as githubAnnotations, l as consentDigest, n as errorDocument, o as resultDocument, s as sarifLog, t as dataOf, u as consentReasons } from "./output-
|
|
6
|
+
import { c as confirmationRequired, d as quote, f as replayArgv, i as githubAnnotations, l as consentDigest, n as errorDocument, o as resultDocument, s as sarifLog, t as dataOf, u as consentReasons } from "./output-Cq0neio3.js";
|
|
7
7
|
import { r as progressReporter, t as redact } from "./credentials-6ZWbJ-Re.js";
|
|
8
|
-
import { a as resolve, i as leaves, n as ROOT, r as SECTIONS, t as DOCS_BASE } from "./manifest-
|
|
8
|
+
import { a as resolve, i as leaves, n as ROOT, r as SECTIONS, t as DOCS_BASE } from "./manifest-BY8lK4l4.js";
|
|
9
9
|
import { t as createStyle } from "./style-CQDaLJtP.js";
|
|
10
10
|
import { s as cliVersion } from "./version-D-jWyJb9.js";
|
|
11
11
|
import { n as isPermDockPlugin } from "./plugin-MQVfUBUS.js";
|
|
@@ -16,7 +16,7 @@ const scan = defineLeaf({
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
async run(ctx, { flags }) {
|
|
19
|
-
const { runAdoptionScan } = await import("./adoption-scan-
|
|
19
|
+
const { runAdoptionScan } = await import("./adoption-scan-CHMU7gnE.js");
|
|
20
20
|
return runAdoptionScan({
|
|
21
21
|
cwd: ctx.cwd,
|
|
22
22
|
srcPath: flags.src.length > 0 ? flags.src : ctx.config.collect?.srcPath ?? ["src"],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as require__2020 } from "./2020-bJfT8aIA.js";
|
|
2
2
|
import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
3
3
|
import { t as DRAFT_PINS } from "./pins-CXXkVEiD.js";
|
|
4
|
-
import { a as nonEmptyOr } from "./output-
|
|
4
|
+
import { a as nonEmptyOr } from "./output-Cq0neio3.js";
|
|
5
5
|
import { l as packageRoot } from "./version-D-jWyJb9.js";
|
|
6
6
|
import { readFileSync } from "node:fs";
|
|
7
7
|
import { join } from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as byCodePoint } from "./compare-dfHDj8kT.js";
|
|
2
2
|
import { t as didYouMean } from "./args-0EWFk-4S.js";
|
|
3
|
-
import { a as nonEmptyOr } from "./output-
|
|
3
|
+
import { a as nonEmptyOr } from "./output-Cq0neio3.js";
|
|
4
4
|
import { i as readJsonFile, s as writeFileEnsuringDir } from "./files-DAR51W3J.js";
|
|
5
5
|
import { l as packageRoot } from "./version-D-jWyJb9.js";
|
|
6
6
|
import { cpSync, existsSync, lstatSync, readFileSync, readdirSync, readlinkSync, realpathSync } from "node:fs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as defineLeaf } from "./command-9GAzSI7E.js";
|
|
2
2
|
import { t as checkFlag } from "./flags-C0e-BzGW.js";
|
|
3
3
|
import { r as pick, t as CANCELLED } from "./prompt-CSXHcJxy.js";
|
|
4
|
-
import { n as detectedAgents, r as runSkills, t as SKILL_AGENTS } from "./skills-
|
|
4
|
+
import { n as detectedAgents, r as runSkills, t as SKILL_AGENTS } from "./skills-BQ9bEjPV.js";
|
|
5
5
|
// src/cli/commands/skills.ts
|
|
6
6
|
const forFlag = { for: {
|
|
7
7
|
type: "string",
|
|
@@ -15,7 +15,7 @@ const inspect = defineLeaf({
|
|
|
15
15
|
},
|
|
16
16
|
async run(ctx, { flags }) {
|
|
17
17
|
const out = flags.out === "" ? true : flags.out === "-" ? void 0 : flags.out;
|
|
18
|
-
const { runSupabase } = await import("./supabase-hook-
|
|
18
|
+
const { runSupabase } = await import("./supabase-hook-b7tej2Vw.js");
|
|
19
19
|
return runSupabase({
|
|
20
20
|
cwd: ctx.cwd,
|
|
21
21
|
config: ctx.config,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./sources-DnjJPGfb.js";
|
|
2
2
|
import { a as describeError } from "./errors-DgLOqc6j.js";
|
|
3
|
-
import { n as hookUri } from "./rbac-
|
|
3
|
+
import { n as hookUri } from "./rbac-CygtQB85.js";
|
|
4
4
|
import { existsSync, readFileSync } from "node:fs";
|
|
5
5
|
import { join, posix } from "node:path";
|
|
6
6
|
// ../../node_modules/.pnpm/smol-toml@1.9.1/node_modules/smol-toml/dist/error.js
|