permdock 0.27.2 → 0.28.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/{2020-bJfT8aIA.js → 2020-DBXhfpuK.js} +2 -2
- package/dist/{adoption-scan-Fc-Wmidd.js → adoption-scan-BHQm3Li7.js} +1 -1
- package/dist/approvals/index.d.ts +1 -1
- package/dist/{arazzo-awjY0iuj.js → arazzo-CAQr4N7Z.js} +2 -2
- package/dist/{arazzo-0iMa9ZCa.js → arazzo-UwtVzma6.js} +1 -1
- package/dist/{args-0EWFk-4S.js → args-Bc0HLiD4.js} +1 -1
- package/dist/better-supabase/index.d.ts +2 -0
- package/dist/better-supabase/index.js +8 -6
- package/dist/{casbin-lyorC43j.js → casbin-CSgPeAJK.js} +1 -1
- package/dist/{casbin-CmCKtC7e.js → casbin-Ccbaft52.js} +1 -1
- package/dist/catalog/index.d.ts +1 -1
- package/dist/{catalog-B3MJShnZ.js → catalog-COoxFOoy.js} +1 -1
- package/dist/catalog-DCjJIl3n.js +1 -0
- package/dist/{catalog-DyC3LKc7.js → catalog-DXSP1we9.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 +5 -4
- package/dist/cli/index.js +1 -1
- package/dist/cli/plugins/app.d.ts +1 -1
- package/dist/cli/plugins/app.js +1 -1
- 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-DqV26jjx.js → cloud-CFtvELWj.js} +2 -2
- package/dist/{codemod-Hd9xW-Ft.js → codemod-3PFIcPag.js} +2 -2
- package/dist/{codemod-KrqgvHZZ.js → codemod-ClcPRv4c.js} +2 -2
- package/dist/{collect-BJZsuBW4.js → collect-BOh9Pxob.js} +1 -1
- package/dist/{collect-CpGnmGpL.js → collect-BYPq-0JU.js} +2 -2
- package/dist/collect-XcoQRyiA.js +1 -0
- package/dist/{compile-R4ZIFR-P.js → compile-mfTqcMJ5.js} +4 -4
- package/dist/{completion-D4umSq3h.js → completion-D4p_MQX7.js} +2 -2
- package/dist/{conditions-CkHgXoZB.js → conditions-VlAMOm20.js} +1 -1
- package/dist/{config-t947SDkG.js → config-D9bq79Yi.js} +1 -1
- package/dist/{config-report-D5MqxIOK.js → config-report-DZfIl6zc.js} +2 -2
- package/dist/{context-DmH-Eyvx.js → context-BdoA9DhS.js} +2 -2
- package/dist/{core-DKqrD_xW.js → core-tEfD0lwu.js} +1 -1
- package/dist/delivery/index.d.ts +1 -1
- package/dist/{diff-BIqibFnm.js → diff-CXRZ6qPa.js} +1 -1
- package/dist/{diff-n6LONVwL.js → diff-Cv9inVY5.js} +1 -1
- package/dist/{doctor-DNcxcd7g.js → doctor-CuhkBJ06.js} +3 -3
- package/dist/{doctor-CMEycIkk.js → doctor-FHjwjHYC.js} +21 -21
- package/dist/{execute-DWB89P16.js → execute-DdH84BHC.js} +4 -4
- package/dist/gen-BseS8XeZ.js +1 -0
- package/dist/{gen-D89kmqIc.js → gen-CcKymoUw.js} +3 -3
- package/dist/{gen-kind-B1iCluFw.js → gen-kind-Bf9jYVgn.js} +1 -1
- package/dist/{generate-Bajg2iM2.js → generate-BCUVV4vB.js} +13 -13
- package/dist/{generate-BIcB7Seb.js → generate-UMuStlLD.js} +3 -3
- package/dist/{generate-options-DCAC8VPe.js → generate-options-Cg5sAHhT.js} +8 -8
- package/dist/{grants-BzjbUCdR.js → grants-C7bGZFPa.js} +1 -1
- package/dist/{hook-sql-QnIzAo7X.js → hook-sql-C0aUoiOH.js} +7 -6
- package/dist/{import-BX3VRyEG.js → import--taRAR01.js} +1 -1
- package/dist/{index-Cq9N5B92.d.ts → index-BSJoxaOi.d.ts} +1 -1
- package/dist/{index-BXz-XXC3.d.ts → index-D1msamx_.d.ts} +1 -1
- package/dist/{index-CVuc3E1O.d.ts → index-eaNHkELi.d.ts} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/{init-B7dc10G2.js → init-CP3fYFb6.js} +3 -3
- package/dist/{init-oLHdLm9N.js → init-Cfi7_gXO.js} +1 -1
- package/dist/{interactive-only-BZu9rLpa.js → interactive-only-CQsgMc1E.js} +5 -1
- package/dist/{json-schema-SDkWXxhu.d.ts → json-schema-DAeA-lJa.d.ts} +1 -1
- package/dist/{lazy-provider-CydlnKkS.d.ts → lazy-provider-C48LDq0q.d.ts} +1 -1
- package/dist/{lazy-provider-DG5rMeqL.js → lazy-provider-CVX534Kk.js} +1 -1
- package/dist/{login-Cy1tmSIU.js → login-BjkyJNGn.js} +3 -3
- package/dist/{login-Dtr5Dhg-.js → login-kg9Pd0C2.js} +1 -1
- package/dist/{manifest-D_T55LWM.js → manifest-C7dWk0k5.js} +35 -35
- package/dist/{migrate-CmTMk7rd.js → migrate-BwXtXUtE.js} +1 -1
- package/dist/{model-B4EKVHMK.js → model-BkQLENu6.js} +1 -1
- package/dist/next/index.d.ts +2 -2
- package/dist/next/plugin.d.ts +1 -1
- package/dist/next/plugin.js +1 -1
- package/dist/{openapi-dfS5EWV7.js → openapi-B5jo5ClY.js} +3 -3
- package/dist/{openapi-DXTd9d4R.js → openapi-dJFJTHiW.js} +1 -1
- package/dist/{openapi-document-DG3OLrz8.js → openapi-document-B58hIsZ4.js} +1 -1
- package/dist/{output-DyU0C-y4.js → output-Pne7BTXn.js} +1 -1
- package/dist/{output-files-DNid6TBl.js → output-files-D5D-8-4l.js} +1 -1
- package/dist/output-files-aPXXhV4q.js +1 -0
- package/dist/{ownership-CoKxJFJT.js → ownership-BPGoxz1T.js} +2 -2
- package/dist/{permissions-ijDw4sO1.js → permissions-Bj3DRIEi.js} +1 -1
- package/dist/{pipeline-CXuwijr2.js → pipeline-CGctXudd.js} +1 -1
- package/dist/{plugin-1XW5OfAZ.d.ts → plugin-zOs9uqQj.d.ts} +1 -1
- package/dist/{policy-CCEbqYf8.js → policy-G8iZ2T5P.js} +1 -1
- package/dist/{policy-bundle-HAEbKVWr.js → policy-bundle-nbcxlVOb.js} +3 -3
- package/dist/{powersync-DLCojn6h.js → powersync-B9KEEiJE.js} +1 -1
- package/dist/{powersync-CRjA5yaf.js → powersync-BoOMFQRl.js} +1 -1
- package/dist/{powersync-B3wb25Im.js → powersync-CqAj9QJt.js} +8 -8
- package/dist/{prompt-CSXHcJxy.js → prompt-CPlJn_4-.js} +3 -3
- package/dist/{protected-action-D6T3eJyW.d.ts → protected-action-CEzNNtfi.d.ts} +2 -2
- package/dist/{protected-action-BMb0ftEu.js → protected-action-Dco5O_Kc.js} +1 -1
- package/dist/{provider-ClD4rfgT.js → provider-BYcoTKuS.js} +1 -1
- package/dist/{provider-CydlnKkS.d.ts → provider-C48LDq0q.d.ts} +1 -1
- package/dist/{provider-store-atQUfsVO.js → provider-store-Dq_olUjC.js} +1 -1
- package/dist/{provider-with-CSw4mBDU.js → provider-with-fxHItxDh.js} +1 -1
- package/dist/pull-8Vce3V1e.js +1 -0
- package/dist/{pull-CPqDPfQF.js → pull-DXuh-rob.js} +1 -1
- package/dist/{push-Cb7PqXdO.js → push-DXh936bz.js} +1 -1
- package/dist/{pushed-policy-pH-EFWyx.d.ts → pushed-policy-APjMbYdV.d.ts} +1 -1
- package/dist/{rbac-B-49toAp.js → rbac-FlJv7Ba9.js} +2 -2
- package/dist/react/index.d.ts +4 -4
- package/dist/react/index.js +3 -3
- package/dist/react/lazy.d.ts +4 -4
- package/dist/react/lazy.js +3 -3
- package/dist/react/provider-client-lazy.d.ts +1 -1
- package/dist/react/provider-client-lazy.js +1 -1
- package/dist/react/provider-client.d.ts +1 -1
- package/dist/react/provider-client.js +1 -1
- package/dist/react-native/index.d.ts +4 -4
- package/dist/react-native/index.js +2 -2
- package/dist/{resolve-names-DcEObQXW.js → resolve-names-CROyyjVR.js} +2 -2
- package/dist/{resolver-kdZ4HrpC.js → resolver-4qxIIHcC.js} +1 -1
- package/dist/{rls-DvvFUuM1.js → rls-BL90Ec30.js} +7 -7
- package/dist/{rls-B7_-H9w_.js → rls-DV4MUNMb.js} +1 -1
- package/dist/{rls-files-BTEnbgHS.js → rls-files-BgLoAa9x.js} +2 -2
- package/dist/{rls-options-CEpg5nDP.d.ts → rls-options-BZxfMDFo.d.ts} +1 -1
- package/dist/{run-b7JC98PS.js → run-BFDAiNuS.js} +3 -3
- package/dist/run-mEbYi2Ow.js +1 -0
- package/dist/{saas-DzjKUQr5.js → saas-CUwmgUB8.js} +2 -2
- package/dist/{scan-B5BaNYdI.js → scan-CoyAmDAz.js} +1 -1
- package/dist/{schema-McSTkbY6.js → schema-9eGIiLry.js} +2 -2
- package/dist/{size-DF7xQ-nH.js → size-BqLd5oJ4.js} +1 -1
- package/dist/{skills-BY84uRix.js → skills-B8nt-KuB.js} +2 -2
- package/dist/{skills-zTMid__z.js → skills-BPDVfXgR.js} +2 -2
- package/dist/{snapshot-size-DU7CvpMt.js → snapshot-size-B_chu2c1.js} +1 -1
- package/dist/{snapshot-size-D-pCR8x0.js → snapshot-size-CHig-Nq_.js} +1 -1
- package/dist/solid/index.d.ts +24 -24
- package/dist/solid/index.js +2 -2
- package/dist/{src-D6_T4zd7.js → src-BAYcigFU.js} +1 -1
- package/dist/{store-core-eqG8jijs.d.ts → store-core-DyNo_BwA.d.ts} +4 -2
- package/dist/{store-options-C8x39AHa.js → store-options-BtHrfJUU.js} +1 -1
- package/dist/{stores-DoA7ACkz.js → stores-BIMyclLg.js} +1 -1
- package/dist/{stores-4DOaL4ZP.d.ts → stores-DyFCruRC.d.ts} +2 -2
- package/dist/supabase/index.d.ts +6 -0
- package/dist/supabase/index.js +2 -2
- package/dist/{supabase-BI5ZhzLl.js → supabase-Ctn_Z6xf.js} +1 -1
- package/dist/{supabase-3Z27QkmX.js → supabase-D5KN965n.js} +1 -1
- package/dist/{supabase-config-mXcggV5I.js → supabase-config-CjX-GjEp.js} +1 -1
- package/dist/supabase-hook-CjChM-eX.js +2 -0
- package/dist/{supabase-hook-O2TwhHTD.js → supabase-hook-CmW2MLWa.js} +4 -4
- package/dist/svelte/index.d.ts +3 -3
- package/dist/svelte/index.js +3 -3
- package/dist/svelte/runtime.d.ts +2 -2
- package/dist/svelte/runtime.js +1 -1
- package/dist/svelte/source.d.ts +3 -3
- package/dist/svelte/source.js +2 -2
- package/dist/{tables-B-rPhiI1.js → tables-Btlt_Rp-.js} +54 -9
- package/dist/testing/core.js +1 -1
- package/dist/testing/index.d.ts +3 -3
- package/dist/testing/index.js +5 -5
- package/dist/testing/saas/index.js +2 -2
- package/dist/testing/saas/permissions.js +1 -1
- package/dist/{text-diff-CsglY49A.js → text-diff-DxKRNFlx.js} +2 -2
- package/dist/{types-C7QtRn3n.d.ts → types-4wjWMSFM.d.ts} +2 -2
- package/dist/{types-CVCRFYY_.d.ts → types-CQF-oYSz.d.ts} +1 -1
- package/dist/{types-3pRMqcvw.d.ts → types-PS10T9UK.d.ts} +1 -1
- package/dist/{types-nXo_oQYk.d.ts → types-config-Cq72dArb.d.ts} +740 -782
- package/dist/types-run-DG1H5vrX.d.ts +44 -0
- package/dist/unplugin/index.d.ts +1 -1
- package/dist/unplugin/index.js +1 -1
- package/dist/{usage-SO2T77jZ.js → usage-DRReZaxQ.js} +1 -1
- package/dist/{usage-B2_Cv8wf.js → usage-DVjr2ZDc.js} +3 -3
- package/dist/usage-nVi3-z-j.js +1 -0
- package/dist/{verify-CYGImcQk.js → verify-BOB_Jyjx.js} +4 -4
- package/dist/vue/index.d.ts +1 -1
- package/dist/vue/index.js +2 -2
- package/dist/{watch-CiN6WU9k.js → watch-BNxvqCS4.js} +1 -1
- package/dist/watch-CGLmIdld.js +1 -0
- package/dist/{watch-BecZtEdU.js → watch-CnRyGEtp.js} +2 -2
- package/package.json +14 -14
- package/skills/permdock-data/references/queries-and-rls.md +1 -0
- package/dist/catalog-CgK_L4Qf.js +0 -1
- package/dist/collect-CPvCXMQ-.js +0 -1
- package/dist/gen-mjtVyqQd.js +0 -1
- package/dist/output-files-C5LFnQa4.js +0 -1
- package/dist/pull-D7grIUA_.js +0 -1
- package/dist/run-Di9cOIeR.js +0 -1
- package/dist/supabase-hook-D1gG6Ub-.js +0 -2
- package/dist/usage-BWpZJbdf.js +0 -1
- package/dist/watch-NAUnUXph.js +0 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { n as CollectConfig } from "./types-config-Cq72dArb.js";
|
|
2
|
+
/**
|
|
3
|
+
* 0 success, 1 failure, 2 usage or an action only a person can take (an input,
|
|
4
|
+
* a confirmation, a login), 130 interrupted (SIGINT or a cancelled prompt), 143
|
|
5
|
+
* terminated (SIGTERM).
|
|
6
|
+
*/
|
|
7
|
+
type ExitCode = 0 | 1 | 2 | 130 | 143;
|
|
8
|
+
type CliIo = {
|
|
9
|
+
readonly stdout: (text: string) => void;
|
|
10
|
+
readonly stderr: (text: string) => void;
|
|
11
|
+
readonly now?: () => Date;
|
|
12
|
+
readonly fetch?: typeof fetch;
|
|
13
|
+
readonly env?: Readonly<Record<string, string | undefined>>;
|
|
14
|
+
/** Styled stdout; `--no-color` turns it off. Unset is plain. */
|
|
15
|
+
readonly color?: boolean;
|
|
16
|
+
/** Styled stderr, decided for that stream on its own. Unset is plain. */
|
|
17
|
+
readonly errColor?: boolean;
|
|
18
|
+
/** A person at a terminal: commands may prompt. Unset never prompts. */
|
|
19
|
+
readonly interactive?: boolean;
|
|
20
|
+
/** stdout is a terminal; agent detection reads it. Unset is a pipe. */
|
|
21
|
+
readonly stdoutIsTty?: boolean;
|
|
22
|
+
/** stderr is a terminal: progress draws a spinner. Unset prints lines. */
|
|
23
|
+
readonly stderrIsTty?: boolean;
|
|
24
|
+
/** Reads all of stdin, for `--*-stdin` secrets. Unset reads nothing. */
|
|
25
|
+
readonly readStdin?: () => Promise<string>;
|
|
26
|
+
/** Aborted on SIGINT or SIGTERM. */
|
|
27
|
+
readonly signal?: AbortSignal;
|
|
28
|
+
};
|
|
29
|
+
type RunResult = {
|
|
30
|
+
readonly code: ExitCode;
|
|
31
|
+
readonly stdout: string;
|
|
32
|
+
readonly stderr: string;
|
|
33
|
+
};
|
|
34
|
+
type PermDockPluginOptions = {
|
|
35
|
+
readonly collect?: CollectConfig;
|
|
36
|
+
readonly onDrift?: "error" | "warn";
|
|
37
|
+
/**
|
|
38
|
+
* Unplugin only: compare instead of write in `buildStart`, failing the build
|
|
39
|
+
* on drift (as `permdock collect --check` does). The Next plugin checks in
|
|
40
|
+
* `phase-production-build` unless `PERMDOCK_COLLECT=write`.
|
|
41
|
+
*/
|
|
42
|
+
readonly check?: boolean;
|
|
43
|
+
};
|
|
44
|
+
export { PermDockPluginOptions as n, RunResult as r, CliIo as t };
|
package/dist/unplugin/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as PermDockPluginOptions } from "../types-run-DG1H5vrX.js";
|
|
2
2
|
import { createUnplugin } from "unplugin";
|
|
3
3
|
type CreateUnplugin = typeof createUnplugin<PermDockPluginOptions | undefined>;
|
|
4
4
|
export declare const createPermDockUnplugin: ReturnType<CreateUnplugin>;
|
package/dist/unplugin/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as peerHint } from "../peer-D77JpXe-.js";
|
|
2
|
-
import { i as report, r as createCollectScheduler } from "../watch-
|
|
2
|
+
import { i as report, r as createCollectScheduler } from "../watch-BNxvqCS4.js";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
// src/unplugin/index.ts
|
|
5
5
|
function loadCreateUnplugin() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as getResource } from "./permission-registry-DMYRZVcn.js";
|
|
2
2
|
import { c as jsonSchemaOf } from "./catalog-doc-Bp5khmCG.js";
|
|
3
|
-
import { r as runCollect } from "./collect-
|
|
3
|
+
import { r as runCollect } from "./collect-BOh9Pxob.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-C7dWk0k5.js";
|
|
6
|
+
import { r as findingOf } from "./output-Pne7BTXn.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-DVjr2ZDc.js";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { c as listPermissions, n as findPermission } from "./permission-registry-DMYRZVcn.js";
|
|
2
2
|
import { o as hasConditionOp } from "./refs-Cix9Zjis.js";
|
|
3
3
|
import { t as getPermDock } from "./permdock-BueSeg7X.js";
|
|
4
|
-
import { E as memoryCustomRoleSource, b as memoryRelationSource } from "./src-
|
|
4
|
+
import { E as memoryCustomRoleSource, b as memoryRelationSource } from "./src-BAYcigFU.js";
|
|
5
5
|
import { a as describeError, f as usageResult, i as configError } from "./errors-DgLOqc6j.js";
|
|
6
6
|
import { s as writeFileEnsuringDir } from "./files-DAR51W3J.js";
|
|
7
7
|
import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-Bm0G0A7H.js";
|
|
8
8
|
import { n as pgConnector } from "./pg-CA651850.js";
|
|
9
9
|
import { o as loadPolicyAt } from "./load-CZnlAyZ8.js";
|
|
10
|
-
import { t as commandFor } from "./compile-
|
|
10
|
+
import { t as commandFor } from "./compile-mfTqcMJ5.js";
|
|
11
11
|
import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
12
12
|
import { t as policyRowConditionKeys } from "./row-conditions-DwIJocfQ.js";
|
|
13
13
|
import { c as rootScope, d as scopeList, o as normalizeMemberships } from "./scopes-B-KX9EI8.js";
|
|
14
14
|
import { t as beforeFirst } from "./text-D704xHVl.js";
|
|
15
15
|
import { T as columnTypesOf, a as customRolesOn, r as HELPERS } from "./shared-BdF5DJDQ.js";
|
|
16
16
|
import { a as quoteIdent, c as quoteTable, o as quoteLiteral, s as quoteQualified } from "./quote-BKrTBbcH.js";
|
|
17
|
-
import { Z as graphPlan, i as tableNames, r as tableNameOf } from "./tables-
|
|
17
|
+
import { Z as graphPlan, i as tableNames, r as tableNameOf } from "./tables-Btlt_Rp-.js";
|
|
18
18
|
import { s as viewName, t as FIELD_VIEWS } from "./fields-6d1j-q3c.js";
|
|
19
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
19
|
+
import { t as DOCS_BASE } from "./manifest-C7dWk0k5.js";
|
|
20
20
|
import { b as membershipsClaim, m as customRoleScope } from "./evaluate-D8SdfP3h.js";
|
|
21
21
|
import { n as defaultSqlCommand, t as SQL_IDENT } from "./sql-T4GaBh9X.js";
|
|
22
22
|
import "./budget-BH81q2cj.js";
|
package/dist/vue/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { i as describe, r as DescribeOptions, t as DecisionDescription } from ".
|
|
|
2
2
|
import { c as requiredPlans } from "../errors-DUJ7wLlE.js";
|
|
3
3
|
import { t as approvalHeaders } from "../headers-D1oRr-js.js";
|
|
4
4
|
import { a as broadcastChannelRefresh, c as visibilityRefresh, i as authzChangeRefresh, n as EventSourceRefreshOptions, o as eventSourceRefresh, r as RefreshTrigger, s as focusRefresh, t as AuthzChangeRefresh } from "../refresh-on-C1zIMtJr.js";
|
|
5
|
-
import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, h as ProviderOptionsBase, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, r as ApprovalHandle, s as FilterResult, v as TenantView, y as ActionResult } from "../store-core-
|
|
5
|
+
import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, h as ProviderOptionsBase, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, r as ApprovalHandle, s as FilterResult, v as TenantView, y as ActionResult } from "../store-core-DyNo_BwA.js";
|
|
6
6
|
import { Jt as ClientBundle, N as PolicyVocabulary, Qn as Decision, Zn as ApprovalRequiredDecision, tn as Snapshot, vt as TokenVerifier, xr as Membership } from "../policy-types-93NwI8iI.js";
|
|
7
7
|
import { d as UncheckedData, s as RowData } from "../permdock-Dz3yzWrp.js";
|
|
8
8
|
import { r as Role, w as Permission } from "../vocabulary-FYgI_NoI.js";
|
package/dist/vue/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as describe } from "../describe-B7EosIKA.js";
|
|
2
2
|
import { r as requiredPlans } from "../problem-details-EJHcvYCz.js";
|
|
3
3
|
import { n as actionRunner, r as approvalHeaders, t as actionApproval } from "../protected-action-DiXulRVj.js";
|
|
4
|
-
import { a as eventSourceRefresh, i as broadcastChannelRefresh, l as isPromiseLike, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-
|
|
4
|
+
import { a as eventSourceRefresh, i as broadcastChannelRefresh, l as isPromiseLike, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-BtHrfJUU.js";
|
|
5
5
|
import { a as gateView, c as protectedView, d as slotContent, f as subjectView, i as filterResult, l as rolesView, n as assignablePermissionsView, o as livePermDock, p as tenantView, r as describeWith, s as permissionSet, t as approvalHandle, u as scopedTenant } from "../views-Dpr1uB16.js";
|
|
6
6
|
import { n as boundaryFallback, t as boundaryDigest } from "../boundary--5Swp7sN.js";
|
|
7
|
-
import { n as switchTenant, t as providerStore } from "../provider-store-
|
|
7
|
+
import { n as switchTenant, t as providerStore } from "../provider-store-Dq_olUjC.js";
|
|
8
8
|
import { computed, defineComponent, effectScope, getCurrentScope, inject, isRef, onErrorCaptured, onScopeDispose, provide, shallowRef, toValue, watch } from "vue";
|
|
9
9
|
// src/vue/context.ts
|
|
10
10
|
const permDockKey = Symbol("permdock");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as nowMillis, i as dateAt } from "./time-r0CKBm57.js";
|
|
2
|
-
import { r as runCollect } from "./collect-
|
|
2
|
+
import { r as runCollect } from "./collect-BOh9Pxob.js";
|
|
3
3
|
import { a as describeError } from "./errors-DgLOqc6j.js";
|
|
4
4
|
import { t as defaultSrcPath } from "./files-DAR51W3J.js";
|
|
5
5
|
import { n as isConfigFile, r as loadConfig } from "./config-iyy90IOU.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { a as watchCollect } from "./watch-BNxvqCS4.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
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
|
-
import { n as createChangeScheduler } from "./watch-
|
|
5
|
-
import { t as receiptRows } from "./pipeline-
|
|
4
|
+
import { n as createChangeScheduler } from "./watch-BNxvqCS4.js";
|
|
5
|
+
import { t as receiptRows } from "./pipeline-CGctXudd.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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "permdock",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.0",
|
|
4
4
|
"description": "Typed permissions for TypeScript apps, APIs, databases, and AI agents, with the permdock CLI and test runners.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai-agents",
|
|
@@ -375,7 +375,6 @@
|
|
|
375
375
|
},
|
|
376
376
|
"devDependencies": {
|
|
377
377
|
"@anthropic-ai/claude-agent-sdk": "0.3.316",
|
|
378
|
-
"@arethetypeswrong/cli": "0.18.5",
|
|
379
378
|
"@babel/core": "8.0.10",
|
|
380
379
|
"@clack/prompts": "1.8.1",
|
|
381
380
|
"@modelcontextprotocol/client": "2.4.0",
|
|
@@ -401,13 +400,13 @@
|
|
|
401
400
|
"@types/react": "19.3.0",
|
|
402
401
|
"@types/react-dom": "19.3.0",
|
|
403
402
|
"@vercel/detect-agent": "1.2.5",
|
|
404
|
-
"@vitest/coverage-v8": "5.0
|
|
403
|
+
"@vitest/coverage-v8": "5.1.0",
|
|
405
404
|
"ai": "7.0.159",
|
|
406
405
|
"ajv": "8.20.0",
|
|
407
406
|
"astro": "7.4.4",
|
|
408
407
|
"babel-plugin-react-compiler": "1.0.0",
|
|
409
|
-
"better-supabase": "0.
|
|
410
|
-
"better-supabase-floor": "npm:better-supabase@0.
|
|
408
|
+
"better-supabase": "0.63.2",
|
|
409
|
+
"better-supabase-floor": "npm:better-supabase@0.63.2",
|
|
411
410
|
"chat": "4.43.0",
|
|
412
411
|
"diff": "9.0.0",
|
|
413
412
|
"drizzle-orm": "1.0.0-rc.5",
|
|
@@ -422,10 +421,10 @@
|
|
|
422
421
|
"jiti": "2.7.0",
|
|
423
422
|
"jose": "6.2.14",
|
|
424
423
|
"kysely": "0.29.8",
|
|
425
|
-
"next": "16.4.
|
|
424
|
+
"next": "16.4.6",
|
|
426
425
|
"oxc-parser": "0.156.0",
|
|
427
|
-
"oxlint": "1.
|
|
428
|
-
"oxlint-tsgolint": "7.0.
|
|
426
|
+
"oxlint": "1.93.0",
|
|
427
|
+
"oxlint-tsgolint": "7.0.2006",
|
|
429
428
|
"package-manager-detector": "1.9.0",
|
|
430
429
|
"pg": "8.23.1",
|
|
431
430
|
"pgsql-parser": "18.3.2",
|
|
@@ -439,13 +438,13 @@
|
|
|
439
438
|
"solid-js": "1.9.18",
|
|
440
439
|
"svelte": "5.57.3",
|
|
441
440
|
"temporal-polyfill": "1.0.6",
|
|
442
|
-
"tsdown": "0.23.
|
|
441
|
+
"tsdown": "0.23.7",
|
|
443
442
|
"typescript": "7.0.2",
|
|
444
443
|
"unplugin": "3.7.0",
|
|
445
444
|
"valibot": "1.5.0",
|
|
446
|
-
"vitest": "5.0
|
|
445
|
+
"vitest": "5.1.0",
|
|
447
446
|
"vue": "3.5.44",
|
|
448
|
-
"workflow": "5.
|
|
447
|
+
"workflow": "5.4.0",
|
|
449
448
|
"yaml": "2.9.1",
|
|
450
449
|
"zod": "4.6.7"
|
|
451
450
|
},
|
|
@@ -466,7 +465,7 @@
|
|
|
466
465
|
"@trpc/server": ">=11",
|
|
467
466
|
"ai": ">=5",
|
|
468
467
|
"astro": ">=5",
|
|
469
|
-
"better-supabase": ">=0.
|
|
468
|
+
"better-supabase": ">=0.63.2",
|
|
470
469
|
"chat": ">=4",
|
|
471
470
|
"drizzle-orm": ">=0.40 || >=1.0.0-rc.0",
|
|
472
471
|
"elysia": ">=1",
|
|
@@ -627,11 +626,12 @@
|
|
|
627
626
|
"scripts": {
|
|
628
627
|
"bench": "vitest bench --run --project \"node (bench)\" --reporter=verbose",
|
|
629
628
|
"build": "tsdown",
|
|
630
|
-
"check:publish": "publint
|
|
629
|
+
"check:publish": "publint",
|
|
631
630
|
"gen": "node ../../scripts/testing-fixtures.ts",
|
|
632
631
|
"gen:check": "node ../../scripts/testing-fixtures.ts --check",
|
|
633
632
|
"lint": "oxlint --disable-nested-config --type-aware",
|
|
634
|
-
"test": "vitest run
|
|
633
|
+
"test": "vitest run",
|
|
634
|
+
"test:coverage": "vitest run --coverage",
|
|
635
635
|
"typecheck": "tsc --noEmit && tsc --noEmit -p tests/tsconfig.json"
|
|
636
636
|
}
|
|
637
637
|
}
|
|
@@ -18,6 +18,7 @@ export async function listPosts(permdock: PermDock) {
|
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
- `permdock.where(permission)` narrows the query before it runs. It leaves out closure grants and marks the result `partial`; `filter` then drops what a closure refuses, and `pick` redacts fields.
|
|
21
|
+
- Under RLS, a `status = $1` filter on an enum column never uses the status column of a composite `(<tenant column>, status, ...)` index. Postgres does not mark `enum_eq` leakproof (`pg_proc.proleakproof`), so it runs the comparison after the policy filter and reads every row of the tenant through the index prefix. This is Postgres behaviour, not a PermDock defect, and it affects every status-lane board that runs as the signed-in user. Only a `security definer` function with an explicit permission check reads the status column of the index.
|
|
21
22
|
- When nothing is granted, `toWhere` returns a constant false expression (no rows). A closure grant cannot compile: `toWhere` throws `PermDockValidationError`.
|
|
22
23
|
- `toWhere(condition, table, { columns })` maps schema fields to differently named columns. Graph grants need `{ relations: { closure: 'permdock.permdock_closure' } }`, otherwise a `related` node throws `non-portable-condition`.
|
|
23
24
|
- `checkRow` (Drizzle) answers one row as `{ found: false }` or `{ found: true, granted }`, so a handler can tell `404` from `403` with one query.
|
package/dist/catalog-CgK_L4Qf.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as catalogFile, n as runCatalog } from "./catalog-DyC3LKc7.js";
|
package/dist/collect-CPvCXMQ-.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { r as runCollect } from "./collect-BJZsuBW4.js";
|
package/dist/gen-mjtVyqQd.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as renderKinds } from "./gen-D89kmqIc.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as SPLIT_PARTS } from "./output-files-DNid6TBl.js";
|
package/dist/pull-D7grIUA_.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { n as runCloudPull } from "./pull-CPqDPfQF.js";
|
package/dist/run-Di9cOIeR.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as run } from "./run-b7JC98PS.js";
|
package/dist/usage-BWpZJbdf.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as runUsage } from "./usage-B2_Cv8wf.js";
|
package/dist/watch-NAUnUXph.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { a as watchCollect } from "./watch-CiN6WU9k.js";
|