permdock 0.18.1 → 0.20.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 (313) hide show
  1. package/dist/a2a/index.d.ts +4 -4
  2. package/dist/a2a/index.js +6 -6
  3. package/dist/{adoption-scan-CxExBYSJ.js → adoption-scan-BWL5H82_.js} +1 -1
  4. package/dist/agent/index.d.ts +2 -2
  5. package/dist/agent/index.js +1 -1
  6. package/dist/ai-sdk/index.d.ts +3 -3
  7. package/dist/ai-sdk/index.js +4 -4
  8. package/dist/{approval-normalize-CUjgSsOl.js → approval-normalize-hlfO9BJv.js} +8 -1
  9. package/dist/{approval-policies-oNnckT12.d.ts → approval-policies-CKlByf5o.d.ts} +1 -1
  10. package/dist/{approval-prompt-Bg7gDSqd.d.ts → approval-prompt-CQFiO1KE.d.ts} +1 -1
  11. package/dist/approvals/index.d.ts +4 -4
  12. package/dist/approvals/index.js +3 -3
  13. package/dist/{approvals-DGId_hgJ.js → approvals-CuXILe52.js} +9 -6
  14. package/dist/{arazzo--riLuGY0.js → arazzo-B_CPVseu.js} +2 -2
  15. package/dist/{arazzo-CEDbb-uM.js → arazzo-C8u26FUA.js} +1 -1
  16. package/dist/astro/index.d.ts +4 -4
  17. package/dist/astro/index.js +2 -2
  18. package/dist/{audience-B4YR9UpV.js → audience-BUonniPx.js} +1 -1
  19. package/dist/authzen/index.d.ts +5 -5
  20. package/dist/authzen/index.js +3 -3
  21. package/dist/{automation-Bfa_wD1h.d.ts → automation-CpOk7Tlu.d.ts} +1 -1
  22. package/dist/better-auth/index.d.ts +1 -1
  23. package/dist/better-auth/index.js +1 -1
  24. package/dist/better-supabase/index.d.ts +20 -17
  25. package/dist/better-supabase/index.js +9 -9
  26. package/dist/{better-supabase-BJtQ-kNf.js → better-supabase-ayun1IKE.js} +38 -4
  27. package/dist/{bind-DR6ku3A9.d.ts → bind-CW7nsZ86.d.ts} +7 -7
  28. package/dist/{bind-B4pMH9bm.js → bind-gwEbe9hL.js} +4 -4
  29. package/dist/{body-CJQwYVa8.js → body-C9JbIoqb.js} +1 -1
  30. package/dist/{build-instance-BFMFQdE_.js → build-instance-DaBdCRiz.js} +1 -1
  31. package/dist/{capability-BZ_veK9o.d.ts → capability-v2xZB7us.d.ts} +1 -1
  32. package/dist/{casbin-DCQHkkyj.js → casbin-DaY-CWOr.js} +1 -1
  33. package/dist/{casbin-bKC1FpEx.js → casbin-JWZGKqzy.js} +1 -1
  34. package/dist/catalog/index.d.ts +5 -5
  35. package/dist/catalog/index.js +5 -5
  36. package/dist/catalog-BTPySmbp.js +1 -0
  37. package/dist/{catalog-zzNuR3sY.js → catalog-DjDc87R2.js} +1 -1
  38. package/dist/{catalog-doc-C4DGfJCO.js → catalog-doc-nrgfbh8I.js} +2 -1
  39. package/dist/{catalog-D1fw8qif.js → catalog-s0waIrfY.js} +2 -2
  40. package/dist/{challenge-B2O2OLEk.js → challenge-DbkpCx_v.js} +1 -1
  41. package/dist/chat/index.d.ts +1 -1
  42. package/dist/chat/index.js +2 -2
  43. package/dist/chat-sdk/index.d.ts +3 -3
  44. package/dist/claude-agent/index.d.ts +3 -3
  45. package/dist/claude-agent/index.js +2 -2
  46. package/dist/clerk/index.d.ts +2 -2
  47. package/dist/cli/bin.js +1 -1
  48. package/dist/cli/index.d.ts +5 -5
  49. package/dist/cli/index.js +3 -3
  50. package/dist/{client-CH7vzSAY.d.ts → client-JK504UCq.d.ts} +15 -2
  51. package/dist/cloud/index.d.ts +8 -8
  52. package/dist/cloud/index.js +2 -2
  53. package/dist/{cloud-C0vXBmLG.js → cloud-pEhjaPNs.js} +2 -2
  54. package/dist/{codemod-C-L0w-u7.js → codemod-BUhreN8m.js} +2 -2
  55. package/dist/{codemod-eYI1FbeJ.js → codemod-Cv0-7Ogj.js} +1 -1
  56. package/dist/{collect-CU85z6Ta.js → collect-DMQ6Sxr6.js} +2 -2
  57. package/dist/{collect-D878zLDP.js → collect-DN_x7hvV.js} +1 -1
  58. package/dist/collect-eSTXOZDC.js +1 -0
  59. package/dist/compile/index.d.ts +1 -1
  60. package/dist/{compile-DBm0ub4p.d.ts → compile-DZftFfXc.d.ts} +2 -2
  61. package/dist/{completion-Dauc6pVT.js → completion-BG1wcLJ3.js} +1 -1
  62. package/dist/{config-COHmivz9.js → config-D2oXUwos.js} +8 -5
  63. package/dist/{config-DWp2PucY.js → config-Di9kWoLY.js} +1 -1
  64. package/dist/{config-report-DKpFm5ID.js → config-report-B0IyW7EQ.js} +2 -2
  65. package/dist/{config-shape-tsxHx71E.js → config-shape-D9paLhEX.js} +5 -1
  66. package/dist/{connection-B72dg5Q2.js → connection-QFsv-kbh.js} +1 -1
  67. package/dist/{context-DeammvFl.js → context-YhyXyqBI.js} +3 -2
  68. package/dist/convex/index.d.ts +4 -4
  69. package/dist/convex/index.js +3 -3
  70. package/dist/{core-D87h2kpR.d.ts → core-BOeGWbcR.d.ts} +2 -2
  71. package/dist/{core-B8sLve3z.js → core-BwVkrpsi.js} +5 -5
  72. package/dist/{create-BrQXL-Wt.d.ts → create-BezeYFcT.d.ts} +6 -6
  73. package/dist/{create-C-tm3KIF.js → create-C0R8omeF.js} +4 -4
  74. package/dist/{create-3A7J9KRR.js → create-DDUFG1ul.js} +69 -29
  75. package/dist/{create-BzwjZuRS.d.ts → create-DMCC5ZOi.d.ts} +7 -7
  76. package/dist/{create-CtoT1lIQ.d.ts → create-DYSYYiLr.d.ts} +4 -4
  77. package/dist/decide-set-DXEPepY1.js +100 -0
  78. package/dist/{delegation-input-FTxMK3ji.js → delegation-input-DcXhiMkf.js} +1 -1
  79. package/dist/delivery/index.d.ts +4 -4
  80. package/dist/delivery/index.js +1 -1
  81. package/dist/{denied-text-DlIxt8fh.d.ts → denied-text-De8cw3MW.d.ts} +1 -1
  82. package/dist/{describe-BKtC_8PG.d.ts → describe-DibQM6g-.d.ts} +1 -1
  83. package/dist/{diff-BnNHqtHj.js → diff-Bd1-VCe5.js} +4 -4
  84. package/dist/{diff-CBCzOTWM.js → diff-DXRNcjpg.js} +1 -1
  85. package/dist/{doctor-xUpR5rXg.js → doctor-Bp3xspBi.js} +15 -5
  86. package/dist/{doctor-CkYKCuX7.js → doctor-DpD4nHMS.js} +295 -66
  87. package/dist/drizzle/index.d.ts +3 -3
  88. package/dist/elysia/index.d.ts +4 -4
  89. package/dist/elysia/index.js +4 -4
  90. package/dist/{errors-TpzkEKgJ.d.ts → errors-OTE9u4Wk.d.ts} +1 -1
  91. package/dist/{errors-B6R_lg2a.js → errors-ynga1EQy.js} +1 -1
  92. package/dist/{evaluate-Czbj7thS.js → evaluate-Dcq_U2TV.js} +2 -2
  93. package/dist/{evaluations-CisTTURl.d.ts → evaluations-BgxEfPL7.d.ts} +3 -3
  94. package/dist/{evaluations-h3KoJAPa.js → evaluations-CNMVJVD6.js} +3 -3
  95. package/dist/eve/index.d.ts +4 -4
  96. package/dist/eve/index.js +3 -3
  97. package/dist/express/index.d.ts +4 -4
  98. package/dist/express/index.js +3 -3
  99. package/dist/fastify/index.d.ts +4 -4
  100. package/dist/fastify/index.js +3 -3
  101. package/dist/{fetch-adapter-BdmfnbJM.d.ts → fetch-adapter-DCQ4pZxf.d.ts} +2 -2
  102. package/dist/{fetch-adapter-DH-NJPbL.js → fetch-adapter-acq4dPX3.js} +3 -3
  103. package/dist/{fields-CrjL6A49.js → fields-COvJbUva.js} +1 -1
  104. package/dist/{from-snapshot-DMlSSo9b.js → from-snapshot-DHnb8Fh4.js} +2 -2
  105. package/dist/{gen-BEIN-DRM.js → gen-B2O9T25-.js} +1 -1
  106. package/dist/{gen-mf-MRwVr.js → gen-CKr1Vfiz.js} +2 -2
  107. package/dist/h3/index.d.ts +4 -4
  108. package/dist/h3/index.js +3 -3
  109. package/dist/{helpers-DmqGy63f.js → helpers-D-MXwkOF.js} +28 -4
  110. package/dist/hono/index.d.ts +4 -4
  111. package/dist/hono/index.js +5 -5
  112. package/dist/{hosted-waouw2V-.js → hosted-C2Pmhy2x.js} +4 -3
  113. package/dist/{hosted-BFNXwcjd.d.ts → hosted-yhyAuQkL.d.ts} +1 -1
  114. package/dist/{import-DObwEota.js → import-DG6uswAo.js} +1 -1
  115. package/dist/{import-C1XXpG_m.js → import-DVI_1tO_.js} +46 -2
  116. package/dist/{index-BhnOOnp9.d.ts → index--AwSBzJC.d.ts} +2 -2
  117. package/dist/{index-rFp6X_QP.d.ts → index-B_I6N8Ju.d.ts} +5 -5
  118. package/dist/{index-CVGio3cH.d.ts → index-Bt37QovT.d.ts} +4 -4
  119. package/dist/{index-Dfv9Toct.d.ts → index-CLbGOPBr.d.ts} +1 -1
  120. package/dist/{index-CdMOd-GY.d.ts → index-CruReRkB.d.ts} +24 -6
  121. package/dist/{index-CdUTE6qd.d.ts → index-D7xGi1LS.d.ts} +24 -10
  122. package/dist/index.d.ts +17 -17
  123. package/dist/index.js +15 -15
  124. package/dist/{init-CNJ8lLjo.js → init-C-cgOvCl.js} +1 -1
  125. package/dist/{init-DS3PEsCG.js → init-DAPbdjcX.js} +3 -3
  126. package/dist/{instance-options-2sFGSdsf.d.ts → instance-options-VPsNQsTH.d.ts} +1 -1
  127. package/dist/{instance-snapshot-BWa71my8.js → instance-snapshot-SX8zH_1t.js} +3 -3
  128. package/dist/jwt/index.d.ts +4 -4
  129. package/dist/{kernel-30Z2zM_d.js → kernel-_QEUOSU0.js} +7 -7
  130. package/dist/kysely/index.d.ts +3 -3
  131. package/dist/{login-DUVzBLh7.js → login-CQGjpkuo.js} +3 -3
  132. package/dist/{login-BgK5Jloo.js → login-Cgix5FgG.js} +1 -1
  133. package/dist/{manifest-wclLWBVH.js → manifest-CMu1IE0R.js} +38 -37
  134. package/dist/{map-error-BH16Ah8P.js → map-error-EOhahOVA.js} +3 -3
  135. package/dist/mcp/index.d.ts +57 -17
  136. package/dist/mcp/index.js +199 -53
  137. package/dist/{module-values-B8tNIxdd.js → module-values-BYuNtdK5.js} +1 -1
  138. package/dist/nest/index.d.ts +4 -4
  139. package/dist/nest/index.js +5 -5
  140. package/dist/next/index.d.ts +12 -12
  141. package/dist/next/index.js +8 -8
  142. package/dist/next/plugin.d.ts +1 -1
  143. package/dist/next/plugin.js +1 -1
  144. package/dist/node/index.d.ts +4 -4
  145. package/dist/node/index.js +2 -2
  146. package/dist/openai/index.d.ts +4 -4
  147. package/dist/openai/index.js +3 -3
  148. package/dist/openapi/index.d.ts +2 -2
  149. package/dist/{openapi-zMEB9qxn.js → openapi-FVeCoh97.js} +2 -2
  150. package/dist/{openapi-C4gFqeRz.js → openapi-lsf1gEtr.js} +2 -2
  151. package/dist/orpc/index.d.ts +21 -17
  152. package/dist/orpc/index.js +18 -11
  153. package/dist/otel/index.d.ts +3 -3
  154. package/dist/{output-BFWLER4r.js → output-DZQCr2lP.js} +1 -1
  155. package/dist/{ownership-D-mIt-w0.js → ownership-CBuIjxKh.js} +2 -1
  156. package/dist/{parse-UTC-sDrt.js → parse-CXTT7hBq.js} +1 -1
  157. package/dist/{parse-local-manifest-DvjTQNuO.d.ts → parse-local-manifest-CE4tgFsj.d.ts} +1 -1
  158. package/dist/{parse-local-manifest-CxcSMQgl.js → parse-local-manifest-Ce2N-Opr.js} +1 -1
  159. package/dist/pdp/index.d.ts +3 -3
  160. package/dist/pdp/index.js +2 -2
  161. package/dist/{permdock-D-_WrdKu.js → permdock-C1DN_7a-.js} +6 -6
  162. package/dist/{permdock-ffY4CMd9.d.ts → permdock-D4F2p5J8.d.ts} +4 -4
  163. package/dist/{permissions-B3ggI88M.js → permissions-8N2yFsUM.js} +1 -1
  164. package/dist/{policy-cV_wwPb8.js → policy-CaAME-Rh.js} +2 -2
  165. package/dist/{policy-BtKSApSt.d.ts → policy-Dh9WVSVz.d.ts} +1 -1
  166. package/dist/{policy-from-catalog-B68hGC0S.js → policy-from-catalog-CUNlpgz0.js} +6 -6
  167. package/dist/{policy-types-D-GwfQTc.d.ts → policy-types-BI9C5Sp5.d.ts} +32 -2
  168. package/dist/{postgrest-D84p5dbA.d.ts → postgrest-CWCCbaxm.d.ts} +1 -1
  169. package/dist/powersync-BV68Jh-T.js +1 -0
  170. package/dist/{powersync-DStC_g0B.js → powersync-CRtuJXVB.js} +2 -2
  171. package/dist/{powersync-9PYOE1wt.js → powersync-Dz4H1FLs.js} +77 -38
  172. package/dist/prisma/index.d.ts +2 -2
  173. package/dist/{problem-BVLHFK33.js → problem-BWP1l86g.js} +8 -7
  174. package/dist/{protected-action-B40tU3yP.js → protected-action-CD1HXwQK.js} +2 -2
  175. package/dist/{protected-action-Ds_EUY8B.d.ts → protected-action-ua0cx5cW.d.ts} +5 -5
  176. package/dist/{provider-OtnIiFWm.d.ts → provider-D_hgjZRa.d.ts} +1 -1
  177. package/dist/{provider-CY4TSSJo.js → provider-qESIf_C0.js} +5 -2
  178. package/dist/{provider-store-BQP_pp8s.js → provider-store-BTHGJH9j.js} +3 -2
  179. package/dist/pull-AOmtUo8V.js +1 -0
  180. package/dist/{pull-DLP4I1Kl.js → pull-DnhBA9pf.js} +3 -3
  181. package/dist/{push-BSb8j1EW.js → push-D2SsRW0U.js} +3 -3
  182. package/dist/{pushed-policy-BecMsTtM.js → pushed-policy-BERO0x9O.js} +1 -1
  183. package/dist/{pushed-policy-Ck3FZcoy.d.ts → pushed-policy-P0hgyLBh.d.ts} +1 -1
  184. package/dist/react/index.d.ts +6 -6
  185. package/dist/react/index.js +3 -3
  186. package/dist/react/provider-client.d.ts +1 -1
  187. package/dist/react/provider-client.js +1 -1
  188. package/dist/react-native/index.d.ts +28 -14
  189. package/dist/react-native/index.js +57 -37
  190. package/dist/{replay-E5X9E1lC.d.ts → replay-DYXI4gRN.d.ts} +1 -1
  191. package/dist/{request-context-DM6_jY1n.js → request-context-BPTi68z5.js} +1 -1
  192. package/dist/resend/index.d.ts +4 -4
  193. package/dist/resend/index.js +2 -2
  194. package/dist/{resolve-names-CBl4r4_r.js → resolve-names-CDnxNqNb.js} +2 -2
  195. package/dist/{rls-pAHGYgTb.js → rls-CHZi5SUK.js} +1 -1
  196. package/dist/{rls-DGBL-jDY.js → rls-CbDKv6GP.js} +19 -13
  197. package/dist/{role-builder-CMW4wWzn.js → role-builder-C5AgaC1x.js} +18 -3
  198. package/dist/rpc-D2LnFELm.d.ts +22 -0
  199. package/dist/{rpc-KwX_Jcxz.js → rpc-DdkbQVlT.js} +16 -6
  200. package/dist/{run-B7lv3NuK.js → run-Bnm5VZ8m.js} +3 -3
  201. package/dist/run-D6U-Gwok.js +1 -0
  202. package/dist/{run-ticket-DPaD27_r.d.ts → run-ticket-94DOS9Cd.d.ts} +2 -2
  203. package/dist/{saas-B8H1MsQ3.js → saas-BEXnrH9H.js} +4 -4
  204. package/dist/{scan-0r3OZqqK.js → scan-VKkU4Ix9.js} +1 -1
  205. package/dist/{schema-B_9tXrbG.js → schema-5onstWlb.js} +1 -1
  206. package/dist/{schema-CuX70xgH.js → schema-BlnU_TzE.js} +4 -0
  207. package/dist/scim/index.d.ts +1 -1
  208. package/dist/server/index.d.ts +10 -10
  209. package/dist/server/index.js +5 -5
  210. package/dist/{server-types-3OnXjZ2D.d.ts → server-types-ChzXWU4Y.d.ts} +31 -13
  211. package/dist/{sink-ogbVkyeo.d.ts → sink-RwmP7ZHs.d.ts} +2 -2
  212. package/dist/{skills-C9sTD70r.js → skills-B6sLqv4E.js} +1 -1
  213. package/dist/{skills-B4MPRxQd.js → skills-Yz3LfoAZ.js} +1 -1
  214. package/dist/{snapshot-DN_8J27z.js → snapshot-DHPih65J.js} +2 -1
  215. package/dist/{snapshot-cache-B4YvlGG_.d.ts → snapshot-cache-MPinwwgZ.d.ts} +1 -1
  216. package/dist/solid/index.d.ts +5 -5
  217. package/dist/solid/index.js +3 -2
  218. package/dist/solid-start/index.d.ts +4 -4
  219. package/dist/solid-start/index.js +3 -3
  220. package/dist/{sources-xdQShLDU.d.ts → sources-sgQlMfmz.d.ts} +1 -1
  221. package/dist/{src-Brzq_0in.js → src-B8SQNsvw.js} +30 -13
  222. package/dist/ssf/index.d.ts +3 -3
  223. package/dist/ssf/index.js +2 -2
  224. package/dist/{standard-webhooks-BfPaZ6T1.d.ts → standard-webhooks-CFZIYtBF.d.ts} +2 -2
  225. package/dist/{store-DmVqy74I.js → store-CSOsXd5s.js} +8 -6
  226. package/dist/{store-DYeB-_U3.d.ts → store-Dpg_fSNQ.d.ts} +31 -4
  227. package/dist/{store-options--zWn48PK.js → store-options-CDvoX52-.js} +31 -8
  228. package/dist/{stores-EPul_8MN.d.ts → stores-C2A6KsxE.d.ts} +5 -5
  229. package/dist/{stores-BYFopOm1.js → stores-PpYVQ5yF.js} +1 -1
  230. package/dist/{stream-CDvF0sJm.js → stream-DQ3rbO3J.js} +1 -1
  231. package/dist/supabase/client.d.ts +1 -1
  232. package/dist/supabase/client.js +32 -4
  233. package/dist/supabase/index.d.ts +10 -5
  234. package/dist/supabase/index.js +1 -1
  235. package/dist/supabase/middleware.d.ts +5 -5
  236. package/dist/supabase/middleware.js +5 -5
  237. package/dist/{supabase-BiViJpQ4.js → supabase-CVZuytCC.js} +2 -2
  238. package/dist/{supabase-CogTyJH2.js → supabase-CWpADE8k.js} +2 -2
  239. package/dist/supabase-hook-Clczf4iF.js +1 -0
  240. package/dist/{supabase-hook-DX38Hj8h.js → supabase-hook-bDeWbKee.js} +151 -55
  241. package/dist/{supautils-BGf6zRvM.js → supautils-0RrdsFT3.js} +7 -7
  242. package/dist/svelte/index.d.ts +5 -5
  243. package/dist/svelte/index.js +3 -3
  244. package/dist/svelte/runtime.d.ts +3 -3
  245. package/dist/svelte/runtime.js +1 -1
  246. package/dist/svelte/source.d.ts +5 -5
  247. package/dist/svelte/source.js +2 -2
  248. package/dist/sveltekit/index.d.ts +4 -4
  249. package/dist/sveltekit/index.js +2 -2
  250. package/dist/{tables-BfOk0ymL.js → tables-C53U2zrN.js} +1 -1
  251. package/dist/tanstack-start/index.d.ts +4 -4
  252. package/dist/tanstack-start/index.js +2 -2
  253. package/dist/terminal/index.d.ts +5 -5
  254. package/dist/terminal/index.js +4 -4
  255. package/dist/testing/core.d.ts +1 -1
  256. package/dist/testing/core.js +1 -1
  257. package/dist/testing/fixtures/index.d.ts +1 -1
  258. package/dist/testing/fixtures/index.js +1 -1
  259. package/dist/testing/index.d.ts +23 -23
  260. package/dist/testing/index.js +22 -22
  261. package/dist/testing/saas/index.d.ts +3 -3
  262. package/dist/testing/saas/index.js +2 -2
  263. package/dist/testing/saas/permissions.js +1 -1
  264. package/dist/trpc/index.d.ts +15 -8
  265. package/dist/trpc/index.js +23 -19
  266. package/dist/{type-helpers-i1EJ3Eb1.d.ts → type-helpers-BjOLGVy1.d.ts} +1 -1
  267. package/dist/{types-D-JO7lh8.d.ts → types--_lpWUGV.d.ts} +5 -5
  268. package/dist/{types-NYoj8JBm.d.ts → types-7Vlz1Wi2.d.ts} +1 -0
  269. package/dist/{types-CqcsNCaN.d.ts → types-BzxA2OAD.d.ts} +13 -1
  270. package/dist/{types-D19MK4t-.d.ts → types-C5p2hoBR.d.ts} +3 -3
  271. package/dist/{types-B8qUkGja.d.ts → types-CMclYgSk.d.ts} +2 -2
  272. package/dist/{types-3Y8UpFkF.d.ts → types-D1NjjwI4.d.ts} +68 -4
  273. package/dist/{types-DGf_cpKF.d.ts → types-D8JVDWOr.d.ts} +2 -2
  274. package/dist/{types-Ck1KOfug.d.ts → types-DBVSljAx.d.ts} +2 -2
  275. package/dist/{types-CDVXR6YD.d.ts → types-DZwEOsK1.d.ts} +1 -1
  276. package/dist/{types-DmbfLu2p.d.ts → types-DnzRZjEu.d.ts} +9 -4
  277. package/dist/{types-o1vu6Ks3.d.ts → types-Drs3OOAy.d.ts} +4 -4
  278. package/dist/{types-CCEeSCMB.d.ts → types-p8mhWTcR.d.ts} +3 -3
  279. package/dist/unplugin/index.d.ts +1 -1
  280. package/dist/unplugin/index.js +1 -1
  281. package/dist/{usage-DC0UKe6C.js → usage-B6gmS634.js} +7 -5
  282. package/dist/{usage-DYtRVkcN.js → usage-BFMCEgJp.js} +1 -1
  283. package/dist/usage-Csu-M5jC.js +1 -0
  284. package/dist/{validation-error-Dx8PipbO.d.ts → validation-error-DkOK9zUE.d.ts} +1 -1
  285. package/dist/{verify-Bpj0hauG.js → verify-DFruUfZg.js} +79 -58
  286. package/dist/{version-cache-DzNKWiI6.d.ts → version-cache-q5cpaDSt.d.ts} +1 -1
  287. package/dist/vue/index.d.ts +5 -5
  288. package/dist/vue/index.js +2 -2
  289. package/dist/{waiter-NK_UuZbb.d.ts → waiter-BjVI_Byg.d.ts} +2 -2
  290. package/dist/watch-CS69ftMP.js +1 -0
  291. package/dist/{watch-CBHADqBH.js → watch-Dz2LNM1R.js} +2 -2
  292. package/dist/webmcp/index.d.ts +1 -1
  293. package/dist/{where-scope-BKrqUDVk.js → where-scope-BAyOsPQW.js} +1 -1
  294. package/dist/{who-can-KhVWMxtf.js → who-can-CZeAwQZD.js} +1 -1
  295. package/dist/workflow/index.d.ts +3 -3
  296. package/dist/workflow/index.js +2 -2
  297. package/dist/workflow-sdk/index.d.ts +4 -4
  298. package/dist/{wrap-BHGA-SMM.d.ts → wrap-CE5lxje7.d.ts} +2 -2
  299. package/package.json +1 -1
  300. package/schemas/catalog-v1.json +8 -0
  301. package/skills/permdock-agents/references/runtimes.md +2 -2
  302. package/skills/permdock-data/SKILL.md +1 -1
  303. package/skills/permdock-data/references/queries-and-rls.md +2 -0
  304. package/skills/permdock-wire/references/adapters.md +1 -1
  305. package/dist/catalog-Caqhbdix.js +0 -1
  306. package/dist/collect-KCtOigxx.js +0 -1
  307. package/dist/powersync-xNRlC4jN.js +0 -1
  308. package/dist/pull-UBjDnf4b.js +0 -1
  309. package/dist/run-UPbacxPg.js +0 -1
  310. package/dist/stream-W2RuUYly.d.ts +0 -13
  311. package/dist/supabase-hook-BN46IrVI.js +0 -1
  312. package/dist/usage-Cl5eb-e1.js +0 -1
  313. package/dist/watch-OYwAPCzx.js +0 -1
