permdock 0.27.3 → 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.
Files changed (185) hide show
  1. package/dist/{2020-bJfT8aIA.js → 2020-DBXhfpuK.js} +2 -2
  2. package/dist/{adoption-scan-CHMU7gnE.js → adoption-scan-BHQm3Li7.js} +1 -1
  3. package/dist/approvals/index.d.ts +1 -1
  4. package/dist/{arazzo-D1ZHjjea.js → arazzo-CAQr4N7Z.js} +2 -2
  5. package/dist/{arazzo-DuXmPMSu.js → arazzo-UwtVzma6.js} +1 -1
  6. package/dist/{args-0EWFk-4S.js → args-Bc0HLiD4.js} +1 -1
  7. package/dist/better-supabase/index.d.ts +2 -0
  8. package/dist/better-supabase/index.js +8 -6
  9. package/dist/{casbin-CwLL5QnK.js → casbin-CSgPeAJK.js} +1 -1
  10. package/dist/{casbin-Bf9jkDMy.js → casbin-Ccbaft52.js} +1 -1
  11. package/dist/catalog/index.d.ts +1 -1
  12. package/dist/{catalog-B3MJShnZ.js → catalog-COoxFOoy.js} +1 -1
  13. package/dist/catalog-DCjJIl3n.js +1 -0
  14. package/dist/{catalog-DyC3LKc7.js → catalog-DXSP1we9.js} +1 -1
  15. package/dist/cli/bin.js +1 -1
  16. package/dist/cli/generate/watch-worker.js +1 -1
  17. package/dist/cli/index.d.ts +5 -4
  18. package/dist/cli/index.js +1 -1
  19. package/dist/cli/plugins/app.d.ts +1 -1
  20. package/dist/cli/plugins/app.js +1 -1
  21. package/dist/cli/plugins/better-supabase.d.ts +1 -1
  22. package/dist/cli/plugins/openapi.d.ts +1 -1
  23. package/dist/cli/plugins/openapi.js +1 -1
  24. package/dist/cli/plugins/powersync.d.ts +1 -1
  25. package/dist/cli/plugins/powersync.js +1 -1
  26. package/dist/cli/plugins/rls.d.ts +2 -2
  27. package/dist/cli/plugins/rls.js +1 -1
  28. package/dist/cli/plugins/schemas.d.ts +1 -1
  29. package/dist/cli/plugins/schemas.js +1 -1
  30. package/dist/cli/plugins/scim.d.ts +2 -2
  31. package/dist/cli/plugins/supabase-hook.d.ts +2 -2
  32. package/dist/cli/plugins/supabase-hook.js +1 -1
  33. package/dist/cli/plugins/supabase.d.ts +3 -3
  34. package/dist/cli/plugins/supabase.js +2 -2
  35. package/dist/cli/plugins/ui.d.ts +1 -1
  36. package/dist/cli/plugins/ui.js +1 -1
  37. package/dist/{cloud-nXogJ7e1.js → cloud-CFtvELWj.js} +2 -2
  38. package/dist/{codemod-DwL1E5of.js → codemod-3PFIcPag.js} +2 -2
  39. package/dist/{codemod-Bp2bKwKe.js → codemod-ClcPRv4c.js} +2 -2
  40. package/dist/{collect-BJZsuBW4.js → collect-BOh9Pxob.js} +1 -1
  41. package/dist/{collect-CpGnmGpL.js → collect-BYPq-0JU.js} +2 -2
  42. package/dist/collect-XcoQRyiA.js +1 -0
  43. package/dist/{compile-NM1GOb2q.js → compile-mfTqcMJ5.js} +1 -1
  44. package/dist/{completion-BQovwoTx.js → completion-D4p_MQX7.js} +2 -2
  45. package/dist/{config-DSyn7r1l.js → config-D9bq79Yi.js} +1 -1
  46. package/dist/{config-report--ae2r_MI.js → config-report-DZfIl6zc.js} +2 -2
  47. package/dist/{context-DmH-Eyvx.js → context-BdoA9DhS.js} +2 -2
  48. package/dist/{core-DKqrD_xW.js → core-tEfD0lwu.js} +1 -1
  49. package/dist/delivery/index.d.ts +1 -1
  50. package/dist/{diff-BIqibFnm.js → diff-CXRZ6qPa.js} +1 -1
  51. package/dist/{diff-n6LONVwL.js → diff-Cv9inVY5.js} +1 -1
  52. package/dist/{doctor-CIV882xS.js → doctor-CuhkBJ06.js} +3 -3
  53. package/dist/{doctor-kbRrZD3Q.js → doctor-FHjwjHYC.js} +18 -18
  54. package/dist/{execute-CE8P72Ez.js → execute-DdH84BHC.js} +3 -3
  55. package/dist/gen-BseS8XeZ.js +1 -0
  56. package/dist/{gen-CuEt0o6p.js → gen-CcKymoUw.js} +3 -3
  57. package/dist/{gen-kind-BLIhHgD3.js → gen-kind-Bf9jYVgn.js} +1 -1
  58. package/dist/{generate-Dl75LKbW.js → generate-BCUVV4vB.js} +11 -11
  59. package/dist/{generate-B-Hlc08D.js → generate-UMuStlLD.js} +2 -2
  60. package/dist/{generate-options-BUh621MW.js → generate-options-Cg5sAHhT.js} +6 -6
  61. package/dist/{hook-sql-Bxc_YRrd.js → hook-sql-C0aUoiOH.js} +6 -5
  62. package/dist/{import-BKTq4cxW.js → import--taRAR01.js} +1 -1
  63. package/dist/{index-Cq9N5B92.d.ts → index-BSJoxaOi.d.ts} +1 -1
  64. package/dist/{index-BXz-XXC3.d.ts → index-D1msamx_.d.ts} +1 -1
  65. package/dist/{index-CVuc3E1O.d.ts → index-eaNHkELi.d.ts} +1 -1
  66. package/dist/index.d.ts +2 -2
  67. package/dist/index.js +1 -1
  68. package/dist/{init-B8GG9vjg.js → init-CP3fYFb6.js} +3 -3
  69. package/dist/{init-D4YO8hVa.js → init-Cfi7_gXO.js} +1 -1
  70. package/dist/{json-schema-SDkWXxhu.d.ts → json-schema-DAeA-lJa.d.ts} +1 -1
  71. package/dist/{lazy-provider-CydlnKkS.d.ts → lazy-provider-C48LDq0q.d.ts} +1 -1
  72. package/dist/{lazy-provider-DG5rMeqL.js → lazy-provider-CVX534Kk.js} +1 -1
  73. package/dist/{login-OJdYkueH.js → login-BjkyJNGn.js} +3 -3
  74. package/dist/{login-Bl-SuTJA.js → login-kg9Pd0C2.js} +1 -1
  75. package/dist/{manifest-BY8lK4l4.js → manifest-C7dWk0k5.js} +35 -35
  76. package/dist/{migrate-CmTMk7rd.js → migrate-BwXtXUtE.js} +1 -1
  77. package/dist/next/index.d.ts +2 -2
  78. package/dist/next/plugin.d.ts +1 -1
  79. package/dist/next/plugin.js +1 -1
  80. package/dist/{openapi-CvAjVdK7.js → openapi-B5jo5ClY.js} +3 -3
  81. package/dist/{openapi-Dpetebzt.js → openapi-dJFJTHiW.js} +1 -1
  82. package/dist/{openapi-document-7K7rofeR.js → openapi-document-B58hIsZ4.js} +1 -1
  83. package/dist/{output-Cq0neio3.js → output-Pne7BTXn.js} +1 -1
  84. package/dist/{output-files-DNid6TBl.js → output-files-D5D-8-4l.js} +1 -1
  85. package/dist/output-files-aPXXhV4q.js +1 -0
  86. package/dist/{ownership-CHND0y5L.js → ownership-BPGoxz1T.js} +1 -1
  87. package/dist/{permissions-ijDw4sO1.js → permissions-Bj3DRIEi.js} +1 -1
  88. package/dist/{plugin-1XW5OfAZ.d.ts → plugin-zOs9uqQj.d.ts} +1 -1
  89. package/dist/{policy-DzTU5233.js → policy-G8iZ2T5P.js} +1 -1
  90. package/dist/{policy-bundle-Dafv5nOx.js → policy-bundle-nbcxlVOb.js} +3 -3
  91. package/dist/{powersync-IrDmJbqx.js → powersync-B9KEEiJE.js} +1 -1
  92. package/dist/{powersync-BfMIjRqo.js → powersync-BoOMFQRl.js} +1 -1
  93. package/dist/{powersync-DNeS5JrT.js → powersync-CqAj9QJt.js} +6 -6
  94. package/dist/{prompt-CSXHcJxy.js → prompt-CPlJn_4-.js} +3 -3
  95. package/dist/{protected-action-D6T3eJyW.d.ts → protected-action-CEzNNtfi.d.ts} +2 -2
  96. package/dist/{protected-action-BMb0ftEu.js → protected-action-Dco5O_Kc.js} +1 -1
  97. package/dist/{provider-ClD4rfgT.js → provider-BYcoTKuS.js} +1 -1
  98. package/dist/{provider-CydlnKkS.d.ts → provider-C48LDq0q.d.ts} +1 -1
  99. package/dist/{provider-store-atQUfsVO.js → provider-store-Dq_olUjC.js} +1 -1
  100. package/dist/{provider-with-CSw4mBDU.js → provider-with-fxHItxDh.js} +1 -1
  101. package/dist/pull-8Vce3V1e.js +1 -0
  102. package/dist/{pull-DOwvDn98.js → pull-DXuh-rob.js} +1 -1
  103. package/dist/{push-Cb7PqXdO.js → push-DXh936bz.js} +1 -1
  104. package/dist/{pushed-policy-pH-EFWyx.d.ts → pushed-policy-APjMbYdV.d.ts} +1 -1
  105. package/dist/{rbac-CygtQB85.js → rbac-FlJv7Ba9.js} +1 -1
  106. package/dist/react/index.d.ts +4 -4
  107. package/dist/react/index.js +3 -3
  108. package/dist/react/lazy.d.ts +4 -4
  109. package/dist/react/lazy.js +3 -3
  110. package/dist/react/provider-client-lazy.d.ts +1 -1
  111. package/dist/react/provider-client-lazy.js +1 -1
  112. package/dist/react/provider-client.d.ts +1 -1
  113. package/dist/react/provider-client.js +1 -1
  114. package/dist/react-native/index.d.ts +4 -4
  115. package/dist/react-native/index.js +2 -2
  116. package/dist/{resolve-names-D0hNHBp5.js → resolve-names-CROyyjVR.js} +1 -1
  117. package/dist/{resolver-kdZ4HrpC.js → resolver-4qxIIHcC.js} +1 -1
  118. package/dist/{rls-BjEp-1Ob.js → rls-BL90Ec30.js} +7 -7
  119. package/dist/{rls-BDmebOIp.js → rls-DV4MUNMb.js} +1 -1
  120. package/dist/{rls-files-kGXtfslQ.js → rls-files-BgLoAa9x.js} +2 -2
  121. package/dist/{rls-options-CEpg5nDP.d.ts → rls-options-BZxfMDFo.d.ts} +1 -1
  122. package/dist/{run-DFe2I0T7.js → run-BFDAiNuS.js} +3 -3
  123. package/dist/run-mEbYi2Ow.js +1 -0
  124. package/dist/{saas-DzjKUQr5.js → saas-CUwmgUB8.js} +2 -2
  125. package/dist/{scan-DGCpdOuR.js → scan-CoyAmDAz.js} +1 -1
  126. package/dist/{schema-wummOGn9.js → schema-9eGIiLry.js} +2 -2
  127. package/dist/{size-DF7xQ-nH.js → size-BqLd5oJ4.js} +1 -1
  128. package/dist/{skills-BQ9bEjPV.js → skills-B8nt-KuB.js} +2 -2
  129. package/dist/{skills-BntnICiJ.js → skills-BPDVfXgR.js} +2 -2
  130. package/dist/{snapshot-size-DU7CvpMt.js → snapshot-size-B_chu2c1.js} +1 -1
  131. package/dist/{snapshot-size-D-pCR8x0.js → snapshot-size-CHig-Nq_.js} +1 -1
  132. package/dist/solid/index.d.ts +24 -24
  133. package/dist/solid/index.js +2 -2
  134. package/dist/{src-D6_T4zd7.js → src-BAYcigFU.js} +1 -1
  135. package/dist/{store-core-eqG8jijs.d.ts → store-core-DyNo_BwA.d.ts} +4 -2
  136. package/dist/{store-options-C8x39AHa.js → store-options-BtHrfJUU.js} +1 -1
  137. package/dist/{stores-DoA7ACkz.js → stores-BIMyclLg.js} +1 -1
  138. package/dist/{stores-4DOaL4ZP.d.ts → stores-DyFCruRC.d.ts} +2 -2
  139. package/dist/supabase/index.d.ts +6 -0
  140. package/dist/supabase/index.js +2 -2
  141. package/dist/{supabase-BI5ZhzLl.js → supabase-Ctn_Z6xf.js} +1 -1
  142. package/dist/{supabase-CjUsihRL.js → supabase-D5KN965n.js} +1 -1
  143. package/dist/{supabase-config-CbK7xX77.js → supabase-config-CjX-GjEp.js} +1 -1
  144. package/dist/supabase-hook-CjChM-eX.js +2 -0
  145. package/dist/{supabase-hook-nGLUvn5x.js → supabase-hook-CmW2MLWa.js} +4 -4
  146. package/dist/svelte/index.d.ts +3 -3
  147. package/dist/svelte/index.js +3 -3
  148. package/dist/svelte/runtime.d.ts +2 -2
  149. package/dist/svelte/runtime.js +1 -1
  150. package/dist/svelte/source.d.ts +3 -3
  151. package/dist/svelte/source.js +2 -2
  152. package/dist/{tables-CbVpFhC6.js → tables-Btlt_Rp-.js} +43 -6
  153. package/dist/testing/core.js +1 -1
  154. package/dist/testing/index.d.ts +3 -3
  155. package/dist/testing/index.js +5 -5
  156. package/dist/testing/saas/index.js +2 -2
  157. package/dist/testing/saas/permissions.js +1 -1
  158. package/dist/{text-diff-CsglY49A.js → text-diff-DxKRNFlx.js} +2 -2
  159. package/dist/{types-C7QtRn3n.d.ts → types-4wjWMSFM.d.ts} +2 -2
  160. package/dist/{types-CVCRFYY_.d.ts → types-CQF-oYSz.d.ts} +1 -1
  161. package/dist/{types-3pRMqcvw.d.ts → types-PS10T9UK.d.ts} +1 -1
  162. package/dist/{types-nXo_oQYk.d.ts → types-config-Cq72dArb.d.ts} +740 -782
  163. package/dist/types-run-DG1H5vrX.d.ts +44 -0
  164. package/dist/unplugin/index.d.ts +1 -1
  165. package/dist/unplugin/index.js +1 -1
  166. package/dist/{usage-L1G1zlwz.js → usage-DRReZaxQ.js} +1 -1
  167. package/dist/{usage-C1NKRxBJ.js → usage-DVjr2ZDc.js} +3 -3
  168. package/dist/usage-nVi3-z-j.js +1 -0
  169. package/dist/{verify-KX4Ohvs_.js → verify-BOB_Jyjx.js} +4 -4
  170. package/dist/vue/index.d.ts +1 -1
  171. package/dist/vue/index.js +2 -2
  172. package/dist/{watch-CiN6WU9k.js → watch-BNxvqCS4.js} +1 -1
  173. package/dist/watch-CGLmIdld.js +1 -0
  174. package/dist/{watch-DNIGANvR.js → watch-CnRyGEtp.js} +1 -1
  175. package/package.json +14 -14
  176. package/skills/permdock-data/references/queries-and-rls.md +1 -0
  177. package/dist/catalog-CgK_L4Qf.js +0 -1
  178. package/dist/collect-CPvCXMQ-.js +0 -1
  179. package/dist/gen-DbPS6a4x.js +0 -1
  180. package/dist/output-files-C5LFnQa4.js +0 -1
  181. package/dist/pull-Qh7JjiO7.js +0 -1
  182. package/dist/run-CdxQr6w8.js +0 -1
  183. package/dist/supabase-hook-b7tej2Vw.js +0 -2
  184. package/dist/usage-BAUV1SYl.js +0 -1
  185. 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 };
