permdock 0.38.2 → 0.39.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 (155) hide show
  1. package/dist/{adoption-scan-BSVL4wIW.js → adoption-scan-Cg4pyRhm.js} +1 -1
  2. package/dist/{annotate-dUrBHXWa.js → annotate-DcSH62rl.js} +2 -2
  3. package/dist/{annotate-doc-BA0betEO.js → annotate-doc-CLU0DxK7.js} +1 -1
  4. package/dist/{approval-chain-BEeExHpb.js → approval-chain-e4HcSs3o.js} +2 -2
  5. package/dist/{arazzo-DbuxB5Gw.js → arazzo-BcSSf6Du.js} +1 -1
  6. package/dist/{arazzo-C04bMN6Y.js → arazzo-C1JA-k9F.js} +2 -2
  7. package/dist/{ast-CAOxvn9t.js → ast-BhvgF264.js} +1 -1
  8. package/dist/better-supabase/index.js +2 -2
  9. package/dist/{bsb-access-tags-BfKzb3sw.js → bsb-access-tags-DUdAk1Jc.js} +3 -3
  10. package/dist/{bsb-action-keys-LgveZiHJ.js → bsb-action-keys-CQdOwvrl.js} +4 -4
  11. package/dist/{budgets-BGWdTAHq.js → budgets-6cfA6Ibw.js} +1 -1
  12. package/dist/{casbin-Bp8ajVRK.js → casbin-BthXLWZo.js} +1 -1
  13. package/dist/{casbin-DAHhk83J.js → casbin-DilG0fwi.js} +1 -1
  14. package/dist/{catalog-DYC6wfAj.js → catalog-Beg7WzxZ.js} +1 -1
  15. package/dist/{catalog-SnaPhbZ1.js → catalog-DlVcHvH5.js} +3 -3
  16. package/dist/catalog-WP3LwPu_.js +1 -0
  17. package/dist/{catalog-operations-BqSsByIE.js → catalog-operations-DsbLxw1f.js} +1 -1
  18. package/dist/claims-size-C0kHWqou.js +1 -0
  19. package/dist/{claims-size-ZiUJBn0r.js → claims-size-Dxm9zWw5.js} +2 -2
  20. package/dist/cli/bin.js +1 -1
  21. package/dist/cli/generate/watch-worker.js +2 -2
  22. package/dist/cli/index.js +2 -2
  23. package/dist/cli/plugins/app.js +1 -1
  24. package/dist/cli/plugins/openapi.js +2 -2
  25. package/dist/cli/plugins/powersync.js +1 -1
  26. package/dist/cli/plugins/rls.js +1 -1
  27. package/dist/cli/plugins/schemas.js +1 -1
  28. package/dist/cli/plugins/supabase-hook.js +1 -1
  29. package/dist/cli/plugins/supabase.js +2 -2
  30. package/dist/cli/plugins/ui.js +1 -1
  31. package/dist/{cloud-DnsG5KF6.js → cloud-0zu4L55w.js} +2 -2
  32. package/dist/{codemod-BpFi3dGX.js → codemod-CtF7Vk_T.js} +6 -6
  33. package/dist/{codemod-DdSdwmq4.js → codemod-DaU2mOwl.js} +5 -5
  34. package/dist/collect-BchFfzIJ.js +1 -0
  35. package/dist/{collect-Co-w8Eg2.js → collect-BqaPdsk1.js} +4 -4
  36. package/dist/{collect-CcE8QBtZ.js → collect-CcQDJuYi.js} +2 -2
  37. package/dist/{compile-5QQLSNRY.js → compile-CeaX5VD-.js} +7 -7
  38. package/dist/{completion-j34Zp_y7.js → completion-Cyp3kn5b.js} +1 -1
  39. package/dist/{config-Dan6vcvj.js → config-C1lTq4gJ.js} +3 -3
  40. package/dist/{config-DoywTd1z.js → config-CNloPiIn.js} +1 -1
  41. package/dist/{config-paths-CQvGng3k.js → config-paths-Cg3IXh9T.js} +3 -3
  42. package/dist/{config-report-BO_DLUaK.js → config-report-i9ujoKAl.js} +4 -4
  43. package/dist/{context-Dew6yQqT.js → context-BKZmdYRf.js} +1 -1
  44. package/dist/{custom-role-rebuild-BwM6hBqt.js → custom-role-rebuild-DzbBD1cq.js} +5 -5
  45. package/dist/{diff-p217YnI5.js → diff-Bv-oDvZq.js} +1 -1
  46. package/dist/{diff-CcbTG1G4.js → diff-YsQOcb9N.js} +2 -2
  47. package/dist/{doctor-cPl8X1Ef.js → doctor-BuPSrNmh.js} +58 -45
  48. package/dist/{doctor-jVVYFNCd.js → doctor-Mgbj6UO0.js} +2 -2
  49. package/dist/{edits-CqU8s2GC.js → edits-Ckbit4uD.js} +1 -1
  50. package/dist/eve/index.d.ts +50 -1
  51. package/dist/eve/index.js +37 -1
  52. package/dist/{execute-hsLYXuwL.js → execute-D6FFwdwW.js} +5 -5
  53. package/dist/{explain-BHSgFpfd.js → explain-CPYRj0qn.js} +1 -1
  54. package/dist/{explain-DVv1Wbay.js → explain-CvCujO8Q.js} +2 -2
  55. package/dist/{fields-CKX-qjWb.js → fields-DWAwA8vX.js} +3 -3
  56. package/dist/{fixtures-3aUUP6Nx.js → fixtures-B29C2DGA.js} +1 -1
  57. package/dist/{gen-BZ-03GIG.js → gen-CZB21YVB.js} +5 -5
  58. package/dist/{gen-kind-BKSdYxVh.js → gen-kind-2KPUHSs6.js} +1 -1
  59. package/dist/gen-tTRu05jZ.js +1 -0
  60. package/dist/{generate-BrSCnqfT.js → generate-DFffYRB7.js} +3 -3
  61. package/dist/{generate-Ckt9pvJD.js → generate-DePdrbn_.js} +18 -18
  62. package/dist/{generate-options-DudA1wrX.js → generate-options-Bq5qQ9H7.js} +13 -13
  63. package/dist/{helper-calls-DN1PJcNY.js → helper-calls-jStpeQ2_.js} +1 -1
  64. package/dist/{hook-sql-BArV58df.js → hook-sql-Dys1kW5p.js} +13 -13
  65. package/dist/{import-DvPcOvx4.js → import-BIJM6oAh.js} +1 -1
  66. package/dist/{import-wBO24zgo.js → import-bTvN77Uj.js} +3 -3
  67. package/dist/{init-D50xP3eQ.js → init-CfDdG_Fj.js} +3 -3
  68. package/dist/{init-ukHYcnVG.js → init-yo4GJOkM.js} +1 -1
  69. package/dist/{inspect-functions-BevsMf1c.js → inspect-functions-Cj7kZDJt.js} +1 -1
  70. package/dist/{interactive-only-C9NQJXpi.js → interactive-only-ek-Kf0Kq.js} +5 -5
  71. package/dist/{keys-C9gcgQqN.js → keys-CBblXqiu.js} +1 -1
  72. package/dist/{load-m7jmit3y.js → load-D03A3tZL.js} +1 -1
  73. package/dist/load-r-TDUcRq.js +1 -0
  74. package/dist/{login-CO5_OmE5.js → login-2hkrhPGs.js} +3 -3
  75. package/dist/{login-CeyA9IUa.js → login-CsTj_pBQ.js} +1 -1
  76. package/dist/{manager-chain-CFkceFls.js → manager-chain-BbrD-s7u.js} +2 -2
  77. package/dist/{manifest-DWO7EC1m.js → manifest-CZvwWacN.js} +42 -42
  78. package/dist/{measure-CJOb4tnF.js → measure-BhjWMmvj.js} +5 -5
  79. package/dist/{memberships-DiCbNRny.js → memberships-DEW0FU2p.js} +1 -1
  80. package/dist/{memberships-CDiSsFTu.js → memberships-DaKwjhc5.js} +3 -3
  81. package/dist/{migrate-BXk_rUmb.js → migrate-BBPxqBMF.js} +2 -2
  82. package/dist/{model-Cjt2WEm3.js → model-BfhDMEDf.js} +2 -2
  83. package/dist/{module-values-D-AiNhBp.js → module-values-BvR7QHTM.js} +2 -2
  84. package/dist/{names-DwGleRKB.js → names-zCkaCepO.js} +3 -3
  85. package/dist/next/plugin.js +1 -1
  86. package/dist/{openapi-BlkqnsHh.js → openapi-1ZydKQE3.js} +4 -4
  87. package/dist/{openapi-WZ7O-5gx.js → openapi-CufQiEo8.js} +2 -2
  88. package/dist/{openapi-document-qHp-hW5Y.js → openapi-document-oqfHlSZt.js} +1 -1
  89. package/dist/{optional-CaQWp9HA.js → optional-Dw7to-jw.js} +11 -1
  90. package/dist/{output-C3gBd5Yp.js → output-yUW7fcAk.js} +1 -1
  91. package/dist/{ownership-BGAqnS59.js → ownership-Bx_s_E8i.js} +7 -7
  92. package/dist/{pipeline-BXsElIBt.js → pipeline-BTsmCn1p.js} +2 -2
  93. package/dist/{policy-BOXVx6pf.js → policy-CXAhfYIt.js} +2 -2
  94. package/dist/{policy-bundle-BbXW3vec.js → policy-bundle-BZyCcphj.js} +3 -3
  95. package/dist/{powersync-WHQ4bGgx.js → powersync-C6F2F_VP.js} +1 -1
  96. package/dist/{powersync-CXTWMf2h.js → powersync-CcXYDuyo.js} +1 -1
  97. package/dist/{powersync-cShrvGN9.js → powersync-DVUeHJpL.js} +11 -11
  98. package/dist/{program-CvarkLMS.js → program-C2fbc9NO.js} +2 -2
  99. package/dist/{prune-config-CdcEIILi.js → prune-config-CPvDryuI.js} +10 -10
  100. package/dist/{pull-b_1Jv1XY.js → pull-CEv7O_zQ.js} +1 -1
  101. package/dist/pull-DeXUmRKY.js +1 -0
  102. package/dist/{push-Dl7o5gU_.js → push-Dq9qatTg.js} +2 -2
  103. package/dist/{quote-LNaBdCGA.js → quote-BX3DDoTX.js} +1 -1
  104. package/dist/{rbac-BlVLEzQC.js → rbac-COexzCC9.js} +5 -5
  105. package/dist/{rename-B61GbsZQ.js → rename-CoG144pW.js} +9 -9
  106. package/dist/{report-x9GeUvjx.js → report-B7UuE4dW.js} +1 -1
  107. package/dist/{report-Dp-ApWVC.js → report-CMncWbQ-.js} +1 -1
  108. package/dist/{resolve-config-Cu_mE2wt.js → resolve-config-LiLfxe8X.js} +1 -1
  109. package/dist/{resolve-names-D9S1ytiK.js → resolve-names-ybewcnpW.js} +7 -7
  110. package/dist/{resolver-CDJq6Q7f.js → resolver-CkK3cvQc.js} +1 -1
  111. package/dist/{rls-DUrkfLte.js → rls-C-UfcYPG.js} +5 -5
  112. package/dist/{rls-BKoLx_wE.js → rls-CTWb0XEV.js} +13 -13
  113. package/dist/{rls-files-CXNRzrb-.js → rls-files-DFUG6y5D.js} +1 -1
  114. package/dist/{roles-BeNEhv7Q.js → roles-MVZd_RrF.js} +1 -1
  115. package/dist/{run-DC-N-B56.js → run-B9MRT-5k.js} +3 -3
  116. package/dist/run-me1Fi6eQ.js +1 -0
  117. package/dist/{scan-DodOeypJ.js → scan-BoHmvDOe.js} +1 -1
  118. package/dist/{schema-owUQ1gtu.js → schema-Bk0R_6ul.js} +1 -1
  119. package/dist/{schema-tables-Ba9LE_XB.js → schema-tables-CqEHokUT.js} +2 -2
  120. package/dist/{shared-DnVY767H.js → shared-BRLAQqj4.js} +1 -1
  121. package/dist/{size-DNSNqUda.js → size-CQkUXcPF.js} +2 -2
  122. package/dist/{skills-s2aKsx2b.js → skills-BIGdhR5i.js} +1 -1
  123. package/dist/{skills-CCpuGcKP.js → skills-DiMXWCQY.js} +1 -1
  124. package/dist/{sources-C6Id63F8.js → sources-DNVEyJxb.js} +10 -2
  125. package/dist/{subject-B7p94Y0s.js → subject-CMkc28eP.js} +1 -1
  126. package/dist/supabase/index.js +3 -3
  127. package/dist/{supabase-BTQJN5xy.js → supabase-BBEop7q7.js} +2 -2
  128. package/dist/{supabase-hook-Q7W7FeMZ.js → supabase-hook-C3q-XEnu.js} +8 -8
  129. package/dist/supabase-hook-DLnH3_5Z.js +2 -0
  130. package/dist/{supabase-schemas-DsIQxBsk.js → supabase-schemas-RPYfnE6O.js} +2 -2
  131. package/dist/{supabase-DayxaRcg.js → supabase-zRUmN_PE.js} +2 -2
  132. package/dist/{table-reads-BnUbRW9A.js → table-reads-CegjCVHG.js} +1 -1
  133. package/dist/{table-reads-BqTGNTSZ.js → table-reads-DpncF1F-.js} +3 -3
  134. package/dist/{tables-CKtoAAm5.js → tables-Dr4BUH9i.js} +11 -7
  135. package/dist/{tenant-check-cX7MSxRQ.js → tenant-check-C5DAstGo.js} +3 -3
  136. package/dist/unplugin/index.js +1 -1
  137. package/dist/{usage-Ct-_O647.js → usage-D5Rin-a_.js} +1 -1
  138. package/dist/usage-D7eCW8yi.js +1 -0
  139. package/dist/{usage-C_gw6Dsh.js → usage-DDr-iwHr.js} +6 -6
  140. package/dist/{verify-BHM21t2P.js → verify-Df9u1-v5.js} +11 -11
  141. package/dist/{watch-BFDMb5N4.js → watch-BuQhtt25.js} +2 -2
  142. package/dist/{watch-DEnagZ5d.js → watch-DEPXy-r0.js} +2 -2
  143. package/dist/watch-wQLoPqC-.js +1 -0
  144. package/package.json +2 -2
  145. package/skills/permdock-agents/references/runtimes.md +1 -1
  146. package/dist/catalog-e6QRd1JP.js +0 -1
  147. package/dist/claims-size-B0OvYh9z.js +0 -1
  148. package/dist/collect-C2_CKZ09.js +0 -1
  149. package/dist/gen-BHsow3sw.js +0 -1
  150. package/dist/load-BCABUQZi.js +0 -1
  151. package/dist/pull-DTiAI52h.js +0 -1
  152. package/dist/run-BR0E2gC_.js +0 -1
  153. package/dist/supabase-hook-D6qeBhbR.js +0 -2
  154. package/dist/usage-CRHxOpvu.js +0 -1
  155. package/dist/watch-5WP3ZCcR.js +0 -1
