permdock 0.37.0 → 0.38.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{adoption-scan-sufK4R53.js → adoption-scan-CkkOzkXs.js} +1 -1
- package/dist/{arazzo-D0ctRNBU.js → arazzo-BKYLAE5e.js} +1 -1
- package/dist/{arazzo-BxtTsEK2.js → arazzo-n8as0lFp.js} +1 -1
- package/dist/{bsb-access-tags-LCaE48SK.js → bsb-access-tags-DaGRSYnv.js} +1 -1
- package/dist/{casbin-CkLvGuUb.js → casbin-BlQqoRlv.js} +1 -1
- package/dist/{casbin-CMEY_GT4.js → casbin-BmYeMFeI.js} +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cli/generate/watch-worker.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/cli/plugins/app.js +1 -1
- package/dist/cli/plugins/openapi.js +1 -1
- package/dist/cli/plugins/powersync.js +1 -1
- package/dist/cli/plugins/rls.js +1 -1
- package/dist/cli/plugins/schemas.js +1 -1
- package/dist/cli/plugins/supabase-hook.js +1 -1
- package/dist/cli/plugins/supabase.js +2 -2
- package/dist/cli/plugins/ui.js +1 -1
- package/dist/{cloud-N4IUVluH.js → cloud-DxDQff7G.js} +1 -1
- package/dist/{codemod-D5a5oDJX.js → codemod-CX9EGBJw.js} +1 -1
- package/dist/{codemod-C9SQqhNG.js → codemod-DjcAtHr9.js} +4 -4
- package/dist/{compile-BFV2WG67.js → compile-BWOrvhGt.js} +3 -3
- package/dist/{completion-BUWG1FGo.js → completion-9B7fZWsn.js} +1 -1
- package/dist/{config-B3Bc6Tly.js → config-BgBDv1UW.js} +1 -1
- package/dist/{config-report-3IhYuH4v.js → config-report-oYAr9Opz.js} +1 -1
- package/dist/{context-CNI2jibq.js → context-DntIOpzS.js} +1 -1
- package/dist/{custom-role-rebuild-QFXiMHqJ.js → custom-role-rebuild-BwM6hBqt.js} +1 -1
- package/dist/{doctor-DP7HwXw_.js → doctor-CDSxgnut.js} +2 -2
- package/dist/{doctor-DhpDQ5C6.js → doctor-Dqh8AzIx.js} +17 -17
- package/dist/{execute-g-nMgY4t.js → execute-CUGaCy_9.js} +3 -3
- package/dist/gen-CNYlckFE.js +1 -0
- package/dist/{gen-CTRqv1H2.js → gen-D85_gUOz.js} +2 -2
- package/dist/{gen-kind-DLnQ-vCe.js → gen-kind-Bi0dtNoV.js} +1 -1
- package/dist/{generate-DcPnvokU.js → generate-BnOSZLka.js} +11 -11
- package/dist/{generate-dbQzpEqb.js → generate-C8kAhef2.js} +3 -3
- package/dist/{generate-options-4jvPn7w3.js → generate-options-eMjRViev.js} +7 -7
- package/dist/{hook-sql-3yPtwas6.js → hook-sql-BQcxbOzi.js} +65 -12
- package/dist/{import-DEUiWePf.js → import-BLN-HGJG.js} +1 -1
- package/dist/{init-CUviJnno.js → init-B8bPTGMb.js} +3 -3
- package/dist/{init-DqOKr99S.js → init-BQnRbzUb.js} +1 -1
- package/dist/{inspect-functions-Uv3Ndkty.js → inspect-functions-GXdyPFwI.js} +1 -1
- package/dist/{interactive-only-CylKSukS.js → interactive-only-C9NQJXpi.js} +45 -15
- package/dist/{keys-CA3SdBHQ.js → keys-QhAlAjXf.js} +1 -1
- package/dist/{login-mcxQxTAL.js → login-DnVKv2ib.js} +1 -1
- package/dist/{login-BMONKzI_.js → login-kQOIJoFN.js} +3 -3
- package/dist/{manifest-tO5SjSGH.js → manifest-CMh8sAAH.js} +34 -34
- package/dist/{measure-r811lN7F.js → measure-DJl28Whs.js} +1 -1
- package/dist/{model-wt3wihiH.js → model-DQQYg8UW.js} +1 -1
- package/dist/{openapi-BZHc6R7A.js → openapi-CuyzmD9h.js} +2 -2
- package/dist/{openapi-CNWuAQZi.js → openapi-D7kRYqWu.js} +1 -1
- package/dist/{openapi-document-CHJI74v_.js → openapi-document-ClyLB0-z.js} +1 -1
- package/dist/{output-Bfc3EpB2.js → output-ONUzppLo.js} +1 -1
- package/dist/{ownership-BuQFLjZ5.js → ownership-CCgncSLb.js} +2 -2
- package/dist/{pipeline-DW7cy40F.js → pipeline-DGFc6y6x.js} +2 -2
- package/dist/{policy-DTk6NZm-.js → policy-AWd-ccJJ.js} +1 -1
- package/dist/{policy-bundle-C7Hz9Rrs.js → policy-bundle-rC5_X9hX.js} +3 -3
- package/dist/{powersync-CoP_nlGj.js → powersync-C1OW6iVd.js} +6 -6
- package/dist/{powersync-CeuhNT0R.js → powersync-C84aHECl.js} +1 -1
- package/dist/{powersync-LpKFefiH.js → powersync-DW7seEgS.js} +1 -1
- package/dist/{prune-config-C0uSbf1I.js → prune-config-DeTUhG2J.js} +4 -4
- package/dist/{pull-A1SkxAyb.js → pull-C851tQak.js} +1 -1
- package/dist/pull-CylkuBGR.js +1 -0
- package/dist/{rbac-Dx88RLxH.js → rbac-ByuGspKZ.js} +1 -1
- package/dist/{rename-RnOp8vDq.js → rename-BgfR3xB9.js} +2 -2
- package/dist/{resolve-names-Ch5Ve5l4.js → resolve-names-DmX503uX.js} +2 -2
- package/dist/{rls-DgYAJpVW.js → rls-DTN_-HX2.js} +3 -3
- package/dist/{rls-CHJbaZxj.js → rls-JSxuWcf-.js} +7 -7
- package/dist/{rls-files-RZ7PGrzg.js → rls-files-BsJsEeJ_.js} +1 -1
- package/dist/{run-CbJPONx5.js → run-BgNlYtQJ.js} +2 -2
- package/dist/run-C7nX-hkR.js +1 -0
- package/dist/{scan-DjTW-y6E.js → scan-pHPntFbs.js} +1 -1
- package/dist/{schema-DVyxM9xS.js → schema-DJd7Gq_p.js} +1 -1
- package/dist/{skills-BdmjI4D2.js → skills-D4ItrS0F.js} +1 -1
- package/dist/{skills-BYc8rmHF.js → skills-txCdqGns.js} +1 -1
- package/dist/{supabase-BAuqWNj3.js → supabase-D-kxyoaX.js} +2 -2
- package/dist/supabase-hook-BTiZ8LTJ.js +2 -0
- package/dist/{supabase-hook-BbwsceID.js → supabase-hook-DDxDjlOU.js} +5 -5
- package/dist/{supabase-schemas-RG58AMTu.js → supabase-schemas-D6ezN5Ln.js} +1 -1
- package/dist/{table-reads-Glf0BHSE.js → table-reads-DHB56kFZ.js} +1 -1
- package/dist/{table-reads--NupdCFw.js → table-reads-Doh_Egx2.js} +1 -1
- package/dist/{tables-Dyfviku5.js → tables-E-dIHUN_.js} +4 -4
- package/dist/{tenant-check-Bfd4hotj.js → tenant-check-DGfE7Sns.js} +3 -3
- package/dist/{usage-7Hwk_akY.js → usage-CX_wmL5W.js} +2 -2
- package/dist/usage-DcVP-SFj.js +1 -0
- package/dist/{usage-nZP7EeRj.js → usage-DymSoYQZ.js} +1 -1
- package/dist/{verify-DOCJgGlw.js → verify-CHlmYg2d.js} +3 -3
- package/dist/{watch-DYsWhTvO.js → watch-CkL1iuKJ.js} +1 -1
- package/package.json +1 -1
- package/dist/gen-D-orrO2e.js +0 -1
- package/dist/pull-CNMED72E.js +0 -1
- package/dist/run-iPVAxorh.js +0 -1
- package/dist/supabase-hook-CObLSH20.js +0 -2
- package/dist/usage-Bwl8YAmq.js +0 -1
|
@@ -7,7 +7,7 @@ import { o as sqlFiles } from "./files-DAR51W3J.js";
|
|
|
7
7
|
import { c as jsonSchemaOf } from "./catalog-doc-BX97oFAn.js";
|
|
8
8
|
import { a as quoteIdent, o as quoteLiteral } from "./quote-LNaBdCGA.js";
|
|
9
9
|
import { a as parseSqlFile, f as stringValues, l as readRelation, t as SqlSyntaxError, u as removeStatements } from "./ast-Dnm2TOHN.js";
|
|
10
|
-
import { f as compileConditionSql } from "./rbac-
|
|
10
|
+
import { f as compileConditionSql } from "./rbac-ByuGspKZ.js";
|
|
11
11
|
import { readFileSync } from "node:fs";
|
|
12
12
|
import { relative } from "node:path";
|
|
13
13
|
// src/cli/sql/exported-copies.ts
|
|
@@ -79,7 +79,7 @@ const emitFlags = {
|
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
81
|
async function executeOpenapiEmit(ctx, flags) {
|
|
82
|
-
return (await import("./openapi-
|
|
82
|
+
return (await import("./openapi-D7kRYqWu.js")).runOpenapi({
|
|
83
83
|
cwd: ctx.cwd,
|
|
84
84
|
config: ctx.config,
|
|
85
85
|
rest: ["emit"],
|
|
@@ -183,7 +183,7 @@ const importDocument = defineLeaf({
|
|
|
183
183
|
async run(ctx, { flags }) {
|
|
184
184
|
const doc = given(flags.doc);
|
|
185
185
|
if (doc === void 0) throw missingInput("openapi import", ["--doc"], "the OpenAPI document to import");
|
|
186
|
-
return (await import("./import-
|
|
186
|
+
return (await import("./import-BLN-HGJG.js")).runOpenapiImport({
|
|
187
187
|
cwd: ctx.cwd,
|
|
188
188
|
doc,
|
|
189
189
|
out: fileOut("openapi import", flags.out),
|
|
@@ -7,7 +7,7 @@ import { i as fileDrift } from "./output-files-8lfALMSU.js";
|
|
|
7
7
|
import { t as shortDiff } from "./text-diff-DxKRNFlx.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-m7jmit3y.js";
|
|
10
|
-
import { n as validateOverlay, t as validateOpenapi } from "./schema-
|
|
10
|
+
import { n as validateOverlay, t as validateOpenapi } from "./schema-DJd7Gq_p.js";
|
|
11
11
|
import { existsSync } from "node:fs";
|
|
12
12
|
import { resolve } from "node:path";
|
|
13
13
|
// src/cli/openapi/emit/merge.ts
|
|
@@ -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-D7kRYqWu.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-CMh8sAAH.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
|
|
@@ -7,8 +7,8 @@ import { l as roleColumn } from "./sources-C6Id63F8.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-LNaBdCGA.js";
|
|
9
9
|
import { s as signedIn, t as CUSTOM_ROLES } from "./shared-DnVY767H.js";
|
|
10
|
-
import { A as membershipRows, D as globalRoleRows, I as hasCustomRoleChecksFor, T as sourcesKeep, V as storedTenant, d as disabledColumn, h as memberColumn, j as roleRows, l as claimKeptLines, n as delegatedGlobalSql, o as interactiveSessionSql, x as sourceFilters } from "./interactive-only-
|
|
11
|
-
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-
|
|
10
|
+
import { A as membershipRows, D as globalRoleRows, I as hasCustomRoleChecksFor, T as sourcesKeep, V as storedTenant, d as disabledColumn, h as memberColumn, j as roleRows, l as claimKeptLines, n as delegatedGlobalSql, o as interactiveSessionSql, x as sourceFilters } from "./interactive-only-C9NQJXpi.js";
|
|
11
|
+
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-E-dIHUN_.js";
|
|
12
12
|
// src/cli/rls/assignments.ts
|
|
13
13
|
/**
|
|
14
14
|
* The client roles whose writes the assignment triggers check; any other role
|
|
@@ -2,8 +2,8 @@ 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
4
|
import { n as CliError } from "./errors-DgLOqc6j.js";
|
|
5
|
-
import { a as ownedObjects, i as inReservedDir, n as foreignSchemaFiles, o as shownKey, s as withoutOwned, t as policyModel } from "./model-
|
|
6
|
-
import { n as resolveSchemas } from "./supabase-schemas-
|
|
5
|
+
import { a as ownedObjects, i as inReservedDir, n as foreignSchemaFiles, o as shownKey, s as withoutOwned, t as policyModel } from "./model-DQQYg8UW.js";
|
|
6
|
+
import { n as resolveSchemas } from "./supabase-schemas-D6ezN5Ln.js";
|
|
7
7
|
import { i as orderPlugins } from "./plugin-MQVfUBUS.js";
|
|
8
8
|
import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
|
|
9
9
|
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-rC5_X9hX.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 { r as compileGrants } from "./compile-
|
|
4
|
-
import { X as policyBundle, Y as bundleLoaderSql, i as tableNames, q as POLICY_BUNDLE_FORMAT } from "./tables-
|
|
2
|
+
import { i as buildContext, n as isRefusal, o as inheritTargets, t as generateOptions } from "./generate-options-eMjRViev.js";
|
|
3
|
+
import { r as compileGrants } from "./compile-BWOrvhGt.js";
|
|
4
|
+
import { X as policyBundle, Y as bundleLoaderSql, i as tableNames, q as POLICY_BUNDLE_FORMAT } from "./tables-E-dIHUN_.js";
|
|
5
5
|
import { existsSync, readFileSync } from "node:fs";
|
|
6
6
|
import { resolve } from "node:path";
|
|
7
7
|
// src/cli/policy-bundle.ts
|
|
@@ -8,8 +8,8 @@ import { i as fileDrift } from "./output-files-8lfALMSU.js";
|
|
|
8
8
|
import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-3aUUP6Nx.js";
|
|
9
9
|
import { r as pgConnector } from "./pg-DmS5ITHu.js";
|
|
10
10
|
import { c as requirePolicy } from "./load-m7jmit3y.js";
|
|
11
|
-
import { t as canFixture } from "./verify-
|
|
12
|
-
import { d as andConditions, l as collectGrants, o as assignableRoles, p as contextRefs, u as roleNames } from "./rbac-
|
|
11
|
+
import { t as canFixture } from "./verify-CHlmYg2d.js";
|
|
12
|
+
import { d as andConditions, l as collectGrants, o as assignableRoles, p as contextRefs, u as roleNames } from "./rbac-ByuGspKZ.js";
|
|
13
13
|
import { a as quoteIdent, s as quoteQualified } from "./quote-LNaBdCGA.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,15 +18,15 @@ import { d as keptKeys, t as AUTHZ_VERSION_TABLE } from "./sources-C6Id63F8.js";
|
|
|
18
18
|
import { a as customRolesOn, t as CUSTOM_ROLES } from "./shared-DnVY767H.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 { a as tableFor } from "./compile-
|
|
23
|
-
import { i as tableNames, r as tableNameOf } from "./tables-
|
|
21
|
+
import { t as ownershipRules } from "./ownership-CCgncSLb.js";
|
|
22
|
+
import { a as tableFor } from "./compile-BWOrvhGt.js";
|
|
23
|
+
import { i as tableNames, r as tableNameOf } from "./tables-E-dIHUN_.js";
|
|
24
24
|
import { l as policyLevels } from "./policy-CZBJDcTx.js";
|
|
25
25
|
import { p as scopeField } from "./tenancy-B5Xxt9Sc.js";
|
|
26
26
|
import { t as requiresApproval } from "./approval-required-B-R4Yw3J.js";
|
|
27
27
|
import { o as sqlFiles } from "./files-DAR51W3J.js";
|
|
28
28
|
import { o as parseSqlLenient } from "./ast-Dnm2TOHN.js";
|
|
29
|
-
import { n as resolveSchemas } from "./supabase-schemas-
|
|
29
|
+
import { n as resolveSchemas } from "./supabase-schemas-D6ezN5Ln.js";
|
|
30
30
|
import { existsSync, readFileSync } from "node:fs";
|
|
31
31
|
import { join, resolve } from "node:path";
|
|
32
32
|
// src/cli/powersync/claims.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-DW7seEgS.js");
|
|
28
28
|
return runPowerSync({
|
|
29
29
|
cwd: ctx.cwd,
|
|
30
30
|
config: ctx.config,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { i as powersyncFiles, r as publicationPath, t as runPowerSync } from "./powersync-
|
|
1
|
+
export { i as powersyncFiles, r as publicationPath, t as runPowerSync } from "./powersync-C1OW6iVd.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { n as CliError } from "./errors-DgLOqc6j.js";
|
|
2
2
|
import { i as refuseDirty, t as applyFiles } from "./files-DuV7wRim.js";
|
|
3
3
|
import { a as rel } from "./files-DAR51W3J.js";
|
|
4
|
-
import { t as genFiles } from "./gen-
|
|
5
|
-
import { t as projectContext } from "./context-
|
|
6
|
-
import { t as emitPluginFiles } from "./pipeline-
|
|
4
|
+
import { t as genFiles } from "./gen-D85_gUOz.js";
|
|
5
|
+
import { t as projectContext } from "./context-DntIOpzS.js";
|
|
6
|
+
import { t as emitPluginFiles } from "./pipeline-DGFc6y6x.js";
|
|
7
7
|
import { n as isPermDockPlugin } from "./plugin-MQVfUBUS.js";
|
|
8
8
|
import { S as restatedFacts, c as withDerivedDefaults, o as readParsedConfig, t as configFileIn } from "./config-Dan6vcvj.js";
|
|
9
9
|
import { c as requirePolicy } from "./load-m7jmit3y.js";
|
|
10
10
|
import { n as restatedDefaults, r as withoutPath } from "./resolve-config-Cu_mE2wt.js";
|
|
11
11
|
import { n as writtenPaths, t as configProperty } from "./config-paths-CQvGng3k.js";
|
|
12
12
|
import { r as removeProperty, t as applyEditsStrict } from "./edits-CqU8s2GC.js";
|
|
13
|
-
import { n as commandFor } from "./compile-
|
|
13
|
+
import { n as commandFor } from "./compile-BWOrvhGt.js";
|
|
14
14
|
import { r as schemaTables, t as restatedSchemaDefaults } from "./schema-tables-Ba9LE_XB.js";
|
|
15
15
|
import { readFileSync } from "node:fs";
|
|
16
16
|
// src/cli/codemod/prune-config.ts
|
|
@@ -4,7 +4,7 @@ import { n as parseSupabaseManifest } from "./manifest-teSfgeqF.js";
|
|
|
4
4
|
import { o as formatCatalogJson } from "./catalog-doc-BX97oFAn.js";
|
|
5
5
|
import { t as catalogPath } from "./catalog-path-bG0XxHMu.js";
|
|
6
6
|
import { a as describeError } from "./errors-DgLOqc6j.js";
|
|
7
|
-
import { o as nonEmptyOr } from "./output-
|
|
7
|
+
import { o as nonEmptyOr } from "./output-ONUzppLo.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-C851tQak.js";
|
|
@@ -10,7 +10,7 @@ import { n as isForbiddenKey } from "./paths-CeS_gpHf.js";
|
|
|
10
10
|
import { i as qualifySqlTable } from "./sql-T4GaBh9X.js";
|
|
11
11
|
import { u as isoAt } from "./time-r0CKBm57.js";
|
|
12
12
|
import { u as isSqlFunctionField } from "./refs-Cix9Zjis.js";
|
|
13
|
-
import { K as activeUserSql, U as activeInstancesSql, W as activeMembershipSql, c as memoUserSql, g as memoHitList, y as memoizes } from "./interactive-only-
|
|
13
|
+
import { K as activeUserSql, U as activeInstancesSql, W as activeMembershipSql, c as memoUserSql, g as memoHitList, y as memoizes } from "./interactive-only-C9NQJXpi.js";
|
|
14
14
|
import { S as sqlType, a as kindFilterSql, b as idTypeOf, c as roleKindSql, d as subjectClaimSql, f as subjectIdSql, h as CLAIM, i as keyTenantSql, o as liveSessionSql, p as tenantClaimSql, s as memberVia, u as subjectClaimJsonSql } from "./subject-B7p94Y0s.js";
|
|
15
15
|
import { S as scopeTable, _ as memberRoleOf, a as graphSqlText, b as restrictedHelper, d as linkHelper, h as memberIdsHelper, l as inheritedRowsHelper, n as CLOSURE, r as graphHelper, x as scopeSources } from "./names-DwGleRKB.js";
|
|
16
16
|
import { a as quoteIdent, c as quoteTable, i as qualified, l as textArrayLiteral, o as quoteLiteral, r as helperSchema, s as quoteQualified } from "./quote-LNaBdCGA.js";
|
|
@@ -3,9 +3,9 @@ import "./sources-C6Id63F8.js";
|
|
|
3
3
|
import { i as configError, n as CliError } from "./errors-DgLOqc6j.js";
|
|
4
4
|
import { i as refuseDirty, n as fileSummary, t as applyFiles } from "./files-DuV7wRim.js";
|
|
5
5
|
import { a as loadModule, r as leavesOf, s as pickNamed, t as asPermissionTree } from "./load-m7jmit3y.js";
|
|
6
|
-
import { a as resolveAuthorize } from "./rbac-
|
|
6
|
+
import { a as resolveAuthorize } from "./rbac-ByuGspKZ.js";
|
|
7
7
|
import { a as customRolesOn, t as CUSTOM_ROLES } from "./shared-DnVY767H.js";
|
|
8
|
-
import { n as legacyKeySql } from "./custom-role-rebuild-
|
|
8
|
+
import { n as legacyKeySql } from "./custom-role-rebuild-BwM6hBqt.js";
|
|
9
9
|
import { n as byKey } from "./compare-8SNJN-9U.js";
|
|
10
10
|
import { a as quoteIdent, o as quoteLiteral } from "./quote-LNaBdCGA.js";
|
|
11
11
|
import { a as nameOf, o as nodes, r as child, u as walk } from "./ast-CAOxvn9t.js";
|
|
@@ -5,11 +5,11 @@ import "./budget-BH81q2cj.js";
|
|
|
5
5
|
import "./sources-C6Id63F8.js";
|
|
6
6
|
import { i as configError } from "./errors-DgLOqc6j.js";
|
|
7
7
|
import { t as FIELD_VIEWS } from "./fields-CKX-qjWb.js";
|
|
8
|
-
import { C as forUserContext, d as permittedByPermissionHelper, et as graphPlan, i as tableNames, o as PERMISSION_HELPERS, p as holderSources, s as checkName, w as grantBodies } from "./tables-
|
|
8
|
+
import { C as forUserContext, d as permittedByPermissionHelper, et as graphPlan, i as tableNames, o as PERMISSION_HELPERS, p as holderSources, s as checkName, w as grantBodies } from "./tables-E-dIHUN_.js";
|
|
9
9
|
import { b as idTypeOf, x as scopeTypeOf } from "./subject-B7p94Y0s.js";
|
|
10
10
|
import { S as scopeTable, b as restrictedHelper, c as hasPermittedUsers, f as memberForHelper, g as memberOfHelper, h as memberIdsHelper, i as graphSqlName, l as inheritedRowsHelper, r as graphHelper, u as isTeamScope, v as permittedForHelper, y as permittedIdsHelper } from "./names-DwGleRKB.js";
|
|
11
11
|
import { a as quoteIdent, i as qualified, o as quoteLiteral, s as quoteQualified } from "./quote-LNaBdCGA.js";
|
|
12
|
-
import { D as globalRoleRows, m as holderBody } from "./interactive-only-
|
|
12
|
+
import { D as globalRoleRows, m as holderBody } from "./interactive-only-C9NQJXpi.js";
|
|
13
13
|
// src/cli/rls/permission-holders.ts
|
|
14
14
|
/**
|
|
15
15
|
* `permitted_<scope>_users(p_permission, p_id)`. Names are part of the SQL
|
|
@@ -194,7 +194,7 @@ async function rlsInput(ctx, verb, shape, options) {
|
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
196
|
async function runRls(input) {
|
|
197
|
-
return (await import("./rls-
|
|
197
|
+
return (await import("./rls-JSxuWcf-.js")).runRls(input);
|
|
198
198
|
}
|
|
199
199
|
({
|
|
200
200
|
...shapeFlags,
|
|
@@ -305,7 +305,7 @@ const report = defineLeaf({
|
|
|
305
305
|
const [{ runRlsReport }, { pgConnector }, { configuredTableReads }] = await Promise.all([
|
|
306
306
|
import("./report-Dp-ApWVC.js"),
|
|
307
307
|
import("./pg-DtiDogUp.js"),
|
|
308
|
-
import("./table-reads-
|
|
308
|
+
import("./table-reads-DHB56kFZ.js")
|
|
309
309
|
]);
|
|
310
310
|
return runRlsReport({
|
|
311
311
|
cwd: ctx.cwd,
|
|
@@ -349,7 +349,7 @@ const measure = defineLeaf({
|
|
|
349
349
|
if (db === void 0) throw missingInput("rls measure", ["--db-url-stdin", "--local"], "the database to run requests against");
|
|
350
350
|
const tenant = given(flags.tenant);
|
|
351
351
|
const [{ runRlsMeasure, DEFAULT_REQUESTS, DEFAULT_TABLES }, { pgConnector }, { positiveInteger }] = await Promise.all([
|
|
352
|
-
import("./measure-
|
|
352
|
+
import("./measure-DJl28Whs.js"),
|
|
353
353
|
import("./pg-DtiDogUp.js"),
|
|
354
354
|
import("./memberships-DiCbNRny.js")
|
|
355
355
|
]);
|
|
@@ -2,19 +2,19 @@ import "./sources-C6Id63F8.js";
|
|
|
2
2
|
import { a as describeError, f as usageResult, o as exitCodeOfError } from "./errors-DgLOqc6j.js";
|
|
3
3
|
import { n as openPgPool, r as pgConnector, t as connectPgPool } from "./pg-DmS5ITHu.js";
|
|
4
4
|
import { i as taggedAccessPolicies } from "./bsb-access-Bcw6GrQm.js";
|
|
5
|
-
import { n as resolveSchemas, r as schemasRefusal, t as isSupabaseSchemas } from "./supabase-schemas-
|
|
6
|
-
import { o as nonEmptyOr } from "./output-
|
|
5
|
+
import { n as resolveSchemas, r as schemasRefusal, t as isSupabaseSchemas } from "./supabase-schemas-D6ezN5Ln.js";
|
|
6
|
+
import { o as nonEmptyOr } from "./output-ONUzppLo.js";
|
|
7
7
|
import { n as packageManagerOf, t as addLine } from "./peer-D77JpXe-.js";
|
|
8
|
-
import { n as describeExplain, t as runRlsGenerate } from "./generate-
|
|
9
|
-
import { c as INDEX_COLUMNS_SQL, f as readTableIndexFacts, s as COLUMNS_SQL } from "./compile-
|
|
8
|
+
import { n as describeExplain, t as runRlsGenerate } from "./generate-BnOSZLka.js";
|
|
9
|
+
import { c as INDEX_COLUMNS_SQL, f as readTableIndexFacts, s as COLUMNS_SQL } from "./compile-BWOrvhGt.js";
|
|
10
10
|
import { r as escapeSqlIdent } from "./sql-T4GaBh9X.js";
|
|
11
11
|
import { t as beforeFirst } from "./text-D704xHVl.js";
|
|
12
12
|
import { a as conditionShown, i as callsHelper, o as helperCallKeys, t as HELPER_TABLES } from "./helper-calls-DN1PJcNY.js";
|
|
13
13
|
import { u as isPlatformSchema } from "./report-x9GeUvjx.js";
|
|
14
14
|
import { c as ACTOR_MAY_WRITE, p as readOnlyActorKinds } from "./fields-CKX-qjWb.js";
|
|
15
|
-
import { a as verifyResult, i as verifyIgnores, n as runRlsVerify, r as rlsFinding } from "./verify-
|
|
16
|
-
import { r as parseRbacAuthorize } from "./rbac-
|
|
17
|
-
import { n as configuredTableReads } from "./table-reads
|
|
15
|
+
import { a as verifyResult, i as verifyIgnores, n as runRlsVerify, r as rlsFinding } from "./verify-CHlmYg2d.js";
|
|
16
|
+
import { r as parseRbacAuthorize } from "./rbac-ByuGspKZ.js";
|
|
17
|
+
import { n as configuredTableReads } from "./table-reads-Doh_Egx2.js";
|
|
18
18
|
import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
19
19
|
import { a as rel, o as sqlFiles } from "./files-DAR51W3J.js";
|
|
20
20
|
import { t as importFromApp } from "./app-peer-BnMh5lqz.js";
|
|
@@ -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-8lfALMSU.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-BnOSZLka.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) {
|
|
@@ -3,9 +3,9 @@ import { a as readConfig, l as withPluginOutputs, s as resolveCwd } 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-BSpXxMnb.js";
|
|
6
|
-
import { a as githubAnnotations, c as sarifLog, d as consentReasons, f as quote, i as findingsDocument, l as confirmationRequired, n as errorDocument, p as replayArgv, s as resultDocument, t as dataOf, u as consentDigest } from "./output-
|
|
6
|
+
import { a as githubAnnotations, c as sarifLog, d as consentReasons, f as quote, i as findingsDocument, l as confirmationRequired, n as errorDocument, p as replayArgv, s as resultDocument, t as dataOf, u as consentDigest } from "./output-ONUzppLo.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-CMh8sAAH.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";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as run } from "./run-BgNlYtQJ.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-CkkOzkXs.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-DBXhfpuK.js";
|
|
2
2
|
import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
3
3
|
import { t as DRAFT_PINS } from "./pins-CXXkVEiD.js";
|
|
4
|
-
import { o as nonEmptyOr } from "./output-
|
|
4
|
+
import { o as nonEmptyOr } from "./output-ONUzppLo.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-BSpXxMnb.js";
|
|
3
|
-
import { o as nonEmptyOr } from "./output-
|
|
3
|
+
import { o as nonEmptyOr } from "./output-ONUzppLo.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-DQzNPxg1.js";
|
|
3
3
|
import { r as pick, t as CANCELLED } from "./prompt-CPlJn_4-.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-D4ItrS0F.js";
|
|
5
5
|
// src/cli/commands/skills.ts
|
|
6
6
|
const forFlag = { for: {
|
|
7
7
|
type: "string",
|
|
@@ -20,7 +20,7 @@ const inspect = defineLeaf({
|
|
|
20
20
|
},
|
|
21
21
|
async run(ctx, { flags }) {
|
|
22
22
|
if (flags.functions !== void 0) {
|
|
23
|
-
const { inspectFunctions } = await import("./inspect-functions-
|
|
23
|
+
const { inspectFunctions } = await import("./inspect-functions-GXdyPFwI.js");
|
|
24
24
|
return inspectFunctions({
|
|
25
25
|
cwd: ctx.cwd,
|
|
26
26
|
config: ctx.config,
|
|
@@ -29,7 +29,7 @@ const inspect = defineLeaf({
|
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
const out = flags.out === "" ? true : flags.out === "-" ? void 0 : flags.out;
|
|
32
|
-
const { runSupabase } = await import("./supabase-hook-
|
|
32
|
+
const { runSupabase } = await import("./supabase-hook-BTiZ8LTJ.js");
|
|
33
33
|
return runSupabase({
|
|
34
34
|
cwd: ctx.cwd,
|
|
35
35
|
config: ctx.config,
|
|
@@ -5,13 +5,13 @@ import { _ as writeOutputFiles, d as pgDeltaPath, g as underSchemaDir, h as serv
|
|
|
5
5
|
import { i as readJsonFile, o as sqlFiles, s as writeFileEnsuringDir } from "./files-DAR51W3J.js";
|
|
6
6
|
import { n as formatManifestJson, t as MANIFEST_FILE } from "./manifest-json-DMaBWmcG.js";
|
|
7
7
|
import { c as requirePolicy } from "./load-m7jmit3y.js";
|
|
8
|
-
import { a as tryKeyReasons } from "./tenant-check-
|
|
9
|
-
import { n as hookUri } from "./rbac-
|
|
10
|
-
import { a as withTableReads } from "./table-reads
|
|
11
|
-
import { a as supabaseHookSql, c as asideAuthzReceive, d as declarativeSql, i as supabaseHookManifest, l as configToml, n as hooklessDatabase, o as defaultOut, r as supabaseDatabaseManifest, s as hookMarker, t as grantsLabel } from "./hook-sql-
|
|
8
|
+
import { a as tryKeyReasons } from "./tenant-check-DGfE7Sns.js";
|
|
9
|
+
import { n as hookUri } from "./rbac-ByuGspKZ.js";
|
|
10
|
+
import { a as withTableReads } from "./table-reads-Doh_Egx2.js";
|
|
11
|
+
import { a as supabaseHookSql, c as asideAuthzReceive, d as declarativeSql, i as supabaseHookManifest, l as configToml, n as hooklessDatabase, o as defaultOut, r as supabaseDatabaseManifest, s as hookMarker, t as grantsLabel } from "./hook-sql-BQcxbOzi.js";
|
|
12
12
|
import { r as HOOK_MARKER, s as hookMarkerFields } from "./markers-C-kThnKN.js";
|
|
13
13
|
import { i as withSchemaDefaults } from "./schema-tables-Ba9LE_XB.js";
|
|
14
|
-
import { l as supabaseConfig, n as resolveSchemas, r as schemasRefusal, t as isSupabaseSchemas } from "./supabase-schemas-
|
|
14
|
+
import { l as supabaseConfig, n as resolveSchemas, r as schemasRefusal, t as isSupabaseSchemas } from "./supabase-schemas-D6ezN5Ln.js";
|
|
15
15
|
import { t as readMemberships } from "./read-memberships-DVBitJZG.js";
|
|
16
16
|
import { r as pgConnector } from "./pg-DmS5ITHu.js";
|
|
17
17
|
import { n as MIGRATION_DIRS } from "./constants-PCJiir_3.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./sources-C6Id63F8.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-ByuGspKZ.js";
|
|
4
4
|
import { n as supabaseDir, t as supabaseConfigFile } from "./supabase-dir-0lxKbrYu.js";
|
|
5
5
|
import { existsSync, readFileSync } from "node:fs";
|
|
6
6
|
import { join, posix } from "node:path";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as committedManifest, n as configuredTableReads, r as manifestTableReads, i as tableReads, a as withTableReads } from "./table-reads
|
|
1
|
+
export { t as committedManifest, n as configuredTableReads, r as manifestTableReads, i as tableReads, a as withTableReads } from "./table-reads-Doh_Egx2.js";
|
|
@@ -7,7 +7,7 @@ import { i as loadConfiguredPolicy } from "./load-m7jmit3y.js";
|
|
|
7
7
|
import { a as parseSqlFile, c as readPolicy, d as sqlCalls, f as stringValues, t as SqlSyntaxError } from "./ast-Dnm2TOHN.js";
|
|
8
8
|
import { i as taggedAccessPolicies } from "./bsb-access-Bcw6GrQm.js";
|
|
9
9
|
import { a as droppedPolicy, s as reportFiles, u as isPlatformSchema } from "./report-x9GeUvjx.js";
|
|
10
|
-
import { a as tryKeyReasons, n as tenantCheck, r as keyReason, t as svals } from "./tenant-check-
|
|
10
|
+
import { a as tryKeyReasons, n as tenantCheck, r as keyReason, t as svals } from "./tenant-check-DGfE7Sns.js";
|
|
11
11
|
import { existsSync, readFileSync } from "node:fs";
|
|
12
12
|
import { join, relative } from "node:path";
|
|
13
13
|
// src/cli/rls/shared-functions.ts
|
|
@@ -15,7 +15,7 @@ import { t as IDENTITY_SCOPES } from "./identity-scopes-CRVAV0HU.js";
|
|
|
15
15
|
import { a as quoteIdent, c as quoteTable, i as qualified, o as quoteLiteral, r as helperSchema, s as quoteQualified } from "./quote-LNaBdCGA.js";
|
|
16
16
|
import { C as tenantTypeOf, a as kindFilterSql, b as idTypeOf, c as roleKindSql, d as subjectClaimSql, f as subjectIdSql, i as keyTenantSql, m as userIdHelperSql, s as memberVia, u as subjectClaimJsonSql, x as scopeTypeOf } from "./subject-B7p94Y0s.js";
|
|
17
17
|
import { i as allowEntry, n as GLOBAL_ROLES, o as rootName, r as HELPERS, s as signedIn, t as CUSTOM_ROLES } from "./shared-DnVY767H.js";
|
|
18
|
-
import { B as rolesTableScope, C as sourceRows, E as sqlBody, F as customRolesSql, G as activeRowSql, H as trustedReaderGrants, I as hasCustomRoleChecksFor, J as grantPermissionSql, K as activeUserSql, L as perScope, M as userActive, N as globalRoleSource, O as instancesActive, P as currentKeyExpr, R as raiseSql, S as sourceIdOf, T as sourcesKeep, U as activeInstancesSql, V as storedTenant, W as activeMembershipSql, _ as memoWriteSql, b as scopedBody, c as memoUserSql, d as disabledColumn, f as functionBody, g as memoHitList, h as memberColumn, i as interactiveAllowsSql, k as keyTenantLine, l as claimKeptLines, n as delegatedGlobalSql, o as interactiveSessionSql, p as hasBody, r as interactiveAllowsCall, s as memoGlobalUserSql, u as claimTenant, v as memoizedSetofSql, w as sourcesBodyOf, x as sourceFilters, y as memoizes, z as roleReadersSql } from "./interactive-only-
|
|
18
|
+
import { B as rolesTableScope, C as sourceRows, E as sqlBody, F as customRolesSql, G as activeRowSql, H as trustedReaderGrants, I as hasCustomRoleChecksFor, J as grantPermissionSql, K as activeUserSql, L as perScope, M as userActive, N as globalRoleSource, O as instancesActive, P as currentKeyExpr, R as raiseSql, S as sourceIdOf, T as sourcesKeep, U as activeInstancesSql, V as storedTenant, W as activeMembershipSql, _ as memoWriteSql, b as scopedBody, c as memoUserSql, d as disabledColumn, f as functionBody, g as memoHitList, h as memberColumn, i as interactiveAllowsSql, k as keyTenantLine, l as claimKeptLines, n as delegatedGlobalSql, o as interactiveSessionSql, p as hasBody, r as interactiveAllowsCall, s as memoGlobalUserSql, u as claimTenant, v as memoizedSetofSql, w as sourcesBodyOf, x as sourceFilters, y as memoizes, z as roleReadersSql } from "./interactive-only-C9NQJXpi.js";
|
|
19
19
|
import { S as scopeTable, _ as memberRoleOf, a as graphSqlText, b as restrictedHelper, d as linkHelper, f as memberForHelper, g as memberOfHelper, h as memberIdsHelper, i as graphSqlName, n as CLOSURE, o as hasMemberFor, p as memberForSources, r as graphHelper, s as hasMemberOf, u as isTeamScope, v as permittedForHelper, x as scopeSources, y as permittedIdsHelper } from "./names-DwGleRKB.js";
|
|
20
20
|
import { n as byKey, t as byCodeUnit } from "./compare-8SNJN-9U.js";
|
|
21
21
|
import { createHash } from "node:crypto";
|
|
@@ -1889,7 +1889,7 @@ function memberForFunction(ctx, scope, type) {
|
|
|
1889
1889
|
const types = team ? "uuid, text" : "uuid";
|
|
1890
1890
|
return `${team ? `drop function if exists ${fn}(uuid);\n` : ""}create or replace function ${fn}(p_user uuid${team ? ", p_active text default null" : ""})
|
|
1891
1891
|
returns setof ${type}
|
|
1892
|
-
${functionBody(body)}
|
|
1892
|
+
${functionBody(body, false, false, true)}
|
|
1893
1893
|
revoke execute on function ${fn}(${types}) from public, anon, authenticated;
|
|
1894
1894
|
${authAdminGrants([`grant usage on schema ${quoteIdent(helperSchema(ctx))} to supabase_auth_admin;`, `grant execute on function ${fn}(${types}) to supabase_auth_admin;`])}`;
|
|
1895
1895
|
}
|
|
@@ -1946,7 +1946,7 @@ function memberOfFunction(ctx, scope, type) {
|
|
|
1946
1946
|
returns setof ${type}
|
|
1947
1947
|
${functionBody(sqlBody(` select m.id
|
|
1948
1948
|
from ${qualified(ctx, memberForHelper(scope))}(p_user) as m(id)
|
|
1949
|
-
where p_user = ${subjectIdSql(ctx)}`))}
|
|
1949
|
+
where p_user = ${subjectIdSql(ctx)}`), false, false, true)}
|
|
1950
1950
|
revoke execute on function ${fn}(uuid) from public, anon;
|
|
1951
1951
|
grant execute on function ${fn}(uuid) to authenticated;`;
|
|
1952
1952
|
}
|
|
@@ -3272,7 +3272,7 @@ function heldSql(at, effect) {
|
|
|
3272
3272
|
function keysFunction(fn, params, body, access, parallelSafe) {
|
|
3273
3273
|
return `create or replace function ${fn}(${params})
|
|
3274
3274
|
returns setof text
|
|
3275
|
-
${functionBody(body, parallelSafe).replace("set search_path = ''", "set search_path = ''\nset jit = off")}
|
|
3275
|
+
${functionBody(body, parallelSafe, false, true).replace("set search_path = ''", "set search_path = ''\nset jit = off")}
|
|
3276
3276
|
${access}`;
|
|
3277
3277
|
}
|
|
3278
3278
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
2
2
|
import { n as CliError } from "./errors-DgLOqc6j.js";
|
|
3
|
-
import { i as tableNames } from "./tables-
|
|
4
|
-
import { r as compileGrants } from "./compile-
|
|
5
|
-
import { i as buildContext, n as isRefusal, t as generateOptions } from "./generate-options-
|
|
3
|
+
import { i as tableNames } from "./tables-E-dIHUN_.js";
|
|
4
|
+
import { r as compileGrants } from "./compile-BWOrvhGt.js";
|
|
5
|
+
import { i as buildContext, n as isRefusal, t as generateOptions } from "./generate-options-eMjRViev.js";
|
|
6
6
|
// src/cli/rls/key-reasons.ts
|
|
7
7
|
/** A grant key written as a condition group (`k#1`) or a level (`k@own`). */
|
|
8
8
|
function isConditionKey(permission, grantKey) {
|
|
@@ -2,8 +2,8 @@ import { a as getResource } from "./permission-registry-DstT40VS.js";
|
|
|
2
2
|
import { c as jsonSchemaOf } from "./catalog-doc-BX97oFAn.js";
|
|
3
3
|
import { r as runCollect } from "./collect-Co-w8Eg2.js";
|
|
4
4
|
import { f as usageResult } from "./errors-DgLOqc6j.js";
|
|
5
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
6
|
-
import { r as findingOf } from "./output-
|
|
5
|
+
import { t as DOCS_BASE } from "./manifest-CMh8sAAH.js";
|
|
6
|
+
import { r as findingOf } from "./output-ONUzppLo.js";
|
|
7
7
|
import { o as USAGE_REPORT_SCHEMA } from "./version-D-jWyJb9.js";
|
|
8
8
|
import { n as jiti, r as parseSync, t as createVisitor } from "./optional-CaQWp9HA.js";
|
|
9
9
|
import { a as rel, r as listSourceFiles } from "./files-DAR51W3J.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as runUsage } from "./usage-CX_wmL5W.js";
|
|
@@ -7,15 +7,15 @@ import { s as writeFileEnsuringDir } from "./files-DAR51W3J.js";
|
|
|
7
7
|
import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-3aUUP6Nx.js";
|
|
8
8
|
import { r as pgConnector } from "./pg-DmS5ITHu.js";
|
|
9
9
|
import { o as loadPolicyAt } from "./load-m7jmit3y.js";
|
|
10
|
-
import { n as commandFor } from "./compile-
|
|
10
|
+
import { n as commandFor } from "./compile-BWOrvhGt.js";
|
|
11
11
|
import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
12
12
|
import { n as policyRowConditionKeys } from "./row-conditions-BjARoFLU.js";
|
|
13
13
|
import { c as rootScope, d as scopeList, o as normalizeMemberships } from "./scopes-B-KX9EI8.js";
|
|
14
14
|
import { c as helperTablePoliciesFromRows, l as rowConditionMessage, n as HELPER_TABLE_POLICIES_SQL } from "./helper-calls-DN1PJcNY.js";
|
|
15
15
|
import { a as quoteIdent, c as quoteTable, o as quoteLiteral, s as quoteQualified } from "./quote-LNaBdCGA.js";
|
|
16
|
-
import { et as graphPlan, i as tableNames, r as tableNameOf } from "./tables-
|
|
16
|
+
import { et as graphPlan, i as tableNames, r as tableNameOf } from "./tables-E-dIHUN_.js";
|
|
17
17
|
import { s as viewName, t as FIELD_VIEWS } from "./fields-CKX-qjWb.js";
|
|
18
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
18
|
+
import { t as DOCS_BASE } from "./manifest-CMh8sAAH.js";
|
|
19
19
|
import { C as membershipsClaim, g as customRoleScope } from "./evaluate-DNz6wMYv.js";
|
|
20
20
|
import { n as defaultSqlCommand, t as SQL_IDENT } from "./sql-T4GaBh9X.js";
|
|
21
21
|
import "./budget-BH81q2cj.js";
|
|
@@ -2,7 +2,7 @@ import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
|
2
2
|
import { i as dateAt } from "./time-r0CKBm57.js";
|
|
3
3
|
import { a as describeError, n as CliError } from "./errors-DgLOqc6j.js";
|
|
4
4
|
import { n as createChangeScheduler } from "./watch-BFDMb5N4.js";
|
|
5
|
-
import { n as receiptRows } from "./pipeline-
|
|
5
|
+
import { n as receiptRows } from "./pipeline-DGFc6y6x.js";
|
|
6
6
|
import { existsSync } from "node:fs";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
8
8
|
import { Worker } from "node:worker_threads";
|
package/package.json
CHANGED
package/dist/gen-D-orrO2e.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { n as renderKinds } from "./gen-CTRqv1H2.js";
|
package/dist/pull-CNMED72E.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { n as runCloudPull } from "./pull-A1SkxAyb.js";
|
package/dist/run-iPVAxorh.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as run } from "./run-CbJPONx5.js";
|
package/dist/usage-Bwl8YAmq.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as runUsage } from "./usage-7Hwk_akY.js";
|