@@ -1,4 +1,4 @@
1
- import { s as PermDockPluginOptions } from "../types-nXo_oQYk.js";
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>;
@@ -1,5 +1,5 @@
1
1
  import { r as peerHint } from "../peer-D77JpXe-.js";
2
- import { i as report, r as createCollectScheduler } from "../watch-CiN6WU9k.js";
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() {
@@ -16,7 +16,7 @@ const usage = defineLeaf({
16
16
  }
17
17
  },
18
18
  async run(ctx, { flags }) {
19
- return (await import("./usage-BAUV1SYl.js")).runUsage({
19
+ return (await import("./usage-nVi3-z-j.js")).runUsage({
20
20
  cwd: ctx.cwd,
21
21
  config: ctx.config,
22
22
  ignore: flags.ignore,
@@ -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-BJZsuBW4.js";
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-BY8lK4l4.js";
6
- import { r as findingOf } from "./output-Cq0neio3.js";
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-D6_T4zd7.js";
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-NM1GOb2q.js";
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-CbVpFhC6.js";
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-BY8lK4l4.js";
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";
@@ -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-eqG8jijs.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-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-C8x39AHa.js";
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-atQUfsVO.js";
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-BJZsuBW4.js";
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,7 +1,7 @@
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-CiN6WU9k.js";
4
+ import { n as createChangeScheduler } from "./watch-BNxvqCS4.js";
5
5
  import { t as receiptRows } from "./pipeline-CGctXudd.js";
6
6
  import { existsSync } from "node:fs";
7
7
  import { fileURLToPath } from "node:url";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "permdock",
3
- "version": "0.27.3",
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.5",
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.58.3",
410
- "better-supabase-floor": "npm:better-supabase@0.58.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.3",
424
+ "next": "16.4.6",
426
425
  "oxc-parser": "0.156.0",
427
- "oxlint": "1.90.0",
428
- "oxlint-tsgolint": "7.0.2005",
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.4",
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.5",
445
+ "vitest": "5.1.0",
447
446
  "vue": "3.5.44",
448
- "workflow": "5.2.3",
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.58.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 && pnpm pack --out pack.tgz && attw --profile esm-only pack.tgz && rm -f pack.tgz",
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 --coverage",
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.
@@ -1 +0,0 @@
1
- export { t as catalogFile, n as runCatalog } from "./catalog-DyC3LKc7.js";
@@ -1 +0,0 @@
1
- export { r as runCollect } from "./collect-BJZsuBW4.js";
@@ -1 +0,0 @@
1
- export { t as renderKinds } from "./gen-CuEt0o6p.js";
@@ -1 +0,0 @@
1
- export { t as SPLIT_PARTS } from "./output-files-DNid6TBl.js";
@@ -1 +0,0 @@
1
- export { n as runCloudPull } from "./pull-DOwvDn98.js";
@@ -1 +0,0 @@
1
- export { t as run } from "./run-DFe2I0T7.js";
@@ -1,2 +0,0 @@
1
- import "./hook-sql-Bxc_YRrd.js";
2
- export { r as runSupabase } from "./supabase-hook-nGLUvn5x.js";
@@ -1 +0,0 @@
1
- export { t as runUsage } from "./usage-C1NKRxBJ.js";
@@ -1 +0,0 @@
1
- export { a as watchCollect } from "./watch-CiN6WU9k.js";