@@ -3,14 +3,15 @@ import { n as freezeDeep } from "./freeze-jjan0lCv.js";
3
3
  import { n as problemDetails } from "./problem-details-CLDgX1KV.js";
4
4
  import { c as listPermissions } from "./permission-registry-B8tYxPIt.js";
5
5
  import { n as resourceRef } from "./resource-ref-CaS9yVPi.js";
6
- import { i as challengeScope, l as withApp } from "./permdock-D-_WrdKu.js";
6
+ import { i as challengeScope, l as withApp } from "./permdock-C1DN_7a-.js";
7
7
  import { r as hasCredentials } from "./http-DKLXrFGk.js";
8
- import { a as decisionResponse, c as problemFromDecision, d as unauthenticatedProblem, s as notFoundProblem, t as ANONYMOUS } from "./problem-BVLHFK33.js";
9
- import { n as resolveOrNull } from "./build-instance-BFMFQdE_.js";
8
+ import { a as decisionResponse, c as problemFromDecision, d as unauthenticatedProblem, s as notFoundProblem, t as ANONYMOUS } from "./problem-BWP1l86g.js";
9
+ import { n as resolveOrNull } from "./build-instance-DaBdCRiz.js";
10
10
  import { t as LOAD_FAILED } from "./decision-CaG5_eNJ.js";
