permdock 0.26.0 → 0.27.0
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-b0_Xpab8.js → adoption-scan-CMghLDUG.js} +1 -1
- package/dist/{arazzo-DMmcumRx.js → arazzo-B8heXoYy.js} +1 -1
- package/dist/{arazzo-Hxerfx3_.js → arazzo-DdJBVrsy.js} +1 -1
- package/dist/{casbin-CYwbggCS.js → casbin-BHYVxJDD.js} +1 -1
- package/dist/{casbin-Co1KcLWU.js → casbin-D33ZeUf5.js} +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cli/generate/watch-worker.js +1 -1
- package/dist/cli/index.d.ts +2 -2
- package/dist/cli/index.js +1 -1
- package/dist/cli/plugins/app.d.ts +10 -4
- package/dist/cli/plugins/app.js +15 -5
- package/dist/cli/plugins/better-supabase.d.ts +1 -1
- package/dist/cli/plugins/openapi.d.ts +1 -1
- package/dist/cli/plugins/openapi.js +1 -1
- package/dist/cli/plugins/powersync.d.ts +1 -1
- package/dist/cli/plugins/powersync.js +1 -1
- package/dist/cli/plugins/rls.d.ts +2 -2
- package/dist/cli/plugins/rls.js +1 -1
- package/dist/cli/plugins/schemas.d.ts +1 -1
- package/dist/cli/plugins/schemas.js +1 -1
- package/dist/cli/plugins/scim.d.ts +2 -2
- package/dist/cli/plugins/supabase-hook.d.ts +2 -2
- package/dist/cli/plugins/supabase-hook.js +1 -1
- package/dist/cli/plugins/supabase.d.ts +3 -3
- package/dist/cli/plugins/supabase.js +2 -2
- package/dist/cli/plugins/ui.d.ts +1 -1
- package/dist/cli/plugins/ui.js +1 -1
- package/dist/{cloud-BfEI9TLS.js → cloud-BmQrcTvx.js} +1 -1
- package/dist/{codemod-DwH0IZ2x.js → codemod-BpjMjxly.js} +1 -1
- package/dist/{codemod-p67ePW25.js → codemod-C_NKj01W.js} +2 -2
- package/dist/{compile-Blrr5WWw.js → compile-Dy3zMRxo.js} +1 -1
- package/dist/{completion-CfrZOGcB.js → completion-CSncf6cX.js} +1 -1
- package/dist/{config-report-BaHEBpt-.js → config-report-D607UDnv.js} +1 -1
- package/dist/{config-D6gh_xvs.js → config-xiX3R65I.js} +1 -1
- package/dist/{doctor-Bg12v-8M.js → doctor-BhoJiHi0.js} +13 -13
- package/dist/{doctor-DCsyH7YR.js → doctor-CoKSRLhf.js} +2 -2
- package/dist/{execute-SN8_dlch.js → execute-CyQLisIB.js} +1 -1
- package/dist/{gen-B4GUqsfM.js → gen-CJE3Xud5.js} +31 -23
- package/dist/gen-WzJbAcMJ.js +1 -0
- package/dist/{gen-kind-Bahz_i3U.js → gen-kind-DGQxmID0.js} +3 -1
- package/dist/{generate-CbtjKcjn.js → generate-DF6Y8ncI.js} +1 -1
- package/dist/{generate-B-msjuaO.js → generate-DIZNzMuk.js} +8 -8
- package/dist/{generate-options-BDgadlwe.js → generate-options-CLPUvgVW.js} +112 -31
- package/dist/{hook-sql-BIR4fL7i.js → hook-sql-FSets5NB.js} +3 -3
- package/dist/{import-BZi1tZxq.js → import-DemSCI1R.js} +1 -1
- package/dist/{init-K3tKOwf4.js → init-BlYRZRnQ.js} +3 -3
- package/dist/{init-9cqnSJWG.js → init-CgoOwXtk.js} +1 -1
- package/dist/{login-C1I5KIsK.js → login-CNQJN8Fy.js} +3 -3
- package/dist/{login-CP0UxnLw.js → login-TwrSjf6k.js} +1 -1
- package/dist/{manifest-DvS2IoXo.js → manifest-XIXxXYty.js} +30 -30
- package/dist/next/plugin.d.ts +1 -1
- package/dist/{openapi-BT5XY7HY.js → openapi-CH9Dh5UX.js} +1 -1
- package/dist/{openapi-BHqqNSoG.js → openapi-CrCBEFEm.js} +1 -1
- package/dist/{openapi-document-Ca5yAjc6.js → openapi-document-CJO6cUS1.js} +1 -1
- package/dist/{output-djxu62oH.js → output-CU7OppLv.js} +1 -1
- package/dist/{ownership-BO0sI5FB.js → ownership-BBQe7GZp.js} +1 -1
- package/dist/{plugin-DGmbeXwA.d.ts → plugin-1XW5OfAZ.d.ts} +1 -1
- package/dist/{policy-BhSUlHRr.js → policy-FrCL4wDQ.js} +1 -1
- package/dist/{policy-bundle-97xaDULc.js → policy-bundle-1Znzdxse.js} +3 -3
- package/dist/{powersync-m9uYgCFF.js → powersync-DVgkPQKM.js} +1 -1
- package/dist/{powersync-CN7IQIKk.js → powersync-Y-_z8V5X.js} +1 -1
- package/dist/{powersync-DdDLP02A.js → powersync-pbvC5g6K.js} +4 -4
- package/dist/pull-C3_fCkgX.js +1 -0
- package/dist/{pull-9oQvY18T.js → pull-CpLyeY2p.js} +1 -1
- package/dist/{resolve-names-Cmg6SPAa.js → resolve-names-Ca4ClMU2.js} +1 -1
- package/dist/{rls-BrsMogAP.js → rls-CmyxiQsS.js} +1 -1
- package/dist/{rls-Cv1V8YfI.js → rls-DY5ITGzf.js} +5 -5
- package/dist/{rls-files-Bj446vbj.js → rls-files-BtaUXVp-.js} +1 -1
- package/dist/{rls-options-Dpj_pEyU.d.ts → rls-options-CEpg5nDP.d.ts} +1 -1
- package/dist/{run-DX4D6S6V.js → run-BoVUFspr.js} +2 -2
- package/dist/run-BriRChKE.js +1 -0
- package/dist/{scan-Cj7PQLrS.js → scan-C4x8UqS7.js} +1 -1
- package/dist/{schema-CJPvTfeN.js → schema-Zfpbku8U.js} +1 -1
- package/dist/{skills-Cr1C0b9D.js → skills-B0cLRZ7w.js} +1 -1
- package/dist/{skills-B5bc6JIA.js → skills-DiGdMvMw.js} +1 -1
- package/dist/{supabase-BG1HPdQU.js → supabase-B7Q5bO-P.js} +1 -1
- package/dist/supabase-hook-C7FNwQ1p.js +2 -0
- package/dist/{supabase-hook-tdR45aXY.js → supabase-hook-loL2iJVb.js} +1 -1
- package/dist/{tables-CRTCBuFi.js → tables-C8IwkTHq.js} +17 -8
- package/dist/{types-D8VXQxKL.d.ts → types-nXo_oQYk.d.ts} +6 -2
- package/dist/unplugin/index.d.ts +1 -1
- package/dist/{usage-B-E747wO.js → usage-BgNAgZfj.js} +1 -1
- package/dist/usage-D6HUlfvP.js +1 -0
- package/dist/{usage-B7nx0_aa.js → usage-llSQehNg.js} +2 -2
- package/dist/{verify-9HObfifg.js → verify-nMTdEqBB.js} +3 -3
- package/package.json +1 -1
- package/dist/gen-BC66z5Fd.js +0 -1
- package/dist/pull-jvJPMQhP.js +0 -1
- package/dist/run-decqEKNa.js +0 -1
- package/dist/supabase-hook-hd9abKy4.js +0 -2
- package/dist/usage-rqQ9ViXv.js +0 -1
|
@@ -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-XIXxXYty.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";
|
|
@@ -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-B8heXoYy.js")).runArazzo({
|
|
25
25
|
cwd: ctx.cwd,
|
|
26
26
|
config: ctx.config,
|
|
27
27
|
doc: given(flags.doc),
|
|
@@ -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-D33ZeUf5.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-CU7OppLv.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-BriRChKE.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-CyQLisIB.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.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { _ as RlsSuspension, a as GenKind, c as RlsActiveRow, d as RlsDialect, f as RlsFunctionMapping, g as RlsSuspendedScope, h as RlsSuspendedMembership, i as GenConfig, l as RlsApiKeys, m as RlsMemberships, n as CliIo, o as PermDockConfig, p as RlsMembershipTable, r as CollectConfig, t as CatalogConfig, u as RlsConfig, v as RlsTarget, y as RunResult } from "../types-
|
|
1
|
+
import { _ as RlsSuspension, a as GenKind, c as RlsActiveRow, d as RlsDialect, f as RlsFunctionMapping, g as RlsSuspendedScope, h as RlsSuspendedMembership, i as GenConfig, l as RlsApiKeys, m as RlsMemberships, n as CliIo, o as PermDockConfig, p as RlsMembershipTable, r as CollectConfig, t as CatalogConfig, u as RlsConfig, v as RlsTarget, y as RunResult } from "../types-nXo_oQYk.js";
|
|
2
2
|
import { o as OperationMap } from "../operations-BS8ExH5A.js";
|
|
3
3
|
import { E as PermissionTree } from "../vocabulary-FYgI_NoI.js";
|
|
4
4
|
import { a as CatalogDocument, d as CatalogRole, f as CatalogScope, l as CatalogPermission, m as CatalogUsage, n as CatalogApproval, p as CatalogSupportAccess, r as CatalogBreakGlass, t as CatalogActivation, u as CatalogResource } from "../types-CWmBZtQN.js";
|
|
5
5
|
import { D as Policy } from "../policy-types-93NwI8iI.js";
|
|
6
6
|
import { o as ResourceNameOf, r as PermissionKeyOf, s as ScopeNameOf, t as ActionNameOf } from "../type-helpers-DHCQEPj8.js";
|
|
7
|
-
import { i as PolicyModel, n as PluginTask, r as definePlugin, t as PermDockPlugin } from "../plugin-
|
|
7
|
+
import { i as PolicyModel, n as PluginTask, r as definePlugin, t as PermDockPlugin } from "../plugin-1XW5OfAZ.js";
|
|
8
8
|
import { a as pushedPolicy, i as parsePushedPolicy, n as PushedGrant, r as PushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-pH-EFWyx.js";
|
|
9
9
|
/**
|
|
10
10
|
* The absolute path `permdock collect` writes the catalog to: `collect.out`,
|
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-BoVUFspr.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 = {
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
import { t as PermDockPlugin } from "../../plugin-
|
|
1
|
+
import { t as PermDockPlugin } from "../../plugin-1XW5OfAZ.js";
|
|
2
2
|
import { n as GenKindPluginOptions, t as ConstantsPluginOptions } from "../../gen-kind-DFQnQwFN.js";
|
|
3
3
|
/**
|
|
4
|
-
* Scope, role, permission and operation names
|
|
5
|
-
*
|
|
6
|
-
* `fields.ts` with `fields`.
|
|
4
|
+
* Scope, role, permission and operation names and topic and path builders:
|
|
5
|
+
* `constants.ts`, and `fields.ts` with `fields`.
|
|
7
6
|
*/
|
|
8
7
|
export declare function constants(options?: ConstantsPluginOptions): PermDockPlugin;
|
|
8
|
+
/**
|
|
9
|
+
* The `<Resource>Row` types that the validator and factory modules import:
|
|
10
|
+
* `types.ts`.
|
|
11
|
+
*/
|
|
12
|
+
export declare function types(options?: GenKindPluginOptions): PermDockPlugin;
|
|
13
|
+
/** The server-only SQL helper and table names: `sql.ts`. */
|
|
14
|
+
export declare function sql(options?: GenKindPluginOptions): PermDockPlugin;
|
|
9
15
|
/** A row factory per resource for tests. Imports `permdock/testing`. */
|
|
10
16
|
export declare function factories(options?: GenKindPluginOptions): PermDockPlugin;
|
|
11
17
|
/**
|
package/dist/cli/plugins/app.js
CHANGED
|
@@ -1,13 +1,23 @@
|
|
|
1
|
-
import { t as kindPlugin } from "../../gen-kind-
|
|
1
|
+
import { t as kindPlugin } from "../../gen-kind-DGQxmID0.js";
|
|
2
2
|
// src/cli/plugins/app.ts
|
|
3
3
|
/**
|
|
4
|
-
* Scope, role, permission and operation names
|
|
5
|
-
*
|
|
6
|
-
* `fields.ts` with `fields`.
|
|
4
|
+
* Scope, role, permission and operation names and topic and path builders:
|
|
5
|
+
* `constants.ts`, and `fields.ts` with `fields`.
|
|
7
6
|
*/
|
|
8
7
|
function constants(options = {}) {
|
|
9
8
|
return kindPlugin("constants", options);
|
|
10
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* The `<Resource>Row` types that the validator and factory modules import:
|
|
12
|
+
* `types.ts`.
|
|
13
|
+
*/
|
|
14
|
+
function types(options = {}) {
|
|
15
|
+
return kindPlugin("types", options);
|
|
16
|
+
}
|
|
17
|
+
/** The server-only SQL helper and table names: `sql.ts`. */
|
|
18
|
+
function sql(options = {}) {
|
|
19
|
+
return kindPlugin("sql", options);
|
|
20
|
+
}
|
|
11
21
|
/** A row factory per resource for tests. Imports `permdock/testing`. */
|
|
12
22
|
function factories(options = {}) {
|
|
13
23
|
return kindPlugin("factories", options);
|
|
@@ -23,4 +33,4 @@ function bundle(options = {}) {
|
|
|
23
33
|
function messages(options = {}) {
|
|
24
34
|
return kindPlugin("messages", options);
|
|
25
35
|
}
|
|
26
|
-
export { bundle, constants, factories, messages };
|
|
36
|
+
export { bundle, constants, factories, messages, sql, types };
|
|
@@ -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-CJO6cUS1.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-DVgkPQKM.js");
|
|
22
22
|
return powersyncFiles(source.policy, source.config, task.out).files.map((file) => ({
|
|
23
23
|
path: file.path,
|
|
24
24
|
contents: file.text
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as PermDockPlugin } from "../../plugin-
|
|
2
|
-
import { t as RlsPluginOptions } from "../../rls-options-
|
|
1
|
+
import { t as PermDockPlugin } from "../../plugin-1XW5OfAZ.js";
|
|
2
|
+
import { t as RlsPluginOptions } from "../../rls-options-CEpg5nDP.js";
|
|
3
3
|
/**
|
|
4
4
|
* The RLS plugin. The factory records options; the SQL generator loads on emit,
|
|
5
5
|
* so importing `rls` does not load it.
|
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-BtaUXVp-.js");
|
|
23
23
|
return filesForRls(task, options, source);
|
|
24
24
|
}
|
|
25
25
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as PermDockPlugin } from "../../plugin-
|
|
1
|
+
import { t as PermDockPlugin } from "../../plugin-1XW5OfAZ.js";
|
|
2
2
|
import { n as GenKindPluginOptions, r as ZodPluginOptions } from "../../gen-kind-DFQnQwFN.js";
|
|
3
3
|
/** Row validators as Zod schemas, from the model's JSON Schema. */
|
|
4
4
|
export declare function zod(options?: ZodPluginOptions): PermDockPlugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as RlsDialect } from "../../types-
|
|
2
|
-
import { t as PermDockPlugin } from "../../plugin-
|
|
1
|
+
import { d as RlsDialect } from "../../types-nXo_oQYk.js";
|
|
2
|
+
import { t as PermDockPlugin } from "../../plugin-1XW5OfAZ.js";
|
|
3
3
|
type ScimPluginOptions = {
|
|
4
4
|
readonly schema?: string;
|
|
5
5
|
readonly dialect?: RlsDialect;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as SupabaseSchemas } from "../../types-
|
|
2
|
-
import { t as PermDockPlugin } from "../../plugin-
|
|
1
|
+
import { b as SupabaseSchemas } from "../../types-nXo_oQYk.js";
|
|
2
|
+
import { t as PermDockPlugin } from "../../plugin-1XW5OfAZ.js";
|
|
3
3
|
type SupabaseHookPluginOptions = {
|
|
4
4
|
readonly out?: string;
|
|
5
5
|
readonly schemas?: SupabaseSchemas;
|
|
@@ -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-C7FNwQ1p.js");
|
|
22
22
|
const outcome = await runSupabase({
|
|
23
23
|
cwd: source.cwd,
|
|
24
24
|
config: source.config,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as SupabaseSchemas } from "../../types-
|
|
2
|
-
import { t as PermDockPlugin } from "../../plugin-
|
|
3
|
-
import { t as RlsPluginOptions } from "../../rls-options-
|
|
1
|
+
import { b as SupabaseSchemas } from "../../types-nXo_oQYk.js";
|
|
2
|
+
import { t as PermDockPlugin } from "../../plugin-1XW5OfAZ.js";
|
|
3
|
+
import { t as RlsPluginOptions } from "../../rls-options-CEpg5nDP.js";
|
|
4
4
|
/** The Custom Access Token hook the plugin writes; `false` skips it. */
|
|
5
5
|
type SupabaseHookOption = false | {
|
|
6
6
|
readonly out?: string;
|
|
@@ -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-BtaUXVp-.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-C7FNwQ1p.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.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as PermDockPlugin } from "../../plugin-
|
|
1
|
+
import { t as PermDockPlugin } from "../../plugin-1XW5OfAZ.js";
|
|
2
2
|
import { n as GenKindPluginOptions } from "../../gen-kind-DFQnQwFN.js";
|
|
3
3
|
/** `permdock/react` bound to the policy's vocabulary. Carries `"use client"`. */
|
|
4
4
|
export declare function reactHooks(options?: GenKindPluginOptions): PermDockPlugin;
|
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-DGQxmID0.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-C3_fCkgX.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-XIXxXYty.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-BpjMjxly.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-BpjMjxly.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 {
|
|
14
|
+
import { F as capabilityAccessSql, L as apiKeyAllowsCall, S as accessSql, f as requiresSql, k as tokenScopeAllowsCall } from "./tables-C8IwkTHq.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-XIXxXYty.js";
|
|
4
4
|
import { n as CliError } from "./errors-DgLOqc6j.js";
|
|
5
5
|
// src/cli/core/completion.ts
|
|
6
6
|
const SHELLS = [
|
|
@@ -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-XIXxXYty.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 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-D607UDnv.js");
|
|
14
14
|
return runConfig({
|
|
15
15
|
cwd: ctx.cwd,
|
|
16
16
|
config: ctx.config,
|
|
@@ -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-XIXxXYty.js";
|
|
6
|
+
import { a as nonEmptyOr, r as findingOf } from "./output-CU7OppLv.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-B0cLRZ7w.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-FSets5NB.js";
|
|
17
|
+
import { i as pd039, t as hookOut } from "./supabase-hook-loL2iJVb.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-BBQe7GZp.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-nMTdEqBB.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-llSQehNg.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-Ca4ClMU2.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-pbvC5g6K.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 {
|
|
53
|
+
import { Z as graphPlan, i as tableNames, r as tableNameOf } from "./tables-C8IwkTHq.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-Dy3zMRxo.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-CLPUvgVW.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";
|
|
@@ -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-BhoJiHi0.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-BhoJiHi0.js")).runDoctor({
|
|
39
39
|
cwd: ctx.cwd,
|
|
40
40
|
config: ctx.config,
|
|
41
41
|
only: flags.only,
|
|
@@ -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-CJE3Xud5.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-Ca4ClMU2.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.
|
|
400
|
+
* `// @generated by permdock generate zod@0.27.0 from policy.ts sha-256:…; do
|
|
401
401
|
* not edit`.
|
|
402
402
|
*/
|
|
403
403
|
function generatedHeader(kind, info) {
|
|
@@ -967,6 +967,8 @@ function jsonSchemaDocument(model, header) {
|
|
|
967
967
|
*/
|
|
968
968
|
const FILE_NAMES = {
|
|
969
969
|
constants: "constants.ts",
|
|
970
|
+
types: "types.ts",
|
|
971
|
+
sql: "sql.ts",
|
|
970
972
|
zod: "zod.ts",
|
|
971
973
|
valibot: "valibot.ts",
|
|
972
974
|
arktype: "arktype.ts",
|
|
@@ -982,8 +984,8 @@ const FILE_NAMES = {
|
|
|
982
984
|
};
|
|
983
985
|
/**
|
|
984
986
|
* The files of one `permdock gen` kind; the first is the kind's own file. The
|
|
985
|
-
* caller supplies any previous file. `constants` also writes `
|
|
986
|
-
* `
|
|
987
|
+
* caller supplies any previous file. `constants` also writes `fields.ts` with
|
|
988
|
+
* `fields`.
|
|
987
989
|
*/
|
|
988
990
|
function renderGen(kind, model, context) {
|
|
989
991
|
const header = generatedHeader(kind, context.header);
|
|
@@ -992,21 +994,12 @@ function renderGen(kind, model, context) {
|
|
|
992
994
|
text
|
|
993
995
|
}];
|
|
994
996
|
switch (kind) {
|
|
995
|
-
case "constants": return [
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
{
|
|
1002
|
-
name: "sql.ts",
|
|
1003
|
-
text: sqlModule(model, generatedHeader("sql", context.header))
|
|
1004
|
-
},
|
|
1005
|
-
...context.fields ? [{
|
|
1006
|
-
name: "fields.ts",
|
|
1007
|
-
text: fieldsModule(model, generatedHeader("fields", context.header))
|
|
1008
|
-
}] : []
|
|
1009
|
-
];
|
|
997
|
+
case "constants": return [...own(constantsModule(model, header)), ...context.fields ? [{
|
|
998
|
+
name: "fields.ts",
|
|
999
|
+
text: fieldsModule(model, generatedHeader("fields", context.header))
|
|
1000
|
+
}] : []];
|
|
1001
|
+
case "types": return own(typesModule(model, header));
|
|
1002
|
+
case "sql": return own(sqlModule(model, header));
|
|
1010
1003
|
case "zod":
|
|
1011
1004
|
case "valibot":
|
|
1012
1005
|
case "arktype": return own(validatorModule(kind, model, {
|
|
@@ -1033,6 +1026,8 @@ function renderGen(kind, model, context) {
|
|
|
1033
1026
|
// src/cli/gen/gen.ts
|
|
1034
1027
|
const GEN_KINDS = [
|
|
1035
1028
|
"constants",
|
|
1029
|
+
"types",
|
|
1030
|
+
"sql",
|
|
1036
1031
|
"zod",
|
|
1037
1032
|
"valibot",
|
|
1038
1033
|
"arktype",
|
|
@@ -1047,13 +1042,26 @@ const GEN_KINDS = [
|
|
|
1047
1042
|
"bundle"
|
|
1048
1043
|
];
|
|
1049
1044
|
const DEFAULT_GEN_OUT = "src/permdock";
|
|
1045
|
+
const DEFAULT_KINDS = [
|
|
1046
|
+
"constants",
|
|
1047
|
+
"types",
|
|
1048
|
+
"sql"
|
|
1049
|
+
];
|
|
1050
|
+
const IMPORTS_TYPES = /* @__PURE__ */ new Set([
|
|
1051
|
+
"zod",
|
|
1052
|
+
"valibot",
|
|
1053
|
+
"factories"
|
|
1054
|
+
]);
|
|
1055
|
+
function withImports(kinds) {
|
|
1056
|
+
return kinds.some((kind) => IMPORTS_TYPES.has(kind)) ? [.../* @__PURE__ */ new Set([...kinds, "types"])] : kinds;
|
|
1057
|
+
}
|
|
1050
1058
|
function isGenKind(value) {
|
|
1051
1059
|
return GEN_KINDS.some((kind) => kind === value);
|
|
1052
1060
|
}
|
|
1053
|
-
function kindsOf(flags, config) {
|
|
1061
|
+
function kindsOf(flags, config, out) {
|
|
1054
1062
|
if (flags.length > 0) return [...new Set(flags)];
|
|
1055
1063
|
const configured = config.gen?.kinds;
|
|
1056
|
-
if (configured === void 0) return ["constants"];
|
|
1064
|
+
if (configured === void 0) return out === void 0 ? DEFAULT_KINDS : ["constants"];
|
|
1057
1065
|
for (const kind of configured) if (!isGenKind(kind)) throw configError(`PermDock CLI: gen.kinds has '${String(kind)}'; use ${GEN_KINDS.join(", ")}`);
|
|
1058
1066
|
return [...new Set(configured)];
|
|
1059
1067
|
}
|
|
@@ -1062,7 +1070,7 @@ function readIfExists(file) {
|
|
|
1062
1070
|
}
|
|
1063
1071
|
/** The files `permdock gen` writes: one per kind under the output directory. */
|
|
1064
1072
|
async function genFiles(input) {
|
|
1065
|
-
const kinds = kindsOf(input.kinds, input.config);
|
|
1073
|
+
const kinds = kindsOf(input.kinds, input.config, input.out);
|
|
1066
1074
|
if (input.out !== void 0 && kinds.length > 1) throw new CliError("usage", `gen: --out names one file; ${String(kinds.length)} kinds need --out-dir`, {
|
|
1067
1075
|
code: "invalid_value",
|
|
1068
1076
|
extensions: { flag: "--out" }
|
|
@@ -1074,7 +1082,7 @@ async function genFiles(input) {
|
|
|
1074
1082
|
config: input.config,
|
|
1075
1083
|
policy,
|
|
1076
1084
|
policyPath,
|
|
1077
|
-
kinds,
|
|
1085
|
+
kinds: input.out === void 0 ? withImports(kinds) : kinds,
|
|
1078
1086
|
dir: input.outDir ?? input.config.gen?.out ?? DEFAULT_GEN_OUT,
|
|
1079
1087
|
...input.out === void 0 ? {} : { out: input.out }
|
|
1080
1088
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as renderKinds } from "./gen-CJE3Xud5.js";
|
|
@@ -4,6 +4,8 @@ import { t as pluginVersion } from "./version-CU6e2wxV.js";
|
|
|
4
4
|
/** The kebab name each kind's plugin and file carry. */
|
|
5
5
|
const FILE = {
|
|
6
6
|
constants: "constants.ts",
|
|
7
|
+
types: "types.ts",
|
|
8
|
+
sql: "sql.ts",
|
|
7
9
|
zod: "zod.ts",
|
|
8
10
|
valibot: "valibot.ts",
|
|
9
11
|
arktype: "arktype.ts",
|
|
@@ -45,7 +47,7 @@ function kindPlugin(kind, options = {}) {
|
|
|
45
47
|
}],
|
|
46
48
|
emit: async (_task, model, source) => {
|
|
47
49
|
if (source === void 0) return [];
|
|
48
|
-
const { renderKinds } = await import("./gen-
|
|
50
|
+
const { renderKinds } = await import("./gen-WzJbAcMJ.js");
|
|
49
51
|
const files = await renderKinds({
|
|
50
52
|
cwd: source.cwd,
|
|
51
53
|
config: source.config,
|