@@ -1,4 +1,4 @@
1
- import { f as subjectIdSql } from "./subject-B7p94Y0s.js";
1
+ import { f as subjectIdSql } from "./subject-CMkc28eP.js";
2
2
  // src/cli/sql/shared.ts
3
3
  /** `rls.customRoles` turns custom roles on as `true` or as an object. */
4
4
  function customRolesOn(rls) {
@@ -1,7 +1,7 @@
1
1
  import { t as defineLeaf } from "./command-9GAzSI7E.js";
2
2
  import { f as usageResult } from "./errors-DgLOqc6j.js";
3
3
  import { f as policyFlag, l as given } from "./flags-DQzNPxg1.js";
4
- import { c as requirePolicy } from "./load-m7jmit3y.js";
4
+ import { c as requirePolicy } from "./load-D03A3tZL.js";
5
5
  // src/cli/commands/size.ts
6
6
  function count(value, fallback) {
7
7
  if (value === void 0 || value === "") return fallback;
@@ -79,7 +79,7 @@ const claimsSize = defineLeaf({
79
79
  },
80
80
  async run(ctx, { flags }) {
81
81
  try {
82
- const { runClaimsSize } = await import("./claims-size-B0OvYh9z.js");
82
+ const { runClaimsSize } = await import("./claims-size-C0kHWqou.js");
83
83
  return runClaimsSize({
84
84
  memberships: count(flags.memberships, 11),
85
85
  roles: count(flags.roles, 1),
@@ -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-CCpuGcKP.js";
4
+ import { n as detectedAgents, r as runSkills, t as SKILL_AGENTS } from "./skills-DiMXWCQY.js";
5
5
  // src/cli/commands/skills.ts
6
6
  const forFlag = { for: {
7
7
  type: "string",
@@ -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-C3gBd5Yp.js";
3
+ import { o as nonEmptyOr } from "./output-yUW7fcAk.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";
@@ -20,8 +20,16 @@ const literal$1 = quoteSqlLiteral;
20
20
  function col(name) {
21
21
  return `m.${ident$1(name)}`;
22
22
  }
23
+ /**
24
+ * Whether the row for `id` in `row.table` is active. `id` is converted to the
25
+ * key column's own type, so the lookup uses the table's key: casting the column
26
+ * to text instead hides it from its index and reads the whole table once per
27
+ * membership row. A null `id` matches no row and fails closed.
28
+ */
23
29
  function activeRow(row, id) {
24
- const parts = [`s.${ident$1(row.id)}::text = (${id})::text`];
30
+ const table = quoteQualifiedTable(row.table);
31
+ const key = ident$1(row.id);
32
+ const parts = [`s.${key} = ${`(pg_catalog.jsonb_populate_record(null::${table}, pg_catalog.jsonb_build_object(${literal$1(row.id)}, ${id}))).${key}`}`];
25
33
  if (row.disabledAt !== void 0) parts.push(`s.${ident$1(row.disabledAt)} is null`);
26
34
  if (row.status !== void 0) {
27
35
  const values = row.active ?? [];
@@ -29,7 +37,7 @@ function activeRow(row, id) {
29
37
  parts.push(`s.${ident$1(row.status)}::text = any(array[${values.map(literal$1).join(", ")}]::text[])`);
30
38
  }
31
39
  if (row.disabledAt === void 0 && row.status === void 0) throw new TypeError("PermDock: a suspension table needs disabledAt or status");
32
- return `exists (select 1 from ${quoteQualifiedTable(row.table)} s where ${parts.join(" and ")})`;
40
+ return `exists (select 1 from ${table} s where ${parts.join(" and ")})`;
33
41
  }
34
42
  /**
35
43
  * The suspendable instances on the row's chain whose scope keeps permissions:
@@ -4,7 +4,7 @@ import { t as byScope } from "./compile-BUKXrueE.js";
4
4
  import { r as isRecord } from "./compact-C4LFuqbW.js";
5
5
  import { n as isForbiddenKey } from "./paths-CeS_gpHf.js";
6
6
  import { t as SQL_IDENT } from "./sql-T4GaBh9X.js";
7
- import { a as quoteIdent, i as qualified, o as quoteLiteral } from "./quote-LNaBdCGA.js";
7
+ import { a as quoteIdent, i as qualified, o as quoteLiteral } from "./quote-BX3DDoTX.js";
8
8
  // src/cli/sql/columns.ts
9
9
  /**
10
10
  * The Postgres type a JSON Schema property compares as; `undefined` for text or
@@ -2,9 +2,9 @@ import { r as readSubjectRecord } from "../version-cache-l9Zrfvhz.js";
2
2
  import { n as compactMemberships, r as expandMemberships } from "../read-memberships-DVBitJZG.js";
3
3
  import { n as AUTHZ_TOPIC, r as authzUserTopic, t as AUTHZ_EVENT } from "../authz-topic-D8x24Jv-.js";
4
4
  import { n as supabaseMembershipsBudget, r as supabaseTenantClaim } from "../budget-BH81q2cj.js";
5
- import { a as tableApprovalPolicySource, c as exchangeCapability, i as tableApprovalDelegationSource, n as authorizeSql, o as supabaseApprovalStore, r as supabaseRls, s as supabaseClaims, t as definePermDock } from "../supabase-DayxaRcg.js";
6
- import { c as tableMembershipSource, i as authzVersion, o as junctionMembershipSource, s as supabasePostgresQuery, t as AUTHZ_VERSION_TABLE } from "../sources-C6Id63F8.js";
7
- import { r as subjectFromSupabaseClient, s as postgrestSources } from "../resolver-CDJq6Q7f.js";
5
+ import { a as tableApprovalPolicySource, c as exchangeCapability, i as tableApprovalDelegationSource, n as authorizeSql, o as supabaseApprovalStore, r as supabaseRls, s as supabaseClaims, t as definePermDock } from "../supabase-zRUmN_PE.js";
6
+ import { c as tableMembershipSource, i as authzVersion, o as junctionMembershipSource, s as supabasePostgresQuery, t as AUTHZ_VERSION_TABLE } from "../sources-DNVEyJxb.js";
7
+ import { r as subjectFromSupabaseClient, s as postgrestSources } from "../resolver-CkK3cvQc.js";
8
8
  import { a as delegationOf, i as actorOf, o as subjectFromSupabase, s as subjectFromSupabaseSession } from "../definition-options-DLBlRrPO.js";
9
9
  import { n as parseSupabaseManifest, t as hasTokenHook } from "../manifest-teSfgeqF.js";
10
10
  export { AUTHZ_EVENT, AUTHZ_TOPIC, AUTHZ_VERSION_TABLE, actorOf, authorizeSql, authzUserTopic, authzVersion, compactMemberships, definePermDock, delegationOf, exchangeCapability, expandMemberships, hasTokenHook, junctionMembershipSource, parseSupabaseManifest, postgrestSources, readSubjectRecord, subjectFromSupabase, subjectFromSupabaseClient, subjectFromSupabaseSession, supabaseApprovalStore, supabaseClaims, supabaseMembershipsBudget, supabasePostgresQuery, supabaseRls, supabaseTenantClaim, tableApprovalDelegationSource, tableApprovalPolicySource, tableMembershipSource };
@@ -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-BevsMf1c.js");
23
+ const { inspectFunctions } = await import("./inspect-functions-Cj7kZDJt.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-D6qeBhbR.js");
32
+ const { runSupabase } = await import("./supabase-hook-DLnH3_5Z.js");
33
33
  return runSupabase({
34
34
  cwd: ctx.cwd,
35
35
  config: ctx.config,
@@ -1,17 +1,17 @@
1
1
  import { r as isRecord } from "./compact-C4LFuqbW.js";
2
2
  import { d as scopeList } from "./scopes-B-KX9EI8.js";
3
- import "./sources-C6Id63F8.js";
3
+ import "./sources-DNVEyJxb.js";
4
4
  import { _ as writeOutputFiles, d as pgDeltaPath, g as underSchemaDir, h as serviceRel, r as driftOf, u as partPath } from "./output-files-8lfALMSU.js";
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
- import { c as requirePolicy } from "./load-m7jmit3y.js";
8
- import { a as tryKeyReasons } from "./tenant-check-cX7MSxRQ.js";
9
- import { n as hookUri } from "./rbac-BlVLEzQC.js";
10
- import { a as withTableReads } from "./table-reads-BqTGNTSZ.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-BArV58df.js";
7
+ import { c as requirePolicy } from "./load-D03A3tZL.js";
8
+ import { a as tryKeyReasons } from "./tenant-check-C5DAstGo.js";
9
+ import { n as hookUri } from "./rbac-COexzCC9.js";
10
+ import { a as withTableReads } from "./table-reads-DpncF1F-.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-Dys1kW5p.js";
12
12
  import { r as HOOK_MARKER, s as hookMarkerFields } from "./markers-C-kThnKN.js";
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-DsIQxBsk.js";
13
+ import { i as withSchemaDefaults } from "./schema-tables-CqEHokUT.js";
14
+ import { l as supabaseConfig, n as resolveSchemas, r as schemasRefusal, t as isSupabaseSchemas } from "./supabase-schemas-RPYfnE6O.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";
@@ -0,0 +1,2 @@
1
+ import "./hook-sql-Dys1kW5p.js";
2
+ export { r as runSupabase } from "./supabase-hook-C3q-XEnu.js";
@@ -1,6 +1,6 @@
1
- import "./sources-C6Id63F8.js";
1
+ import "./sources-DNVEyJxb.js";
2
2
  import { a as describeError } from "./errors-DgLOqc6j.js";
3
- import { n as hookUri } from "./rbac-BlVLEzQC.js";
3
+ import { n as hookUri } from "./rbac-COexzCC9.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";
@@ -8,8 +8,8 @@ import { t as CUSTOM_ROLES_VERSION_CLAIM } from "./budget-BH81q2cj.js";
8
8
  import { s as ApprovalError } from "./types-DFZKovb3.js";
9
9
  import { c as decodeApprovalCursor, l as encodeApprovalCursor, s as approvalPageSize, t as applyApprovalVerdict } from "./store-n3yEN7dt.js";
10
10
  import { t as canonicalJson } from "./canonical-json-BibZkXtE.js";
11
- import { a as withMembers, i as ownedCaches, n as getPermissions, o as callRpc, r as subjectFromSupabaseClient, s as postgrestSources, t as createResolver } from "./resolver-CDJq6Q7f.js";
12
- import { d as keptKeys, l as roleColumn } from "./sources-C6Id63F8.js";
11
+ import { a as withMembers, i as ownedCaches, n as getPermissions, o as callRpc, r as subjectFromSupabaseClient, s as postgrestSources, t as createResolver } from "./resolver-CkK3cvQc.js";
12
+ import { d as keptKeys, l as roleColumn } from "./sources-DNVEyJxb.js";
13
13
  import { a as quoteQualifiedTable, c as quoteSqlTable, d as sqlTextArray, i as qualifySqlTable, o as quoteSqlIdent, s as quoteSqlLiteral } from "./sql-T4GaBh9X.js";
14
14
  import { t as compactMembershipsSql } from "./membership-claim-sql-DGfhIn__.js";
15
15
  import { o as subjectFromSupabase, t as SUPABASE_OPTIONS } from "./definition-options-DLBlRrPO.js";
@@ -1 +1 @@
1
- export { t as committedManifest, n as configuredTableReads, r as manifestTableReads, i as tableReads, a as withTableReads } from "./table-reads-BqTGNTSZ.js";
1
+ export { t as committedManifest, n as configuredTableReads, r as manifestTableReads, i as tableReads, a as withTableReads } from "./table-reads-DpncF1F-.js";
@@ -3,11 +3,11 @@ import { d as scopeList } from "./scopes-B-KX9EI8.js";
3
3
  import { n as parseSupabaseManifest } from "./manifest-teSfgeqF.js";
4
4
  import { i as readJsonFile } from "./files-DAR51W3J.js";
5
5
  import { t as MANIFEST_FILE } from "./manifest-json-DMaBWmcG.js";
6
- import { i as loadConfiguredPolicy } from "./load-m7jmit3y.js";
6
+ import { i as loadConfiguredPolicy } from "./load-D03A3tZL.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
- 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-cX7MSxRQ.js";
9
+ import { a as droppedPolicy, s as reportFiles, u as isPlatformSchema } from "./report-B7UuE4dW.js";
10
+ import { a as tryKeyReasons, n as tenantCheck, r as keyReason, t as svals } from "./tenant-check-C5DAstGo.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
@@ -9,14 +9,14 @@ import { a as delegatedScopeMap } from "./permdock-B0aE5Ime.js";
9
9
  import { i as configError } from "./errors-DgLOqc6j.js";
10
10
  import { d as sqlTextArray, i as qualifySqlTable, t as SQL_IDENT } from "./sql-T4GaBh9X.js";
11
11
  import { d as restrictedRowsSql, i as scopeColumn, l as relationArmSql } from "./compile-BUKXrueE.js";
12
- import { t as AUTHZ_VERSION_TABLE } from "./sources-C6Id63F8.js";
12
+ import { t as AUTHZ_VERSION_TABLE } from "./sources-DNVEyJxb.js";
13
13
  import { t as compactMembershipsSql } from "./membership-claim-sql-DGfhIn__.js";
14
14
  import { t as IDENTITY_SCOPES } from "./identity-scopes-CRVAV0HU.js";
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
- 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
- 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-C9NQJXpi.js";
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";
15
+ import { a as quoteIdent, c as quoteTable, i as qualified, o as quoteLiteral, r as helperSchema, s as quoteQualified } from "./quote-BX3DDoTX.js";
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-CMkc28eP.js";
17
+ import { i as allowEntry, n as GLOBAL_ROLES, o as rootName, r as HELPERS, s as signedIn, t as CUSTOM_ROLES } from "./shared-BRLAQqj4.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-ek-Kf0Kq.js";
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-zCkaCepO.js";
20
20
  import { n as byKey, t as byCodeUnit } from "./compare-8SNJN-9U.js";
21
21
  import { createHash } from "node:crypto";
22
22
  // src/cli/rls/graph.ts
@@ -1186,7 +1186,7 @@ begin
1186
1186
  on conflict (tenant_id) do update set version = v.version + 1;
1187
1187
  for r in
1188
1188
  select distinct u.own_id, u.scope, u.role, (
1189
- select v.version from ${versions} v where v.tenant_id is not distinct from u.own_id
1189
+ select v.version from ${versions} v where (v.tenant_id = u.own_id or (v.tenant_id is null and u.own_id is null))
1190
1190
  ) as version
1191
1191
  from unnest(p_owners, p_scopes, p_roles) u(own_id, scope, role)
1192
1192
  loop
@@ -2615,6 +2615,10 @@ function helpersSql(ctx, rows, options) {
2615
2615
  effect text not null default 'allow' check (effect in ('allow', 'deny')),
2616
2616
  primary key (role, grant_key, scope)
2617
2617
  );
2618
+ -- the API key and token scope checks and the custom-role guard look up a grant key's
2619
+ -- rows without the role, which the primary key leads with
2620
+ create index if not exists ${quoteIdent("role_permissions_grant_idx")}
2621
+ on ${rp} (grant_key, effect);
2618
2622
  alter table ${rp} enable row level security;
2619
2623
  revoke all on table ${rp} from anon, authenticated, public;
2620
2624
  ${roleGrantKeysSql(ctx)}`);
@@ -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-CKtoAAm5.js";
4
- import { r as compileGrants } from "./compile-5QQLSNRY.js";
5
- import { i as buildContext, n as isRefusal, t as generateOptions } from "./generate-options-DudA1wrX.js";
3
+ import { i as tableNames } from "./tables-Dr4BUH9i.js";
4
+ import { r as compileGrants } from "./compile-CeaX5VD-.js";
5
+ import { i as buildContext, n as isRefusal, t as generateOptions } from "./generate-options-Bq5qQ9H7.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) {
@@ -1,5 +1,5 @@
1
1
  import { r as peerHint } from "../peer-D77JpXe-.js";
2
- import { i as report, r as createCollectScheduler } from "../watch-BFDMb5N4.js";
2
+ import { i as report, r as createCollectScheduler } from "../watch-BuQhtt25.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-CRHxOpvu.js")).runUsage({
19
+ return (await import("./usage-D7eCW8yi.js")).runUsage({
20
20
  cwd: ctx.cwd,
21
21
  config: ctx.config,
22
22
  ignore: flags.ignore,
@@ -0,0 +1 @@
1
+ export { t as runUsage } from "./usage-DDr-iwHr.js";
@@ -1,13 +1,13 @@
1
1
  import { a as getResource } from "./permission-registry-DstT40VS.js";
2
2
  import { c as jsonSchemaOf } from "./catalog-doc-BX97oFAn.js";
3
- import { r as runCollect } from "./collect-Co-w8Eg2.js";
3
+ import { r as runCollect } from "./collect-BqaPdsk1.js";
4
4
  import { f as usageResult } from "./errors-DgLOqc6j.js";
5
- import { t as DOCS_BASE } from "./manifest-DWO7EC1m.js";
6
- import { r as findingOf } from "./output-C3gBd5Yp.js";
5
+ import { t as DOCS_BASE } from "./manifest-CZvwWacN.js";
6
+ import { r as findingOf } from "./output-yUW7fcAk.js";
7
7
  import { o as USAGE_REPORT_SCHEMA } from "./version-D-jWyJb9.js";
8
- import { n as jiti, r as parseSync, t as createVisitor } from "./optional-CaQWp9HA.js";
8
+ import { i as parseTree, n as jiti, r as parseSync, t as createVisitor } from "./optional-Dw7to-jw.js";
9
9
  import { a as rel, r as listSourceFiles } from "./files-DAR51W3J.js";
10
- import { a as loadModule, n as asPolicy, s as pickNamed } from "./load-m7jmit3y.js";
10
+ import { a as loadModule, n as asPolicy, s as pickNamed } from "./load-D03A3tZL.js";
11
11
  import { t as beforeFirst } from "./text-D704xHVl.js";
12
12
  import { existsSync, readFileSync, realpathSync } from "node:fs";
13
13
  import { dirname, resolve } from "node:path";
@@ -197,7 +197,7 @@ function isPermDockSpecifier(value) {
197
197
  return value === "permdock" || value.startsWith("permdock/");
198
198
  }
199
199
  function permdockOptionObjects(source) {
200
- const { program } = parseSync(source.file, source.text);
200
+ const { program } = parseTree(source.file, source.text);
201
201
  const functions = /* @__PURE__ */ new Set();
202
202
  const namespaces = /* @__PURE__ */ new Set();
203
203
  const constants = /* @__PURE__ */ new Map();
@@ -4,29 +4,29 @@ import { t as getPermDock } from "./permdock-B0aE5Ime.js";
4
4
  import { A as memoryCustomRoleSource, w as memoryRelationSource } from "./src-DUWw9z1D.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
- import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-3aUUP6Nx.js";
7
+ import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-B29C2DGA.js";
8
8
  import { r as pgConnector } from "./pg-DmS5ITHu.js";
9
- import { o as loadPolicyAt } from "./load-m7jmit3y.js";
10
- import { n as commandFor } from "./compile-5QQLSNRY.js";
9
+ import { o as loadPolicyAt } from "./load-D03A3tZL.js";
10
+ import { n as commandFor } from "./compile-CeaX5VD-.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
- import { c as helperTablePoliciesFromRows, l as rowConditionMessage, n as HELPER_TABLE_POLICIES_SQL } from "./helper-calls-DN1PJcNY.js";
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-CKtoAAm5.js";
17
- import { s as viewName, t as FIELD_VIEWS } from "./fields-CKX-qjWb.js";
18
- import { t as DOCS_BASE } from "./manifest-DWO7EC1m.js";
14
+ import { c as helperTablePoliciesFromRows, l as rowConditionMessage, n as HELPER_TABLE_POLICIES_SQL } from "./helper-calls-jStpeQ2_.js";
15
+ import { a as quoteIdent, c as quoteTable, o as quoteLiteral, s as quoteQualified } from "./quote-BX3DDoTX.js";
16
+ import { et as graphPlan, i as tableNames, r as tableNameOf } from "./tables-Dr4BUH9i.js";
17
+ import { s as viewName, t as FIELD_VIEWS } from "./fields-DWAwA8vX.js";
18
+ import { t as DOCS_BASE } from "./manifest-CZvwWacN.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";
22
- import "./sources-C6Id63F8.js";
23
- import { a as customRolesOn } from "./shared-DnVY767H.js";
22
+ import "./sources-DNVEyJxb.js";
23
+ import { a as customRolesOn } from "./shared-BRLAQqj4.js";
24
24
  import { t as membershipSourcesOf } from "./sources-BbSUNmFX.js";
25
25
  import { a as scopeMembershipTable, i as scopeColumn } from "./compile-BUKXrueE.js";
26
26
  import { c as isEdgeRelation, l as isFieldRelation, u as isPrincipalRelation } from "./resource-relations-Ck5sjYQR.js";
27
27
  import { f as nowMillis, u as isoAt } from "./time-r0CKBm57.js";
28
28
  import { c as jsonSchemaOf } from "./catalog-doc-BX97oFAn.js";
29
- import { v as columnTypesOf } from "./subject-B7p94Y0s.js";
29
+ import { v as columnTypesOf } from "./subject-CMkc28eP.js";
30
30
  import { resolve } from "node:path";
31
31
  import { randomUUID } from "node:crypto";
32
32
  // src/cli/core/ignores.ts
@@ -1,8 +1,8 @@
1
1
  import { f as nowMillis, i as dateAt } from "./time-r0CKBm57.js";
2
- import { r as runCollect } from "./collect-Co-w8Eg2.js";
2
+ import { r as runCollect } from "./collect-BqaPdsk1.js";
3
3
  import { a as describeError } from "./errors-DgLOqc6j.js";
4
4
  import { t as defaultSrcPath } from "./files-DAR51W3J.js";
5
- import { i as loadConfig, r as isConfigFile } from "./config-Dan6vcvj.js";
5
+ import { i as loadConfig, r as isConfigFile } from "./config-C1lTq4gJ.js";
6
6
  import { statSync, watch } from "node:fs";
7
7
  import { basename, dirname, relative, resolve, sep } from "node:path";
8
8
  // src/cli/watch.ts
@@ -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-BFDMb5N4.js";
5
- import { n as receiptRows } from "./pipeline-BXsElIBt.js";
4
+ import { n as createChangeScheduler } from "./watch-BuQhtt25.js";
5
+ import { n as receiptRows } from "./pipeline-BTsmCn1p.js";
6
6
  import { existsSync } from "node:fs";
7
7
  import { fileURLToPath } from "node:url";
8
8
  import { Worker } from "node:worker_threads";
@@ -0,0 +1 @@
1
+ export { a as watchCollect } from "./watch-BuQhtt25.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "permdock",
3
- "version": "0.38.2",
3
+ "version": "0.39.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",
@@ -416,7 +416,7 @@
416
416
  "diff": "9.0.0",
417
417
  "drizzle-orm": "1.0.0-rc.5",
418
418
  "elysia": "1.4.32",
419
- "eve": "1.5.0",
419
+ "eve": "1.6.0",
420
420
  "express": "5.3.0",
421
421
  "fast-check": "4.11.0",
422
422
  "fastest-levenshtein": "1.0.16",
@@ -70,7 +70,7 @@ export const { approval, approvalFor, getPermDock } = createPermDock(policy, {
70
70
  });
71
71
  ```
72
72
 
73
- Needs eve 1.2.0 or later. Pass `approval` as the tool's `approval`. The default principal is the turn's caller, `session.auth.current` (the initiator only when the turn has none), and the default actor is `eve:app`. `approval.request(ctx)` maps granted to Eve's `not-applicable` (continue), approval-required to `user-approval`, denied to `{ type: 'denied', reason }`; Eve's re-check of a call nobody approved is denied. `approval.response(ctx)` takes eve's `approve` or `deny` decision and maps the responder through the same `subject`. Use a durable `store` when replicas share sessions ([Eve adapter](https://permdock.com/docs/adapters/eve)). With PermDock Cloud, pass `policies: hostedPolicies(cloud().policies)` and give `cloud()` a `verifier` for the environment JWK Set; hosted grants apply only to `hostable` permissions, so mark the ones the dashboard may extend.
73
+ Needs eve 1.2.0 or later. Pass `approval` as the tool's `approval`. The default principal is the turn's caller, `session.auth.current` (the initiator only when the turn has none), and the default actor is `eve:app`. `approval.request(ctx)` maps granted to Eve's `not-applicable` (continue), approval-required to `user-approval`, denied to `{ type: 'denied', reason }`; Eve's re-check of a call nobody approved is denied. `approval.response(ctx)` takes eve's `approve` or `deny` decision and maps the responder through the same `subject`. `subscriptionFor(permission, { data?, onEvent })` returns `{ onSubscribe, onEvent }` for a channel's `experimental.subscriptions` (eve 1.6.0): it denies `eve__subscribe` without the grant and drops later deliveries once the grant is gone. Use a durable `store` when replicas share sessions ([Eve adapter](https://permdock.com/docs/adapters/eve)). With PermDock Cloud, pass `policies: hostedPolicies(cloud().policies)` and give `cloud()` a `verifier` for the environment JWK Set; hosted grants apply only to `hostable` permissions, so mark the ones the dashboard may extend.
74
74
 
75
75
  ## OpenAI Agents SDK — `permdock/openai`
76
76
 
@@ -1 +0,0 @@
1
- export { t as catalogFile, n as runCatalog } from "./catalog-SnaPhbZ1.js";
@@ -1 +0,0 @@
1
- export { n as runClaimsSize } from "./claims-size-ZiUJBn0r.js";
@@ -1 +0,0 @@
1
- export { r as runCollect } from "./collect-Co-w8Eg2.js";
@@ -1 +0,0 @@
1
- export { n as renderKinds } from "./gen-BZ-03GIG.js";
@@ -1 +0,0 @@
1
- export { a as loadModule, s as pickNamed } from "./load-m7jmit3y.js";
@@ -1 +0,0 @@
1
- export { n as runCloudPull } from "./pull-b_1Jv1XY.js";
@@ -1 +0,0 @@
1
- export { t as run } from "./run-DC-N-B56.js";
@@ -1,2 +0,0 @@
1
- import "./hook-sql-BArV58df.js";
2
- export { r as runSupabase } from "./supabase-hook-Q7W7FeMZ.js";
@@ -1 +0,0 @@
1
- export { t as runUsage } from "./usage-C_gw6Dsh.js";
@@ -1 +0,0 @@
1
- export { a as watchCollect } from "./watch-BFDMb5N4.js";