11
- import { l as InvalidSignatureError, n as applyApprovalResume, o as evaluationsHandler } from "./evaluations-h3KoJAPa.js";
11
+ import { l as InvalidSignatureError, n as applyApprovalResume, o as evaluationsHandler } from "./evaluations-CNMVJVD6.js";
12
12
  import { n as tenantScope, t as actorFrom } from "./adapter-context-OHikyRqV.js";
13
- import { n as requestContext, t as buildReportingInstance } from "./request-context-DM6_jY1n.js";
13
+ import { n as requestContext, t as buildReportingInstance } from "./request-context-BPTi68z5.js";
14
+ import { n as decideSet, r as permissionList } from "./decide-set-DXEPepY1.js";
14
15
  //#region src/server/kernel-problems.ts
15
16
  const NOT_DELEGATED = freezeDeep({
16
17
  outcome: "denied",
@@ -103,7 +104,18 @@ async function refused(hook, fallback, decision, request, report) {
103
104
  };
104
105
  }
105
106
  }
107
+ /** `protectOptions.rows` bound to the request, or `undefined` without it. */
108
+ function rowsLoader(protectOptions, load, request) {
109
+ const { rows } = protectOptions;
110
+ if (rows === void 0) return;
111
+ if (load !== void 0) throw new TypeError("PermDock: protect takes data or rows, not both");
112
+ if (request === void 0) throw new TypeError("PermDock: protect rows needs the request");
113
+ return () => rows(request);
114
+ }
106
115
  async function guardOn(deps, instance, remote, report, request, permission, load, protectOptions) {
116
+ const permissions = permission === null ? null : permissionList(permission);
117
+ const lead = permissions?.[0] ?? null;
118
+ const loadRows = rowsLoader(protectOptions, load, request);
107
119
  const declared = routeScopes(protectOptions.oauthScopes ?? (request === void 0 ? void 0 : deps.options.operations?.oauthScopesForRequest(request.method, new URL(request.url).pathname)));
108
120
  const credentials = request === void 0 ? false : hasCredentials(request);
109
121
  if (permission === null) {
@@ -112,23 +124,29 @@ async function guardOn(deps, instance, remote, report, request, permission, load
112
124
  }
113
125
  const { actor, delegation } = instance.subject;
114
126
  const held = permission === null && (actor !== void 0 || delegation !== void 0) ? delegation?.scopes ?? [] : delegation?.scopes;
115
- if (declared !== void 0 && held !== void 0 && !declared.some((granted) => held.includes(granted))) return refused(deps.options.deniedResponse, scopeProblem(permission, instance.subject, credentials, declared[0]), NOT_DELEGATED, request, report);
127
+ if (declared !== void 0 && held !== void 0 && !declared.some((granted) => held.includes(granted))) return refused(deps.options.deniedResponse, scopeProblem(lead, instance.subject, credentials, declared[0]), NOT_DELEGATED, request, report);
116
128
  let data;
117
- if (load !== void 0) {
129
+ let rows;
130
+ const loader = loadRows ?? load;
131
+ if (loader !== void 0) {
118
132
  let loaded;
119
133
  try {
120
- loaded = await load();
134
+ loaded = await loader();
121
135
  } catch (error) {
122
136
  report(error);
123
- return refused(deps.options.deniedResponse, loadFailedProblem(permission), LOAD_FAILED, request, report);
137
+ return refused(deps.options.deniedResponse, loadFailedProblem(lead), LOAD_FAILED, request, report);
124
138
  }
125
- if (loaded === null || loaded === void 0) return {
139
+ if (loaded === null || loaded === void 0 || loadRows !== void 0 && (!Array.isArray(loaded) || loaded.length === 0)) return {
126
140
  ok: false,
127
141
  response: notFoundProblem()
128
142
  };
129
- data = loaded;
143
+ if (loadRows === void 0) data = loaded;
144
+ else {
145
+ rows = loaded;
146
+ data = rows;
147
+ }
130
148
  }
131
- if (permission === null) return {
149
+ if (permissions === null || lead === null) return {
132
150
  ok: true,
133
151
  permdock: instance,
134
152
  data
@@ -143,26 +161,45 @@ async function guardOn(deps, instance, remote, report, request, permission, load
143
161
  boundary: "http-body"
144
162
  }
145
163
  });
146
- const raw = remote === void 0 ? instance.decide(permission, data, decideOptions) : await remote.decide(permission, data, decideOptions).catch(() => ({
147
- outcome: "denied",
148
- denials: [{
149
- role: null,
150
- reason: "pdp-unavailable"
151
- }],
152
- alternatives: []
153
- }));
154
- const decision = await applyApprovalResume(raw, permission, instance, deps.options.store, request, resourceRef(permission, data), deps.adapter);
164
+ const decideOne = async (next, row) => {
165
+ const raw = remote === void 0 ? instance.decide(next, row, decideOptions) : await remote.decide(next, row, decideOptions).catch(() => ({
166
+ outcome: "denied",
167
+ denials: [{
168
+ role: null,
169
+ reason: "pdp-unavailable"
170
+ }],
171
+ alternatives: []
172
+ }));
173
+ return applyApprovalResume(raw, next, instance, deps.options.store, request, resourceRef(next, row), deps.adapter);
174
+ };
175
+ const decideRows = (next, batch) => {
176
+ if (remote !== void 0) return Promise.all(batch.map((row) => decideOne(next, row)));
177
+ const each = instance.decideEach;
178
+ return Promise.all(each(next, batch, decideOptions).map((raw, index) => applyApprovalResume(raw, next, instance, deps.options.store, request, resourceRef(next, batch[index]), deps.adapter)));
179
+ };
180
+ let decision;
181
+ let refusedPermission = lead;
182
+ let refusedRow = data;
183
+ if (rows === void 0 && permissions.length === 1) decision = await decideOne(lead, data);
184
+ else {
185
+ const set = await decideSet(permissions, rows ?? [data], protectOptions.anyOf === true, rows === void 0 ? (next, batch) => Promise.all(batch.map((row) => decideOne(next, row))) : decideRows);
186
+ decision = set.decision;
187
+ if (!set.ok) {
188
+ refusedPermission = set.permission;
189
+ refusedRow = set.row;
190
+ }
191
+ }
155
192
  if (decision.outcome === "granted") return {
156
193
  ok: true,
157
194
  permdock: instance,
158
195
  decision,
159
196
  data
160
197
  };
161
- return refused(deps.options.deniedResponse, problemFromDecision(decision, permission, instance.subject, compact({
198
+ return refused(deps.options.deniedResponse, problemFromDecision(decision, refusedPermission, instance.subject, compact({
162
199
  approval: deps.options.approval,
163
200
  credentials,
164
- scope: declared?.[0] ?? challengeScope(deps.policy, permission),
165
- disclosure: data === void 0 ? void 0 : deps.policy.resources.get(permission.resource)?.disclosure
201
+ scope: declared?.[0] ?? challengeScope(deps.policy, refusedPermission),
202
+ disclosure: refusedRow === void 0 ? void 0 : deps.policy.resources.get(refusedPermission.resource)?.disclosure
166
203
  })), decision, request, report);
167
204
  }
168
205
  //#endregion
@@ -254,7 +291,7 @@ function createPermDock(policy, given) {
254
291
  };
255
292
  const connection = async (request, connectionOptions = {}, scope) => {
256
293
  const { tenant } = scope ?? await tenantScope(options.tenant, request);
257
- return (await import("./connection-B72dg5Q2.js")).openConnection({
294
+ return (await import("./connection-QFsv-kbh.js")).openConnection({
258
295
  open: async () => (await build(request, { tenant })).permdock,
259
296
  rebuild: async () => (await instanceFor(await freshSubject(request), tenant, "write")).permdock,
260
297
  tenant,
@@ -295,10 +332,13 @@ function createPermDock(policy, given) {
295
332
  };
296
333
  const protect = protectRoute;
297
334
  const openapi = {
298
- security: (permission) => ({
299
- security: [{ oauth2: [permission.scope] }],
300
- "x-permdock-permissions": [permission.key]
301
- }),
335
+ security: (permission, securityOptions) => {
336
+ const list = permissionList(permission);
337
+ return {
338
+ security: securityOptions?.anyOf === true ? list.map((leaf) => ({ oauth2: [leaf.scope] })) : [{ oauth2: list.map((leaf) => leaf.scope) }],
339
+ "x-permdock-permissions": list.map((leaf) => leaf.key)
340
+ };
341
+ },
302
342
  securitySchemes: () => {
303
343
  const scopes = {};
304
344
  for (const leaf of listPermissions(policy.permissions)) scopes[leaf.scope] = leaf.meta.title ?? leaf.key;
@@ -1,13 +1,13 @@
1
- import { E as Policy, M as PolicyVocabulary, _r as Principal, pr as Delegation, qn as Decision, yr as Subject } from "./policy-types-D-GwfQTc.js";
1
+ import { D as Policy, N as PolicyVocabulary, Yn as Decision, hr as Delegation, xr as Subject, yr as Principal } from "./policy-types-BI9C5Sp5.js";
2
2
  import { u as Permission } from "./permission-types-CAY-GU7e.js";
3
3
  import { t as Operation } from "./operations-Ci_rT6Uo.js";
4
- import { a as PermDock } from "./permdock-ffY4CMd9.js";
5
- import { m as ApprovalStore } from "./types-CqcsNCaN.js";
6
- import { t as InstanceOptions } from "./instance-options-2sFGSdsf.js";
4
+ import { a as PermDock } from "./permdock-D4F2p5J8.js";
5
+ import { m as ApprovalStore } from "./types-BzxA2OAD.js";
6
+ import { t as InstanceOptions } from "./instance-options-VPsNQsTH.js";
7
7
  import { t as RequestContext } from "./request-context-C2_1lchh.js";
8
- import { n as PermDockWrap } from "./wrap-BHGA-SMM.js";
9
- import { o as OtelWrap } from "./types-DGf_cpKF.js";
10
- import { t as DeniedText } from "./denied-text-DlIxt8fh.js";
8
+ import { n as PermDockWrap } from "./wrap-CE5lxje7.js";
9
+ import { o as OtelWrap } from "./types-D8JVDWOr.js";
10
+ import { t as DeniedText } from "./denied-text-De8cw3MW.js";
11
11
  //#region src/agent/step-up.d.ts
12
12
  /**
13
13
  * What the user can do to lift a denial: authenticate again with the `acr` and
@@ -1,9 +1,9 @@
1
- import { $n as GrantedDecision, E as Policy, Kn as ApprovalRequiredDecision, M as PolicyVocabulary, Zn as DeniedDecision, _r as Principal, yr as Subject } from "./policy-types-D-GwfQTc.js";
1
+ import { $n as DeniedDecision, D as Policy, Jn as ApprovalRequiredDecision, N as PolicyVocabulary, tr as GrantedDecision, xr as Subject, yr as Principal } from "./policy-types-BI9C5Sp5.js";
2
2
  import { t as Operation } from "./operations-Ci_rT6Uo.js";
3
- import { _ as PrincipalSource, a as PermDock, o as PermDockOptions } from "./permdock-ffY4CMd9.js";
4
- import { m as ApprovalStore, p as ApprovalStatus } from "./types-CqcsNCaN.js";
3
+ import { _ as PrincipalSource, a as PermDock, o as PermDockOptions } from "./permdock-D4F2p5J8.js";
4
+ import { m as ApprovalStore, p as ApprovalStatus } from "./types-BzxA2OAD.js";
5
5
  import { n as ApprovalErrorCode } from "./errors-CHwoRRpB.js";
6
- import { t as ApprovalPrompt } from "./approval-prompt-Bg7gDSqd.js";
6
+ import { t as ApprovalPrompt } from "./approval-prompt-CQFiO1KE.js";
7
7
  //#region src/chat/subject.d.ts
8
8
  /**
9
9
  * The platform user behind a chat message or action. Fill it only from an event
@@ -0,0 +1,100 @@
1
+ //#region src/server/decide-set.ts
2
+ /** The permissions `protect` takes: one, or a non-empty list. */
3
+ function permissionList(permission) {
4
+ const list = Array.isArray(permission) ? permission : [permission];
5
+ if (list.length === 0) throw new TypeError("PermDock: protect takes a permission or a non-empty list of permissions");
6
+ return list;
7
+ }
8
+ /**
9
+ * Decides `permissions` over `rows`: every row needs every permission, or with
10
+ * `anyOf` one of them. Under `anyOf`, a permission decides only the rows the
11
+ * earlier ones refused, so a limit is consumed once per granted row, and a
12
+ * refusal reports the first permission's result. An all-of check stops at the
13
+ * first permission that refuses a row. No rows refuses.
14
+ */
15
+ async function decideAll(permissions, rows, anyOf, decide, granted) {
16
+ const lead = permissions[0] ?? noPermission();
17
+ let first;
18
+ if (anyOf) {
19
+ let pending = rows.map((row, index) => ({
20
+ row,
21
+ index
22
+ }));
23
+ let firstResults = [];
24
+ for (const [order, permission] of permissions.entries()) {
25
+ const results = await decide(permission, pending.map((entry) => entry.row));
26
+ if (order === 0) firstResults = results;
27
+ const still = [];
28
+ for (const [position, entry] of pending.entries()) {
29
+ const result = results[position];
30
+ if (result !== void 0 && granted(result)) first ??= result;
31
+ else still.push(entry);
32
+ }
33
+ pending = still;
34
+ if (pending.length === 0) break;
35
+ }
36
+ const [head] = pending;
37
+ if (head !== void 0) {
38
+ const result = firstResults[head.index];
39
+ return {
40
+ ok: false,
41
+ result: result === void 0 || granted(result) ? void 0 : result,
42
+ permission: lead,
43
+ row: head.row
44
+ };
45
+ }
46
+ } else for (const permission of permissions) {
47
+ const results = await decide(permission, rows);
48
+ for (const [index, row] of rows.entries()) {
49
+ const result = results[index];
50
+ if (result === void 0 || !granted(result)) return {
51
+ ok: false,
52
+ result,
53
+ permission,
54
+ row
55
+ };
56
+ first ??= result;
57
+ }
58
+ }
59
+ return first === void 0 ? {
60
+ ok: false,
61
+ result: void 0,
62
+ permission: lead,
63
+ row: rows[0]
64
+ } : {
65
+ ok: true,
66
+ result: first
67
+ };
68
+ }
69
+ /** `decideAll` over decisions; a missing decision is a `validation` denial. */
70
+ async function decideSet(permissions, rows, anyOf, decide) {
71
+ const outcome = await decideAll(permissions, rows, anyOf, decide, (decision) => decision.outcome === "granted");
72
+ if (outcome.ok) return outcome.result.outcome === "granted" ? {
73
+ ok: true,
74
+ decision: outcome.result
75
+ } : refused(outcome.result, permissions[0] ?? noPermission(), rows[0]);
76
+ return refused(outcome.result, outcome.permission, outcome.row);
77
+ }
78
+ function refused(decision, permission, row) {
79
+ return {
80
+ ok: false,
81
+ decision: decision === void 0 || decision.outcome === "granted" ? missing() : decision,
82
+ permission,
83
+ row
84
+ };
85
+ }
86
+ function missing() {
87
+ return {
88
+ outcome: "denied",
89
+ denials: [{
90
+ role: null,
91
+ reason: "validation"
92
+ }],
93
+ alternatives: []
94
+ };
95
+ }
96
+ function noPermission() {
97
+ throw new TypeError("PermDock: protect needs at least one permission");
98
+ }
99
+ //#endregion
100
+ export { decideSet as n, permissionList as r, decideAll as t };
@@ -16,4 +16,4 @@ function delegationFrom(scopes, extra) {
16
16
  });
17
17
  }
18
18
  //#endregion
19
- export { delegationFrom as t };
19
+ export { delegationFrom as n, authorizationDetailsOf as t };
@@ -1,5 +1,5 @@
1
- import { dn as DeliveryFailureCause, ln as DeliveryChannel, pn as EmailCategory } from "../policy-types-D-GwfQTc.js";
2
- import { i as approvalUrlFor, n as ApprovalUrl, r as approvalPrompt, t as ApprovalPrompt } from "../approval-prompt-Bg7gDSqd.js";
3
- import { _ as TransportOptions, a as DeliveryReport, c as DeliveryTransport, d as EmailTransport, f as EmailUnsubscribe, g as TransportMessages, h as TransportItem, i as DeliveryMessages, l as DeliveryTransports, m as Recipient, n as ChatTransport, o as DeliveryResult, p as OutgoingEmail, r as DeliverOptions, s as DeliveryTarget, t as ChatMessage, u as EmailMessage, v as WebhookMessage, y as WebhookTransport } from "../types-CCEeSCMB.js";
4
- import { C as audience, S as SubscriberEvent, _ as ParseConnectorResult, a as DeliveryPermDock, b as Audience, c as MemoryDelivery, d as memoryDeliveryTransport, f as CONNECTOR_SCHEMA, g as ConnectorKind, h as ConnectorIssue, i as isDeliveryTarget, l as MemoryDeliveryTransport, m as Connector, n as webhookTransport, o as DeliveryPermDockOptions, p as CONNECTOR_KINDS, r as isAddrSpec, s as createPermDock, t as WebhookTransportOptions, u as MemoryDeliveryTransportOptions, v as SiemDestination, w as subscribersFor, x as AudienceOptions, y as parseConnector } from "../index-CVGio3cH.js";
1
+ import { dn as DeliveryChannel, hn as EmailCategory, pn as DeliveryFailureCause } from "../policy-types-BI9C5Sp5.js";
2
+ import { i as approvalUrlFor, n as ApprovalUrl, r as approvalPrompt, t as ApprovalPrompt } from "../approval-prompt-CQFiO1KE.js";
3
+ import { _ as TransportOptions, a as DeliveryReport, c as DeliveryTransport, d as EmailTransport, f as EmailUnsubscribe, g as TransportMessages, h as TransportItem, i as DeliveryMessages, l as DeliveryTransports, m as Recipient, n as ChatTransport, o as DeliveryResult, p as OutgoingEmail, r as DeliverOptions, s as DeliveryTarget, t as ChatMessage, u as EmailMessage, v as WebhookMessage, y as WebhookTransport } from "../types-p8mhWTcR.js";
4
+ import { C as audience, S as SubscriberEvent, _ as ParseConnectorResult, a as DeliveryPermDock, b as Audience, c as MemoryDelivery, d as memoryDeliveryTransport, f as CONNECTOR_SCHEMA, g as ConnectorKind, h as ConnectorIssue, i as isDeliveryTarget, l as MemoryDeliveryTransport, m as Connector, n as webhookTransport, o as DeliveryPermDockOptions, p as CONNECTOR_KINDS, r as isAddrSpec, s as createPermDock, t as WebhookTransportOptions, u as MemoryDeliveryTransportOptions, v as SiemDestination, w as subscribersFor, x as AudienceOptions, y as parseConnector } from "../index-Bt37QovT.js";
5
5
  export { type ApprovalPrompt, type ApprovalUrl, type Audience, type AudienceOptions, CONNECTOR_KINDS, CONNECTOR_SCHEMA, type ChatMessage, type ChatTransport, type Connector, type ConnectorIssue, type ConnectorKind, type DeliverOptions, type DeliveryChannel, type DeliveryFailureCause, type DeliveryMessages, type DeliveryPermDock, type DeliveryPermDockOptions, type DeliveryReport, type DeliveryResult, type DeliveryTarget, type DeliveryTransport, type DeliveryTransports, type EmailCategory, type EmailMessage, type EmailTransport, type EmailUnsubscribe, type MemoryDelivery, type MemoryDeliveryTransport, type MemoryDeliveryTransportOptions, type OutgoingEmail, type ParseConnectorResult, type Recipient, type SiemDestination, type SubscriberEvent, type TransportItem, type TransportMessages, type TransportOptions, type WebhookMessage, type WebhookTransport, type WebhookTransportOptions, approvalPrompt, approvalUrlFor, audience, createPermDock, isAddrSpec, isDeliveryTarget, memoryDeliveryTransport, parseConnector, subscribersFor, webhookTransport };
@@ -1,5 +1,5 @@
1
1
  import { n as approvalUrlFor, t as approvalPrompt } from "../approval-prompt-B8hQY69x.js";
2
- import { n as subscribersFor, t as audience } from "../audience-B4YR9UpV.js";
2
+ import { n as subscribersFor, t as audience } from "../audience-BUonniPx.js";
3
3
  import { t as CONNECTOR_SCHEMA } from "../connector-schema-CYLQNMYq.js";
4
4
  import { a as parseConnector, i as CONNECTOR_KINDS, n as createPermDock, r as memoryDeliveryTransport, t as webhookTransport } from "../delivery-BupfvJIV.js";
5
5
  import { i as isDeliveryTarget, n as isAddrSpec } from "../target-qdEAnnhU.js";
@@ -1,4 +1,4 @@
1
- import { qn as Decision } from "./policy-types-D-GwfQTc.js";
1
+ import { Yn as Decision } from "./policy-types-BI9C5Sp5.js";
2
2
  import { u as Permission } from "./permission-types-CAY-GU7e.js";
3
3
  //#region src/agent/denied-text.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { Xn as DenialReason, Zn as DeniedDecision, qn as Decision } from "./policy-types-D-GwfQTc.js";
1
+ import { $n as DeniedDecision, Qn as DenialReason, Yn as Decision } from "./policy-types-BI9C5Sp5.js";
2
2
  import { u as Permission } from "./permission-types-CAY-GU7e.js";
3
3
  //#region src/core/describe.d.ts
4
4
  type DecisionDescription = {
@@ -1,12 +1,12 @@
1
- import { A as memoryCustomRoleSource } from "./src-Brzq_0in.js";
1
+ import { A as memoryCustomRoleSource } from "./src-B8SQNsvw.js";
2
2
  import { n as findPermission } from "./permission-registry-B8tYxPIt.js";
3
3
  import { g as secondsOf } from "./time-nR1JesoH.js";
4
4
  import { t as canonicalJson } from "./canonical-json-DwilZ1iB.js";
5
- import { t as getPermDock } from "./permdock-D-_WrdKu.js";
5
+ import { t as getPermDock } from "./permdock-C1DN_7a-.js";
6
6
  import { i as configError, u as usageResult } from "./errors-BhRkoNS7.js";
7
- import { t as buildCatalog } from "./catalog-doc-C4DGfJCO.js";
7
+ import { t as buildCatalog } from "./catalog-doc-nrgfbh8I.js";
8
8
  import { a as loadModule, n as asPolicy, s as pickNamed } from "./load-BaEamml-.js";
9
- import { t as parseCatalog } from "./parse-UTC-sDrt.js";
9
+ import { t as parseCatalog } from "./parse-CXTT7hBq.js";
10
10
  import { t as operationFindings } from "./operation-findings-CVwJHEu_.js";
11
11
  import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-Cemqurt8.js";
12
12
  import { existsSync, readFileSync } from "node:fs";
@@ -21,7 +21,7 @@ const diff = defineLeaf({
21
21
  }
22
22
  },
23
23
  async run(ctx, { flags, args }) {
24
- return (await import("./diff-BnNHqtHj.js")).runDiff({
24
+ return (await import("./diff-Bd1-VCe5.js")).runDiff({
25
25
  cwd: ctx.cwd,
26
26
  config: ctx.config,
27
27
  sources: [args["before"], args["after"]].filter((value) => value !== void 0),
@@ -1,5 +1,5 @@
1
1
  import { t as defineLeaf } from "./command-L8EstFNm.js";
2
- import { a as failOnFlag } from "./flags-BlmpmXoY.js";
2
+ import { a as failOnFlag, n as dbUrl, r as dbUrlFlags } from "./flags-BlmpmXoY.js";
3
3
  import { n as ask, t as CANCELLED } from "./prompt-BYc6drYW.js";
4
4
  //#region src/cli/commands/doctor.ts
5
5
  const doctor = defineLeaf({
@@ -10,33 +10,43 @@ const doctor = defineLeaf({
10
10
  description: "Check codes or groups to run",
11
11
  valueHint: "code",
12
12
  async complete() {
13
- const { DOCTOR_CHECKS } = await import("./doctor-CkYKCuX7.js");
13
+ const { DOCTOR_CHECKS } = await import("./doctor-DpD4nHMS.js");
14
14
  return [.../* @__PURE__ */ new Set([...DOCTOR_CHECKS.map(({ code }) => code), ...DOCTOR_CHECKS.flatMap(({ groups }) => groups)])];
15
15
  }
16
16
  },
17
+ ignore: {
18
+ type: "string",
19
+ repeatable: true,
20
+ description: "Finding ids to accept for this run, as code:target",
21
+ valueHint: "id"
22
+ },
17
23
  fix: {
18
24
  type: "boolean",
19
25
  description: "Apply safe fixes: install skills, regenerate the catalog"
20
26
  },
21
- ...failOnFlag
27
+ ...failOnFlag,
28
+ ...dbUrlFlags
22
29
  },
23
30
  async run(ctx, { flags }) {
31
+ const db = await dbUrl(ctx, flags);
24
32
  let fix = flags.fix;
25
33
  if (fix && ctx.interactive && !ctx.yes) {
26
34
  const answer = await ask(`Install the Agent Skills and regenerate the catalog in ${ctx.cwd}?`);
27
35
  if (answer === void 0) return CANCELLED;
28
36
  fix = answer;
29
37
  }
30
- return (await import("./doctor-CkYKCuX7.js")).runDoctor({
38
+ return (await import("./doctor-DpD4nHMS.js")).runDoctor({
31
39
  cwd: ctx.cwd,
32
40
  config: ctx.config,
33
41
  only: flags.only,
42
+ ignore: flags.ignore,
34
43
  json: ctx.json,
35
44
  fix,
36
45
  strict: flags["fail-on"] === "warning",
37
46
  color: ctx.color,
38
47
  now: ctx.now,
39
- io: ctx.io
48
+ io: ctx.io,
49
+ ...db === void 0 ? {} : { db }
40
50
  });
41
51
  }
42
52
  });